configure revision 3eed67fa
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for xf86-input-elographics 1.2.3.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='xf86-input-elographics'
425PACKAGE_TARNAME='xf86-input-elographics'
426PACKAGE_VERSION='1.2.3'
427PACKAGE_STRING='xf86-input-elographics 1.2.3'
428PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
430ac_unique_file="Makefile.am"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT DRIVER_NAME build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL inputdir PKG_CONFIG ac_pt_PKG_CONFIG XORG_CFLAGS XORG_LIBS APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950ac_env_PKG_CONFIG_value=$PKG_CONFIG
951ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
953ac_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
954ac_env_XORG_CFLAGS_value=$XORG_CFLAGS
955ac_cv_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
956ac_cv_env_XORG_CFLAGS_value=$XORG_CFLAGS
957ac_env_XORG_LIBS_set=${XORG_LIBS+set}
958ac_env_XORG_LIBS_value=$XORG_LIBS
959ac_cv_env_XORG_LIBS_set=${XORG_LIBS+set}
960ac_cv_env_XORG_LIBS_value=$XORG_LIBS
961
962#
963# Report the --help message.
964#
965if test "$ac_init_help" = "long"; then
966  # Omit some internal or obsolete options to make the list less imposing.
967  # This message is too long to be a string in the A/UX 3.1 sh.
968  cat <<_ACEOF
969\`configure' configures xf86-input-elographics 1.2.3 to adapt to many kinds of systems.
970
971Usage: $0 [OPTION]... [VAR=VALUE]...
972
973To assign environment variables (e.g., CC, CFLAGS...), specify them as
974VAR=VALUE.  See below for descriptions of some of the useful variables.
975
976Defaults for the options are specified in brackets.
977
978Configuration:
979  -h, --help              display this help and exit
980      --help=short        display options specific to this package
981      --help=recursive    display the short help of all the included packages
982  -V, --version           display version information and exit
983  -q, --quiet, --silent   do not print \`checking...' messages
984      --cache-file=FILE   cache test results in FILE [disabled]
985  -C, --config-cache      alias for \`--cache-file=config.cache'
986  -n, --no-create         do not create output files
987      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
988
989_ACEOF
990
991  cat <<_ACEOF
992Installation directories:
993  --prefix=PREFIX         install architecture-independent files in PREFIX
994			  [$ac_default_prefix]
995  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
996			  [PREFIX]
997
998By default, \`make install' will install all the files in
999\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1000an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001for instance \`--prefix=\$HOME'.
1002
1003For better control, use the options below.
1004
1005Fine tuning of the installation directories:
1006  --bindir=DIR           user executables [EPREFIX/bin]
1007  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1008  --libexecdir=DIR       program executables [EPREFIX/libexec]
1009  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1010  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1011  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1012  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1013  --libdir=DIR           object code libraries [EPREFIX/lib]
1014  --includedir=DIR       C header files [PREFIX/include]
1015  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1016  --infodir=DIR          info documentation [PREFIX/info]
1017  --mandir=DIR           man documentation [PREFIX/man]
1018_ACEOF
1019
1020  cat <<\_ACEOF
1021
1022Program names:
1023  --program-prefix=PREFIX            prepend PREFIX to installed program names
1024  --program-suffix=SUFFIX            append SUFFIX to installed program names
1025  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1026
1027System types:
1028  --build=BUILD     configure for building on BUILD [guessed]
1029  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1030_ACEOF
1031fi
1032
1033if test -n "$ac_init_help"; then
1034  case $ac_init_help in
1035     short | recursive ) echo "Configuration of xf86-input-elographics 1.2.3:";;
1036   esac
1037  cat <<\_ACEOF
1038
1039Optional Features:
1040  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1041  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1042  --enable-maintainer-mode  enable make rules and dependencies not useful
1043			  (and sometimes confusing) to the casual installer
1044  --enable-static[=PKGS]
1045                          build static libraries [default=no]
1046  --enable-shared[=PKGS]
1047                          build shared libraries [default=yes]
1048  --enable-fast-install[=PKGS]
1049                          optimize for fast installation [default=yes]
1050  --disable-dependency-tracking  speeds up one-time build
1051  --enable-dependency-tracking   do not reject slow dependency extractors
1052  --disable-libtool-lock  avoid locking (might break parallel builds)
1053
1054Optional Packages:
1055  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1056  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1057  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1058  --with-pic              try to use only PIC/non-PIC objects [default=use
1059                          both]
1060  --with-tags[=TAGS]
1061                          include additional configurations [automatic]
1062  --with-xorg-module-dir=DIR
1063                          Default xorg module directory
1064                          [default=$libdir/xorg/modules]
1065  --with-release-version=STRING
1066                          Use release version string in package name
1067
1068Some influential environment variables:
1069  CC          C compiler command
1070  CFLAGS      C compiler flags
1071  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1072              nonstandard directory <lib dir>
1073  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074              headers in a nonstandard directory <include dir>
1075  CPP         C preprocessor
1076  CXX         C++ compiler command
1077  CXXFLAGS    C++ compiler flags
1078  CXXCPP      C++ preprocessor
1079  F77         Fortran 77 compiler command
1080  FFLAGS      Fortran 77 compiler flags
1081  PKG_CONFIG  path to pkg-config utility
1082  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1083  XORG_LIBS   linker flags for XORG, overriding pkg-config
1084
1085Use these variables to override the choices made by `configure' or to help
1086it to find libraries and programs with nonstandard names/locations.
1087
1088Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1089_ACEOF
1090fi
1091
1092if test "$ac_init_help" = "recursive"; then
1093  # If there are subdirs, report their specific --help.
1094  ac_popdir=`pwd`
1095  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1096    test -d $ac_dir || continue
1097    ac_builddir=.
1098
1099if test "$ac_dir" != .; then
1100  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1101  # A "../" for each directory in $ac_dir_suffix.
1102  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1103else
1104  ac_dir_suffix= ac_top_builddir=
1105fi
1106
1107case $srcdir in
1108  .)  # No --srcdir option.  We are building in place.
1109    ac_srcdir=.
1110    if test -z "$ac_top_builddir"; then
1111       ac_top_srcdir=.
1112    else
1113       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1114    fi ;;
1115  [\\/]* | ?:[\\/]* )  # Absolute path.
1116    ac_srcdir=$srcdir$ac_dir_suffix;
1117    ac_top_srcdir=$srcdir ;;
1118  *) # Relative path.
1119    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1120    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1121esac
1122
1123# Do not use `cd foo && pwd` to compute absolute paths, because
1124# the directories may not exist.
1125case `pwd` in
1126.) ac_abs_builddir="$ac_dir";;
1127*)
1128  case "$ac_dir" in
1129  .) ac_abs_builddir=`pwd`;;
1130  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1131  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1132  esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_top_builddir=${ac_top_builddir}.;;
1136*)
1137  case ${ac_top_builddir}. in
1138  .) ac_abs_top_builddir=$ac_abs_builddir;;
1139  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1140  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1141  esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_srcdir=$ac_srcdir;;
1145*)
1146  case $ac_srcdir in
1147  .) ac_abs_srcdir=$ac_abs_builddir;;
1148  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1149  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1150  esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_top_srcdir=$ac_top_srcdir;;
1154*)
1155  case $ac_top_srcdir in
1156  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1157  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1158  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1159  esac;;
1160esac
1161
1162    cd $ac_dir
1163    # Check for guested configure; otherwise get Cygnus style configure.
1164    if test -f $ac_srcdir/configure.gnu; then
1165      echo
1166      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1167    elif test -f $ac_srcdir/configure; then
1168      echo
1169      $SHELL $ac_srcdir/configure  --help=recursive
1170    elif test -f $ac_srcdir/configure.ac ||
1171	   test -f $ac_srcdir/configure.in; then
1172      echo
1173      $ac_configure --help
1174    else
1175      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176    fi
1177    cd $ac_popdir
1178  done
1179fi
1180
1181test -n "$ac_init_help" && exit 0
1182if $ac_init_version; then
1183  cat <<\_ACEOF
1184xf86-input-elographics configure 1.2.3
1185generated by GNU Autoconf 2.59
1186
1187Copyright (C) 2003 Free Software Foundation, Inc.
1188This configure script is free software; the Free Software Foundation
1189gives unlimited permission to copy, distribute and modify it.
1190_ACEOF
1191  exit 0
1192fi
1193exec 5>config.log
1194cat >&5 <<_ACEOF
1195This file contains any messages produced by compilers while
1196running configure, to aid debugging if configure makes a mistake.
1197
1198It was created by xf86-input-elographics $as_me 1.2.3, which was
1199generated by GNU Autoconf 2.59.  Invocation command line was
1200
1201  $ $0 $@
1202
1203_ACEOF
1204{
1205cat <<_ASUNAME
1206## --------- ##
1207## Platform. ##
1208## --------- ##
1209
1210hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1211uname -m = `(uname -m) 2>/dev/null || echo unknown`
1212uname -r = `(uname -r) 2>/dev/null || echo unknown`
1213uname -s = `(uname -s) 2>/dev/null || echo unknown`
1214uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215
1216/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1217/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1218
1219/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1220/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1221/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1222hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1223/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1224/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1225/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1226
1227_ASUNAME
1228
1229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230for as_dir in $PATH
1231do
1232  IFS=$as_save_IFS
1233  test -z "$as_dir" && as_dir=.
1234  echo "PATH: $as_dir"
1235done
1236
1237} >&5
1238
1239cat >&5 <<_ACEOF
1240
1241
1242## ----------- ##
1243## Core tests. ##
1244## ----------- ##
1245
1246_ACEOF
1247
1248
1249# Keep a trace of the command line.
1250# Strip out --no-create and --no-recursion so they do not pile up.
1251# Strip out --silent because we don't want to record it for future runs.
1252# Also quote any args containing shell meta-characters.
1253# Make two passes to allow for proper duplicate-argument suppression.
1254ac_configure_args=
1255ac_configure_args0=
1256ac_configure_args1=
1257ac_sep=
1258ac_must_keep_next=false
1259for ac_pass in 1 2
1260do
1261  for ac_arg
1262  do
1263    case $ac_arg in
1264    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1265    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266    | -silent | --silent | --silen | --sile | --sil)
1267      continue ;;
1268    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1270    esac
1271    case $ac_pass in
1272    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273    2)
1274      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1275      if test $ac_must_keep_next = true; then
1276	ac_must_keep_next=false # Got value, back to normal.
1277      else
1278	case $ac_arg in
1279	  *=* | --config-cache | -C | -disable-* | --disable-* \
1280	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1281	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1282	  | -with-* | --with-* | -without-* | --without-* | --x)
1283	    case "$ac_configure_args0 " in
1284	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1285	    esac
1286	    ;;
1287	  -* ) ac_must_keep_next=true ;;
1288	esac
1289      fi
1290      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1291      # Get rid of the leading space.
1292      ac_sep=" "
1293      ;;
1294    esac
1295  done
1296done
1297$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1298$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299
1300# When interrupted or exit'd, cleanup temporary files, and complete
1301# config.log.  We remove comments because anyway the quotes in there
1302# would cause problems or look ugly.
1303# WARNING: Be sure not to use single quotes in there, as some shells,
1304# such as our DU 5.0 friend, will then `close' the trap.
1305trap 'exit_status=$?
1306  # Save into config.log some information that might help in debugging.
1307  {
1308    echo
1309
1310    cat <<\_ASBOX
1311## ---------------- ##
1312## Cache variables. ##
1313## ---------------- ##
1314_ASBOX
1315    echo
1316    # The following way of writing the cache mishandles newlines in values,
1317{
1318  (set) 2>&1 |
1319    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1320    *ac_space=\ *)
1321      sed -n \
1322	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1323	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324      ;;
1325    *)
1326      sed -n \
1327	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1328      ;;
1329    esac;
1330}
1331    echo
1332
1333    cat <<\_ASBOX
1334## ----------------- ##
1335## Output variables. ##
1336## ----------------- ##
1337_ASBOX
1338    echo
1339    for ac_var in $ac_subst_vars
1340    do
1341      eval ac_val=$`echo $ac_var`
1342      echo "$ac_var='"'"'$ac_val'"'"'"
1343    done | sort
1344    echo
1345
1346    if test -n "$ac_subst_files"; then
1347      cat <<\_ASBOX
1348## ------------- ##
1349## Output files. ##
1350## ------------- ##
1351_ASBOX
1352      echo
1353      for ac_var in $ac_subst_files
1354      do
1355	eval ac_val=$`echo $ac_var`
1356	echo "$ac_var='"'"'$ac_val'"'"'"
1357      done | sort
1358      echo
1359    fi
1360
1361    if test -s confdefs.h; then
1362      cat <<\_ASBOX
1363## ----------- ##
1364## confdefs.h. ##
1365## ----------- ##
1366_ASBOX
1367      echo
1368      sed "/^$/d" confdefs.h | sort
1369      echo
1370    fi
1371    test "$ac_signal" != 0 &&
1372      echo "$as_me: caught signal $ac_signal"
1373    echo "$as_me: exit $exit_status"
1374  } >&5
1375  rm -f core *.core &&
1376  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1377    exit $exit_status
1378     ' 0
1379for ac_signal in 1 2 13 15; do
1380  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381done
1382ac_signal=0
1383
1384# confdefs.h avoids OS command line length limits that DEFS can exceed.
1385rm -rf conftest* confdefs.h
1386# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1387echo >confdefs.h
1388
1389# Predefined preprocessor variables.
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_NAME "$PACKAGE_NAME"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_VERSION "$PACKAGE_VERSION"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_STRING "$PACKAGE_STRING"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413_ACEOF
1414
1415
1416# Let the site file select an alternate cache file if it wants to.
1417# Prefer explicitly selected file to automatically selected ones.
1418if test -z "$CONFIG_SITE"; then
1419  if test "x$prefix" != xNONE; then
1420    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421  else
1422    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1423  fi
1424fi
1425for ac_site_file in $CONFIG_SITE; do
1426  if test -r "$ac_site_file"; then
1427    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1428echo "$as_me: loading site script $ac_site_file" >&6;}
1429    sed 's/^/| /' "$ac_site_file" >&5
1430    . "$ac_site_file"
1431  fi
1432done
1433
1434if test -r "$cache_file"; then
1435  # Some versions of bash will fail to source /dev/null (special
1436  # files actually), so we avoid doing that.
1437  if test -f "$cache_file"; then
1438    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1439echo "$as_me: loading cache $cache_file" >&6;}
1440    case $cache_file in
1441      [\\/]* | ?:[\\/]* ) . $cache_file;;
1442      *)                      . ./$cache_file;;
1443    esac
1444  fi
1445else
1446  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1447echo "$as_me: creating cache $cache_file" >&6;}
1448  >$cache_file
1449fi
1450
1451# Check that the precious variables saved in the cache have kept the same
1452# value.
1453ac_cache_corrupted=false
1454for ac_var in `(set) 2>&1 |
1455	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1456  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1457  eval ac_new_set=\$ac_env_${ac_var}_set
1458  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1459  eval ac_new_val="\$ac_env_${ac_var}_value"
1460  case $ac_old_set,$ac_new_set in
1461    set,)
1462      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1463echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1464      ac_cache_corrupted=: ;;
1465    ,set)
1466      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1467echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1468      ac_cache_corrupted=: ;;
1469    ,);;
1470    *)
1471      if test "x$ac_old_val" != "x$ac_new_val"; then
1472	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1473echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1474	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1475echo "$as_me:   former value:  $ac_old_val" >&2;}
1476	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1477echo "$as_me:   current value: $ac_new_val" >&2;}
1478	ac_cache_corrupted=:
1479      fi;;
1480  esac
1481  # Pass precious variables to config.status.
1482  if test "$ac_new_set" = set; then
1483    case $ac_new_val in
1484    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1485      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1486    *) ac_arg=$ac_var=$ac_new_val ;;
1487    esac
1488    case " $ac_configure_args " in
1489      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1490      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491    esac
1492  fi
1493done
1494if $ac_cache_corrupted; then
1495  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1496echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1497  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1498echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1499   { (exit 1); exit 1; }; }
1500fi
1501
1502ac_ext=c
1503ac_cpp='$CPP $CPPFLAGS'
1504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1506ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536ac_aux_dir=
1537for ac_dir in . $srcdir/.; do
1538  if test -f $ac_dir/install-sh; then
1539    ac_aux_dir=$ac_dir
1540    ac_install_sh="$ac_aux_dir/install-sh -c"
1541    break
1542  elif test -f $ac_dir/install.sh; then
1543    ac_aux_dir=$ac_dir
1544    ac_install_sh="$ac_aux_dir/install.sh -c"
1545    break
1546  elif test -f $ac_dir/shtool; then
1547    ac_aux_dir=$ac_dir
1548    ac_install_sh="$ac_aux_dir/shtool install -c"
1549    break
1550  fi
1551done
1552if test -z "$ac_aux_dir"; then
1553  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1554echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1555   { (exit 1); exit 1; }; }
1556fi
1557ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
1561am__api_version="1.9"
1562# Find a good install program.  We prefer a C program (faster),
1563# so one script is as good as another.  But avoid the broken or
1564# incompatible versions:
1565# SysV /etc/install, /usr/sbin/install
1566# SunOS /usr/etc/install
1567# IRIX /sbin/install
1568# AIX /bin/install
1569# AmigaOS /C/install, which installs bootblocks on floppy discs
1570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1573# OS/2's system install, which has a completely different semantic
1574# ./install, which can be erroneously created by make from ./install.sh.
1575echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1576echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1577if test -z "$INSTALL"; then
1578if test "${ac_cv_path_install+set}" = set; then
1579  echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
1581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584  IFS=$as_save_IFS
1585  test -z "$as_dir" && as_dir=.
1586  # Account for people who put trailing slashes in PATH elements.
1587case $as_dir/ in
1588  ./ | .// | /cC/* | \
1589  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1590  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1591  /usr/ucb/* ) ;;
1592  *)
1593    # OSF1 and SCO ODT 3.0 have their own names for install.
1594    # Don't use installbsd from OSF since it installs stuff as root
1595    # by default.
1596    for ac_prog in ginstall scoinst install; do
1597      for ac_exec_ext in '' $ac_executable_extensions; do
1598	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1599	  if test $ac_prog = install &&
1600	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1601	    # AIX install.  It has an incompatible calling convention.
1602	    :
1603	  elif test $ac_prog = install &&
1604	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605	    # program-specific install script used by HP pwplus--don't use.
1606	    :
1607	  else
1608	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1609	    break 3
1610	  fi
1611	fi
1612      done
1613    done
1614    ;;
1615esac
1616done
1617
1618
1619fi
1620  if test "${ac_cv_path_install+set}" = set; then
1621    INSTALL=$ac_cv_path_install
1622  else
1623    # As a last resort, use the slow shell script.  We don't cache a
1624    # path for INSTALL within a source directory, because that will
1625    # break other packages using the cache if that directory is
1626    # removed, or if the path is relative.
1627    INSTALL=$ac_install_sh
1628  fi
1629fi
1630echo "$as_me:$LINENO: result: $INSTALL" >&5
1631echo "${ECHO_T}$INSTALL" >&6
1632
1633# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1634# It thinks the first close brace ends the variable substitution.
1635test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1636
1637test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1638
1639test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1640
1641test "$program_prefix" != NONE &&
1642  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1643# Use a double $ so make ignores it.
1644test "$program_suffix" != NONE &&
1645  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1646# Double any \ or $.  echo might interpret backslashes.
1647# By default was `s,x,x', remove it if useless.
1648cat <<\_ACEOF >conftest.sed
1649s/[\\$]/&&/g;s/;s,x,x,$//
1650_ACEOF
1651program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1652rm conftest.sed
1653
1654# expand $ac_aux_dir to an absolute path
1655am_aux_dir=`cd $ac_aux_dir && pwd`
1656
1657test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1658# Use eval to expand $SHELL
1659if eval "$MISSING --run true"; then
1660  am_missing_run="$MISSING --run "
1661else
1662  am_missing_run=
1663  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1664echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1665fi
1666
1667if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1668  # We used to keeping the `.' as first argument, in order to
1669  # allow $(mkdir_p) to be used without argument.  As in
1670  #   $(mkdir_p) $(somedir)
1671  # where $(somedir) is conditionally defined.  However this is wrong
1672  # for two reasons:
1673  #  1. if the package is installed by a user who cannot write `.'
1674  #     make install will fail,
1675  #  2. the above comment should most certainly read
1676  #     $(mkdir_p) $(DESTDIR)$(somedir)
1677  #     so it does not work when $(somedir) is undefined and
1678  #     $(DESTDIR) is not.
1679  #  To support the latter case, we have to write
1680  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1681  #  so the `.' trick is pointless.
1682  mkdir_p='mkdir -p --'
1683else
1684  # On NextStep and OpenStep, the `mkdir' command does not
1685  # recognize any option.  It will interpret all options as
1686  # directories to create, and then abort because `.' already
1687  # exists.
1688  for d in ./-p ./--version;
1689  do
1690    test -d $d && rmdir $d
1691  done
1692  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1693  if test -f "$ac_aux_dir/mkinstalldirs"; then
1694    mkdir_p='$(mkinstalldirs)'
1695  else
1696    mkdir_p='$(SHELL) $(install_sh) -d'
1697  fi
1698fi
1699
1700for ac_prog in gawk mawk nawk awk
1701do
1702  # Extract the first word of "$ac_prog", so it can be a program name with args.
1703set dummy $ac_prog; ac_word=$2
1704echo "$as_me:$LINENO: checking for $ac_word" >&5
1705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706if test "${ac_cv_prog_AWK+set}" = set; then
1707  echo $ECHO_N "(cached) $ECHO_C" >&6
1708else
1709  if test -n "$AWK"; then
1710  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1711else
1712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713for as_dir in $PATH
1714do
1715  IFS=$as_save_IFS
1716  test -z "$as_dir" && as_dir=.
1717  for ac_exec_ext in '' $ac_executable_extensions; do
1718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719    ac_cv_prog_AWK="$ac_prog"
1720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721    break 2
1722  fi
1723done
1724done
1725
1726fi
1727fi
1728AWK=$ac_cv_prog_AWK
1729if test -n "$AWK"; then
1730  echo "$as_me:$LINENO: result: $AWK" >&5
1731echo "${ECHO_T}$AWK" >&6
1732else
1733  echo "$as_me:$LINENO: result: no" >&5
1734echo "${ECHO_T}no" >&6
1735fi
1736
1737  test -n "$AWK" && break
1738done
1739
1740echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1741echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1742set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1743if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1744  echo $ECHO_N "(cached) $ECHO_C" >&6
1745else
1746  cat >conftest.make <<\_ACEOF
1747all:
1748	@echo 'ac_maketemp="$(MAKE)"'
1749_ACEOF
1750# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1751eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1752if test -n "$ac_maketemp"; then
1753  eval ac_cv_prog_make_${ac_make}_set=yes
1754else
1755  eval ac_cv_prog_make_${ac_make}_set=no
1756fi
1757rm -f conftest.make
1758fi
1759if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1760  echo "$as_me:$LINENO: result: yes" >&5
1761echo "${ECHO_T}yes" >&6
1762  SET_MAKE=
1763else
1764  echo "$as_me:$LINENO: result: no" >&5
1765echo "${ECHO_T}no" >&6
1766  SET_MAKE="MAKE=${MAKE-make}"
1767fi
1768
1769rm -rf .tst 2>/dev/null
1770mkdir .tst 2>/dev/null
1771if test -d .tst; then
1772  am__leading_dot=.
1773else
1774  am__leading_dot=_
1775fi
1776rmdir .tst 2>/dev/null
1777
1778# test to see if srcdir already configured
1779if test "`cd $srcdir && pwd`" != "`pwd`" &&
1780   test -f $srcdir/config.status; then
1781  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1782echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1783   { (exit 1); exit 1; }; }
1784fi
1785
1786# test whether we have cygpath
1787if test -z "$CYGPATH_W"; then
1788  if (cygpath --version) >/dev/null 2>/dev/null; then
1789    CYGPATH_W='cygpath -w'
1790  else
1791    CYGPATH_W=echo
1792  fi
1793fi
1794
1795
1796# Define the identity of the package.
1797 PACKAGE='xf86-input-elographics'
1798 VERSION='1.2.3'
1799
1800
1801cat >>confdefs.h <<_ACEOF
1802#define PACKAGE "$PACKAGE"
1803_ACEOF
1804
1805
1806cat >>confdefs.h <<_ACEOF
1807#define VERSION "$VERSION"
1808_ACEOF
1809
1810# Some tools Automake needs.
1811
1812ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1813
1814
1815AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1816
1817
1818AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1819
1820
1821AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1822
1823
1824MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1825
1826install_sh=${install_sh-"$am_aux_dir/install-sh"}
1827
1828# Installed binaries are usually stripped using `strip' when the user
1829# run `make install-strip'.  However `strip' might not be the right
1830# tool to use in cross-compilation environments, therefore Automake
1831# will honor the `STRIP' environment variable to overrule this program.
1832if test "$cross_compiling" != no; then
1833  if test -n "$ac_tool_prefix"; then
1834  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1835set dummy ${ac_tool_prefix}strip; ac_word=$2
1836echo "$as_me:$LINENO: checking for $ac_word" >&5
1837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838if test "${ac_cv_prog_STRIP+set}" = set; then
1839  echo $ECHO_N "(cached) $ECHO_C" >&6
1840else
1841  if test -n "$STRIP"; then
1842  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1843else
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847  IFS=$as_save_IFS
1848  test -z "$as_dir" && as_dir=.
1849  for ac_exec_ext in '' $ac_executable_extensions; do
1850  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853    break 2
1854  fi
1855done
1856done
1857
1858fi
1859fi
1860STRIP=$ac_cv_prog_STRIP
1861if test -n "$STRIP"; then
1862  echo "$as_me:$LINENO: result: $STRIP" >&5
1863echo "${ECHO_T}$STRIP" >&6
1864else
1865  echo "$as_me:$LINENO: result: no" >&5
1866echo "${ECHO_T}no" >&6
1867fi
1868
1869fi
1870if test -z "$ac_cv_prog_STRIP"; then
1871  ac_ct_STRIP=$STRIP
1872  # Extract the first word of "strip", so it can be a program name with args.
1873set dummy strip; ac_word=$2
1874echo "$as_me:$LINENO: checking for $ac_word" >&5
1875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1877  echo $ECHO_N "(cached) $ECHO_C" >&6
1878else
1879  if test -n "$ac_ct_STRIP"; then
1880  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1881else
1882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883for as_dir in $PATH
1884do
1885  IFS=$as_save_IFS
1886  test -z "$as_dir" && as_dir=.
1887  for ac_exec_ext in '' $ac_executable_extensions; do
1888  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889    ac_cv_prog_ac_ct_STRIP="strip"
1890    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891    break 2
1892  fi
1893done
1894done
1895
1896  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1897fi
1898fi
1899ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1900if test -n "$ac_ct_STRIP"; then
1901  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1902echo "${ECHO_T}$ac_ct_STRIP" >&6
1903else
1904  echo "$as_me:$LINENO: result: no" >&5
1905echo "${ECHO_T}no" >&6
1906fi
1907
1908  STRIP=$ac_ct_STRIP
1909else
1910  STRIP="$ac_cv_prog_STRIP"
1911fi
1912
1913fi
1914INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1915
1916# We need awk for the "check" target.  The system "awk" is bad on
1917# some platforms.
1918# Always define AMTAR for backward compatibility.
1919
1920AMTAR=${AMTAR-"${am_missing_run}tar"}
1921
1922am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1923
1924
1925
1926
1927
1928
1929echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1930echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1931    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1932if test "${enable_maintainer_mode+set}" = set; then
1933  enableval="$enable_maintainer_mode"
1934  USE_MAINTAINER_MODE=$enableval
1935else
1936  USE_MAINTAINER_MODE=no
1937fi;
1938  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1939echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1940
1941
1942if test $USE_MAINTAINER_MODE = yes; then
1943  MAINTAINER_MODE_TRUE=
1944  MAINTAINER_MODE_FALSE='#'
1945else
1946  MAINTAINER_MODE_TRUE='#'
1947  MAINTAINER_MODE_FALSE=
1948fi
1949
1950  MAINT=$MAINTAINER_MODE_TRUE
1951
1952
1953
1954DRIVER_NAME=elographics
1955
1956
1957          ac_config_headers="$ac_config_headers config.h"
1958
1959
1960# Checks for programs.
1961# Check whether --enable-static or --disable-static was given.
1962if test "${enable_static+set}" = set; then
1963  enableval="$enable_static"
1964  p=${PACKAGE-default}
1965    case $enableval in
1966    yes) enable_static=yes ;;
1967    no) enable_static=no ;;
1968    *)
1969     enable_static=no
1970      # Look at the argument we got.  We use all the common list separators.
1971      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1972      for pkg in $enableval; do
1973	IFS="$lt_save_ifs"
1974	if test "X$pkg" = "X$p"; then
1975	  enable_static=yes
1976	fi
1977      done
1978      IFS="$lt_save_ifs"
1979      ;;
1980    esac
1981else
1982  enable_static=no
1983fi;
1984
1985
1986# Check whether --enable-shared or --disable-shared was given.
1987if test "${enable_shared+set}" = set; then
1988  enableval="$enable_shared"
1989  p=${PACKAGE-default}
1990    case $enableval in
1991    yes) enable_shared=yes ;;
1992    no) enable_shared=no ;;
1993    *)
1994      enable_shared=no
1995      # Look at the argument we got.  We use all the common list separators.
1996      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1997      for pkg in $enableval; do
1998	IFS="$lt_save_ifs"
1999	if test "X$pkg" = "X$p"; then
2000	  enable_shared=yes
2001	fi
2002      done
2003      IFS="$lt_save_ifs"
2004      ;;
2005    esac
2006else
2007  enable_shared=yes
2008fi;
2009
2010# Check whether --enable-fast-install or --disable-fast-install was given.
2011if test "${enable_fast_install+set}" = set; then
2012  enableval="$enable_fast_install"
2013  p=${PACKAGE-default}
2014    case $enableval in
2015    yes) enable_fast_install=yes ;;
2016    no) enable_fast_install=no ;;
2017    *)
2018      enable_fast_install=no
2019      # Look at the argument we got.  We use all the common list separators.
2020      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2021      for pkg in $enableval; do
2022	IFS="$lt_save_ifs"
2023	if test "X$pkg" = "X$p"; then
2024	  enable_fast_install=yes
2025	fi
2026      done
2027      IFS="$lt_save_ifs"
2028      ;;
2029    esac
2030else
2031  enable_fast_install=yes
2032fi;
2033
2034# Make sure we can run config.sub.
2035$ac_config_sub sun4 >/dev/null 2>&1 ||
2036  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2037echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2038   { (exit 1); exit 1; }; }
2039
2040echo "$as_me:$LINENO: checking build system type" >&5
2041echo $ECHO_N "checking build system type... $ECHO_C" >&6
2042if test "${ac_cv_build+set}" = set; then
2043  echo $ECHO_N "(cached) $ECHO_C" >&6
2044else
2045  ac_cv_build_alias=$build_alias
2046test -z "$ac_cv_build_alias" &&
2047  ac_cv_build_alias=`$ac_config_guess`
2048test -z "$ac_cv_build_alias" &&
2049  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2050echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2051   { (exit 1); exit 1; }; }
2052ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2053  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2054echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2055   { (exit 1); exit 1; }; }
2056
2057fi
2058echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2059echo "${ECHO_T}$ac_cv_build" >&6
2060build=$ac_cv_build
2061build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2062build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2063build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2064
2065
2066echo "$as_me:$LINENO: checking host system type" >&5
2067echo $ECHO_N "checking host system type... $ECHO_C" >&6
2068if test "${ac_cv_host+set}" = set; then
2069  echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071  ac_cv_host_alias=$host_alias
2072test -z "$ac_cv_host_alias" &&
2073  ac_cv_host_alias=$ac_cv_build_alias
2074ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2075  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2076echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2077   { (exit 1); exit 1; }; }
2078
2079fi
2080echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2081echo "${ECHO_T}$ac_cv_host" >&6
2082host=$ac_cv_host
2083host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2084host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2085host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2086
2087
2088DEPDIR="${am__leading_dot}deps"
2089
2090          ac_config_commands="$ac_config_commands depfiles"
2091
2092
2093am_make=${MAKE-make}
2094cat > confinc << 'END'
2095am__doit:
2096	@echo done
2097.PHONY: am__doit
2098END
2099# If we don't find an include directive, just comment out the code.
2100echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2101echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2102am__include="#"
2103am__quote=
2104_am_result=none
2105# First try GNU make style include.
2106echo "include confinc" > confmf
2107# We grep out `Entering directory' and `Leaving directory'
2108# messages which can occur if `w' ends up in MAKEFLAGS.
2109# In particular we don't look at `^make:' because GNU make might
2110# be invoked under some other name (usually "gmake"), in which
2111# case it prints its new name instead of `make'.
2112if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2113   am__include=include
2114   am__quote=
2115   _am_result=GNU
2116fi
2117# Now try BSD make style include.
2118if test "$am__include" = "#"; then
2119   echo '.include "confinc"' > confmf
2120   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2121      am__include=.include
2122      am__quote="\""
2123      _am_result=BSD
2124   fi
2125fi
2126
2127
2128echo "$as_me:$LINENO: result: $_am_result" >&5
2129echo "${ECHO_T}$_am_result" >&6
2130rm -f confinc confmf
2131
2132# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2133if test "${enable_dependency_tracking+set}" = set; then
2134  enableval="$enable_dependency_tracking"
2135
2136fi;
2137if test "x$enable_dependency_tracking" != xno; then
2138  am_depcomp="$ac_aux_dir/depcomp"
2139  AMDEPBACKSLASH='\'
2140fi
2141
2142
2143if test "x$enable_dependency_tracking" != xno; then
2144  AMDEP_TRUE=
2145  AMDEP_FALSE='#'
2146else
2147  AMDEP_TRUE='#'
2148  AMDEP_FALSE=
2149fi
2150
2151
2152
2153ac_ext=c
2154ac_cpp='$CPP $CPPFLAGS'
2155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2157ac_compiler_gnu=$ac_cv_c_compiler_gnu
2158if test -n "$ac_tool_prefix"; then
2159  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2160set dummy ${ac_tool_prefix}gcc; ac_word=$2
2161echo "$as_me:$LINENO: checking for $ac_word" >&5
2162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163if test "${ac_cv_prog_CC+set}" = set; then
2164  echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
2166  if test -n "$CC"; then
2167  ac_cv_prog_CC="$CC" # Let the user override the test.
2168else
2169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170for as_dir in $PATH
2171do
2172  IFS=$as_save_IFS
2173  test -z "$as_dir" && as_dir=.
2174  for ac_exec_ext in '' $ac_executable_extensions; do
2175  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2177    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178    break 2
2179  fi
2180done
2181done
2182
2183fi
2184fi
2185CC=$ac_cv_prog_CC
2186if test -n "$CC"; then
2187  echo "$as_me:$LINENO: result: $CC" >&5
2188echo "${ECHO_T}$CC" >&6
2189else
2190  echo "$as_me:$LINENO: result: no" >&5
2191echo "${ECHO_T}no" >&6
2192fi
2193
2194fi
2195if test -z "$ac_cv_prog_CC"; then
2196  ac_ct_CC=$CC
2197  # Extract the first word of "gcc", so it can be a program name with args.
2198set dummy gcc; ac_word=$2
2199echo "$as_me:$LINENO: checking for $ac_word" >&5
2200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202  echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
2204  if test -n "$ac_ct_CC"; then
2205  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206else
2207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208for as_dir in $PATH
2209do
2210  IFS=$as_save_IFS
2211  test -z "$as_dir" && as_dir=.
2212  for ac_exec_ext in '' $ac_executable_extensions; do
2213  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214    ac_cv_prog_ac_ct_CC="gcc"
2215    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216    break 2
2217  fi
2218done
2219done
2220
2221fi
2222fi
2223ac_ct_CC=$ac_cv_prog_ac_ct_CC
2224if test -n "$ac_ct_CC"; then
2225  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226echo "${ECHO_T}$ac_ct_CC" >&6
2227else
2228  echo "$as_me:$LINENO: result: no" >&5
2229echo "${ECHO_T}no" >&6
2230fi
2231
2232  CC=$ac_ct_CC
2233else
2234  CC="$ac_cv_prog_CC"
2235fi
2236
2237if test -z "$CC"; then
2238  if test -n "$ac_tool_prefix"; then
2239  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2240set dummy ${ac_tool_prefix}cc; ac_word=$2
2241echo "$as_me:$LINENO: checking for $ac_word" >&5
2242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243if test "${ac_cv_prog_CC+set}" = set; then
2244  echo $ECHO_N "(cached) $ECHO_C" >&6
2245else
2246  if test -n "$CC"; then
2247  ac_cv_prog_CC="$CC" # Let the user override the test.
2248else
2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250for as_dir in $PATH
2251do
2252  IFS=$as_save_IFS
2253  test -z "$as_dir" && as_dir=.
2254  for ac_exec_ext in '' $ac_executable_extensions; do
2255  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2256    ac_cv_prog_CC="${ac_tool_prefix}cc"
2257    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258    break 2
2259  fi
2260done
2261done
2262
2263fi
2264fi
2265CC=$ac_cv_prog_CC
2266if test -n "$CC"; then
2267  echo "$as_me:$LINENO: result: $CC" >&5
2268echo "${ECHO_T}$CC" >&6
2269else
2270  echo "$as_me:$LINENO: result: no" >&5
2271echo "${ECHO_T}no" >&6
2272fi
2273
2274fi
2275if test -z "$ac_cv_prog_CC"; then
2276  ac_ct_CC=$CC
2277  # Extract the first word of "cc", so it can be a program name with args.
2278set dummy cc; ac_word=$2
2279echo "$as_me:$LINENO: checking for $ac_word" >&5
2280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2282  echo $ECHO_N "(cached) $ECHO_C" >&6
2283else
2284  if test -n "$ac_ct_CC"; then
2285  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2286else
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290  IFS=$as_save_IFS
2291  test -z "$as_dir" && as_dir=.
2292  for ac_exec_ext in '' $ac_executable_extensions; do
2293  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294    ac_cv_prog_ac_ct_CC="cc"
2295    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296    break 2
2297  fi
2298done
2299done
2300
2301fi
2302fi
2303ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304if test -n "$ac_ct_CC"; then
2305  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306echo "${ECHO_T}$ac_ct_CC" >&6
2307else
2308  echo "$as_me:$LINENO: result: no" >&5
2309echo "${ECHO_T}no" >&6
2310fi
2311
2312  CC=$ac_ct_CC
2313else
2314  CC="$ac_cv_prog_CC"
2315fi
2316
2317fi
2318if test -z "$CC"; then
2319  # Extract the first word of "cc", so it can be a program name with args.
2320set dummy cc; ac_word=$2
2321echo "$as_me:$LINENO: checking for $ac_word" >&5
2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323if test "${ac_cv_prog_CC+set}" = set; then
2324  echo $ECHO_N "(cached) $ECHO_C" >&6
2325else
2326  if test -n "$CC"; then
2327  ac_cv_prog_CC="$CC" # Let the user override the test.
2328else
2329  ac_prog_rejected=no
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333  IFS=$as_save_IFS
2334  test -z "$as_dir" && as_dir=.
2335  for ac_exec_ext in '' $ac_executable_extensions; do
2336  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2337    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2338       ac_prog_rejected=yes
2339       continue
2340     fi
2341    ac_cv_prog_CC="cc"
2342    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343    break 2
2344  fi
2345done
2346done
2347
2348if test $ac_prog_rejected = yes; then
2349  # We found a bogon in the path, so make sure we never use it.
2350  set dummy $ac_cv_prog_CC
2351  shift
2352  if test $# != 0; then
2353    # We chose a different compiler from the bogus one.
2354    # However, it has the same basename, so the bogon will be chosen
2355    # first if we set CC to just the basename; use the full file name.
2356    shift
2357    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2358  fi
2359fi
2360fi
2361fi
2362CC=$ac_cv_prog_CC
2363if test -n "$CC"; then
2364  echo "$as_me:$LINENO: result: $CC" >&5
2365echo "${ECHO_T}$CC" >&6
2366else
2367  echo "$as_me:$LINENO: result: no" >&5
2368echo "${ECHO_T}no" >&6
2369fi
2370
2371fi
2372if test -z "$CC"; then
2373  if test -n "$ac_tool_prefix"; then
2374  for ac_prog in cl
2375  do
2376    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2377set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2378echo "$as_me:$LINENO: checking for $ac_word" >&5
2379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2380if test "${ac_cv_prog_CC+set}" = set; then
2381  echo $ECHO_N "(cached) $ECHO_C" >&6
2382else
2383  if test -n "$CC"; then
2384  ac_cv_prog_CC="$CC" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389  IFS=$as_save_IFS
2390  test -z "$as_dir" && as_dir=.
2391  for ac_exec_ext in '' $ac_executable_extensions; do
2392  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395    break 2
2396  fi
2397done
2398done
2399
2400fi
2401fi
2402CC=$ac_cv_prog_CC
2403if test -n "$CC"; then
2404  echo "$as_me:$LINENO: result: $CC" >&5
2405echo "${ECHO_T}$CC" >&6
2406else
2407  echo "$as_me:$LINENO: result: no" >&5
2408echo "${ECHO_T}no" >&6
2409fi
2410
2411    test -n "$CC" && break
2412  done
2413fi
2414if test -z "$CC"; then
2415  ac_ct_CC=$CC
2416  for ac_prog in cl
2417do
2418  # Extract the first word of "$ac_prog", so it can be a program name with args.
2419set dummy $ac_prog; ac_word=$2
2420echo "$as_me:$LINENO: checking for $ac_word" >&5
2421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2422if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2423  echo $ECHO_N "(cached) $ECHO_C" >&6
2424else
2425  if test -n "$ac_ct_CC"; then
2426  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2427else
2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431  IFS=$as_save_IFS
2432  test -z "$as_dir" && as_dir=.
2433  for ac_exec_ext in '' $ac_executable_extensions; do
2434  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435    ac_cv_prog_ac_ct_CC="$ac_prog"
2436    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437    break 2
2438  fi
2439done
2440done
2441
2442fi
2443fi
2444ac_ct_CC=$ac_cv_prog_ac_ct_CC
2445if test -n "$ac_ct_CC"; then
2446  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2447echo "${ECHO_T}$ac_ct_CC" >&6
2448else
2449  echo "$as_me:$LINENO: result: no" >&5
2450echo "${ECHO_T}no" >&6
2451fi
2452
2453  test -n "$ac_ct_CC" && break
2454done
2455
2456  CC=$ac_ct_CC
2457fi
2458
2459fi
2460
2461
2462test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2463See \`config.log' for more details." >&5
2464echo "$as_me: error: no acceptable C compiler found in \$PATH
2465See \`config.log' for more details." >&2;}
2466   { (exit 1); exit 1; }; }
2467
2468# Provide some information about the compiler.
2469echo "$as_me:$LINENO:" \
2470     "checking for C compiler version" >&5
2471ac_compiler=`set X $ac_compile; echo $2`
2472{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2473  (eval $ac_compiler --version </dev/null >&5) 2>&5
2474  ac_status=$?
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); }
2477{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2478  (eval $ac_compiler -v </dev/null >&5) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }
2482{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2483  (eval $ac_compiler -V </dev/null >&5) 2>&5
2484  ac_status=$?
2485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486  (exit $ac_status); }
2487
2488cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h.  */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h.  */
2494
2495int
2496main ()
2497{
2498
2499  ;
2500  return 0;
2501}
2502_ACEOF
2503ac_clean_files_save=$ac_clean_files
2504ac_clean_files="$ac_clean_files a.out a.exe b.out"
2505# Try to create an executable without -o first, disregard a.out.
2506# It will help us diagnose broken compilers, and finding out an intuition
2507# of exeext.
2508echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2509echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2510ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2511if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2512  (eval $ac_link_default) 2>&5
2513  ac_status=$?
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); }; then
2516  # Find the output, starting from the most likely.  This scheme is
2517# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2518# resort.
2519
2520# Be careful to initialize this variable, since it used to be cached.
2521# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2522ac_cv_exeext=
2523# b.out is created by i960 compilers.
2524for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2525do
2526  test -f "$ac_file" || continue
2527  case $ac_file in
2528    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2529	;;
2530    conftest.$ac_ext )
2531	# This is the source file.
2532	;;
2533    [ab].out )
2534	# We found the default executable, but exeext='' is most
2535	# certainly right.
2536	break;;
2537    *.* )
2538	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2539	# FIXME: I believe we export ac_cv_exeext for Libtool,
2540	# but it would be cool to find out if it's true.  Does anybody
2541	# maintain Libtool? --akim.
2542	export ac_cv_exeext
2543	break;;
2544    * )
2545	break;;
2546  esac
2547done
2548else
2549  echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2553See \`config.log' for more details." >&5
2554echo "$as_me: error: C compiler cannot create executables
2555See \`config.log' for more details." >&2;}
2556   { (exit 77); exit 77; }; }
2557fi
2558
2559ac_exeext=$ac_cv_exeext
2560echo "$as_me:$LINENO: result: $ac_file" >&5
2561echo "${ECHO_T}$ac_file" >&6
2562
2563# Check the compiler produces executables we can run.  If not, either
2564# the compiler is broken, or we cross compile.
2565echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2566echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2567# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2568# If not cross compiling, check that we can run a simple program.
2569if test "$cross_compiling" != yes; then
2570  if { ac_try='./$ac_file'
2571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572  (eval $ac_try) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; }; then
2576    cross_compiling=no
2577  else
2578    if test "$cross_compiling" = maybe; then
2579	cross_compiling=yes
2580    else
2581	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2582If you meant to cross compile, use \`--host'.
2583See \`config.log' for more details." >&5
2584echo "$as_me: error: cannot run C compiled programs.
2585If you meant to cross compile, use \`--host'.
2586See \`config.log' for more details." >&2;}
2587   { (exit 1); exit 1; }; }
2588    fi
2589  fi
2590fi
2591echo "$as_me:$LINENO: result: yes" >&5
2592echo "${ECHO_T}yes" >&6
2593
2594rm -f a.out a.exe conftest$ac_cv_exeext b.out
2595ac_clean_files=$ac_clean_files_save
2596# Check the compiler produces executables we can run.  If not, either
2597# the compiler is broken, or we cross compile.
2598echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2599echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2600echo "$as_me:$LINENO: result: $cross_compiling" >&5
2601echo "${ECHO_T}$cross_compiling" >&6
2602
2603echo "$as_me:$LINENO: checking for suffix of executables" >&5
2604echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2606  (eval $ac_link) 2>&5
2607  ac_status=$?
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); }; then
2610  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2611# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2612# work properly (i.e., refer to `conftest.exe'), while it won't with
2613# `rm'.
2614for ac_file in conftest.exe conftest conftest.*; do
2615  test -f "$ac_file" || continue
2616  case $ac_file in
2617    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2618    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2619	  export ac_cv_exeext
2620	  break;;
2621    * ) break;;
2622  esac
2623done
2624else
2625  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2626See \`config.log' for more details." >&5
2627echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2628See \`config.log' for more details." >&2;}
2629   { (exit 1); exit 1; }; }
2630fi
2631
2632rm -f conftest$ac_cv_exeext
2633echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2634echo "${ECHO_T}$ac_cv_exeext" >&6
2635
2636rm -f conftest.$ac_ext
2637EXEEXT=$ac_cv_exeext
2638ac_exeext=$EXEEXT
2639echo "$as_me:$LINENO: checking for suffix of object files" >&5
2640echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2641if test "${ac_cv_objext+set}" = set; then
2642  echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644  cat >conftest.$ac_ext <<_ACEOF
2645/* confdefs.h.  */
2646_ACEOF
2647cat confdefs.h >>conftest.$ac_ext
2648cat >>conftest.$ac_ext <<_ACEOF
2649/* end confdefs.h.  */
2650
2651int
2652main ()
2653{
2654
2655  ;
2656  return 0;
2657}
2658_ACEOF
2659rm -f conftest.o conftest.obj
2660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661  (eval $ac_compile) 2>&5
2662  ac_status=$?
2663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664  (exit $ac_status); }; then
2665  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2666  case $ac_file in
2667    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2668    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2669       break;;
2670  esac
2671done
2672else
2673  echo "$as_me: failed program was:" >&5
2674sed 's/^/| /' conftest.$ac_ext >&5
2675
2676{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2677See \`config.log' for more details." >&5
2678echo "$as_me: error: cannot compute suffix of object files: cannot compile
2679See \`config.log' for more details." >&2;}
2680   { (exit 1); exit 1; }; }
2681fi
2682
2683rm -f conftest.$ac_cv_objext conftest.$ac_ext
2684fi
2685echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2686echo "${ECHO_T}$ac_cv_objext" >&6
2687OBJEXT=$ac_cv_objext
2688ac_objext=$OBJEXT
2689echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2690echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2691if test "${ac_cv_c_compiler_gnu+set}" = set; then
2692  echo $ECHO_N "(cached) $ECHO_C" >&6
2693else
2694  cat >conftest.$ac_ext <<_ACEOF
2695/* confdefs.h.  */
2696_ACEOF
2697cat confdefs.h >>conftest.$ac_ext
2698cat >>conftest.$ac_ext <<_ACEOF
2699/* end confdefs.h.  */
2700
2701int
2702main ()
2703{
2704#ifndef __GNUC__
2705       choke me
2706#endif
2707
2708  ;
2709  return 0;
2710}
2711_ACEOF
2712rm -f conftest.$ac_objext
2713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714  (eval $ac_compile) 2>conftest.er1
2715  ac_status=$?
2716  grep -v '^ *+' conftest.er1 >conftest.err
2717  rm -f conftest.er1
2718  cat conftest.err >&5
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); } &&
2721	 { ac_try='test -z "$ac_c_werror_flag"
2722			 || test ! -s conftest.err'
2723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724  (eval $ac_try) 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }; } &&
2728	 { ac_try='test -s conftest.$ac_objext'
2729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730  (eval $ac_try) 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }; }; then
2734  ac_compiler_gnu=yes
2735else
2736  echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739ac_compiler_gnu=no
2740fi
2741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742ac_cv_c_compiler_gnu=$ac_compiler_gnu
2743
2744fi
2745echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2746echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2747GCC=`test $ac_compiler_gnu = yes && echo yes`
2748ac_test_CFLAGS=${CFLAGS+set}
2749ac_save_CFLAGS=$CFLAGS
2750CFLAGS="-g"
2751echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2752echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2753if test "${ac_cv_prog_cc_g+set}" = set; then
2754  echo $ECHO_N "(cached) $ECHO_C" >&6
2755else
2756  cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h.  */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h.  */
2762
2763int
2764main ()
2765{
2766
2767  ;
2768  return 0;
2769}
2770_ACEOF
2771rm -f conftest.$ac_objext
2772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773  (eval $ac_compile) 2>conftest.er1
2774  ac_status=$?
2775  grep -v '^ *+' conftest.er1 >conftest.err
2776  rm -f conftest.er1
2777  cat conftest.err >&5
2778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779  (exit $ac_status); } &&
2780	 { ac_try='test -z "$ac_c_werror_flag"
2781			 || test ! -s conftest.err'
2782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783  (eval $ac_try) 2>&5
2784  ac_status=$?
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); }; } &&
2787	 { ac_try='test -s conftest.$ac_objext'
2788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789  (eval $ac_try) 2>&5
2790  ac_status=$?
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); }; }; then
2793  ac_cv_prog_cc_g=yes
2794else
2795  echo "$as_me: failed program was:" >&5
2796sed 's/^/| /' conftest.$ac_ext >&5
2797
2798ac_cv_prog_cc_g=no
2799fi
2800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801fi
2802echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2803echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2804if test "$ac_test_CFLAGS" = set; then
2805  CFLAGS=$ac_save_CFLAGS
2806elif test $ac_cv_prog_cc_g = yes; then
2807  if test "$GCC" = yes; then
2808    CFLAGS="-g -O2"
2809  else
2810    CFLAGS="-g"
2811  fi
2812else
2813  if test "$GCC" = yes; then
2814    CFLAGS="-O2"
2815  else
2816    CFLAGS=
2817  fi
2818fi
2819echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2820echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2821if test "${ac_cv_prog_cc_stdc+set}" = set; then
2822  echo $ECHO_N "(cached) $ECHO_C" >&6
2823else
2824  ac_cv_prog_cc_stdc=no
2825ac_save_CC=$CC
2826cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h.  */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h.  */
2832#include <stdarg.h>
2833#include <stdio.h>
2834#include <sys/types.h>
2835#include <sys/stat.h>
2836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2837struct buf { int x; };
2838FILE * (*rcsopen) (struct buf *, struct stat *, int);
2839static char *e (p, i)
2840     char **p;
2841     int i;
2842{
2843  return p[i];
2844}
2845static char *f (char * (*g) (char **, int), char **p, ...)
2846{
2847  char *s;
2848  va_list v;
2849  va_start (v,p);
2850  s = g (p, va_arg (v,int));
2851  va_end (v);
2852  return s;
2853}
2854
2855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2856   function prototypes and stuff, but not '\xHH' hex character constants.
2857   These don't provoke an error unfortunately, instead are silently treated
2858   as 'x'.  The following induces an error, until -std1 is added to get
2859   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2860   array size at least.  It's necessary to write '\x00'==0 to get something
2861   that's true only with -std1.  */
2862int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2863
2864int test (int i, double x);
2865struct s1 {int (*f) (int a);};
2866struct s2 {int (*f) (double a);};
2867int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2868int argc;
2869char **argv;
2870int
2871main ()
2872{
2873return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2874  ;
2875  return 0;
2876}
2877_ACEOF
2878# Don't try gcc -ansi; that turns off useful extensions and
2879# breaks some systems' header files.
2880# AIX			-qlanglvl=ansi
2881# Ultrix and OSF/1	-std1
2882# HP-UX 10.20 and later	-Ae
2883# HP-UX older versions	-Aa -D_HPUX_SOURCE
2884# SVR4			-Xc -D__EXTENSIONS__
2885for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2886do
2887  CC="$ac_save_CC $ac_arg"
2888  rm -f conftest.$ac_objext
2889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890  (eval $ac_compile) 2>conftest.er1
2891  ac_status=$?
2892  grep -v '^ *+' conftest.er1 >conftest.err
2893  rm -f conftest.er1
2894  cat conftest.err >&5
2895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896  (exit $ac_status); } &&
2897	 { ac_try='test -z "$ac_c_werror_flag"
2898			 || test ! -s conftest.err'
2899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900  (eval $ac_try) 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }; } &&
2904	 { ac_try='test -s conftest.$ac_objext'
2905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906  (eval $ac_try) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }; }; then
2910  ac_cv_prog_cc_stdc=$ac_arg
2911break
2912else
2913  echo "$as_me: failed program was:" >&5
2914sed 's/^/| /' conftest.$ac_ext >&5
2915
2916fi
2917rm -f conftest.err conftest.$ac_objext
2918done
2919rm -f conftest.$ac_ext conftest.$ac_objext
2920CC=$ac_save_CC
2921
2922fi
2923
2924case "x$ac_cv_prog_cc_stdc" in
2925  x|xno)
2926    echo "$as_me:$LINENO: result: none needed" >&5
2927echo "${ECHO_T}none needed" >&6 ;;
2928  *)
2929    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2930echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2931    CC="$CC $ac_cv_prog_cc_stdc" ;;
2932esac
2933
2934# Some people use a C++ compiler to compile C.  Since we use `exit',
2935# in C++ we need to declare it.  In case someone uses the same compiler
2936# for both compiling C and C++ we need to have the C++ compiler decide
2937# the declaration of exit, since it's the most demanding environment.
2938cat >conftest.$ac_ext <<_ACEOF
2939#ifndef __cplusplus
2940  choke me
2941#endif
2942_ACEOF
2943rm -f conftest.$ac_objext
2944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945  (eval $ac_compile) 2>conftest.er1
2946  ac_status=$?
2947  grep -v '^ *+' conftest.er1 >conftest.err
2948  rm -f conftest.er1
2949  cat conftest.err >&5
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); } &&
2952	 { ac_try='test -z "$ac_c_werror_flag"
2953			 || test ! -s conftest.err'
2954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955  (eval $ac_try) 2>&5
2956  ac_status=$?
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); }; } &&
2959	 { ac_try='test -s conftest.$ac_objext'
2960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961  (eval $ac_try) 2>&5
2962  ac_status=$?
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); }; }; then
2965  for ac_declaration in \
2966   '' \
2967   'extern "C" void std::exit (int) throw (); using std::exit;' \
2968   'extern "C" void std::exit (int); using std::exit;' \
2969   'extern "C" void exit (int) throw ();' \
2970   'extern "C" void exit (int);' \
2971   'void exit (int);'
2972do
2973  cat >conftest.$ac_ext <<_ACEOF
2974/* confdefs.h.  */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h.  */
2979$ac_declaration
2980#include <stdlib.h>
2981int
2982main ()
2983{
2984exit (42);
2985  ;
2986  return 0;
2987}
2988_ACEOF
2989rm -f conftest.$ac_objext
2990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2991  (eval $ac_compile) 2>conftest.er1
2992  ac_status=$?
2993  grep -v '^ *+' conftest.er1 >conftest.err
2994  rm -f conftest.er1
2995  cat conftest.err >&5
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); } &&
2998	 { ac_try='test -z "$ac_c_werror_flag"
2999			 || test ! -s conftest.err'
3000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001  (eval $ac_try) 2>&5
3002  ac_status=$?
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); }; } &&
3005	 { ac_try='test -s conftest.$ac_objext'
3006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007  (eval $ac_try) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }; }; then
3011  :
3012else
3013  echo "$as_me: failed program was:" >&5
3014sed 's/^/| /' conftest.$ac_ext >&5
3015
3016continue
3017fi
3018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3019  cat >conftest.$ac_ext <<_ACEOF
3020/* confdefs.h.  */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h.  */
3025$ac_declaration
3026int
3027main ()
3028{
3029exit (42);
3030  ;
3031  return 0;
3032}
3033_ACEOF
3034rm -f conftest.$ac_objext
3035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3036  (eval $ac_compile) 2>conftest.er1
3037  ac_status=$?
3038  grep -v '^ *+' conftest.er1 >conftest.err
3039  rm -f conftest.er1
3040  cat conftest.err >&5
3041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); } &&
3043	 { ac_try='test -z "$ac_c_werror_flag"
3044			 || test ! -s conftest.err'
3045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046  (eval $ac_try) 2>&5
3047  ac_status=$?
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); }; } &&
3050	 { ac_try='test -s conftest.$ac_objext'
3051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052  (eval $ac_try) 2>&5
3053  ac_status=$?
3054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055  (exit $ac_status); }; }; then
3056  break
3057else
3058  echo "$as_me: failed program was:" >&5
3059sed 's/^/| /' conftest.$ac_ext >&5
3060
3061fi
3062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3063done
3064rm -f conftest*
3065if test -n "$ac_declaration"; then
3066  echo '#ifdef __cplusplus' >>confdefs.h
3067  echo $ac_declaration      >>confdefs.h
3068  echo '#endif'             >>confdefs.h
3069fi
3070
3071else
3072  echo "$as_me: failed program was:" >&5
3073sed 's/^/| /' conftest.$ac_ext >&5
3074
3075fi
3076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3077ac_ext=c
3078ac_cpp='$CPP $CPPFLAGS'
3079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081ac_compiler_gnu=$ac_cv_c_compiler_gnu
3082
3083depcc="$CC"   am_compiler_list=
3084
3085echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3086echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3087if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3088  echo $ECHO_N "(cached) $ECHO_C" >&6
3089else
3090  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3091  # We make a subdir and do the tests there.  Otherwise we can end up
3092  # making bogus files that we don't know about and never remove.  For
3093  # instance it was reported that on HP-UX the gcc test will end up
3094  # making a dummy file named `D' -- because `-MD' means `put the output
3095  # in D'.
3096  mkdir conftest.dir
3097  # Copy depcomp to subdir because otherwise we won't find it if we're
3098  # using a relative directory.
3099  cp "$am_depcomp" conftest.dir
3100  cd conftest.dir
3101  # We will build objects and dependencies in a subdirectory because
3102  # it helps to detect inapplicable dependency modes.  For instance
3103  # both Tru64's cc and ICC support -MD to output dependencies as a
3104  # side effect of compilation, but ICC will put the dependencies in
3105  # the current directory while Tru64 will put them in the object
3106  # directory.
3107  mkdir sub
3108
3109  am_cv_CC_dependencies_compiler_type=none
3110  if test "$am_compiler_list" = ""; then
3111     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3112  fi
3113  for depmode in $am_compiler_list; do
3114    # Setup a source with many dependencies, because some compilers
3115    # like to wrap large dependency lists on column 80 (with \), and
3116    # we should not choose a depcomp mode which is confused by this.
3117    #
3118    # We need to recreate these files for each test, as the compiler may
3119    # overwrite some of them when testing with obscure command lines.
3120    # This happens at least with the AIX C compiler.
3121    : > sub/conftest.c
3122    for i in 1 2 3 4 5 6; do
3123      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3124      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3125      # Solaris 8's {/usr,}/bin/sh.
3126      touch sub/conftst$i.h
3127    done
3128    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3129
3130    case $depmode in
3131    nosideeffect)
3132      # after this tag, mechanisms are not by side-effect, so they'll
3133      # only be used when explicitly requested
3134      if test "x$enable_dependency_tracking" = xyes; then
3135	continue
3136      else
3137	break
3138      fi
3139      ;;
3140    none) break ;;
3141    esac
3142    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3143    # mode.  It turns out that the SunPro C++ compiler does not properly
3144    # handle `-M -o', and we need to detect this.
3145    if depmode=$depmode \
3146       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3147       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3148       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3149         >/dev/null 2>conftest.err &&
3150       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3151       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3152       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3153      # icc doesn't choke on unknown options, it will just issue warnings
3154      # or remarks (even with -Werror).  So we grep stderr for any message
3155      # that says an option was ignored or not supported.
3156      # When given -MP, icc 7.0 and 7.1 complain thusly:
3157      #   icc: Command line warning: ignoring option '-M'; no argument required
3158      # The diagnosis changed in icc 8.0:
3159      #   icc: Command line remark: option '-MP' not supported
3160      if (grep 'ignoring option' conftest.err ||
3161          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3162        am_cv_CC_dependencies_compiler_type=$depmode
3163        break
3164      fi
3165    fi
3166  done
3167
3168  cd ..
3169  rm -rf conftest.dir
3170else
3171  am_cv_CC_dependencies_compiler_type=none
3172fi
3173
3174fi
3175echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3176echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3177CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3178
3179
3180
3181if
3182  test "x$enable_dependency_tracking" != xno \
3183  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3184  am__fastdepCC_TRUE=
3185  am__fastdepCC_FALSE='#'
3186else
3187  am__fastdepCC_TRUE='#'
3188  am__fastdepCC_FALSE=
3189fi
3190
3191
3192echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3193echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3194if test "${lt_cv_path_SED+set}" = set; then
3195  echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197  # Loop through the user's path and test for sed and gsed.
3198# Then use that list of sed's as ones to test for truncation.
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202  IFS=$as_save_IFS
3203  test -z "$as_dir" && as_dir=.
3204  for lt_ac_prog in sed gsed; do
3205    for ac_exec_ext in '' $ac_executable_extensions; do
3206      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3207        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3208      fi
3209    done
3210  done
3211done
3212IFS=$as_save_IFS
3213lt_ac_max=0
3214lt_ac_count=0
3215# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3216# along with /bin/sed that truncates output.
3217for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3218  test ! -f $lt_ac_sed && continue
3219  cat /dev/null > conftest.in
3220  lt_ac_count=0
3221  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3222  # Check for GNU sed and select it if it is found.
3223  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3224    lt_cv_path_SED=$lt_ac_sed
3225    break
3226  fi
3227  while true; do
3228    cat conftest.in conftest.in >conftest.tmp
3229    mv conftest.tmp conftest.in
3230    cp conftest.in conftest.nl
3231    echo >>conftest.nl
3232    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3233    cmp -s conftest.out conftest.nl || break
3234    # 10000 chars as input seems more than enough
3235    test $lt_ac_count -gt 10 && break
3236    lt_ac_count=`expr $lt_ac_count + 1`
3237    if test $lt_ac_count -gt $lt_ac_max; then
3238      lt_ac_max=$lt_ac_count
3239      lt_cv_path_SED=$lt_ac_sed
3240    fi
3241  done
3242done
3243
3244fi
3245
3246SED=$lt_cv_path_SED
3247
3248echo "$as_me:$LINENO: result: $SED" >&5
3249echo "${ECHO_T}$SED" >&6
3250
3251echo "$as_me:$LINENO: checking for egrep" >&5
3252echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3253if test "${ac_cv_prog_egrep+set}" = set; then
3254  echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3257    then ac_cv_prog_egrep='grep -E'
3258    else ac_cv_prog_egrep='egrep'
3259    fi
3260fi
3261echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3262echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3263 EGREP=$ac_cv_prog_egrep
3264
3265
3266
3267# Check whether --with-gnu-ld or --without-gnu-ld was given.
3268if test "${with_gnu_ld+set}" = set; then
3269  withval="$with_gnu_ld"
3270  test "$withval" = no || with_gnu_ld=yes
3271else
3272  with_gnu_ld=no
3273fi;
3274ac_prog=ld
3275if test "$GCC" = yes; then
3276  # Check if gcc -print-prog-name=ld gives a path.
3277  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3278echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3279  case $host in
3280  *-*-mingw*)
3281    # gcc leaves a trailing carriage return which upsets mingw
3282    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3283  *)
3284    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3285  esac
3286  case $ac_prog in
3287    # Accept absolute paths.
3288    [\\/]* | ?:[\\/]*)
3289      re_direlt='/[^/][^/]*/\.\./'
3290      # Canonicalize the pathname of ld
3291      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3292      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3293	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3294      done
3295      test -z "$LD" && LD="$ac_prog"
3296      ;;
3297  "")
3298    # If it fails, then pretend we aren't using GCC.
3299    ac_prog=ld
3300    ;;
3301  *)
3302    # If it is relative, then search for the first ld in PATH.
3303    with_gnu_ld=unknown
3304    ;;
3305  esac
3306elif test "$with_gnu_ld" = yes; then
3307  echo "$as_me:$LINENO: checking for GNU ld" >&5
3308echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3309else
3310  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3311echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3312fi
3313if test "${lt_cv_path_LD+set}" = set; then
3314  echo $ECHO_N "(cached) $ECHO_C" >&6
3315else
3316  if test -z "$LD"; then
3317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3318  for ac_dir in $PATH; do
3319    IFS="$lt_save_ifs"
3320    test -z "$ac_dir" && ac_dir=.
3321    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3322      lt_cv_path_LD="$ac_dir/$ac_prog"
3323      # Check to see if the program is GNU ld.  I'd rather use --version,
3324      # but apparently some variants of GNU ld only accept -v.
3325      # Break only if it was the GNU/non-GNU ld that we prefer.
3326      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3327      *GNU* | *'with BFD'*)
3328	test "$with_gnu_ld" != no && break
3329	;;
3330      *)
3331	test "$with_gnu_ld" != yes && break
3332	;;
3333      esac
3334    fi
3335  done
3336  IFS="$lt_save_ifs"
3337else
3338  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3339fi
3340fi
3341
3342LD="$lt_cv_path_LD"
3343if test -n "$LD"; then
3344  echo "$as_me:$LINENO: result: $LD" >&5
3345echo "${ECHO_T}$LD" >&6
3346else
3347  echo "$as_me:$LINENO: result: no" >&5
3348echo "${ECHO_T}no" >&6
3349fi
3350test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3351echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3352   { (exit 1); exit 1; }; }
3353echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3354echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3355if test "${lt_cv_prog_gnu_ld+set}" = set; then
3356  echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
3358  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3359case `$LD -v 2>&1 </dev/null` in
3360*GNU* | *'with BFD'*)
3361  lt_cv_prog_gnu_ld=yes
3362  ;;
3363*)
3364  lt_cv_prog_gnu_ld=no
3365  ;;
3366esac
3367fi
3368echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3369echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3370with_gnu_ld=$lt_cv_prog_gnu_ld
3371
3372
3373echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3374echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3375if test "${lt_cv_ld_reload_flag+set}" = set; then
3376  echo $ECHO_N "(cached) $ECHO_C" >&6
3377else
3378  lt_cv_ld_reload_flag='-r'
3379fi
3380echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3381echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3382reload_flag=$lt_cv_ld_reload_flag
3383case $reload_flag in
3384"" | " "*) ;;
3385*) reload_flag=" $reload_flag" ;;
3386esac
3387reload_cmds='$LD$reload_flag -o $output$reload_objs'
3388case $host_os in
3389  darwin*)
3390    if test "$GCC" = yes; then
3391      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3392    else
3393      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3394    fi
3395    ;;
3396esac
3397
3398echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3399echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3400if test "${lt_cv_path_NM+set}" = set; then
3401  echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403  if test -n "$NM"; then
3404  # Let the user override the test.
3405  lt_cv_path_NM="$NM"
3406else
3407  lt_nm_to_check="${ac_tool_prefix}nm"
3408  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3409    lt_nm_to_check="$lt_nm_to_check nm"
3410  fi
3411  for lt_tmp_nm in $lt_nm_to_check; do
3412    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3413    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3414      IFS="$lt_save_ifs"
3415      test -z "$ac_dir" && ac_dir=.
3416      tmp_nm="$ac_dir/$lt_tmp_nm"
3417      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3418	# Check to see if the nm accepts a BSD-compat flag.
3419	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3420	#   nm: unknown option "B" ignored
3421	# Tru64's nm complains that /dev/null is an invalid object file
3422	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3423	*/dev/null* | *'Invalid file or object type'*)
3424	  lt_cv_path_NM="$tmp_nm -B"
3425	  break
3426	  ;;
3427	*)
3428	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3429	  */dev/null*)
3430	    lt_cv_path_NM="$tmp_nm -p"
3431	    break
3432	    ;;
3433	  *)
3434	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3435	    continue # so that we can try to find one that supports BSD flags
3436	    ;;
3437	  esac
3438	  ;;
3439	esac
3440      fi
3441    done
3442    IFS="$lt_save_ifs"
3443  done
3444  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3445fi
3446fi
3447echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3448echo "${ECHO_T}$lt_cv_path_NM" >&6
3449NM="$lt_cv_path_NM"
3450
3451echo "$as_me:$LINENO: checking whether ln -s works" >&5
3452echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3453LN_S=$as_ln_s
3454if test "$LN_S" = "ln -s"; then
3455  echo "$as_me:$LINENO: result: yes" >&5
3456echo "${ECHO_T}yes" >&6
3457else
3458  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3459echo "${ECHO_T}no, using $LN_S" >&6
3460fi
3461
3462echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3463echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
3464if test "${lt_cv_deplibs_check_method+set}" = set; then
3465  echo $ECHO_N "(cached) $ECHO_C" >&6
3466else
3467  lt_cv_file_magic_cmd='$MAGIC_CMD'
3468lt_cv_file_magic_test_file=
3469lt_cv_deplibs_check_method='unknown'
3470# Need to set the preceding variable on all platforms that support
3471# interlibrary dependencies.
3472# 'none' -- dependencies not supported.
3473# `unknown' -- same as none, but documents that we really don't know.
3474# 'pass_all' -- all dependencies passed with no checks.
3475# 'test_compile' -- check by making test program.
3476# 'file_magic [[regex]]' -- check by looking for files in library path
3477# which responds to the $file_magic_cmd with a given extended regex.
3478# If you have `file' or equivalent on your system and you're not sure
3479# whether `pass_all' will *always* work, you probably want this one.
3480
3481case $host_os in
3482aix[4-9]*)
3483  lt_cv_deplibs_check_method=pass_all
3484  ;;
3485
3486beos*)
3487  lt_cv_deplibs_check_method=pass_all
3488  ;;
3489
3490bsdi[45]*)
3491  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3492  lt_cv_file_magic_cmd='/usr/bin/file -L'
3493  lt_cv_file_magic_test_file=/shlib/libc.so
3494  ;;
3495
3496cygwin*)
3497  # func_win32_libid is a shell function defined in ltmain.sh
3498  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3499  lt_cv_file_magic_cmd='func_win32_libid'
3500  ;;
3501
3502mingw* | pw32*)
3503  # Base MSYS/MinGW do not provide the 'file' command needed by
3504  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3505  # unless we find 'file', for example because we are cross-compiling.
3506  if ( file / ) >/dev/null 2>&1; then
3507    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3508    lt_cv_file_magic_cmd='func_win32_libid'
3509  else
3510    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3511    lt_cv_file_magic_cmd='$OBJDUMP -f'
3512  fi
3513  ;;
3514
3515darwin* | rhapsody*)
3516  lt_cv_deplibs_check_method=pass_all
3517  ;;
3518
3519freebsd* | dragonfly*)
3520  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3521    case $host_cpu in
3522    i*86 )
3523      # Not sure whether the presence of OpenBSD here was a mistake.
3524      # Let's accept both of them until this is cleared up.
3525      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3526      lt_cv_file_magic_cmd=/usr/bin/file
3527      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3528      ;;
3529    esac
3530  else
3531    lt_cv_deplibs_check_method=pass_all
3532  fi
3533  ;;
3534
3535gnu*)
3536  lt_cv_deplibs_check_method=pass_all
3537  ;;
3538
3539hpux10.20* | hpux11*)
3540  lt_cv_file_magic_cmd=/usr/bin/file
3541  case $host_cpu in
3542  ia64*)
3543    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3544    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3545    ;;
3546  hppa*64*)
3547    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3548    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3549    ;;
3550  *)
3551    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3552    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3553    ;;
3554  esac
3555  ;;
3556
3557interix[3-9]*)
3558  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3559  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3560  ;;
3561
3562irix5* | irix6* | nonstopux*)
3563  case $LD in
3564  *-32|*"-32 ") libmagic=32-bit;;
3565  *-n32|*"-n32 ") libmagic=N32;;
3566  *-64|*"-64 ") libmagic=64-bit;;
3567  *) libmagic=never-match;;
3568  esac
3569  lt_cv_deplibs_check_method=pass_all
3570  ;;
3571
3572# This must be Linux ELF.
3573linux* | k*bsd*-gnu)
3574  lt_cv_deplibs_check_method=pass_all
3575  ;;
3576
3577netbsd*)
3578  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3579    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3580  else
3581    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3582  fi
3583  ;;
3584
3585newos6*)
3586  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3587  lt_cv_file_magic_cmd=/usr/bin/file
3588  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3589  ;;
3590
3591nto-qnx*)
3592  lt_cv_deplibs_check_method=unknown
3593  ;;
3594
3595openbsd*)
3596  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3597    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3598  else
3599    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3600  fi
3601  ;;
3602
3603osf3* | osf4* | osf5*)
3604  lt_cv_deplibs_check_method=pass_all
3605  ;;
3606
3607rdos*)
3608  lt_cv_deplibs_check_method=pass_all
3609  ;;
3610
3611solaris*)
3612  lt_cv_deplibs_check_method=pass_all
3613  ;;
3614
3615sysv4 | sysv4.3*)
3616  case $host_vendor in
3617  motorola)
3618    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3619    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3620    ;;
3621  ncr)
3622    lt_cv_deplibs_check_method=pass_all
3623    ;;
3624  sequent)
3625    lt_cv_file_magic_cmd='/bin/file'
3626    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3627    ;;
3628  sni)
3629    lt_cv_file_magic_cmd='/bin/file'
3630    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3631    lt_cv_file_magic_test_file=/lib/libc.so
3632    ;;
3633  siemens)
3634    lt_cv_deplibs_check_method=pass_all
3635    ;;
3636  pc)
3637    lt_cv_deplibs_check_method=pass_all
3638    ;;
3639  esac
3640  ;;
3641
3642sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3643  lt_cv_deplibs_check_method=pass_all
3644  ;;
3645esac
3646
3647fi
3648echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3649echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3650file_magic_cmd=$lt_cv_file_magic_cmd
3651deplibs_check_method=$lt_cv_deplibs_check_method
3652test -z "$deplibs_check_method" && deplibs_check_method=unknown
3653
3654
3655
3656
3657# If no C compiler was specified, use CC.
3658LTCC=${LTCC-"$CC"}
3659
3660# If no C compiler flags were specified, use CFLAGS.
3661LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3662
3663# Allow CC to be a program name with arguments.
3664compiler=$CC
3665
3666
3667# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3668if test "${enable_libtool_lock+set}" = set; then
3669  enableval="$enable_libtool_lock"
3670
3671fi;
3672test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3673
3674# Some flags need to be propagated to the compiler or linker for good
3675# libtool support.
3676case $host in
3677ia64-*-hpux*)
3678  # Find out which ABI we are using.
3679  echo 'int i;' > conftest.$ac_ext
3680  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681  (eval $ac_compile) 2>&5
3682  ac_status=$?
3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684  (exit $ac_status); }; then
3685    case `/usr/bin/file conftest.$ac_objext` in
3686    *ELF-32*)
3687      HPUX_IA64_MODE="32"
3688      ;;
3689    *ELF-64*)
3690      HPUX_IA64_MODE="64"
3691      ;;
3692    esac
3693  fi
3694  rm -rf conftest*
3695  ;;
3696*-*-irix6*)
3697  # Find out which ABI we are using.
3698  echo '#line 3698 "configure"' > conftest.$ac_ext
3699  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700  (eval $ac_compile) 2>&5
3701  ac_status=$?
3702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703  (exit $ac_status); }; then
3704   if test "$lt_cv_prog_gnu_ld" = yes; then
3705    case `/usr/bin/file conftest.$ac_objext` in
3706    *32-bit*)
3707      LD="${LD-ld} -melf32bsmip"
3708      ;;
3709    *N32*)
3710      LD="${LD-ld} -melf32bmipn32"
3711      ;;
3712    *64-bit*)
3713      LD="${LD-ld} -melf64bmip"
3714      ;;
3715    esac
3716   else
3717    case `/usr/bin/file conftest.$ac_objext` in
3718    *32-bit*)
3719      LD="${LD-ld} -32"
3720      ;;
3721    *N32*)
3722      LD="${LD-ld} -n32"
3723      ;;
3724    *64-bit*)
3725      LD="${LD-ld} -64"
3726      ;;
3727    esac
3728   fi
3729  fi
3730  rm -rf conftest*
3731  ;;
3732
3733x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3734s390*-*linux*|sparc*-*linux*)
3735  # Find out which ABI we are using.
3736  echo 'int i;' > conftest.$ac_ext
3737  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738  (eval $ac_compile) 2>&5
3739  ac_status=$?
3740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741  (exit $ac_status); }; then
3742    case `/usr/bin/file conftest.o` in
3743    *32-bit*)
3744      case $host in
3745        x86_64-*kfreebsd*-gnu)
3746          LD="${LD-ld} -m elf_i386_fbsd"
3747          ;;
3748        x86_64-*linux*)
3749          LD="${LD-ld} -m elf_i386"
3750          ;;
3751        ppc64-*linux*|powerpc64-*linux*)
3752          LD="${LD-ld} -m elf32ppclinux"
3753          ;;
3754        s390x-*linux*)
3755          LD="${LD-ld} -m elf_s390"
3756          ;;
3757        sparc64-*linux*)
3758          LD="${LD-ld} -m elf32_sparc"
3759          ;;
3760      esac
3761      ;;
3762    *64-bit*)
3763      case $host in
3764        x86_64-*kfreebsd*-gnu)
3765          LD="${LD-ld} -m elf_x86_64_fbsd"
3766          ;;
3767        x86_64-*linux*)
3768          LD="${LD-ld} -m elf_x86_64"
3769          ;;
3770        ppc*-*linux*|powerpc*-*linux*)
3771          LD="${LD-ld} -m elf64ppc"
3772          ;;
3773        s390*-*linux*)
3774          LD="${LD-ld} -m elf64_s390"
3775          ;;
3776        sparc*-*linux*)
3777          LD="${LD-ld} -m elf64_sparc"
3778          ;;
3779      esac
3780      ;;
3781    esac
3782  fi
3783  rm -rf conftest*
3784  ;;
3785
3786*-*-sco3.2v5*)
3787  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3788  SAVE_CFLAGS="$CFLAGS"
3789  CFLAGS="$CFLAGS -belf"
3790  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3791echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3792if test "${lt_cv_cc_needs_belf+set}" = set; then
3793  echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795  ac_ext=c
3796ac_cpp='$CPP $CPPFLAGS'
3797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800
3801     cat >conftest.$ac_ext <<_ACEOF
3802/* confdefs.h.  */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
3806/* end confdefs.h.  */
3807
3808int
3809main ()
3810{
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816rm -f conftest.$ac_objext conftest$ac_exeext
3817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818  (eval $ac_link) 2>conftest.er1
3819  ac_status=$?
3820  grep -v '^ *+' conftest.er1 >conftest.err
3821  rm -f conftest.er1
3822  cat conftest.err >&5
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); } &&
3825	 { ac_try='test -z "$ac_c_werror_flag"
3826			 || test ! -s conftest.err'
3827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828  (eval $ac_try) 2>&5
3829  ac_status=$?
3830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831  (exit $ac_status); }; } &&
3832	 { ac_try='test -s conftest$ac_exeext'
3833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834  (eval $ac_try) 2>&5
3835  ac_status=$?
3836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); }; }; then
3838  lt_cv_cc_needs_belf=yes
3839else
3840  echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843lt_cv_cc_needs_belf=no
3844fi
3845rm -f conftest.err conftest.$ac_objext \
3846      conftest$ac_exeext conftest.$ac_ext
3847     ac_ext=c
3848ac_cpp='$CPP $CPPFLAGS'
3849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852
3853fi
3854echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3855echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3856  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3857    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3858    CFLAGS="$SAVE_CFLAGS"
3859  fi
3860  ;;
3861sparc*-*solaris*)
3862  # Find out which ABI we are using.
3863  echo 'int i;' > conftest.$ac_ext
3864  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865  (eval $ac_compile) 2>&5
3866  ac_status=$?
3867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868  (exit $ac_status); }; then
3869    case `/usr/bin/file conftest.o` in
3870    *64-bit*)
3871      case $lt_cv_prog_gnu_ld in
3872      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3873      *)
3874        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
3875	  LD="${LD-ld} -64"
3876	fi
3877	;;
3878      esac
3879      ;;
3880    esac
3881  fi
3882  rm -rf conftest*
3883  ;;
3884
3885
3886esac
3887
3888need_locks="$enable_libtool_lock"
3889
3890
3891ac_ext=c
3892ac_cpp='$CPP $CPPFLAGS'
3893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3897echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3898# On Suns, sometimes $CPP names a directory.
3899if test -n "$CPP" && test -d "$CPP"; then
3900  CPP=
3901fi
3902if test -z "$CPP"; then
3903  if test "${ac_cv_prog_CPP+set}" = set; then
3904  echo $ECHO_N "(cached) $ECHO_C" >&6
3905else
3906      # Double quotes because CPP needs to be expanded
3907    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3908    do
3909      ac_preproc_ok=false
3910for ac_c_preproc_warn_flag in '' yes
3911do
3912  # Use a header file that comes with gcc, so configuring glibc
3913  # with a fresh cross-compiler works.
3914  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3915  # <limits.h> exists even on freestanding compilers.
3916  # On the NeXT, cc -E runs the code through the compiler's parser,
3917  # not just through cpp. "Syntax error" is here to catch this case.
3918  cat >conftest.$ac_ext <<_ACEOF
3919/* confdefs.h.  */
3920_ACEOF
3921cat confdefs.h >>conftest.$ac_ext
3922cat >>conftest.$ac_ext <<_ACEOF
3923/* end confdefs.h.  */
3924#ifdef __STDC__
3925# include <limits.h>
3926#else
3927# include <assert.h>
3928#endif
3929		     Syntax error
3930_ACEOF
3931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3932  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3933  ac_status=$?
3934  grep -v '^ *+' conftest.er1 >conftest.err
3935  rm -f conftest.er1
3936  cat conftest.err >&5
3937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938  (exit $ac_status); } >/dev/null; then
3939  if test -s conftest.err; then
3940    ac_cpp_err=$ac_c_preproc_warn_flag
3941    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3942  else
3943    ac_cpp_err=
3944  fi
3945else
3946  ac_cpp_err=yes
3947fi
3948if test -z "$ac_cpp_err"; then
3949  :
3950else
3951  echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954  # Broken: fails on valid input.
3955continue
3956fi
3957rm -f conftest.err conftest.$ac_ext
3958
3959  # OK, works on sane cases.  Now check whether non-existent headers
3960  # can be detected and how.
3961  cat >conftest.$ac_ext <<_ACEOF
3962/* confdefs.h.  */
3963_ACEOF
3964cat confdefs.h >>conftest.$ac_ext
3965cat >>conftest.$ac_ext <<_ACEOF
3966/* end confdefs.h.  */
3967#include <ac_nonexistent.h>
3968_ACEOF
3969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3970  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3971  ac_status=$?
3972  grep -v '^ *+' conftest.er1 >conftest.err
3973  rm -f conftest.er1
3974  cat conftest.err >&5
3975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976  (exit $ac_status); } >/dev/null; then
3977  if test -s conftest.err; then
3978    ac_cpp_err=$ac_c_preproc_warn_flag
3979    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3980  else
3981    ac_cpp_err=
3982  fi
3983else
3984  ac_cpp_err=yes
3985fi
3986if test -z "$ac_cpp_err"; then
3987  # Broken: success on invalid input.
3988continue
3989else
3990  echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
3992
3993  # Passes both tests.
3994ac_preproc_ok=:
3995break
3996fi
3997rm -f conftest.err conftest.$ac_ext
3998
3999done
4000# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4001rm -f conftest.err conftest.$ac_ext
4002if $ac_preproc_ok; then
4003  break
4004fi
4005
4006    done
4007    ac_cv_prog_CPP=$CPP
4008
4009fi
4010  CPP=$ac_cv_prog_CPP
4011else
4012  ac_cv_prog_CPP=$CPP
4013fi
4014echo "$as_me:$LINENO: result: $CPP" >&5
4015echo "${ECHO_T}$CPP" >&6
4016ac_preproc_ok=false
4017for ac_c_preproc_warn_flag in '' yes
4018do
4019  # Use a header file that comes with gcc, so configuring glibc
4020  # with a fresh cross-compiler works.
4021  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4022  # <limits.h> exists even on freestanding compilers.
4023  # On the NeXT, cc -E runs the code through the compiler's parser,
4024  # not just through cpp. "Syntax error" is here to catch this case.
4025  cat >conftest.$ac_ext <<_ACEOF
4026/* confdefs.h.  */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h.  */
4031#ifdef __STDC__
4032# include <limits.h>
4033#else
4034# include <assert.h>
4035#endif
4036		     Syntax error
4037_ACEOF
4038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4039  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4040  ac_status=$?
4041  grep -v '^ *+' conftest.er1 >conftest.err
4042  rm -f conftest.er1
4043  cat conftest.err >&5
4044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045  (exit $ac_status); } >/dev/null; then
4046  if test -s conftest.err; then
4047    ac_cpp_err=$ac_c_preproc_warn_flag
4048    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4049  else
4050    ac_cpp_err=
4051  fi
4052else
4053  ac_cpp_err=yes
4054fi
4055if test -z "$ac_cpp_err"; then
4056  :
4057else
4058  echo "$as_me: failed program was:" >&5
4059sed 's/^/| /' conftest.$ac_ext >&5
4060
4061  # Broken: fails on valid input.
4062continue
4063fi
4064rm -f conftest.err conftest.$ac_ext
4065
4066  # OK, works on sane cases.  Now check whether non-existent headers
4067  # can be detected and how.
4068  cat >conftest.$ac_ext <<_ACEOF
4069/* confdefs.h.  */
4070_ACEOF
4071cat confdefs.h >>conftest.$ac_ext
4072cat >>conftest.$ac_ext <<_ACEOF
4073/* end confdefs.h.  */
4074#include <ac_nonexistent.h>
4075_ACEOF
4076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4077  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4078  ac_status=$?
4079  grep -v '^ *+' conftest.er1 >conftest.err
4080  rm -f conftest.er1
4081  cat conftest.err >&5
4082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083  (exit $ac_status); } >/dev/null; then
4084  if test -s conftest.err; then
4085    ac_cpp_err=$ac_c_preproc_warn_flag
4086    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4087  else
4088    ac_cpp_err=
4089  fi
4090else
4091  ac_cpp_err=yes
4092fi
4093if test -z "$ac_cpp_err"; then
4094  # Broken: success on invalid input.
4095continue
4096else
4097  echo "$as_me: failed program was:" >&5
4098sed 's/^/| /' conftest.$ac_ext >&5
4099
4100  # Passes both tests.
4101ac_preproc_ok=:
4102break
4103fi
4104rm -f conftest.err conftest.$ac_ext
4105
4106done
4107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108rm -f conftest.err conftest.$ac_ext
4109if $ac_preproc_ok; then
4110  :
4111else
4112  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4113See \`config.log' for more details." >&5
4114echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4115See \`config.log' for more details." >&2;}
4116   { (exit 1); exit 1; }; }
4117fi
4118
4119ac_ext=c
4120ac_cpp='$CPP $CPPFLAGS'
4121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124
4125
4126echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4127echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4128if test "${ac_cv_header_stdc+set}" = set; then
4129  echo $ECHO_N "(cached) $ECHO_C" >&6
4130else
4131  cat >conftest.$ac_ext <<_ACEOF
4132/* confdefs.h.  */
4133_ACEOF
4134cat confdefs.h >>conftest.$ac_ext
4135cat >>conftest.$ac_ext <<_ACEOF
4136/* end confdefs.h.  */
4137#include <stdlib.h>
4138#include <stdarg.h>
4139#include <string.h>
4140#include <float.h>
4141
4142int
4143main ()
4144{
4145
4146  ;
4147  return 0;
4148}
4149_ACEOF
4150rm -f conftest.$ac_objext
4151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152  (eval $ac_compile) 2>conftest.er1
4153  ac_status=$?
4154  grep -v '^ *+' conftest.er1 >conftest.err
4155  rm -f conftest.er1
4156  cat conftest.err >&5
4157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158  (exit $ac_status); } &&
4159	 { ac_try='test -z "$ac_c_werror_flag"
4160			 || test ! -s conftest.err'
4161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162  (eval $ac_try) 2>&5
4163  ac_status=$?
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); }; } &&
4166	 { ac_try='test -s conftest.$ac_objext'
4167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168  (eval $ac_try) 2>&5
4169  ac_status=$?
4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171  (exit $ac_status); }; }; then
4172  ac_cv_header_stdc=yes
4173else
4174  echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
4177ac_cv_header_stdc=no
4178fi
4179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4180
4181if test $ac_cv_header_stdc = yes; then
4182  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4183  cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h.  */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h.  */
4189#include <string.h>
4190
4191_ACEOF
4192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193  $EGREP "memchr" >/dev/null 2>&1; then
4194  :
4195else
4196  ac_cv_header_stdc=no
4197fi
4198rm -f conftest*
4199
4200fi
4201
4202if test $ac_cv_header_stdc = yes; then
4203  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4204  cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h.  */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h.  */
4210#include <stdlib.h>
4211
4212_ACEOF
4213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214  $EGREP "free" >/dev/null 2>&1; then
4215  :
4216else
4217  ac_cv_header_stdc=no
4218fi
4219rm -f conftest*
4220
4221fi
4222
4223if test $ac_cv_header_stdc = yes; then
4224  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4225  if test "$cross_compiling" = yes; then
4226  :
4227else
4228  cat >conftest.$ac_ext <<_ACEOF
4229/* confdefs.h.  */
4230_ACEOF
4231cat confdefs.h >>conftest.$ac_ext
4232cat >>conftest.$ac_ext <<_ACEOF
4233/* end confdefs.h.  */
4234#include <ctype.h>
4235#if ((' ' & 0x0FF) == 0x020)
4236# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4237# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4238#else
4239# define ISLOWER(c) \
4240		   (('a' <= (c) && (c) <= 'i') \
4241		     || ('j' <= (c) && (c) <= 'r') \
4242		     || ('s' <= (c) && (c) <= 'z'))
4243# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4244#endif
4245
4246#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4247int
4248main ()
4249{
4250  int i;
4251  for (i = 0; i < 256; i++)
4252    if (XOR (islower (i), ISLOWER (i))
4253	|| toupper (i) != TOUPPER (i))
4254      exit(2);
4255  exit (0);
4256}
4257_ACEOF
4258rm -f conftest$ac_exeext
4259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4260  (eval $ac_link) 2>&5
4261  ac_status=$?
4262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265  (eval $ac_try) 2>&5
4266  ac_status=$?
4267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268  (exit $ac_status); }; }; then
4269  :
4270else
4271  echo "$as_me: program exited with status $ac_status" >&5
4272echo "$as_me: failed program was:" >&5
4273sed 's/^/| /' conftest.$ac_ext >&5
4274
4275( exit $ac_status )
4276ac_cv_header_stdc=no
4277fi
4278rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4279fi
4280fi
4281fi
4282echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4283echo "${ECHO_T}$ac_cv_header_stdc" >&6
4284if test $ac_cv_header_stdc = yes; then
4285
4286cat >>confdefs.h <<\_ACEOF
4287#define STDC_HEADERS 1
4288_ACEOF
4289
4290fi
4291
4292# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4303		  inttypes.h stdint.h unistd.h
4304do
4305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4306echo "$as_me:$LINENO: checking for $ac_header" >&5
4307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4308if eval "test \"\${$as_ac_Header+set}\" = set"; then
4309  echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311  cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h.  */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h.  */
4317$ac_includes_default
4318
4319#include <$ac_header>
4320_ACEOF
4321rm -f conftest.$ac_objext
4322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4323  (eval $ac_compile) 2>conftest.er1
4324  ac_status=$?
4325  grep -v '^ *+' conftest.er1 >conftest.err
4326  rm -f conftest.er1
4327  cat conftest.err >&5
4328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329  (exit $ac_status); } &&
4330	 { ac_try='test -z "$ac_c_werror_flag"
4331			 || test ! -s conftest.err'
4332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333  (eval $ac_try) 2>&5
4334  ac_status=$?
4335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336  (exit $ac_status); }; } &&
4337	 { ac_try='test -s conftest.$ac_objext'
4338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339  (eval $ac_try) 2>&5
4340  ac_status=$?
4341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342  (exit $ac_status); }; }; then
4343  eval "$as_ac_Header=yes"
4344else
4345  echo "$as_me: failed program was:" >&5
4346sed 's/^/| /' conftest.$ac_ext >&5
4347
4348eval "$as_ac_Header=no"
4349fi
4350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4351fi
4352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4354if test `eval echo '${'$as_ac_Header'}'` = yes; then
4355  cat >>confdefs.h <<_ACEOF
4356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4357_ACEOF
4358
4359fi
4360
4361done
4362
4363
4364
4365for ac_header in dlfcn.h
4366do
4367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4368if eval "test \"\${$as_ac_Header+set}\" = set"; then
4369  echo "$as_me:$LINENO: checking for $ac_header" >&5
4370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4371if eval "test \"\${$as_ac_Header+set}\" = set"; then
4372  echo $ECHO_N "(cached) $ECHO_C" >&6
4373fi
4374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4376else
4377  # Is the header compilable?
4378echo "$as_me:$LINENO: checking $ac_header usability" >&5
4379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4380cat >conftest.$ac_ext <<_ACEOF
4381/* confdefs.h.  */
4382_ACEOF
4383cat confdefs.h >>conftest.$ac_ext
4384cat >>conftest.$ac_ext <<_ACEOF
4385/* end confdefs.h.  */
4386$ac_includes_default
4387#include <$ac_header>
4388_ACEOF
4389rm -f conftest.$ac_objext
4390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391  (eval $ac_compile) 2>conftest.er1
4392  ac_status=$?
4393  grep -v '^ *+' conftest.er1 >conftest.err
4394  rm -f conftest.er1
4395  cat conftest.err >&5
4396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397  (exit $ac_status); } &&
4398	 { ac_try='test -z "$ac_c_werror_flag"
4399			 || test ! -s conftest.err'
4400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401  (eval $ac_try) 2>&5
4402  ac_status=$?
4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404  (exit $ac_status); }; } &&
4405	 { ac_try='test -s conftest.$ac_objext'
4406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407  (eval $ac_try) 2>&5
4408  ac_status=$?
4409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410  (exit $ac_status); }; }; then
4411  ac_header_compiler=yes
4412else
4413  echo "$as_me: failed program was:" >&5
4414sed 's/^/| /' conftest.$ac_ext >&5
4415
4416ac_header_compiler=no
4417fi
4418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4419echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4420echo "${ECHO_T}$ac_header_compiler" >&6
4421
4422# Is the header present?
4423echo "$as_me:$LINENO: checking $ac_header presence" >&5
4424echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4425cat >conftest.$ac_ext <<_ACEOF
4426/* confdefs.h.  */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
4430/* end confdefs.h.  */
4431#include <$ac_header>
4432_ACEOF
4433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4434  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4435  ac_status=$?
4436  grep -v '^ *+' conftest.er1 >conftest.err
4437  rm -f conftest.er1
4438  cat conftest.err >&5
4439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440  (exit $ac_status); } >/dev/null; then
4441  if test -s conftest.err; then
4442    ac_cpp_err=$ac_c_preproc_warn_flag
4443    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4444  else
4445    ac_cpp_err=
4446  fi
4447else
4448  ac_cpp_err=yes
4449fi
4450if test -z "$ac_cpp_err"; then
4451  ac_header_preproc=yes
4452else
4453  echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456  ac_header_preproc=no
4457fi
4458rm -f conftest.err conftest.$ac_ext
4459echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4460echo "${ECHO_T}$ac_header_preproc" >&6
4461
4462# So?  What about this header?
4463case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4464  yes:no: )
4465    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4466echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4467    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4468echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4469    ac_header_preproc=yes
4470    ;;
4471  no:yes:* )
4472    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4473echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4474    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4475echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4476    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4477echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4478    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4479echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4480    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4481echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4482    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4483echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4484    (
4485      cat <<\_ASBOX
4486## ---------------------------------------------------------------------- ##
4487## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4488## ---------------------------------------------------------------------- ##
4489_ASBOX
4490    ) |
4491      sed "s/^/$as_me: WARNING:     /" >&2
4492    ;;
4493esac
4494echo "$as_me:$LINENO: checking for $ac_header" >&5
4495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4496if eval "test \"\${$as_ac_Header+set}\" = set"; then
4497  echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499  eval "$as_ac_Header=\$ac_header_preproc"
4500fi
4501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4503
4504fi
4505if test `eval echo '${'$as_ac_Header'}'` = yes; then
4506  cat >>confdefs.h <<_ACEOF
4507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4508_ACEOF
4509
4510fi
4511
4512done
4513
4514ac_ext=cc
4515ac_cpp='$CXXCPP $CPPFLAGS'
4516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4519if test -n "$ac_tool_prefix"; then
4520  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4521  do
4522    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4523set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4524echo "$as_me:$LINENO: checking for $ac_word" >&5
4525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526if test "${ac_cv_prog_CXX+set}" = set; then
4527  echo $ECHO_N "(cached) $ECHO_C" >&6
4528else
4529  if test -n "$CXX"; then
4530  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4531else
4532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533for as_dir in $PATH
4534do
4535  IFS=$as_save_IFS
4536  test -z "$as_dir" && as_dir=.
4537  for ac_exec_ext in '' $ac_executable_extensions; do
4538  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4541    break 2
4542  fi
4543done
4544done
4545
4546fi
4547fi
4548CXX=$ac_cv_prog_CXX
4549if test -n "$CXX"; then
4550  echo "$as_me:$LINENO: result: $CXX" >&5
4551echo "${ECHO_T}$CXX" >&6
4552else
4553  echo "$as_me:$LINENO: result: no" >&5
4554echo "${ECHO_T}no" >&6
4555fi
4556
4557    test -n "$CXX" && break
4558  done
4559fi
4560if test -z "$CXX"; then
4561  ac_ct_CXX=$CXX
4562  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4563do
4564  # Extract the first word of "$ac_prog", so it can be a program name with args.
4565set dummy $ac_prog; ac_word=$2
4566echo "$as_me:$LINENO: checking for $ac_word" >&5
4567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4568if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4569  echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571  if test -n "$ac_ct_CXX"; then
4572  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4573else
4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577  IFS=$as_save_IFS
4578  test -z "$as_dir" && as_dir=.
4579  for ac_exec_ext in '' $ac_executable_extensions; do
4580  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581    ac_cv_prog_ac_ct_CXX="$ac_prog"
4582    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583    break 2
4584  fi
4585done
4586done
4587
4588fi
4589fi
4590ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4591if test -n "$ac_ct_CXX"; then
4592  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4593echo "${ECHO_T}$ac_ct_CXX" >&6
4594else
4595  echo "$as_me:$LINENO: result: no" >&5
4596echo "${ECHO_T}no" >&6
4597fi
4598
4599  test -n "$ac_ct_CXX" && break
4600done
4601test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4602
4603  CXX=$ac_ct_CXX
4604fi
4605
4606
4607# Provide some information about the compiler.
4608echo "$as_me:$LINENO:" \
4609     "checking for C++ compiler version" >&5
4610ac_compiler=`set X $ac_compile; echo $2`
4611{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4612  (eval $ac_compiler --version </dev/null >&5) 2>&5
4613  ac_status=$?
4614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615  (exit $ac_status); }
4616{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4617  (eval $ac_compiler -v </dev/null >&5) 2>&5
4618  ac_status=$?
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); }
4621{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4622  (eval $ac_compiler -V </dev/null >&5) 2>&5
4623  ac_status=$?
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); }
4626
4627echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4628echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4629if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4630  echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632  cat >conftest.$ac_ext <<_ACEOF
4633/* confdefs.h.  */
4634_ACEOF
4635cat confdefs.h >>conftest.$ac_ext
4636cat >>conftest.$ac_ext <<_ACEOF
4637/* end confdefs.h.  */
4638
4639int
4640main ()
4641{
4642#ifndef __GNUC__
4643       choke me
4644#endif
4645
4646  ;
4647  return 0;
4648}
4649_ACEOF
4650rm -f conftest.$ac_objext
4651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4652  (eval $ac_compile) 2>conftest.er1
4653  ac_status=$?
4654  grep -v '^ *+' conftest.er1 >conftest.err
4655  rm -f conftest.er1
4656  cat conftest.err >&5
4657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658  (exit $ac_status); } &&
4659	 { ac_try='test -z "$ac_cxx_werror_flag"
4660			 || test ! -s conftest.err'
4661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662  (eval $ac_try) 2>&5
4663  ac_status=$?
4664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665  (exit $ac_status); }; } &&
4666	 { ac_try='test -s conftest.$ac_objext'
4667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668  (eval $ac_try) 2>&5
4669  ac_status=$?
4670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671  (exit $ac_status); }; }; then
4672  ac_compiler_gnu=yes
4673else
4674  echo "$as_me: failed program was:" >&5
4675sed 's/^/| /' conftest.$ac_ext >&5
4676
4677ac_compiler_gnu=no
4678fi
4679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4680ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4681
4682fi
4683echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4684echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4685GXX=`test $ac_compiler_gnu = yes && echo yes`
4686ac_test_CXXFLAGS=${CXXFLAGS+set}
4687ac_save_CXXFLAGS=$CXXFLAGS
4688CXXFLAGS="-g"
4689echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4690echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4691if test "${ac_cv_prog_cxx_g+set}" = set; then
4692  echo $ECHO_N "(cached) $ECHO_C" >&6
4693else
4694  cat >conftest.$ac_ext <<_ACEOF
4695/* confdefs.h.  */
4696_ACEOF
4697cat confdefs.h >>conftest.$ac_ext
4698cat >>conftest.$ac_ext <<_ACEOF
4699/* end confdefs.h.  */
4700
4701int
4702main ()
4703{
4704
4705  ;
4706  return 0;
4707}
4708_ACEOF
4709rm -f conftest.$ac_objext
4710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711  (eval $ac_compile) 2>conftest.er1
4712  ac_status=$?
4713  grep -v '^ *+' conftest.er1 >conftest.err
4714  rm -f conftest.er1
4715  cat conftest.err >&5
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); } &&
4718	 { ac_try='test -z "$ac_cxx_werror_flag"
4719			 || test ! -s conftest.err'
4720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721  (eval $ac_try) 2>&5
4722  ac_status=$?
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); }; } &&
4725	 { ac_try='test -s conftest.$ac_objext'
4726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727  (eval $ac_try) 2>&5
4728  ac_status=$?
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); }; }; then
4731  ac_cv_prog_cxx_g=yes
4732else
4733  echo "$as_me: failed program was:" >&5
4734sed 's/^/| /' conftest.$ac_ext >&5
4735
4736ac_cv_prog_cxx_g=no
4737fi
4738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4739fi
4740echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4741echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4742if test "$ac_test_CXXFLAGS" = set; then
4743  CXXFLAGS=$ac_save_CXXFLAGS
4744elif test $ac_cv_prog_cxx_g = yes; then
4745  if test "$GXX" = yes; then
4746    CXXFLAGS="-g -O2"
4747  else
4748    CXXFLAGS="-g"
4749  fi
4750else
4751  if test "$GXX" = yes; then
4752    CXXFLAGS="-O2"
4753  else
4754    CXXFLAGS=
4755  fi
4756fi
4757for ac_declaration in \
4758   '' \
4759   'extern "C" void std::exit (int) throw (); using std::exit;' \
4760   'extern "C" void std::exit (int); using std::exit;' \
4761   'extern "C" void exit (int) throw ();' \
4762   'extern "C" void exit (int);' \
4763   'void exit (int);'
4764do
4765  cat >conftest.$ac_ext <<_ACEOF
4766/* confdefs.h.  */
4767_ACEOF
4768cat confdefs.h >>conftest.$ac_ext
4769cat >>conftest.$ac_ext <<_ACEOF
4770/* end confdefs.h.  */
4771$ac_declaration
4772#include <stdlib.h>
4773int
4774main ()
4775{
4776exit (42);
4777  ;
4778  return 0;
4779}
4780_ACEOF
4781rm -f conftest.$ac_objext
4782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783  (eval $ac_compile) 2>conftest.er1
4784  ac_status=$?
4785  grep -v '^ *+' conftest.er1 >conftest.err
4786  rm -f conftest.er1
4787  cat conftest.err >&5
4788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789  (exit $ac_status); } &&
4790	 { ac_try='test -z "$ac_cxx_werror_flag"
4791			 || test ! -s conftest.err'
4792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793  (eval $ac_try) 2>&5
4794  ac_status=$?
4795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796  (exit $ac_status); }; } &&
4797	 { ac_try='test -s conftest.$ac_objext'
4798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799  (eval $ac_try) 2>&5
4800  ac_status=$?
4801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802  (exit $ac_status); }; }; then
4803  :
4804else
4805  echo "$as_me: failed program was:" >&5
4806sed 's/^/| /' conftest.$ac_ext >&5
4807
4808continue
4809fi
4810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4811  cat >conftest.$ac_ext <<_ACEOF
4812/* confdefs.h.  */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h.  */
4817$ac_declaration
4818int
4819main ()
4820{
4821exit (42);
4822  ;
4823  return 0;
4824}
4825_ACEOF
4826rm -f conftest.$ac_objext
4827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828  (eval $ac_compile) 2>conftest.er1
4829  ac_status=$?
4830  grep -v '^ *+' conftest.er1 >conftest.err
4831  rm -f conftest.er1
4832  cat conftest.err >&5
4833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834  (exit $ac_status); } &&
4835	 { ac_try='test -z "$ac_cxx_werror_flag"
4836			 || test ! -s conftest.err'
4837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838  (eval $ac_try) 2>&5
4839  ac_status=$?
4840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841  (exit $ac_status); }; } &&
4842	 { ac_try='test -s conftest.$ac_objext'
4843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844  (eval $ac_try) 2>&5
4845  ac_status=$?
4846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847  (exit $ac_status); }; }; then
4848  break
4849else
4850  echo "$as_me: failed program was:" >&5
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853fi
4854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4855done
4856rm -f conftest*
4857if test -n "$ac_declaration"; then
4858  echo '#ifdef __cplusplus' >>confdefs.h
4859  echo $ac_declaration      >>confdefs.h
4860  echo '#endif'             >>confdefs.h
4861fi
4862
4863ac_ext=cc
4864ac_cpp='$CXXCPP $CPPFLAGS'
4865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4868
4869depcc="$CXX"  am_compiler_list=
4870
4871echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4872echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4873if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4874  echo $ECHO_N "(cached) $ECHO_C" >&6
4875else
4876  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4877  # We make a subdir and do the tests there.  Otherwise we can end up
4878  # making bogus files that we don't know about and never remove.  For
4879  # instance it was reported that on HP-UX the gcc test will end up
4880  # making a dummy file named `D' -- because `-MD' means `put the output
4881  # in D'.
4882  mkdir conftest.dir
4883  # Copy depcomp to subdir because otherwise we won't find it if we're
4884  # using a relative directory.
4885  cp "$am_depcomp" conftest.dir
4886  cd conftest.dir
4887  # We will build objects and dependencies in a subdirectory because
4888  # it helps to detect inapplicable dependency modes.  For instance
4889  # both Tru64's cc and ICC support -MD to output dependencies as a
4890  # side effect of compilation, but ICC will put the dependencies in
4891  # the current directory while Tru64 will put them in the object
4892  # directory.
4893  mkdir sub
4894
4895  am_cv_CXX_dependencies_compiler_type=none
4896  if test "$am_compiler_list" = ""; then
4897     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4898  fi
4899  for depmode in $am_compiler_list; do
4900    # Setup a source with many dependencies, because some compilers
4901    # like to wrap large dependency lists on column 80 (with \), and
4902    # we should not choose a depcomp mode which is confused by this.
4903    #
4904    # We need to recreate these files for each test, as the compiler may
4905    # overwrite some of them when testing with obscure command lines.
4906    # This happens at least with the AIX C compiler.
4907    : > sub/conftest.c
4908    for i in 1 2 3 4 5 6; do
4909      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4910      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4911      # Solaris 8's {/usr,}/bin/sh.
4912      touch sub/conftst$i.h
4913    done
4914    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4915
4916    case $depmode in
4917    nosideeffect)
4918      # after this tag, mechanisms are not by side-effect, so they'll
4919      # only be used when explicitly requested
4920      if test "x$enable_dependency_tracking" = xyes; then
4921	continue
4922      else
4923	break
4924      fi
4925      ;;
4926    none) break ;;
4927    esac
4928    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4929    # mode.  It turns out that the SunPro C++ compiler does not properly
4930    # handle `-M -o', and we need to detect this.
4931    if depmode=$depmode \
4932       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4933       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4934       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4935         >/dev/null 2>conftest.err &&
4936       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4937       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4938       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4939      # icc doesn't choke on unknown options, it will just issue warnings
4940      # or remarks (even with -Werror).  So we grep stderr for any message
4941      # that says an option was ignored or not supported.
4942      # When given -MP, icc 7.0 and 7.1 complain thusly:
4943      #   icc: Command line warning: ignoring option '-M'; no argument required
4944      # The diagnosis changed in icc 8.0:
4945      #   icc: Command line remark: option '-MP' not supported
4946      if (grep 'ignoring option' conftest.err ||
4947          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4948        am_cv_CXX_dependencies_compiler_type=$depmode
4949        break
4950      fi
4951    fi
4952  done
4953
4954  cd ..
4955  rm -rf conftest.dir
4956else
4957  am_cv_CXX_dependencies_compiler_type=none
4958fi
4959
4960fi
4961echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4962echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4963CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4964
4965
4966
4967if
4968  test "x$enable_dependency_tracking" != xno \
4969  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4970  am__fastdepCXX_TRUE=
4971  am__fastdepCXX_FALSE='#'
4972else
4973  am__fastdepCXX_TRUE='#'
4974  am__fastdepCXX_FALSE=
4975fi
4976
4977
4978
4979
4980if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4981    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4982    (test "X$CXX" != "Xg++"))) ; then
4983  ac_ext=cc
4984ac_cpp='$CXXCPP $CPPFLAGS'
4985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4988echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4989echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4990if test -z "$CXXCPP"; then
4991  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4992  echo $ECHO_N "(cached) $ECHO_C" >&6
4993else
4994      # Double quotes because CXXCPP needs to be expanded
4995    for CXXCPP in "$CXX -E" "/lib/cpp"
4996    do
4997      ac_preproc_ok=false
4998for ac_cxx_preproc_warn_flag in '' yes
4999do
5000  # Use a header file that comes with gcc, so configuring glibc
5001  # with a fresh cross-compiler works.
5002  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5003  # <limits.h> exists even on freestanding compilers.
5004  # On the NeXT, cc -E runs the code through the compiler's parser,
5005  # not just through cpp. "Syntax error" is here to catch this case.
5006  cat >conftest.$ac_ext <<_ACEOF
5007/* confdefs.h.  */
5008_ACEOF
5009cat confdefs.h >>conftest.$ac_ext
5010cat >>conftest.$ac_ext <<_ACEOF
5011/* end confdefs.h.  */
5012#ifdef __STDC__
5013# include <limits.h>
5014#else
5015# include <assert.h>
5016#endif
5017		     Syntax error
5018_ACEOF
5019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5020  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5021  ac_status=$?
5022  grep -v '^ *+' conftest.er1 >conftest.err
5023  rm -f conftest.er1
5024  cat conftest.err >&5
5025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026  (exit $ac_status); } >/dev/null; then
5027  if test -s conftest.err; then
5028    ac_cpp_err=$ac_cxx_preproc_warn_flag
5029    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5030  else
5031    ac_cpp_err=
5032  fi
5033else
5034  ac_cpp_err=yes
5035fi
5036if test -z "$ac_cpp_err"; then
5037  :
5038else
5039  echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
5041
5042  # Broken: fails on valid input.
5043continue
5044fi
5045rm -f conftest.err conftest.$ac_ext
5046
5047  # OK, works on sane cases.  Now check whether non-existent headers
5048  # can be detected and how.
5049  cat >conftest.$ac_ext <<_ACEOF
5050/* confdefs.h.  */
5051_ACEOF
5052cat confdefs.h >>conftest.$ac_ext
5053cat >>conftest.$ac_ext <<_ACEOF
5054/* end confdefs.h.  */
5055#include <ac_nonexistent.h>
5056_ACEOF
5057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5058  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5059  ac_status=$?
5060  grep -v '^ *+' conftest.er1 >conftest.err
5061  rm -f conftest.er1
5062  cat conftest.err >&5
5063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064  (exit $ac_status); } >/dev/null; then
5065  if test -s conftest.err; then
5066    ac_cpp_err=$ac_cxx_preproc_warn_flag
5067    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5068  else
5069    ac_cpp_err=
5070  fi
5071else
5072  ac_cpp_err=yes
5073fi
5074if test -z "$ac_cpp_err"; then
5075  # Broken: success on invalid input.
5076continue
5077else
5078  echo "$as_me: failed program was:" >&5
5079sed 's/^/| /' conftest.$ac_ext >&5
5080
5081  # Passes both tests.
5082ac_preproc_ok=:
5083break
5084fi
5085rm -f conftest.err conftest.$ac_ext
5086
5087done
5088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089rm -f conftest.err conftest.$ac_ext
5090if $ac_preproc_ok; then
5091  break
5092fi
5093
5094    done
5095    ac_cv_prog_CXXCPP=$CXXCPP
5096
5097fi
5098  CXXCPP=$ac_cv_prog_CXXCPP
5099else
5100  ac_cv_prog_CXXCPP=$CXXCPP
5101fi
5102echo "$as_me:$LINENO: result: $CXXCPP" >&5
5103echo "${ECHO_T}$CXXCPP" >&6
5104ac_preproc_ok=false
5105for ac_cxx_preproc_warn_flag in '' yes
5106do
5107  # Use a header file that comes with gcc, so configuring glibc
5108  # with a fresh cross-compiler works.
5109  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110  # <limits.h> exists even on freestanding compilers.
5111  # On the NeXT, cc -E runs the code through the compiler's parser,
5112  # not just through cpp. "Syntax error" is here to catch this case.
5113  cat >conftest.$ac_ext <<_ACEOF
5114/* confdefs.h.  */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h.  */
5119#ifdef __STDC__
5120# include <limits.h>
5121#else
5122# include <assert.h>
5123#endif
5124		     Syntax error
5125_ACEOF
5126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5127  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5128  ac_status=$?
5129  grep -v '^ *+' conftest.er1 >conftest.err
5130  rm -f conftest.er1
5131  cat conftest.err >&5
5132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133  (exit $ac_status); } >/dev/null; then
5134  if test -s conftest.err; then
5135    ac_cpp_err=$ac_cxx_preproc_warn_flag
5136    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5137  else
5138    ac_cpp_err=
5139  fi
5140else
5141  ac_cpp_err=yes
5142fi
5143if test -z "$ac_cpp_err"; then
5144  :
5145else
5146  echo "$as_me: failed program was:" >&5
5147sed 's/^/| /' conftest.$ac_ext >&5
5148
5149  # Broken: fails on valid input.
5150continue
5151fi
5152rm -f conftest.err conftest.$ac_ext
5153
5154  # OK, works on sane cases.  Now check whether non-existent headers
5155  # can be detected and how.
5156  cat >conftest.$ac_ext <<_ACEOF
5157/* confdefs.h.  */
5158_ACEOF
5159cat confdefs.h >>conftest.$ac_ext
5160cat >>conftest.$ac_ext <<_ACEOF
5161/* end confdefs.h.  */
5162#include <ac_nonexistent.h>
5163_ACEOF
5164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5165  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5166  ac_status=$?
5167  grep -v '^ *+' conftest.er1 >conftest.err
5168  rm -f conftest.er1
5169  cat conftest.err >&5
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); } >/dev/null; then
5172  if test -s conftest.err; then
5173    ac_cpp_err=$ac_cxx_preproc_warn_flag
5174    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5175  else
5176    ac_cpp_err=
5177  fi
5178else
5179  ac_cpp_err=yes
5180fi
5181if test -z "$ac_cpp_err"; then
5182  # Broken: success on invalid input.
5183continue
5184else
5185  echo "$as_me: failed program was:" >&5
5186sed 's/^/| /' conftest.$ac_ext >&5
5187
5188  # Passes both tests.
5189ac_preproc_ok=:
5190break
5191fi
5192rm -f conftest.err conftest.$ac_ext
5193
5194done
5195# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5196rm -f conftest.err conftest.$ac_ext
5197if $ac_preproc_ok; then
5198  :
5199else
5200  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5201See \`config.log' for more details." >&5
5202echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5203See \`config.log' for more details." >&2;}
5204   { (exit 1); exit 1; }; }
5205fi
5206
5207ac_ext=cc
5208ac_cpp='$CXXCPP $CPPFLAGS'
5209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5212
5213fi
5214
5215
5216ac_ext=f
5217ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5218ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5220if test -n "$ac_tool_prefix"; then
5221  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5222  do
5223    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5225echo "$as_me:$LINENO: checking for $ac_word" >&5
5226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5227if test "${ac_cv_prog_F77+set}" = set; then
5228  echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230  if test -n "$F77"; then
5231  ac_cv_prog_F77="$F77" # Let the user override the test.
5232else
5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234for as_dir in $PATH
5235do
5236  IFS=$as_save_IFS
5237  test -z "$as_dir" && as_dir=.
5238  for ac_exec_ext in '' $ac_executable_extensions; do
5239  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5241    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242    break 2
5243  fi
5244done
5245done
5246
5247fi
5248fi
5249F77=$ac_cv_prog_F77
5250if test -n "$F77"; then
5251  echo "$as_me:$LINENO: result: $F77" >&5
5252echo "${ECHO_T}$F77" >&6
5253else
5254  echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6
5256fi
5257
5258    test -n "$F77" && break
5259  done
5260fi
5261if test -z "$F77"; then
5262  ac_ct_F77=$F77
5263  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5264do
5265  # Extract the first word of "$ac_prog", so it can be a program name with args.
5266set dummy $ac_prog; ac_word=$2
5267echo "$as_me:$LINENO: checking for $ac_word" >&5
5268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5269if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5270  echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272  if test -n "$ac_ct_F77"; then
5273  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5274else
5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH
5277do
5278  IFS=$as_save_IFS
5279  test -z "$as_dir" && as_dir=.
5280  for ac_exec_ext in '' $ac_executable_extensions; do
5281  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282    ac_cv_prog_ac_ct_F77="$ac_prog"
5283    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284    break 2
5285  fi
5286done
5287done
5288
5289fi
5290fi
5291ac_ct_F77=$ac_cv_prog_ac_ct_F77
5292if test -n "$ac_ct_F77"; then
5293  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5294echo "${ECHO_T}$ac_ct_F77" >&6
5295else
5296  echo "$as_me:$LINENO: result: no" >&5
5297echo "${ECHO_T}no" >&6
5298fi
5299
5300  test -n "$ac_ct_F77" && break
5301done
5302
5303  F77=$ac_ct_F77
5304fi
5305
5306
5307# Provide some information about the compiler.
5308echo "$as_me:5308:" \
5309     "checking for Fortran 77 compiler version" >&5
5310ac_compiler=`set X $ac_compile; echo $2`
5311{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5312  (eval $ac_compiler --version </dev/null >&5) 2>&5
5313  ac_status=$?
5314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315  (exit $ac_status); }
5316{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5317  (eval $ac_compiler -v </dev/null >&5) 2>&5
5318  ac_status=$?
5319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320  (exit $ac_status); }
5321{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5322  (eval $ac_compiler -V </dev/null >&5) 2>&5
5323  ac_status=$?
5324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325  (exit $ac_status); }
5326rm -f a.out
5327
5328# If we don't use `.F' as extension, the preprocessor is not run on the
5329# input file.  (Note that this only needs to work for GNU compilers.)
5330ac_save_ext=$ac_ext
5331ac_ext=F
5332echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5333echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5334if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5335  echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337  cat >conftest.$ac_ext <<_ACEOF
5338      program main
5339#ifndef __GNUC__
5340       choke me
5341#endif
5342
5343      end
5344_ACEOF
5345rm -f conftest.$ac_objext
5346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5347  (eval $ac_compile) 2>conftest.er1
5348  ac_status=$?
5349  grep -v '^ *+' conftest.er1 >conftest.err
5350  rm -f conftest.er1
5351  cat conftest.err >&5
5352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353  (exit $ac_status); } &&
5354	 { ac_try='test -z "$ac_f77_werror_flag"
5355			 || test ! -s conftest.err'
5356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357  (eval $ac_try) 2>&5
5358  ac_status=$?
5359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360  (exit $ac_status); }; } &&
5361	 { ac_try='test -s conftest.$ac_objext'
5362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363  (eval $ac_try) 2>&5
5364  ac_status=$?
5365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366  (exit $ac_status); }; }; then
5367  ac_compiler_gnu=yes
5368else
5369  echo "$as_me: failed program was:" >&5
5370sed 's/^/| /' conftest.$ac_ext >&5
5371
5372ac_compiler_gnu=no
5373fi
5374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5375ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5376
5377fi
5378echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5379echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5380ac_ext=$ac_save_ext
5381ac_test_FFLAGS=${FFLAGS+set}
5382ac_save_FFLAGS=$FFLAGS
5383FFLAGS=
5384echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5385echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5386if test "${ac_cv_prog_f77_g+set}" = set; then
5387  echo $ECHO_N "(cached) $ECHO_C" >&6
5388else
5389  FFLAGS=-g
5390cat >conftest.$ac_ext <<_ACEOF
5391      program main
5392
5393      end
5394_ACEOF
5395rm -f conftest.$ac_objext
5396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397  (eval $ac_compile) 2>conftest.er1
5398  ac_status=$?
5399  grep -v '^ *+' conftest.er1 >conftest.err
5400  rm -f conftest.er1
5401  cat conftest.err >&5
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); } &&
5404	 { ac_try='test -z "$ac_f77_werror_flag"
5405			 || test ! -s conftest.err'
5406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407  (eval $ac_try) 2>&5
5408  ac_status=$?
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); }; } &&
5411	 { ac_try='test -s conftest.$ac_objext'
5412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413  (eval $ac_try) 2>&5
5414  ac_status=$?
5415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416  (exit $ac_status); }; }; then
5417  ac_cv_prog_f77_g=yes
5418else
5419  echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422ac_cv_prog_f77_g=no
5423fi
5424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5425
5426fi
5427echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5428echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5429if test "$ac_test_FFLAGS" = set; then
5430  FFLAGS=$ac_save_FFLAGS
5431elif test $ac_cv_prog_f77_g = yes; then
5432  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5433    FFLAGS="-g -O2"
5434  else
5435    FFLAGS="-g"
5436  fi
5437else
5438  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5439    FFLAGS="-O2"
5440  else
5441    FFLAGS=
5442  fi
5443fi
5444
5445G77=`test $ac_compiler_gnu = yes && echo yes`
5446ac_ext=c
5447ac_cpp='$CPP $CPPFLAGS'
5448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5450ac_compiler_gnu=$ac_cv_c_compiler_gnu
5451
5452
5453
5454# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5455# find the maximum length of command line arguments
5456echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5457echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5458if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5459  echo $ECHO_N "(cached) $ECHO_C" >&6
5460else
5461    i=0
5462  teststring="ABCD"
5463
5464  case $build_os in
5465  msdosdjgpp*)
5466    # On DJGPP, this test can blow up pretty badly due to problems in libc
5467    # (any single argument exceeding 2000 bytes causes a buffer overrun
5468    # during glob expansion).  Even if it were fixed, the result of this
5469    # check would be larger than it should be.
5470    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5471    ;;
5472
5473  gnu*)
5474    # Under GNU Hurd, this test is not required because there is
5475    # no limit to the length of command line arguments.
5476    # Libtool will interpret -1 as no limit whatsoever
5477    lt_cv_sys_max_cmd_len=-1;
5478    ;;
5479
5480  cygwin* | mingw*)
5481    # On Win9x/ME, this test blows up -- it succeeds, but takes
5482    # about 5 minutes as the teststring grows exponentially.
5483    # Worse, since 9x/ME are not pre-emptively multitasking,
5484    # you end up with a "frozen" computer, even though with patience
5485    # the test eventually succeeds (with a max line length of 256k).
5486    # Instead, let's just punt: use the minimum linelength reported by
5487    # all of the supported platforms: 8192 (on NT/2K/XP).
5488    lt_cv_sys_max_cmd_len=8192;
5489    ;;
5490
5491  amigaos*)
5492    # On AmigaOS with pdksh, this test takes hours, literally.
5493    # So we just punt and use a minimum line length of 8192.
5494    lt_cv_sys_max_cmd_len=8192;
5495    ;;
5496
5497  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5498    # This has been around since 386BSD, at least.  Likely further.
5499    if test -x /sbin/sysctl; then
5500      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5501    elif test -x /usr/sbin/sysctl; then
5502      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5503    else
5504      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5505    fi
5506    # And add a safety zone
5507    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5508    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5509    ;;
5510
5511  interix*)
5512    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5513    lt_cv_sys_max_cmd_len=196608
5514    ;;
5515
5516  osf*)
5517    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5518    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5519    # nice to cause kernel panics so lets avoid the loop below.
5520    # First set a reasonable default.
5521    lt_cv_sys_max_cmd_len=16384
5522    #
5523    if test -x /sbin/sysconfig; then
5524      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5525        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5526      esac
5527    fi
5528    ;;
5529  sco3.2v5*)
5530    lt_cv_sys_max_cmd_len=102400
5531    ;;
5532  sysv5* | sco5v6* | sysv4.2uw2*)
5533    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5534    if test -n "$kargmax"; then
5535      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5536    else
5537      lt_cv_sys_max_cmd_len=32768
5538    fi
5539    ;;
5540  *)
5541    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5542    if test -n "$lt_cv_sys_max_cmd_len"; then
5543      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5544      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5545    else
5546      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5547      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5548	       = "XX$teststring") >/dev/null 2>&1 &&
5549	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
5550	      lt_cv_sys_max_cmd_len=$new_result &&
5551	      test $i != 17 # 1/2 MB should be enough
5552      do
5553        i=`expr $i + 1`
5554        teststring=$teststring$teststring
5555      done
5556      teststring=
5557      # Add a significant safety factor because C++ compilers can tack on massive
5558      # amounts of additional arguments before passing them to the linker.
5559      # It appears as though 1/2 is a usable value.
5560      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5561    fi
5562    ;;
5563  esac
5564
5565fi
5566
5567if test -n $lt_cv_sys_max_cmd_len ; then
5568  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5569echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5570else
5571  echo "$as_me:$LINENO: result: none" >&5
5572echo "${ECHO_T}none" >&6
5573fi
5574
5575
5576
5577
5578
5579# Check for command to grab the raw symbol name followed by C symbol from nm.
5580echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5581echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5582if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5583  echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585
5586# These are sane defaults that work on at least a few old systems.
5587# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5588
5589# Character class describing NM global symbol codes.
5590symcode='[BCDEGRST]'
5591
5592# Regexp to match symbols that can be accessed directly from C.
5593sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5594
5595# Transform an extracted symbol line into a proper C declaration
5596lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5597
5598# Transform an extracted symbol line into symbol name and symbol address
5599lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5600
5601# Define system-specific variables.
5602case $host_os in
5603aix*)
5604  symcode='[BCDT]'
5605  ;;
5606cygwin* | mingw* | pw32*)
5607  symcode='[ABCDGISTW]'
5608  ;;
5609hpux*) # Its linker distinguishes data from code symbols
5610  if test "$host_cpu" = ia64; then
5611    symcode='[ABCDEGRST]'
5612  fi
5613  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5614  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5615  ;;
5616linux* | k*bsd*-gnu)
5617  if test "$host_cpu" = ia64; then
5618    symcode='[ABCDGIRSTW]'
5619    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5620    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5621  fi
5622  ;;
5623irix* | nonstopux*)
5624  symcode='[BCDEGRST]'
5625  ;;
5626osf*)
5627  symcode='[BCDEGQRST]'
5628  ;;
5629solaris*)
5630  symcode='[BDRT]'
5631  ;;
5632sco3.2v5*)
5633  symcode='[DT]'
5634  ;;
5635sysv4.2uw2*)
5636  symcode='[DT]'
5637  ;;
5638sysv5* | sco5v6* | unixware* | OpenUNIX*)
5639  symcode='[ABDT]'
5640  ;;
5641sysv4)
5642  symcode='[DFNSTU]'
5643  ;;
5644esac
5645
5646# Handle CRLF in mingw tool chain
5647opt_cr=
5648case $build_os in
5649mingw*)
5650  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5651  ;;
5652esac
5653
5654# If we're using GNU nm, then use its standard symbol codes.
5655case `$NM -V 2>&1` in
5656*GNU* | *'with BFD'*)
5657  symcode='[ABCDGIRSTW]' ;;
5658esac
5659
5660# Try without a prefix undercore, then with it.
5661for ac_symprfx in "" "_"; do
5662
5663  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5664  symxfrm="\\1 $ac_symprfx\\2 \\2"
5665
5666  # Write the raw and C identifiers.
5667  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5668
5669  # Check to see that the pipe works correctly.
5670  pipe_works=no
5671
5672  rm -f conftest*
5673  cat > conftest.$ac_ext <<EOF
5674#ifdef __cplusplus
5675extern "C" {
5676#endif
5677char nm_test_var;
5678void nm_test_func(){}
5679#ifdef __cplusplus
5680}
5681#endif
5682int main(){nm_test_var='a';nm_test_func();return(0);}
5683EOF
5684
5685  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686  (eval $ac_compile) 2>&5
5687  ac_status=$?
5688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689  (exit $ac_status); }; then
5690    # Now try to grab the symbols.
5691    nlist=conftest.nm
5692    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5693  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5694  ac_status=$?
5695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696  (exit $ac_status); } && test -s "$nlist"; then
5697      # Try sorting and uniquifying the output.
5698      if sort "$nlist" | uniq > "$nlist"T; then
5699	mv -f "$nlist"T "$nlist"
5700      else
5701	rm -f "$nlist"T
5702      fi
5703
5704      # Make sure that we snagged all the symbols we need.
5705      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5706	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5707	  cat <<EOF > conftest.$ac_ext
5708#ifdef __cplusplus
5709extern "C" {
5710#endif
5711
5712EOF
5713	  # Now generate the symbol file.
5714	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5715
5716	  cat <<EOF >> conftest.$ac_ext
5717#if defined (__STDC__) && __STDC__
5718# define lt_ptr_t void *
5719#else
5720# define lt_ptr_t char *
5721# define const
5722#endif
5723
5724/* The mapping between symbol names and symbols. */
5725const struct {
5726  const char *name;
5727  lt_ptr_t address;
5728}
5729lt_preloaded_symbols[] =
5730{
5731EOF
5732	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5733	  cat <<\EOF >> conftest.$ac_ext
5734  {0, (lt_ptr_t) 0}
5735};
5736
5737#ifdef __cplusplus
5738}
5739#endif
5740EOF
5741	  # Now try linking the two files.
5742	  mv conftest.$ac_objext conftstm.$ac_objext
5743	  lt_save_LIBS="$LIBS"
5744	  lt_save_CFLAGS="$CFLAGS"
5745	  LIBS="conftstm.$ac_objext"
5746	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5747	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5748  (eval $ac_link) 2>&5
5749  ac_status=$?
5750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5752	    pipe_works=yes
5753	  fi
5754	  LIBS="$lt_save_LIBS"
5755	  CFLAGS="$lt_save_CFLAGS"
5756	else
5757	  echo "cannot find nm_test_func in $nlist" >&5
5758	fi
5759      else
5760	echo "cannot find nm_test_var in $nlist" >&5
5761      fi
5762    else
5763      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5764    fi
5765  else
5766    echo "$progname: failed program was:" >&5
5767    cat conftest.$ac_ext >&5
5768  fi
5769  rm -rf conftest* conftst*
5770
5771  # Do not use the global_symbol_pipe unless it works.
5772  if test "$pipe_works" = yes; then
5773    break
5774  else
5775    lt_cv_sys_global_symbol_pipe=
5776  fi
5777done
5778
5779fi
5780
5781if test -z "$lt_cv_sys_global_symbol_pipe"; then
5782  lt_cv_sys_global_symbol_to_cdecl=
5783fi
5784if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5785  echo "$as_me:$LINENO: result: failed" >&5
5786echo "${ECHO_T}failed" >&6
5787else
5788  echo "$as_me:$LINENO: result: ok" >&5
5789echo "${ECHO_T}ok" >&6
5790fi
5791
5792echo "$as_me:$LINENO: checking for objdir" >&5
5793echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5794if test "${lt_cv_objdir+set}" = set; then
5795  echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797  rm -f .libs 2>/dev/null
5798mkdir .libs 2>/dev/null
5799if test -d .libs; then
5800  lt_cv_objdir=.libs
5801else
5802  # MS-DOS does not allow filenames that begin with a dot.
5803  lt_cv_objdir=_libs
5804fi
5805rmdir .libs 2>/dev/null
5806fi
5807echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5808echo "${ECHO_T}$lt_cv_objdir" >&6
5809objdir=$lt_cv_objdir
5810
5811
5812
5813
5814
5815case $host_os in
5816aix3*)
5817  # AIX sometimes has problems with the GCC collect2 program.  For some
5818  # reason, if we set the COLLECT_NAMES environment variable, the problems
5819  # vanish in a puff of smoke.
5820  if test "X${COLLECT_NAMES+set}" != Xset; then
5821    COLLECT_NAMES=
5822    export COLLECT_NAMES
5823  fi
5824  ;;
5825esac
5826
5827# Sed substitution that helps us do robust quoting.  It backslashifies
5828# metacharacters that are still active within double-quoted strings.
5829Xsed='sed -e 1s/^X//'
5830sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5831
5832# Same as above, but do not quote variable references.
5833double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5834
5835# Sed substitution to delay expansion of an escaped shell variable in a
5836# double_quote_subst'ed string.
5837delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5838
5839# Sed substitution to avoid accidental globbing in evaled expressions
5840no_glob_subst='s/\*/\\\*/g'
5841
5842# Constants:
5843rm="rm -f"
5844
5845# Global variables:
5846default_ofile=libtool
5847can_build_shared=yes
5848
5849# All known linkers require a `.a' archive for static linking (except MSVC,
5850# which needs '.lib').
5851libext=a
5852ltmain="$ac_aux_dir/ltmain.sh"
5853ofile="$default_ofile"
5854with_gnu_ld="$lt_cv_prog_gnu_ld"
5855
5856if test -n "$ac_tool_prefix"; then
5857  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5858set dummy ${ac_tool_prefix}ar; ac_word=$2
5859echo "$as_me:$LINENO: checking for $ac_word" >&5
5860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5861if test "${ac_cv_prog_AR+set}" = set; then
5862  echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864  if test -n "$AR"; then
5865  ac_cv_prog_AR="$AR" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870  IFS=$as_save_IFS
5871  test -z "$as_dir" && as_dir=.
5872  for ac_exec_ext in '' $ac_executable_extensions; do
5873  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874    ac_cv_prog_AR="${ac_tool_prefix}ar"
5875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876    break 2
5877  fi
5878done
5879done
5880
5881fi
5882fi
5883AR=$ac_cv_prog_AR
5884if test -n "$AR"; then
5885  echo "$as_me:$LINENO: result: $AR" >&5
5886echo "${ECHO_T}$AR" >&6
5887else
5888  echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6
5890fi
5891
5892fi
5893if test -z "$ac_cv_prog_AR"; then
5894  ac_ct_AR=$AR
5895  # Extract the first word of "ar", so it can be a program name with args.
5896set dummy ar; ac_word=$2
5897echo "$as_me:$LINENO: checking for $ac_word" >&5
5898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5899if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5900  echo $ECHO_N "(cached) $ECHO_C" >&6
5901else
5902  if test -n "$ac_ct_AR"; then
5903  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908  IFS=$as_save_IFS
5909  test -z "$as_dir" && as_dir=.
5910  for ac_exec_ext in '' $ac_executable_extensions; do
5911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912    ac_cv_prog_ac_ct_AR="ar"
5913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914    break 2
5915  fi
5916done
5917done
5918
5919  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5920fi
5921fi
5922ac_ct_AR=$ac_cv_prog_ac_ct_AR
5923if test -n "$ac_ct_AR"; then
5924  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5925echo "${ECHO_T}$ac_ct_AR" >&6
5926else
5927  echo "$as_me:$LINENO: result: no" >&5
5928echo "${ECHO_T}no" >&6
5929fi
5930
5931  AR=$ac_ct_AR
5932else
5933  AR="$ac_cv_prog_AR"
5934fi
5935
5936if test -n "$ac_tool_prefix"; then
5937  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5938set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5939echo "$as_me:$LINENO: checking for $ac_word" >&5
5940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5941if test "${ac_cv_prog_RANLIB+set}" = set; then
5942  echo $ECHO_N "(cached) $ECHO_C" >&6
5943else
5944  if test -n "$RANLIB"; then
5945  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5946else
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950  IFS=$as_save_IFS
5951  test -z "$as_dir" && as_dir=.
5952  for ac_exec_ext in '' $ac_executable_extensions; do
5953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956    break 2
5957  fi
5958done
5959done
5960
5961fi
5962fi
5963RANLIB=$ac_cv_prog_RANLIB
5964if test -n "$RANLIB"; then
5965  echo "$as_me:$LINENO: result: $RANLIB" >&5
5966echo "${ECHO_T}$RANLIB" >&6
5967else
5968  echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
5970fi
5971
5972fi
5973if test -z "$ac_cv_prog_RANLIB"; then
5974  ac_ct_RANLIB=$RANLIB
5975  # Extract the first word of "ranlib", so it can be a program name with args.
5976set dummy ranlib; ac_word=$2
5977echo "$as_me:$LINENO: checking for $ac_word" >&5
5978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5980  echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982  if test -n "$ac_ct_RANLIB"; then
5983  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988  IFS=$as_save_IFS
5989  test -z "$as_dir" && as_dir=.
5990  for ac_exec_ext in '' $ac_executable_extensions; do
5991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992    ac_cv_prog_ac_ct_RANLIB="ranlib"
5993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994    break 2
5995  fi
5996done
5997done
5998
5999  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6000fi
6001fi
6002ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6003if test -n "$ac_ct_RANLIB"; then
6004  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6005echo "${ECHO_T}$ac_ct_RANLIB" >&6
6006else
6007  echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6
6009fi
6010
6011  RANLIB=$ac_ct_RANLIB
6012else
6013  RANLIB="$ac_cv_prog_RANLIB"
6014fi
6015
6016if test -n "$ac_tool_prefix"; then
6017  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6018set dummy ${ac_tool_prefix}strip; ac_word=$2
6019echo "$as_me:$LINENO: checking for $ac_word" >&5
6020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6021if test "${ac_cv_prog_STRIP+set}" = set; then
6022  echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
6024  if test -n "$STRIP"; then
6025  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6026else
6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030  IFS=$as_save_IFS
6031  test -z "$as_dir" && as_dir=.
6032  for ac_exec_ext in '' $ac_executable_extensions; do
6033  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6035    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036    break 2
6037  fi
6038done
6039done
6040
6041fi
6042fi
6043STRIP=$ac_cv_prog_STRIP
6044if test -n "$STRIP"; then
6045  echo "$as_me:$LINENO: result: $STRIP" >&5
6046echo "${ECHO_T}$STRIP" >&6
6047else
6048  echo "$as_me:$LINENO: result: no" >&5
6049echo "${ECHO_T}no" >&6
6050fi
6051
6052fi
6053if test -z "$ac_cv_prog_STRIP"; then
6054  ac_ct_STRIP=$STRIP
6055  # Extract the first word of "strip", so it can be a program name with args.
6056set dummy strip; ac_word=$2
6057echo "$as_me:$LINENO: checking for $ac_word" >&5
6058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6059if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6060  echo $ECHO_N "(cached) $ECHO_C" >&6
6061else
6062  if test -n "$ac_ct_STRIP"; then
6063  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6064else
6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068  IFS=$as_save_IFS
6069  test -z "$as_dir" && as_dir=.
6070  for ac_exec_ext in '' $ac_executable_extensions; do
6071  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6072    ac_cv_prog_ac_ct_STRIP="strip"
6073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074    break 2
6075  fi
6076done
6077done
6078
6079  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6080fi
6081fi
6082ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6083if test -n "$ac_ct_STRIP"; then
6084  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6085echo "${ECHO_T}$ac_ct_STRIP" >&6
6086else
6087  echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6
6089fi
6090
6091  STRIP=$ac_ct_STRIP
6092else
6093  STRIP="$ac_cv_prog_STRIP"
6094fi
6095
6096
6097old_CC="$CC"
6098old_CFLAGS="$CFLAGS"
6099
6100# Set sane defaults for various variables
6101test -z "$AR" && AR=ar
6102test -z "$AR_FLAGS" && AR_FLAGS=cru
6103test -z "$AS" && AS=as
6104test -z "$CC" && CC=cc
6105test -z "$LTCC" && LTCC=$CC
6106test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6107test -z "$DLLTOOL" && DLLTOOL=dlltool
6108test -z "$LD" && LD=ld
6109test -z "$LN_S" && LN_S="ln -s"
6110test -z "$MAGIC_CMD" && MAGIC_CMD=file
6111test -z "$NM" && NM=nm
6112test -z "$SED" && SED=sed
6113test -z "$OBJDUMP" && OBJDUMP=objdump
6114test -z "$RANLIB" && RANLIB=:
6115test -z "$STRIP" && STRIP=:
6116test -z "$ac_objext" && ac_objext=o
6117
6118# Determine commands to create old-style static archives.
6119old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6120old_postinstall_cmds='chmod 644 $oldlib'
6121old_postuninstall_cmds=
6122
6123if test -n "$RANLIB"; then
6124  case $host_os in
6125  openbsd*)
6126    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6127    ;;
6128  *)
6129    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6130    ;;
6131  esac
6132  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6133fi
6134
6135for cc_temp in $compiler""; do
6136  case $cc_temp in
6137    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6138    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6139    \-*) ;;
6140    *) break;;
6141  esac
6142done
6143cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6144
6145
6146# Only perform the check for file, if the check method requires it
6147case $deplibs_check_method in
6148file_magic*)
6149  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6150    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6151echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6152if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6153  echo $ECHO_N "(cached) $ECHO_C" >&6
6154else
6155  case $MAGIC_CMD in
6156[\\/*] |  ?:[\\/]*)
6157  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6158  ;;
6159*)
6160  lt_save_MAGIC_CMD="$MAGIC_CMD"
6161  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6162  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6163  for ac_dir in $ac_dummy; do
6164    IFS="$lt_save_ifs"
6165    test -z "$ac_dir" && ac_dir=.
6166    if test -f $ac_dir/${ac_tool_prefix}file; then
6167      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6168      if test -n "$file_magic_test_file"; then
6169	case $deplibs_check_method in
6170	"file_magic "*)
6171	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6172	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6173	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6174	    $EGREP "$file_magic_regex" > /dev/null; then
6175	    :
6176	  else
6177	    cat <<EOF 1>&2
6178
6179*** Warning: the command libtool uses to detect shared libraries,
6180*** $file_magic_cmd, produces output that libtool cannot recognize.
6181*** The result is that libtool may fail to recognize shared libraries
6182*** as such.  This will affect the creation of libtool libraries that
6183*** depend on shared libraries, but programs linked with such libtool
6184*** libraries will work regardless of this problem.  Nevertheless, you
6185*** may want to report the problem to your system manager and/or to
6186*** bug-libtool@gnu.org
6187
6188EOF
6189	  fi ;;
6190	esac
6191      fi
6192      break
6193    fi
6194  done
6195  IFS="$lt_save_ifs"
6196  MAGIC_CMD="$lt_save_MAGIC_CMD"
6197  ;;
6198esac
6199fi
6200
6201MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6202if test -n "$MAGIC_CMD"; then
6203  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6204echo "${ECHO_T}$MAGIC_CMD" >&6
6205else
6206  echo "$as_me:$LINENO: result: no" >&5
6207echo "${ECHO_T}no" >&6
6208fi
6209
6210if test -z "$lt_cv_path_MAGIC_CMD"; then
6211  if test -n "$ac_tool_prefix"; then
6212    echo "$as_me:$LINENO: checking for file" >&5
6213echo $ECHO_N "checking for file... $ECHO_C" >&6
6214if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6215  echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217  case $MAGIC_CMD in
6218[\\/*] |  ?:[\\/]*)
6219  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6220  ;;
6221*)
6222  lt_save_MAGIC_CMD="$MAGIC_CMD"
6223  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6224  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6225  for ac_dir in $ac_dummy; do
6226    IFS="$lt_save_ifs"
6227    test -z "$ac_dir" && ac_dir=.
6228    if test -f $ac_dir/file; then
6229      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6230      if test -n "$file_magic_test_file"; then
6231	case $deplibs_check_method in
6232	"file_magic "*)
6233	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6234	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6235	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6236	    $EGREP "$file_magic_regex" > /dev/null; then
6237	    :
6238	  else
6239	    cat <<EOF 1>&2
6240
6241*** Warning: the command libtool uses to detect shared libraries,
6242*** $file_magic_cmd, produces output that libtool cannot recognize.
6243*** The result is that libtool may fail to recognize shared libraries
6244*** as such.  This will affect the creation of libtool libraries that
6245*** depend on shared libraries, but programs linked with such libtool
6246*** libraries will work regardless of this problem.  Nevertheless, you
6247*** may want to report the problem to your system manager and/or to
6248*** bug-libtool@gnu.org
6249
6250EOF
6251	  fi ;;
6252	esac
6253      fi
6254      break
6255    fi
6256  done
6257  IFS="$lt_save_ifs"
6258  MAGIC_CMD="$lt_save_MAGIC_CMD"
6259  ;;
6260esac
6261fi
6262
6263MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6264if test -n "$MAGIC_CMD"; then
6265  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6266echo "${ECHO_T}$MAGIC_CMD" >&6
6267else
6268  echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6
6270fi
6271
6272  else
6273    MAGIC_CMD=:
6274  fi
6275fi
6276
6277  fi
6278  ;;
6279esac
6280
6281
6282  case $host_os in
6283    rhapsody* | darwin*)
6284    if test -n "$ac_tool_prefix"; then
6285  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6286set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6287echo "$as_me:$LINENO: checking for $ac_word" >&5
6288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6289if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6290  echo $ECHO_N "(cached) $ECHO_C" >&6
6291else
6292  if test -n "$DSYMUTIL"; then
6293  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298  IFS=$as_save_IFS
6299  test -z "$as_dir" && as_dir=.
6300  for ac_exec_ext in '' $ac_executable_extensions; do
6301  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6303    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304    break 2
6305  fi
6306done
6307done
6308
6309fi
6310fi
6311DSYMUTIL=$ac_cv_prog_DSYMUTIL
6312if test -n "$DSYMUTIL"; then
6313  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6314echo "${ECHO_T}$DSYMUTIL" >&6
6315else
6316  echo "$as_me:$LINENO: result: no" >&5
6317echo "${ECHO_T}no" >&6
6318fi
6319
6320fi
6321if test -z "$ac_cv_prog_DSYMUTIL"; then
6322  ac_ct_DSYMUTIL=$DSYMUTIL
6323  # Extract the first word of "dsymutil", so it can be a program name with args.
6324set dummy dsymutil; ac_word=$2
6325echo "$as_me:$LINENO: checking for $ac_word" >&5
6326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6327if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6328  echo $ECHO_N "(cached) $ECHO_C" >&6
6329else
6330  if test -n "$ac_ct_DSYMUTIL"; then
6331  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336  IFS=$as_save_IFS
6337  test -z "$as_dir" && as_dir=.
6338  for ac_exec_ext in '' $ac_executable_extensions; do
6339  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6341    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342    break 2
6343  fi
6344done
6345done
6346
6347  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6348fi
6349fi
6350ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6351if test -n "$ac_ct_DSYMUTIL"; then
6352  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6353echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6354else
6355  echo "$as_me:$LINENO: result: no" >&5
6356echo "${ECHO_T}no" >&6
6357fi
6358
6359  DSYMUTIL=$ac_ct_DSYMUTIL
6360else
6361  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6362fi
6363
6364    if test -n "$ac_tool_prefix"; then
6365  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6366set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6367echo "$as_me:$LINENO: checking for $ac_word" >&5
6368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6369if test "${ac_cv_prog_NMEDIT+set}" = set; then
6370  echo $ECHO_N "(cached) $ECHO_C" >&6
6371else
6372  if test -n "$NMEDIT"; then
6373  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6374else
6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378  IFS=$as_save_IFS
6379  test -z "$as_dir" && as_dir=.
6380  for ac_exec_ext in '' $ac_executable_extensions; do
6381  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6383    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384    break 2
6385  fi
6386done
6387done
6388
6389fi
6390fi
6391NMEDIT=$ac_cv_prog_NMEDIT
6392if test -n "$NMEDIT"; then
6393  echo "$as_me:$LINENO: result: $NMEDIT" >&5
6394echo "${ECHO_T}$NMEDIT" >&6
6395else
6396  echo "$as_me:$LINENO: result: no" >&5
6397echo "${ECHO_T}no" >&6
6398fi
6399
6400fi
6401if test -z "$ac_cv_prog_NMEDIT"; then
6402  ac_ct_NMEDIT=$NMEDIT
6403  # Extract the first word of "nmedit", so it can be a program name with args.
6404set dummy nmedit; ac_word=$2
6405echo "$as_me:$LINENO: checking for $ac_word" >&5
6406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6407if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6408  echo $ECHO_N "(cached) $ECHO_C" >&6
6409else
6410  if test -n "$ac_ct_NMEDIT"; then
6411  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6412else
6413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414for as_dir in $PATH
6415do
6416  IFS=$as_save_IFS
6417  test -z "$as_dir" && as_dir=.
6418  for ac_exec_ext in '' $ac_executable_extensions; do
6419  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6420    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6421    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422    break 2
6423  fi
6424done
6425done
6426
6427  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6428fi
6429fi
6430ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6431if test -n "$ac_ct_NMEDIT"; then
6432  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6433echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6434else
6435  echo "$as_me:$LINENO: result: no" >&5
6436echo "${ECHO_T}no" >&6
6437fi
6438
6439  NMEDIT=$ac_ct_NMEDIT
6440else
6441  NMEDIT="$ac_cv_prog_NMEDIT"
6442fi
6443
6444
6445    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6446echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6447if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6448  echo $ECHO_N "(cached) $ECHO_C" >&6
6449else
6450  lt_cv_apple_cc_single_mod=no
6451      if test -z "${LT_MULTI_MODULE}"; then
6452   # By default we will add the -single_module flag. You can override
6453   # by either setting the environment variable LT_MULTI_MODULE
6454   # non-empty at configure time, or by adding -multi_module to the
6455   # link flags.
6456   echo "int foo(void){return 1;}" > conftest.c
6457   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6458     -dynamiclib ${wl}-single_module conftest.c
6459   if test -f libconftest.dylib; then
6460     lt_cv_apple_cc_single_mod=yes
6461     rm -rf libconftest.dylib*
6462   fi
6463   rm conftest.c
6464      fi
6465fi
6466echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6467echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6468    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6469echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6470if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6471  echo $ECHO_N "(cached) $ECHO_C" >&6
6472else
6473  lt_cv_ld_exported_symbols_list=no
6474      save_LDFLAGS=$LDFLAGS
6475      echo "_main" > conftest.sym
6476      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6477      cat >conftest.$ac_ext <<_ACEOF
6478/* confdefs.h.  */
6479_ACEOF
6480cat confdefs.h >>conftest.$ac_ext
6481cat >>conftest.$ac_ext <<_ACEOF
6482/* end confdefs.h.  */
6483
6484int
6485main ()
6486{
6487
6488  ;
6489  return 0;
6490}
6491_ACEOF
6492rm -f conftest.$ac_objext conftest$ac_exeext
6493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494  (eval $ac_link) 2>conftest.er1
6495  ac_status=$?
6496  grep -v '^ *+' conftest.er1 >conftest.err
6497  rm -f conftest.er1
6498  cat conftest.err >&5
6499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500  (exit $ac_status); } &&
6501	 { ac_try='test -z "$ac_c_werror_flag"
6502			 || test ! -s conftest.err'
6503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504  (eval $ac_try) 2>&5
6505  ac_status=$?
6506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507  (exit $ac_status); }; } &&
6508	 { ac_try='test -s conftest$ac_exeext'
6509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510  (eval $ac_try) 2>&5
6511  ac_status=$?
6512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513  (exit $ac_status); }; }; then
6514  lt_cv_ld_exported_symbols_list=yes
6515else
6516  echo "$as_me: failed program was:" >&5
6517sed 's/^/| /' conftest.$ac_ext >&5
6518
6519lt_cv_ld_exported_symbols_list=no
6520fi
6521rm -f conftest.err conftest.$ac_objext \
6522      conftest$ac_exeext conftest.$ac_ext
6523   LDFLAGS="$save_LDFLAGS"
6524
6525fi
6526echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6527echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6528    case $host_os in
6529    rhapsody* | darwin1.[0123])
6530      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6531    darwin1.*)
6532     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6533    darwin*)
6534      # if running on 10.5 or later, the deployment target defaults
6535      # to the OS version, if on x86, and 10.4, the deployment
6536      # target defaults to 10.4. Don't you love it?
6537      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6538   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6539     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6540   10.[012]*)
6541     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6542   10.*)
6543     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6544      esac
6545    ;;
6546  esac
6547    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6548      _lt_dar_single_mod='$single_module'
6549    fi
6550    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6551      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6552    else
6553      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6554    fi
6555    if test "$DSYMUTIL" != ":"; then
6556      _lt_dsymutil="~$DSYMUTIL \$lib || :"
6557    else
6558      _lt_dsymutil=
6559    fi
6560    ;;
6561  esac
6562
6563
6564enable_dlopen=no
6565enable_win32_dll=no
6566
6567# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6568if test "${enable_libtool_lock+set}" = set; then
6569  enableval="$enable_libtool_lock"
6570
6571fi;
6572test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6573
6574
6575# Check whether --with-pic or --without-pic was given.
6576if test "${with_pic+set}" = set; then
6577  withval="$with_pic"
6578  pic_mode="$withval"
6579else
6580  pic_mode=default
6581fi;
6582test -z "$pic_mode" && pic_mode=default
6583
6584# Use C for the default configuration in the libtool script
6585tagname=
6586lt_save_CC="$CC"
6587ac_ext=c
6588ac_cpp='$CPP $CPPFLAGS'
6589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591ac_compiler_gnu=$ac_cv_c_compiler_gnu
6592
6593
6594# Source file extension for C test sources.
6595ac_ext=c
6596
6597# Object file extension for compiled C test sources.
6598objext=o
6599objext=$objext
6600
6601# Code to be used in simple compile tests
6602lt_simple_compile_test_code="int some_variable = 0;"
6603
6604# Code to be used in simple link tests
6605lt_simple_link_test_code='int main(){return(0);}'
6606
6607
6608# If no C compiler was specified, use CC.
6609LTCC=${LTCC-"$CC"}
6610
6611# If no C compiler flags were specified, use CFLAGS.
6612LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6613
6614# Allow CC to be a program name with arguments.
6615compiler=$CC
6616
6617
6618# save warnings/boilerplate of simple test code
6619ac_outfile=conftest.$ac_objext
6620echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6621eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6622_lt_compiler_boilerplate=`cat conftest.err`
6623$rm conftest*
6624
6625ac_outfile=conftest.$ac_objext
6626echo "$lt_simple_link_test_code" >conftest.$ac_ext
6627eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6628_lt_linker_boilerplate=`cat conftest.err`
6629$rm -r conftest*
6630
6631
6632
6633lt_prog_compiler_no_builtin_flag=
6634
6635if test "$GCC" = yes; then
6636  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6637
6638
6639echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6640echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6641if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6642  echo $ECHO_N "(cached) $ECHO_C" >&6
6643else
6644  lt_cv_prog_compiler_rtti_exceptions=no
6645  ac_outfile=conftest.$ac_objext
6646   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6647   lt_compiler_flag="-fno-rtti -fno-exceptions"
6648   # Insert the option either (1) after the last *FLAGS variable, or
6649   # (2) before a word containing "conftest.", or (3) at the end.
6650   # Note that $ac_compile itself does not contain backslashes and begins
6651   # with a dollar sign (not a hyphen), so the echo should work correctly.
6652   # The option is referenced via a variable to avoid confusing sed.
6653   lt_compile=`echo "$ac_compile" | $SED \
6654   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6655   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6656   -e 's:$: $lt_compiler_flag:'`
6657   (eval echo "\"\$as_me:6657: $lt_compile\"" >&5)
6658   (eval "$lt_compile" 2>conftest.err)
6659   ac_status=$?
6660   cat conftest.err >&5
6661   echo "$as_me:6661: \$? = $ac_status" >&5
6662   if (exit $ac_status) && test -s "$ac_outfile"; then
6663     # The compiler can only warn and ignore the option if not recognized
6664     # So say no if there are warnings other than the usual output.
6665     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6666     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6667     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6668       lt_cv_prog_compiler_rtti_exceptions=yes
6669     fi
6670   fi
6671   $rm conftest*
6672
6673fi
6674echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6675echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6676
6677if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6678    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6679else
6680    :
6681fi
6682
6683fi
6684
6685lt_prog_compiler_wl=
6686lt_prog_compiler_pic=
6687lt_prog_compiler_static=
6688
6689echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6690echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6691
6692  if test "$GCC" = yes; then
6693    lt_prog_compiler_wl='-Wl,'
6694    lt_prog_compiler_static='-static'
6695
6696    case $host_os in
6697      aix*)
6698      # All AIX code is PIC.
6699      if test "$host_cpu" = ia64; then
6700	# AIX 5 now supports IA64 processor
6701	lt_prog_compiler_static='-Bstatic'
6702      fi
6703      ;;
6704
6705    amigaos*)
6706      # FIXME: we need at least 68020 code to build shared libraries, but
6707      # adding the `-m68020' flag to GCC prevents building anything better,
6708      # like `-m68040'.
6709      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6710      ;;
6711
6712    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6713      # PIC is the default for these OSes.
6714      ;;
6715
6716    mingw* | cygwin* | pw32* | os2*)
6717      # This hack is so that the source file can tell whether it is being
6718      # built for inclusion in a dll (and should export symbols for example).
6719      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6720      # (--disable-auto-import) libraries
6721      lt_prog_compiler_pic='-DDLL_EXPORT'
6722      ;;
6723
6724    darwin* | rhapsody*)
6725      # PIC is the default on this platform
6726      # Common symbols not allowed in MH_DYLIB files
6727      lt_prog_compiler_pic='-fno-common'
6728      ;;
6729
6730    interix[3-9]*)
6731      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6732      # Instead, we relocate shared libraries at runtime.
6733      ;;
6734
6735    msdosdjgpp*)
6736      # Just because we use GCC doesn't mean we suddenly get shared libraries
6737      # on systems that don't support them.
6738      lt_prog_compiler_can_build_shared=no
6739      enable_shared=no
6740      ;;
6741
6742    sysv4*MP*)
6743      if test -d /usr/nec; then
6744	lt_prog_compiler_pic=-Kconform_pic
6745      fi
6746      ;;
6747
6748    hpux*)
6749      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6750      # not for PA HP-UX.
6751      case $host_cpu in
6752      hppa*64*|ia64*)
6753	# +Z the default
6754	;;
6755      *)
6756	lt_prog_compiler_pic='-fPIC'
6757	;;
6758      esac
6759      ;;
6760
6761    *)
6762      lt_prog_compiler_pic='-fPIC'
6763      ;;
6764    esac
6765  else
6766    # PORTME Check for flag to pass linker flags through the system compiler.
6767    case $host_os in
6768    aix*)
6769      lt_prog_compiler_wl='-Wl,'
6770      if test "$host_cpu" = ia64; then
6771	# AIX 5 now supports IA64 processor
6772	lt_prog_compiler_static='-Bstatic'
6773      else
6774	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6775      fi
6776      ;;
6777      darwin*)
6778        # PIC is the default on this platform
6779        # Common symbols not allowed in MH_DYLIB files
6780       case $cc_basename in
6781         xlc*)
6782         lt_prog_compiler_pic='-qnocommon'
6783         lt_prog_compiler_wl='-Wl,'
6784         ;;
6785       esac
6786       ;;
6787
6788    mingw* | cygwin* | pw32* | os2*)
6789      # This hack is so that the source file can tell whether it is being
6790      # built for inclusion in a dll (and should export symbols for example).
6791      lt_prog_compiler_pic='-DDLL_EXPORT'
6792      ;;
6793
6794    hpux9* | hpux10* | hpux11*)
6795      lt_prog_compiler_wl='-Wl,'
6796      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6797      # not for PA HP-UX.
6798      case $host_cpu in
6799      hppa*64*|ia64*)
6800	# +Z the default
6801	;;
6802      *)
6803	lt_prog_compiler_pic='+Z'
6804	;;
6805      esac
6806      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6807      lt_prog_compiler_static='${wl}-a ${wl}archive'
6808      ;;
6809
6810    irix5* | irix6* | nonstopux*)
6811      lt_prog_compiler_wl='-Wl,'
6812      # PIC (with -KPIC) is the default.
6813      lt_prog_compiler_static='-non_shared'
6814      ;;
6815
6816    newsos6)
6817      lt_prog_compiler_pic='-KPIC'
6818      lt_prog_compiler_static='-Bstatic'
6819      ;;
6820
6821    linux* | k*bsd*-gnu)
6822      case $cc_basename in
6823      icc* | ecc*)
6824	lt_prog_compiler_wl='-Wl,'
6825	lt_prog_compiler_pic='-KPIC'
6826	lt_prog_compiler_static='-static'
6827        ;;
6828      pgcc* | pgf77* | pgf90* | pgf95*)
6829        # Portland Group compilers (*not* the Pentium gcc compiler,
6830	# which looks to be a dead project)
6831	lt_prog_compiler_wl='-Wl,'
6832	lt_prog_compiler_pic='-fpic'
6833	lt_prog_compiler_static='-Bstatic'
6834        ;;
6835      ccc*)
6836        lt_prog_compiler_wl='-Wl,'
6837        # All Alpha code is PIC.
6838        lt_prog_compiler_static='-non_shared'
6839        ;;
6840      *)
6841        case `$CC -V 2>&1 | sed 5q` in
6842	*Sun\ C*)
6843	  # Sun C 5.9
6844	  lt_prog_compiler_pic='-KPIC'
6845	  lt_prog_compiler_static='-Bstatic'
6846	  lt_prog_compiler_wl='-Wl,'
6847	  ;;
6848	*Sun\ F*)
6849	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
6850	  lt_prog_compiler_pic='-KPIC'
6851	  lt_prog_compiler_static='-Bstatic'
6852	  lt_prog_compiler_wl=''
6853	  ;;
6854	esac
6855	;;
6856      esac
6857      ;;
6858
6859    osf3* | osf4* | osf5*)
6860      lt_prog_compiler_wl='-Wl,'
6861      # All OSF/1 code is PIC.
6862      lt_prog_compiler_static='-non_shared'
6863      ;;
6864
6865    rdos*)
6866      lt_prog_compiler_static='-non_shared'
6867      ;;
6868
6869    solaris*)
6870      lt_prog_compiler_pic='-KPIC'
6871      lt_prog_compiler_static='-Bstatic'
6872      case $cc_basename in
6873      f77* | f90* | f95*)
6874	lt_prog_compiler_wl='-Qoption ld ';;
6875      *)
6876	lt_prog_compiler_wl='-Wl,';;
6877      esac
6878      ;;
6879
6880    sunos4*)
6881      lt_prog_compiler_wl='-Qoption ld '
6882      lt_prog_compiler_pic='-PIC'
6883      lt_prog_compiler_static='-Bstatic'
6884      ;;
6885
6886    sysv4 | sysv4.2uw2* | sysv4.3*)
6887      lt_prog_compiler_wl='-Wl,'
6888      lt_prog_compiler_pic='-KPIC'
6889      lt_prog_compiler_static='-Bstatic'
6890      ;;
6891
6892    sysv4*MP*)
6893      if test -d /usr/nec ;then
6894	lt_prog_compiler_pic='-Kconform_pic'
6895	lt_prog_compiler_static='-Bstatic'
6896      fi
6897      ;;
6898
6899    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6900      lt_prog_compiler_wl='-Wl,'
6901      lt_prog_compiler_pic='-KPIC'
6902      lt_prog_compiler_static='-Bstatic'
6903      ;;
6904
6905    unicos*)
6906      lt_prog_compiler_wl='-Wl,'
6907      lt_prog_compiler_can_build_shared=no
6908      ;;
6909
6910    uts4*)
6911      lt_prog_compiler_pic='-pic'
6912      lt_prog_compiler_static='-Bstatic'
6913      ;;
6914
6915    *)
6916      lt_prog_compiler_can_build_shared=no
6917      ;;
6918    esac
6919  fi
6920
6921echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6922echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6923
6924#
6925# Check to make sure the PIC flag actually works.
6926#
6927if test -n "$lt_prog_compiler_pic"; then
6928
6929echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6930echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6931if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
6932  echo $ECHO_N "(cached) $ECHO_C" >&6
6933else
6934  lt_cv_prog_compiler_pic_works=no
6935  ac_outfile=conftest.$ac_objext
6936   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6937   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6938   # Insert the option either (1) after the last *FLAGS variable, or
6939   # (2) before a word containing "conftest.", or (3) at the end.
6940   # Note that $ac_compile itself does not contain backslashes and begins
6941   # with a dollar sign (not a hyphen), so the echo should work correctly.
6942   # The option is referenced via a variable to avoid confusing sed.
6943   lt_compile=`echo "$ac_compile" | $SED \
6944   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6945   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6946   -e 's:$: $lt_compiler_flag:'`
6947   (eval echo "\"\$as_me:6947: $lt_compile\"" >&5)
6948   (eval "$lt_compile" 2>conftest.err)
6949   ac_status=$?
6950   cat conftest.err >&5
6951   echo "$as_me:6951: \$? = $ac_status" >&5
6952   if (exit $ac_status) && test -s "$ac_outfile"; then
6953     # The compiler can only warn and ignore the option if not recognized
6954     # So say no if there are warnings other than the usual output.
6955     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6956     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6957     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6958       lt_cv_prog_compiler_pic_works=yes
6959     fi
6960   fi
6961   $rm conftest*
6962
6963fi
6964echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
6965echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
6966
6967if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6968    case $lt_prog_compiler_pic in
6969     "" | " "*) ;;
6970     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6971     esac
6972else
6973    lt_prog_compiler_pic=
6974     lt_prog_compiler_can_build_shared=no
6975fi
6976
6977fi
6978case $host_os in
6979  # For platforms which do not support PIC, -DPIC is meaningless:
6980  *djgpp*)
6981    lt_prog_compiler_pic=
6982    ;;
6983  *)
6984    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6985    ;;
6986esac
6987
6988#
6989# Check to make sure the static flag actually works.
6990#
6991wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6992echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6993echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6994if test "${lt_cv_prog_compiler_static_works+set}" = set; then
6995  echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997  lt_cv_prog_compiler_static_works=no
6998   save_LDFLAGS="$LDFLAGS"
6999   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7000   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7001   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7002     # The linker can only warn and ignore the option if not recognized
7003     # So say no if there are warnings
7004     if test -s conftest.err; then
7005       # Append any errors to the config.log.
7006       cat conftest.err 1>&5
7007       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7008       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7009       if diff conftest.exp conftest.er2 >/dev/null; then
7010         lt_cv_prog_compiler_static_works=yes
7011       fi
7012     else
7013       lt_cv_prog_compiler_static_works=yes
7014     fi
7015   fi
7016   $rm -r conftest*
7017   LDFLAGS="$save_LDFLAGS"
7018
7019fi
7020echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7021echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
7022
7023if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7024    :
7025else
7026    lt_prog_compiler_static=
7027fi
7028
7029
7030echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7031echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7032if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7033  echo $ECHO_N "(cached) $ECHO_C" >&6
7034else
7035  lt_cv_prog_compiler_c_o=no
7036   $rm -r conftest 2>/dev/null
7037   mkdir conftest
7038   cd conftest
7039   mkdir out
7040   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7041
7042   lt_compiler_flag="-o out/conftest2.$ac_objext"
7043   # Insert the option either (1) after the last *FLAGS variable, or
7044   # (2) before a word containing "conftest.", or (3) at the end.
7045   # Note that $ac_compile itself does not contain backslashes and begins
7046   # with a dollar sign (not a hyphen), so the echo should work correctly.
7047   lt_compile=`echo "$ac_compile" | $SED \
7048   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7049   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7050   -e 's:$: $lt_compiler_flag:'`
7051   (eval echo "\"\$as_me:7051: $lt_compile\"" >&5)
7052   (eval "$lt_compile" 2>out/conftest.err)
7053   ac_status=$?
7054   cat out/conftest.err >&5
7055   echo "$as_me:7055: \$? = $ac_status" >&5
7056   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7057   then
7058     # The compiler can only warn and ignore the option if not recognized
7059     # So say no if there are warnings
7060     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7061     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7062     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7063       lt_cv_prog_compiler_c_o=yes
7064     fi
7065   fi
7066   chmod u+w . 2>&5
7067   $rm conftest*
7068   # SGI C++ compiler will create directory out/ii_files/ for
7069   # template instantiation
7070   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7071   $rm out/* && rmdir out
7072   cd ..
7073   rmdir conftest
7074   $rm conftest*
7075
7076fi
7077echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7078echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7079
7080
7081hard_links="nottested"
7082if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7083  # do not overwrite the value of need_locks provided by the user
7084  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7085echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7086  hard_links=yes
7087  $rm conftest*
7088  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7089  touch conftest.a
7090  ln conftest.a conftest.b 2>&5 || hard_links=no
7091  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7092  echo "$as_me:$LINENO: result: $hard_links" >&5
7093echo "${ECHO_T}$hard_links" >&6
7094  if test "$hard_links" = no; then
7095    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7096echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7097    need_locks=warn
7098  fi
7099else
7100  need_locks=no
7101fi
7102
7103echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7104echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7105
7106  runpath_var=
7107  allow_undefined_flag=
7108  enable_shared_with_static_runtimes=no
7109  archive_cmds=
7110  archive_expsym_cmds=
7111  old_archive_From_new_cmds=
7112  old_archive_from_expsyms_cmds=
7113  export_dynamic_flag_spec=
7114  whole_archive_flag_spec=
7115  thread_safe_flag_spec=
7116  hardcode_libdir_flag_spec=
7117  hardcode_libdir_flag_spec_ld=
7118  hardcode_libdir_separator=
7119  hardcode_direct=no
7120  hardcode_minus_L=no
7121  hardcode_shlibpath_var=unsupported
7122  link_all_deplibs=unknown
7123  hardcode_automatic=no
7124  module_cmds=
7125  module_expsym_cmds=
7126  always_export_symbols=no
7127  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7128  # include_expsyms should be a list of space-separated symbols to be *always*
7129  # included in the symbol list
7130  include_expsyms=
7131  # exclude_expsyms can be an extended regexp of symbols to exclude
7132  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7133  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7134  # as well as any symbol that contains `d'.
7135  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7136  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7137  # platforms (ab)use it in PIC code, but their linkers get confused if
7138  # the symbol is explicitly referenced.  Since portable code cannot
7139  # rely on this symbol name, it's probably fine to never include it in
7140  # preloaded symbol tables.
7141  # Exclude shared library initialization/finalization symbols.
7142  extract_expsyms_cmds=
7143  # Just being paranoid about ensuring that cc_basename is set.
7144  for cc_temp in $compiler""; do
7145  case $cc_temp in
7146    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7147    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7148    \-*) ;;
7149    *) break;;
7150  esac
7151done
7152cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7153
7154  case $host_os in
7155  cygwin* | mingw* | pw32*)
7156    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7157    # When not using gcc, we currently assume that we are using
7158    # Microsoft Visual C++.
7159    if test "$GCC" != yes; then
7160      with_gnu_ld=no
7161    fi
7162    ;;
7163  interix*)
7164    # we just hope/assume this is gcc and not c89 (= MSVC++)
7165    with_gnu_ld=yes
7166    ;;
7167  openbsd*)
7168    with_gnu_ld=no
7169    ;;
7170  esac
7171
7172  ld_shlibs=yes
7173  if test "$with_gnu_ld" = yes; then
7174    # If archive_cmds runs LD, not CC, wlarc should be empty
7175    wlarc='${wl}'
7176
7177    # Set some defaults for GNU ld with shared library support. These
7178    # are reset later if shared libraries are not supported. Putting them
7179    # here allows them to be overridden if necessary.
7180    runpath_var=LD_RUN_PATH
7181    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7182    export_dynamic_flag_spec='${wl}--export-dynamic'
7183    # ancient GNU ld didn't support --whole-archive et. al.
7184    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7185	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7186      else
7187  	whole_archive_flag_spec=
7188    fi
7189    supports_anon_versioning=no
7190    case `$LD -v 2>/dev/null` in
7191      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7192      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7193      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7194      *\ 2.11.*) ;; # other 2.11 versions
7195      *) supports_anon_versioning=yes ;;
7196    esac
7197
7198    # See if GNU ld supports shared libraries.
7199    case $host_os in
7200    aix[3-9]*)
7201      # On AIX/PPC, the GNU linker is very broken
7202      if test "$host_cpu" != ia64; then
7203	ld_shlibs=no
7204	cat <<EOF 1>&2
7205
7206*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7207*** to be unable to reliably create shared libraries on AIX.
7208*** Therefore, libtool is disabling shared libraries support.  If you
7209*** really care for shared libraries, you may want to modify your PATH
7210*** so that a non-GNU linker is found, and then restart.
7211
7212EOF
7213      fi
7214      ;;
7215
7216    amigaos*)
7217      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7218      hardcode_libdir_flag_spec='-L$libdir'
7219      hardcode_minus_L=yes
7220
7221      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7222      # that the semantics of dynamic libraries on AmigaOS, at least up
7223      # to version 4, is to share data among multiple programs linked
7224      # with the same dynamic library.  Since this doesn't match the
7225      # behavior of shared libraries on other platforms, we can't use
7226      # them.
7227      ld_shlibs=no
7228      ;;
7229
7230    beos*)
7231      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7232	allow_undefined_flag=unsupported
7233	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7234	# support --undefined.  This deserves some investigation.  FIXME
7235	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7236      else
7237	ld_shlibs=no
7238      fi
7239      ;;
7240
7241    cygwin* | mingw* | pw32*)
7242      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7243      # as there is no search path for DLLs.
7244      hardcode_libdir_flag_spec='-L$libdir'
7245      allow_undefined_flag=unsupported
7246      always_export_symbols=no
7247      enable_shared_with_static_runtimes=yes
7248      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7249
7250      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7251        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7252	# If the export-symbols file already is a .def file (1st line
7253	# is EXPORTS), use it as is; otherwise, prepend...
7254	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7255	  cp $export_symbols $output_objdir/$soname.def;
7256	else
7257	  echo EXPORTS > $output_objdir/$soname.def;
7258	  cat $export_symbols >> $output_objdir/$soname.def;
7259	fi~
7260	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7261      else
7262	ld_shlibs=no
7263      fi
7264      ;;
7265
7266    interix[3-9]*)
7267      hardcode_direct=no
7268      hardcode_shlibpath_var=no
7269      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7270      export_dynamic_flag_spec='${wl}-E'
7271      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7272      # Instead, shared libraries are loaded at an image base (0x10000000 by
7273      # default) and relocated if they conflict, which is a slow very memory
7274      # consuming and fragmenting process.  To avoid this, we pick a random,
7275      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7276      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7277      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7278      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7279      ;;
7280
7281    gnu* | linux* | k*bsd*-gnu)
7282      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7283	tmp_addflag=
7284	case $cc_basename,$host_cpu in
7285	pgcc*)				# Portland Group C compiler
7286	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7287	  tmp_addflag=' $pic_flag'
7288	  ;;
7289	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7290	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7291	  tmp_addflag=' $pic_flag -Mnomain' ;;
7292	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7293	  tmp_addflag=' -i_dynamic' ;;
7294	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7295	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7296	ifc* | ifort*)			# Intel Fortran compiler
7297	  tmp_addflag=' -nofor_main' ;;
7298	esac
7299	case `$CC -V 2>&1 | sed 5q` in
7300	*Sun\ C*)			# Sun C 5.9
7301	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7302	  tmp_sharedflag='-G' ;;
7303	*Sun\ F*)			# Sun Fortran 8.3
7304	  tmp_sharedflag='-G' ;;
7305	*)
7306	  tmp_sharedflag='-shared' ;;
7307	esac
7308	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7309
7310	if test $supports_anon_versioning = yes; then
7311	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7312  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7313  $echo "local: *; };" >> $output_objdir/$libname.ver~
7314	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7315	fi
7316      else
7317	ld_shlibs=no
7318      fi
7319      ;;
7320
7321    netbsd*)
7322      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7323	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7324	wlarc=
7325      else
7326	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7327	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7328      fi
7329      ;;
7330
7331    solaris*)
7332      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7333	ld_shlibs=no
7334	cat <<EOF 1>&2
7335
7336*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7337*** create shared libraries on Solaris systems.  Therefore, libtool
7338*** is disabling shared libraries support.  We urge you to upgrade GNU
7339*** binutils to release 2.9.1 or newer.  Another option is to modify
7340*** your PATH or compiler configuration so that the native linker is
7341*** used, and then restart.
7342
7343EOF
7344      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7345	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7346	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7347      else
7348	ld_shlibs=no
7349      fi
7350      ;;
7351
7352    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7353      case `$LD -v 2>&1` in
7354        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7355	ld_shlibs=no
7356	cat <<_LT_EOF 1>&2
7357
7358*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7359*** reliably create shared libraries on SCO systems.  Therefore, libtool
7360*** is disabling shared libraries support.  We urge you to upgrade GNU
7361*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7362*** your PATH or compiler configuration so that the native linker is
7363*** used, and then restart.
7364
7365_LT_EOF
7366	;;
7367	*)
7368	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7369	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7370	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7371	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7372	  else
7373	    ld_shlibs=no
7374	  fi
7375	;;
7376      esac
7377      ;;
7378
7379    sunos4*)
7380      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7381      wlarc=
7382      hardcode_direct=yes
7383      hardcode_shlibpath_var=no
7384      ;;
7385
7386    *)
7387      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7388	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7389	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7390      else
7391	ld_shlibs=no
7392      fi
7393      ;;
7394    esac
7395
7396    if test "$ld_shlibs" = no; then
7397      runpath_var=
7398      hardcode_libdir_flag_spec=
7399      export_dynamic_flag_spec=
7400      whole_archive_flag_spec=
7401    fi
7402  else
7403    # PORTME fill in a description of your system's linker (not GNU ld)
7404    case $host_os in
7405    aix3*)
7406      allow_undefined_flag=unsupported
7407      always_export_symbols=yes
7408      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7409      # Note: this linker hardcodes the directories in LIBPATH if there
7410      # are no directories specified by -L.
7411      hardcode_minus_L=yes
7412      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7413	# Neither direct hardcoding nor static linking is supported with a
7414	# broken collect2.
7415	hardcode_direct=unsupported
7416      fi
7417      ;;
7418
7419    aix[4-9]*)
7420      if test "$host_cpu" = ia64; then
7421	# On IA64, the linker does run time linking by default, so we don't
7422	# have to do anything special.
7423	aix_use_runtimelinking=no
7424	exp_sym_flag='-Bexport'
7425	no_entry_flag=""
7426      else
7427	# If we're using GNU nm, then we don't want the "-C" option.
7428	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7429	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7430	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7431	else
7432	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7433	fi
7434	aix_use_runtimelinking=no
7435
7436	# Test if we are trying to use run time linking or normal
7437	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7438	# need to do runtime linking.
7439	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7440	  for ld_flag in $LDFLAGS; do
7441  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7442  	    aix_use_runtimelinking=yes
7443  	    break
7444  	  fi
7445	  done
7446	  ;;
7447	esac
7448
7449	exp_sym_flag='-bexport'
7450	no_entry_flag='-bnoentry'
7451      fi
7452
7453      # When large executables or shared objects are built, AIX ld can
7454      # have problems creating the table of contents.  If linking a library
7455      # or program results in "error TOC overflow" add -mminimal-toc to
7456      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7457      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7458
7459      archive_cmds=''
7460      hardcode_direct=yes
7461      hardcode_libdir_separator=':'
7462      link_all_deplibs=yes
7463
7464      if test "$GCC" = yes; then
7465	case $host_os in aix4.[012]|aix4.[012].*)
7466	# We only want to do this on AIX 4.2 and lower, the check
7467	# below for broken collect2 doesn't work under 4.3+
7468	  collect2name=`${CC} -print-prog-name=collect2`
7469	  if test -f "$collect2name" && \
7470  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7471	  then
7472  	  # We have reworked collect2
7473  	  :
7474	  else
7475  	  # We have old collect2
7476  	  hardcode_direct=unsupported
7477  	  # It fails to find uninstalled libraries when the uninstalled
7478  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7479  	  # to unsupported forces relinking
7480  	  hardcode_minus_L=yes
7481  	  hardcode_libdir_flag_spec='-L$libdir'
7482  	  hardcode_libdir_separator=
7483	  fi
7484	  ;;
7485	esac
7486	shared_flag='-shared'
7487	if test "$aix_use_runtimelinking" = yes; then
7488	  shared_flag="$shared_flag "'${wl}-G'
7489	fi
7490      else
7491	# not using gcc
7492	if test "$host_cpu" = ia64; then
7493  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7494  	# chokes on -Wl,-G. The following line is correct:
7495	  shared_flag='-G'
7496	else
7497	  if test "$aix_use_runtimelinking" = yes; then
7498	    shared_flag='${wl}-G'
7499	  else
7500	    shared_flag='${wl}-bM:SRE'
7501	  fi
7502	fi
7503      fi
7504
7505      # It seems that -bexpall does not export symbols beginning with
7506      # underscore (_), so it is better to generate a list of symbols to export.
7507      always_export_symbols=yes
7508      if test "$aix_use_runtimelinking" = yes; then
7509	# Warning - without using the other runtime loading flags (-brtl),
7510	# -berok will link without error, but may produce a broken library.
7511	allow_undefined_flag='-berok'
7512       # Determine the default libpath from the value encoded in an empty executable.
7513       cat >conftest.$ac_ext <<_ACEOF
7514/* confdefs.h.  */
7515_ACEOF
7516cat confdefs.h >>conftest.$ac_ext
7517cat >>conftest.$ac_ext <<_ACEOF
7518/* end confdefs.h.  */
7519
7520int
7521main ()
7522{
7523
7524  ;
7525  return 0;
7526}
7527_ACEOF
7528rm -f conftest.$ac_objext conftest$ac_exeext
7529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530  (eval $ac_link) 2>conftest.er1
7531  ac_status=$?
7532  grep -v '^ *+' conftest.er1 >conftest.err
7533  rm -f conftest.er1
7534  cat conftest.err >&5
7535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536  (exit $ac_status); } &&
7537	 { ac_try='test -z "$ac_c_werror_flag"
7538			 || test ! -s conftest.err'
7539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540  (eval $ac_try) 2>&5
7541  ac_status=$?
7542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543  (exit $ac_status); }; } &&
7544	 { ac_try='test -s conftest$ac_exeext'
7545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546  (eval $ac_try) 2>&5
7547  ac_status=$?
7548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549  (exit $ac_status); }; }; then
7550
7551lt_aix_libpath_sed='
7552    /Import File Strings/,/^$/ {
7553	/^0/ {
7554	    s/^0  *\(.*\)$/\1/
7555	    p
7556	}
7557    }'
7558aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7559# Check for a 64-bit object if we didn't find anything.
7560if test -z "$aix_libpath"; then
7561  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7562fi
7563else
7564  echo "$as_me: failed program was:" >&5
7565sed 's/^/| /' conftest.$ac_ext >&5
7566
7567fi
7568rm -f conftest.err conftest.$ac_objext \
7569      conftest$ac_exeext conftest.$ac_ext
7570if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7571
7572       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7573	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7574       else
7575	if test "$host_cpu" = ia64; then
7576	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7577	  allow_undefined_flag="-z nodefs"
7578	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7579	else
7580	 # Determine the default libpath from the value encoded in an empty executable.
7581	 cat >conftest.$ac_ext <<_ACEOF
7582/* confdefs.h.  */
7583_ACEOF
7584cat confdefs.h >>conftest.$ac_ext
7585cat >>conftest.$ac_ext <<_ACEOF
7586/* end confdefs.h.  */
7587
7588int
7589main ()
7590{
7591
7592  ;
7593  return 0;
7594}
7595_ACEOF
7596rm -f conftest.$ac_objext conftest$ac_exeext
7597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7598  (eval $ac_link) 2>conftest.er1
7599  ac_status=$?
7600  grep -v '^ *+' conftest.er1 >conftest.err
7601  rm -f conftest.er1
7602  cat conftest.err >&5
7603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604  (exit $ac_status); } &&
7605	 { ac_try='test -z "$ac_c_werror_flag"
7606			 || test ! -s conftest.err'
7607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608  (eval $ac_try) 2>&5
7609  ac_status=$?
7610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611  (exit $ac_status); }; } &&
7612	 { ac_try='test -s conftest$ac_exeext'
7613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614  (eval $ac_try) 2>&5
7615  ac_status=$?
7616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617  (exit $ac_status); }; }; then
7618
7619lt_aix_libpath_sed='
7620    /Import File Strings/,/^$/ {
7621	/^0/ {
7622	    s/^0  *\(.*\)$/\1/
7623	    p
7624	}
7625    }'
7626aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7627# Check for a 64-bit object if we didn't find anything.
7628if test -z "$aix_libpath"; then
7629  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7630fi
7631else
7632  echo "$as_me: failed program was:" >&5
7633sed 's/^/| /' conftest.$ac_ext >&5
7634
7635fi
7636rm -f conftest.err conftest.$ac_objext \
7637      conftest$ac_exeext conftest.$ac_ext
7638if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7639
7640	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7641	  # Warning - without using the other run time loading flags,
7642	  # -berok will link without error, but may produce a broken library.
7643	  no_undefined_flag=' ${wl}-bernotok'
7644	  allow_undefined_flag=' ${wl}-berok'
7645	  # Exported symbols can be pulled into shared objects from archives
7646	  whole_archive_flag_spec='$convenience'
7647	  archive_cmds_need_lc=yes
7648	  # This is similar to how AIX traditionally builds its shared libraries.
7649	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7650	fi
7651      fi
7652      ;;
7653
7654    amigaos*)
7655      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7656      hardcode_libdir_flag_spec='-L$libdir'
7657      hardcode_minus_L=yes
7658      # see comment about different semantics on the GNU ld section
7659      ld_shlibs=no
7660      ;;
7661
7662    bsdi[45]*)
7663      export_dynamic_flag_spec=-rdynamic
7664      ;;
7665
7666    cygwin* | mingw* | pw32*)
7667      # When not using gcc, we currently assume that we are using
7668      # Microsoft Visual C++.
7669      # hardcode_libdir_flag_spec is actually meaningless, as there is
7670      # no search path for DLLs.
7671      hardcode_libdir_flag_spec=' '
7672      allow_undefined_flag=unsupported
7673      # Tell ltmain to make .lib files, not .a files.
7674      libext=lib
7675      # Tell ltmain to make .dll files, not .so files.
7676      shrext_cmds=".dll"
7677      # FIXME: Setting linknames here is a bad hack.
7678      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7679      # The linker will automatically build a .lib file if we build a DLL.
7680      old_archive_From_new_cmds='true'
7681      # FIXME: Should let the user specify the lib program.
7682      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7683      fix_srcfile_path='`cygpath -w "$srcfile"`'
7684      enable_shared_with_static_runtimes=yes
7685      ;;
7686
7687    darwin* | rhapsody*)
7688      case $host_os in
7689        rhapsody* | darwin1.[012])
7690         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7691         ;;
7692       *) # Darwin 1.3 on
7693         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7694           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7695         else
7696           case ${MACOSX_DEPLOYMENT_TARGET} in
7697             10.[012])
7698               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7699               ;;
7700             10.*)
7701               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7702               ;;
7703           esac
7704         fi
7705         ;;
7706      esac
7707      archive_cmds_need_lc=no
7708      hardcode_direct=no
7709      hardcode_automatic=yes
7710      hardcode_shlibpath_var=unsupported
7711      whole_archive_flag_spec=''
7712      link_all_deplibs=yes
7713    if test "$GCC" = yes ; then
7714    	output_verbose_link_cmd='echo'
7715        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7716        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7717        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7718        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7719    else
7720      case $cc_basename in
7721        xlc*)
7722         output_verbose_link_cmd='echo'
7723         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7724         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7725          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7726         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7727          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7728          ;;
7729       *)
7730         ld_shlibs=no
7731          ;;
7732      esac
7733    fi
7734      ;;
7735
7736    dgux*)
7737      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7738      hardcode_libdir_flag_spec='-L$libdir'
7739      hardcode_shlibpath_var=no
7740      ;;
7741
7742    freebsd1*)
7743      ld_shlibs=no
7744      ;;
7745
7746    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7747    # support.  Future versions do this automatically, but an explicit c++rt0.o
7748    # does not break anything, and helps significantly (at the cost of a little
7749    # extra space).
7750    freebsd2.2*)
7751      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7752      hardcode_libdir_flag_spec='-R$libdir'
7753      hardcode_direct=yes
7754      hardcode_shlibpath_var=no
7755      ;;
7756
7757    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7758    freebsd2*)
7759      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7760      hardcode_direct=yes
7761      hardcode_minus_L=yes
7762      hardcode_shlibpath_var=no
7763      ;;
7764
7765    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7766    freebsd* | dragonfly*)
7767      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7768      hardcode_libdir_flag_spec='-R$libdir'
7769      hardcode_direct=yes
7770      hardcode_shlibpath_var=no
7771      ;;
7772
7773    hpux9*)
7774      if test "$GCC" = yes; then
7775	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7776      else
7777	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7778      fi
7779      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7780      hardcode_libdir_separator=:
7781      hardcode_direct=yes
7782
7783      # hardcode_minus_L: Not really in the search PATH,
7784      # but as the default location of the library.
7785      hardcode_minus_L=yes
7786      export_dynamic_flag_spec='${wl}-E'
7787      ;;
7788
7789    hpux10*)
7790      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7791	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7792      else
7793	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7794      fi
7795      if test "$with_gnu_ld" = no; then
7796	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7797	hardcode_libdir_separator=:
7798
7799	hardcode_direct=yes
7800	export_dynamic_flag_spec='${wl}-E'
7801
7802	# hardcode_minus_L: Not really in the search PATH,
7803	# but as the default location of the library.
7804	hardcode_minus_L=yes
7805      fi
7806      ;;
7807
7808    hpux11*)
7809      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7810	case $host_cpu in
7811	hppa*64*)
7812	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7813	  ;;
7814	ia64*)
7815	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7816	  ;;
7817	*)
7818	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7819	  ;;
7820	esac
7821      else
7822	case $host_cpu in
7823	hppa*64*)
7824	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7825	  ;;
7826	ia64*)
7827	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7828	  ;;
7829	*)
7830	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7831	  ;;
7832	esac
7833      fi
7834      if test "$with_gnu_ld" = no; then
7835	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7836	hardcode_libdir_separator=:
7837
7838	case $host_cpu in
7839	hppa*64*|ia64*)
7840	  hardcode_libdir_flag_spec_ld='+b $libdir'
7841	  hardcode_direct=no
7842	  hardcode_shlibpath_var=no
7843	  ;;
7844	*)
7845	  hardcode_direct=yes
7846	  export_dynamic_flag_spec='${wl}-E'
7847
7848	  # hardcode_minus_L: Not really in the search PATH,
7849	  # but as the default location of the library.
7850	  hardcode_minus_L=yes
7851	  ;;
7852	esac
7853      fi
7854      ;;
7855
7856    irix5* | irix6* | nonstopux*)
7857      if test "$GCC" = yes; then
7858	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7859      else
7860	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7861	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7862      fi
7863      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7864      hardcode_libdir_separator=:
7865      link_all_deplibs=yes
7866      ;;
7867
7868    netbsd*)
7869      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7870	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7871      else
7872	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7873      fi
7874      hardcode_libdir_flag_spec='-R$libdir'
7875      hardcode_direct=yes
7876      hardcode_shlibpath_var=no
7877      ;;
7878
7879    newsos6)
7880      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7881      hardcode_direct=yes
7882      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7883      hardcode_libdir_separator=:
7884      hardcode_shlibpath_var=no
7885      ;;
7886
7887    openbsd*)
7888      if test -f /usr/libexec/ld.so; then
7889	hardcode_direct=yes
7890	hardcode_shlibpath_var=no
7891	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7892	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7893	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7894	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7895	  export_dynamic_flag_spec='${wl}-E'
7896	else
7897	  case $host_os in
7898	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7899	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7900	     hardcode_libdir_flag_spec='-R$libdir'
7901	     ;;
7902	   *)
7903	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7904	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7905	     ;;
7906	  esac
7907        fi
7908      else
7909	ld_shlibs=no
7910      fi
7911      ;;
7912
7913    os2*)
7914      hardcode_libdir_flag_spec='-L$libdir'
7915      hardcode_minus_L=yes
7916      allow_undefined_flag=unsupported
7917      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7918      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7919      ;;
7920
7921    osf3*)
7922      if test "$GCC" = yes; then
7923	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7924	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7925      else
7926	allow_undefined_flag=' -expect_unresolved \*'
7927	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7928      fi
7929      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7930      hardcode_libdir_separator=:
7931      ;;
7932
7933    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7934      if test "$GCC" = yes; then
7935	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7936	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7937	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7938      else
7939	allow_undefined_flag=' -expect_unresolved \*'
7940	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7941	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7942	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7943
7944	# Both c and cxx compiler support -rpath directly
7945	hardcode_libdir_flag_spec='-rpath $libdir'
7946      fi
7947      hardcode_libdir_separator=:
7948      ;;
7949
7950    solaris*)
7951      no_undefined_flag=' -z text'
7952      if test "$GCC" = yes; then
7953	wlarc='${wl}'
7954	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7955	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7956	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7957      else
7958	wlarc=''
7959	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7960	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7961  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7962      fi
7963      hardcode_libdir_flag_spec='-R$libdir'
7964      hardcode_shlibpath_var=no
7965      case $host_os in
7966      solaris2.[0-5] | solaris2.[0-5].*) ;;
7967      *)
7968	# The compiler driver will combine and reorder linker options,
7969	# but understands `-z linker_flag'.  GCC discards it without `$wl',
7970	# but is careful enough not to reorder.
7971 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7972	if test "$GCC" = yes; then
7973	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7974	else
7975	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7976	fi
7977	;;
7978      esac
7979      link_all_deplibs=yes
7980      ;;
7981
7982    sunos4*)
7983      if test "x$host_vendor" = xsequent; then
7984	# Use $CC to link under sequent, because it throws in some extra .o
7985	# files that make .init and .fini sections work.
7986	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7987      else
7988	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7989      fi
7990      hardcode_libdir_flag_spec='-L$libdir'
7991      hardcode_direct=yes
7992      hardcode_minus_L=yes
7993      hardcode_shlibpath_var=no
7994      ;;
7995
7996    sysv4)
7997      case $host_vendor in
7998	sni)
7999	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8000	  hardcode_direct=yes # is this really true???
8001	;;
8002	siemens)
8003	  ## LD is ld it makes a PLAMLIB
8004	  ## CC just makes a GrossModule.
8005	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8006	  reload_cmds='$CC -r -o $output$reload_objs'
8007	  hardcode_direct=no
8008        ;;
8009	motorola)
8010	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8011	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8012	;;
8013      esac
8014      runpath_var='LD_RUN_PATH'
8015      hardcode_shlibpath_var=no
8016      ;;
8017
8018    sysv4.3*)
8019      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8020      hardcode_shlibpath_var=no
8021      export_dynamic_flag_spec='-Bexport'
8022      ;;
8023
8024    sysv4*MP*)
8025      if test -d /usr/nec; then
8026	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8027	hardcode_shlibpath_var=no
8028	runpath_var=LD_RUN_PATH
8029	hardcode_runpath_var=yes
8030	ld_shlibs=yes
8031      fi
8032      ;;
8033
8034    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8035      no_undefined_flag='${wl}-z,text'
8036      archive_cmds_need_lc=no
8037      hardcode_shlibpath_var=no
8038      runpath_var='LD_RUN_PATH'
8039
8040      if test "$GCC" = yes; then
8041	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8042	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8043      else
8044	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8045	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8046      fi
8047      ;;
8048
8049    sysv5* | sco3.2v5* | sco5v6*)
8050      # Note: We can NOT use -z defs as we might desire, because we do not
8051      # link with -lc, and that would cause any symbols used from libc to
8052      # always be unresolved, which means just about no library would
8053      # ever link correctly.  If we're not using GNU ld we use -z text
8054      # though, which does catch some bad symbols but isn't as heavy-handed
8055      # as -z defs.
8056      no_undefined_flag='${wl}-z,text'
8057      allow_undefined_flag='${wl}-z,nodefs'
8058      archive_cmds_need_lc=no
8059      hardcode_shlibpath_var=no
8060      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8061      hardcode_libdir_separator=':'
8062      link_all_deplibs=yes
8063      export_dynamic_flag_spec='${wl}-Bexport'
8064      runpath_var='LD_RUN_PATH'
8065
8066      if test "$GCC" = yes; then
8067	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8068	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8069      else
8070	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8071	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8072      fi
8073      ;;
8074
8075    uts4*)
8076      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8077      hardcode_libdir_flag_spec='-L$libdir'
8078      hardcode_shlibpath_var=no
8079      ;;
8080
8081    *)
8082      ld_shlibs=no
8083      ;;
8084    esac
8085  fi
8086
8087echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8088echo "${ECHO_T}$ld_shlibs" >&6
8089test "$ld_shlibs" = no && can_build_shared=no
8090
8091#
8092# Do we need to explicitly link libc?
8093#
8094case "x$archive_cmds_need_lc" in
8095x|xyes)
8096  # Assume -lc should be added
8097  archive_cmds_need_lc=yes
8098
8099  if test "$enable_shared" = yes && test "$GCC" = yes; then
8100    case $archive_cmds in
8101    *'~'*)
8102      # FIXME: we may have to deal with multi-command sequences.
8103      ;;
8104    '$CC '*)
8105      # Test whether the compiler implicitly links with -lc since on some
8106      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8107      # to ld, don't add -lc before -lgcc.
8108      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8109echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8110      $rm conftest*
8111      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8112
8113      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114  (eval $ac_compile) 2>&5
8115  ac_status=$?
8116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117  (exit $ac_status); } 2>conftest.err; then
8118        soname=conftest
8119        lib=conftest
8120        libobjs=conftest.$ac_objext
8121        deplibs=
8122        wl=$lt_prog_compiler_wl
8123	pic_flag=$lt_prog_compiler_pic
8124        compiler_flags=-v
8125        linker_flags=-v
8126        verstring=
8127        output_objdir=.
8128        libname=conftest
8129        lt_save_allow_undefined_flag=$allow_undefined_flag
8130        allow_undefined_flag=
8131        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8132  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8133  ac_status=$?
8134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135  (exit $ac_status); }
8136        then
8137	  archive_cmds_need_lc=no
8138        else
8139	  archive_cmds_need_lc=yes
8140        fi
8141        allow_undefined_flag=$lt_save_allow_undefined_flag
8142      else
8143        cat conftest.err 1>&5
8144      fi
8145      $rm conftest*
8146      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8147echo "${ECHO_T}$archive_cmds_need_lc" >&6
8148      ;;
8149    esac
8150  fi
8151  ;;
8152esac
8153
8154echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8155echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8156library_names_spec=
8157libname_spec='lib$name'
8158soname_spec=
8159shrext_cmds=".so"
8160postinstall_cmds=
8161postuninstall_cmds=
8162finish_cmds=
8163finish_eval=
8164shlibpath_var=
8165shlibpath_overrides_runpath=unknown
8166version_type=none
8167dynamic_linker="$host_os ld.so"
8168sys_lib_dlsearch_path_spec="/lib /usr/lib"
8169
8170if test "$GCC" = yes; then
8171  case $host_os in
8172    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8173    *) lt_awk_arg="/^libraries:/" ;;
8174  esac
8175  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8176  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8177    # if the path contains ";" then we assume it to be the separator
8178    # otherwise default to the standard path separator (i.e. ":") - it is
8179    # assumed that no part of a normal pathname contains ";" but that should
8180    # okay in the real world where ";" in dirpaths is itself problematic.
8181    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8182  else
8183    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8184  fi
8185  # Ok, now we have the path, separated by spaces, we can step through it
8186  # and add multilib dir if necessary.
8187  lt_tmp_lt_search_path_spec=
8188  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8189  for lt_sys_path in $lt_search_path_spec; do
8190    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8191      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8192    else
8193      test -d "$lt_sys_path" && \
8194	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8195    fi
8196  done
8197  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8198BEGIN {RS=" "; FS="/|\n";} {
8199  lt_foo="";
8200  lt_count=0;
8201  for (lt_i = NF; lt_i > 0; lt_i--) {
8202    if ($lt_i != "" && $lt_i != ".") {
8203      if ($lt_i == "..") {
8204        lt_count++;
8205      } else {
8206        if (lt_count == 0) {
8207          lt_foo="/" $lt_i lt_foo;
8208        } else {
8209          lt_count--;
8210        }
8211      }
8212    }
8213  }
8214  if (lt_foo != "") { lt_freq[lt_foo]++; }
8215  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8216}'`
8217  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8218else
8219  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8220fi
8221need_lib_prefix=unknown
8222hardcode_into_libs=no
8223
8224# when you set need_version to no, make sure it does not cause -set_version
8225# flags to be left without arguments
8226need_version=unknown
8227
8228case $host_os in
8229aix3*)
8230  version_type=linux
8231  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8232  shlibpath_var=LIBPATH
8233
8234  # AIX 3 has no versioning support, so we append a major version to the name.
8235  soname_spec='${libname}${release}${shared_ext}$major'
8236  ;;
8237
8238aix[4-9]*)
8239  version_type=linux
8240  need_lib_prefix=no
8241  need_version=no
8242  hardcode_into_libs=yes
8243  if test "$host_cpu" = ia64; then
8244    # AIX 5 supports IA64
8245    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8246    shlibpath_var=LD_LIBRARY_PATH
8247  else
8248    # With GCC up to 2.95.x, collect2 would create an import file
8249    # for dependence libraries.  The import file would start with
8250    # the line `#! .'.  This would cause the generated library to
8251    # depend on `.', always an invalid library.  This was fixed in
8252    # development snapshots of GCC prior to 3.0.
8253    case $host_os in
8254      aix4 | aix4.[01] | aix4.[01].*)
8255      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8256	   echo ' yes '
8257	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8258	:
8259      else
8260	can_build_shared=no
8261      fi
8262      ;;
8263    esac
8264    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8265    # soname into executable. Probably we can add versioning support to
8266    # collect2, so additional links can be useful in future.
8267    if test "$aix_use_runtimelinking" = yes; then
8268      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8269      # instead of lib<name>.a to let people know that these are not
8270      # typical AIX shared libraries.
8271      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8272    else
8273      # We preserve .a as extension for shared libraries through AIX4.2
8274      # and later when we are not doing run time linking.
8275      library_names_spec='${libname}${release}.a $libname.a'
8276      soname_spec='${libname}${release}${shared_ext}$major'
8277    fi
8278    shlibpath_var=LIBPATH
8279  fi
8280  ;;
8281
8282amigaos*)
8283  library_names_spec='$libname.ixlibrary $libname.a'
8284  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8285  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8286  ;;
8287
8288beos*)
8289  library_names_spec='${libname}${shared_ext}'
8290  dynamic_linker="$host_os ld.so"
8291  shlibpath_var=LIBRARY_PATH
8292  ;;
8293
8294bsdi[45]*)
8295  version_type=linux
8296  need_version=no
8297  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298  soname_spec='${libname}${release}${shared_ext}$major'
8299  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8300  shlibpath_var=LD_LIBRARY_PATH
8301  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8302  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8303  # the default ld.so.conf also contains /usr/contrib/lib and
8304  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8305  # libtool to hard-code these into programs
8306  ;;
8307
8308cygwin* | mingw* | pw32*)
8309  version_type=windows
8310  shrext_cmds=".dll"
8311  need_version=no
8312  need_lib_prefix=no
8313
8314  case $GCC,$host_os in
8315  yes,cygwin* | yes,mingw* | yes,pw32*)
8316    library_names_spec='$libname.dll.a'
8317    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8318    postinstall_cmds='base_file=`basename \${file}`~
8319      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8320      dldir=$destdir/`dirname \$dlpath`~
8321      test -d \$dldir || mkdir -p \$dldir~
8322      $install_prog $dir/$dlname \$dldir/$dlname~
8323      chmod a+x \$dldir/$dlname'
8324    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8325      dlpath=$dir/\$dldll~
8326       $rm \$dlpath'
8327    shlibpath_overrides_runpath=yes
8328
8329    case $host_os in
8330    cygwin*)
8331      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8332      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8333      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8334      ;;
8335    mingw*)
8336      # MinGW DLLs use traditional 'lib' prefix
8337      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8338      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8339      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8340        # It is most probably a Windows format PATH printed by
8341        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8342        # path with ; separators, and with drive letters. We can handle the
8343        # drive letters (cygwin fileutils understands them), so leave them,
8344        # especially as we might pass files found there to a mingw objdump,
8345        # which wouldn't understand a cygwinified path. Ahh.
8346        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8347      else
8348        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8349      fi
8350      ;;
8351    pw32*)
8352      # pw32 DLLs use 'pw' prefix rather than 'lib'
8353      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8354      ;;
8355    esac
8356    ;;
8357
8358  *)
8359    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8360    ;;
8361  esac
8362  dynamic_linker='Win32 ld.exe'
8363  # FIXME: first we should search . and the directory the executable is in
8364  shlibpath_var=PATH
8365  ;;
8366
8367darwin* | rhapsody*)
8368  dynamic_linker="$host_os dyld"
8369  version_type=darwin
8370  need_lib_prefix=no
8371  need_version=no
8372  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8373  soname_spec='${libname}${release}${major}$shared_ext'
8374  shlibpath_overrides_runpath=yes
8375  shlibpath_var=DYLD_LIBRARY_PATH
8376  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8377
8378  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8379  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8380  ;;
8381
8382dgux*)
8383  version_type=linux
8384  need_lib_prefix=no
8385  need_version=no
8386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8387  soname_spec='${libname}${release}${shared_ext}$major'
8388  shlibpath_var=LD_LIBRARY_PATH
8389  ;;
8390
8391freebsd1*)
8392  dynamic_linker=no
8393  ;;
8394
8395freebsd* | dragonfly*)
8396  # DragonFly does not have aout.  When/if they implement a new
8397  # versioning mechanism, adjust this.
8398  if test -x /usr/bin/objformat; then
8399    objformat=`/usr/bin/objformat`
8400  else
8401    case $host_os in
8402    freebsd[123]*) objformat=aout ;;
8403    *) objformat=elf ;;
8404    esac
8405  fi
8406  version_type=freebsd-$objformat
8407  case $version_type in
8408    freebsd-elf*)
8409      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8410      need_version=no
8411      need_lib_prefix=no
8412      ;;
8413    freebsd-*)
8414      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8415      need_version=yes
8416      ;;
8417  esac
8418  shlibpath_var=LD_LIBRARY_PATH
8419  case $host_os in
8420  freebsd2*)
8421    shlibpath_overrides_runpath=yes
8422    ;;
8423  freebsd3.[01]* | freebsdelf3.[01]*)
8424    shlibpath_overrides_runpath=yes
8425    hardcode_into_libs=yes
8426    ;;
8427  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8428  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8429    shlibpath_overrides_runpath=no
8430    hardcode_into_libs=yes
8431    ;;
8432  *) # from 4.6 on, and DragonFly
8433    shlibpath_overrides_runpath=yes
8434    hardcode_into_libs=yes
8435    ;;
8436  esac
8437  ;;
8438
8439gnu*)
8440  version_type=linux
8441  need_lib_prefix=no
8442  need_version=no
8443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8444  soname_spec='${libname}${release}${shared_ext}$major'
8445  shlibpath_var=LD_LIBRARY_PATH
8446  hardcode_into_libs=yes
8447  ;;
8448
8449hpux9* | hpux10* | hpux11*)
8450  # Give a soname corresponding to the major version so that dld.sl refuses to
8451  # link against other versions.
8452  version_type=sunos
8453  need_lib_prefix=no
8454  need_version=no
8455  case $host_cpu in
8456  ia64*)
8457    shrext_cmds='.so'
8458    hardcode_into_libs=yes
8459    dynamic_linker="$host_os dld.so"
8460    shlibpath_var=LD_LIBRARY_PATH
8461    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8462    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8463    soname_spec='${libname}${release}${shared_ext}$major'
8464    if test "X$HPUX_IA64_MODE" = X32; then
8465      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8466    else
8467      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8468    fi
8469    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8470    ;;
8471   hppa*64*)
8472     shrext_cmds='.sl'
8473     hardcode_into_libs=yes
8474     dynamic_linker="$host_os dld.sl"
8475     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8476     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8478     soname_spec='${libname}${release}${shared_ext}$major'
8479     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8480     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8481     ;;
8482   *)
8483    shrext_cmds='.sl'
8484    dynamic_linker="$host_os dld.sl"
8485    shlibpath_var=SHLIB_PATH
8486    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8487    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8488    soname_spec='${libname}${release}${shared_ext}$major'
8489    ;;
8490  esac
8491  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8492  postinstall_cmds='chmod 555 $lib'
8493  ;;
8494
8495interix[3-9]*)
8496  version_type=linux
8497  need_lib_prefix=no
8498  need_version=no
8499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8500  soname_spec='${libname}${release}${shared_ext}$major'
8501  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8502  shlibpath_var=LD_LIBRARY_PATH
8503  shlibpath_overrides_runpath=no
8504  hardcode_into_libs=yes
8505  ;;
8506
8507irix5* | irix6* | nonstopux*)
8508  case $host_os in
8509    nonstopux*) version_type=nonstopux ;;
8510    *)
8511	if test "$lt_cv_prog_gnu_ld" = yes; then
8512		version_type=linux
8513	else
8514		version_type=irix
8515	fi ;;
8516  esac
8517  need_lib_prefix=no
8518  need_version=no
8519  soname_spec='${libname}${release}${shared_ext}$major'
8520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8521  case $host_os in
8522  irix5* | nonstopux*)
8523    libsuff= shlibsuff=
8524    ;;
8525  *)
8526    case $LD in # libtool.m4 will add one of these switches to LD
8527    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8528      libsuff= shlibsuff= libmagic=32-bit;;
8529    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8530      libsuff=32 shlibsuff=N32 libmagic=N32;;
8531    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8532      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8533    *) libsuff= shlibsuff= libmagic=never-match;;
8534    esac
8535    ;;
8536  esac
8537  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8538  shlibpath_overrides_runpath=no
8539  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8540  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8541  hardcode_into_libs=yes
8542  ;;
8543
8544# No shared lib support for Linux oldld, aout, or coff.
8545linux*oldld* | linux*aout* | linux*coff*)
8546  dynamic_linker=no
8547  ;;
8548
8549# This must be Linux ELF.
8550linux* | k*bsd*-gnu)
8551  version_type=linux
8552  need_lib_prefix=no
8553  need_version=no
8554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8555  soname_spec='${libname}${release}${shared_ext}$major'
8556  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8557  shlibpath_var=LD_LIBRARY_PATH
8558  shlibpath_overrides_runpath=no
8559  # This implies no fast_install, which is unacceptable.
8560  # Some rework will be needed to allow for fast_install
8561  # before this can be enabled.
8562  hardcode_into_libs=yes
8563
8564  # Append ld.so.conf contents to the search path
8565  if test -f /etc/ld.so.conf; then
8566    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8567    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8568  fi
8569
8570  # We used to test for /lib/ld.so.1 and disable shared libraries on
8571  # powerpc, because MkLinux only supported shared libraries with the
8572  # GNU dynamic linker.  Since this was broken with cross compilers,
8573  # most powerpc-linux boxes support dynamic linking these days and
8574  # people can always --disable-shared, the test was removed, and we
8575  # assume the GNU/Linux dynamic linker is in use.
8576  dynamic_linker='GNU/Linux ld.so'
8577  ;;
8578
8579netbsd*)
8580  version_type=sunos
8581  need_lib_prefix=no
8582  need_version=no
8583  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8584    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8585    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8586    dynamic_linker='NetBSD (a.out) ld.so'
8587  else
8588    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8589    soname_spec='${libname}${release}${shared_ext}$major'
8590    dynamic_linker='NetBSD ld.elf_so'
8591  fi
8592  shlibpath_var=LD_LIBRARY_PATH
8593  shlibpath_overrides_runpath=yes
8594  hardcode_into_libs=yes
8595  ;;
8596
8597newsos6)
8598  version_type=linux
8599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8600  shlibpath_var=LD_LIBRARY_PATH
8601  shlibpath_overrides_runpath=yes
8602  ;;
8603
8604nto-qnx*)
8605  version_type=linux
8606  need_lib_prefix=no
8607  need_version=no
8608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8609  soname_spec='${libname}${release}${shared_ext}$major'
8610  shlibpath_var=LD_LIBRARY_PATH
8611  shlibpath_overrides_runpath=yes
8612  ;;
8613
8614openbsd*)
8615  version_type=sunos
8616  sys_lib_dlsearch_path_spec="/usr/lib"
8617  need_lib_prefix=no
8618  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8619  case $host_os in
8620    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8621    *)                         need_version=no  ;;
8622  esac
8623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8624  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8625  shlibpath_var=LD_LIBRARY_PATH
8626  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8627    case $host_os in
8628      openbsd2.[89] | openbsd2.[89].*)
8629	shlibpath_overrides_runpath=no
8630	;;
8631      *)
8632	shlibpath_overrides_runpath=yes
8633	;;
8634      esac
8635  else
8636    shlibpath_overrides_runpath=yes
8637  fi
8638  ;;
8639
8640os2*)
8641  libname_spec='$name'
8642  shrext_cmds=".dll"
8643  need_lib_prefix=no
8644  library_names_spec='$libname${shared_ext} $libname.a'
8645  dynamic_linker='OS/2 ld.exe'
8646  shlibpath_var=LIBPATH
8647  ;;
8648
8649osf3* | osf4* | osf5*)
8650  version_type=osf
8651  need_lib_prefix=no
8652  need_version=no
8653  soname_spec='${libname}${release}${shared_ext}$major'
8654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8655  shlibpath_var=LD_LIBRARY_PATH
8656  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8657  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8658  ;;
8659
8660rdos*)
8661  dynamic_linker=no
8662  ;;
8663
8664solaris*)
8665  version_type=linux
8666  need_lib_prefix=no
8667  need_version=no
8668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8669  soname_spec='${libname}${release}${shared_ext}$major'
8670  shlibpath_var=LD_LIBRARY_PATH
8671  shlibpath_overrides_runpath=yes
8672  hardcode_into_libs=yes
8673  # ldd complains unless libraries are executable
8674  postinstall_cmds='chmod +x $lib'
8675  ;;
8676
8677sunos4*)
8678  version_type=sunos
8679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8680  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8681  shlibpath_var=LD_LIBRARY_PATH
8682  shlibpath_overrides_runpath=yes
8683  if test "$with_gnu_ld" = yes; then
8684    need_lib_prefix=no
8685  fi
8686  need_version=yes
8687  ;;
8688
8689sysv4 | sysv4.3*)
8690  version_type=linux
8691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8692  soname_spec='${libname}${release}${shared_ext}$major'
8693  shlibpath_var=LD_LIBRARY_PATH
8694  case $host_vendor in
8695    sni)
8696      shlibpath_overrides_runpath=no
8697      need_lib_prefix=no
8698      export_dynamic_flag_spec='${wl}-Blargedynsym'
8699      runpath_var=LD_RUN_PATH
8700      ;;
8701    siemens)
8702      need_lib_prefix=no
8703      ;;
8704    motorola)
8705      need_lib_prefix=no
8706      need_version=no
8707      shlibpath_overrides_runpath=no
8708      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8709      ;;
8710  esac
8711  ;;
8712
8713sysv4*MP*)
8714  if test -d /usr/nec ;then
8715    version_type=linux
8716    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8717    soname_spec='$libname${shared_ext}.$major'
8718    shlibpath_var=LD_LIBRARY_PATH
8719  fi
8720  ;;
8721
8722sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8723  version_type=freebsd-elf
8724  need_lib_prefix=no
8725  need_version=no
8726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8727  soname_spec='${libname}${release}${shared_ext}$major'
8728  shlibpath_var=LD_LIBRARY_PATH
8729  hardcode_into_libs=yes
8730  if test "$with_gnu_ld" = yes; then
8731    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8732    shlibpath_overrides_runpath=no
8733  else
8734    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8735    shlibpath_overrides_runpath=yes
8736    case $host_os in
8737      sco3.2v5*)
8738        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8739	;;
8740    esac
8741  fi
8742  sys_lib_dlsearch_path_spec='/usr/lib'
8743  ;;
8744
8745uts4*)
8746  version_type=linux
8747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8748  soname_spec='${libname}${release}${shared_ext}$major'
8749  shlibpath_var=LD_LIBRARY_PATH
8750  ;;
8751
8752*)
8753  dynamic_linker=no
8754  ;;
8755esac
8756echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8757echo "${ECHO_T}$dynamic_linker" >&6
8758test "$dynamic_linker" = no && can_build_shared=no
8759
8760if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
8761  echo $ECHO_N "(cached) $ECHO_C" >&6
8762else
8763  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
8764fi
8765
8766sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
8767if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
8768  echo $ECHO_N "(cached) $ECHO_C" >&6
8769else
8770  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
8771fi
8772
8773sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8774
8775variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8776if test "$GCC" = yes; then
8777  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8778fi
8779
8780echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8781echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8782hardcode_action=
8783if test -n "$hardcode_libdir_flag_spec" || \
8784   test -n "$runpath_var" || \
8785   test "X$hardcode_automatic" = "Xyes" ; then
8786
8787  # We can hardcode non-existant directories.
8788  if test "$hardcode_direct" != no &&
8789     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8790     # have to relink, otherwise we might link with an installed library
8791     # when we should be linking with a yet-to-be-installed one
8792     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8793     test "$hardcode_minus_L" != no; then
8794    # Linking always hardcodes the temporary library directory.
8795    hardcode_action=relink
8796  else
8797    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8798    hardcode_action=immediate
8799  fi
8800else
8801  # We cannot hardcode anything, or else we can only hardcode existing
8802  # directories.
8803  hardcode_action=unsupported
8804fi
8805echo "$as_me:$LINENO: result: $hardcode_action" >&5
8806echo "${ECHO_T}$hardcode_action" >&6
8807
8808if test "$hardcode_action" = relink; then
8809  # Fast installation is not supported
8810  enable_fast_install=no
8811elif test "$shlibpath_overrides_runpath" = yes ||
8812     test "$enable_shared" = no; then
8813  # Fast installation is not necessary
8814  enable_fast_install=needless
8815fi
8816
8817striplib=
8818old_striplib=
8819echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8820echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8821if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8822  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8823  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8824  echo "$as_me:$LINENO: result: yes" >&5
8825echo "${ECHO_T}yes" >&6
8826else
8827# FIXME - insert some real tests, host_os isn't really good enough
8828  case $host_os in
8829   darwin*)
8830       if test -n "$STRIP" ; then
8831         striplib="$STRIP -x"
8832         old_striplib="$STRIP -S"
8833         echo "$as_me:$LINENO: result: yes" >&5
8834echo "${ECHO_T}yes" >&6
8835       else
8836  echo "$as_me:$LINENO: result: no" >&5
8837echo "${ECHO_T}no" >&6
8838fi
8839       ;;
8840   *)
8841  echo "$as_me:$LINENO: result: no" >&5
8842echo "${ECHO_T}no" >&6
8843    ;;
8844  esac
8845fi
8846
8847if test "x$enable_dlopen" != xyes; then
8848  enable_dlopen=unknown
8849  enable_dlopen_self=unknown
8850  enable_dlopen_self_static=unknown
8851else
8852  lt_cv_dlopen=no
8853  lt_cv_dlopen_libs=
8854
8855  case $host_os in
8856  beos*)
8857    lt_cv_dlopen="load_add_on"
8858    lt_cv_dlopen_libs=
8859    lt_cv_dlopen_self=yes
8860    ;;
8861
8862  mingw* | pw32*)
8863    lt_cv_dlopen="LoadLibrary"
8864    lt_cv_dlopen_libs=
8865   ;;
8866
8867  cygwin*)
8868    lt_cv_dlopen="dlopen"
8869    lt_cv_dlopen_libs=
8870   ;;
8871
8872  darwin*)
8873  # if libdl is installed we need to link against it
8874    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8875echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8876if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8877  echo $ECHO_N "(cached) $ECHO_C" >&6
8878else
8879  ac_check_lib_save_LIBS=$LIBS
8880LIBS="-ldl  $LIBS"
8881cat >conftest.$ac_ext <<_ACEOF
8882/* confdefs.h.  */
8883_ACEOF
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h.  */
8887
8888/* Override any gcc2 internal prototype to avoid an error.  */
8889#ifdef __cplusplus
8890extern "C"
8891#endif
8892/* We use char because int might match the return type of a gcc2
8893   builtin and then its argument prototype would still apply.  */
8894char dlopen ();
8895int
8896main ()
8897{
8898dlopen ();
8899  ;
8900  return 0;
8901}
8902_ACEOF
8903rm -f conftest.$ac_objext conftest$ac_exeext
8904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905  (eval $ac_link) 2>conftest.er1
8906  ac_status=$?
8907  grep -v '^ *+' conftest.er1 >conftest.err
8908  rm -f conftest.er1
8909  cat conftest.err >&5
8910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911  (exit $ac_status); } &&
8912	 { ac_try='test -z "$ac_c_werror_flag"
8913			 || test ! -s conftest.err'
8914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915  (eval $ac_try) 2>&5
8916  ac_status=$?
8917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918  (exit $ac_status); }; } &&
8919	 { ac_try='test -s conftest$ac_exeext'
8920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921  (eval $ac_try) 2>&5
8922  ac_status=$?
8923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924  (exit $ac_status); }; }; then
8925  ac_cv_lib_dl_dlopen=yes
8926else
8927  echo "$as_me: failed program was:" >&5
8928sed 's/^/| /' conftest.$ac_ext >&5
8929
8930ac_cv_lib_dl_dlopen=no
8931fi
8932rm -f conftest.err conftest.$ac_objext \
8933      conftest$ac_exeext conftest.$ac_ext
8934LIBS=$ac_check_lib_save_LIBS
8935fi
8936echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8937echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8938if test $ac_cv_lib_dl_dlopen = yes; then
8939  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8940else
8941
8942    lt_cv_dlopen="dyld"
8943    lt_cv_dlopen_libs=
8944    lt_cv_dlopen_self=yes
8945
8946fi
8947
8948   ;;
8949
8950  *)
8951    echo "$as_me:$LINENO: checking for shl_load" >&5
8952echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8953if test "${ac_cv_func_shl_load+set}" = set; then
8954  echo $ECHO_N "(cached) $ECHO_C" >&6
8955else
8956  cat >conftest.$ac_ext <<_ACEOF
8957/* confdefs.h.  */
8958_ACEOF
8959cat confdefs.h >>conftest.$ac_ext
8960cat >>conftest.$ac_ext <<_ACEOF
8961/* end confdefs.h.  */
8962/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8963   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8964#define shl_load innocuous_shl_load
8965
8966/* System header to define __stub macros and hopefully few prototypes,
8967    which can conflict with char shl_load (); below.
8968    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8969    <limits.h> exists even on freestanding compilers.  */
8970
8971#ifdef __STDC__
8972# include <limits.h>
8973#else
8974# include <assert.h>
8975#endif
8976
8977#undef shl_load
8978
8979/* Override any gcc2 internal prototype to avoid an error.  */
8980#ifdef __cplusplus
8981extern "C"
8982{
8983#endif
8984/* We use char because int might match the return type of a gcc2
8985   builtin and then its argument prototype would still apply.  */
8986char shl_load ();
8987/* The GNU C library defines this for functions which it implements
8988    to always fail with ENOSYS.  Some functions are actually named
8989    something starting with __ and the normal name is an alias.  */
8990#if defined (__stub_shl_load) || defined (__stub___shl_load)
8991choke me
8992#else
8993char (*f) () = shl_load;
8994#endif
8995#ifdef __cplusplus
8996}
8997#endif
8998
8999int
9000main ()
9001{
9002return f != shl_load;
9003  ;
9004  return 0;
9005}
9006_ACEOF
9007rm -f conftest.$ac_objext conftest$ac_exeext
9008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9009  (eval $ac_link) 2>conftest.er1
9010  ac_status=$?
9011  grep -v '^ *+' conftest.er1 >conftest.err
9012  rm -f conftest.er1
9013  cat conftest.err >&5
9014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015  (exit $ac_status); } &&
9016	 { ac_try='test -z "$ac_c_werror_flag"
9017			 || test ! -s conftest.err'
9018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019  (eval $ac_try) 2>&5
9020  ac_status=$?
9021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022  (exit $ac_status); }; } &&
9023	 { ac_try='test -s conftest$ac_exeext'
9024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025  (eval $ac_try) 2>&5
9026  ac_status=$?
9027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028  (exit $ac_status); }; }; then
9029  ac_cv_func_shl_load=yes
9030else
9031  echo "$as_me: failed program was:" >&5
9032sed 's/^/| /' conftest.$ac_ext >&5
9033
9034ac_cv_func_shl_load=no
9035fi
9036rm -f conftest.err conftest.$ac_objext \
9037      conftest$ac_exeext conftest.$ac_ext
9038fi
9039echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9040echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9041if test $ac_cv_func_shl_load = yes; then
9042  lt_cv_dlopen="shl_load"
9043else
9044  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9045echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9046if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9047  echo $ECHO_N "(cached) $ECHO_C" >&6
9048else
9049  ac_check_lib_save_LIBS=$LIBS
9050LIBS="-ldld  $LIBS"
9051cat >conftest.$ac_ext <<_ACEOF
9052/* confdefs.h.  */
9053_ACEOF
9054cat confdefs.h >>conftest.$ac_ext
9055cat >>conftest.$ac_ext <<_ACEOF
9056/* end confdefs.h.  */
9057
9058/* Override any gcc2 internal prototype to avoid an error.  */
9059#ifdef __cplusplus
9060extern "C"
9061#endif
9062/* We use char because int might match the return type of a gcc2
9063   builtin and then its argument prototype would still apply.  */
9064char shl_load ();
9065int
9066main ()
9067{
9068shl_load ();
9069  ;
9070  return 0;
9071}
9072_ACEOF
9073rm -f conftest.$ac_objext conftest$ac_exeext
9074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9075  (eval $ac_link) 2>conftest.er1
9076  ac_status=$?
9077  grep -v '^ *+' conftest.er1 >conftest.err
9078  rm -f conftest.er1
9079  cat conftest.err >&5
9080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081  (exit $ac_status); } &&
9082	 { ac_try='test -z "$ac_c_werror_flag"
9083			 || test ! -s conftest.err'
9084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085  (eval $ac_try) 2>&5
9086  ac_status=$?
9087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088  (exit $ac_status); }; } &&
9089	 { ac_try='test -s conftest$ac_exeext'
9090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091  (eval $ac_try) 2>&5
9092  ac_status=$?
9093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094  (exit $ac_status); }; }; then
9095  ac_cv_lib_dld_shl_load=yes
9096else
9097  echo "$as_me: failed program was:" >&5
9098sed 's/^/| /' conftest.$ac_ext >&5
9099
9100ac_cv_lib_dld_shl_load=no
9101fi
9102rm -f conftest.err conftest.$ac_objext \
9103      conftest$ac_exeext conftest.$ac_ext
9104LIBS=$ac_check_lib_save_LIBS
9105fi
9106echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9107echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9108if test $ac_cv_lib_dld_shl_load = yes; then
9109  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9110else
9111  echo "$as_me:$LINENO: checking for dlopen" >&5
9112echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9113if test "${ac_cv_func_dlopen+set}" = set; then
9114  echo $ECHO_N "(cached) $ECHO_C" >&6
9115else
9116  cat >conftest.$ac_ext <<_ACEOF
9117/* confdefs.h.  */
9118_ACEOF
9119cat confdefs.h >>conftest.$ac_ext
9120cat >>conftest.$ac_ext <<_ACEOF
9121/* end confdefs.h.  */
9122/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9123   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9124#define dlopen innocuous_dlopen
9125
9126/* System header to define __stub macros and hopefully few prototypes,
9127    which can conflict with char dlopen (); below.
9128    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9129    <limits.h> exists even on freestanding compilers.  */
9130
9131#ifdef __STDC__
9132# include <limits.h>
9133#else
9134# include <assert.h>
9135#endif
9136
9137#undef dlopen
9138
9139/* Override any gcc2 internal prototype to avoid an error.  */
9140#ifdef __cplusplus
9141extern "C"
9142{
9143#endif
9144/* We use char because int might match the return type of a gcc2
9145   builtin and then its argument prototype would still apply.  */
9146char dlopen ();
9147/* The GNU C library defines this for functions which it implements
9148    to always fail with ENOSYS.  Some functions are actually named
9149    something starting with __ and the normal name is an alias.  */
9150#if defined (__stub_dlopen) || defined (__stub___dlopen)
9151choke me
9152#else
9153char (*f) () = dlopen;
9154#endif
9155#ifdef __cplusplus
9156}
9157#endif
9158
9159int
9160main ()
9161{
9162return f != dlopen;
9163  ;
9164  return 0;
9165}
9166_ACEOF
9167rm -f conftest.$ac_objext conftest$ac_exeext
9168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9169  (eval $ac_link) 2>conftest.er1
9170  ac_status=$?
9171  grep -v '^ *+' conftest.er1 >conftest.err
9172  rm -f conftest.er1
9173  cat conftest.err >&5
9174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175  (exit $ac_status); } &&
9176	 { ac_try='test -z "$ac_c_werror_flag"
9177			 || test ! -s conftest.err'
9178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179  (eval $ac_try) 2>&5
9180  ac_status=$?
9181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182  (exit $ac_status); }; } &&
9183	 { ac_try='test -s conftest$ac_exeext'
9184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185  (eval $ac_try) 2>&5
9186  ac_status=$?
9187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188  (exit $ac_status); }; }; then
9189  ac_cv_func_dlopen=yes
9190else
9191  echo "$as_me: failed program was:" >&5
9192sed 's/^/| /' conftest.$ac_ext >&5
9193
9194ac_cv_func_dlopen=no
9195fi
9196rm -f conftest.err conftest.$ac_objext \
9197      conftest$ac_exeext conftest.$ac_ext
9198fi
9199echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9200echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9201if test $ac_cv_func_dlopen = yes; then
9202  lt_cv_dlopen="dlopen"
9203else
9204  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9205echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9206if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9207  echo $ECHO_N "(cached) $ECHO_C" >&6
9208else
9209  ac_check_lib_save_LIBS=$LIBS
9210LIBS="-ldl  $LIBS"
9211cat >conftest.$ac_ext <<_ACEOF
9212/* confdefs.h.  */
9213_ACEOF
9214cat confdefs.h >>conftest.$ac_ext
9215cat >>conftest.$ac_ext <<_ACEOF
9216/* end confdefs.h.  */
9217
9218/* Override any gcc2 internal prototype to avoid an error.  */
9219#ifdef __cplusplus
9220extern "C"
9221#endif
9222/* We use char because int might match the return type of a gcc2
9223   builtin and then its argument prototype would still apply.  */
9224char dlopen ();
9225int
9226main ()
9227{
9228dlopen ();
9229  ;
9230  return 0;
9231}
9232_ACEOF
9233rm -f conftest.$ac_objext conftest$ac_exeext
9234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9235  (eval $ac_link) 2>conftest.er1
9236  ac_status=$?
9237  grep -v '^ *+' conftest.er1 >conftest.err
9238  rm -f conftest.er1
9239  cat conftest.err >&5
9240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241  (exit $ac_status); } &&
9242	 { ac_try='test -z "$ac_c_werror_flag"
9243			 || test ! -s conftest.err'
9244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245  (eval $ac_try) 2>&5
9246  ac_status=$?
9247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248  (exit $ac_status); }; } &&
9249	 { ac_try='test -s conftest$ac_exeext'
9250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251  (eval $ac_try) 2>&5
9252  ac_status=$?
9253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254  (exit $ac_status); }; }; then
9255  ac_cv_lib_dl_dlopen=yes
9256else
9257  echo "$as_me: failed program was:" >&5
9258sed 's/^/| /' conftest.$ac_ext >&5
9259
9260ac_cv_lib_dl_dlopen=no
9261fi
9262rm -f conftest.err conftest.$ac_objext \
9263      conftest$ac_exeext conftest.$ac_ext
9264LIBS=$ac_check_lib_save_LIBS
9265fi
9266echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9267echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9268if test $ac_cv_lib_dl_dlopen = yes; then
9269  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9270else
9271  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9272echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9273if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9274  echo $ECHO_N "(cached) $ECHO_C" >&6
9275else
9276  ac_check_lib_save_LIBS=$LIBS
9277LIBS="-lsvld  $LIBS"
9278cat >conftest.$ac_ext <<_ACEOF
9279/* confdefs.h.  */
9280_ACEOF
9281cat confdefs.h >>conftest.$ac_ext
9282cat >>conftest.$ac_ext <<_ACEOF
9283/* end confdefs.h.  */
9284
9285/* Override any gcc2 internal prototype to avoid an error.  */
9286#ifdef __cplusplus
9287extern "C"
9288#endif
9289/* We use char because int might match the return type of a gcc2
9290   builtin and then its argument prototype would still apply.  */
9291char dlopen ();
9292int
9293main ()
9294{
9295dlopen ();
9296  ;
9297  return 0;
9298}
9299_ACEOF
9300rm -f conftest.$ac_objext conftest$ac_exeext
9301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302  (eval $ac_link) 2>conftest.er1
9303  ac_status=$?
9304  grep -v '^ *+' conftest.er1 >conftest.err
9305  rm -f conftest.er1
9306  cat conftest.err >&5
9307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308  (exit $ac_status); } &&
9309	 { ac_try='test -z "$ac_c_werror_flag"
9310			 || test ! -s conftest.err'
9311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312  (eval $ac_try) 2>&5
9313  ac_status=$?
9314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315  (exit $ac_status); }; } &&
9316	 { ac_try='test -s conftest$ac_exeext'
9317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318  (eval $ac_try) 2>&5
9319  ac_status=$?
9320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321  (exit $ac_status); }; }; then
9322  ac_cv_lib_svld_dlopen=yes
9323else
9324  echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
9326
9327ac_cv_lib_svld_dlopen=no
9328fi
9329rm -f conftest.err conftest.$ac_objext \
9330      conftest$ac_exeext conftest.$ac_ext
9331LIBS=$ac_check_lib_save_LIBS
9332fi
9333echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9334echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9335if test $ac_cv_lib_svld_dlopen = yes; then
9336  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9337else
9338  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9339echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9340if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9341  echo $ECHO_N "(cached) $ECHO_C" >&6
9342else
9343  ac_check_lib_save_LIBS=$LIBS
9344LIBS="-ldld  $LIBS"
9345cat >conftest.$ac_ext <<_ACEOF
9346/* confdefs.h.  */
9347_ACEOF
9348cat confdefs.h >>conftest.$ac_ext
9349cat >>conftest.$ac_ext <<_ACEOF
9350/* end confdefs.h.  */
9351
9352/* Override any gcc2 internal prototype to avoid an error.  */
9353#ifdef __cplusplus
9354extern "C"
9355#endif
9356/* We use char because int might match the return type of a gcc2
9357   builtin and then its argument prototype would still apply.  */
9358char dld_link ();
9359int
9360main ()
9361{
9362dld_link ();
9363  ;
9364  return 0;
9365}
9366_ACEOF
9367rm -f conftest.$ac_objext conftest$ac_exeext
9368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369  (eval $ac_link) 2>conftest.er1
9370  ac_status=$?
9371  grep -v '^ *+' conftest.er1 >conftest.err
9372  rm -f conftest.er1
9373  cat conftest.err >&5
9374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375  (exit $ac_status); } &&
9376	 { ac_try='test -z "$ac_c_werror_flag"
9377			 || test ! -s conftest.err'
9378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379  (eval $ac_try) 2>&5
9380  ac_status=$?
9381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382  (exit $ac_status); }; } &&
9383	 { ac_try='test -s conftest$ac_exeext'
9384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385  (eval $ac_try) 2>&5
9386  ac_status=$?
9387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388  (exit $ac_status); }; }; then
9389  ac_cv_lib_dld_dld_link=yes
9390else
9391  echo "$as_me: failed program was:" >&5
9392sed 's/^/| /' conftest.$ac_ext >&5
9393
9394ac_cv_lib_dld_dld_link=no
9395fi
9396rm -f conftest.err conftest.$ac_objext \
9397      conftest$ac_exeext conftest.$ac_ext
9398LIBS=$ac_check_lib_save_LIBS
9399fi
9400echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9401echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9402if test $ac_cv_lib_dld_dld_link = yes; then
9403  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9404fi
9405
9406
9407fi
9408
9409
9410fi
9411
9412
9413fi
9414
9415
9416fi
9417
9418
9419fi
9420
9421    ;;
9422  esac
9423
9424  if test "x$lt_cv_dlopen" != xno; then
9425    enable_dlopen=yes
9426  else
9427    enable_dlopen=no
9428  fi
9429
9430  case $lt_cv_dlopen in
9431  dlopen)
9432    save_CPPFLAGS="$CPPFLAGS"
9433    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9434
9435    save_LDFLAGS="$LDFLAGS"
9436    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9437
9438    save_LIBS="$LIBS"
9439    LIBS="$lt_cv_dlopen_libs $LIBS"
9440
9441    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9442echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9443if test "${lt_cv_dlopen_self+set}" = set; then
9444  echo $ECHO_N "(cached) $ECHO_C" >&6
9445else
9446  	  if test "$cross_compiling" = yes; then :
9447  lt_cv_dlopen_self=cross
9448else
9449  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9450  lt_status=$lt_dlunknown
9451  cat > conftest.$ac_ext <<EOF
9452#line 9452 "configure"
9453#include "confdefs.h"
9454
9455#if HAVE_DLFCN_H
9456#include <dlfcn.h>
9457#endif
9458
9459#include <stdio.h>
9460
9461#ifdef RTLD_GLOBAL
9462#  define LT_DLGLOBAL		RTLD_GLOBAL
9463#else
9464#  ifdef DL_GLOBAL
9465#    define LT_DLGLOBAL		DL_GLOBAL
9466#  else
9467#    define LT_DLGLOBAL		0
9468#  endif
9469#endif
9470
9471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9472   find out it does not work in some platform. */
9473#ifndef LT_DLLAZY_OR_NOW
9474#  ifdef RTLD_LAZY
9475#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9476#  else
9477#    ifdef DL_LAZY
9478#      define LT_DLLAZY_OR_NOW		DL_LAZY
9479#    else
9480#      ifdef RTLD_NOW
9481#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9482#      else
9483#        ifdef DL_NOW
9484#          define LT_DLLAZY_OR_NOW	DL_NOW
9485#        else
9486#          define LT_DLLAZY_OR_NOW	0
9487#        endif
9488#      endif
9489#    endif
9490#  endif
9491#endif
9492
9493#ifdef __cplusplus
9494extern "C" void exit (int);
9495#endif
9496
9497void fnord() { int i=42;}
9498int main ()
9499{
9500  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9501  int status = $lt_dlunknown;
9502
9503  if (self)
9504    {
9505      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9506      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9507      /* dlclose (self); */
9508    }
9509  else
9510    puts (dlerror ());
9511
9512    exit (status);
9513}
9514EOF
9515  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9516  (eval $ac_link) 2>&5
9517  ac_status=$?
9518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9520    (./conftest; exit; ) >&5 2>/dev/null
9521    lt_status=$?
9522    case x$lt_status in
9523      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9524      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9525      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9526    esac
9527  else :
9528    # compilation failed
9529    lt_cv_dlopen_self=no
9530  fi
9531fi
9532rm -fr conftest*
9533
9534
9535fi
9536echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9537echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9538
9539    if test "x$lt_cv_dlopen_self" = xyes; then
9540      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9541      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9542echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9543if test "${lt_cv_dlopen_self_static+set}" = set; then
9544  echo $ECHO_N "(cached) $ECHO_C" >&6
9545else
9546  	  if test "$cross_compiling" = yes; then :
9547  lt_cv_dlopen_self_static=cross
9548else
9549  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9550  lt_status=$lt_dlunknown
9551  cat > conftest.$ac_ext <<EOF
9552#line 9552 "configure"
9553#include "confdefs.h"
9554
9555#if HAVE_DLFCN_H
9556#include <dlfcn.h>
9557#endif
9558
9559#include <stdio.h>
9560
9561#ifdef RTLD_GLOBAL
9562#  define LT_DLGLOBAL		RTLD_GLOBAL
9563#else
9564#  ifdef DL_GLOBAL
9565#    define LT_DLGLOBAL		DL_GLOBAL
9566#  else
9567#    define LT_DLGLOBAL		0
9568#  endif
9569#endif
9570
9571/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9572   find out it does not work in some platform. */
9573#ifndef LT_DLLAZY_OR_NOW
9574#  ifdef RTLD_LAZY
9575#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9576#  else
9577#    ifdef DL_LAZY
9578#      define LT_DLLAZY_OR_NOW		DL_LAZY
9579#    else
9580#      ifdef RTLD_NOW
9581#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9582#      else
9583#        ifdef DL_NOW
9584#          define LT_DLLAZY_OR_NOW	DL_NOW
9585#        else
9586#          define LT_DLLAZY_OR_NOW	0
9587#        endif
9588#      endif
9589#    endif
9590#  endif
9591#endif
9592
9593#ifdef __cplusplus
9594extern "C" void exit (int);
9595#endif
9596
9597void fnord() { int i=42;}
9598int main ()
9599{
9600  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9601  int status = $lt_dlunknown;
9602
9603  if (self)
9604    {
9605      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9606      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9607      /* dlclose (self); */
9608    }
9609  else
9610    puts (dlerror ());
9611
9612    exit (status);
9613}
9614EOF
9615  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9616  (eval $ac_link) 2>&5
9617  ac_status=$?
9618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9620    (./conftest; exit; ) >&5 2>/dev/null
9621    lt_status=$?
9622    case x$lt_status in
9623      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9624      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9625      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9626    esac
9627  else :
9628    # compilation failed
9629    lt_cv_dlopen_self_static=no
9630  fi
9631fi
9632rm -fr conftest*
9633
9634
9635fi
9636echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9637echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9638    fi
9639
9640    CPPFLAGS="$save_CPPFLAGS"
9641    LDFLAGS="$save_LDFLAGS"
9642    LIBS="$save_LIBS"
9643    ;;
9644  esac
9645
9646  case $lt_cv_dlopen_self in
9647  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9648  *) enable_dlopen_self=unknown ;;
9649  esac
9650
9651  case $lt_cv_dlopen_self_static in
9652  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9653  *) enable_dlopen_self_static=unknown ;;
9654  esac
9655fi
9656
9657
9658# Report which library types will actually be built
9659echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9660echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9661echo "$as_me:$LINENO: result: $can_build_shared" >&5
9662echo "${ECHO_T}$can_build_shared" >&6
9663
9664echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9665echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9666test "$can_build_shared" = "no" && enable_shared=no
9667
9668# On AIX, shared libraries and static libraries use the same namespace, and
9669# are all built from PIC.
9670case $host_os in
9671aix3*)
9672  test "$enable_shared" = yes && enable_static=no
9673  if test -n "$RANLIB"; then
9674    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9675    postinstall_cmds='$RANLIB $lib'
9676  fi
9677  ;;
9678
9679aix[4-9]*)
9680  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9681    test "$enable_shared" = yes && enable_static=no
9682  fi
9683    ;;
9684esac
9685echo "$as_me:$LINENO: result: $enable_shared" >&5
9686echo "${ECHO_T}$enable_shared" >&6
9687
9688echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9689echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9690# Make sure either enable_shared or enable_static is yes.
9691test "$enable_shared" = yes || enable_static=yes
9692echo "$as_me:$LINENO: result: $enable_static" >&5
9693echo "${ECHO_T}$enable_static" >&6
9694
9695# The else clause should only fire when bootstrapping the
9696# libtool distribution, otherwise you forgot to ship ltmain.sh
9697# with your package, and you will get complaints that there are
9698# no rules to generate ltmain.sh.
9699if test -f "$ltmain"; then
9700  # See if we are running on zsh, and set the options which allow our commands through
9701  # without removal of \ escapes.
9702  if test -n "${ZSH_VERSION+set}" ; then
9703    setopt NO_GLOB_SUBST
9704  fi
9705  # Now quote all the things that may contain metacharacters while being
9706  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9707  # variables and quote the copies for generation of the libtool script.
9708  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9709    SED SHELL STRIP \
9710    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9711    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9712    deplibs_check_method reload_flag reload_cmds need_locks \
9713    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9714    lt_cv_sys_global_symbol_to_c_name_address \
9715    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9716    old_postinstall_cmds old_postuninstall_cmds \
9717    compiler \
9718    CC \
9719    LD \
9720    lt_prog_compiler_wl \
9721    lt_prog_compiler_pic \
9722    lt_prog_compiler_static \
9723    lt_prog_compiler_no_builtin_flag \
9724    export_dynamic_flag_spec \
9725    thread_safe_flag_spec \
9726    whole_archive_flag_spec \
9727    enable_shared_with_static_runtimes \
9728    old_archive_cmds \
9729    old_archive_from_new_cmds \
9730    predep_objects \
9731    postdep_objects \
9732    predeps \
9733    postdeps \
9734    compiler_lib_search_path \
9735    compiler_lib_search_dirs \
9736    archive_cmds \
9737    archive_expsym_cmds \
9738    postinstall_cmds \
9739    postuninstall_cmds \
9740    old_archive_from_expsyms_cmds \
9741    allow_undefined_flag \
9742    no_undefined_flag \
9743    export_symbols_cmds \
9744    hardcode_libdir_flag_spec \
9745    hardcode_libdir_flag_spec_ld \
9746    hardcode_libdir_separator \
9747    hardcode_automatic \
9748    module_cmds \
9749    module_expsym_cmds \
9750    lt_cv_prog_compiler_c_o \
9751    fix_srcfile_path \
9752    exclude_expsyms \
9753    include_expsyms; do
9754
9755    case $var in
9756    old_archive_cmds | \
9757    old_archive_from_new_cmds | \
9758    archive_cmds | \
9759    archive_expsym_cmds | \
9760    module_cmds | \
9761    module_expsym_cmds | \
9762    old_archive_from_expsyms_cmds | \
9763    export_symbols_cmds | \
9764    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9765    postinstall_cmds | postuninstall_cmds | \
9766    old_postinstall_cmds | old_postuninstall_cmds | \
9767    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9768      # Double-quote double-evaled strings.
9769      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9770      ;;
9771    *)
9772      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9773      ;;
9774    esac
9775  done
9776
9777  case $lt_echo in
9778  *'\$0 --fallback-echo"')
9779    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9780    ;;
9781  esac
9782
9783cfgfile="${ofile}T"
9784  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9785  $rm -f "$cfgfile"
9786  { echo "$as_me:$LINENO: creating $ofile" >&5
9787echo "$as_me: creating $ofile" >&6;}
9788
9789  cat <<__EOF__ >> "$cfgfile"
9790#! $SHELL
9791
9792# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9793# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9794# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9795#
9796# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9797# Free Software Foundation, Inc.
9798#
9799# This file is part of GNU Libtool:
9800# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9801#
9802# This program is free software; you can redistribute it and/or modify
9803# it under the terms of the GNU General Public License as published by
9804# the Free Software Foundation; either version 2 of the License, or
9805# (at your option) any later version.
9806#
9807# This program is distributed in the hope that it will be useful, but
9808# WITHOUT ANY WARRANTY; without even the implied warranty of
9809# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9810# General Public License for more details.
9811#
9812# You should have received a copy of the GNU General Public License
9813# along with this program; if not, write to the Free Software
9814# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9815#
9816# As a special exception to the GNU General Public License, if you
9817# distribute this file as part of a program that contains a
9818# configuration script generated by Autoconf, you may include it under
9819# the same distribution terms that you use for the rest of that program.
9820
9821# A sed program that does not truncate output.
9822SED=$lt_SED
9823
9824# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9825Xsed="$SED -e 1s/^X//"
9826
9827# The HP-UX ksh and POSIX shell print the target directory to stdout
9828# if CDPATH is set.
9829(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9830
9831# The names of the tagged configurations supported by this script.
9832available_tags=
9833
9834# ### BEGIN LIBTOOL CONFIG
9835
9836# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9837
9838# Shell to use when invoking shell scripts.
9839SHELL=$lt_SHELL
9840
9841# Whether or not to build shared libraries.
9842build_libtool_libs=$enable_shared
9843
9844# Whether or not to build static libraries.
9845build_old_libs=$enable_static
9846
9847# Whether or not to add -lc for building shared libraries.
9848build_libtool_need_lc=$archive_cmds_need_lc
9849
9850# Whether or not to disallow shared libs when runtime libs are static
9851allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9852
9853# Whether or not to optimize for fast installation.
9854fast_install=$enable_fast_install
9855
9856# The host system.
9857host_alias=$host_alias
9858host=$host
9859host_os=$host_os
9860
9861# The build system.
9862build_alias=$build_alias
9863build=$build
9864build_os=$build_os
9865
9866# An echo program that does not interpret backslashes.
9867echo=$lt_echo
9868
9869# The archiver.
9870AR=$lt_AR
9871AR_FLAGS=$lt_AR_FLAGS
9872
9873# A C compiler.
9874LTCC=$lt_LTCC
9875
9876# LTCC compiler flags.
9877LTCFLAGS=$lt_LTCFLAGS
9878
9879# A language-specific compiler.
9880CC=$lt_compiler
9881
9882# Is the compiler the GNU C compiler?
9883with_gcc=$GCC
9884
9885# An ERE matcher.
9886EGREP=$lt_EGREP
9887
9888# The linker used to build libraries.
9889LD=$lt_LD
9890
9891# Whether we need hard or soft links.
9892LN_S=$lt_LN_S
9893
9894# A BSD-compatible nm program.
9895NM=$lt_NM
9896
9897# A symbol stripping program
9898STRIP=$lt_STRIP
9899
9900# Used to examine libraries when file_magic_cmd begins "file"
9901MAGIC_CMD=$MAGIC_CMD
9902
9903# Used on cygwin: DLL creation program.
9904DLLTOOL="$DLLTOOL"
9905
9906# Used on cygwin: object dumper.
9907OBJDUMP="$OBJDUMP"
9908
9909# Used on cygwin: assembler.
9910AS="$AS"
9911
9912# The name of the directory that contains temporary libtool files.
9913objdir=$objdir
9914
9915# How to create reloadable object files.
9916reload_flag=$lt_reload_flag
9917reload_cmds=$lt_reload_cmds
9918
9919# How to pass a linker flag through the compiler.
9920wl=$lt_lt_prog_compiler_wl
9921
9922# Object file suffix (normally "o").
9923objext="$ac_objext"
9924
9925# Old archive suffix (normally "a").
9926libext="$libext"
9927
9928# Shared library suffix (normally ".so").
9929shrext_cmds='$shrext_cmds'
9930
9931# Executable file suffix (normally "").
9932exeext="$exeext"
9933
9934# Additional compiler flags for building library objects.
9935pic_flag=$lt_lt_prog_compiler_pic
9936pic_mode=$pic_mode
9937
9938# What is the maximum length of a command?
9939max_cmd_len=$lt_cv_sys_max_cmd_len
9940
9941# Does compiler simultaneously support -c and -o options?
9942compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9943
9944# Must we lock files when doing compilation?
9945need_locks=$lt_need_locks
9946
9947# Do we need the lib prefix for modules?
9948need_lib_prefix=$need_lib_prefix
9949
9950# Do we need a version for libraries?
9951need_version=$need_version
9952
9953# Whether dlopen is supported.
9954dlopen_support=$enable_dlopen
9955
9956# Whether dlopen of programs is supported.
9957dlopen_self=$enable_dlopen_self
9958
9959# Whether dlopen of statically linked programs is supported.
9960dlopen_self_static=$enable_dlopen_self_static
9961
9962# Compiler flag to prevent dynamic linking.
9963link_static_flag=$lt_lt_prog_compiler_static
9964
9965# Compiler flag to turn off builtin functions.
9966no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9967
9968# Compiler flag to allow reflexive dlopens.
9969export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9970
9971# Compiler flag to generate shared objects directly from archives.
9972whole_archive_flag_spec=$lt_whole_archive_flag_spec
9973
9974# Compiler flag to generate thread-safe objects.
9975thread_safe_flag_spec=$lt_thread_safe_flag_spec
9976
9977# Library versioning type.
9978version_type=$version_type
9979
9980# Format of library name prefix.
9981libname_spec=$lt_libname_spec
9982
9983# List of archive names.  First name is the real one, the rest are links.
9984# The last name is the one that the linker finds with -lNAME.
9985library_names_spec=$lt_library_names_spec
9986
9987# The coded name of the library, if different from the real name.
9988soname_spec=$lt_soname_spec
9989
9990# Commands used to build and install an old-style archive.
9991RANLIB=$lt_RANLIB
9992old_archive_cmds=$lt_old_archive_cmds
9993old_postinstall_cmds=$lt_old_postinstall_cmds
9994old_postuninstall_cmds=$lt_old_postuninstall_cmds
9995
9996# Create an old-style archive from a shared archive.
9997old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9998
9999# Create a temporary old-style archive to link instead of a shared archive.
10000old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10001
10002# Commands used to build and install a shared archive.
10003archive_cmds=$lt_archive_cmds
10004archive_expsym_cmds=$lt_archive_expsym_cmds
10005postinstall_cmds=$lt_postinstall_cmds
10006postuninstall_cmds=$lt_postuninstall_cmds
10007
10008# Commands used to build a loadable module (assumed same as above if empty)
10009module_cmds=$lt_module_cmds
10010module_expsym_cmds=$lt_module_expsym_cmds
10011
10012# Commands to strip libraries.
10013old_striplib=$lt_old_striplib
10014striplib=$lt_striplib
10015
10016# Dependencies to place before the objects being linked to create a
10017# shared library.
10018predep_objects=$lt_predep_objects
10019
10020# Dependencies to place after the objects being linked to create a
10021# shared library.
10022postdep_objects=$lt_postdep_objects
10023
10024# Dependencies to place before the objects being linked to create a
10025# shared library.
10026predeps=$lt_predeps
10027
10028# Dependencies to place after the objects being linked to create a
10029# shared library.
10030postdeps=$lt_postdeps
10031
10032# The directories searched by this compiler when creating a shared
10033# library
10034compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10035
10036# The library search path used internally by the compiler when linking
10037# a shared library.
10038compiler_lib_search_path=$lt_compiler_lib_search_path
10039
10040# Method to check whether dependent libraries are shared objects.
10041deplibs_check_method=$lt_deplibs_check_method
10042
10043# Command to use when deplibs_check_method == file_magic.
10044file_magic_cmd=$lt_file_magic_cmd
10045
10046# Flag that allows shared libraries with undefined symbols to be built.
10047allow_undefined_flag=$lt_allow_undefined_flag
10048
10049# Flag that forces no undefined symbols.
10050no_undefined_flag=$lt_no_undefined_flag
10051
10052# Commands used to finish a libtool library installation in a directory.
10053finish_cmds=$lt_finish_cmds
10054
10055# Same as above, but a single script fragment to be evaled but not shown.
10056finish_eval=$lt_finish_eval
10057
10058# Take the output of nm and produce a listing of raw symbols and C names.
10059global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10060
10061# Transform the output of nm in a proper C declaration
10062global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10063
10064# Transform the output of nm in a C name address pair
10065global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10066
10067# This is the shared library runtime path variable.
10068runpath_var=$runpath_var
10069
10070# This is the shared library path variable.
10071shlibpath_var=$shlibpath_var
10072
10073# Is shlibpath searched before the hard-coded library search path?
10074shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10075
10076# How to hardcode a shared library path into an executable.
10077hardcode_action=$hardcode_action
10078
10079# Whether we should hardcode library paths into libraries.
10080hardcode_into_libs=$hardcode_into_libs
10081
10082# Flag to hardcode \$libdir into a binary during linking.
10083# This must work even if \$libdir does not exist.
10084hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10085
10086# If ld is used when linking, flag to hardcode \$libdir into
10087# a binary during linking. This must work even if \$libdir does
10088# not exist.
10089hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10090
10091# Whether we need a single -rpath flag with a separated argument.
10092hardcode_libdir_separator=$lt_hardcode_libdir_separator
10093
10094# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10095# resulting binary.
10096hardcode_direct=$hardcode_direct
10097
10098# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10099# resulting binary.
10100hardcode_minus_L=$hardcode_minus_L
10101
10102# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10103# the resulting binary.
10104hardcode_shlibpath_var=$hardcode_shlibpath_var
10105
10106# Set to yes if building a shared library automatically hardcodes DIR into the library
10107# and all subsequent libraries and executables linked against it.
10108hardcode_automatic=$hardcode_automatic
10109
10110# Variables whose values should be saved in libtool wrapper scripts and
10111# restored at relink time.
10112variables_saved_for_relink="$variables_saved_for_relink"
10113
10114# Whether libtool must link a program against all its dependency libraries.
10115link_all_deplibs=$link_all_deplibs
10116
10117# Compile-time system search path for libraries
10118sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10119
10120# Run-time system search path for libraries
10121sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10122
10123# Fix the shell variable \$srcfile for the compiler.
10124fix_srcfile_path=$lt_fix_srcfile_path
10125
10126# Set to yes if exported symbols are required.
10127always_export_symbols=$always_export_symbols
10128
10129# The commands to list exported symbols.
10130export_symbols_cmds=$lt_export_symbols_cmds
10131
10132# The commands to extract the exported symbol list from a shared archive.
10133extract_expsyms_cmds=$lt_extract_expsyms_cmds
10134
10135# Symbols that should not be listed in the preloaded symbols.
10136exclude_expsyms=$lt_exclude_expsyms
10137
10138# Symbols that must always be exported.
10139include_expsyms=$lt_include_expsyms
10140
10141# ### END LIBTOOL CONFIG
10142
10143__EOF__
10144
10145
10146  case $host_os in
10147  aix3*)
10148    cat <<\EOF >> "$cfgfile"
10149
10150# AIX sometimes has problems with the GCC collect2 program.  For some
10151# reason, if we set the COLLECT_NAMES environment variable, the problems
10152# vanish in a puff of smoke.
10153if test "X${COLLECT_NAMES+set}" != Xset; then
10154  COLLECT_NAMES=
10155  export COLLECT_NAMES
10156fi
10157EOF
10158    ;;
10159  esac
10160
10161  # We use sed instead of cat because bash on DJGPP gets confused if
10162  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10163  # text mode, it properly converts lines to CR/LF.  This bash problem
10164  # is reportedly fixed, but why not run on old versions too?
10165  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10166
10167  mv -f "$cfgfile" "$ofile" || \
10168    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10169  chmod +x "$ofile"
10170
10171else
10172  # If there is no Makefile yet, we rely on a make rule to execute
10173  # `config.status --recheck' to rerun these tests and create the
10174  # libtool script then.
10175  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10176  if test -f "$ltmain_in"; then
10177    test -f Makefile && make "$ltmain"
10178  fi
10179fi
10180
10181
10182ac_ext=c
10183ac_cpp='$CPP $CPPFLAGS'
10184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10186ac_compiler_gnu=$ac_cv_c_compiler_gnu
10187
10188CC="$lt_save_CC"
10189
10190
10191# Check whether --with-tags or --without-tags was given.
10192if test "${with_tags+set}" = set; then
10193  withval="$with_tags"
10194  tagnames="$withval"
10195fi;
10196
10197if test -f "$ltmain" && test -n "$tagnames"; then
10198  if test ! -f "${ofile}"; then
10199    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10200echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10201  fi
10202
10203  if test -z "$LTCC"; then
10204    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10205    if test -z "$LTCC"; then
10206      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10207echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10208    else
10209      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10210echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10211    fi
10212  fi
10213  if test -z "$LTCFLAGS"; then
10214    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10215  fi
10216
10217  # Extract list of available tagged configurations in $ofile.
10218  # Note that this assumes the entire list is on one line.
10219  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10220
10221  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10222  for tagname in $tagnames; do
10223    IFS="$lt_save_ifs"
10224    # Check whether tagname contains only valid characters
10225    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10226    "") ;;
10227    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10228echo "$as_me: error: invalid tag name: $tagname" >&2;}
10229   { (exit 1); exit 1; }; }
10230	;;
10231    esac
10232
10233    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10234    then
10235      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10236echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10237   { (exit 1); exit 1; }; }
10238    fi
10239
10240    # Update the list of available tags.
10241    if test -n "$tagname"; then
10242      echo appending configuration tag \"$tagname\" to $ofile
10243
10244      case $tagname in
10245      CXX)
10246	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10247	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10248	    (test "X$CXX" != "Xg++"))) ; then
10249	  ac_ext=cc
10250ac_cpp='$CXXCPP $CPPFLAGS'
10251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10254
10255
10256
10257
10258archive_cmds_need_lc_CXX=no
10259allow_undefined_flag_CXX=
10260always_export_symbols_CXX=no
10261archive_expsym_cmds_CXX=
10262export_dynamic_flag_spec_CXX=
10263hardcode_direct_CXX=no
10264hardcode_libdir_flag_spec_CXX=
10265hardcode_libdir_flag_spec_ld_CXX=
10266hardcode_libdir_separator_CXX=
10267hardcode_minus_L_CXX=no
10268hardcode_shlibpath_var_CXX=unsupported
10269hardcode_automatic_CXX=no
10270module_cmds_CXX=
10271module_expsym_cmds_CXX=
10272link_all_deplibs_CXX=unknown
10273old_archive_cmds_CXX=$old_archive_cmds
10274no_undefined_flag_CXX=
10275whole_archive_flag_spec_CXX=
10276enable_shared_with_static_runtimes_CXX=no
10277
10278# Dependencies to place before and after the object being linked:
10279predep_objects_CXX=
10280postdep_objects_CXX=
10281predeps_CXX=
10282postdeps_CXX=
10283compiler_lib_search_path_CXX=
10284compiler_lib_search_dirs_CXX=
10285
10286# Source file extension for C++ test sources.
10287ac_ext=cpp
10288
10289# Object file extension for compiled C++ test sources.
10290objext=o
10291objext_CXX=$objext
10292
10293# Code to be used in simple compile tests
10294lt_simple_compile_test_code="int some_variable = 0;"
10295
10296# Code to be used in simple link tests
10297lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10298
10299# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10300
10301# If no C compiler was specified, use CC.
10302LTCC=${LTCC-"$CC"}
10303
10304# If no C compiler flags were specified, use CFLAGS.
10305LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10306
10307# Allow CC to be a program name with arguments.
10308compiler=$CC
10309
10310
10311# save warnings/boilerplate of simple test code
10312ac_outfile=conftest.$ac_objext
10313echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10314eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10315_lt_compiler_boilerplate=`cat conftest.err`
10316$rm conftest*
10317
10318ac_outfile=conftest.$ac_objext
10319echo "$lt_simple_link_test_code" >conftest.$ac_ext
10320eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10321_lt_linker_boilerplate=`cat conftest.err`
10322$rm -r conftest*
10323
10324
10325# Allow CC to be a program name with arguments.
10326lt_save_CC=$CC
10327lt_save_LD=$LD
10328lt_save_GCC=$GCC
10329GCC=$GXX
10330lt_save_with_gnu_ld=$with_gnu_ld
10331lt_save_path_LD=$lt_cv_path_LD
10332if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10333  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10334else
10335  $as_unset lt_cv_prog_gnu_ld
10336fi
10337if test -n "${lt_cv_path_LDCXX+set}"; then
10338  lt_cv_path_LD=$lt_cv_path_LDCXX
10339else
10340  $as_unset lt_cv_path_LD
10341fi
10342test -z "${LDCXX+set}" || LD=$LDCXX
10343CC=${CXX-"c++"}
10344compiler=$CC
10345compiler_CXX=$CC
10346for cc_temp in $compiler""; do
10347  case $cc_temp in
10348    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10349    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10350    \-*) ;;
10351    *) break;;
10352  esac
10353done
10354cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10355
10356
10357# We don't want -fno-exception wen compiling C++ code, so set the
10358# no_builtin_flag separately
10359if test "$GXX" = yes; then
10360  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10361else
10362  lt_prog_compiler_no_builtin_flag_CXX=
10363fi
10364
10365if test "$GXX" = yes; then
10366  # Set up default GNU C++ configuration
10367
10368
10369# Check whether --with-gnu-ld or --without-gnu-ld was given.
10370if test "${with_gnu_ld+set}" = set; then
10371  withval="$with_gnu_ld"
10372  test "$withval" = no || with_gnu_ld=yes
10373else
10374  with_gnu_ld=no
10375fi;
10376ac_prog=ld
10377if test "$GCC" = yes; then
10378  # Check if gcc -print-prog-name=ld gives a path.
10379  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10380echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10381  case $host in
10382  *-*-mingw*)
10383    # gcc leaves a trailing carriage return which upsets mingw
10384    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10385  *)
10386    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10387  esac
10388  case $ac_prog in
10389    # Accept absolute paths.
10390    [\\/]* | ?:[\\/]*)
10391      re_direlt='/[^/][^/]*/\.\./'
10392      # Canonicalize the pathname of ld
10393      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10394      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10395	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10396      done
10397      test -z "$LD" && LD="$ac_prog"
10398      ;;
10399  "")
10400    # If it fails, then pretend we aren't using GCC.
10401    ac_prog=ld
10402    ;;
10403  *)
10404    # If it is relative, then search for the first ld in PATH.
10405    with_gnu_ld=unknown
10406    ;;
10407  esac
10408elif test "$with_gnu_ld" = yes; then
10409  echo "$as_me:$LINENO: checking for GNU ld" >&5
10410echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10411else
10412  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10413echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10414fi
10415if test "${lt_cv_path_LD+set}" = set; then
10416  echo $ECHO_N "(cached) $ECHO_C" >&6
10417else
10418  if test -z "$LD"; then
10419  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10420  for ac_dir in $PATH; do
10421    IFS="$lt_save_ifs"
10422    test -z "$ac_dir" && ac_dir=.
10423    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10424      lt_cv_path_LD="$ac_dir/$ac_prog"
10425      # Check to see if the program is GNU ld.  I'd rather use --version,
10426      # but apparently some variants of GNU ld only accept -v.
10427      # Break only if it was the GNU/non-GNU ld that we prefer.
10428      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10429      *GNU* | *'with BFD'*)
10430	test "$with_gnu_ld" != no && break
10431	;;
10432      *)
10433	test "$with_gnu_ld" != yes && break
10434	;;
10435      esac
10436    fi
10437  done
10438  IFS="$lt_save_ifs"
10439else
10440  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10441fi
10442fi
10443
10444LD="$lt_cv_path_LD"
10445if test -n "$LD"; then
10446  echo "$as_me:$LINENO: result: $LD" >&5
10447echo "${ECHO_T}$LD" >&6
10448else
10449  echo "$as_me:$LINENO: result: no" >&5
10450echo "${ECHO_T}no" >&6
10451fi
10452test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10453echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10454   { (exit 1); exit 1; }; }
10455echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10456echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10457if test "${lt_cv_prog_gnu_ld+set}" = set; then
10458  echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10461case `$LD -v 2>&1 </dev/null` in
10462*GNU* | *'with BFD'*)
10463  lt_cv_prog_gnu_ld=yes
10464  ;;
10465*)
10466  lt_cv_prog_gnu_ld=no
10467  ;;
10468esac
10469fi
10470echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10471echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10472with_gnu_ld=$lt_cv_prog_gnu_ld
10473
10474
10475
10476  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10477  # archiving commands below assume that GNU ld is being used.
10478  if test "$with_gnu_ld" = yes; then
10479    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10480    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10481
10482    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10483    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10484
10485    # If archive_cmds runs LD, not CC, wlarc should be empty
10486    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10487    #     investigate it a little bit more. (MM)
10488    wlarc='${wl}'
10489
10490    # ancient GNU ld didn't support --whole-archive et. al.
10491    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10492	grep 'no-whole-archive' > /dev/null; then
10493      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10494    else
10495      whole_archive_flag_spec_CXX=
10496    fi
10497  else
10498    with_gnu_ld=no
10499    wlarc=
10500
10501    # A generic and very simple default shared library creation
10502    # command for GNU C++ for the case where it uses the native
10503    # linker, instead of GNU ld.  If possible, this setting should
10504    # overridden to take advantage of the native linker features on
10505    # the platform it is being used on.
10506    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10507  fi
10508
10509  # Commands to make compiler produce verbose output that lists
10510  # what "hidden" libraries, object files and flags are used when
10511  # linking a shared library.
10512  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10513
10514else
10515  GXX=no
10516  with_gnu_ld=no
10517  wlarc=
10518fi
10519
10520# PORTME: fill in a description of your system's C++ link characteristics
10521echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10522echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10523ld_shlibs_CXX=yes
10524case $host_os in
10525  aix3*)
10526    # FIXME: insert proper C++ library support
10527    ld_shlibs_CXX=no
10528    ;;
10529  aix[4-9]*)
10530    if test "$host_cpu" = ia64; then
10531      # On IA64, the linker does run time linking by default, so we don't
10532      # have to do anything special.
10533      aix_use_runtimelinking=no
10534      exp_sym_flag='-Bexport'
10535      no_entry_flag=""
10536    else
10537      aix_use_runtimelinking=no
10538
10539      # Test if we are trying to use run time linking or normal
10540      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10541      # need to do runtime linking.
10542      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10543	for ld_flag in $LDFLAGS; do
10544	  case $ld_flag in
10545	  *-brtl*)
10546	    aix_use_runtimelinking=yes
10547	    break
10548	    ;;
10549	  esac
10550	done
10551	;;
10552      esac
10553
10554      exp_sym_flag='-bexport'
10555      no_entry_flag='-bnoentry'
10556    fi
10557
10558    # When large executables or shared objects are built, AIX ld can
10559    # have problems creating the table of contents.  If linking a library
10560    # or program results in "error TOC overflow" add -mminimal-toc to
10561    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10562    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10563
10564    archive_cmds_CXX=''
10565    hardcode_direct_CXX=yes
10566    hardcode_libdir_separator_CXX=':'
10567    link_all_deplibs_CXX=yes
10568
10569    if test "$GXX" = yes; then
10570      case $host_os in aix4.[012]|aix4.[012].*)
10571      # We only want to do this on AIX 4.2 and lower, the check
10572      # below for broken collect2 doesn't work under 4.3+
10573	collect2name=`${CC} -print-prog-name=collect2`
10574	if test -f "$collect2name" && \
10575	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10576	then
10577	  # We have reworked collect2
10578	  :
10579	else
10580	  # We have old collect2
10581	  hardcode_direct_CXX=unsupported
10582	  # It fails to find uninstalled libraries when the uninstalled
10583	  # path is not listed in the libpath.  Setting hardcode_minus_L
10584	  # to unsupported forces relinking
10585	  hardcode_minus_L_CXX=yes
10586	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10587	  hardcode_libdir_separator_CXX=
10588	fi
10589	;;
10590      esac
10591      shared_flag='-shared'
10592      if test "$aix_use_runtimelinking" = yes; then
10593	shared_flag="$shared_flag "'${wl}-G'
10594      fi
10595    else
10596      # not using gcc
10597      if test "$host_cpu" = ia64; then
10598	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10599	# chokes on -Wl,-G. The following line is correct:
10600	shared_flag='-G'
10601      else
10602	if test "$aix_use_runtimelinking" = yes; then
10603	  shared_flag='${wl}-G'
10604	else
10605	  shared_flag='${wl}-bM:SRE'
10606	fi
10607      fi
10608    fi
10609
10610    # It seems that -bexpall does not export symbols beginning with
10611    # underscore (_), so it is better to generate a list of symbols to export.
10612    always_export_symbols_CXX=yes
10613    if test "$aix_use_runtimelinking" = yes; then
10614      # Warning - without using the other runtime loading flags (-brtl),
10615      # -berok will link without error, but may produce a broken library.
10616      allow_undefined_flag_CXX='-berok'
10617      # Determine the default libpath from the value encoded in an empty executable.
10618      cat >conftest.$ac_ext <<_ACEOF
10619/* confdefs.h.  */
10620_ACEOF
10621cat confdefs.h >>conftest.$ac_ext
10622cat >>conftest.$ac_ext <<_ACEOF
10623/* end confdefs.h.  */
10624
10625int
10626main ()
10627{
10628
10629  ;
10630  return 0;
10631}
10632_ACEOF
10633rm -f conftest.$ac_objext conftest$ac_exeext
10634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635  (eval $ac_link) 2>conftest.er1
10636  ac_status=$?
10637  grep -v '^ *+' conftest.er1 >conftest.err
10638  rm -f conftest.er1
10639  cat conftest.err >&5
10640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641  (exit $ac_status); } &&
10642	 { ac_try='test -z "$ac_cxx_werror_flag"
10643			 || test ! -s conftest.err'
10644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645  (eval $ac_try) 2>&5
10646  ac_status=$?
10647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648  (exit $ac_status); }; } &&
10649	 { ac_try='test -s conftest$ac_exeext'
10650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651  (eval $ac_try) 2>&5
10652  ac_status=$?
10653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654  (exit $ac_status); }; }; then
10655
10656lt_aix_libpath_sed='
10657    /Import File Strings/,/^$/ {
10658	/^0/ {
10659	    s/^0  *\(.*\)$/\1/
10660	    p
10661	}
10662    }'
10663aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10664# Check for a 64-bit object if we didn't find anything.
10665if test -z "$aix_libpath"; then
10666  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10667fi
10668else
10669  echo "$as_me: failed program was:" >&5
10670sed 's/^/| /' conftest.$ac_ext >&5
10671
10672fi
10673rm -f conftest.err conftest.$ac_objext \
10674      conftest$ac_exeext conftest.$ac_ext
10675if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10676
10677      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10678
10679      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10680     else
10681      if test "$host_cpu" = ia64; then
10682	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10683	allow_undefined_flag_CXX="-z nodefs"
10684	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10685      else
10686	# Determine the default libpath from the value encoded in an empty executable.
10687	cat >conftest.$ac_ext <<_ACEOF
10688/* confdefs.h.  */
10689_ACEOF
10690cat confdefs.h >>conftest.$ac_ext
10691cat >>conftest.$ac_ext <<_ACEOF
10692/* end confdefs.h.  */
10693
10694int
10695main ()
10696{
10697
10698  ;
10699  return 0;
10700}
10701_ACEOF
10702rm -f conftest.$ac_objext conftest$ac_exeext
10703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10704  (eval $ac_link) 2>conftest.er1
10705  ac_status=$?
10706  grep -v '^ *+' conftest.er1 >conftest.err
10707  rm -f conftest.er1
10708  cat conftest.err >&5
10709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710  (exit $ac_status); } &&
10711	 { ac_try='test -z "$ac_cxx_werror_flag"
10712			 || test ! -s conftest.err'
10713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714  (eval $ac_try) 2>&5
10715  ac_status=$?
10716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717  (exit $ac_status); }; } &&
10718	 { ac_try='test -s conftest$ac_exeext'
10719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720  (eval $ac_try) 2>&5
10721  ac_status=$?
10722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723  (exit $ac_status); }; }; then
10724
10725lt_aix_libpath_sed='
10726    /Import File Strings/,/^$/ {
10727	/^0/ {
10728	    s/^0  *\(.*\)$/\1/
10729	    p
10730	}
10731    }'
10732aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10733# Check for a 64-bit object if we didn't find anything.
10734if test -z "$aix_libpath"; then
10735  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10736fi
10737else
10738  echo "$as_me: failed program was:" >&5
10739sed 's/^/| /' conftest.$ac_ext >&5
10740
10741fi
10742rm -f conftest.err conftest.$ac_objext \
10743      conftest$ac_exeext conftest.$ac_ext
10744if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10745
10746	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10747	# Warning - without using the other run time loading flags,
10748	# -berok will link without error, but may produce a broken library.
10749	no_undefined_flag_CXX=' ${wl}-bernotok'
10750	allow_undefined_flag_CXX=' ${wl}-berok'
10751	# Exported symbols can be pulled into shared objects from archives
10752	whole_archive_flag_spec_CXX='$convenience'
10753	archive_cmds_need_lc_CXX=yes
10754	# This is similar to how AIX traditionally builds its shared libraries.
10755	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10756      fi
10757    fi
10758    ;;
10759
10760  beos*)
10761    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10762      allow_undefined_flag_CXX=unsupported
10763      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10764      # support --undefined.  This deserves some investigation.  FIXME
10765      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10766    else
10767      ld_shlibs_CXX=no
10768    fi
10769    ;;
10770
10771  chorus*)
10772    case $cc_basename in
10773      *)
10774	# FIXME: insert proper C++ library support
10775	ld_shlibs_CXX=no
10776	;;
10777    esac
10778    ;;
10779
10780  cygwin* | mingw* | pw32*)
10781    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10782    # as there is no search path for DLLs.
10783    hardcode_libdir_flag_spec_CXX='-L$libdir'
10784    allow_undefined_flag_CXX=unsupported
10785    always_export_symbols_CXX=no
10786    enable_shared_with_static_runtimes_CXX=yes
10787
10788    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10789      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10790      # If the export-symbols file already is a .def file (1st line
10791      # is EXPORTS), use it as is; otherwise, prepend...
10792      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10793	cp $export_symbols $output_objdir/$soname.def;
10794      else
10795	echo EXPORTS > $output_objdir/$soname.def;
10796	cat $export_symbols >> $output_objdir/$soname.def;
10797      fi~
10798      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10799    else
10800      ld_shlibs_CXX=no
10801    fi
10802  ;;
10803      darwin* | rhapsody*)
10804      archive_cmds_need_lc_CXX=no
10805      hardcode_direct_CXX=no
10806      hardcode_automatic_CXX=yes
10807      hardcode_shlibpath_var_CXX=unsupported
10808      whole_archive_flag_spec_CXX=''
10809      link_all_deplibs_CXX=yes
10810      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
10811      if test "$GXX" = yes ; then
10812      output_verbose_link_cmd='echo'
10813      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10814      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10815      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10816      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10817      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10818        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
10819        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
10820      fi
10821      else
10822      case $cc_basename in
10823        xlc*)
10824         output_verbose_link_cmd='echo'
10825          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10826          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10827          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10828          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10829          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10830          ;;
10831       *)
10832         ld_shlibs_CXX=no
10833          ;;
10834      esac
10835      fi
10836        ;;
10837
10838  dgux*)
10839    case $cc_basename in
10840      ec++*)
10841	# FIXME: insert proper C++ library support
10842	ld_shlibs_CXX=no
10843	;;
10844      ghcx*)
10845	# Green Hills C++ Compiler
10846	# FIXME: insert proper C++ library support
10847	ld_shlibs_CXX=no
10848	;;
10849      *)
10850	# FIXME: insert proper C++ library support
10851	ld_shlibs_CXX=no
10852	;;
10853    esac
10854    ;;
10855  freebsd[12]*)
10856    # C++ shared libraries reported to be fairly broken before switch to ELF
10857    ld_shlibs_CXX=no
10858    ;;
10859  freebsd-elf*)
10860    archive_cmds_need_lc_CXX=no
10861    ;;
10862  freebsd* | dragonfly*)
10863    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10864    # conventions
10865    ld_shlibs_CXX=yes
10866    ;;
10867  gnu*)
10868    ;;
10869  hpux9*)
10870    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10871    hardcode_libdir_separator_CXX=:
10872    export_dynamic_flag_spec_CXX='${wl}-E'
10873    hardcode_direct_CXX=yes
10874    hardcode_minus_L_CXX=yes # Not in the search PATH,
10875				# but as the default
10876				# location of the library.
10877
10878    case $cc_basename in
10879    CC*)
10880      # FIXME: insert proper C++ library support
10881      ld_shlibs_CXX=no
10882      ;;
10883    aCC*)
10884      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10885      # Commands to make compiler produce verbose output that lists
10886      # what "hidden" libraries, object files and flags are used when
10887      # linking a shared library.
10888      #
10889      # There doesn't appear to be a way to prevent this compiler from
10890      # explicitly linking system object files so we need to strip them
10891      # from the output so that they don't get included in the library
10892      # dependencies.
10893      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10894      ;;
10895    *)
10896      if test "$GXX" = yes; then
10897        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10898      else
10899        # FIXME: insert proper C++ library support
10900        ld_shlibs_CXX=no
10901      fi
10902      ;;
10903    esac
10904    ;;
10905  hpux10*|hpux11*)
10906    if test $with_gnu_ld = no; then
10907      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10908      hardcode_libdir_separator_CXX=:
10909
10910      case $host_cpu in
10911      hppa*64*|ia64*) ;;
10912      *)
10913	export_dynamic_flag_spec_CXX='${wl}-E'
10914        ;;
10915      esac
10916    fi
10917    case $host_cpu in
10918    hppa*64*|ia64*)
10919      hardcode_direct_CXX=no
10920      hardcode_shlibpath_var_CXX=no
10921      ;;
10922    *)
10923      hardcode_direct_CXX=yes
10924      hardcode_minus_L_CXX=yes # Not in the search PATH,
10925					      # but as the default
10926					      # location of the library.
10927      ;;
10928    esac
10929
10930    case $cc_basename in
10931      CC*)
10932	# FIXME: insert proper C++ library support
10933	ld_shlibs_CXX=no
10934	;;
10935      aCC*)
10936	case $host_cpu in
10937	hppa*64*)
10938	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10939	  ;;
10940	ia64*)
10941	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10942	  ;;
10943	*)
10944	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10945	  ;;
10946	esac
10947	# Commands to make compiler produce verbose output that lists
10948	# what "hidden" libraries, object files and flags are used when
10949	# linking a shared library.
10950	#
10951	# There doesn't appear to be a way to prevent this compiler from
10952	# explicitly linking system object files so we need to strip them
10953	# from the output so that they don't get included in the library
10954	# dependencies.
10955	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10956	;;
10957      *)
10958	if test "$GXX" = yes; then
10959	  if test $with_gnu_ld = no; then
10960	    case $host_cpu in
10961	    hppa*64*)
10962	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10963	      ;;
10964	    ia64*)
10965	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10966	      ;;
10967	    *)
10968	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10969	      ;;
10970	    esac
10971	  fi
10972	else
10973	  # FIXME: insert proper C++ library support
10974	  ld_shlibs_CXX=no
10975	fi
10976	;;
10977    esac
10978    ;;
10979  interix[3-9]*)
10980    hardcode_direct_CXX=no
10981    hardcode_shlibpath_var_CXX=no
10982    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10983    export_dynamic_flag_spec_CXX='${wl}-E'
10984    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10985    # Instead, shared libraries are loaded at an image base (0x10000000 by
10986    # default) and relocated if they conflict, which is a slow very memory
10987    # consuming and fragmenting process.  To avoid this, we pick a random,
10988    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10989    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10990    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10991    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10992    ;;
10993  irix5* | irix6*)
10994    case $cc_basename in
10995      CC*)
10996	# SGI C++
10997	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10998
10999	# Archives containing C++ object files must be created using
11000	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11001	# necessary to make sure instantiated templates are included
11002	# in the archive.
11003	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11004	;;
11005      *)
11006	if test "$GXX" = yes; then
11007	  if test "$with_gnu_ld" = no; then
11008	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11009	  else
11010	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11011	  fi
11012	fi
11013	link_all_deplibs_CXX=yes
11014	;;
11015    esac
11016    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11017    hardcode_libdir_separator_CXX=:
11018    ;;
11019  linux* | k*bsd*-gnu)
11020    case $cc_basename in
11021      KCC*)
11022	# Kuck and Associates, Inc. (KAI) C++ Compiler
11023
11024	# KCC will only create a shared library if the output file
11025	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11026	# to its proper name (with version) after linking.
11027	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11028	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11029	# Commands to make compiler produce verbose output that lists
11030	# what "hidden" libraries, object files and flags are used when
11031	# linking a shared library.
11032	#
11033	# There doesn't appear to be a way to prevent this compiler from
11034	# explicitly linking system object files so we need to strip them
11035	# from the output so that they don't get included in the library
11036	# dependencies.
11037	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11038
11039	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11040	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11041
11042	# Archives containing C++ object files must be created using
11043	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11044	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11045	;;
11046      icpc*)
11047	# Intel C++
11048	with_gnu_ld=yes
11049	# version 8.0 and above of icpc choke on multiply defined symbols
11050	# if we add $predep_objects and $postdep_objects, however 7.1 and
11051	# earlier do not add the objects themselves.
11052	case `$CC -V 2>&1` in
11053	*"Version 7."*)
11054  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11055  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11056	  ;;
11057	*)  # Version 8.0 or newer
11058	  tmp_idyn=
11059	  case $host_cpu in
11060	    ia64*) tmp_idyn=' -i_dynamic';;
11061	  esac
11062  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11063	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11064	  ;;
11065	esac
11066	archive_cmds_need_lc_CXX=no
11067	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11068	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11069	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11070	;;
11071      pgCC* | pgcpp*)
11072        # Portland Group C++ compiler
11073	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11074  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11075
11076	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11077	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11078	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11079        ;;
11080      cxx*)
11081	# Compaq C++
11082	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11083	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11084
11085	runpath_var=LD_RUN_PATH
11086	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11087	hardcode_libdir_separator_CXX=:
11088
11089	# Commands to make compiler produce verbose output that lists
11090	# what "hidden" libraries, object files and flags are used when
11091	# linking a shared library.
11092	#
11093	# There doesn't appear to be a way to prevent this compiler from
11094	# explicitly linking system object files so we need to strip them
11095	# from the output so that they don't get included in the library
11096	# dependencies.
11097	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11098	;;
11099      *)
11100	case `$CC -V 2>&1 | sed 5q` in
11101	*Sun\ C*)
11102	  # Sun C++ 5.9
11103	  no_undefined_flag_CXX=' -zdefs'
11104	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11105	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11106	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11107	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11108
11109	  # Not sure whether something based on
11110	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11111	  # would be better.
11112	  output_verbose_link_cmd='echo'
11113
11114	  # Archives containing C++ object files must be created using
11115	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11116	  # necessary to make sure instantiated templates are included
11117	  # in the archive.
11118	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11119	  ;;
11120	esac
11121	;;
11122    esac
11123    ;;
11124  lynxos*)
11125    # FIXME: insert proper C++ library support
11126    ld_shlibs_CXX=no
11127    ;;
11128  m88k*)
11129    # FIXME: insert proper C++ library support
11130    ld_shlibs_CXX=no
11131    ;;
11132  mvs*)
11133    case $cc_basename in
11134      cxx*)
11135	# FIXME: insert proper C++ library support
11136	ld_shlibs_CXX=no
11137	;;
11138      *)
11139	# FIXME: insert proper C++ library support
11140	ld_shlibs_CXX=no
11141	;;
11142    esac
11143    ;;
11144  netbsd*)
11145    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11146      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11147      wlarc=
11148      hardcode_libdir_flag_spec_CXX='-R$libdir'
11149      hardcode_direct_CXX=yes
11150      hardcode_shlibpath_var_CXX=no
11151    fi
11152    # Workaround some broken pre-1.5 toolchains
11153    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11154    ;;
11155  openbsd2*)
11156    # C++ shared libraries are fairly broken
11157    ld_shlibs_CXX=no
11158    ;;
11159  openbsd*)
11160    if test -f /usr/libexec/ld.so; then
11161      hardcode_direct_CXX=yes
11162      hardcode_shlibpath_var_CXX=no
11163      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11164      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11165      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11166	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11167	export_dynamic_flag_spec_CXX='${wl}-E'
11168	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11169      fi
11170      output_verbose_link_cmd='echo'
11171    else
11172      ld_shlibs_CXX=no
11173    fi
11174    ;;
11175  osf3*)
11176    case $cc_basename in
11177      KCC*)
11178	# Kuck and Associates, Inc. (KAI) C++ Compiler
11179
11180	# KCC will only create a shared library if the output file
11181	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11182	# to its proper name (with version) after linking.
11183	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11184
11185	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11186	hardcode_libdir_separator_CXX=:
11187
11188	# Archives containing C++ object files must be created using
11189	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11190	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11191
11192	;;
11193      RCC*)
11194	# Rational C++ 2.4.1
11195	# FIXME: insert proper C++ library support
11196	ld_shlibs_CXX=no
11197	;;
11198      cxx*)
11199	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11200	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11201
11202	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11203	hardcode_libdir_separator_CXX=:
11204
11205	# Commands to make compiler produce verbose output that lists
11206	# what "hidden" libraries, object files and flags are used when
11207	# linking a shared library.
11208	#
11209	# There doesn't appear to be a way to prevent this compiler from
11210	# explicitly linking system object files so we need to strip them
11211	# from the output so that they don't get included in the library
11212	# dependencies.
11213	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11214	;;
11215      *)
11216	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11217	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11218	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11219
11220	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11221	  hardcode_libdir_separator_CXX=:
11222
11223	  # Commands to make compiler produce verbose output that lists
11224	  # what "hidden" libraries, object files and flags are used when
11225	  # linking a shared library.
11226	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11227
11228	else
11229	  # FIXME: insert proper C++ library support
11230	  ld_shlibs_CXX=no
11231	fi
11232	;;
11233    esac
11234    ;;
11235  osf4* | osf5*)
11236    case $cc_basename in
11237      KCC*)
11238	# Kuck and Associates, Inc. (KAI) C++ Compiler
11239
11240	# KCC will only create a shared library if the output file
11241	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11242	# to its proper name (with version) after linking.
11243	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11244
11245	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11246	hardcode_libdir_separator_CXX=:
11247
11248	# Archives containing C++ object files must be created using
11249	# the KAI C++ compiler.
11250	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11251	;;
11252      RCC*)
11253	# Rational C++ 2.4.1
11254	# FIXME: insert proper C++ library support
11255	ld_shlibs_CXX=no
11256	;;
11257      cxx*)
11258	allow_undefined_flag_CXX=' -expect_unresolved \*'
11259	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11260	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11261	  echo "-hidden">> $lib.exp~
11262	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11263	  $rm $lib.exp'
11264
11265	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11266	hardcode_libdir_separator_CXX=:
11267
11268	# Commands to make compiler produce verbose output that lists
11269	# what "hidden" libraries, object files and flags are used when
11270	# linking a shared library.
11271	#
11272	# There doesn't appear to be a way to prevent this compiler from
11273	# explicitly linking system object files so we need to strip them
11274	# from the output so that they don't get included in the library
11275	# dependencies.
11276	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11277	;;
11278      *)
11279	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11280	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11281	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11282
11283	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11284	  hardcode_libdir_separator_CXX=:
11285
11286	  # Commands to make compiler produce verbose output that lists
11287	  # what "hidden" libraries, object files and flags are used when
11288	  # linking a shared library.
11289	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11290
11291	else
11292	  # FIXME: insert proper C++ library support
11293	  ld_shlibs_CXX=no
11294	fi
11295	;;
11296    esac
11297    ;;
11298  psos*)
11299    # FIXME: insert proper C++ library support
11300    ld_shlibs_CXX=no
11301    ;;
11302  sunos4*)
11303    case $cc_basename in
11304      CC*)
11305	# Sun C++ 4.x
11306	# FIXME: insert proper C++ library support
11307	ld_shlibs_CXX=no
11308	;;
11309      lcc*)
11310	# Lucid
11311	# FIXME: insert proper C++ library support
11312	ld_shlibs_CXX=no
11313	;;
11314      *)
11315	# FIXME: insert proper C++ library support
11316	ld_shlibs_CXX=no
11317	;;
11318    esac
11319    ;;
11320  solaris*)
11321    case $cc_basename in
11322      CC*)
11323	# Sun C++ 4.2, 5.x and Centerline C++
11324        archive_cmds_need_lc_CXX=yes
11325	no_undefined_flag_CXX=' -zdefs'
11326	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11327	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11328	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11329
11330	hardcode_libdir_flag_spec_CXX='-R$libdir'
11331	hardcode_shlibpath_var_CXX=no
11332	case $host_os in
11333	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11334	  *)
11335	    # The compiler driver will combine and reorder linker options,
11336	    # but understands `-z linker_flag'.
11337	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11338	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11339	    ;;
11340	esac
11341	link_all_deplibs_CXX=yes
11342
11343	output_verbose_link_cmd='echo'
11344
11345	# Archives containing C++ object files must be created using
11346	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11347	# necessary to make sure instantiated templates are included
11348	# in the archive.
11349	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11350	;;
11351      gcx*)
11352	# Green Hills C++ Compiler
11353	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11354
11355	# The C++ compiler must be used to create the archive.
11356	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11357	;;
11358      *)
11359	# GNU C++ compiler with Solaris linker
11360	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11361	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11362	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11363	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11364	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11365		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11366
11367	    # Commands to make compiler produce verbose output that lists
11368	    # what "hidden" libraries, object files and flags are used when
11369	    # linking a shared library.
11370	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11371	  else
11372	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11373	    # platform.
11374	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11375	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11376		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11377
11378	    # Commands to make compiler produce verbose output that lists
11379	    # what "hidden" libraries, object files and flags are used when
11380	    # linking a shared library.
11381	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11382	  fi
11383
11384	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11385	  case $host_os in
11386	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11387	  *)
11388	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11389	    ;;
11390	  esac
11391	fi
11392	;;
11393    esac
11394    ;;
11395  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11396    no_undefined_flag_CXX='${wl}-z,text'
11397    archive_cmds_need_lc_CXX=no
11398    hardcode_shlibpath_var_CXX=no
11399    runpath_var='LD_RUN_PATH'
11400
11401    case $cc_basename in
11402      CC*)
11403	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405	;;
11406      *)
11407	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11408	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11409	;;
11410    esac
11411    ;;
11412  sysv5* | sco3.2v5* | sco5v6*)
11413    # Note: We can NOT use -z defs as we might desire, because we do not
11414    # link with -lc, and that would cause any symbols used from libc to
11415    # always be unresolved, which means just about no library would
11416    # ever link correctly.  If we're not using GNU ld we use -z text
11417    # though, which does catch some bad symbols but isn't as heavy-handed
11418    # as -z defs.
11419    # For security reasons, it is highly recommended that you always
11420    # use absolute paths for naming shared libraries, and exclude the
11421    # DT_RUNPATH tag from executables and libraries.  But doing so
11422    # requires that you compile everything twice, which is a pain.
11423    # So that behaviour is only enabled if SCOABSPATH is set to a
11424    # non-empty value in the environment.  Most likely only useful for
11425    # creating official distributions of packages.
11426    # This is a hack until libtool officially supports absolute path
11427    # names for shared libraries.
11428    no_undefined_flag_CXX='${wl}-z,text'
11429    allow_undefined_flag_CXX='${wl}-z,nodefs'
11430    archive_cmds_need_lc_CXX=no
11431    hardcode_shlibpath_var_CXX=no
11432    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11433    hardcode_libdir_separator_CXX=':'
11434    link_all_deplibs_CXX=yes
11435    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11436    runpath_var='LD_RUN_PATH'
11437
11438    case $cc_basename in
11439      CC*)
11440	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11441	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11442	;;
11443      *)
11444	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11445	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11446	;;
11447    esac
11448    ;;
11449  tandem*)
11450    case $cc_basename in
11451      NCC*)
11452	# NonStop-UX NCC 3.20
11453	# FIXME: insert proper C++ library support
11454	ld_shlibs_CXX=no
11455	;;
11456      *)
11457	# FIXME: insert proper C++ library support
11458	ld_shlibs_CXX=no
11459	;;
11460    esac
11461    ;;
11462  vxworks*)
11463    # FIXME: insert proper C++ library support
11464    ld_shlibs_CXX=no
11465    ;;
11466  *)
11467    # FIXME: insert proper C++ library support
11468    ld_shlibs_CXX=no
11469    ;;
11470esac
11471echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11472echo "${ECHO_T}$ld_shlibs_CXX" >&6
11473test "$ld_shlibs_CXX" = no && can_build_shared=no
11474
11475GCC_CXX="$GXX"
11476LD_CXX="$LD"
11477
11478cat > conftest.$ac_ext <<EOF
11479class Foo
11480{
11481public:
11482  Foo (void) { a = 0; }
11483private:
11484  int a;
11485};
11486EOF
11487
11488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11489  (eval $ac_compile) 2>&5
11490  ac_status=$?
11491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492  (exit $ac_status); }; then
11493  # Parse the compiler output and extract the necessary
11494  # objects, libraries and library flags.
11495
11496  # Sentinel used to keep track of whether or not we are before
11497  # the conftest object file.
11498  pre_test_object_deps_done=no
11499
11500  # The `*' in the case matches for architectures that use `case' in
11501  # $output_verbose_cmd can trigger glob expansion during the loop
11502  # eval without this substitution.
11503  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11504
11505  for p in `eval $output_verbose_link_cmd`; do
11506    case $p in
11507
11508    -L* | -R* | -l*)
11509       # Some compilers place space between "-{L,R}" and the path.
11510       # Remove the space.
11511       if test $p = "-L" \
11512	  || test $p = "-R"; then
11513	 prev=$p
11514	 continue
11515       else
11516	 prev=
11517       fi
11518
11519       if test "$pre_test_object_deps_done" = no; then
11520	 case $p in
11521	 -L* | -R*)
11522	   # Internal compiler library paths should come after those
11523	   # provided the user.  The postdeps already come after the
11524	   # user supplied libs so there is no need to process them.
11525	   if test -z "$compiler_lib_search_path_CXX"; then
11526	     compiler_lib_search_path_CXX="${prev}${p}"
11527	   else
11528	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11529	   fi
11530	   ;;
11531	 # The "-l" case would never come before the object being
11532	 # linked, so don't bother handling this case.
11533	 esac
11534       else
11535	 if test -z "$postdeps_CXX"; then
11536	   postdeps_CXX="${prev}${p}"
11537	 else
11538	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11539	 fi
11540       fi
11541       ;;
11542
11543    *.$objext)
11544       # This assumes that the test object file only shows up
11545       # once in the compiler output.
11546       if test "$p" = "conftest.$objext"; then
11547	 pre_test_object_deps_done=yes
11548	 continue
11549       fi
11550
11551       if test "$pre_test_object_deps_done" = no; then
11552	 if test -z "$predep_objects_CXX"; then
11553	   predep_objects_CXX="$p"
11554	 else
11555	   predep_objects_CXX="$predep_objects_CXX $p"
11556	 fi
11557       else
11558	 if test -z "$postdep_objects_CXX"; then
11559	   postdep_objects_CXX="$p"
11560	 else
11561	   postdep_objects_CXX="$postdep_objects_CXX $p"
11562	 fi
11563       fi
11564       ;;
11565
11566    *) ;; # Ignore the rest.
11567
11568    esac
11569  done
11570
11571  # Clean up.
11572  rm -f a.out a.exe
11573else
11574  echo "libtool.m4: error: problem compiling CXX test program"
11575fi
11576
11577$rm -f confest.$objext
11578
11579compiler_lib_search_dirs_CXX=
11580if test -n "$compiler_lib_search_path_CXX"; then
11581  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11582fi
11583
11584# PORTME: override above test on systems where it is broken
11585case $host_os in
11586interix[3-9]*)
11587  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11588  # hack all around it, let's just trust "g++" to DTRT.
11589  predep_objects_CXX=
11590  postdep_objects_CXX=
11591  postdeps_CXX=
11592  ;;
11593
11594linux*)
11595  case `$CC -V 2>&1 | sed 5q` in
11596  *Sun\ C*)
11597    # Sun C++ 5.9
11598    #
11599    # The more standards-conforming stlport4 library is
11600    # incompatible with the Cstd library. Avoid specifying
11601    # it if it's in CXXFLAGS. Ignore libCrun as
11602    # -library=stlport4 depends on it.
11603    case " $CXX $CXXFLAGS " in
11604    *" -library=stlport4 "*)
11605      solaris_use_stlport4=yes
11606      ;;
11607    esac
11608    if test "$solaris_use_stlport4" != yes; then
11609      postdeps_CXX='-library=Cstd -library=Crun'
11610    fi
11611    ;;
11612  esac
11613  ;;
11614
11615solaris*)
11616  case $cc_basename in
11617  CC*)
11618    # The more standards-conforming stlport4 library is
11619    # incompatible with the Cstd library. Avoid specifying
11620    # it if it's in CXXFLAGS. Ignore libCrun as
11621    # -library=stlport4 depends on it.
11622    case " $CXX $CXXFLAGS " in
11623    *" -library=stlport4 "*)
11624      solaris_use_stlport4=yes
11625      ;;
11626    esac
11627
11628    # Adding this requires a known-good setup of shared libraries for
11629    # Sun compiler versions before 5.6, else PIC objects from an old
11630    # archive will be linked into the output, leading to subtle bugs.
11631    if test "$solaris_use_stlport4" != yes; then
11632      postdeps_CXX='-library=Cstd -library=Crun'
11633    fi
11634    ;;
11635  esac
11636  ;;
11637esac
11638
11639case " $postdeps_CXX " in
11640*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11641esac
11642
11643lt_prog_compiler_wl_CXX=
11644lt_prog_compiler_pic_CXX=
11645lt_prog_compiler_static_CXX=
11646
11647echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11648echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11649
11650  # C++ specific cases for pic, static, wl, etc.
11651  if test "$GXX" = yes; then
11652    lt_prog_compiler_wl_CXX='-Wl,'
11653    lt_prog_compiler_static_CXX='-static'
11654
11655    case $host_os in
11656    aix*)
11657      # All AIX code is PIC.
11658      if test "$host_cpu" = ia64; then
11659	# AIX 5 now supports IA64 processor
11660	lt_prog_compiler_static_CXX='-Bstatic'
11661      fi
11662      ;;
11663    amigaos*)
11664      # FIXME: we need at least 68020 code to build shared libraries, but
11665      # adding the `-m68020' flag to GCC prevents building anything better,
11666      # like `-m68040'.
11667      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11668      ;;
11669    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11670      # PIC is the default for these OSes.
11671      ;;
11672    mingw* | cygwin* | os2* | pw32*)
11673      # This hack is so that the source file can tell whether it is being
11674      # built for inclusion in a dll (and should export symbols for example).
11675      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11676      # (--disable-auto-import) libraries
11677      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11678      ;;
11679    darwin* | rhapsody*)
11680      # PIC is the default on this platform
11681      # Common symbols not allowed in MH_DYLIB files
11682      lt_prog_compiler_pic_CXX='-fno-common'
11683      ;;
11684    *djgpp*)
11685      # DJGPP does not support shared libraries at all
11686      lt_prog_compiler_pic_CXX=
11687      ;;
11688    interix[3-9]*)
11689      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11690      # Instead, we relocate shared libraries at runtime.
11691      ;;
11692    sysv4*MP*)
11693      if test -d /usr/nec; then
11694	lt_prog_compiler_pic_CXX=-Kconform_pic
11695      fi
11696      ;;
11697    hpux*)
11698      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11699      # not for PA HP-UX.
11700      case $host_cpu in
11701      hppa*64*|ia64*)
11702	;;
11703      *)
11704	lt_prog_compiler_pic_CXX='-fPIC'
11705	;;
11706      esac
11707      ;;
11708    *)
11709      lt_prog_compiler_pic_CXX='-fPIC'
11710      ;;
11711    esac
11712  else
11713    case $host_os in
11714      aix[4-9]*)
11715	# All AIX code is PIC.
11716	if test "$host_cpu" = ia64; then
11717	  # AIX 5 now supports IA64 processor
11718	  lt_prog_compiler_static_CXX='-Bstatic'
11719	else
11720	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11721	fi
11722	;;
11723      chorus*)
11724	case $cc_basename in
11725	cxch68*)
11726	  # Green Hills C++ Compiler
11727	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11728	  ;;
11729	esac
11730	;;
11731       darwin*)
11732         # PIC is the default on this platform
11733         # Common symbols not allowed in MH_DYLIB files
11734         case $cc_basename in
11735           xlc*)
11736           lt_prog_compiler_pic_CXX='-qnocommon'
11737           lt_prog_compiler_wl_CXX='-Wl,'
11738           ;;
11739         esac
11740       ;;
11741      dgux*)
11742	case $cc_basename in
11743	  ec++*)
11744	    lt_prog_compiler_pic_CXX='-KPIC'
11745	    ;;
11746	  ghcx*)
11747	    # Green Hills C++ Compiler
11748	    lt_prog_compiler_pic_CXX='-pic'
11749	    ;;
11750	  *)
11751	    ;;
11752	esac
11753	;;
11754      freebsd* | dragonfly*)
11755	# FreeBSD uses GNU C++
11756	;;
11757      hpux9* | hpux10* | hpux11*)
11758	case $cc_basename in
11759	  CC*)
11760	    lt_prog_compiler_wl_CXX='-Wl,'
11761	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11762	    if test "$host_cpu" != ia64; then
11763	      lt_prog_compiler_pic_CXX='+Z'
11764	    fi
11765	    ;;
11766	  aCC*)
11767	    lt_prog_compiler_wl_CXX='-Wl,'
11768	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11769	    case $host_cpu in
11770	    hppa*64*|ia64*)
11771	      # +Z the default
11772	      ;;
11773	    *)
11774	      lt_prog_compiler_pic_CXX='+Z'
11775	      ;;
11776	    esac
11777	    ;;
11778	  *)
11779	    ;;
11780	esac
11781	;;
11782      interix*)
11783	# This is c89, which is MS Visual C++ (no shared libs)
11784	# Anyone wants to do a port?
11785	;;
11786      irix5* | irix6* | nonstopux*)
11787	case $cc_basename in
11788	  CC*)
11789	    lt_prog_compiler_wl_CXX='-Wl,'
11790	    lt_prog_compiler_static_CXX='-non_shared'
11791	    # CC pic flag -KPIC is the default.
11792	    ;;
11793	  *)
11794	    ;;
11795	esac
11796	;;
11797      linux* | k*bsd*-gnu)
11798	case $cc_basename in
11799	  KCC*)
11800	    # KAI C++ Compiler
11801	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11802	    lt_prog_compiler_pic_CXX='-fPIC'
11803	    ;;
11804	  icpc* | ecpc*)
11805	    # Intel C++
11806	    lt_prog_compiler_wl_CXX='-Wl,'
11807	    lt_prog_compiler_pic_CXX='-KPIC'
11808	    lt_prog_compiler_static_CXX='-static'
11809	    ;;
11810	  pgCC* | pgcpp*)
11811	    # Portland Group C++ compiler.
11812	    lt_prog_compiler_wl_CXX='-Wl,'
11813	    lt_prog_compiler_pic_CXX='-fpic'
11814	    lt_prog_compiler_static_CXX='-Bstatic'
11815	    ;;
11816	  cxx*)
11817	    # Compaq C++
11818	    # Make sure the PIC flag is empty.  It appears that all Alpha
11819	    # Linux and Compaq Tru64 Unix objects are PIC.
11820	    lt_prog_compiler_pic_CXX=
11821	    lt_prog_compiler_static_CXX='-non_shared'
11822	    ;;
11823	  *)
11824	    case `$CC -V 2>&1 | sed 5q` in
11825	    *Sun\ C*)
11826	      # Sun C++ 5.9
11827	      lt_prog_compiler_pic_CXX='-KPIC'
11828	      lt_prog_compiler_static_CXX='-Bstatic'
11829	      lt_prog_compiler_wl_CXX='-Qoption ld '
11830	      ;;
11831	    esac
11832	    ;;
11833	esac
11834	;;
11835      lynxos*)
11836	;;
11837      m88k*)
11838	;;
11839      mvs*)
11840	case $cc_basename in
11841	  cxx*)
11842	    lt_prog_compiler_pic_CXX='-W c,exportall'
11843	    ;;
11844	  *)
11845	    ;;
11846	esac
11847	;;
11848      netbsd*)
11849	;;
11850      osf3* | osf4* | osf5*)
11851	case $cc_basename in
11852	  KCC*)
11853	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11854	    ;;
11855	  RCC*)
11856	    # Rational C++ 2.4.1
11857	    lt_prog_compiler_pic_CXX='-pic'
11858	    ;;
11859	  cxx*)
11860	    # Digital/Compaq C++
11861	    lt_prog_compiler_wl_CXX='-Wl,'
11862	    # Make sure the PIC flag is empty.  It appears that all Alpha
11863	    # Linux and Compaq Tru64 Unix objects are PIC.
11864	    lt_prog_compiler_pic_CXX=
11865	    lt_prog_compiler_static_CXX='-non_shared'
11866	    ;;
11867	  *)
11868	    ;;
11869	esac
11870	;;
11871      psos*)
11872	;;
11873      solaris*)
11874	case $cc_basename in
11875	  CC*)
11876	    # Sun C++ 4.2, 5.x and Centerline C++
11877	    lt_prog_compiler_pic_CXX='-KPIC'
11878	    lt_prog_compiler_static_CXX='-Bstatic'
11879	    lt_prog_compiler_wl_CXX='-Qoption ld '
11880	    ;;
11881	  gcx*)
11882	    # Green Hills C++ Compiler
11883	    lt_prog_compiler_pic_CXX='-PIC'
11884	    ;;
11885	  *)
11886	    ;;
11887	esac
11888	;;
11889      sunos4*)
11890	case $cc_basename in
11891	  CC*)
11892	    # Sun C++ 4.x
11893	    lt_prog_compiler_pic_CXX='-pic'
11894	    lt_prog_compiler_static_CXX='-Bstatic'
11895	    ;;
11896	  lcc*)
11897	    # Lucid
11898	    lt_prog_compiler_pic_CXX='-pic'
11899	    ;;
11900	  *)
11901	    ;;
11902	esac
11903	;;
11904      tandem*)
11905	case $cc_basename in
11906	  NCC*)
11907	    # NonStop-UX NCC 3.20
11908	    lt_prog_compiler_pic_CXX='-KPIC'
11909	    ;;
11910	  *)
11911	    ;;
11912	esac
11913	;;
11914      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11915	case $cc_basename in
11916	  CC*)
11917	    lt_prog_compiler_wl_CXX='-Wl,'
11918	    lt_prog_compiler_pic_CXX='-KPIC'
11919	    lt_prog_compiler_static_CXX='-Bstatic'
11920	    ;;
11921	esac
11922	;;
11923      vxworks*)
11924	;;
11925      *)
11926	lt_prog_compiler_can_build_shared_CXX=no
11927	;;
11928    esac
11929  fi
11930
11931echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11932echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11933
11934#
11935# Check to make sure the PIC flag actually works.
11936#
11937if test -n "$lt_prog_compiler_pic_CXX"; then
11938
11939echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11940echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11941if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
11942  echo $ECHO_N "(cached) $ECHO_C" >&6
11943else
11944  lt_cv_prog_compiler_pic_works_CXX=no
11945  ac_outfile=conftest.$ac_objext
11946   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11947   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11948   # Insert the option either (1) after the last *FLAGS variable, or
11949   # (2) before a word containing "conftest.", or (3) at the end.
11950   # Note that $ac_compile itself does not contain backslashes and begins
11951   # with a dollar sign (not a hyphen), so the echo should work correctly.
11952   # The option is referenced via a variable to avoid confusing sed.
11953   lt_compile=`echo "$ac_compile" | $SED \
11954   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11955   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11956   -e 's:$: $lt_compiler_flag:'`
11957   (eval echo "\"\$as_me:11957: $lt_compile\"" >&5)
11958   (eval "$lt_compile" 2>conftest.err)
11959   ac_status=$?
11960   cat conftest.err >&5
11961   echo "$as_me:11961: \$? = $ac_status" >&5
11962   if (exit $ac_status) && test -s "$ac_outfile"; then
11963     # The compiler can only warn and ignore the option if not recognized
11964     # So say no if there are warnings other than the usual output.
11965     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11966     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11967     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11968       lt_cv_prog_compiler_pic_works_CXX=yes
11969     fi
11970   fi
11971   $rm conftest*
11972
11973fi
11974echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
11975echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
11976
11977if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
11978    case $lt_prog_compiler_pic_CXX in
11979     "" | " "*) ;;
11980     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11981     esac
11982else
11983    lt_prog_compiler_pic_CXX=
11984     lt_prog_compiler_can_build_shared_CXX=no
11985fi
11986
11987fi
11988case $host_os in
11989  # For platforms which do not support PIC, -DPIC is meaningless:
11990  *djgpp*)
11991    lt_prog_compiler_pic_CXX=
11992    ;;
11993  *)
11994    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11995    ;;
11996esac
11997
11998#
11999# Check to make sure the static flag actually works.
12000#
12001wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12002echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12003echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12004if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12005  echo $ECHO_N "(cached) $ECHO_C" >&6
12006else
12007  lt_cv_prog_compiler_static_works_CXX=no
12008   save_LDFLAGS="$LDFLAGS"
12009   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12010   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12011   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12012     # The linker can only warn and ignore the option if not recognized
12013     # So say no if there are warnings
12014     if test -s conftest.err; then
12015       # Append any errors to the config.log.
12016       cat conftest.err 1>&5
12017       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12018       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12019       if diff conftest.exp conftest.er2 >/dev/null; then
12020         lt_cv_prog_compiler_static_works_CXX=yes
12021       fi
12022     else
12023       lt_cv_prog_compiler_static_works_CXX=yes
12024     fi
12025   fi
12026   $rm -r conftest*
12027   LDFLAGS="$save_LDFLAGS"
12028
12029fi
12030echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12031echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
12032
12033if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12034    :
12035else
12036    lt_prog_compiler_static_CXX=
12037fi
12038
12039
12040echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12041echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12042if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12043  echo $ECHO_N "(cached) $ECHO_C" >&6
12044else
12045  lt_cv_prog_compiler_c_o_CXX=no
12046   $rm -r conftest 2>/dev/null
12047   mkdir conftest
12048   cd conftest
12049   mkdir out
12050   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12051
12052   lt_compiler_flag="-o out/conftest2.$ac_objext"
12053   # Insert the option either (1) after the last *FLAGS variable, or
12054   # (2) before a word containing "conftest.", or (3) at the end.
12055   # Note that $ac_compile itself does not contain backslashes and begins
12056   # with a dollar sign (not a hyphen), so the echo should work correctly.
12057   lt_compile=`echo "$ac_compile" | $SED \
12058   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12059   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12060   -e 's:$: $lt_compiler_flag:'`
12061   (eval echo "\"\$as_me:12061: $lt_compile\"" >&5)
12062   (eval "$lt_compile" 2>out/conftest.err)
12063   ac_status=$?
12064   cat out/conftest.err >&5
12065   echo "$as_me:12065: \$? = $ac_status" >&5
12066   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12067   then
12068     # The compiler can only warn and ignore the option if not recognized
12069     # So say no if there are warnings
12070     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12071     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12072     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12073       lt_cv_prog_compiler_c_o_CXX=yes
12074     fi
12075   fi
12076   chmod u+w . 2>&5
12077   $rm conftest*
12078   # SGI C++ compiler will create directory out/ii_files/ for
12079   # template instantiation
12080   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12081   $rm out/* && rmdir out
12082   cd ..
12083   rmdir conftest
12084   $rm conftest*
12085
12086fi
12087echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12088echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12089
12090
12091hard_links="nottested"
12092if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12093  # do not overwrite the value of need_locks provided by the user
12094  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12095echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12096  hard_links=yes
12097  $rm conftest*
12098  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12099  touch conftest.a
12100  ln conftest.a conftest.b 2>&5 || hard_links=no
12101  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12102  echo "$as_me:$LINENO: result: $hard_links" >&5
12103echo "${ECHO_T}$hard_links" >&6
12104  if test "$hard_links" = no; then
12105    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12106echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12107    need_locks=warn
12108  fi
12109else
12110  need_locks=no
12111fi
12112
12113echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12114echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12115
12116  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12117  case $host_os in
12118  aix[4-9]*)
12119    # If we're using GNU nm, then we don't want the "-C" option.
12120    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12121    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12122      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12123    else
12124      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12125    fi
12126    ;;
12127  pw32*)
12128    export_symbols_cmds_CXX="$ltdll_cmds"
12129  ;;
12130  cygwin* | mingw*)
12131    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12132  ;;
12133  *)
12134    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12135  ;;
12136  esac
12137  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12138
12139echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12140echo "${ECHO_T}$ld_shlibs_CXX" >&6
12141test "$ld_shlibs_CXX" = no && can_build_shared=no
12142
12143#
12144# Do we need to explicitly link libc?
12145#
12146case "x$archive_cmds_need_lc_CXX" in
12147x|xyes)
12148  # Assume -lc should be added
12149  archive_cmds_need_lc_CXX=yes
12150
12151  if test "$enable_shared" = yes && test "$GCC" = yes; then
12152    case $archive_cmds_CXX in
12153    *'~'*)
12154      # FIXME: we may have to deal with multi-command sequences.
12155      ;;
12156    '$CC '*)
12157      # Test whether the compiler implicitly links with -lc since on some
12158      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12159      # to ld, don't add -lc before -lgcc.
12160      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12161echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12162      $rm conftest*
12163      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12164
12165      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12166  (eval $ac_compile) 2>&5
12167  ac_status=$?
12168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169  (exit $ac_status); } 2>conftest.err; then
12170        soname=conftest
12171        lib=conftest
12172        libobjs=conftest.$ac_objext
12173        deplibs=
12174        wl=$lt_prog_compiler_wl_CXX
12175	pic_flag=$lt_prog_compiler_pic_CXX
12176        compiler_flags=-v
12177        linker_flags=-v
12178        verstring=
12179        output_objdir=.
12180        libname=conftest
12181        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12182        allow_undefined_flag_CXX=
12183        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12184  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12185  ac_status=$?
12186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187  (exit $ac_status); }
12188        then
12189	  archive_cmds_need_lc_CXX=no
12190        else
12191	  archive_cmds_need_lc_CXX=yes
12192        fi
12193        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12194      else
12195        cat conftest.err 1>&5
12196      fi
12197      $rm conftest*
12198      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12199echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12200      ;;
12201    esac
12202  fi
12203  ;;
12204esac
12205
12206echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12207echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12208library_names_spec=
12209libname_spec='lib$name'
12210soname_spec=
12211shrext_cmds=".so"
12212postinstall_cmds=
12213postuninstall_cmds=
12214finish_cmds=
12215finish_eval=
12216shlibpath_var=
12217shlibpath_overrides_runpath=unknown
12218version_type=none
12219dynamic_linker="$host_os ld.so"
12220sys_lib_dlsearch_path_spec="/lib /usr/lib"
12221
12222need_lib_prefix=unknown
12223hardcode_into_libs=no
12224
12225# when you set need_version to no, make sure it does not cause -set_version
12226# flags to be left without arguments
12227need_version=unknown
12228
12229case $host_os in
12230aix3*)
12231  version_type=linux
12232  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12233  shlibpath_var=LIBPATH
12234
12235  # AIX 3 has no versioning support, so we append a major version to the name.
12236  soname_spec='${libname}${release}${shared_ext}$major'
12237  ;;
12238
12239aix[4-9]*)
12240  version_type=linux
12241  need_lib_prefix=no
12242  need_version=no
12243  hardcode_into_libs=yes
12244  if test "$host_cpu" = ia64; then
12245    # AIX 5 supports IA64
12246    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12247    shlibpath_var=LD_LIBRARY_PATH
12248  else
12249    # With GCC up to 2.95.x, collect2 would create an import file
12250    # for dependence libraries.  The import file would start with
12251    # the line `#! .'.  This would cause the generated library to
12252    # depend on `.', always an invalid library.  This was fixed in
12253    # development snapshots of GCC prior to 3.0.
12254    case $host_os in
12255      aix4 | aix4.[01] | aix4.[01].*)
12256      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12257	   echo ' yes '
12258	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12259	:
12260      else
12261	can_build_shared=no
12262      fi
12263      ;;
12264    esac
12265    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12266    # soname into executable. Probably we can add versioning support to
12267    # collect2, so additional links can be useful in future.
12268    if test "$aix_use_runtimelinking" = yes; then
12269      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12270      # instead of lib<name>.a to let people know that these are not
12271      # typical AIX shared libraries.
12272      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273    else
12274      # We preserve .a as extension for shared libraries through AIX4.2
12275      # and later when we are not doing run time linking.
12276      library_names_spec='${libname}${release}.a $libname.a'
12277      soname_spec='${libname}${release}${shared_ext}$major'
12278    fi
12279    shlibpath_var=LIBPATH
12280  fi
12281  ;;
12282
12283amigaos*)
12284  library_names_spec='$libname.ixlibrary $libname.a'
12285  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12286  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12287  ;;
12288
12289beos*)
12290  library_names_spec='${libname}${shared_ext}'
12291  dynamic_linker="$host_os ld.so"
12292  shlibpath_var=LIBRARY_PATH
12293  ;;
12294
12295bsdi[45]*)
12296  version_type=linux
12297  need_version=no
12298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12299  soname_spec='${libname}${release}${shared_ext}$major'
12300  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12301  shlibpath_var=LD_LIBRARY_PATH
12302  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12303  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12304  # the default ld.so.conf also contains /usr/contrib/lib and
12305  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12306  # libtool to hard-code these into programs
12307  ;;
12308
12309cygwin* | mingw* | pw32*)
12310  version_type=windows
12311  shrext_cmds=".dll"
12312  need_version=no
12313  need_lib_prefix=no
12314
12315  case $GCC,$host_os in
12316  yes,cygwin* | yes,mingw* | yes,pw32*)
12317    library_names_spec='$libname.dll.a'
12318    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12319    postinstall_cmds='base_file=`basename \${file}`~
12320      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12321      dldir=$destdir/`dirname \$dlpath`~
12322      test -d \$dldir || mkdir -p \$dldir~
12323      $install_prog $dir/$dlname \$dldir/$dlname~
12324      chmod a+x \$dldir/$dlname'
12325    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12326      dlpath=$dir/\$dldll~
12327       $rm \$dlpath'
12328    shlibpath_overrides_runpath=yes
12329
12330    case $host_os in
12331    cygwin*)
12332      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12333      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12334      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12335      ;;
12336    mingw*)
12337      # MinGW DLLs use traditional 'lib' prefix
12338      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12339      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12340      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12341        # It is most probably a Windows format PATH printed by
12342        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12343        # path with ; separators, and with drive letters. We can handle the
12344        # drive letters (cygwin fileutils understands them), so leave them,
12345        # especially as we might pass files found there to a mingw objdump,
12346        # which wouldn't understand a cygwinified path. Ahh.
12347        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12348      else
12349        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12350      fi
12351      ;;
12352    pw32*)
12353      # pw32 DLLs use 'pw' prefix rather than 'lib'
12354      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12355      ;;
12356    esac
12357    ;;
12358
12359  *)
12360    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12361    ;;
12362  esac
12363  dynamic_linker='Win32 ld.exe'
12364  # FIXME: first we should search . and the directory the executable is in
12365  shlibpath_var=PATH
12366  ;;
12367
12368darwin* | rhapsody*)
12369  dynamic_linker="$host_os dyld"
12370  version_type=darwin
12371  need_lib_prefix=no
12372  need_version=no
12373  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12374  soname_spec='${libname}${release}${major}$shared_ext'
12375  shlibpath_overrides_runpath=yes
12376  shlibpath_var=DYLD_LIBRARY_PATH
12377  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12378
12379  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12380  ;;
12381
12382dgux*)
12383  version_type=linux
12384  need_lib_prefix=no
12385  need_version=no
12386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12387  soname_spec='${libname}${release}${shared_ext}$major'
12388  shlibpath_var=LD_LIBRARY_PATH
12389  ;;
12390
12391freebsd1*)
12392  dynamic_linker=no
12393  ;;
12394
12395freebsd* | dragonfly*)
12396  # DragonFly does not have aout.  When/if they implement a new
12397  # versioning mechanism, adjust this.
12398  if test -x /usr/bin/objformat; then
12399    objformat=`/usr/bin/objformat`
12400  else
12401    case $host_os in
12402    freebsd[123]*) objformat=aout ;;
12403    *) objformat=elf ;;
12404    esac
12405  fi
12406  version_type=freebsd-$objformat
12407  case $version_type in
12408    freebsd-elf*)
12409      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12410      need_version=no
12411      need_lib_prefix=no
12412      ;;
12413    freebsd-*)
12414      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12415      need_version=yes
12416      ;;
12417  esac
12418  shlibpath_var=LD_LIBRARY_PATH
12419  case $host_os in
12420  freebsd2*)
12421    shlibpath_overrides_runpath=yes
12422    ;;
12423  freebsd3.[01]* | freebsdelf3.[01]*)
12424    shlibpath_overrides_runpath=yes
12425    hardcode_into_libs=yes
12426    ;;
12427  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12428  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12429    shlibpath_overrides_runpath=no
12430    hardcode_into_libs=yes
12431    ;;
12432  *) # from 4.6 on, and DragonFly
12433    shlibpath_overrides_runpath=yes
12434    hardcode_into_libs=yes
12435    ;;
12436  esac
12437  ;;
12438
12439gnu*)
12440  version_type=linux
12441  need_lib_prefix=no
12442  need_version=no
12443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12444  soname_spec='${libname}${release}${shared_ext}$major'
12445  shlibpath_var=LD_LIBRARY_PATH
12446  hardcode_into_libs=yes
12447  ;;
12448
12449hpux9* | hpux10* | hpux11*)
12450  # Give a soname corresponding to the major version so that dld.sl refuses to
12451  # link against other versions.
12452  version_type=sunos
12453  need_lib_prefix=no
12454  need_version=no
12455  case $host_cpu in
12456  ia64*)
12457    shrext_cmds='.so'
12458    hardcode_into_libs=yes
12459    dynamic_linker="$host_os dld.so"
12460    shlibpath_var=LD_LIBRARY_PATH
12461    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12462    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12463    soname_spec='${libname}${release}${shared_ext}$major'
12464    if test "X$HPUX_IA64_MODE" = X32; then
12465      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12466    else
12467      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12468    fi
12469    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12470    ;;
12471   hppa*64*)
12472     shrext_cmds='.sl'
12473     hardcode_into_libs=yes
12474     dynamic_linker="$host_os dld.sl"
12475     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12476     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12478     soname_spec='${libname}${release}${shared_ext}$major'
12479     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12480     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12481     ;;
12482   *)
12483    shrext_cmds='.sl'
12484    dynamic_linker="$host_os dld.sl"
12485    shlibpath_var=SHLIB_PATH
12486    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12487    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12488    soname_spec='${libname}${release}${shared_ext}$major'
12489    ;;
12490  esac
12491  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12492  postinstall_cmds='chmod 555 $lib'
12493  ;;
12494
12495interix[3-9]*)
12496  version_type=linux
12497  need_lib_prefix=no
12498  need_version=no
12499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12500  soname_spec='${libname}${release}${shared_ext}$major'
12501  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12502  shlibpath_var=LD_LIBRARY_PATH
12503  shlibpath_overrides_runpath=no
12504  hardcode_into_libs=yes
12505  ;;
12506
12507irix5* | irix6* | nonstopux*)
12508  case $host_os in
12509    nonstopux*) version_type=nonstopux ;;
12510    *)
12511	if test "$lt_cv_prog_gnu_ld" = yes; then
12512		version_type=linux
12513	else
12514		version_type=irix
12515	fi ;;
12516  esac
12517  need_lib_prefix=no
12518  need_version=no
12519  soname_spec='${libname}${release}${shared_ext}$major'
12520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12521  case $host_os in
12522  irix5* | nonstopux*)
12523    libsuff= shlibsuff=
12524    ;;
12525  *)
12526    case $LD in # libtool.m4 will add one of these switches to LD
12527    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12528      libsuff= shlibsuff= libmagic=32-bit;;
12529    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12530      libsuff=32 shlibsuff=N32 libmagic=N32;;
12531    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12532      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12533    *) libsuff= shlibsuff= libmagic=never-match;;
12534    esac
12535    ;;
12536  esac
12537  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12538  shlibpath_overrides_runpath=no
12539  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12540  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12541  hardcode_into_libs=yes
12542  ;;
12543
12544# No shared lib support for Linux oldld, aout, or coff.
12545linux*oldld* | linux*aout* | linux*coff*)
12546  dynamic_linker=no
12547  ;;
12548
12549# This must be Linux ELF.
12550linux* | k*bsd*-gnu)
12551  version_type=linux
12552  need_lib_prefix=no
12553  need_version=no
12554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12555  soname_spec='${libname}${release}${shared_ext}$major'
12556  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12557  shlibpath_var=LD_LIBRARY_PATH
12558  shlibpath_overrides_runpath=no
12559  # This implies no fast_install, which is unacceptable.
12560  # Some rework will be needed to allow for fast_install
12561  # before this can be enabled.
12562  hardcode_into_libs=yes
12563
12564  # Append ld.so.conf contents to the search path
12565  if test -f /etc/ld.so.conf; then
12566    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12567    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12568  fi
12569
12570  # We used to test for /lib/ld.so.1 and disable shared libraries on
12571  # powerpc, because MkLinux only supported shared libraries with the
12572  # GNU dynamic linker.  Since this was broken with cross compilers,
12573  # most powerpc-linux boxes support dynamic linking these days and
12574  # people can always --disable-shared, the test was removed, and we
12575  # assume the GNU/Linux dynamic linker is in use.
12576  dynamic_linker='GNU/Linux ld.so'
12577  ;;
12578
12579netbsd*)
12580  version_type=sunos
12581  need_lib_prefix=no
12582  need_version=no
12583  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12584    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12585    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12586    dynamic_linker='NetBSD (a.out) ld.so'
12587  else
12588    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12589    soname_spec='${libname}${release}${shared_ext}$major'
12590    dynamic_linker='NetBSD ld.elf_so'
12591  fi
12592  shlibpath_var=LD_LIBRARY_PATH
12593  shlibpath_overrides_runpath=yes
12594  hardcode_into_libs=yes
12595  ;;
12596
12597newsos6)
12598  version_type=linux
12599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12600  shlibpath_var=LD_LIBRARY_PATH
12601  shlibpath_overrides_runpath=yes
12602  ;;
12603
12604nto-qnx*)
12605  version_type=linux
12606  need_lib_prefix=no
12607  need_version=no
12608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12609  soname_spec='${libname}${release}${shared_ext}$major'
12610  shlibpath_var=LD_LIBRARY_PATH
12611  shlibpath_overrides_runpath=yes
12612  ;;
12613
12614openbsd*)
12615  version_type=sunos
12616  sys_lib_dlsearch_path_spec="/usr/lib"
12617  need_lib_prefix=no
12618  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12619  case $host_os in
12620    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12621    *)                         need_version=no  ;;
12622  esac
12623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12624  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12625  shlibpath_var=LD_LIBRARY_PATH
12626  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12627    case $host_os in
12628      openbsd2.[89] | openbsd2.[89].*)
12629	shlibpath_overrides_runpath=no
12630	;;
12631      *)
12632	shlibpath_overrides_runpath=yes
12633	;;
12634      esac
12635  else
12636    shlibpath_overrides_runpath=yes
12637  fi
12638  ;;
12639
12640os2*)
12641  libname_spec='$name'
12642  shrext_cmds=".dll"
12643  need_lib_prefix=no
12644  library_names_spec='$libname${shared_ext} $libname.a'
12645  dynamic_linker='OS/2 ld.exe'
12646  shlibpath_var=LIBPATH
12647  ;;
12648
12649osf3* | osf4* | osf5*)
12650  version_type=osf
12651  need_lib_prefix=no
12652  need_version=no
12653  soname_spec='${libname}${release}${shared_ext}$major'
12654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12655  shlibpath_var=LD_LIBRARY_PATH
12656  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12657  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12658  ;;
12659
12660rdos*)
12661  dynamic_linker=no
12662  ;;
12663
12664solaris*)
12665  version_type=linux
12666  need_lib_prefix=no
12667  need_version=no
12668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12669  soname_spec='${libname}${release}${shared_ext}$major'
12670  shlibpath_var=LD_LIBRARY_PATH
12671  shlibpath_overrides_runpath=yes
12672  hardcode_into_libs=yes
12673  # ldd complains unless libraries are executable
12674  postinstall_cmds='chmod +x $lib'
12675  ;;
12676
12677sunos4*)
12678  version_type=sunos
12679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12680  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12681  shlibpath_var=LD_LIBRARY_PATH
12682  shlibpath_overrides_runpath=yes
12683  if test "$with_gnu_ld" = yes; then
12684    need_lib_prefix=no
12685  fi
12686  need_version=yes
12687  ;;
12688
12689sysv4 | sysv4.3*)
12690  version_type=linux
12691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12692  soname_spec='${libname}${release}${shared_ext}$major'
12693  shlibpath_var=LD_LIBRARY_PATH
12694  case $host_vendor in
12695    sni)
12696      shlibpath_overrides_runpath=no
12697      need_lib_prefix=no
12698      export_dynamic_flag_spec='${wl}-Blargedynsym'
12699      runpath_var=LD_RUN_PATH
12700      ;;
12701    siemens)
12702      need_lib_prefix=no
12703      ;;
12704    motorola)
12705      need_lib_prefix=no
12706      need_version=no
12707      shlibpath_overrides_runpath=no
12708      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12709      ;;
12710  esac
12711  ;;
12712
12713sysv4*MP*)
12714  if test -d /usr/nec ;then
12715    version_type=linux
12716    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12717    soname_spec='$libname${shared_ext}.$major'
12718    shlibpath_var=LD_LIBRARY_PATH
12719  fi
12720  ;;
12721
12722sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12723  version_type=freebsd-elf
12724  need_lib_prefix=no
12725  need_version=no
12726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12727  soname_spec='${libname}${release}${shared_ext}$major'
12728  shlibpath_var=LD_LIBRARY_PATH
12729  hardcode_into_libs=yes
12730  if test "$with_gnu_ld" = yes; then
12731    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12732    shlibpath_overrides_runpath=no
12733  else
12734    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12735    shlibpath_overrides_runpath=yes
12736    case $host_os in
12737      sco3.2v5*)
12738        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12739	;;
12740    esac
12741  fi
12742  sys_lib_dlsearch_path_spec='/usr/lib'
12743  ;;
12744
12745uts4*)
12746  version_type=linux
12747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12748  soname_spec='${libname}${release}${shared_ext}$major'
12749  shlibpath_var=LD_LIBRARY_PATH
12750  ;;
12751
12752*)
12753  dynamic_linker=no
12754  ;;
12755esac
12756echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12757echo "${ECHO_T}$dynamic_linker" >&6
12758test "$dynamic_linker" = no && can_build_shared=no
12759
12760if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12761  echo $ECHO_N "(cached) $ECHO_C" >&6
12762else
12763  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12764fi
12765
12766sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12767if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12768  echo $ECHO_N "(cached) $ECHO_C" >&6
12769else
12770  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12771fi
12772
12773sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12774
12775variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12776if test "$GCC" = yes; then
12777  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12778fi
12779
12780echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12781echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12782hardcode_action_CXX=
12783if test -n "$hardcode_libdir_flag_spec_CXX" || \
12784   test -n "$runpath_var_CXX" || \
12785   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12786
12787  # We can hardcode non-existant directories.
12788  if test "$hardcode_direct_CXX" != no &&
12789     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12790     # have to relink, otherwise we might link with an installed library
12791     # when we should be linking with a yet-to-be-installed one
12792     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12793     test "$hardcode_minus_L_CXX" != no; then
12794    # Linking always hardcodes the temporary library directory.
12795    hardcode_action_CXX=relink
12796  else
12797    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12798    hardcode_action_CXX=immediate
12799  fi
12800else
12801  # We cannot hardcode anything, or else we can only hardcode existing
12802  # directories.
12803  hardcode_action_CXX=unsupported
12804fi
12805echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12806echo "${ECHO_T}$hardcode_action_CXX" >&6
12807
12808if test "$hardcode_action_CXX" = relink; then
12809  # Fast installation is not supported
12810  enable_fast_install=no
12811elif test "$shlibpath_overrides_runpath" = yes ||
12812     test "$enable_shared" = no; then
12813  # Fast installation is not necessary
12814  enable_fast_install=needless
12815fi
12816
12817
12818# The else clause should only fire when bootstrapping the
12819# libtool distribution, otherwise you forgot to ship ltmain.sh
12820# with your package, and you will get complaints that there are
12821# no rules to generate ltmain.sh.
12822if test -f "$ltmain"; then
12823  # See if we are running on zsh, and set the options which allow our commands through
12824  # without removal of \ escapes.
12825  if test -n "${ZSH_VERSION+set}" ; then
12826    setopt NO_GLOB_SUBST
12827  fi
12828  # Now quote all the things that may contain metacharacters while being
12829  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12830  # variables and quote the copies for generation of the libtool script.
12831  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12832    SED SHELL STRIP \
12833    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12834    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12835    deplibs_check_method reload_flag reload_cmds need_locks \
12836    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12837    lt_cv_sys_global_symbol_to_c_name_address \
12838    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12839    old_postinstall_cmds old_postuninstall_cmds \
12840    compiler_CXX \
12841    CC_CXX \
12842    LD_CXX \
12843    lt_prog_compiler_wl_CXX \
12844    lt_prog_compiler_pic_CXX \
12845    lt_prog_compiler_static_CXX \
12846    lt_prog_compiler_no_builtin_flag_CXX \
12847    export_dynamic_flag_spec_CXX \
12848    thread_safe_flag_spec_CXX \
12849    whole_archive_flag_spec_CXX \
12850    enable_shared_with_static_runtimes_CXX \
12851    old_archive_cmds_CXX \
12852    old_archive_from_new_cmds_CXX \
12853    predep_objects_CXX \
12854    postdep_objects_CXX \
12855    predeps_CXX \
12856    postdeps_CXX \
12857    compiler_lib_search_path_CXX \
12858    compiler_lib_search_dirs_CXX \
12859    archive_cmds_CXX \
12860    archive_expsym_cmds_CXX \
12861    postinstall_cmds_CXX \
12862    postuninstall_cmds_CXX \
12863    old_archive_from_expsyms_cmds_CXX \
12864    allow_undefined_flag_CXX \
12865    no_undefined_flag_CXX \
12866    export_symbols_cmds_CXX \
12867    hardcode_libdir_flag_spec_CXX \
12868    hardcode_libdir_flag_spec_ld_CXX \
12869    hardcode_libdir_separator_CXX \
12870    hardcode_automatic_CXX \
12871    module_cmds_CXX \
12872    module_expsym_cmds_CXX \
12873    lt_cv_prog_compiler_c_o_CXX \
12874    fix_srcfile_path_CXX \
12875    exclude_expsyms_CXX \
12876    include_expsyms_CXX; do
12877
12878    case $var in
12879    old_archive_cmds_CXX | \
12880    old_archive_from_new_cmds_CXX | \
12881    archive_cmds_CXX | \
12882    archive_expsym_cmds_CXX | \
12883    module_cmds_CXX | \
12884    module_expsym_cmds_CXX | \
12885    old_archive_from_expsyms_cmds_CXX | \
12886    export_symbols_cmds_CXX | \
12887    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12888    postinstall_cmds | postuninstall_cmds | \
12889    old_postinstall_cmds | old_postuninstall_cmds | \
12890    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12891      # Double-quote double-evaled strings.
12892      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12893      ;;
12894    *)
12895      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12896      ;;
12897    esac
12898  done
12899
12900  case $lt_echo in
12901  *'\$0 --fallback-echo"')
12902    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12903    ;;
12904  esac
12905
12906cfgfile="$ofile"
12907
12908  cat <<__EOF__ >> "$cfgfile"
12909# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12910
12911# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12912
12913# Shell to use when invoking shell scripts.
12914SHELL=$lt_SHELL
12915
12916# Whether or not to build shared libraries.
12917build_libtool_libs=$enable_shared
12918
12919# Whether or not to build static libraries.
12920build_old_libs=$enable_static
12921
12922# Whether or not to add -lc for building shared libraries.
12923build_libtool_need_lc=$archive_cmds_need_lc_CXX
12924
12925# Whether or not to disallow shared libs when runtime libs are static
12926allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12927
12928# Whether or not to optimize for fast installation.
12929fast_install=$enable_fast_install
12930
12931# The host system.
12932host_alias=$host_alias
12933host=$host
12934host_os=$host_os
12935
12936# The build system.
12937build_alias=$build_alias
12938build=$build
12939build_os=$build_os
12940
12941# An echo program that does not interpret backslashes.
12942echo=$lt_echo
12943
12944# The archiver.
12945AR=$lt_AR
12946AR_FLAGS=$lt_AR_FLAGS
12947
12948# A C compiler.
12949LTCC=$lt_LTCC
12950
12951# LTCC compiler flags.
12952LTCFLAGS=$lt_LTCFLAGS
12953
12954# A language-specific compiler.
12955CC=$lt_compiler_CXX
12956
12957# Is the compiler the GNU C compiler?
12958with_gcc=$GCC_CXX
12959
12960# An ERE matcher.
12961EGREP=$lt_EGREP
12962
12963# The linker used to build libraries.
12964LD=$lt_LD_CXX
12965
12966# Whether we need hard or soft links.
12967LN_S=$lt_LN_S
12968
12969# A BSD-compatible nm program.
12970NM=$lt_NM
12971
12972# A symbol stripping program
12973STRIP=$lt_STRIP
12974
12975# Used to examine libraries when file_magic_cmd begins "file"
12976MAGIC_CMD=$MAGIC_CMD
12977
12978# Used on cygwin: DLL creation program.
12979DLLTOOL="$DLLTOOL"
12980
12981# Used on cygwin: object dumper.
12982OBJDUMP="$OBJDUMP"
12983
12984# Used on cygwin: assembler.
12985AS="$AS"
12986
12987# The name of the directory that contains temporary libtool files.
12988objdir=$objdir
12989
12990# How to create reloadable object files.
12991reload_flag=$lt_reload_flag
12992reload_cmds=$lt_reload_cmds
12993
12994# How to pass a linker flag through the compiler.
12995wl=$lt_lt_prog_compiler_wl_CXX
12996
12997# Object file suffix (normally "o").
12998objext="$ac_objext"
12999
13000# Old archive suffix (normally "a").
13001libext="$libext"
13002
13003# Shared library suffix (normally ".so").
13004shrext_cmds='$shrext_cmds'
13005
13006# Executable file suffix (normally "").
13007exeext="$exeext"
13008
13009# Additional compiler flags for building library objects.
13010pic_flag=$lt_lt_prog_compiler_pic_CXX
13011pic_mode=$pic_mode
13012
13013# What is the maximum length of a command?
13014max_cmd_len=$lt_cv_sys_max_cmd_len
13015
13016# Does compiler simultaneously support -c and -o options?
13017compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13018
13019# Must we lock files when doing compilation?
13020need_locks=$lt_need_locks
13021
13022# Do we need the lib prefix for modules?
13023need_lib_prefix=$need_lib_prefix
13024
13025# Do we need a version for libraries?
13026need_version=$need_version
13027
13028# Whether dlopen is supported.
13029dlopen_support=$enable_dlopen
13030
13031# Whether dlopen of programs is supported.
13032dlopen_self=$enable_dlopen_self
13033
13034# Whether dlopen of statically linked programs is supported.
13035dlopen_self_static=$enable_dlopen_self_static
13036
13037# Compiler flag to prevent dynamic linking.
13038link_static_flag=$lt_lt_prog_compiler_static_CXX
13039
13040# Compiler flag to turn off builtin functions.
13041no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13042
13043# Compiler flag to allow reflexive dlopens.
13044export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13045
13046# Compiler flag to generate shared objects directly from archives.
13047whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13048
13049# Compiler flag to generate thread-safe objects.
13050thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13051
13052# Library versioning type.
13053version_type=$version_type
13054
13055# Format of library name prefix.
13056libname_spec=$lt_libname_spec
13057
13058# List of archive names.  First name is the real one, the rest are links.
13059# The last name is the one that the linker finds with -lNAME.
13060library_names_spec=$lt_library_names_spec
13061
13062# The coded name of the library, if different from the real name.
13063soname_spec=$lt_soname_spec
13064
13065# Commands used to build and install an old-style archive.
13066RANLIB=$lt_RANLIB
13067old_archive_cmds=$lt_old_archive_cmds_CXX
13068old_postinstall_cmds=$lt_old_postinstall_cmds
13069old_postuninstall_cmds=$lt_old_postuninstall_cmds
13070
13071# Create an old-style archive from a shared archive.
13072old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13073
13074# Create a temporary old-style archive to link instead of a shared archive.
13075old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13076
13077# Commands used to build and install a shared archive.
13078archive_cmds=$lt_archive_cmds_CXX
13079archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13080postinstall_cmds=$lt_postinstall_cmds
13081postuninstall_cmds=$lt_postuninstall_cmds
13082
13083# Commands used to build a loadable module (assumed same as above if empty)
13084module_cmds=$lt_module_cmds_CXX
13085module_expsym_cmds=$lt_module_expsym_cmds_CXX
13086
13087# Commands to strip libraries.
13088old_striplib=$lt_old_striplib
13089striplib=$lt_striplib
13090
13091# Dependencies to place before the objects being linked to create a
13092# shared library.
13093predep_objects=$lt_predep_objects_CXX
13094
13095# Dependencies to place after the objects being linked to create a
13096# shared library.
13097postdep_objects=$lt_postdep_objects_CXX
13098
13099# Dependencies to place before the objects being linked to create a
13100# shared library.
13101predeps=$lt_predeps_CXX
13102
13103# Dependencies to place after the objects being linked to create a
13104# shared library.
13105postdeps=$lt_postdeps_CXX
13106
13107# The directories searched by this compiler when creating a shared
13108# library
13109compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13110
13111# The library search path used internally by the compiler when linking
13112# a shared library.
13113compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13114
13115# Method to check whether dependent libraries are shared objects.
13116deplibs_check_method=$lt_deplibs_check_method
13117
13118# Command to use when deplibs_check_method == file_magic.
13119file_magic_cmd=$lt_file_magic_cmd
13120
13121# Flag that allows shared libraries with undefined symbols to be built.
13122allow_undefined_flag=$lt_allow_undefined_flag_CXX
13123
13124# Flag that forces no undefined symbols.
13125no_undefined_flag=$lt_no_undefined_flag_CXX
13126
13127# Commands used to finish a libtool library installation in a directory.
13128finish_cmds=$lt_finish_cmds
13129
13130# Same as above, but a single script fragment to be evaled but not shown.
13131finish_eval=$lt_finish_eval
13132
13133# Take the output of nm and produce a listing of raw symbols and C names.
13134global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13135
13136# Transform the output of nm in a proper C declaration
13137global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13138
13139# Transform the output of nm in a C name address pair
13140global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13141
13142# This is the shared library runtime path variable.
13143runpath_var=$runpath_var
13144
13145# This is the shared library path variable.
13146shlibpath_var=$shlibpath_var
13147
13148# Is shlibpath searched before the hard-coded library search path?
13149shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13150
13151# How to hardcode a shared library path into an executable.
13152hardcode_action=$hardcode_action_CXX
13153
13154# Whether we should hardcode library paths into libraries.
13155hardcode_into_libs=$hardcode_into_libs
13156
13157# Flag to hardcode \$libdir into a binary during linking.
13158# This must work even if \$libdir does not exist.
13159hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13160
13161# If ld is used when linking, flag to hardcode \$libdir into
13162# a binary during linking. This must work even if \$libdir does
13163# not exist.
13164hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13165
13166# Whether we need a single -rpath flag with a separated argument.
13167hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13168
13169# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13170# resulting binary.
13171hardcode_direct=$hardcode_direct_CXX
13172
13173# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13174# resulting binary.
13175hardcode_minus_L=$hardcode_minus_L_CXX
13176
13177# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13178# the resulting binary.
13179hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13180
13181# Set to yes if building a shared library automatically hardcodes DIR into the library
13182# and all subsequent libraries and executables linked against it.
13183hardcode_automatic=$hardcode_automatic_CXX
13184
13185# Variables whose values should be saved in libtool wrapper scripts and
13186# restored at relink time.
13187variables_saved_for_relink="$variables_saved_for_relink"
13188
13189# Whether libtool must link a program against all its dependency libraries.
13190link_all_deplibs=$link_all_deplibs_CXX
13191
13192# Compile-time system search path for libraries
13193sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13194
13195# Run-time system search path for libraries
13196sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13197
13198# Fix the shell variable \$srcfile for the compiler.
13199fix_srcfile_path=$lt_fix_srcfile_path
13200
13201# Set to yes if exported symbols are required.
13202always_export_symbols=$always_export_symbols_CXX
13203
13204# The commands to list exported symbols.
13205export_symbols_cmds=$lt_export_symbols_cmds_CXX
13206
13207# The commands to extract the exported symbol list from a shared archive.
13208extract_expsyms_cmds=$lt_extract_expsyms_cmds
13209
13210# Symbols that should not be listed in the preloaded symbols.
13211exclude_expsyms=$lt_exclude_expsyms_CXX
13212
13213# Symbols that must always be exported.
13214include_expsyms=$lt_include_expsyms_CXX
13215
13216# ### END LIBTOOL TAG CONFIG: $tagname
13217
13218__EOF__
13219
13220
13221else
13222  # If there is no Makefile yet, we rely on a make rule to execute
13223  # `config.status --recheck' to rerun these tests and create the
13224  # libtool script then.
13225  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13226  if test -f "$ltmain_in"; then
13227    test -f Makefile && make "$ltmain"
13228  fi
13229fi
13230
13231
13232ac_ext=c
13233ac_cpp='$CPP $CPPFLAGS'
13234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237
13238CC=$lt_save_CC
13239LDCXX=$LD
13240LD=$lt_save_LD
13241GCC=$lt_save_GCC
13242with_gnu_ldcxx=$with_gnu_ld
13243with_gnu_ld=$lt_save_with_gnu_ld
13244lt_cv_path_LDCXX=$lt_cv_path_LD
13245lt_cv_path_LD=$lt_save_path_LD
13246lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13247lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13248
13249	else
13250	  tagname=""
13251	fi
13252	;;
13253
13254      F77)
13255	if test -n "$F77" && test "X$F77" != "Xno"; then
13256
13257ac_ext=f
13258ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13259ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13260ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13261
13262
13263archive_cmds_need_lc_F77=no
13264allow_undefined_flag_F77=
13265always_export_symbols_F77=no
13266archive_expsym_cmds_F77=
13267export_dynamic_flag_spec_F77=
13268hardcode_direct_F77=no
13269hardcode_libdir_flag_spec_F77=
13270hardcode_libdir_flag_spec_ld_F77=
13271hardcode_libdir_separator_F77=
13272hardcode_minus_L_F77=no
13273hardcode_automatic_F77=no
13274module_cmds_F77=
13275module_expsym_cmds_F77=
13276link_all_deplibs_F77=unknown
13277old_archive_cmds_F77=$old_archive_cmds
13278no_undefined_flag_F77=
13279whole_archive_flag_spec_F77=
13280enable_shared_with_static_runtimes_F77=no
13281
13282# Source file extension for f77 test sources.
13283ac_ext=f
13284
13285# Object file extension for compiled f77 test sources.
13286objext=o
13287objext_F77=$objext
13288
13289# Code to be used in simple compile tests
13290lt_simple_compile_test_code="\
13291      subroutine t
13292      return
13293      end
13294"
13295
13296# Code to be used in simple link tests
13297lt_simple_link_test_code="\
13298      program t
13299      end
13300"
13301
13302# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13303
13304# If no C compiler was specified, use CC.
13305LTCC=${LTCC-"$CC"}
13306
13307# If no C compiler flags were specified, use CFLAGS.
13308LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13309
13310# Allow CC to be a program name with arguments.
13311compiler=$CC
13312
13313
13314# save warnings/boilerplate of simple test code
13315ac_outfile=conftest.$ac_objext
13316echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13317eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13318_lt_compiler_boilerplate=`cat conftest.err`
13319$rm conftest*
13320
13321ac_outfile=conftest.$ac_objext
13322echo "$lt_simple_link_test_code" >conftest.$ac_ext
13323eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13324_lt_linker_boilerplate=`cat conftest.err`
13325$rm -r conftest*
13326
13327
13328# Allow CC to be a program name with arguments.
13329lt_save_CC="$CC"
13330CC=${F77-"f77"}
13331compiler=$CC
13332compiler_F77=$CC
13333for cc_temp in $compiler""; do
13334  case $cc_temp in
13335    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13336    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13337    \-*) ;;
13338    *) break;;
13339  esac
13340done
13341cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13342
13343
13344echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13345echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13346echo "$as_me:$LINENO: result: $can_build_shared" >&5
13347echo "${ECHO_T}$can_build_shared" >&6
13348
13349echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13350echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13351test "$can_build_shared" = "no" && enable_shared=no
13352
13353# On AIX, shared libraries and static libraries use the same namespace, and
13354# are all built from PIC.
13355case $host_os in
13356aix3*)
13357  test "$enable_shared" = yes && enable_static=no
13358  if test -n "$RANLIB"; then
13359    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13360    postinstall_cmds='$RANLIB $lib'
13361  fi
13362  ;;
13363aix[4-9]*)
13364  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13365    test "$enable_shared" = yes && enable_static=no
13366  fi
13367  ;;
13368esac
13369echo "$as_me:$LINENO: result: $enable_shared" >&5
13370echo "${ECHO_T}$enable_shared" >&6
13371
13372echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13373echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13374# Make sure either enable_shared or enable_static is yes.
13375test "$enable_shared" = yes || enable_static=yes
13376echo "$as_me:$LINENO: result: $enable_static" >&5
13377echo "${ECHO_T}$enable_static" >&6
13378
13379GCC_F77="$G77"
13380LD_F77="$LD"
13381
13382lt_prog_compiler_wl_F77=
13383lt_prog_compiler_pic_F77=
13384lt_prog_compiler_static_F77=
13385
13386echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13387echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13388
13389  if test "$GCC" = yes; then
13390    lt_prog_compiler_wl_F77='-Wl,'
13391    lt_prog_compiler_static_F77='-static'
13392
13393    case $host_os in
13394      aix*)
13395      # All AIX code is PIC.
13396      if test "$host_cpu" = ia64; then
13397	# AIX 5 now supports IA64 processor
13398	lt_prog_compiler_static_F77='-Bstatic'
13399      fi
13400      ;;
13401
13402    amigaos*)
13403      # FIXME: we need at least 68020 code to build shared libraries, but
13404      # adding the `-m68020' flag to GCC prevents building anything better,
13405      # like `-m68040'.
13406      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13407      ;;
13408
13409    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13410      # PIC is the default for these OSes.
13411      ;;
13412
13413    mingw* | cygwin* | pw32* | os2*)
13414      # This hack is so that the source file can tell whether it is being
13415      # built for inclusion in a dll (and should export symbols for example).
13416      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13417      # (--disable-auto-import) libraries
13418      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13419      ;;
13420
13421    darwin* | rhapsody*)
13422      # PIC is the default on this platform
13423      # Common symbols not allowed in MH_DYLIB files
13424      lt_prog_compiler_pic_F77='-fno-common'
13425      ;;
13426
13427    interix[3-9]*)
13428      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13429      # Instead, we relocate shared libraries at runtime.
13430      ;;
13431
13432    msdosdjgpp*)
13433      # Just because we use GCC doesn't mean we suddenly get shared libraries
13434      # on systems that don't support them.
13435      lt_prog_compiler_can_build_shared_F77=no
13436      enable_shared=no
13437      ;;
13438
13439    sysv4*MP*)
13440      if test -d /usr/nec; then
13441	lt_prog_compiler_pic_F77=-Kconform_pic
13442      fi
13443      ;;
13444
13445    hpux*)
13446      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13447      # not for PA HP-UX.
13448      case $host_cpu in
13449      hppa*64*|ia64*)
13450	# +Z the default
13451	;;
13452      *)
13453	lt_prog_compiler_pic_F77='-fPIC'
13454	;;
13455      esac
13456      ;;
13457
13458    *)
13459      lt_prog_compiler_pic_F77='-fPIC'
13460      ;;
13461    esac
13462  else
13463    # PORTME Check for flag to pass linker flags through the system compiler.
13464    case $host_os in
13465    aix*)
13466      lt_prog_compiler_wl_F77='-Wl,'
13467      if test "$host_cpu" = ia64; then
13468	# AIX 5 now supports IA64 processor
13469	lt_prog_compiler_static_F77='-Bstatic'
13470      else
13471	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13472      fi
13473      ;;
13474      darwin*)
13475        # PIC is the default on this platform
13476        # Common symbols not allowed in MH_DYLIB files
13477       case $cc_basename in
13478         xlc*)
13479         lt_prog_compiler_pic_F77='-qnocommon'
13480         lt_prog_compiler_wl_F77='-Wl,'
13481         ;;
13482       esac
13483       ;;
13484
13485    mingw* | cygwin* | pw32* | os2*)
13486      # This hack is so that the source file can tell whether it is being
13487      # built for inclusion in a dll (and should export symbols for example).
13488      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13489      ;;
13490
13491    hpux9* | hpux10* | hpux11*)
13492      lt_prog_compiler_wl_F77='-Wl,'
13493      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13494      # not for PA HP-UX.
13495      case $host_cpu in
13496      hppa*64*|ia64*)
13497	# +Z the default
13498	;;
13499      *)
13500	lt_prog_compiler_pic_F77='+Z'
13501	;;
13502      esac
13503      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13504      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13505      ;;
13506
13507    irix5* | irix6* | nonstopux*)
13508      lt_prog_compiler_wl_F77='-Wl,'
13509      # PIC (with -KPIC) is the default.
13510      lt_prog_compiler_static_F77='-non_shared'
13511      ;;
13512
13513    newsos6)
13514      lt_prog_compiler_pic_F77='-KPIC'
13515      lt_prog_compiler_static_F77='-Bstatic'
13516      ;;
13517
13518    linux* | k*bsd*-gnu)
13519      case $cc_basename in
13520      icc* | ecc*)
13521	lt_prog_compiler_wl_F77='-Wl,'
13522	lt_prog_compiler_pic_F77='-KPIC'
13523	lt_prog_compiler_static_F77='-static'
13524        ;;
13525      pgcc* | pgf77* | pgf90* | pgf95*)
13526        # Portland Group compilers (*not* the Pentium gcc compiler,
13527	# which looks to be a dead project)
13528	lt_prog_compiler_wl_F77='-Wl,'
13529	lt_prog_compiler_pic_F77='-fpic'
13530	lt_prog_compiler_static_F77='-Bstatic'
13531        ;;
13532      ccc*)
13533        lt_prog_compiler_wl_F77='-Wl,'
13534        # All Alpha code is PIC.
13535        lt_prog_compiler_static_F77='-non_shared'
13536        ;;
13537      *)
13538        case `$CC -V 2>&1 | sed 5q` in
13539	*Sun\ C*)
13540	  # Sun C 5.9
13541	  lt_prog_compiler_pic_F77='-KPIC'
13542	  lt_prog_compiler_static_F77='-Bstatic'
13543	  lt_prog_compiler_wl_F77='-Wl,'
13544	  ;;
13545	*Sun\ F*)
13546	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13547	  lt_prog_compiler_pic_F77='-KPIC'
13548	  lt_prog_compiler_static_F77='-Bstatic'
13549	  lt_prog_compiler_wl_F77=''
13550	  ;;
13551	esac
13552	;;
13553      esac
13554      ;;
13555
13556    osf3* | osf4* | osf5*)
13557      lt_prog_compiler_wl_F77='-Wl,'
13558      # All OSF/1 code is PIC.
13559      lt_prog_compiler_static_F77='-non_shared'
13560      ;;
13561
13562    rdos*)
13563      lt_prog_compiler_static_F77='-non_shared'
13564      ;;
13565
13566    solaris*)
13567      lt_prog_compiler_pic_F77='-KPIC'
13568      lt_prog_compiler_static_F77='-Bstatic'
13569      case $cc_basename in
13570      f77* | f90* | f95*)
13571	lt_prog_compiler_wl_F77='-Qoption ld ';;
13572      *)
13573	lt_prog_compiler_wl_F77='-Wl,';;
13574      esac
13575      ;;
13576
13577    sunos4*)
13578      lt_prog_compiler_wl_F77='-Qoption ld '
13579      lt_prog_compiler_pic_F77='-PIC'
13580      lt_prog_compiler_static_F77='-Bstatic'
13581      ;;
13582
13583    sysv4 | sysv4.2uw2* | sysv4.3*)
13584      lt_prog_compiler_wl_F77='-Wl,'
13585      lt_prog_compiler_pic_F77='-KPIC'
13586      lt_prog_compiler_static_F77='-Bstatic'
13587      ;;
13588
13589    sysv4*MP*)
13590      if test -d /usr/nec ;then
13591	lt_prog_compiler_pic_F77='-Kconform_pic'
13592	lt_prog_compiler_static_F77='-Bstatic'
13593      fi
13594      ;;
13595
13596    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13597      lt_prog_compiler_wl_F77='-Wl,'
13598      lt_prog_compiler_pic_F77='-KPIC'
13599      lt_prog_compiler_static_F77='-Bstatic'
13600      ;;
13601
13602    unicos*)
13603      lt_prog_compiler_wl_F77='-Wl,'
13604      lt_prog_compiler_can_build_shared_F77=no
13605      ;;
13606
13607    uts4*)
13608      lt_prog_compiler_pic_F77='-pic'
13609      lt_prog_compiler_static_F77='-Bstatic'
13610      ;;
13611
13612    *)
13613      lt_prog_compiler_can_build_shared_F77=no
13614      ;;
13615    esac
13616  fi
13617
13618echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13619echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13620
13621#
13622# Check to make sure the PIC flag actually works.
13623#
13624if test -n "$lt_prog_compiler_pic_F77"; then
13625
13626echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13627echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13628if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
13629  echo $ECHO_N "(cached) $ECHO_C" >&6
13630else
13631  lt_cv_prog_compiler_pic_works_F77=no
13632  ac_outfile=conftest.$ac_objext
13633   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13634   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13635   # Insert the option either (1) after the last *FLAGS variable, or
13636   # (2) before a word containing "conftest.", or (3) at the end.
13637   # Note that $ac_compile itself does not contain backslashes and begins
13638   # with a dollar sign (not a hyphen), so the echo should work correctly.
13639   # The option is referenced via a variable to avoid confusing sed.
13640   lt_compile=`echo "$ac_compile" | $SED \
13641   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13642   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13643   -e 's:$: $lt_compiler_flag:'`
13644   (eval echo "\"\$as_me:13644: $lt_compile\"" >&5)
13645   (eval "$lt_compile" 2>conftest.err)
13646   ac_status=$?
13647   cat conftest.err >&5
13648   echo "$as_me:13648: \$? = $ac_status" >&5
13649   if (exit $ac_status) && test -s "$ac_outfile"; then
13650     # The compiler can only warn and ignore the option if not recognized
13651     # So say no if there are warnings other than the usual output.
13652     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13653     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13654     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13655       lt_cv_prog_compiler_pic_works_F77=yes
13656     fi
13657   fi
13658   $rm conftest*
13659
13660fi
13661echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13662echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6
13663
13664if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13665    case $lt_prog_compiler_pic_F77 in
13666     "" | " "*) ;;
13667     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13668     esac
13669else
13670    lt_prog_compiler_pic_F77=
13671     lt_prog_compiler_can_build_shared_F77=no
13672fi
13673
13674fi
13675case $host_os in
13676  # For platforms which do not support PIC, -DPIC is meaningless:
13677  *djgpp*)
13678    lt_prog_compiler_pic_F77=
13679    ;;
13680  *)
13681    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13682    ;;
13683esac
13684
13685#
13686# Check to make sure the static flag actually works.
13687#
13688wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13689echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13690echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13691if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
13692  echo $ECHO_N "(cached) $ECHO_C" >&6
13693else
13694  lt_cv_prog_compiler_static_works_F77=no
13695   save_LDFLAGS="$LDFLAGS"
13696   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13697   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13698   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13699     # The linker can only warn and ignore the option if not recognized
13700     # So say no if there are warnings
13701     if test -s conftest.err; then
13702       # Append any errors to the config.log.
13703       cat conftest.err 1>&5
13704       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13705       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13706       if diff conftest.exp conftest.er2 >/dev/null; then
13707         lt_cv_prog_compiler_static_works_F77=yes
13708       fi
13709     else
13710       lt_cv_prog_compiler_static_works_F77=yes
13711     fi
13712   fi
13713   $rm -r conftest*
13714   LDFLAGS="$save_LDFLAGS"
13715
13716fi
13717echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
13718echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6
13719
13720if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13721    :
13722else
13723    lt_prog_compiler_static_F77=
13724fi
13725
13726
13727echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13728echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13729if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13730  echo $ECHO_N "(cached) $ECHO_C" >&6
13731else
13732  lt_cv_prog_compiler_c_o_F77=no
13733   $rm -r conftest 2>/dev/null
13734   mkdir conftest
13735   cd conftest
13736   mkdir out
13737   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13738
13739   lt_compiler_flag="-o out/conftest2.$ac_objext"
13740   # Insert the option either (1) after the last *FLAGS variable, or
13741   # (2) before a word containing "conftest.", or (3) at the end.
13742   # Note that $ac_compile itself does not contain backslashes and begins
13743   # with a dollar sign (not a hyphen), so the echo should work correctly.
13744   lt_compile=`echo "$ac_compile" | $SED \
13745   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13746   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13747   -e 's:$: $lt_compiler_flag:'`
13748   (eval echo "\"\$as_me:13748: $lt_compile\"" >&5)
13749   (eval "$lt_compile" 2>out/conftest.err)
13750   ac_status=$?
13751   cat out/conftest.err >&5
13752   echo "$as_me:13752: \$? = $ac_status" >&5
13753   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13754   then
13755     # The compiler can only warn and ignore the option if not recognized
13756     # So say no if there are warnings
13757     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13758     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13759     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13760       lt_cv_prog_compiler_c_o_F77=yes
13761     fi
13762   fi
13763   chmod u+w . 2>&5
13764   $rm conftest*
13765   # SGI C++ compiler will create directory out/ii_files/ for
13766   # template instantiation
13767   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13768   $rm out/* && rmdir out
13769   cd ..
13770   rmdir conftest
13771   $rm conftest*
13772
13773fi
13774echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13775echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13776
13777
13778hard_links="nottested"
13779if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13780  # do not overwrite the value of need_locks provided by the user
13781  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13782echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13783  hard_links=yes
13784  $rm conftest*
13785  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13786  touch conftest.a
13787  ln conftest.a conftest.b 2>&5 || hard_links=no
13788  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13789  echo "$as_me:$LINENO: result: $hard_links" >&5
13790echo "${ECHO_T}$hard_links" >&6
13791  if test "$hard_links" = no; then
13792    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13793echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13794    need_locks=warn
13795  fi
13796else
13797  need_locks=no
13798fi
13799
13800echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13801echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13802
13803  runpath_var=
13804  allow_undefined_flag_F77=
13805  enable_shared_with_static_runtimes_F77=no
13806  archive_cmds_F77=
13807  archive_expsym_cmds_F77=
13808  old_archive_From_new_cmds_F77=
13809  old_archive_from_expsyms_cmds_F77=
13810  export_dynamic_flag_spec_F77=
13811  whole_archive_flag_spec_F77=
13812  thread_safe_flag_spec_F77=
13813  hardcode_libdir_flag_spec_F77=
13814  hardcode_libdir_flag_spec_ld_F77=
13815  hardcode_libdir_separator_F77=
13816  hardcode_direct_F77=no
13817  hardcode_minus_L_F77=no
13818  hardcode_shlibpath_var_F77=unsupported
13819  link_all_deplibs_F77=unknown
13820  hardcode_automatic_F77=no
13821  module_cmds_F77=
13822  module_expsym_cmds_F77=
13823  always_export_symbols_F77=no
13824  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13825  # include_expsyms should be a list of space-separated symbols to be *always*
13826  # included in the symbol list
13827  include_expsyms_F77=
13828  # exclude_expsyms can be an extended regexp of symbols to exclude
13829  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13830  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13831  # as well as any symbol that contains `d'.
13832  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13833  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13834  # platforms (ab)use it in PIC code, but their linkers get confused if
13835  # the symbol is explicitly referenced.  Since portable code cannot
13836  # rely on this symbol name, it's probably fine to never include it in
13837  # preloaded symbol tables.
13838  # Exclude shared library initialization/finalization symbols.
13839  extract_expsyms_cmds=
13840  # Just being paranoid about ensuring that cc_basename is set.
13841  for cc_temp in $compiler""; do
13842  case $cc_temp in
13843    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13844    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13845    \-*) ;;
13846    *) break;;
13847  esac
13848done
13849cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13850
13851  case $host_os in
13852  cygwin* | mingw* | pw32*)
13853    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13854    # When not using gcc, we currently assume that we are using
13855    # Microsoft Visual C++.
13856    if test "$GCC" != yes; then
13857      with_gnu_ld=no
13858    fi
13859    ;;
13860  interix*)
13861    # we just hope/assume this is gcc and not c89 (= MSVC++)
13862    with_gnu_ld=yes
13863    ;;
13864  openbsd*)
13865    with_gnu_ld=no
13866    ;;
13867  esac
13868
13869  ld_shlibs_F77=yes
13870  if test "$with_gnu_ld" = yes; then
13871    # If archive_cmds runs LD, not CC, wlarc should be empty
13872    wlarc='${wl}'
13873
13874    # Set some defaults for GNU ld with shared library support. These
13875    # are reset later if shared libraries are not supported. Putting them
13876    # here allows them to be overridden if necessary.
13877    runpath_var=LD_RUN_PATH
13878    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13879    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13880    # ancient GNU ld didn't support --whole-archive et. al.
13881    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13882	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13883      else
13884  	whole_archive_flag_spec_F77=
13885    fi
13886    supports_anon_versioning=no
13887    case `$LD -v 2>/dev/null` in
13888      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13889      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13890      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13891      *\ 2.11.*) ;; # other 2.11 versions
13892      *) supports_anon_versioning=yes ;;
13893    esac
13894
13895    # See if GNU ld supports shared libraries.
13896    case $host_os in
13897    aix[3-9]*)
13898      # On AIX/PPC, the GNU linker is very broken
13899      if test "$host_cpu" != ia64; then
13900	ld_shlibs_F77=no
13901	cat <<EOF 1>&2
13902
13903*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13904*** to be unable to reliably create shared libraries on AIX.
13905*** Therefore, libtool is disabling shared libraries support.  If you
13906*** really care for shared libraries, you may want to modify your PATH
13907*** so that a non-GNU linker is found, and then restart.
13908
13909EOF
13910      fi
13911      ;;
13912
13913    amigaos*)
13914      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13915      hardcode_libdir_flag_spec_F77='-L$libdir'
13916      hardcode_minus_L_F77=yes
13917
13918      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13919      # that the semantics of dynamic libraries on AmigaOS, at least up
13920      # to version 4, is to share data among multiple programs linked
13921      # with the same dynamic library.  Since this doesn't match the
13922      # behavior of shared libraries on other platforms, we can't use
13923      # them.
13924      ld_shlibs_F77=no
13925      ;;
13926
13927    beos*)
13928      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13929	allow_undefined_flag_F77=unsupported
13930	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13931	# support --undefined.  This deserves some investigation.  FIXME
13932	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13933      else
13934	ld_shlibs_F77=no
13935      fi
13936      ;;
13937
13938    cygwin* | mingw* | pw32*)
13939      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13940      # as there is no search path for DLLs.
13941      hardcode_libdir_flag_spec_F77='-L$libdir'
13942      allow_undefined_flag_F77=unsupported
13943      always_export_symbols_F77=no
13944      enable_shared_with_static_runtimes_F77=yes
13945      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13946
13947      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13948        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13949	# If the export-symbols file already is a .def file (1st line
13950	# is EXPORTS), use it as is; otherwise, prepend...
13951	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13952	  cp $export_symbols $output_objdir/$soname.def;
13953	else
13954	  echo EXPORTS > $output_objdir/$soname.def;
13955	  cat $export_symbols >> $output_objdir/$soname.def;
13956	fi~
13957	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13958      else
13959	ld_shlibs_F77=no
13960      fi
13961      ;;
13962
13963    interix[3-9]*)
13964      hardcode_direct_F77=no
13965      hardcode_shlibpath_var_F77=no
13966      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13967      export_dynamic_flag_spec_F77='${wl}-E'
13968      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13969      # Instead, shared libraries are loaded at an image base (0x10000000 by
13970      # default) and relocated if they conflict, which is a slow very memory
13971      # consuming and fragmenting process.  To avoid this, we pick a random,
13972      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13973      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13974      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13975      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13976      ;;
13977
13978    gnu* | linux* | k*bsd*-gnu)
13979      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13980	tmp_addflag=
13981	case $cc_basename,$host_cpu in
13982	pgcc*)				# Portland Group C compiler
13983	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13984	  tmp_addflag=' $pic_flag'
13985	  ;;
13986	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13987	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13988	  tmp_addflag=' $pic_flag -Mnomain' ;;
13989	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13990	  tmp_addflag=' -i_dynamic' ;;
13991	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13992	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13993	ifc* | ifort*)			# Intel Fortran compiler
13994	  tmp_addflag=' -nofor_main' ;;
13995	esac
13996	case `$CC -V 2>&1 | sed 5q` in
13997	*Sun\ C*)			# Sun C 5.9
13998	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13999	  tmp_sharedflag='-G' ;;
14000	*Sun\ F*)			# Sun Fortran 8.3
14001	  tmp_sharedflag='-G' ;;
14002	*)
14003	  tmp_sharedflag='-shared' ;;
14004	esac
14005	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14006
14007	if test $supports_anon_versioning = yes; then
14008	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14009  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14010  $echo "local: *; };" >> $output_objdir/$libname.ver~
14011	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14012	fi
14013      else
14014	ld_shlibs_F77=no
14015      fi
14016      ;;
14017
14018    netbsd*)
14019      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14020	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14021	wlarc=
14022      else
14023	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14024	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14025      fi
14026      ;;
14027
14028    solaris*)
14029      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14030	ld_shlibs_F77=no
14031	cat <<EOF 1>&2
14032
14033*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14034*** create shared libraries on Solaris systems.  Therefore, libtool
14035*** is disabling shared libraries support.  We urge you to upgrade GNU
14036*** binutils to release 2.9.1 or newer.  Another option is to modify
14037*** your PATH or compiler configuration so that the native linker is
14038*** used, and then restart.
14039
14040EOF
14041      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14042	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14043	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14044      else
14045	ld_shlibs_F77=no
14046      fi
14047      ;;
14048
14049    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14050      case `$LD -v 2>&1` in
14051        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14052	ld_shlibs_F77=no
14053	cat <<_LT_EOF 1>&2
14054
14055*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14056*** reliably create shared libraries on SCO systems.  Therefore, libtool
14057*** is disabling shared libraries support.  We urge you to upgrade GNU
14058*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14059*** your PATH or compiler configuration so that the native linker is
14060*** used, and then restart.
14061
14062_LT_EOF
14063	;;
14064	*)
14065	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14066	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14067	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14068	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14069	  else
14070	    ld_shlibs_F77=no
14071	  fi
14072	;;
14073      esac
14074      ;;
14075
14076    sunos4*)
14077      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14078      wlarc=
14079      hardcode_direct_F77=yes
14080      hardcode_shlibpath_var_F77=no
14081      ;;
14082
14083    *)
14084      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14085	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14086	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14087      else
14088	ld_shlibs_F77=no
14089      fi
14090      ;;
14091    esac
14092
14093    if test "$ld_shlibs_F77" = no; then
14094      runpath_var=
14095      hardcode_libdir_flag_spec_F77=
14096      export_dynamic_flag_spec_F77=
14097      whole_archive_flag_spec_F77=
14098    fi
14099  else
14100    # PORTME fill in a description of your system's linker (not GNU ld)
14101    case $host_os in
14102    aix3*)
14103      allow_undefined_flag_F77=unsupported
14104      always_export_symbols_F77=yes
14105      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14106      # Note: this linker hardcodes the directories in LIBPATH if there
14107      # are no directories specified by -L.
14108      hardcode_minus_L_F77=yes
14109      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14110	# Neither direct hardcoding nor static linking is supported with a
14111	# broken collect2.
14112	hardcode_direct_F77=unsupported
14113      fi
14114      ;;
14115
14116    aix[4-9]*)
14117      if test "$host_cpu" = ia64; then
14118	# On IA64, the linker does run time linking by default, so we don't
14119	# have to do anything special.
14120	aix_use_runtimelinking=no
14121	exp_sym_flag='-Bexport'
14122	no_entry_flag=""
14123      else
14124	# If we're using GNU nm, then we don't want the "-C" option.
14125	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14126	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14127	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14128	else
14129	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14130	fi
14131	aix_use_runtimelinking=no
14132
14133	# Test if we are trying to use run time linking or normal
14134	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14135	# need to do runtime linking.
14136	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14137	  for ld_flag in $LDFLAGS; do
14138  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14139  	    aix_use_runtimelinking=yes
14140  	    break
14141  	  fi
14142	  done
14143	  ;;
14144	esac
14145
14146	exp_sym_flag='-bexport'
14147	no_entry_flag='-bnoentry'
14148      fi
14149
14150      # When large executables or shared objects are built, AIX ld can
14151      # have problems creating the table of contents.  If linking a library
14152      # or program results in "error TOC overflow" add -mminimal-toc to
14153      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14154      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14155
14156      archive_cmds_F77=''
14157      hardcode_direct_F77=yes
14158      hardcode_libdir_separator_F77=':'
14159      link_all_deplibs_F77=yes
14160
14161      if test "$GCC" = yes; then
14162	case $host_os in aix4.[012]|aix4.[012].*)
14163	# We only want to do this on AIX 4.2 and lower, the check
14164	# below for broken collect2 doesn't work under 4.3+
14165	  collect2name=`${CC} -print-prog-name=collect2`
14166	  if test -f "$collect2name" && \
14167  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14168	  then
14169  	  # We have reworked collect2
14170  	  :
14171	  else
14172  	  # We have old collect2
14173  	  hardcode_direct_F77=unsupported
14174  	  # It fails to find uninstalled libraries when the uninstalled
14175  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14176  	  # to unsupported forces relinking
14177  	  hardcode_minus_L_F77=yes
14178  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14179  	  hardcode_libdir_separator_F77=
14180	  fi
14181	  ;;
14182	esac
14183	shared_flag='-shared'
14184	if test "$aix_use_runtimelinking" = yes; then
14185	  shared_flag="$shared_flag "'${wl}-G'
14186	fi
14187      else
14188	# not using gcc
14189	if test "$host_cpu" = ia64; then
14190  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14191  	# chokes on -Wl,-G. The following line is correct:
14192	  shared_flag='-G'
14193	else
14194	  if test "$aix_use_runtimelinking" = yes; then
14195	    shared_flag='${wl}-G'
14196	  else
14197	    shared_flag='${wl}-bM:SRE'
14198	  fi
14199	fi
14200      fi
14201
14202      # It seems that -bexpall does not export symbols beginning with
14203      # underscore (_), so it is better to generate a list of symbols to export.
14204      always_export_symbols_F77=yes
14205      if test "$aix_use_runtimelinking" = yes; then
14206	# Warning - without using the other runtime loading flags (-brtl),
14207	# -berok will link without error, but may produce a broken library.
14208	allow_undefined_flag_F77='-berok'
14209       # Determine the default libpath from the value encoded in an empty executable.
14210       cat >conftest.$ac_ext <<_ACEOF
14211      program main
14212
14213      end
14214_ACEOF
14215rm -f conftest.$ac_objext conftest$ac_exeext
14216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14217  (eval $ac_link) 2>conftest.er1
14218  ac_status=$?
14219  grep -v '^ *+' conftest.er1 >conftest.err
14220  rm -f conftest.er1
14221  cat conftest.err >&5
14222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223  (exit $ac_status); } &&
14224	 { ac_try='test -z "$ac_f77_werror_flag"
14225			 || test ! -s conftest.err'
14226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227  (eval $ac_try) 2>&5
14228  ac_status=$?
14229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230  (exit $ac_status); }; } &&
14231	 { ac_try='test -s conftest$ac_exeext'
14232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233  (eval $ac_try) 2>&5
14234  ac_status=$?
14235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236  (exit $ac_status); }; }; then
14237
14238lt_aix_libpath_sed='
14239    /Import File Strings/,/^$/ {
14240	/^0/ {
14241	    s/^0  *\(.*\)$/\1/
14242	    p
14243	}
14244    }'
14245aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14246# Check for a 64-bit object if we didn't find anything.
14247if test -z "$aix_libpath"; then
14248  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14249fi
14250else
14251  echo "$as_me: failed program was:" >&5
14252sed 's/^/| /' conftest.$ac_ext >&5
14253
14254fi
14255rm -f conftest.err conftest.$ac_objext \
14256      conftest$ac_exeext conftest.$ac_ext
14257if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14258
14259       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14260	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14261       else
14262	if test "$host_cpu" = ia64; then
14263	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14264	  allow_undefined_flag_F77="-z nodefs"
14265	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14266	else
14267	 # Determine the default libpath from the value encoded in an empty executable.
14268	 cat >conftest.$ac_ext <<_ACEOF
14269      program main
14270
14271      end
14272_ACEOF
14273rm -f conftest.$ac_objext conftest$ac_exeext
14274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14275  (eval $ac_link) 2>conftest.er1
14276  ac_status=$?
14277  grep -v '^ *+' conftest.er1 >conftest.err
14278  rm -f conftest.er1
14279  cat conftest.err >&5
14280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281  (exit $ac_status); } &&
14282	 { ac_try='test -z "$ac_f77_werror_flag"
14283			 || test ! -s conftest.err'
14284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285  (eval $ac_try) 2>&5
14286  ac_status=$?
14287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288  (exit $ac_status); }; } &&
14289	 { ac_try='test -s conftest$ac_exeext'
14290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291  (eval $ac_try) 2>&5
14292  ac_status=$?
14293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294  (exit $ac_status); }; }; then
14295
14296lt_aix_libpath_sed='
14297    /Import File Strings/,/^$/ {
14298	/^0/ {
14299	    s/^0  *\(.*\)$/\1/
14300	    p
14301	}
14302    }'
14303aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14304# Check for a 64-bit object if we didn't find anything.
14305if test -z "$aix_libpath"; then
14306  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14307fi
14308else
14309  echo "$as_me: failed program was:" >&5
14310sed 's/^/| /' conftest.$ac_ext >&5
14311
14312fi
14313rm -f conftest.err conftest.$ac_objext \
14314      conftest$ac_exeext conftest.$ac_ext
14315if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14316
14317	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14318	  # Warning - without using the other run time loading flags,
14319	  # -berok will link without error, but may produce a broken library.
14320	  no_undefined_flag_F77=' ${wl}-bernotok'
14321	  allow_undefined_flag_F77=' ${wl}-berok'
14322	  # Exported symbols can be pulled into shared objects from archives
14323	  whole_archive_flag_spec_F77='$convenience'
14324	  archive_cmds_need_lc_F77=yes
14325	  # This is similar to how AIX traditionally builds its shared libraries.
14326	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14327	fi
14328      fi
14329      ;;
14330
14331    amigaos*)
14332      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14333      hardcode_libdir_flag_spec_F77='-L$libdir'
14334      hardcode_minus_L_F77=yes
14335      # see comment about different semantics on the GNU ld section
14336      ld_shlibs_F77=no
14337      ;;
14338
14339    bsdi[45]*)
14340      export_dynamic_flag_spec_F77=-rdynamic
14341      ;;
14342
14343    cygwin* | mingw* | pw32*)
14344      # When not using gcc, we currently assume that we are using
14345      # Microsoft Visual C++.
14346      # hardcode_libdir_flag_spec is actually meaningless, as there is
14347      # no search path for DLLs.
14348      hardcode_libdir_flag_spec_F77=' '
14349      allow_undefined_flag_F77=unsupported
14350      # Tell ltmain to make .lib files, not .a files.
14351      libext=lib
14352      # Tell ltmain to make .dll files, not .so files.
14353      shrext_cmds=".dll"
14354      # FIXME: Setting linknames here is a bad hack.
14355      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14356      # The linker will automatically build a .lib file if we build a DLL.
14357      old_archive_From_new_cmds_F77='true'
14358      # FIXME: Should let the user specify the lib program.
14359      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14360      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14361      enable_shared_with_static_runtimes_F77=yes
14362      ;;
14363
14364    darwin* | rhapsody*)
14365      case $host_os in
14366        rhapsody* | darwin1.[012])
14367         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14368         ;;
14369       *) # Darwin 1.3 on
14370         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14371           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14372         else
14373           case ${MACOSX_DEPLOYMENT_TARGET} in
14374             10.[012])
14375               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14376               ;;
14377             10.*)
14378               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14379               ;;
14380           esac
14381         fi
14382         ;;
14383      esac
14384      archive_cmds_need_lc_F77=no
14385      hardcode_direct_F77=no
14386      hardcode_automatic_F77=yes
14387      hardcode_shlibpath_var_F77=unsupported
14388      whole_archive_flag_spec_F77=''
14389      link_all_deplibs_F77=yes
14390    if test "$GCC" = yes ; then
14391    	output_verbose_link_cmd='echo'
14392        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14393        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14394        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14395        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14396    else
14397      case $cc_basename in
14398        xlc*)
14399         output_verbose_link_cmd='echo'
14400         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14401         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14402          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14403         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14404          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14405          ;;
14406       *)
14407         ld_shlibs_F77=no
14408          ;;
14409      esac
14410    fi
14411      ;;
14412
14413    dgux*)
14414      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14415      hardcode_libdir_flag_spec_F77='-L$libdir'
14416      hardcode_shlibpath_var_F77=no
14417      ;;
14418
14419    freebsd1*)
14420      ld_shlibs_F77=no
14421      ;;
14422
14423    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14424    # support.  Future versions do this automatically, but an explicit c++rt0.o
14425    # does not break anything, and helps significantly (at the cost of a little
14426    # extra space).
14427    freebsd2.2*)
14428      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14429      hardcode_libdir_flag_spec_F77='-R$libdir'
14430      hardcode_direct_F77=yes
14431      hardcode_shlibpath_var_F77=no
14432      ;;
14433
14434    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14435    freebsd2*)
14436      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14437      hardcode_direct_F77=yes
14438      hardcode_minus_L_F77=yes
14439      hardcode_shlibpath_var_F77=no
14440      ;;
14441
14442    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14443    freebsd* | dragonfly*)
14444      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14445      hardcode_libdir_flag_spec_F77='-R$libdir'
14446      hardcode_direct_F77=yes
14447      hardcode_shlibpath_var_F77=no
14448      ;;
14449
14450    hpux9*)
14451      if test "$GCC" = yes; then
14452	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14453      else
14454	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14455      fi
14456      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14457      hardcode_libdir_separator_F77=:
14458      hardcode_direct_F77=yes
14459
14460      # hardcode_minus_L: Not really in the search PATH,
14461      # but as the default location of the library.
14462      hardcode_minus_L_F77=yes
14463      export_dynamic_flag_spec_F77='${wl}-E'
14464      ;;
14465
14466    hpux10*)
14467      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14468	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14469      else
14470	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14471      fi
14472      if test "$with_gnu_ld" = no; then
14473	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14474	hardcode_libdir_separator_F77=:
14475
14476	hardcode_direct_F77=yes
14477	export_dynamic_flag_spec_F77='${wl}-E'
14478
14479	# hardcode_minus_L: Not really in the search PATH,
14480	# but as the default location of the library.
14481	hardcode_minus_L_F77=yes
14482      fi
14483      ;;
14484
14485    hpux11*)
14486      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14487	case $host_cpu in
14488	hppa*64*)
14489	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14490	  ;;
14491	ia64*)
14492	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14493	  ;;
14494	*)
14495	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14496	  ;;
14497	esac
14498      else
14499	case $host_cpu in
14500	hppa*64*)
14501	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14502	  ;;
14503	ia64*)
14504	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14505	  ;;
14506	*)
14507	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14508	  ;;
14509	esac
14510      fi
14511      if test "$with_gnu_ld" = no; then
14512	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14513	hardcode_libdir_separator_F77=:
14514
14515	case $host_cpu in
14516	hppa*64*|ia64*)
14517	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14518	  hardcode_direct_F77=no
14519	  hardcode_shlibpath_var_F77=no
14520	  ;;
14521	*)
14522	  hardcode_direct_F77=yes
14523	  export_dynamic_flag_spec_F77='${wl}-E'
14524
14525	  # hardcode_minus_L: Not really in the search PATH,
14526	  # but as the default location of the library.
14527	  hardcode_minus_L_F77=yes
14528	  ;;
14529	esac
14530      fi
14531      ;;
14532
14533    irix5* | irix6* | nonstopux*)
14534      if test "$GCC" = yes; then
14535	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14536      else
14537	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14538	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14539      fi
14540      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14541      hardcode_libdir_separator_F77=:
14542      link_all_deplibs_F77=yes
14543      ;;
14544
14545    netbsd*)
14546      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14547	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14548      else
14549	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14550      fi
14551      hardcode_libdir_flag_spec_F77='-R$libdir'
14552      hardcode_direct_F77=yes
14553      hardcode_shlibpath_var_F77=no
14554      ;;
14555
14556    newsos6)
14557      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14558      hardcode_direct_F77=yes
14559      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14560      hardcode_libdir_separator_F77=:
14561      hardcode_shlibpath_var_F77=no
14562      ;;
14563
14564    openbsd*)
14565      if test -f /usr/libexec/ld.so; then
14566	hardcode_direct_F77=yes
14567	hardcode_shlibpath_var_F77=no
14568	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14569	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14570	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14571	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14572	  export_dynamic_flag_spec_F77='${wl}-E'
14573	else
14574	  case $host_os in
14575	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14576	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14577	     hardcode_libdir_flag_spec_F77='-R$libdir'
14578	     ;;
14579	   *)
14580	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14581	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14582	     ;;
14583	  esac
14584        fi
14585      else
14586	ld_shlibs_F77=no
14587      fi
14588      ;;
14589
14590    os2*)
14591      hardcode_libdir_flag_spec_F77='-L$libdir'
14592      hardcode_minus_L_F77=yes
14593      allow_undefined_flag_F77=unsupported
14594      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14595      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14596      ;;
14597
14598    osf3*)
14599      if test "$GCC" = yes; then
14600	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14601	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14602      else
14603	allow_undefined_flag_F77=' -expect_unresolved \*'
14604	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14605      fi
14606      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14607      hardcode_libdir_separator_F77=:
14608      ;;
14609
14610    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14611      if test "$GCC" = yes; then
14612	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14613	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14614	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14615      else
14616	allow_undefined_flag_F77=' -expect_unresolved \*'
14617	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14618	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14619	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14620
14621	# Both c and cxx compiler support -rpath directly
14622	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14623      fi
14624      hardcode_libdir_separator_F77=:
14625      ;;
14626
14627    solaris*)
14628      no_undefined_flag_F77=' -z text'
14629      if test "$GCC" = yes; then
14630	wlarc='${wl}'
14631	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14632	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14633	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14634      else
14635	wlarc=''
14636	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14637	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14638  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14639      fi
14640      hardcode_libdir_flag_spec_F77='-R$libdir'
14641      hardcode_shlibpath_var_F77=no
14642      case $host_os in
14643      solaris2.[0-5] | solaris2.[0-5].*) ;;
14644      *)
14645	# The compiler driver will combine and reorder linker options,
14646	# but understands `-z linker_flag'.  GCC discards it without `$wl',
14647	# but is careful enough not to reorder.
14648 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14649	if test "$GCC" = yes; then
14650	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14651	else
14652	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14653	fi
14654	;;
14655      esac
14656      link_all_deplibs_F77=yes
14657      ;;
14658
14659    sunos4*)
14660      if test "x$host_vendor" = xsequent; then
14661	# Use $CC to link under sequent, because it throws in some extra .o
14662	# files that make .init and .fini sections work.
14663	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14664      else
14665	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14666      fi
14667      hardcode_libdir_flag_spec_F77='-L$libdir'
14668      hardcode_direct_F77=yes
14669      hardcode_minus_L_F77=yes
14670      hardcode_shlibpath_var_F77=no
14671      ;;
14672
14673    sysv4)
14674      case $host_vendor in
14675	sni)
14676	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14677	  hardcode_direct_F77=yes # is this really true???
14678	;;
14679	siemens)
14680	  ## LD is ld it makes a PLAMLIB
14681	  ## CC just makes a GrossModule.
14682	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14683	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14684	  hardcode_direct_F77=no
14685        ;;
14686	motorola)
14687	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14688	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14689	;;
14690      esac
14691      runpath_var='LD_RUN_PATH'
14692      hardcode_shlibpath_var_F77=no
14693      ;;
14694
14695    sysv4.3*)
14696      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14697      hardcode_shlibpath_var_F77=no
14698      export_dynamic_flag_spec_F77='-Bexport'
14699      ;;
14700
14701    sysv4*MP*)
14702      if test -d /usr/nec; then
14703	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14704	hardcode_shlibpath_var_F77=no
14705	runpath_var=LD_RUN_PATH
14706	hardcode_runpath_var=yes
14707	ld_shlibs_F77=yes
14708      fi
14709      ;;
14710
14711    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14712      no_undefined_flag_F77='${wl}-z,text'
14713      archive_cmds_need_lc_F77=no
14714      hardcode_shlibpath_var_F77=no
14715      runpath_var='LD_RUN_PATH'
14716
14717      if test "$GCC" = yes; then
14718	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14719	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14720      else
14721	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14722	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14723      fi
14724      ;;
14725
14726    sysv5* | sco3.2v5* | sco5v6*)
14727      # Note: We can NOT use -z defs as we might desire, because we do not
14728      # link with -lc, and that would cause any symbols used from libc to
14729      # always be unresolved, which means just about no library would
14730      # ever link correctly.  If we're not using GNU ld we use -z text
14731      # though, which does catch some bad symbols but isn't as heavy-handed
14732      # as -z defs.
14733      no_undefined_flag_F77='${wl}-z,text'
14734      allow_undefined_flag_F77='${wl}-z,nodefs'
14735      archive_cmds_need_lc_F77=no
14736      hardcode_shlibpath_var_F77=no
14737      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14738      hardcode_libdir_separator_F77=':'
14739      link_all_deplibs_F77=yes
14740      export_dynamic_flag_spec_F77='${wl}-Bexport'
14741      runpath_var='LD_RUN_PATH'
14742
14743      if test "$GCC" = yes; then
14744	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14745	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14746      else
14747	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14748	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14749      fi
14750      ;;
14751
14752    uts4*)
14753      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14754      hardcode_libdir_flag_spec_F77='-L$libdir'
14755      hardcode_shlibpath_var_F77=no
14756      ;;
14757
14758    *)
14759      ld_shlibs_F77=no
14760      ;;
14761    esac
14762  fi
14763
14764echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14765echo "${ECHO_T}$ld_shlibs_F77" >&6
14766test "$ld_shlibs_F77" = no && can_build_shared=no
14767
14768#
14769# Do we need to explicitly link libc?
14770#
14771case "x$archive_cmds_need_lc_F77" in
14772x|xyes)
14773  # Assume -lc should be added
14774  archive_cmds_need_lc_F77=yes
14775
14776  if test "$enable_shared" = yes && test "$GCC" = yes; then
14777    case $archive_cmds_F77 in
14778    *'~'*)
14779      # FIXME: we may have to deal with multi-command sequences.
14780      ;;
14781    '$CC '*)
14782      # Test whether the compiler implicitly links with -lc since on some
14783      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14784      # to ld, don't add -lc before -lgcc.
14785      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14786echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14787      $rm conftest*
14788      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14789
14790      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791  (eval $ac_compile) 2>&5
14792  ac_status=$?
14793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794  (exit $ac_status); } 2>conftest.err; then
14795        soname=conftest
14796        lib=conftest
14797        libobjs=conftest.$ac_objext
14798        deplibs=
14799        wl=$lt_prog_compiler_wl_F77
14800	pic_flag=$lt_prog_compiler_pic_F77
14801        compiler_flags=-v
14802        linker_flags=-v
14803        verstring=
14804        output_objdir=.
14805        libname=conftest
14806        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14807        allow_undefined_flag_F77=
14808        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14809  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14810  ac_status=$?
14811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812  (exit $ac_status); }
14813        then
14814	  archive_cmds_need_lc_F77=no
14815        else
14816	  archive_cmds_need_lc_F77=yes
14817        fi
14818        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14819      else
14820        cat conftest.err 1>&5
14821      fi
14822      $rm conftest*
14823      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14824echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14825      ;;
14826    esac
14827  fi
14828  ;;
14829esac
14830
14831echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14832echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14833library_names_spec=
14834libname_spec='lib$name'
14835soname_spec=
14836shrext_cmds=".so"
14837postinstall_cmds=
14838postuninstall_cmds=
14839finish_cmds=
14840finish_eval=
14841shlibpath_var=
14842shlibpath_overrides_runpath=unknown
14843version_type=none
14844dynamic_linker="$host_os ld.so"
14845sys_lib_dlsearch_path_spec="/lib /usr/lib"
14846
14847need_lib_prefix=unknown
14848hardcode_into_libs=no
14849
14850# when you set need_version to no, make sure it does not cause -set_version
14851# flags to be left without arguments
14852need_version=unknown
14853
14854case $host_os in
14855aix3*)
14856  version_type=linux
14857  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14858  shlibpath_var=LIBPATH
14859
14860  # AIX 3 has no versioning support, so we append a major version to the name.
14861  soname_spec='${libname}${release}${shared_ext}$major'
14862  ;;
14863
14864aix[4-9]*)
14865  version_type=linux
14866  need_lib_prefix=no
14867  need_version=no
14868  hardcode_into_libs=yes
14869  if test "$host_cpu" = ia64; then
14870    # AIX 5 supports IA64
14871    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14872    shlibpath_var=LD_LIBRARY_PATH
14873  else
14874    # With GCC up to 2.95.x, collect2 would create an import file
14875    # for dependence libraries.  The import file would start with
14876    # the line `#! .'.  This would cause the generated library to
14877    # depend on `.', always an invalid library.  This was fixed in
14878    # development snapshots of GCC prior to 3.0.
14879    case $host_os in
14880      aix4 | aix4.[01] | aix4.[01].*)
14881      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14882	   echo ' yes '
14883	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14884	:
14885      else
14886	can_build_shared=no
14887      fi
14888      ;;
14889    esac
14890    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14891    # soname into executable. Probably we can add versioning support to
14892    # collect2, so additional links can be useful in future.
14893    if test "$aix_use_runtimelinking" = yes; then
14894      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14895      # instead of lib<name>.a to let people know that these are not
14896      # typical AIX shared libraries.
14897      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898    else
14899      # We preserve .a as extension for shared libraries through AIX4.2
14900      # and later when we are not doing run time linking.
14901      library_names_spec='${libname}${release}.a $libname.a'
14902      soname_spec='${libname}${release}${shared_ext}$major'
14903    fi
14904    shlibpath_var=LIBPATH
14905  fi
14906  ;;
14907
14908amigaos*)
14909  library_names_spec='$libname.ixlibrary $libname.a'
14910  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14911  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14912  ;;
14913
14914beos*)
14915  library_names_spec='${libname}${shared_ext}'
14916  dynamic_linker="$host_os ld.so"
14917  shlibpath_var=LIBRARY_PATH
14918  ;;
14919
14920bsdi[45]*)
14921  version_type=linux
14922  need_version=no
14923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14924  soname_spec='${libname}${release}${shared_ext}$major'
14925  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14926  shlibpath_var=LD_LIBRARY_PATH
14927  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14928  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14929  # the default ld.so.conf also contains /usr/contrib/lib and
14930  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14931  # libtool to hard-code these into programs
14932  ;;
14933
14934cygwin* | mingw* | pw32*)
14935  version_type=windows
14936  shrext_cmds=".dll"
14937  need_version=no
14938  need_lib_prefix=no
14939
14940  case $GCC,$host_os in
14941  yes,cygwin* | yes,mingw* | yes,pw32*)
14942    library_names_spec='$libname.dll.a'
14943    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14944    postinstall_cmds='base_file=`basename \${file}`~
14945      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14946      dldir=$destdir/`dirname \$dlpath`~
14947      test -d \$dldir || mkdir -p \$dldir~
14948      $install_prog $dir/$dlname \$dldir/$dlname~
14949      chmod a+x \$dldir/$dlname'
14950    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14951      dlpath=$dir/\$dldll~
14952       $rm \$dlpath'
14953    shlibpath_overrides_runpath=yes
14954
14955    case $host_os in
14956    cygwin*)
14957      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14958      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14959      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14960      ;;
14961    mingw*)
14962      # MinGW DLLs use traditional 'lib' prefix
14963      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14964      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14965      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14966        # It is most probably a Windows format PATH printed by
14967        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14968        # path with ; separators, and with drive letters. We can handle the
14969        # drive letters (cygwin fileutils understands them), so leave them,
14970        # especially as we might pass files found there to a mingw objdump,
14971        # which wouldn't understand a cygwinified path. Ahh.
14972        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14973      else
14974        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14975      fi
14976      ;;
14977    pw32*)
14978      # pw32 DLLs use 'pw' prefix rather than 'lib'
14979      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14980      ;;
14981    esac
14982    ;;
14983
14984  *)
14985    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14986    ;;
14987  esac
14988  dynamic_linker='Win32 ld.exe'
14989  # FIXME: first we should search . and the directory the executable is in
14990  shlibpath_var=PATH
14991  ;;
14992
14993darwin* | rhapsody*)
14994  dynamic_linker="$host_os dyld"
14995  version_type=darwin
14996  need_lib_prefix=no
14997  need_version=no
14998  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14999  soname_spec='${libname}${release}${major}$shared_ext'
15000  shlibpath_overrides_runpath=yes
15001  shlibpath_var=DYLD_LIBRARY_PATH
15002  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15003
15004  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15005  ;;
15006
15007dgux*)
15008  version_type=linux
15009  need_lib_prefix=no
15010  need_version=no
15011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15012  soname_spec='${libname}${release}${shared_ext}$major'
15013  shlibpath_var=LD_LIBRARY_PATH
15014  ;;
15015
15016freebsd1*)
15017  dynamic_linker=no
15018  ;;
15019
15020freebsd* | dragonfly*)
15021  # DragonFly does not have aout.  When/if they implement a new
15022  # versioning mechanism, adjust this.
15023  if test -x /usr/bin/objformat; then
15024    objformat=`/usr/bin/objformat`
15025  else
15026    case $host_os in
15027    freebsd[123]*) objformat=aout ;;
15028    *) objformat=elf ;;
15029    esac
15030  fi
15031  version_type=freebsd-$objformat
15032  case $version_type in
15033    freebsd-elf*)
15034      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15035      need_version=no
15036      need_lib_prefix=no
15037      ;;
15038    freebsd-*)
15039      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15040      need_version=yes
15041      ;;
15042  esac
15043  shlibpath_var=LD_LIBRARY_PATH
15044  case $host_os in
15045  freebsd2*)
15046    shlibpath_overrides_runpath=yes
15047    ;;
15048  freebsd3.[01]* | freebsdelf3.[01]*)
15049    shlibpath_overrides_runpath=yes
15050    hardcode_into_libs=yes
15051    ;;
15052  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15053  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15054    shlibpath_overrides_runpath=no
15055    hardcode_into_libs=yes
15056    ;;
15057  *) # from 4.6 on, and DragonFly
15058    shlibpath_overrides_runpath=yes
15059    hardcode_into_libs=yes
15060    ;;
15061  esac
15062  ;;
15063
15064gnu*)
15065  version_type=linux
15066  need_lib_prefix=no
15067  need_version=no
15068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15069  soname_spec='${libname}${release}${shared_ext}$major'
15070  shlibpath_var=LD_LIBRARY_PATH
15071  hardcode_into_libs=yes
15072  ;;
15073
15074hpux9* | hpux10* | hpux11*)
15075  # Give a soname corresponding to the major version so that dld.sl refuses to
15076  # link against other versions.
15077  version_type=sunos
15078  need_lib_prefix=no
15079  need_version=no
15080  case $host_cpu in
15081  ia64*)
15082    shrext_cmds='.so'
15083    hardcode_into_libs=yes
15084    dynamic_linker="$host_os dld.so"
15085    shlibpath_var=LD_LIBRARY_PATH
15086    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15087    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15088    soname_spec='${libname}${release}${shared_ext}$major'
15089    if test "X$HPUX_IA64_MODE" = X32; then
15090      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15091    else
15092      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15093    fi
15094    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15095    ;;
15096   hppa*64*)
15097     shrext_cmds='.sl'
15098     hardcode_into_libs=yes
15099     dynamic_linker="$host_os dld.sl"
15100     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15101     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103     soname_spec='${libname}${release}${shared_ext}$major'
15104     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15105     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15106     ;;
15107   *)
15108    shrext_cmds='.sl'
15109    dynamic_linker="$host_os dld.sl"
15110    shlibpath_var=SHLIB_PATH
15111    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15112    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113    soname_spec='${libname}${release}${shared_ext}$major'
15114    ;;
15115  esac
15116  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15117  postinstall_cmds='chmod 555 $lib'
15118  ;;
15119
15120interix[3-9]*)
15121  version_type=linux
15122  need_lib_prefix=no
15123  need_version=no
15124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15125  soname_spec='${libname}${release}${shared_ext}$major'
15126  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15127  shlibpath_var=LD_LIBRARY_PATH
15128  shlibpath_overrides_runpath=no
15129  hardcode_into_libs=yes
15130  ;;
15131
15132irix5* | irix6* | nonstopux*)
15133  case $host_os in
15134    nonstopux*) version_type=nonstopux ;;
15135    *)
15136	if test "$lt_cv_prog_gnu_ld" = yes; then
15137		version_type=linux
15138	else
15139		version_type=irix
15140	fi ;;
15141  esac
15142  need_lib_prefix=no
15143  need_version=no
15144  soname_spec='${libname}${release}${shared_ext}$major'
15145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15146  case $host_os in
15147  irix5* | nonstopux*)
15148    libsuff= shlibsuff=
15149    ;;
15150  *)
15151    case $LD in # libtool.m4 will add one of these switches to LD
15152    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15153      libsuff= shlibsuff= libmagic=32-bit;;
15154    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15155      libsuff=32 shlibsuff=N32 libmagic=N32;;
15156    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15157      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15158    *) libsuff= shlibsuff= libmagic=never-match;;
15159    esac
15160    ;;
15161  esac
15162  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15163  shlibpath_overrides_runpath=no
15164  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15165  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15166  hardcode_into_libs=yes
15167  ;;
15168
15169# No shared lib support for Linux oldld, aout, or coff.
15170linux*oldld* | linux*aout* | linux*coff*)
15171  dynamic_linker=no
15172  ;;
15173
15174# This must be Linux ELF.
15175linux* | k*bsd*-gnu)
15176  version_type=linux
15177  need_lib_prefix=no
15178  need_version=no
15179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15180  soname_spec='${libname}${release}${shared_ext}$major'
15181  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15182  shlibpath_var=LD_LIBRARY_PATH
15183  shlibpath_overrides_runpath=no
15184  # This implies no fast_install, which is unacceptable.
15185  # Some rework will be needed to allow for fast_install
15186  # before this can be enabled.
15187  hardcode_into_libs=yes
15188
15189  # Append ld.so.conf contents to the search path
15190  if test -f /etc/ld.so.conf; then
15191    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15192    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15193  fi
15194
15195  # We used to test for /lib/ld.so.1 and disable shared libraries on
15196  # powerpc, because MkLinux only supported shared libraries with the
15197  # GNU dynamic linker.  Since this was broken with cross compilers,
15198  # most powerpc-linux boxes support dynamic linking these days and
15199  # people can always --disable-shared, the test was removed, and we
15200  # assume the GNU/Linux dynamic linker is in use.
15201  dynamic_linker='GNU/Linux ld.so'
15202  ;;
15203
15204netbsd*)
15205  version_type=sunos
15206  need_lib_prefix=no
15207  need_version=no
15208  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15209    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15210    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15211    dynamic_linker='NetBSD (a.out) ld.so'
15212  else
15213    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15214    soname_spec='${libname}${release}${shared_ext}$major'
15215    dynamic_linker='NetBSD ld.elf_so'
15216  fi
15217  shlibpath_var=LD_LIBRARY_PATH
15218  shlibpath_overrides_runpath=yes
15219  hardcode_into_libs=yes
15220  ;;
15221
15222newsos6)
15223  version_type=linux
15224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225  shlibpath_var=LD_LIBRARY_PATH
15226  shlibpath_overrides_runpath=yes
15227  ;;
15228
15229nto-qnx*)
15230  version_type=linux
15231  need_lib_prefix=no
15232  need_version=no
15233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234  soname_spec='${libname}${release}${shared_ext}$major'
15235  shlibpath_var=LD_LIBRARY_PATH
15236  shlibpath_overrides_runpath=yes
15237  ;;
15238
15239openbsd*)
15240  version_type=sunos
15241  sys_lib_dlsearch_path_spec="/usr/lib"
15242  need_lib_prefix=no
15243  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15244  case $host_os in
15245    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15246    *)                         need_version=no  ;;
15247  esac
15248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15249  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15250  shlibpath_var=LD_LIBRARY_PATH
15251  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15252    case $host_os in
15253      openbsd2.[89] | openbsd2.[89].*)
15254	shlibpath_overrides_runpath=no
15255	;;
15256      *)
15257	shlibpath_overrides_runpath=yes
15258	;;
15259      esac
15260  else
15261    shlibpath_overrides_runpath=yes
15262  fi
15263  ;;
15264
15265os2*)
15266  libname_spec='$name'
15267  shrext_cmds=".dll"
15268  need_lib_prefix=no
15269  library_names_spec='$libname${shared_ext} $libname.a'
15270  dynamic_linker='OS/2 ld.exe'
15271  shlibpath_var=LIBPATH
15272  ;;
15273
15274osf3* | osf4* | osf5*)
15275  version_type=osf
15276  need_lib_prefix=no
15277  need_version=no
15278  soname_spec='${libname}${release}${shared_ext}$major'
15279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280  shlibpath_var=LD_LIBRARY_PATH
15281  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15282  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15283  ;;
15284
15285rdos*)
15286  dynamic_linker=no
15287  ;;
15288
15289solaris*)
15290  version_type=linux
15291  need_lib_prefix=no
15292  need_version=no
15293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294  soname_spec='${libname}${release}${shared_ext}$major'
15295  shlibpath_var=LD_LIBRARY_PATH
15296  shlibpath_overrides_runpath=yes
15297  hardcode_into_libs=yes
15298  # ldd complains unless libraries are executable
15299  postinstall_cmds='chmod +x $lib'
15300  ;;
15301
15302sunos4*)
15303  version_type=sunos
15304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15305  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15306  shlibpath_var=LD_LIBRARY_PATH
15307  shlibpath_overrides_runpath=yes
15308  if test "$with_gnu_ld" = yes; then
15309    need_lib_prefix=no
15310  fi
15311  need_version=yes
15312  ;;
15313
15314sysv4 | sysv4.3*)
15315  version_type=linux
15316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15317  soname_spec='${libname}${release}${shared_ext}$major'
15318  shlibpath_var=LD_LIBRARY_PATH
15319  case $host_vendor in
15320    sni)
15321      shlibpath_overrides_runpath=no
15322      need_lib_prefix=no
15323      export_dynamic_flag_spec='${wl}-Blargedynsym'
15324      runpath_var=LD_RUN_PATH
15325      ;;
15326    siemens)
15327      need_lib_prefix=no
15328      ;;
15329    motorola)
15330      need_lib_prefix=no
15331      need_version=no
15332      shlibpath_overrides_runpath=no
15333      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15334      ;;
15335  esac
15336  ;;
15337
15338sysv4*MP*)
15339  if test -d /usr/nec ;then
15340    version_type=linux
15341    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15342    soname_spec='$libname${shared_ext}.$major'
15343    shlibpath_var=LD_LIBRARY_PATH
15344  fi
15345  ;;
15346
15347sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15348  version_type=freebsd-elf
15349  need_lib_prefix=no
15350  need_version=no
15351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15352  soname_spec='${libname}${release}${shared_ext}$major'
15353  shlibpath_var=LD_LIBRARY_PATH
15354  hardcode_into_libs=yes
15355  if test "$with_gnu_ld" = yes; then
15356    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15357    shlibpath_overrides_runpath=no
15358  else
15359    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15360    shlibpath_overrides_runpath=yes
15361    case $host_os in
15362      sco3.2v5*)
15363        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15364	;;
15365    esac
15366  fi
15367  sys_lib_dlsearch_path_spec='/usr/lib'
15368  ;;
15369
15370uts4*)
15371  version_type=linux
15372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373  soname_spec='${libname}${release}${shared_ext}$major'
15374  shlibpath_var=LD_LIBRARY_PATH
15375  ;;
15376
15377*)
15378  dynamic_linker=no
15379  ;;
15380esac
15381echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15382echo "${ECHO_T}$dynamic_linker" >&6
15383test "$dynamic_linker" = no && can_build_shared=no
15384
15385if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15386  echo $ECHO_N "(cached) $ECHO_C" >&6
15387else
15388  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15389fi
15390
15391sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15392if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15393  echo $ECHO_N "(cached) $ECHO_C" >&6
15394else
15395  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15396fi
15397
15398sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15399
15400variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15401if test "$GCC" = yes; then
15402  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15403fi
15404
15405echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15406echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15407hardcode_action_F77=
15408if test -n "$hardcode_libdir_flag_spec_F77" || \
15409   test -n "$runpath_var_F77" || \
15410   test "X$hardcode_automatic_F77" = "Xyes" ; then
15411
15412  # We can hardcode non-existant directories.
15413  if test "$hardcode_direct_F77" != no &&
15414     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15415     # have to relink, otherwise we might link with an installed library
15416     # when we should be linking with a yet-to-be-installed one
15417     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15418     test "$hardcode_minus_L_F77" != no; then
15419    # Linking always hardcodes the temporary library directory.
15420    hardcode_action_F77=relink
15421  else
15422    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15423    hardcode_action_F77=immediate
15424  fi
15425else
15426  # We cannot hardcode anything, or else we can only hardcode existing
15427  # directories.
15428  hardcode_action_F77=unsupported
15429fi
15430echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15431echo "${ECHO_T}$hardcode_action_F77" >&6
15432
15433if test "$hardcode_action_F77" = relink; then
15434  # Fast installation is not supported
15435  enable_fast_install=no
15436elif test "$shlibpath_overrides_runpath" = yes ||
15437     test "$enable_shared" = no; then
15438  # Fast installation is not necessary
15439  enable_fast_install=needless
15440fi
15441
15442
15443# The else clause should only fire when bootstrapping the
15444# libtool distribution, otherwise you forgot to ship ltmain.sh
15445# with your package, and you will get complaints that there are
15446# no rules to generate ltmain.sh.
15447if test -f "$ltmain"; then
15448  # See if we are running on zsh, and set the options which allow our commands through
15449  # without removal of \ escapes.
15450  if test -n "${ZSH_VERSION+set}" ; then
15451    setopt NO_GLOB_SUBST
15452  fi
15453  # Now quote all the things that may contain metacharacters while being
15454  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15455  # variables and quote the copies for generation of the libtool script.
15456  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15457    SED SHELL STRIP \
15458    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15459    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15460    deplibs_check_method reload_flag reload_cmds need_locks \
15461    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15462    lt_cv_sys_global_symbol_to_c_name_address \
15463    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15464    old_postinstall_cmds old_postuninstall_cmds \
15465    compiler_F77 \
15466    CC_F77 \
15467    LD_F77 \
15468    lt_prog_compiler_wl_F77 \
15469    lt_prog_compiler_pic_F77 \
15470    lt_prog_compiler_static_F77 \
15471    lt_prog_compiler_no_builtin_flag_F77 \
15472    export_dynamic_flag_spec_F77 \
15473    thread_safe_flag_spec_F77 \
15474    whole_archive_flag_spec_F77 \
15475    enable_shared_with_static_runtimes_F77 \
15476    old_archive_cmds_F77 \
15477    old_archive_from_new_cmds_F77 \
15478    predep_objects_F77 \
15479    postdep_objects_F77 \
15480    predeps_F77 \
15481    postdeps_F77 \
15482    compiler_lib_search_path_F77 \
15483    compiler_lib_search_dirs_F77 \
15484    archive_cmds_F77 \
15485    archive_expsym_cmds_F77 \
15486    postinstall_cmds_F77 \
15487    postuninstall_cmds_F77 \
15488    old_archive_from_expsyms_cmds_F77 \
15489    allow_undefined_flag_F77 \
15490    no_undefined_flag_F77 \
15491    export_symbols_cmds_F77 \
15492    hardcode_libdir_flag_spec_F77 \
15493    hardcode_libdir_flag_spec_ld_F77 \
15494    hardcode_libdir_separator_F77 \
15495    hardcode_automatic_F77 \
15496    module_cmds_F77 \
15497    module_expsym_cmds_F77 \
15498    lt_cv_prog_compiler_c_o_F77 \
15499    fix_srcfile_path_F77 \
15500    exclude_expsyms_F77 \
15501    include_expsyms_F77; do
15502
15503    case $var in
15504    old_archive_cmds_F77 | \
15505    old_archive_from_new_cmds_F77 | \
15506    archive_cmds_F77 | \
15507    archive_expsym_cmds_F77 | \
15508    module_cmds_F77 | \
15509    module_expsym_cmds_F77 | \
15510    old_archive_from_expsyms_cmds_F77 | \
15511    export_symbols_cmds_F77 | \
15512    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15513    postinstall_cmds | postuninstall_cmds | \
15514    old_postinstall_cmds | old_postuninstall_cmds | \
15515    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15516      # Double-quote double-evaled strings.
15517      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15518      ;;
15519    *)
15520      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15521      ;;
15522    esac
15523  done
15524
15525  case $lt_echo in
15526  *'\$0 --fallback-echo"')
15527    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15528    ;;
15529  esac
15530
15531cfgfile="$ofile"
15532
15533  cat <<__EOF__ >> "$cfgfile"
15534# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15535
15536# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15537
15538# Shell to use when invoking shell scripts.
15539SHELL=$lt_SHELL
15540
15541# Whether or not to build shared libraries.
15542build_libtool_libs=$enable_shared
15543
15544# Whether or not to build static libraries.
15545build_old_libs=$enable_static
15546
15547# Whether or not to add -lc for building shared libraries.
15548build_libtool_need_lc=$archive_cmds_need_lc_F77
15549
15550# Whether or not to disallow shared libs when runtime libs are static
15551allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15552
15553# Whether or not to optimize for fast installation.
15554fast_install=$enable_fast_install
15555
15556# The host system.
15557host_alias=$host_alias
15558host=$host
15559host_os=$host_os
15560
15561# The build system.
15562build_alias=$build_alias
15563build=$build
15564build_os=$build_os
15565
15566# An echo program that does not interpret backslashes.
15567echo=$lt_echo
15568
15569# The archiver.
15570AR=$lt_AR
15571AR_FLAGS=$lt_AR_FLAGS
15572
15573# A C compiler.
15574LTCC=$lt_LTCC
15575
15576# LTCC compiler flags.
15577LTCFLAGS=$lt_LTCFLAGS
15578
15579# A language-specific compiler.
15580CC=$lt_compiler_F77
15581
15582# Is the compiler the GNU C compiler?
15583with_gcc=$GCC_F77
15584
15585# An ERE matcher.
15586EGREP=$lt_EGREP
15587
15588# The linker used to build libraries.
15589LD=$lt_LD_F77
15590
15591# Whether we need hard or soft links.
15592LN_S=$lt_LN_S
15593
15594# A BSD-compatible nm program.
15595NM=$lt_NM
15596
15597# A symbol stripping program
15598STRIP=$lt_STRIP
15599
15600# Used to examine libraries when file_magic_cmd begins "file"
15601MAGIC_CMD=$MAGIC_CMD
15602
15603# Used on cygwin: DLL creation program.
15604DLLTOOL="$DLLTOOL"
15605
15606# Used on cygwin: object dumper.
15607OBJDUMP="$OBJDUMP"
15608
15609# Used on cygwin: assembler.
15610AS="$AS"
15611
15612# The name of the directory that contains temporary libtool files.
15613objdir=$objdir
15614
15615# How to create reloadable object files.
15616reload_flag=$lt_reload_flag
15617reload_cmds=$lt_reload_cmds
15618
15619# How to pass a linker flag through the compiler.
15620wl=$lt_lt_prog_compiler_wl_F77
15621
15622# Object file suffix (normally "o").
15623objext="$ac_objext"
15624
15625# Old archive suffix (normally "a").
15626libext="$libext"
15627
15628# Shared library suffix (normally ".so").
15629shrext_cmds='$shrext_cmds'
15630
15631# Executable file suffix (normally "").
15632exeext="$exeext"
15633
15634# Additional compiler flags for building library objects.
15635pic_flag=$lt_lt_prog_compiler_pic_F77
15636pic_mode=$pic_mode
15637
15638# What is the maximum length of a command?
15639max_cmd_len=$lt_cv_sys_max_cmd_len
15640
15641# Does compiler simultaneously support -c and -o options?
15642compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15643
15644# Must we lock files when doing compilation?
15645need_locks=$lt_need_locks
15646
15647# Do we need the lib prefix for modules?
15648need_lib_prefix=$need_lib_prefix
15649
15650# Do we need a version for libraries?
15651need_version=$need_version
15652
15653# Whether dlopen is supported.
15654dlopen_support=$enable_dlopen
15655
15656# Whether dlopen of programs is supported.
15657dlopen_self=$enable_dlopen_self
15658
15659# Whether dlopen of statically linked programs is supported.
15660dlopen_self_static=$enable_dlopen_self_static
15661
15662# Compiler flag to prevent dynamic linking.
15663link_static_flag=$lt_lt_prog_compiler_static_F77
15664
15665# Compiler flag to turn off builtin functions.
15666no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15667
15668# Compiler flag to allow reflexive dlopens.
15669export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15670
15671# Compiler flag to generate shared objects directly from archives.
15672whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15673
15674# Compiler flag to generate thread-safe objects.
15675thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15676
15677# Library versioning type.
15678version_type=$version_type
15679
15680# Format of library name prefix.
15681libname_spec=$lt_libname_spec
15682
15683# List of archive names.  First name is the real one, the rest are links.
15684# The last name is the one that the linker finds with -lNAME.
15685library_names_spec=$lt_library_names_spec
15686
15687# The coded name of the library, if different from the real name.
15688soname_spec=$lt_soname_spec
15689
15690# Commands used to build and install an old-style archive.
15691RANLIB=$lt_RANLIB
15692old_archive_cmds=$lt_old_archive_cmds_F77
15693old_postinstall_cmds=$lt_old_postinstall_cmds
15694old_postuninstall_cmds=$lt_old_postuninstall_cmds
15695
15696# Create an old-style archive from a shared archive.
15697old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15698
15699# Create a temporary old-style archive to link instead of a shared archive.
15700old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15701
15702# Commands used to build and install a shared archive.
15703archive_cmds=$lt_archive_cmds_F77
15704archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15705postinstall_cmds=$lt_postinstall_cmds
15706postuninstall_cmds=$lt_postuninstall_cmds
15707
15708# Commands used to build a loadable module (assumed same as above if empty)
15709module_cmds=$lt_module_cmds_F77
15710module_expsym_cmds=$lt_module_expsym_cmds_F77
15711
15712# Commands to strip libraries.
15713old_striplib=$lt_old_striplib
15714striplib=$lt_striplib
15715
15716# Dependencies to place before the objects being linked to create a
15717# shared library.
15718predep_objects=$lt_predep_objects_F77
15719
15720# Dependencies to place after the objects being linked to create a
15721# shared library.
15722postdep_objects=$lt_postdep_objects_F77
15723
15724# Dependencies to place before the objects being linked to create a
15725# shared library.
15726predeps=$lt_predeps_F77
15727
15728# Dependencies to place after the objects being linked to create a
15729# shared library.
15730postdeps=$lt_postdeps_F77
15731
15732# The directories searched by this compiler when creating a shared
15733# library
15734compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15735
15736# The library search path used internally by the compiler when linking
15737# a shared library.
15738compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15739
15740# Method to check whether dependent libraries are shared objects.
15741deplibs_check_method=$lt_deplibs_check_method
15742
15743# Command to use when deplibs_check_method == file_magic.
15744file_magic_cmd=$lt_file_magic_cmd
15745
15746# Flag that allows shared libraries with undefined symbols to be built.
15747allow_undefined_flag=$lt_allow_undefined_flag_F77
15748
15749# Flag that forces no undefined symbols.
15750no_undefined_flag=$lt_no_undefined_flag_F77
15751
15752# Commands used to finish a libtool library installation in a directory.
15753finish_cmds=$lt_finish_cmds
15754
15755# Same as above, but a single script fragment to be evaled but not shown.
15756finish_eval=$lt_finish_eval
15757
15758# Take the output of nm and produce a listing of raw symbols and C names.
15759global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15760
15761# Transform the output of nm in a proper C declaration
15762global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15763
15764# Transform the output of nm in a C name address pair
15765global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15766
15767# This is the shared library runtime path variable.
15768runpath_var=$runpath_var
15769
15770# This is the shared library path variable.
15771shlibpath_var=$shlibpath_var
15772
15773# Is shlibpath searched before the hard-coded library search path?
15774shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15775
15776# How to hardcode a shared library path into an executable.
15777hardcode_action=$hardcode_action_F77
15778
15779# Whether we should hardcode library paths into libraries.
15780hardcode_into_libs=$hardcode_into_libs
15781
15782# Flag to hardcode \$libdir into a binary during linking.
15783# This must work even if \$libdir does not exist.
15784hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15785
15786# If ld is used when linking, flag to hardcode \$libdir into
15787# a binary during linking. This must work even if \$libdir does
15788# not exist.
15789hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15790
15791# Whether we need a single -rpath flag with a separated argument.
15792hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15793
15794# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15795# resulting binary.
15796hardcode_direct=$hardcode_direct_F77
15797
15798# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15799# resulting binary.
15800hardcode_minus_L=$hardcode_minus_L_F77
15801
15802# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15803# the resulting binary.
15804hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15805
15806# Set to yes if building a shared library automatically hardcodes DIR into the library
15807# and all subsequent libraries and executables linked against it.
15808hardcode_automatic=$hardcode_automatic_F77
15809
15810# Variables whose values should be saved in libtool wrapper scripts and
15811# restored at relink time.
15812variables_saved_for_relink="$variables_saved_for_relink"
15813
15814# Whether libtool must link a program against all its dependency libraries.
15815link_all_deplibs=$link_all_deplibs_F77
15816
15817# Compile-time system search path for libraries
15818sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15819
15820# Run-time system search path for libraries
15821sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15822
15823# Fix the shell variable \$srcfile for the compiler.
15824fix_srcfile_path=$lt_fix_srcfile_path
15825
15826# Set to yes if exported symbols are required.
15827always_export_symbols=$always_export_symbols_F77
15828
15829# The commands to list exported symbols.
15830export_symbols_cmds=$lt_export_symbols_cmds_F77
15831
15832# The commands to extract the exported symbol list from a shared archive.
15833extract_expsyms_cmds=$lt_extract_expsyms_cmds
15834
15835# Symbols that should not be listed in the preloaded symbols.
15836exclude_expsyms=$lt_exclude_expsyms_F77
15837
15838# Symbols that must always be exported.
15839include_expsyms=$lt_include_expsyms_F77
15840
15841# ### END LIBTOOL TAG CONFIG: $tagname
15842
15843__EOF__
15844
15845
15846else
15847  # If there is no Makefile yet, we rely on a make rule to execute
15848  # `config.status --recheck' to rerun these tests and create the
15849  # libtool script then.
15850  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15851  if test -f "$ltmain_in"; then
15852    test -f Makefile && make "$ltmain"
15853  fi
15854fi
15855
15856
15857ac_ext=c
15858ac_cpp='$CPP $CPPFLAGS'
15859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15861ac_compiler_gnu=$ac_cv_c_compiler_gnu
15862
15863CC="$lt_save_CC"
15864
15865	else
15866	  tagname=""
15867	fi
15868	;;
15869
15870      GCJ)
15871	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15872
15873
15874
15875# Source file extension for Java test sources.
15876ac_ext=java
15877
15878# Object file extension for compiled Java test sources.
15879objext=o
15880objext_GCJ=$objext
15881
15882# Code to be used in simple compile tests
15883lt_simple_compile_test_code="class foo {}"
15884
15885# Code to be used in simple link tests
15886lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15887
15888# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15889
15890# If no C compiler was specified, use CC.
15891LTCC=${LTCC-"$CC"}
15892
15893# If no C compiler flags were specified, use CFLAGS.
15894LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15895
15896# Allow CC to be a program name with arguments.
15897compiler=$CC
15898
15899
15900# save warnings/boilerplate of simple test code
15901ac_outfile=conftest.$ac_objext
15902echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15903eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15904_lt_compiler_boilerplate=`cat conftest.err`
15905$rm conftest*
15906
15907ac_outfile=conftest.$ac_objext
15908echo "$lt_simple_link_test_code" >conftest.$ac_ext
15909eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15910_lt_linker_boilerplate=`cat conftest.err`
15911$rm -r conftest*
15912
15913
15914# Allow CC to be a program name with arguments.
15915lt_save_CC="$CC"
15916CC=${GCJ-"gcj"}
15917compiler=$CC
15918compiler_GCJ=$CC
15919for cc_temp in $compiler""; do
15920  case $cc_temp in
15921    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15922    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15923    \-*) ;;
15924    *) break;;
15925  esac
15926done
15927cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15928
15929
15930# GCJ did not exist at the time GCC didn't implicitly link libc in.
15931archive_cmds_need_lc_GCJ=no
15932
15933old_archive_cmds_GCJ=$old_archive_cmds
15934
15935
15936lt_prog_compiler_no_builtin_flag_GCJ=
15937
15938if test "$GCC" = yes; then
15939  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15940
15941
15942echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15943echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15944if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15945  echo $ECHO_N "(cached) $ECHO_C" >&6
15946else
15947  lt_cv_prog_compiler_rtti_exceptions=no
15948  ac_outfile=conftest.$ac_objext
15949   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15950   lt_compiler_flag="-fno-rtti -fno-exceptions"
15951   # Insert the option either (1) after the last *FLAGS variable, or
15952   # (2) before a word containing "conftest.", or (3) at the end.
15953   # Note that $ac_compile itself does not contain backslashes and begins
15954   # with a dollar sign (not a hyphen), so the echo should work correctly.
15955   # The option is referenced via a variable to avoid confusing sed.
15956   lt_compile=`echo "$ac_compile" | $SED \
15957   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15958   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15959   -e 's:$: $lt_compiler_flag:'`
15960   (eval echo "\"\$as_me:15960: $lt_compile\"" >&5)
15961   (eval "$lt_compile" 2>conftest.err)
15962   ac_status=$?
15963   cat conftest.err >&5
15964   echo "$as_me:15964: \$? = $ac_status" >&5
15965   if (exit $ac_status) && test -s "$ac_outfile"; then
15966     # The compiler can only warn and ignore the option if not recognized
15967     # So say no if there are warnings other than the usual output.
15968     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15969     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15970     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15971       lt_cv_prog_compiler_rtti_exceptions=yes
15972     fi
15973   fi
15974   $rm conftest*
15975
15976fi
15977echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15978echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15979
15980if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15981    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15982else
15983    :
15984fi
15985
15986fi
15987
15988lt_prog_compiler_wl_GCJ=
15989lt_prog_compiler_pic_GCJ=
15990lt_prog_compiler_static_GCJ=
15991
15992echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15993echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15994
15995  if test "$GCC" = yes; then
15996    lt_prog_compiler_wl_GCJ='-Wl,'
15997    lt_prog_compiler_static_GCJ='-static'
15998
15999    case $host_os in
16000      aix*)
16001      # All AIX code is PIC.
16002      if test "$host_cpu" = ia64; then
16003	# AIX 5 now supports IA64 processor
16004	lt_prog_compiler_static_GCJ='-Bstatic'
16005      fi
16006      ;;
16007
16008    amigaos*)
16009      # FIXME: we need at least 68020 code to build shared libraries, but
16010      # adding the `-m68020' flag to GCC prevents building anything better,
16011      # like `-m68040'.
16012      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16013      ;;
16014
16015    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16016      # PIC is the default for these OSes.
16017      ;;
16018
16019    mingw* | cygwin* | pw32* | os2*)
16020      # This hack is so that the source file can tell whether it is being
16021      # built for inclusion in a dll (and should export symbols for example).
16022      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16023      # (--disable-auto-import) libraries
16024
16025      ;;
16026
16027    darwin* | rhapsody*)
16028      # PIC is the default on this platform
16029      # Common symbols not allowed in MH_DYLIB files
16030      lt_prog_compiler_pic_GCJ='-fno-common'
16031      ;;
16032
16033    interix[3-9]*)
16034      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16035      # Instead, we relocate shared libraries at runtime.
16036      ;;
16037
16038    msdosdjgpp*)
16039      # Just because we use GCC doesn't mean we suddenly get shared libraries
16040      # on systems that don't support them.
16041      lt_prog_compiler_can_build_shared_GCJ=no
16042      enable_shared=no
16043      ;;
16044
16045    sysv4*MP*)
16046      if test -d /usr/nec; then
16047	lt_prog_compiler_pic_GCJ=-Kconform_pic
16048      fi
16049      ;;
16050
16051    hpux*)
16052      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16053      # not for PA HP-UX.
16054      case $host_cpu in
16055      hppa*64*|ia64*)
16056	# +Z the default
16057	;;
16058      *)
16059	lt_prog_compiler_pic_GCJ='-fPIC'
16060	;;
16061      esac
16062      ;;
16063
16064    *)
16065      lt_prog_compiler_pic_GCJ='-fPIC'
16066      ;;
16067    esac
16068  else
16069    # PORTME Check for flag to pass linker flags through the system compiler.
16070    case $host_os in
16071    aix*)
16072      lt_prog_compiler_wl_GCJ='-Wl,'
16073      if test "$host_cpu" = ia64; then
16074	# AIX 5 now supports IA64 processor
16075	lt_prog_compiler_static_GCJ='-Bstatic'
16076      else
16077	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16078      fi
16079      ;;
16080      darwin*)
16081        # PIC is the default on this platform
16082        # Common symbols not allowed in MH_DYLIB files
16083       case $cc_basename in
16084         xlc*)
16085         lt_prog_compiler_pic_GCJ='-qnocommon'
16086         lt_prog_compiler_wl_GCJ='-Wl,'
16087         ;;
16088       esac
16089       ;;
16090
16091    mingw* | cygwin* | pw32* | os2*)
16092      # This hack is so that the source file can tell whether it is being
16093      # built for inclusion in a dll (and should export symbols for example).
16094
16095      ;;
16096
16097    hpux9* | hpux10* | hpux11*)
16098      lt_prog_compiler_wl_GCJ='-Wl,'
16099      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16100      # not for PA HP-UX.
16101      case $host_cpu in
16102      hppa*64*|ia64*)
16103	# +Z the default
16104	;;
16105      *)
16106	lt_prog_compiler_pic_GCJ='+Z'
16107	;;
16108      esac
16109      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16110      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16111      ;;
16112
16113    irix5* | irix6* | nonstopux*)
16114      lt_prog_compiler_wl_GCJ='-Wl,'
16115      # PIC (with -KPIC) is the default.
16116      lt_prog_compiler_static_GCJ='-non_shared'
16117      ;;
16118
16119    newsos6)
16120      lt_prog_compiler_pic_GCJ='-KPIC'
16121      lt_prog_compiler_static_GCJ='-Bstatic'
16122      ;;
16123
16124    linux* | k*bsd*-gnu)
16125      case $cc_basename in
16126      icc* | ecc*)
16127	lt_prog_compiler_wl_GCJ='-Wl,'
16128	lt_prog_compiler_pic_GCJ='-KPIC'
16129	lt_prog_compiler_static_GCJ='-static'
16130        ;;
16131      pgcc* | pgf77* | pgf90* | pgf95*)
16132        # Portland Group compilers (*not* the Pentium gcc compiler,
16133	# which looks to be a dead project)
16134	lt_prog_compiler_wl_GCJ='-Wl,'
16135	lt_prog_compiler_pic_GCJ='-fpic'
16136	lt_prog_compiler_static_GCJ='-Bstatic'
16137        ;;
16138      ccc*)
16139        lt_prog_compiler_wl_GCJ='-Wl,'
16140        # All Alpha code is PIC.
16141        lt_prog_compiler_static_GCJ='-non_shared'
16142        ;;
16143      *)
16144        case `$CC -V 2>&1 | sed 5q` in
16145	*Sun\ C*)
16146	  # Sun C 5.9
16147	  lt_prog_compiler_pic_GCJ='-KPIC'
16148	  lt_prog_compiler_static_GCJ='-Bstatic'
16149	  lt_prog_compiler_wl_GCJ='-Wl,'
16150	  ;;
16151	*Sun\ F*)
16152	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16153	  lt_prog_compiler_pic_GCJ='-KPIC'
16154	  lt_prog_compiler_static_GCJ='-Bstatic'
16155	  lt_prog_compiler_wl_GCJ=''
16156	  ;;
16157	esac
16158	;;
16159      esac
16160      ;;
16161
16162    osf3* | osf4* | osf5*)
16163      lt_prog_compiler_wl_GCJ='-Wl,'
16164      # All OSF/1 code is PIC.
16165      lt_prog_compiler_static_GCJ='-non_shared'
16166      ;;
16167
16168    rdos*)
16169      lt_prog_compiler_static_GCJ='-non_shared'
16170      ;;
16171
16172    solaris*)
16173      lt_prog_compiler_pic_GCJ='-KPIC'
16174      lt_prog_compiler_static_GCJ='-Bstatic'
16175      case $cc_basename in
16176      f77* | f90* | f95*)
16177	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16178      *)
16179	lt_prog_compiler_wl_GCJ='-Wl,';;
16180      esac
16181      ;;
16182
16183    sunos4*)
16184      lt_prog_compiler_wl_GCJ='-Qoption ld '
16185      lt_prog_compiler_pic_GCJ='-PIC'
16186      lt_prog_compiler_static_GCJ='-Bstatic'
16187      ;;
16188
16189    sysv4 | sysv4.2uw2* | sysv4.3*)
16190      lt_prog_compiler_wl_GCJ='-Wl,'
16191      lt_prog_compiler_pic_GCJ='-KPIC'
16192      lt_prog_compiler_static_GCJ='-Bstatic'
16193      ;;
16194
16195    sysv4*MP*)
16196      if test -d /usr/nec ;then
16197	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16198	lt_prog_compiler_static_GCJ='-Bstatic'
16199      fi
16200      ;;
16201
16202    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16203      lt_prog_compiler_wl_GCJ='-Wl,'
16204      lt_prog_compiler_pic_GCJ='-KPIC'
16205      lt_prog_compiler_static_GCJ='-Bstatic'
16206      ;;
16207
16208    unicos*)
16209      lt_prog_compiler_wl_GCJ='-Wl,'
16210      lt_prog_compiler_can_build_shared_GCJ=no
16211      ;;
16212
16213    uts4*)
16214      lt_prog_compiler_pic_GCJ='-pic'
16215      lt_prog_compiler_static_GCJ='-Bstatic'
16216      ;;
16217
16218    *)
16219      lt_prog_compiler_can_build_shared_GCJ=no
16220      ;;
16221    esac
16222  fi
16223
16224echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16225echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16226
16227#
16228# Check to make sure the PIC flag actually works.
16229#
16230if test -n "$lt_prog_compiler_pic_GCJ"; then
16231
16232echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16233echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16234if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16235  echo $ECHO_N "(cached) $ECHO_C" >&6
16236else
16237  lt_cv_prog_compiler_pic_works_GCJ=no
16238  ac_outfile=conftest.$ac_objext
16239   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16240   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16241   # Insert the option either (1) after the last *FLAGS variable, or
16242   # (2) before a word containing "conftest.", or (3) at the end.
16243   # Note that $ac_compile itself does not contain backslashes and begins
16244   # with a dollar sign (not a hyphen), so the echo should work correctly.
16245   # The option is referenced via a variable to avoid confusing sed.
16246   lt_compile=`echo "$ac_compile" | $SED \
16247   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16248   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16249   -e 's:$: $lt_compiler_flag:'`
16250   (eval echo "\"\$as_me:16250: $lt_compile\"" >&5)
16251   (eval "$lt_compile" 2>conftest.err)
16252   ac_status=$?
16253   cat conftest.err >&5
16254   echo "$as_me:16254: \$? = $ac_status" >&5
16255   if (exit $ac_status) && test -s "$ac_outfile"; then
16256     # The compiler can only warn and ignore the option if not recognized
16257     # So say no if there are warnings other than the usual output.
16258     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16259     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16260     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16261       lt_cv_prog_compiler_pic_works_GCJ=yes
16262     fi
16263   fi
16264   $rm conftest*
16265
16266fi
16267echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16268echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6
16269
16270if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16271    case $lt_prog_compiler_pic_GCJ in
16272     "" | " "*) ;;
16273     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16274     esac
16275else
16276    lt_prog_compiler_pic_GCJ=
16277     lt_prog_compiler_can_build_shared_GCJ=no
16278fi
16279
16280fi
16281case $host_os in
16282  # For platforms which do not support PIC, -DPIC is meaningless:
16283  *djgpp*)
16284    lt_prog_compiler_pic_GCJ=
16285    ;;
16286  *)
16287    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16288    ;;
16289esac
16290
16291#
16292# Check to make sure the static flag actually works.
16293#
16294wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16295echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16296echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16297if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16298  echo $ECHO_N "(cached) $ECHO_C" >&6
16299else
16300  lt_cv_prog_compiler_static_works_GCJ=no
16301   save_LDFLAGS="$LDFLAGS"
16302   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16303   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16304   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16305     # The linker can only warn and ignore the option if not recognized
16306     # So say no if there are warnings
16307     if test -s conftest.err; then
16308       # Append any errors to the config.log.
16309       cat conftest.err 1>&5
16310       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16311       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16312       if diff conftest.exp conftest.er2 >/dev/null; then
16313         lt_cv_prog_compiler_static_works_GCJ=yes
16314       fi
16315     else
16316       lt_cv_prog_compiler_static_works_GCJ=yes
16317     fi
16318   fi
16319   $rm -r conftest*
16320   LDFLAGS="$save_LDFLAGS"
16321
16322fi
16323echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16324echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6
16325
16326if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16327    :
16328else
16329    lt_prog_compiler_static_GCJ=
16330fi
16331
16332
16333echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16334echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16335if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16336  echo $ECHO_N "(cached) $ECHO_C" >&6
16337else
16338  lt_cv_prog_compiler_c_o_GCJ=no
16339   $rm -r conftest 2>/dev/null
16340   mkdir conftest
16341   cd conftest
16342   mkdir out
16343   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16344
16345   lt_compiler_flag="-o out/conftest2.$ac_objext"
16346   # Insert the option either (1) after the last *FLAGS variable, or
16347   # (2) before a word containing "conftest.", or (3) at the end.
16348   # Note that $ac_compile itself does not contain backslashes and begins
16349   # with a dollar sign (not a hyphen), so the echo should work correctly.
16350   lt_compile=`echo "$ac_compile" | $SED \
16351   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16352   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16353   -e 's:$: $lt_compiler_flag:'`
16354   (eval echo "\"\$as_me:16354: $lt_compile\"" >&5)
16355   (eval "$lt_compile" 2>out/conftest.err)
16356   ac_status=$?
16357   cat out/conftest.err >&5
16358   echo "$as_me:16358: \$? = $ac_status" >&5
16359   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16360   then
16361     # The compiler can only warn and ignore the option if not recognized
16362     # So say no if there are warnings
16363     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16364     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16365     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16366       lt_cv_prog_compiler_c_o_GCJ=yes
16367     fi
16368   fi
16369   chmod u+w . 2>&5
16370   $rm conftest*
16371   # SGI C++ compiler will create directory out/ii_files/ for
16372   # template instantiation
16373   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16374   $rm out/* && rmdir out
16375   cd ..
16376   rmdir conftest
16377   $rm conftest*
16378
16379fi
16380echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16381echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16382
16383
16384hard_links="nottested"
16385if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16386  # do not overwrite the value of need_locks provided by the user
16387  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16388echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16389  hard_links=yes
16390  $rm conftest*
16391  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16392  touch conftest.a
16393  ln conftest.a conftest.b 2>&5 || hard_links=no
16394  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16395  echo "$as_me:$LINENO: result: $hard_links" >&5
16396echo "${ECHO_T}$hard_links" >&6
16397  if test "$hard_links" = no; then
16398    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16399echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16400    need_locks=warn
16401  fi
16402else
16403  need_locks=no
16404fi
16405
16406echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16407echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16408
16409  runpath_var=
16410  allow_undefined_flag_GCJ=
16411  enable_shared_with_static_runtimes_GCJ=no
16412  archive_cmds_GCJ=
16413  archive_expsym_cmds_GCJ=
16414  old_archive_From_new_cmds_GCJ=
16415  old_archive_from_expsyms_cmds_GCJ=
16416  export_dynamic_flag_spec_GCJ=
16417  whole_archive_flag_spec_GCJ=
16418  thread_safe_flag_spec_GCJ=
16419  hardcode_libdir_flag_spec_GCJ=
16420  hardcode_libdir_flag_spec_ld_GCJ=
16421  hardcode_libdir_separator_GCJ=
16422  hardcode_direct_GCJ=no
16423  hardcode_minus_L_GCJ=no
16424  hardcode_shlibpath_var_GCJ=unsupported
16425  link_all_deplibs_GCJ=unknown
16426  hardcode_automatic_GCJ=no
16427  module_cmds_GCJ=
16428  module_expsym_cmds_GCJ=
16429  always_export_symbols_GCJ=no
16430  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16431  # include_expsyms should be a list of space-separated symbols to be *always*
16432  # included in the symbol list
16433  include_expsyms_GCJ=
16434  # exclude_expsyms can be an extended regexp of symbols to exclude
16435  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16436  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16437  # as well as any symbol that contains `d'.
16438  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16439  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16440  # platforms (ab)use it in PIC code, but their linkers get confused if
16441  # the symbol is explicitly referenced.  Since portable code cannot
16442  # rely on this symbol name, it's probably fine to never include it in
16443  # preloaded symbol tables.
16444  # Exclude shared library initialization/finalization symbols.
16445  extract_expsyms_cmds=
16446  # Just being paranoid about ensuring that cc_basename is set.
16447  for cc_temp in $compiler""; do
16448  case $cc_temp in
16449    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16450    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16451    \-*) ;;
16452    *) break;;
16453  esac
16454done
16455cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16456
16457  case $host_os in
16458  cygwin* | mingw* | pw32*)
16459    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16460    # When not using gcc, we currently assume that we are using
16461    # Microsoft Visual C++.
16462    if test "$GCC" != yes; then
16463      with_gnu_ld=no
16464    fi
16465    ;;
16466  interix*)
16467    # we just hope/assume this is gcc and not c89 (= MSVC++)
16468    with_gnu_ld=yes
16469    ;;
16470  openbsd*)
16471    with_gnu_ld=no
16472    ;;
16473  esac
16474
16475  ld_shlibs_GCJ=yes
16476  if test "$with_gnu_ld" = yes; then
16477    # If archive_cmds runs LD, not CC, wlarc should be empty
16478    wlarc='${wl}'
16479
16480    # Set some defaults for GNU ld with shared library support. These
16481    # are reset later if shared libraries are not supported. Putting them
16482    # here allows them to be overridden if necessary.
16483    runpath_var=LD_RUN_PATH
16484    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16485    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16486    # ancient GNU ld didn't support --whole-archive et. al.
16487    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16488	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16489      else
16490  	whole_archive_flag_spec_GCJ=
16491    fi
16492    supports_anon_versioning=no
16493    case `$LD -v 2>/dev/null` in
16494      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16495      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16496      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16497      *\ 2.11.*) ;; # other 2.11 versions
16498      *) supports_anon_versioning=yes ;;
16499    esac
16500
16501    # See if GNU ld supports shared libraries.
16502    case $host_os in
16503    aix[3-9]*)
16504      # On AIX/PPC, the GNU linker is very broken
16505      if test "$host_cpu" != ia64; then
16506	ld_shlibs_GCJ=no
16507	cat <<EOF 1>&2
16508
16509*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16510*** to be unable to reliably create shared libraries on AIX.
16511*** Therefore, libtool is disabling shared libraries support.  If you
16512*** really care for shared libraries, you may want to modify your PATH
16513*** so that a non-GNU linker is found, and then restart.
16514
16515EOF
16516      fi
16517      ;;
16518
16519    amigaos*)
16520      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16521      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16522      hardcode_minus_L_GCJ=yes
16523
16524      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16525      # that the semantics of dynamic libraries on AmigaOS, at least up
16526      # to version 4, is to share data among multiple programs linked
16527      # with the same dynamic library.  Since this doesn't match the
16528      # behavior of shared libraries on other platforms, we can't use
16529      # them.
16530      ld_shlibs_GCJ=no
16531      ;;
16532
16533    beos*)
16534      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16535	allow_undefined_flag_GCJ=unsupported
16536	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16537	# support --undefined.  This deserves some investigation.  FIXME
16538	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16539      else
16540	ld_shlibs_GCJ=no
16541      fi
16542      ;;
16543
16544    cygwin* | mingw* | pw32*)
16545      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16546      # as there is no search path for DLLs.
16547      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16548      allow_undefined_flag_GCJ=unsupported
16549      always_export_symbols_GCJ=no
16550      enable_shared_with_static_runtimes_GCJ=yes
16551      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16552
16553      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16554        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16555	# If the export-symbols file already is a .def file (1st line
16556	# is EXPORTS), use it as is; otherwise, prepend...
16557	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16558	  cp $export_symbols $output_objdir/$soname.def;
16559	else
16560	  echo EXPORTS > $output_objdir/$soname.def;
16561	  cat $export_symbols >> $output_objdir/$soname.def;
16562	fi~
16563	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16564      else
16565	ld_shlibs_GCJ=no
16566      fi
16567      ;;
16568
16569    interix[3-9]*)
16570      hardcode_direct_GCJ=no
16571      hardcode_shlibpath_var_GCJ=no
16572      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16573      export_dynamic_flag_spec_GCJ='${wl}-E'
16574      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16575      # Instead, shared libraries are loaded at an image base (0x10000000 by
16576      # default) and relocated if they conflict, which is a slow very memory
16577      # consuming and fragmenting process.  To avoid this, we pick a random,
16578      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16579      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16580      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16581      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16582      ;;
16583
16584    gnu* | linux* | k*bsd*-gnu)
16585      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16586	tmp_addflag=
16587	case $cc_basename,$host_cpu in
16588	pgcc*)				# Portland Group C compiler
16589	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16590	  tmp_addflag=' $pic_flag'
16591	  ;;
16592	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16593	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16594	  tmp_addflag=' $pic_flag -Mnomain' ;;
16595	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16596	  tmp_addflag=' -i_dynamic' ;;
16597	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16598	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16599	ifc* | ifort*)			# Intel Fortran compiler
16600	  tmp_addflag=' -nofor_main' ;;
16601	esac
16602	case `$CC -V 2>&1 | sed 5q` in
16603	*Sun\ C*)			# Sun C 5.9
16604	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16605	  tmp_sharedflag='-G' ;;
16606	*Sun\ F*)			# Sun Fortran 8.3
16607	  tmp_sharedflag='-G' ;;
16608	*)
16609	  tmp_sharedflag='-shared' ;;
16610	esac
16611	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16612
16613	if test $supports_anon_versioning = yes; then
16614	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16615  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16616  $echo "local: *; };" >> $output_objdir/$libname.ver~
16617	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16618	fi
16619      else
16620	ld_shlibs_GCJ=no
16621      fi
16622      ;;
16623
16624    netbsd*)
16625      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16626	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16627	wlarc=
16628      else
16629	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16630	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16631      fi
16632      ;;
16633
16634    solaris*)
16635      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16636	ld_shlibs_GCJ=no
16637	cat <<EOF 1>&2
16638
16639*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16640*** create shared libraries on Solaris systems.  Therefore, libtool
16641*** is disabling shared libraries support.  We urge you to upgrade GNU
16642*** binutils to release 2.9.1 or newer.  Another option is to modify
16643*** your PATH or compiler configuration so that the native linker is
16644*** used, and then restart.
16645
16646EOF
16647      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16648	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16649	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16650      else
16651	ld_shlibs_GCJ=no
16652      fi
16653      ;;
16654
16655    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16656      case `$LD -v 2>&1` in
16657        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16658	ld_shlibs_GCJ=no
16659	cat <<_LT_EOF 1>&2
16660
16661*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16662*** reliably create shared libraries on SCO systems.  Therefore, libtool
16663*** is disabling shared libraries support.  We urge you to upgrade GNU
16664*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16665*** your PATH or compiler configuration so that the native linker is
16666*** used, and then restart.
16667
16668_LT_EOF
16669	;;
16670	*)
16671	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16672	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16673	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16674	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16675	  else
16676	    ld_shlibs_GCJ=no
16677	  fi
16678	;;
16679      esac
16680      ;;
16681
16682    sunos4*)
16683      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16684      wlarc=
16685      hardcode_direct_GCJ=yes
16686      hardcode_shlibpath_var_GCJ=no
16687      ;;
16688
16689    *)
16690      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16691	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16692	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16693      else
16694	ld_shlibs_GCJ=no
16695      fi
16696      ;;
16697    esac
16698
16699    if test "$ld_shlibs_GCJ" = no; then
16700      runpath_var=
16701      hardcode_libdir_flag_spec_GCJ=
16702      export_dynamic_flag_spec_GCJ=
16703      whole_archive_flag_spec_GCJ=
16704    fi
16705  else
16706    # PORTME fill in a description of your system's linker (not GNU ld)
16707    case $host_os in
16708    aix3*)
16709      allow_undefined_flag_GCJ=unsupported
16710      always_export_symbols_GCJ=yes
16711      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16712      # Note: this linker hardcodes the directories in LIBPATH if there
16713      # are no directories specified by -L.
16714      hardcode_minus_L_GCJ=yes
16715      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16716	# Neither direct hardcoding nor static linking is supported with a
16717	# broken collect2.
16718	hardcode_direct_GCJ=unsupported
16719      fi
16720      ;;
16721
16722    aix[4-9]*)
16723      if test "$host_cpu" = ia64; then
16724	# On IA64, the linker does run time linking by default, so we don't
16725	# have to do anything special.
16726	aix_use_runtimelinking=no
16727	exp_sym_flag='-Bexport'
16728	no_entry_flag=""
16729      else
16730	# If we're using GNU nm, then we don't want the "-C" option.
16731	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16732	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16733	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16734	else
16735	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16736	fi
16737	aix_use_runtimelinking=no
16738
16739	# Test if we are trying to use run time linking or normal
16740	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16741	# need to do runtime linking.
16742	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16743	  for ld_flag in $LDFLAGS; do
16744  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16745  	    aix_use_runtimelinking=yes
16746  	    break
16747  	  fi
16748	  done
16749	  ;;
16750	esac
16751
16752	exp_sym_flag='-bexport'
16753	no_entry_flag='-bnoentry'
16754      fi
16755
16756      # When large executables or shared objects are built, AIX ld can
16757      # have problems creating the table of contents.  If linking a library
16758      # or program results in "error TOC overflow" add -mminimal-toc to
16759      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16760      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16761
16762      archive_cmds_GCJ=''
16763      hardcode_direct_GCJ=yes
16764      hardcode_libdir_separator_GCJ=':'
16765      link_all_deplibs_GCJ=yes
16766
16767      if test "$GCC" = yes; then
16768	case $host_os in aix4.[012]|aix4.[012].*)
16769	# We only want to do this on AIX 4.2 and lower, the check
16770	# below for broken collect2 doesn't work under 4.3+
16771	  collect2name=`${CC} -print-prog-name=collect2`
16772	  if test -f "$collect2name" && \
16773  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16774	  then
16775  	  # We have reworked collect2
16776  	  :
16777	  else
16778  	  # We have old collect2
16779  	  hardcode_direct_GCJ=unsupported
16780  	  # It fails to find uninstalled libraries when the uninstalled
16781  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16782  	  # to unsupported forces relinking
16783  	  hardcode_minus_L_GCJ=yes
16784  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16785  	  hardcode_libdir_separator_GCJ=
16786	  fi
16787	  ;;
16788	esac
16789	shared_flag='-shared'
16790	if test "$aix_use_runtimelinking" = yes; then
16791	  shared_flag="$shared_flag "'${wl}-G'
16792	fi
16793      else
16794	# not using gcc
16795	if test "$host_cpu" = ia64; then
16796  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16797  	# chokes on -Wl,-G. The following line is correct:
16798	  shared_flag='-G'
16799	else
16800	  if test "$aix_use_runtimelinking" = yes; then
16801	    shared_flag='${wl}-G'
16802	  else
16803	    shared_flag='${wl}-bM:SRE'
16804	  fi
16805	fi
16806      fi
16807
16808      # It seems that -bexpall does not export symbols beginning with
16809      # underscore (_), so it is better to generate a list of symbols to export.
16810      always_export_symbols_GCJ=yes
16811      if test "$aix_use_runtimelinking" = yes; then
16812	# Warning - without using the other runtime loading flags (-brtl),
16813	# -berok will link without error, but may produce a broken library.
16814	allow_undefined_flag_GCJ='-berok'
16815       # Determine the default libpath from the value encoded in an empty executable.
16816       cat >conftest.$ac_ext <<_ACEOF
16817/* confdefs.h.  */
16818_ACEOF
16819cat confdefs.h >>conftest.$ac_ext
16820cat >>conftest.$ac_ext <<_ACEOF
16821/* end confdefs.h.  */
16822
16823int
16824main ()
16825{
16826
16827  ;
16828  return 0;
16829}
16830_ACEOF
16831rm -f conftest.$ac_objext conftest$ac_exeext
16832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16833  (eval $ac_link) 2>conftest.er1
16834  ac_status=$?
16835  grep -v '^ *+' conftest.er1 >conftest.err
16836  rm -f conftest.er1
16837  cat conftest.err >&5
16838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839  (exit $ac_status); } &&
16840	 { ac_try='test -z "$ac_c_werror_flag"
16841			 || test ! -s conftest.err'
16842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843  (eval $ac_try) 2>&5
16844  ac_status=$?
16845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846  (exit $ac_status); }; } &&
16847	 { ac_try='test -s conftest$ac_exeext'
16848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849  (eval $ac_try) 2>&5
16850  ac_status=$?
16851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852  (exit $ac_status); }; }; then
16853
16854lt_aix_libpath_sed='
16855    /Import File Strings/,/^$/ {
16856	/^0/ {
16857	    s/^0  *\(.*\)$/\1/
16858	    p
16859	}
16860    }'
16861aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16862# Check for a 64-bit object if we didn't find anything.
16863if test -z "$aix_libpath"; then
16864  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16865fi
16866else
16867  echo "$as_me: failed program was:" >&5
16868sed 's/^/| /' conftest.$ac_ext >&5
16869
16870fi
16871rm -f conftest.err conftest.$ac_objext \
16872      conftest$ac_exeext conftest.$ac_ext
16873if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16874
16875       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16876	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16877       else
16878	if test "$host_cpu" = ia64; then
16879	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16880	  allow_undefined_flag_GCJ="-z nodefs"
16881	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16882	else
16883	 # Determine the default libpath from the value encoded in an empty executable.
16884	 cat >conftest.$ac_ext <<_ACEOF
16885/* confdefs.h.  */
16886_ACEOF
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h.  */
16890
16891int
16892main ()
16893{
16894
16895  ;
16896  return 0;
16897}
16898_ACEOF
16899rm -f conftest.$ac_objext conftest$ac_exeext
16900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16901  (eval $ac_link) 2>conftest.er1
16902  ac_status=$?
16903  grep -v '^ *+' conftest.er1 >conftest.err
16904  rm -f conftest.er1
16905  cat conftest.err >&5
16906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907  (exit $ac_status); } &&
16908	 { ac_try='test -z "$ac_c_werror_flag"
16909			 || test ! -s conftest.err'
16910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911  (eval $ac_try) 2>&5
16912  ac_status=$?
16913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914  (exit $ac_status); }; } &&
16915	 { ac_try='test -s conftest$ac_exeext'
16916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917  (eval $ac_try) 2>&5
16918  ac_status=$?
16919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920  (exit $ac_status); }; }; then
16921
16922lt_aix_libpath_sed='
16923    /Import File Strings/,/^$/ {
16924	/^0/ {
16925	    s/^0  *\(.*\)$/\1/
16926	    p
16927	}
16928    }'
16929aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16930# Check for a 64-bit object if we didn't find anything.
16931if test -z "$aix_libpath"; then
16932  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16933fi
16934else
16935  echo "$as_me: failed program was:" >&5
16936sed 's/^/| /' conftest.$ac_ext >&5
16937
16938fi
16939rm -f conftest.err conftest.$ac_objext \
16940      conftest$ac_exeext conftest.$ac_ext
16941if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16942
16943	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16944	  # Warning - without using the other run time loading flags,
16945	  # -berok will link without error, but may produce a broken library.
16946	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16947	  allow_undefined_flag_GCJ=' ${wl}-berok'
16948	  # Exported symbols can be pulled into shared objects from archives
16949	  whole_archive_flag_spec_GCJ='$convenience'
16950	  archive_cmds_need_lc_GCJ=yes
16951	  # This is similar to how AIX traditionally builds its shared libraries.
16952	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16953	fi
16954      fi
16955      ;;
16956
16957    amigaos*)
16958      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16959      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16960      hardcode_minus_L_GCJ=yes
16961      # see comment about different semantics on the GNU ld section
16962      ld_shlibs_GCJ=no
16963      ;;
16964
16965    bsdi[45]*)
16966      export_dynamic_flag_spec_GCJ=-rdynamic
16967      ;;
16968
16969    cygwin* | mingw* | pw32*)
16970      # When not using gcc, we currently assume that we are using
16971      # Microsoft Visual C++.
16972      # hardcode_libdir_flag_spec is actually meaningless, as there is
16973      # no search path for DLLs.
16974      hardcode_libdir_flag_spec_GCJ=' '
16975      allow_undefined_flag_GCJ=unsupported
16976      # Tell ltmain to make .lib files, not .a files.
16977      libext=lib
16978      # Tell ltmain to make .dll files, not .so files.
16979      shrext_cmds=".dll"
16980      # FIXME: Setting linknames here is a bad hack.
16981      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16982      # The linker will automatically build a .lib file if we build a DLL.
16983      old_archive_From_new_cmds_GCJ='true'
16984      # FIXME: Should let the user specify the lib program.
16985      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16986      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16987      enable_shared_with_static_runtimes_GCJ=yes
16988      ;;
16989
16990    darwin* | rhapsody*)
16991      case $host_os in
16992        rhapsody* | darwin1.[012])
16993         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16994         ;;
16995       *) # Darwin 1.3 on
16996         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16997           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16998         else
16999           case ${MACOSX_DEPLOYMENT_TARGET} in
17000             10.[012])
17001               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17002               ;;
17003             10.*)
17004               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17005               ;;
17006           esac
17007         fi
17008         ;;
17009      esac
17010      archive_cmds_need_lc_GCJ=no
17011      hardcode_direct_GCJ=no
17012      hardcode_automatic_GCJ=yes
17013      hardcode_shlibpath_var_GCJ=unsupported
17014      whole_archive_flag_spec_GCJ=''
17015      link_all_deplibs_GCJ=yes
17016    if test "$GCC" = yes ; then
17017    	output_verbose_link_cmd='echo'
17018        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17019        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17020        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17021        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17022    else
17023      case $cc_basename in
17024        xlc*)
17025         output_verbose_link_cmd='echo'
17026         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17027         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17028          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17029         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17030          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17031          ;;
17032       *)
17033         ld_shlibs_GCJ=no
17034          ;;
17035      esac
17036    fi
17037      ;;
17038
17039    dgux*)
17040      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17041      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17042      hardcode_shlibpath_var_GCJ=no
17043      ;;
17044
17045    freebsd1*)
17046      ld_shlibs_GCJ=no
17047      ;;
17048
17049    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17050    # support.  Future versions do this automatically, but an explicit c++rt0.o
17051    # does not break anything, and helps significantly (at the cost of a little
17052    # extra space).
17053    freebsd2.2*)
17054      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17055      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17056      hardcode_direct_GCJ=yes
17057      hardcode_shlibpath_var_GCJ=no
17058      ;;
17059
17060    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17061    freebsd2*)
17062      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17063      hardcode_direct_GCJ=yes
17064      hardcode_minus_L_GCJ=yes
17065      hardcode_shlibpath_var_GCJ=no
17066      ;;
17067
17068    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17069    freebsd* | dragonfly*)
17070      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17071      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17072      hardcode_direct_GCJ=yes
17073      hardcode_shlibpath_var_GCJ=no
17074      ;;
17075
17076    hpux9*)
17077      if test "$GCC" = yes; then
17078	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17079      else
17080	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17081      fi
17082      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17083      hardcode_libdir_separator_GCJ=:
17084      hardcode_direct_GCJ=yes
17085
17086      # hardcode_minus_L: Not really in the search PATH,
17087      # but as the default location of the library.
17088      hardcode_minus_L_GCJ=yes
17089      export_dynamic_flag_spec_GCJ='${wl}-E'
17090      ;;
17091
17092    hpux10*)
17093      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17094	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17095      else
17096	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17097      fi
17098      if test "$with_gnu_ld" = no; then
17099	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17100	hardcode_libdir_separator_GCJ=:
17101
17102	hardcode_direct_GCJ=yes
17103	export_dynamic_flag_spec_GCJ='${wl}-E'
17104
17105	# hardcode_minus_L: Not really in the search PATH,
17106	# but as the default location of the library.
17107	hardcode_minus_L_GCJ=yes
17108      fi
17109      ;;
17110
17111    hpux11*)
17112      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17113	case $host_cpu in
17114	hppa*64*)
17115	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17116	  ;;
17117	ia64*)
17118	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17119	  ;;
17120	*)
17121	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17122	  ;;
17123	esac
17124      else
17125	case $host_cpu in
17126	hppa*64*)
17127	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17128	  ;;
17129	ia64*)
17130	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17131	  ;;
17132	*)
17133	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17134	  ;;
17135	esac
17136      fi
17137      if test "$with_gnu_ld" = no; then
17138	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17139	hardcode_libdir_separator_GCJ=:
17140
17141	case $host_cpu in
17142	hppa*64*|ia64*)
17143	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17144	  hardcode_direct_GCJ=no
17145	  hardcode_shlibpath_var_GCJ=no
17146	  ;;
17147	*)
17148	  hardcode_direct_GCJ=yes
17149	  export_dynamic_flag_spec_GCJ='${wl}-E'
17150
17151	  # hardcode_minus_L: Not really in the search PATH,
17152	  # but as the default location of the library.
17153	  hardcode_minus_L_GCJ=yes
17154	  ;;
17155	esac
17156      fi
17157      ;;
17158
17159    irix5* | irix6* | nonstopux*)
17160      if test "$GCC" = yes; then
17161	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17162      else
17163	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17164	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17165      fi
17166      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17167      hardcode_libdir_separator_GCJ=:
17168      link_all_deplibs_GCJ=yes
17169      ;;
17170
17171    netbsd*)
17172      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17173	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17174      else
17175	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17176      fi
17177      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17178      hardcode_direct_GCJ=yes
17179      hardcode_shlibpath_var_GCJ=no
17180      ;;
17181
17182    newsos6)
17183      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17184      hardcode_direct_GCJ=yes
17185      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17186      hardcode_libdir_separator_GCJ=:
17187      hardcode_shlibpath_var_GCJ=no
17188      ;;
17189
17190    openbsd*)
17191      if test -f /usr/libexec/ld.so; then
17192	hardcode_direct_GCJ=yes
17193	hardcode_shlibpath_var_GCJ=no
17194	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17195	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17196	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17197	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17198	  export_dynamic_flag_spec_GCJ='${wl}-E'
17199	else
17200	  case $host_os in
17201	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17202	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17203	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17204	     ;;
17205	   *)
17206	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17207	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17208	     ;;
17209	  esac
17210        fi
17211      else
17212	ld_shlibs_GCJ=no
17213      fi
17214      ;;
17215
17216    os2*)
17217      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17218      hardcode_minus_L_GCJ=yes
17219      allow_undefined_flag_GCJ=unsupported
17220      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17221      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17222      ;;
17223
17224    osf3*)
17225      if test "$GCC" = yes; then
17226	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17227	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17228      else
17229	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17230	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17231      fi
17232      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17233      hardcode_libdir_separator_GCJ=:
17234      ;;
17235
17236    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17237      if test "$GCC" = yes; then
17238	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17239	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17240	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17241      else
17242	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17243	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17244	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17245	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17246
17247	# Both c and cxx compiler support -rpath directly
17248	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17249      fi
17250      hardcode_libdir_separator_GCJ=:
17251      ;;
17252
17253    solaris*)
17254      no_undefined_flag_GCJ=' -z text'
17255      if test "$GCC" = yes; then
17256	wlarc='${wl}'
17257	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17258	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17259	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17260      else
17261	wlarc=''
17262	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17263	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17264  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17265      fi
17266      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17267      hardcode_shlibpath_var_GCJ=no
17268      case $host_os in
17269      solaris2.[0-5] | solaris2.[0-5].*) ;;
17270      *)
17271	# The compiler driver will combine and reorder linker options,
17272	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17273	# but is careful enough not to reorder.
17274 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17275	if test "$GCC" = yes; then
17276	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17277	else
17278	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17279	fi
17280	;;
17281      esac
17282      link_all_deplibs_GCJ=yes
17283      ;;
17284
17285    sunos4*)
17286      if test "x$host_vendor" = xsequent; then
17287	# Use $CC to link under sequent, because it throws in some extra .o
17288	# files that make .init and .fini sections work.
17289	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17290      else
17291	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17292      fi
17293      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17294      hardcode_direct_GCJ=yes
17295      hardcode_minus_L_GCJ=yes
17296      hardcode_shlibpath_var_GCJ=no
17297      ;;
17298
17299    sysv4)
17300      case $host_vendor in
17301	sni)
17302	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17303	  hardcode_direct_GCJ=yes # is this really true???
17304	;;
17305	siemens)
17306	  ## LD is ld it makes a PLAMLIB
17307	  ## CC just makes a GrossModule.
17308	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17309	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17310	  hardcode_direct_GCJ=no
17311        ;;
17312	motorola)
17313	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17314	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17315	;;
17316      esac
17317      runpath_var='LD_RUN_PATH'
17318      hardcode_shlibpath_var_GCJ=no
17319      ;;
17320
17321    sysv4.3*)
17322      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17323      hardcode_shlibpath_var_GCJ=no
17324      export_dynamic_flag_spec_GCJ='-Bexport'
17325      ;;
17326
17327    sysv4*MP*)
17328      if test -d /usr/nec; then
17329	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17330	hardcode_shlibpath_var_GCJ=no
17331	runpath_var=LD_RUN_PATH
17332	hardcode_runpath_var=yes
17333	ld_shlibs_GCJ=yes
17334      fi
17335      ;;
17336
17337    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17338      no_undefined_flag_GCJ='${wl}-z,text'
17339      archive_cmds_need_lc_GCJ=no
17340      hardcode_shlibpath_var_GCJ=no
17341      runpath_var='LD_RUN_PATH'
17342
17343      if test "$GCC" = yes; then
17344	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17345	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17346      else
17347	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17348	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17349      fi
17350      ;;
17351
17352    sysv5* | sco3.2v5* | sco5v6*)
17353      # Note: We can NOT use -z defs as we might desire, because we do not
17354      # link with -lc, and that would cause any symbols used from libc to
17355      # always be unresolved, which means just about no library would
17356      # ever link correctly.  If we're not using GNU ld we use -z text
17357      # though, which does catch some bad symbols but isn't as heavy-handed
17358      # as -z defs.
17359      no_undefined_flag_GCJ='${wl}-z,text'
17360      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17361      archive_cmds_need_lc_GCJ=no
17362      hardcode_shlibpath_var_GCJ=no
17363      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17364      hardcode_libdir_separator_GCJ=':'
17365      link_all_deplibs_GCJ=yes
17366      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17367      runpath_var='LD_RUN_PATH'
17368
17369      if test "$GCC" = yes; then
17370	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17371	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17372      else
17373	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17374	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17375      fi
17376      ;;
17377
17378    uts4*)
17379      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17380      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17381      hardcode_shlibpath_var_GCJ=no
17382      ;;
17383
17384    *)
17385      ld_shlibs_GCJ=no
17386      ;;
17387    esac
17388  fi
17389
17390echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17391echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17392test "$ld_shlibs_GCJ" = no && can_build_shared=no
17393
17394#
17395# Do we need to explicitly link libc?
17396#
17397case "x$archive_cmds_need_lc_GCJ" in
17398x|xyes)
17399  # Assume -lc should be added
17400  archive_cmds_need_lc_GCJ=yes
17401
17402  if test "$enable_shared" = yes && test "$GCC" = yes; then
17403    case $archive_cmds_GCJ in
17404    *'~'*)
17405      # FIXME: we may have to deal with multi-command sequences.
17406      ;;
17407    '$CC '*)
17408      # Test whether the compiler implicitly links with -lc since on some
17409      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17410      # to ld, don't add -lc before -lgcc.
17411      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17412echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17413      $rm conftest*
17414      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17415
17416      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17417  (eval $ac_compile) 2>&5
17418  ac_status=$?
17419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420  (exit $ac_status); } 2>conftest.err; then
17421        soname=conftest
17422        lib=conftest
17423        libobjs=conftest.$ac_objext
17424        deplibs=
17425        wl=$lt_prog_compiler_wl_GCJ
17426	pic_flag=$lt_prog_compiler_pic_GCJ
17427        compiler_flags=-v
17428        linker_flags=-v
17429        verstring=
17430        output_objdir=.
17431        libname=conftest
17432        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17433        allow_undefined_flag_GCJ=
17434        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17435  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17436  ac_status=$?
17437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438  (exit $ac_status); }
17439        then
17440	  archive_cmds_need_lc_GCJ=no
17441        else
17442	  archive_cmds_need_lc_GCJ=yes
17443        fi
17444        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17445      else
17446        cat conftest.err 1>&5
17447      fi
17448      $rm conftest*
17449      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17450echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17451      ;;
17452    esac
17453  fi
17454  ;;
17455esac
17456
17457echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17458echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17459library_names_spec=
17460libname_spec='lib$name'
17461soname_spec=
17462shrext_cmds=".so"
17463postinstall_cmds=
17464postuninstall_cmds=
17465finish_cmds=
17466finish_eval=
17467shlibpath_var=
17468shlibpath_overrides_runpath=unknown
17469version_type=none
17470dynamic_linker="$host_os ld.so"
17471sys_lib_dlsearch_path_spec="/lib /usr/lib"
17472
17473need_lib_prefix=unknown
17474hardcode_into_libs=no
17475
17476# when you set need_version to no, make sure it does not cause -set_version
17477# flags to be left without arguments
17478need_version=unknown
17479
17480case $host_os in
17481aix3*)
17482  version_type=linux
17483  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17484  shlibpath_var=LIBPATH
17485
17486  # AIX 3 has no versioning support, so we append a major version to the name.
17487  soname_spec='${libname}${release}${shared_ext}$major'
17488  ;;
17489
17490aix[4-9]*)
17491  version_type=linux
17492  need_lib_prefix=no
17493  need_version=no
17494  hardcode_into_libs=yes
17495  if test "$host_cpu" = ia64; then
17496    # AIX 5 supports IA64
17497    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17498    shlibpath_var=LD_LIBRARY_PATH
17499  else
17500    # With GCC up to 2.95.x, collect2 would create an import file
17501    # for dependence libraries.  The import file would start with
17502    # the line `#! .'.  This would cause the generated library to
17503    # depend on `.', always an invalid library.  This was fixed in
17504    # development snapshots of GCC prior to 3.0.
17505    case $host_os in
17506      aix4 | aix4.[01] | aix4.[01].*)
17507      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17508	   echo ' yes '
17509	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17510	:
17511      else
17512	can_build_shared=no
17513      fi
17514      ;;
17515    esac
17516    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17517    # soname into executable. Probably we can add versioning support to
17518    # collect2, so additional links can be useful in future.
17519    if test "$aix_use_runtimelinking" = yes; then
17520      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17521      # instead of lib<name>.a to let people know that these are not
17522      # typical AIX shared libraries.
17523      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17524    else
17525      # We preserve .a as extension for shared libraries through AIX4.2
17526      # and later when we are not doing run time linking.
17527      library_names_spec='${libname}${release}.a $libname.a'
17528      soname_spec='${libname}${release}${shared_ext}$major'
17529    fi
17530    shlibpath_var=LIBPATH
17531  fi
17532  ;;
17533
17534amigaos*)
17535  library_names_spec='$libname.ixlibrary $libname.a'
17536  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17537  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17538  ;;
17539
17540beos*)
17541  library_names_spec='${libname}${shared_ext}'
17542  dynamic_linker="$host_os ld.so"
17543  shlibpath_var=LIBRARY_PATH
17544  ;;
17545
17546bsdi[45]*)
17547  version_type=linux
17548  need_version=no
17549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550  soname_spec='${libname}${release}${shared_ext}$major'
17551  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17552  shlibpath_var=LD_LIBRARY_PATH
17553  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17554  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17555  # the default ld.so.conf also contains /usr/contrib/lib and
17556  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17557  # libtool to hard-code these into programs
17558  ;;
17559
17560cygwin* | mingw* | pw32*)
17561  version_type=windows
17562  shrext_cmds=".dll"
17563  need_version=no
17564  need_lib_prefix=no
17565
17566  case $GCC,$host_os in
17567  yes,cygwin* | yes,mingw* | yes,pw32*)
17568    library_names_spec='$libname.dll.a'
17569    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17570    postinstall_cmds='base_file=`basename \${file}`~
17571      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17572      dldir=$destdir/`dirname \$dlpath`~
17573      test -d \$dldir || mkdir -p \$dldir~
17574      $install_prog $dir/$dlname \$dldir/$dlname~
17575      chmod a+x \$dldir/$dlname'
17576    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17577      dlpath=$dir/\$dldll~
17578       $rm \$dlpath'
17579    shlibpath_overrides_runpath=yes
17580
17581    case $host_os in
17582    cygwin*)
17583      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17584      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17585      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17586      ;;
17587    mingw*)
17588      # MinGW DLLs use traditional 'lib' prefix
17589      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17590      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17591      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17592        # It is most probably a Windows format PATH printed by
17593        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17594        # path with ; separators, and with drive letters. We can handle the
17595        # drive letters (cygwin fileutils understands them), so leave them,
17596        # especially as we might pass files found there to a mingw objdump,
17597        # which wouldn't understand a cygwinified path. Ahh.
17598        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17599      else
17600        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17601      fi
17602      ;;
17603    pw32*)
17604      # pw32 DLLs use 'pw' prefix rather than 'lib'
17605      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17606      ;;
17607    esac
17608    ;;
17609
17610  *)
17611    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17612    ;;
17613  esac
17614  dynamic_linker='Win32 ld.exe'
17615  # FIXME: first we should search . and the directory the executable is in
17616  shlibpath_var=PATH
17617  ;;
17618
17619darwin* | rhapsody*)
17620  dynamic_linker="$host_os dyld"
17621  version_type=darwin
17622  need_lib_prefix=no
17623  need_version=no
17624  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17625  soname_spec='${libname}${release}${major}$shared_ext'
17626  shlibpath_overrides_runpath=yes
17627  shlibpath_var=DYLD_LIBRARY_PATH
17628  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17629
17630  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17631  ;;
17632
17633dgux*)
17634  version_type=linux
17635  need_lib_prefix=no
17636  need_version=no
17637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17638  soname_spec='${libname}${release}${shared_ext}$major'
17639  shlibpath_var=LD_LIBRARY_PATH
17640  ;;
17641
17642freebsd1*)
17643  dynamic_linker=no
17644  ;;
17645
17646freebsd* | dragonfly*)
17647  # DragonFly does not have aout.  When/if they implement a new
17648  # versioning mechanism, adjust this.
17649  if test -x /usr/bin/objformat; then
17650    objformat=`/usr/bin/objformat`
17651  else
17652    case $host_os in
17653    freebsd[123]*) objformat=aout ;;
17654    *) objformat=elf ;;
17655    esac
17656  fi
17657  version_type=freebsd-$objformat
17658  case $version_type in
17659    freebsd-elf*)
17660      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17661      need_version=no
17662      need_lib_prefix=no
17663      ;;
17664    freebsd-*)
17665      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17666      need_version=yes
17667      ;;
17668  esac
17669  shlibpath_var=LD_LIBRARY_PATH
17670  case $host_os in
17671  freebsd2*)
17672    shlibpath_overrides_runpath=yes
17673    ;;
17674  freebsd3.[01]* | freebsdelf3.[01]*)
17675    shlibpath_overrides_runpath=yes
17676    hardcode_into_libs=yes
17677    ;;
17678  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17679  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17680    shlibpath_overrides_runpath=no
17681    hardcode_into_libs=yes
17682    ;;
17683  *) # from 4.6 on, and DragonFly
17684    shlibpath_overrides_runpath=yes
17685    hardcode_into_libs=yes
17686    ;;
17687  esac
17688  ;;
17689
17690gnu*)
17691  version_type=linux
17692  need_lib_prefix=no
17693  need_version=no
17694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17695  soname_spec='${libname}${release}${shared_ext}$major'
17696  shlibpath_var=LD_LIBRARY_PATH
17697  hardcode_into_libs=yes
17698  ;;
17699
17700hpux9* | hpux10* | hpux11*)
17701  # Give a soname corresponding to the major version so that dld.sl refuses to
17702  # link against other versions.
17703  version_type=sunos
17704  need_lib_prefix=no
17705  need_version=no
17706  case $host_cpu in
17707  ia64*)
17708    shrext_cmds='.so'
17709    hardcode_into_libs=yes
17710    dynamic_linker="$host_os dld.so"
17711    shlibpath_var=LD_LIBRARY_PATH
17712    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17713    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17714    soname_spec='${libname}${release}${shared_ext}$major'
17715    if test "X$HPUX_IA64_MODE" = X32; then
17716      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17717    else
17718      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17719    fi
17720    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17721    ;;
17722   hppa*64*)
17723     shrext_cmds='.sl'
17724     hardcode_into_libs=yes
17725     dynamic_linker="$host_os dld.sl"
17726     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17727     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17728     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729     soname_spec='${libname}${release}${shared_ext}$major'
17730     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17731     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17732     ;;
17733   *)
17734    shrext_cmds='.sl'
17735    dynamic_linker="$host_os dld.sl"
17736    shlibpath_var=SHLIB_PATH
17737    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17738    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17739    soname_spec='${libname}${release}${shared_ext}$major'
17740    ;;
17741  esac
17742  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17743  postinstall_cmds='chmod 555 $lib'
17744  ;;
17745
17746interix[3-9]*)
17747  version_type=linux
17748  need_lib_prefix=no
17749  need_version=no
17750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17751  soname_spec='${libname}${release}${shared_ext}$major'
17752  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17753  shlibpath_var=LD_LIBRARY_PATH
17754  shlibpath_overrides_runpath=no
17755  hardcode_into_libs=yes
17756  ;;
17757
17758irix5* | irix6* | nonstopux*)
17759  case $host_os in
17760    nonstopux*) version_type=nonstopux ;;
17761    *)
17762	if test "$lt_cv_prog_gnu_ld" = yes; then
17763		version_type=linux
17764	else
17765		version_type=irix
17766	fi ;;
17767  esac
17768  need_lib_prefix=no
17769  need_version=no
17770  soname_spec='${libname}${release}${shared_ext}$major'
17771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17772  case $host_os in
17773  irix5* | nonstopux*)
17774    libsuff= shlibsuff=
17775    ;;
17776  *)
17777    case $LD in # libtool.m4 will add one of these switches to LD
17778    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17779      libsuff= shlibsuff= libmagic=32-bit;;
17780    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17781      libsuff=32 shlibsuff=N32 libmagic=N32;;
17782    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17783      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17784    *) libsuff= shlibsuff= libmagic=never-match;;
17785    esac
17786    ;;
17787  esac
17788  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17789  shlibpath_overrides_runpath=no
17790  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17791  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17792  hardcode_into_libs=yes
17793  ;;
17794
17795# No shared lib support for Linux oldld, aout, or coff.
17796linux*oldld* | linux*aout* | linux*coff*)
17797  dynamic_linker=no
17798  ;;
17799
17800# This must be Linux ELF.
17801linux* | k*bsd*-gnu)
17802  version_type=linux
17803  need_lib_prefix=no
17804  need_version=no
17805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17806  soname_spec='${libname}${release}${shared_ext}$major'
17807  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17808  shlibpath_var=LD_LIBRARY_PATH
17809  shlibpath_overrides_runpath=no
17810  # This implies no fast_install, which is unacceptable.
17811  # Some rework will be needed to allow for fast_install
17812  # before this can be enabled.
17813  hardcode_into_libs=yes
17814
17815  # Append ld.so.conf contents to the search path
17816  if test -f /etc/ld.so.conf; then
17817    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17818    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17819  fi
17820
17821  # We used to test for /lib/ld.so.1 and disable shared libraries on
17822  # powerpc, because MkLinux only supported shared libraries with the
17823  # GNU dynamic linker.  Since this was broken with cross compilers,
17824  # most powerpc-linux boxes support dynamic linking these days and
17825  # people can always --disable-shared, the test was removed, and we
17826  # assume the GNU/Linux dynamic linker is in use.
17827  dynamic_linker='GNU/Linux ld.so'
17828  ;;
17829
17830netbsd*)
17831  version_type=sunos
17832  need_lib_prefix=no
17833  need_version=no
17834  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17835    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17836    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17837    dynamic_linker='NetBSD (a.out) ld.so'
17838  else
17839    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17840    soname_spec='${libname}${release}${shared_ext}$major'
17841    dynamic_linker='NetBSD ld.elf_so'
17842  fi
17843  shlibpath_var=LD_LIBRARY_PATH
17844  shlibpath_overrides_runpath=yes
17845  hardcode_into_libs=yes
17846  ;;
17847
17848newsos6)
17849  version_type=linux
17850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17851  shlibpath_var=LD_LIBRARY_PATH
17852  shlibpath_overrides_runpath=yes
17853  ;;
17854
17855nto-qnx*)
17856  version_type=linux
17857  need_lib_prefix=no
17858  need_version=no
17859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17860  soname_spec='${libname}${release}${shared_ext}$major'
17861  shlibpath_var=LD_LIBRARY_PATH
17862  shlibpath_overrides_runpath=yes
17863  ;;
17864
17865openbsd*)
17866  version_type=sunos
17867  sys_lib_dlsearch_path_spec="/usr/lib"
17868  need_lib_prefix=no
17869  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17870  case $host_os in
17871    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17872    *)                         need_version=no  ;;
17873  esac
17874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17875  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17876  shlibpath_var=LD_LIBRARY_PATH
17877  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17878    case $host_os in
17879      openbsd2.[89] | openbsd2.[89].*)
17880	shlibpath_overrides_runpath=no
17881	;;
17882      *)
17883	shlibpath_overrides_runpath=yes
17884	;;
17885      esac
17886  else
17887    shlibpath_overrides_runpath=yes
17888  fi
17889  ;;
17890
17891os2*)
17892  libname_spec='$name'
17893  shrext_cmds=".dll"
17894  need_lib_prefix=no
17895  library_names_spec='$libname${shared_ext} $libname.a'
17896  dynamic_linker='OS/2 ld.exe'
17897  shlibpath_var=LIBPATH
17898  ;;
17899
17900osf3* | osf4* | osf5*)
17901  version_type=osf
17902  need_lib_prefix=no
17903  need_version=no
17904  soname_spec='${libname}${release}${shared_ext}$major'
17905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17906  shlibpath_var=LD_LIBRARY_PATH
17907  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17908  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17909  ;;
17910
17911rdos*)
17912  dynamic_linker=no
17913  ;;
17914
17915solaris*)
17916  version_type=linux
17917  need_lib_prefix=no
17918  need_version=no
17919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17920  soname_spec='${libname}${release}${shared_ext}$major'
17921  shlibpath_var=LD_LIBRARY_PATH
17922  shlibpath_overrides_runpath=yes
17923  hardcode_into_libs=yes
17924  # ldd complains unless libraries are executable
17925  postinstall_cmds='chmod +x $lib'
17926  ;;
17927
17928sunos4*)
17929  version_type=sunos
17930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17931  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17932  shlibpath_var=LD_LIBRARY_PATH
17933  shlibpath_overrides_runpath=yes
17934  if test "$with_gnu_ld" = yes; then
17935    need_lib_prefix=no
17936  fi
17937  need_version=yes
17938  ;;
17939
17940sysv4 | sysv4.3*)
17941  version_type=linux
17942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943  soname_spec='${libname}${release}${shared_ext}$major'
17944  shlibpath_var=LD_LIBRARY_PATH
17945  case $host_vendor in
17946    sni)
17947      shlibpath_overrides_runpath=no
17948      need_lib_prefix=no
17949      export_dynamic_flag_spec='${wl}-Blargedynsym'
17950      runpath_var=LD_RUN_PATH
17951      ;;
17952    siemens)
17953      need_lib_prefix=no
17954      ;;
17955    motorola)
17956      need_lib_prefix=no
17957      need_version=no
17958      shlibpath_overrides_runpath=no
17959      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17960      ;;
17961  esac
17962  ;;
17963
17964sysv4*MP*)
17965  if test -d /usr/nec ;then
17966    version_type=linux
17967    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17968    soname_spec='$libname${shared_ext}.$major'
17969    shlibpath_var=LD_LIBRARY_PATH
17970  fi
17971  ;;
17972
17973sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17974  version_type=freebsd-elf
17975  need_lib_prefix=no
17976  need_version=no
17977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17978  soname_spec='${libname}${release}${shared_ext}$major'
17979  shlibpath_var=LD_LIBRARY_PATH
17980  hardcode_into_libs=yes
17981  if test "$with_gnu_ld" = yes; then
17982    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17983    shlibpath_overrides_runpath=no
17984  else
17985    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17986    shlibpath_overrides_runpath=yes
17987    case $host_os in
17988      sco3.2v5*)
17989        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17990	;;
17991    esac
17992  fi
17993  sys_lib_dlsearch_path_spec='/usr/lib'
17994  ;;
17995
17996uts4*)
17997  version_type=linux
17998  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17999  soname_spec='${libname}${release}${shared_ext}$major'
18000  shlibpath_var=LD_LIBRARY_PATH
18001  ;;
18002
18003*)
18004  dynamic_linker=no
18005  ;;
18006esac
18007echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18008echo "${ECHO_T}$dynamic_linker" >&6
18009test "$dynamic_linker" = no && can_build_shared=no
18010
18011if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18012  echo $ECHO_N "(cached) $ECHO_C" >&6
18013else
18014  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18015fi
18016
18017sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18018if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18019  echo $ECHO_N "(cached) $ECHO_C" >&6
18020else
18021  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18022fi
18023
18024sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18025
18026variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18027if test "$GCC" = yes; then
18028  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18029fi
18030
18031echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18032echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18033hardcode_action_GCJ=
18034if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18035   test -n "$runpath_var_GCJ" || \
18036   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18037
18038  # We can hardcode non-existant directories.
18039  if test "$hardcode_direct_GCJ" != no &&
18040     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18041     # have to relink, otherwise we might link with an installed library
18042     # when we should be linking with a yet-to-be-installed one
18043     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18044     test "$hardcode_minus_L_GCJ" != no; then
18045    # Linking always hardcodes the temporary library directory.
18046    hardcode_action_GCJ=relink
18047  else
18048    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18049    hardcode_action_GCJ=immediate
18050  fi
18051else
18052  # We cannot hardcode anything, or else we can only hardcode existing
18053  # directories.
18054  hardcode_action_GCJ=unsupported
18055fi
18056echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18057echo "${ECHO_T}$hardcode_action_GCJ" >&6
18058
18059if test "$hardcode_action_GCJ" = relink; then
18060  # Fast installation is not supported
18061  enable_fast_install=no
18062elif test "$shlibpath_overrides_runpath" = yes ||
18063     test "$enable_shared" = no; then
18064  # Fast installation is not necessary
18065  enable_fast_install=needless
18066fi
18067
18068
18069# The else clause should only fire when bootstrapping the
18070# libtool distribution, otherwise you forgot to ship ltmain.sh
18071# with your package, and you will get complaints that there are
18072# no rules to generate ltmain.sh.
18073if test -f "$ltmain"; then
18074  # See if we are running on zsh, and set the options which allow our commands through
18075  # without removal of \ escapes.
18076  if test -n "${ZSH_VERSION+set}" ; then
18077    setopt NO_GLOB_SUBST
18078  fi
18079  # Now quote all the things that may contain metacharacters while being
18080  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18081  # variables and quote the copies for generation of the libtool script.
18082  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18083    SED SHELL STRIP \
18084    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18085    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18086    deplibs_check_method reload_flag reload_cmds need_locks \
18087    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18088    lt_cv_sys_global_symbol_to_c_name_address \
18089    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18090    old_postinstall_cmds old_postuninstall_cmds \
18091    compiler_GCJ \
18092    CC_GCJ \
18093    LD_GCJ \
18094    lt_prog_compiler_wl_GCJ \
18095    lt_prog_compiler_pic_GCJ \
18096    lt_prog_compiler_static_GCJ \
18097    lt_prog_compiler_no_builtin_flag_GCJ \
18098    export_dynamic_flag_spec_GCJ \
18099    thread_safe_flag_spec_GCJ \
18100    whole_archive_flag_spec_GCJ \
18101    enable_shared_with_static_runtimes_GCJ \
18102    old_archive_cmds_GCJ \
18103    old_archive_from_new_cmds_GCJ \
18104    predep_objects_GCJ \
18105    postdep_objects_GCJ \
18106    predeps_GCJ \
18107    postdeps_GCJ \
18108    compiler_lib_search_path_GCJ \
18109    compiler_lib_search_dirs_GCJ \
18110    archive_cmds_GCJ \
18111    archive_expsym_cmds_GCJ \
18112    postinstall_cmds_GCJ \
18113    postuninstall_cmds_GCJ \
18114    old_archive_from_expsyms_cmds_GCJ \
18115    allow_undefined_flag_GCJ \
18116    no_undefined_flag_GCJ \
18117    export_symbols_cmds_GCJ \
18118    hardcode_libdir_flag_spec_GCJ \
18119    hardcode_libdir_flag_spec_ld_GCJ \
18120    hardcode_libdir_separator_GCJ \
18121    hardcode_automatic_GCJ \
18122    module_cmds_GCJ \
18123    module_expsym_cmds_GCJ \
18124    lt_cv_prog_compiler_c_o_GCJ \
18125    fix_srcfile_path_GCJ \
18126    exclude_expsyms_GCJ \
18127    include_expsyms_GCJ; do
18128
18129    case $var in
18130    old_archive_cmds_GCJ | \
18131    old_archive_from_new_cmds_GCJ | \
18132    archive_cmds_GCJ | \
18133    archive_expsym_cmds_GCJ | \
18134    module_cmds_GCJ | \
18135    module_expsym_cmds_GCJ | \
18136    old_archive_from_expsyms_cmds_GCJ | \
18137    export_symbols_cmds_GCJ | \
18138    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18139    postinstall_cmds | postuninstall_cmds | \
18140    old_postinstall_cmds | old_postuninstall_cmds | \
18141    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18142      # Double-quote double-evaled strings.
18143      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18144      ;;
18145    *)
18146      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18147      ;;
18148    esac
18149  done
18150
18151  case $lt_echo in
18152  *'\$0 --fallback-echo"')
18153    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18154    ;;
18155  esac
18156
18157cfgfile="$ofile"
18158
18159  cat <<__EOF__ >> "$cfgfile"
18160# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18161
18162# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18163
18164# Shell to use when invoking shell scripts.
18165SHELL=$lt_SHELL
18166
18167# Whether or not to build shared libraries.
18168build_libtool_libs=$enable_shared
18169
18170# Whether or not to build static libraries.
18171build_old_libs=$enable_static
18172
18173# Whether or not to add -lc for building shared libraries.
18174build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18175
18176# Whether or not to disallow shared libs when runtime libs are static
18177allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18178
18179# Whether or not to optimize for fast installation.
18180fast_install=$enable_fast_install
18181
18182# The host system.
18183host_alias=$host_alias
18184host=$host
18185host_os=$host_os
18186
18187# The build system.
18188build_alias=$build_alias
18189build=$build
18190build_os=$build_os
18191
18192# An echo program that does not interpret backslashes.
18193echo=$lt_echo
18194
18195# The archiver.
18196AR=$lt_AR
18197AR_FLAGS=$lt_AR_FLAGS
18198
18199# A C compiler.
18200LTCC=$lt_LTCC
18201
18202# LTCC compiler flags.
18203LTCFLAGS=$lt_LTCFLAGS
18204
18205# A language-specific compiler.
18206CC=$lt_compiler_GCJ
18207
18208# Is the compiler the GNU C compiler?
18209with_gcc=$GCC_GCJ
18210
18211# An ERE matcher.
18212EGREP=$lt_EGREP
18213
18214# The linker used to build libraries.
18215LD=$lt_LD_GCJ
18216
18217# Whether we need hard or soft links.
18218LN_S=$lt_LN_S
18219
18220# A BSD-compatible nm program.
18221NM=$lt_NM
18222
18223# A symbol stripping program
18224STRIP=$lt_STRIP
18225
18226# Used to examine libraries when file_magic_cmd begins "file"
18227MAGIC_CMD=$MAGIC_CMD
18228
18229# Used on cygwin: DLL creation program.
18230DLLTOOL="$DLLTOOL"
18231
18232# Used on cygwin: object dumper.
18233OBJDUMP="$OBJDUMP"
18234
18235# Used on cygwin: assembler.
18236AS="$AS"
18237
18238# The name of the directory that contains temporary libtool files.
18239objdir=$objdir
18240
18241# How to create reloadable object files.
18242reload_flag=$lt_reload_flag
18243reload_cmds=$lt_reload_cmds
18244
18245# How to pass a linker flag through the compiler.
18246wl=$lt_lt_prog_compiler_wl_GCJ
18247
18248# Object file suffix (normally "o").
18249objext="$ac_objext"
18250
18251# Old archive suffix (normally "a").
18252libext="$libext"
18253
18254# Shared library suffix (normally ".so").
18255shrext_cmds='$shrext_cmds'
18256
18257# Executable file suffix (normally "").
18258exeext="$exeext"
18259
18260# Additional compiler flags for building library objects.
18261pic_flag=$lt_lt_prog_compiler_pic_GCJ
18262pic_mode=$pic_mode
18263
18264# What is the maximum length of a command?
18265max_cmd_len=$lt_cv_sys_max_cmd_len
18266
18267# Does compiler simultaneously support -c and -o options?
18268compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18269
18270# Must we lock files when doing compilation?
18271need_locks=$lt_need_locks
18272
18273# Do we need the lib prefix for modules?
18274need_lib_prefix=$need_lib_prefix
18275
18276# Do we need a version for libraries?
18277need_version=$need_version
18278
18279# Whether dlopen is supported.
18280dlopen_support=$enable_dlopen
18281
18282# Whether dlopen of programs is supported.
18283dlopen_self=$enable_dlopen_self
18284
18285# Whether dlopen of statically linked programs is supported.
18286dlopen_self_static=$enable_dlopen_self_static
18287
18288# Compiler flag to prevent dynamic linking.
18289link_static_flag=$lt_lt_prog_compiler_static_GCJ
18290
18291# Compiler flag to turn off builtin functions.
18292no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18293
18294# Compiler flag to allow reflexive dlopens.
18295export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18296
18297# Compiler flag to generate shared objects directly from archives.
18298whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18299
18300# Compiler flag to generate thread-safe objects.
18301thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18302
18303# Library versioning type.
18304version_type=$version_type
18305
18306# Format of library name prefix.
18307libname_spec=$lt_libname_spec
18308
18309# List of archive names.  First name is the real one, the rest are links.
18310# The last name is the one that the linker finds with -lNAME.
18311library_names_spec=$lt_library_names_spec
18312
18313# The coded name of the library, if different from the real name.
18314soname_spec=$lt_soname_spec
18315
18316# Commands used to build and install an old-style archive.
18317RANLIB=$lt_RANLIB
18318old_archive_cmds=$lt_old_archive_cmds_GCJ
18319old_postinstall_cmds=$lt_old_postinstall_cmds
18320old_postuninstall_cmds=$lt_old_postuninstall_cmds
18321
18322# Create an old-style archive from a shared archive.
18323old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18324
18325# Create a temporary old-style archive to link instead of a shared archive.
18326old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18327
18328# Commands used to build and install a shared archive.
18329archive_cmds=$lt_archive_cmds_GCJ
18330archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18331postinstall_cmds=$lt_postinstall_cmds
18332postuninstall_cmds=$lt_postuninstall_cmds
18333
18334# Commands used to build a loadable module (assumed same as above if empty)
18335module_cmds=$lt_module_cmds_GCJ
18336module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18337
18338# Commands to strip libraries.
18339old_striplib=$lt_old_striplib
18340striplib=$lt_striplib
18341
18342# Dependencies to place before the objects being linked to create a
18343# shared library.
18344predep_objects=$lt_predep_objects_GCJ
18345
18346# Dependencies to place after the objects being linked to create a
18347# shared library.
18348postdep_objects=$lt_postdep_objects_GCJ
18349
18350# Dependencies to place before the objects being linked to create a
18351# shared library.
18352predeps=$lt_predeps_GCJ
18353
18354# Dependencies to place after the objects being linked to create a
18355# shared library.
18356postdeps=$lt_postdeps_GCJ
18357
18358# The directories searched by this compiler when creating a shared
18359# library
18360compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18361
18362# The library search path used internally by the compiler when linking
18363# a shared library.
18364compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18365
18366# Method to check whether dependent libraries are shared objects.
18367deplibs_check_method=$lt_deplibs_check_method
18368
18369# Command to use when deplibs_check_method == file_magic.
18370file_magic_cmd=$lt_file_magic_cmd
18371
18372# Flag that allows shared libraries with undefined symbols to be built.
18373allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18374
18375# Flag that forces no undefined symbols.
18376no_undefined_flag=$lt_no_undefined_flag_GCJ
18377
18378# Commands used to finish a libtool library installation in a directory.
18379finish_cmds=$lt_finish_cmds
18380
18381# Same as above, but a single script fragment to be evaled but not shown.
18382finish_eval=$lt_finish_eval
18383
18384# Take the output of nm and produce a listing of raw symbols and C names.
18385global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18386
18387# Transform the output of nm in a proper C declaration
18388global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18389
18390# Transform the output of nm in a C name address pair
18391global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18392
18393# This is the shared library runtime path variable.
18394runpath_var=$runpath_var
18395
18396# This is the shared library path variable.
18397shlibpath_var=$shlibpath_var
18398
18399# Is shlibpath searched before the hard-coded library search path?
18400shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18401
18402# How to hardcode a shared library path into an executable.
18403hardcode_action=$hardcode_action_GCJ
18404
18405# Whether we should hardcode library paths into libraries.
18406hardcode_into_libs=$hardcode_into_libs
18407
18408# Flag to hardcode \$libdir into a binary during linking.
18409# This must work even if \$libdir does not exist.
18410hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18411
18412# If ld is used when linking, flag to hardcode \$libdir into
18413# a binary during linking. This must work even if \$libdir does
18414# not exist.
18415hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18416
18417# Whether we need a single -rpath flag with a separated argument.
18418hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18419
18420# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18421# resulting binary.
18422hardcode_direct=$hardcode_direct_GCJ
18423
18424# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18425# resulting binary.
18426hardcode_minus_L=$hardcode_minus_L_GCJ
18427
18428# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18429# the resulting binary.
18430hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18431
18432# Set to yes if building a shared library automatically hardcodes DIR into the library
18433# and all subsequent libraries and executables linked against it.
18434hardcode_automatic=$hardcode_automatic_GCJ
18435
18436# Variables whose values should be saved in libtool wrapper scripts and
18437# restored at relink time.
18438variables_saved_for_relink="$variables_saved_for_relink"
18439
18440# Whether libtool must link a program against all its dependency libraries.
18441link_all_deplibs=$link_all_deplibs_GCJ
18442
18443# Compile-time system search path for libraries
18444sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18445
18446# Run-time system search path for libraries
18447sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18448
18449# Fix the shell variable \$srcfile for the compiler.
18450fix_srcfile_path=$lt_fix_srcfile_path
18451
18452# Set to yes if exported symbols are required.
18453always_export_symbols=$always_export_symbols_GCJ
18454
18455# The commands to list exported symbols.
18456export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18457
18458# The commands to extract the exported symbol list from a shared archive.
18459extract_expsyms_cmds=$lt_extract_expsyms_cmds
18460
18461# Symbols that should not be listed in the preloaded symbols.
18462exclude_expsyms=$lt_exclude_expsyms_GCJ
18463
18464# Symbols that must always be exported.
18465include_expsyms=$lt_include_expsyms_GCJ
18466
18467# ### END LIBTOOL TAG CONFIG: $tagname
18468
18469__EOF__
18470
18471
18472else
18473  # If there is no Makefile yet, we rely on a make rule to execute
18474  # `config.status --recheck' to rerun these tests and create the
18475  # libtool script then.
18476  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18477  if test -f "$ltmain_in"; then
18478    test -f Makefile && make "$ltmain"
18479  fi
18480fi
18481
18482
18483ac_ext=c
18484ac_cpp='$CPP $CPPFLAGS'
18485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487ac_compiler_gnu=$ac_cv_c_compiler_gnu
18488
18489CC="$lt_save_CC"
18490
18491	else
18492	  tagname=""
18493	fi
18494	;;
18495
18496      RC)
18497
18498
18499
18500# Source file extension for RC test sources.
18501ac_ext=rc
18502
18503# Object file extension for compiled RC test sources.
18504objext=o
18505objext_RC=$objext
18506
18507# Code to be used in simple compile tests
18508lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18509
18510# Code to be used in simple link tests
18511lt_simple_link_test_code="$lt_simple_compile_test_code"
18512
18513# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18514
18515# If no C compiler was specified, use CC.
18516LTCC=${LTCC-"$CC"}
18517
18518# If no C compiler flags were specified, use CFLAGS.
18519LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18520
18521# Allow CC to be a program name with arguments.
18522compiler=$CC
18523
18524
18525# save warnings/boilerplate of simple test code
18526ac_outfile=conftest.$ac_objext
18527echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18528eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18529_lt_compiler_boilerplate=`cat conftest.err`
18530$rm conftest*
18531
18532ac_outfile=conftest.$ac_objext
18533echo "$lt_simple_link_test_code" >conftest.$ac_ext
18534eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18535_lt_linker_boilerplate=`cat conftest.err`
18536$rm -r conftest*
18537
18538
18539# Allow CC to be a program name with arguments.
18540lt_save_CC="$CC"
18541CC=${RC-"windres"}
18542compiler=$CC
18543compiler_RC=$CC
18544for cc_temp in $compiler""; do
18545  case $cc_temp in
18546    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18547    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18548    \-*) ;;
18549    *) break;;
18550  esac
18551done
18552cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18553
18554lt_cv_prog_compiler_c_o_RC=yes
18555
18556# The else clause should only fire when bootstrapping the
18557# libtool distribution, otherwise you forgot to ship ltmain.sh
18558# with your package, and you will get complaints that there are
18559# no rules to generate ltmain.sh.
18560if test -f "$ltmain"; then
18561  # See if we are running on zsh, and set the options which allow our commands through
18562  # without removal of \ escapes.
18563  if test -n "${ZSH_VERSION+set}" ; then
18564    setopt NO_GLOB_SUBST
18565  fi
18566  # Now quote all the things that may contain metacharacters while being
18567  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18568  # variables and quote the copies for generation of the libtool script.
18569  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18570    SED SHELL STRIP \
18571    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18572    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18573    deplibs_check_method reload_flag reload_cmds need_locks \
18574    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18575    lt_cv_sys_global_symbol_to_c_name_address \
18576    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18577    old_postinstall_cmds old_postuninstall_cmds \
18578    compiler_RC \
18579    CC_RC \
18580    LD_RC \
18581    lt_prog_compiler_wl_RC \
18582    lt_prog_compiler_pic_RC \
18583    lt_prog_compiler_static_RC \
18584    lt_prog_compiler_no_builtin_flag_RC \
18585    export_dynamic_flag_spec_RC \
18586    thread_safe_flag_spec_RC \
18587    whole_archive_flag_spec_RC \
18588    enable_shared_with_static_runtimes_RC \
18589    old_archive_cmds_RC \
18590    old_archive_from_new_cmds_RC \
18591    predep_objects_RC \
18592    postdep_objects_RC \
18593    predeps_RC \
18594    postdeps_RC \
18595    compiler_lib_search_path_RC \
18596    compiler_lib_search_dirs_RC \
18597    archive_cmds_RC \
18598    archive_expsym_cmds_RC \
18599    postinstall_cmds_RC \
18600    postuninstall_cmds_RC \
18601    old_archive_from_expsyms_cmds_RC \
18602    allow_undefined_flag_RC \
18603    no_undefined_flag_RC \
18604    export_symbols_cmds_RC \
18605    hardcode_libdir_flag_spec_RC \
18606    hardcode_libdir_flag_spec_ld_RC \
18607    hardcode_libdir_separator_RC \
18608    hardcode_automatic_RC \
18609    module_cmds_RC \
18610    module_expsym_cmds_RC \
18611    lt_cv_prog_compiler_c_o_RC \
18612    fix_srcfile_path_RC \
18613    exclude_expsyms_RC \
18614    include_expsyms_RC; do
18615
18616    case $var in
18617    old_archive_cmds_RC | \
18618    old_archive_from_new_cmds_RC | \
18619    archive_cmds_RC | \
18620    archive_expsym_cmds_RC | \
18621    module_cmds_RC | \
18622    module_expsym_cmds_RC | \
18623    old_archive_from_expsyms_cmds_RC | \
18624    export_symbols_cmds_RC | \
18625    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18626    postinstall_cmds | postuninstall_cmds | \
18627    old_postinstall_cmds | old_postuninstall_cmds | \
18628    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18629      # Double-quote double-evaled strings.
18630      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18631      ;;
18632    *)
18633      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18634      ;;
18635    esac
18636  done
18637
18638  case $lt_echo in
18639  *'\$0 --fallback-echo"')
18640    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18641    ;;
18642  esac
18643
18644cfgfile="$ofile"
18645
18646  cat <<__EOF__ >> "$cfgfile"
18647# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18648
18649# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18650
18651# Shell to use when invoking shell scripts.
18652SHELL=$lt_SHELL
18653
18654# Whether or not to build shared libraries.
18655build_libtool_libs=$enable_shared
18656
18657# Whether or not to build static libraries.
18658build_old_libs=$enable_static
18659
18660# Whether or not to add -lc for building shared libraries.
18661build_libtool_need_lc=$archive_cmds_need_lc_RC
18662
18663# Whether or not to disallow shared libs when runtime libs are static
18664allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18665
18666# Whether or not to optimize for fast installation.
18667fast_install=$enable_fast_install
18668
18669# The host system.
18670host_alias=$host_alias
18671host=$host
18672host_os=$host_os
18673
18674# The build system.
18675build_alias=$build_alias
18676build=$build
18677build_os=$build_os
18678
18679# An echo program that does not interpret backslashes.
18680echo=$lt_echo
18681
18682# The archiver.
18683AR=$lt_AR
18684AR_FLAGS=$lt_AR_FLAGS
18685
18686# A C compiler.
18687LTCC=$lt_LTCC
18688
18689# LTCC compiler flags.
18690LTCFLAGS=$lt_LTCFLAGS
18691
18692# A language-specific compiler.
18693CC=$lt_compiler_RC
18694
18695# Is the compiler the GNU C compiler?
18696with_gcc=$GCC_RC
18697
18698# An ERE matcher.
18699EGREP=$lt_EGREP
18700
18701# The linker used to build libraries.
18702LD=$lt_LD_RC
18703
18704# Whether we need hard or soft links.
18705LN_S=$lt_LN_S
18706
18707# A BSD-compatible nm program.
18708NM=$lt_NM
18709
18710# A symbol stripping program
18711STRIP=$lt_STRIP
18712
18713# Used to examine libraries when file_magic_cmd begins "file"
18714MAGIC_CMD=$MAGIC_CMD
18715
18716# Used on cygwin: DLL creation program.
18717DLLTOOL="$DLLTOOL"
18718
18719# Used on cygwin: object dumper.
18720OBJDUMP="$OBJDUMP"
18721
18722# Used on cygwin: assembler.
18723AS="$AS"
18724
18725# The name of the directory that contains temporary libtool files.
18726objdir=$objdir
18727
18728# How to create reloadable object files.
18729reload_flag=$lt_reload_flag
18730reload_cmds=$lt_reload_cmds
18731
18732# How to pass a linker flag through the compiler.
18733wl=$lt_lt_prog_compiler_wl_RC
18734
18735# Object file suffix (normally "o").
18736objext="$ac_objext"
18737
18738# Old archive suffix (normally "a").
18739libext="$libext"
18740
18741# Shared library suffix (normally ".so").
18742shrext_cmds='$shrext_cmds'
18743
18744# Executable file suffix (normally "").
18745exeext="$exeext"
18746
18747# Additional compiler flags for building library objects.
18748pic_flag=$lt_lt_prog_compiler_pic_RC
18749pic_mode=$pic_mode
18750
18751# What is the maximum length of a command?
18752max_cmd_len=$lt_cv_sys_max_cmd_len
18753
18754# Does compiler simultaneously support -c and -o options?
18755compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18756
18757# Must we lock files when doing compilation?
18758need_locks=$lt_need_locks
18759
18760# Do we need the lib prefix for modules?
18761need_lib_prefix=$need_lib_prefix
18762
18763# Do we need a version for libraries?
18764need_version=$need_version
18765
18766# Whether dlopen is supported.
18767dlopen_support=$enable_dlopen
18768
18769# Whether dlopen of programs is supported.
18770dlopen_self=$enable_dlopen_self
18771
18772# Whether dlopen of statically linked programs is supported.
18773dlopen_self_static=$enable_dlopen_self_static
18774
18775# Compiler flag to prevent dynamic linking.
18776link_static_flag=$lt_lt_prog_compiler_static_RC
18777
18778# Compiler flag to turn off builtin functions.
18779no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18780
18781# Compiler flag to allow reflexive dlopens.
18782export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18783
18784# Compiler flag to generate shared objects directly from archives.
18785whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18786
18787# Compiler flag to generate thread-safe objects.
18788thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18789
18790# Library versioning type.
18791version_type=$version_type
18792
18793# Format of library name prefix.
18794libname_spec=$lt_libname_spec
18795
18796# List of archive names.  First name is the real one, the rest are links.
18797# The last name is the one that the linker finds with -lNAME.
18798library_names_spec=$lt_library_names_spec
18799
18800# The coded name of the library, if different from the real name.
18801soname_spec=$lt_soname_spec
18802
18803# Commands used to build and install an old-style archive.
18804RANLIB=$lt_RANLIB
18805old_archive_cmds=$lt_old_archive_cmds_RC
18806old_postinstall_cmds=$lt_old_postinstall_cmds
18807old_postuninstall_cmds=$lt_old_postuninstall_cmds
18808
18809# Create an old-style archive from a shared archive.
18810old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18811
18812# Create a temporary old-style archive to link instead of a shared archive.
18813old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18814
18815# Commands used to build and install a shared archive.
18816archive_cmds=$lt_archive_cmds_RC
18817archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18818postinstall_cmds=$lt_postinstall_cmds
18819postuninstall_cmds=$lt_postuninstall_cmds
18820
18821# Commands used to build a loadable module (assumed same as above if empty)
18822module_cmds=$lt_module_cmds_RC
18823module_expsym_cmds=$lt_module_expsym_cmds_RC
18824
18825# Commands to strip libraries.
18826old_striplib=$lt_old_striplib
18827striplib=$lt_striplib
18828
18829# Dependencies to place before the objects being linked to create a
18830# shared library.
18831predep_objects=$lt_predep_objects_RC
18832
18833# Dependencies to place after the objects being linked to create a
18834# shared library.
18835postdep_objects=$lt_postdep_objects_RC
18836
18837# Dependencies to place before the objects being linked to create a
18838# shared library.
18839predeps=$lt_predeps_RC
18840
18841# Dependencies to place after the objects being linked to create a
18842# shared library.
18843postdeps=$lt_postdeps_RC
18844
18845# The directories searched by this compiler when creating a shared
18846# library
18847compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18848
18849# The library search path used internally by the compiler when linking
18850# a shared library.
18851compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18852
18853# Method to check whether dependent libraries are shared objects.
18854deplibs_check_method=$lt_deplibs_check_method
18855
18856# Command to use when deplibs_check_method == file_magic.
18857file_magic_cmd=$lt_file_magic_cmd
18858
18859# Flag that allows shared libraries with undefined symbols to be built.
18860allow_undefined_flag=$lt_allow_undefined_flag_RC
18861
18862# Flag that forces no undefined symbols.
18863no_undefined_flag=$lt_no_undefined_flag_RC
18864
18865# Commands used to finish a libtool library installation in a directory.
18866finish_cmds=$lt_finish_cmds
18867
18868# Same as above, but a single script fragment to be evaled but not shown.
18869finish_eval=$lt_finish_eval
18870
18871# Take the output of nm and produce a listing of raw symbols and C names.
18872global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18873
18874# Transform the output of nm in a proper C declaration
18875global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18876
18877# Transform the output of nm in a C name address pair
18878global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18879
18880# This is the shared library runtime path variable.
18881runpath_var=$runpath_var
18882
18883# This is the shared library path variable.
18884shlibpath_var=$shlibpath_var
18885
18886# Is shlibpath searched before the hard-coded library search path?
18887shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18888
18889# How to hardcode a shared library path into an executable.
18890hardcode_action=$hardcode_action_RC
18891
18892# Whether we should hardcode library paths into libraries.
18893hardcode_into_libs=$hardcode_into_libs
18894
18895# Flag to hardcode \$libdir into a binary during linking.
18896# This must work even if \$libdir does not exist.
18897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18898
18899# If ld is used when linking, flag to hardcode \$libdir into
18900# a binary during linking. This must work even if \$libdir does
18901# not exist.
18902hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18903
18904# Whether we need a single -rpath flag with a separated argument.
18905hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18906
18907# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18908# resulting binary.
18909hardcode_direct=$hardcode_direct_RC
18910
18911# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18912# resulting binary.
18913hardcode_minus_L=$hardcode_minus_L_RC
18914
18915# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18916# the resulting binary.
18917hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18918
18919# Set to yes if building a shared library automatically hardcodes DIR into the library
18920# and all subsequent libraries and executables linked against it.
18921hardcode_automatic=$hardcode_automatic_RC
18922
18923# Variables whose values should be saved in libtool wrapper scripts and
18924# restored at relink time.
18925variables_saved_for_relink="$variables_saved_for_relink"
18926
18927# Whether libtool must link a program against all its dependency libraries.
18928link_all_deplibs=$link_all_deplibs_RC
18929
18930# Compile-time system search path for libraries
18931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18932
18933# Run-time system search path for libraries
18934sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18935
18936# Fix the shell variable \$srcfile for the compiler.
18937fix_srcfile_path=$lt_fix_srcfile_path
18938
18939# Set to yes if exported symbols are required.
18940always_export_symbols=$always_export_symbols_RC
18941
18942# The commands to list exported symbols.
18943export_symbols_cmds=$lt_export_symbols_cmds_RC
18944
18945# The commands to extract the exported symbol list from a shared archive.
18946extract_expsyms_cmds=$lt_extract_expsyms_cmds
18947
18948# Symbols that should not be listed in the preloaded symbols.
18949exclude_expsyms=$lt_exclude_expsyms_RC
18950
18951# Symbols that must always be exported.
18952include_expsyms=$lt_include_expsyms_RC
18953
18954# ### END LIBTOOL TAG CONFIG: $tagname
18955
18956__EOF__
18957
18958
18959else
18960  # If there is no Makefile yet, we rely on a make rule to execute
18961  # `config.status --recheck' to rerun these tests and create the
18962  # libtool script then.
18963  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18964  if test -f "$ltmain_in"; then
18965    test -f Makefile && make "$ltmain"
18966  fi
18967fi
18968
18969
18970ac_ext=c
18971ac_cpp='$CPP $CPPFLAGS'
18972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18974ac_compiler_gnu=$ac_cv_c_compiler_gnu
18975
18976CC="$lt_save_CC"
18977
18978	;;
18979
18980      *)
18981	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18982echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18983   { (exit 1); exit 1; }; }
18984	;;
18985      esac
18986
18987      # Append the new tag name to the list of available tags.
18988      if test -n "$tagname" ; then
18989      available_tags="$available_tags $tagname"
18990    fi
18991    fi
18992  done
18993  IFS="$lt_save_ifs"
18994
18995  # Now substitute the updated list of available tags.
18996  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18997    mv "${ofile}T" "$ofile"
18998    chmod +x "$ofile"
18999  else
19000    rm -f "${ofile}T"
19001    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19002echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19003   { (exit 1); exit 1; }; }
19004  fi
19005fi
19006
19007
19008
19009# This can be used to rebuild libtool when needed
19010LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19011
19012# Always use our own libtool.
19013LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19014
19015# Prevent multiple expansion
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036ac_ext=c
19037ac_cpp='$CPP $CPPFLAGS'
19038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19040ac_compiler_gnu=$ac_cv_c_compiler_gnu
19041if test -n "$ac_tool_prefix"; then
19042  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19043set dummy ${ac_tool_prefix}gcc; ac_word=$2
19044echo "$as_me:$LINENO: checking for $ac_word" >&5
19045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19046if test "${ac_cv_prog_CC+set}" = set; then
19047  echo $ECHO_N "(cached) $ECHO_C" >&6
19048else
19049  if test -n "$CC"; then
19050  ac_cv_prog_CC="$CC" # Let the user override the test.
19051else
19052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19053for as_dir in $PATH
19054do
19055  IFS=$as_save_IFS
19056  test -z "$as_dir" && as_dir=.
19057  for ac_exec_ext in '' $ac_executable_extensions; do
19058  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19059    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19061    break 2
19062  fi
19063done
19064done
19065
19066fi
19067fi
19068CC=$ac_cv_prog_CC
19069if test -n "$CC"; then
19070  echo "$as_me:$LINENO: result: $CC" >&5
19071echo "${ECHO_T}$CC" >&6
19072else
19073  echo "$as_me:$LINENO: result: no" >&5
19074echo "${ECHO_T}no" >&6
19075fi
19076
19077fi
19078if test -z "$ac_cv_prog_CC"; then
19079  ac_ct_CC=$CC
19080  # Extract the first word of "gcc", so it can be a program name with args.
19081set dummy gcc; ac_word=$2
19082echo "$as_me:$LINENO: checking for $ac_word" >&5
19083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19084if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19085  echo $ECHO_N "(cached) $ECHO_C" >&6
19086else
19087  if test -n "$ac_ct_CC"; then
19088  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19089else
19090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19091for as_dir in $PATH
19092do
19093  IFS=$as_save_IFS
19094  test -z "$as_dir" && as_dir=.
19095  for ac_exec_ext in '' $ac_executable_extensions; do
19096  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19097    ac_cv_prog_ac_ct_CC="gcc"
19098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19099    break 2
19100  fi
19101done
19102done
19103
19104fi
19105fi
19106ac_ct_CC=$ac_cv_prog_ac_ct_CC
19107if test -n "$ac_ct_CC"; then
19108  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19109echo "${ECHO_T}$ac_ct_CC" >&6
19110else
19111  echo "$as_me:$LINENO: result: no" >&5
19112echo "${ECHO_T}no" >&6
19113fi
19114
19115  CC=$ac_ct_CC
19116else
19117  CC="$ac_cv_prog_CC"
19118fi
19119
19120if test -z "$CC"; then
19121  if test -n "$ac_tool_prefix"; then
19122  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19123set dummy ${ac_tool_prefix}cc; ac_word=$2
19124echo "$as_me:$LINENO: checking for $ac_word" >&5
19125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19126if test "${ac_cv_prog_CC+set}" = set; then
19127  echo $ECHO_N "(cached) $ECHO_C" >&6
19128else
19129  if test -n "$CC"; then
19130  ac_cv_prog_CC="$CC" # Let the user override the test.
19131else
19132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19133for as_dir in $PATH
19134do
19135  IFS=$as_save_IFS
19136  test -z "$as_dir" && as_dir=.
19137  for ac_exec_ext in '' $ac_executable_extensions; do
19138  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19139    ac_cv_prog_CC="${ac_tool_prefix}cc"
19140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19141    break 2
19142  fi
19143done
19144done
19145
19146fi
19147fi
19148CC=$ac_cv_prog_CC
19149if test -n "$CC"; then
19150  echo "$as_me:$LINENO: result: $CC" >&5
19151echo "${ECHO_T}$CC" >&6
19152else
19153  echo "$as_me:$LINENO: result: no" >&5
19154echo "${ECHO_T}no" >&6
19155fi
19156
19157fi
19158if test -z "$ac_cv_prog_CC"; then
19159  ac_ct_CC=$CC
19160  # Extract the first word of "cc", so it can be a program name with args.
19161set dummy cc; ac_word=$2
19162echo "$as_me:$LINENO: checking for $ac_word" >&5
19163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19164if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19165  echo $ECHO_N "(cached) $ECHO_C" >&6
19166else
19167  if test -n "$ac_ct_CC"; then
19168  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19169else
19170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19171for as_dir in $PATH
19172do
19173  IFS=$as_save_IFS
19174  test -z "$as_dir" && as_dir=.
19175  for ac_exec_ext in '' $ac_executable_extensions; do
19176  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19177    ac_cv_prog_ac_ct_CC="cc"
19178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19179    break 2
19180  fi
19181done
19182done
19183
19184fi
19185fi
19186ac_ct_CC=$ac_cv_prog_ac_ct_CC
19187if test -n "$ac_ct_CC"; then
19188  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19189echo "${ECHO_T}$ac_ct_CC" >&6
19190else
19191  echo "$as_me:$LINENO: result: no" >&5
19192echo "${ECHO_T}no" >&6
19193fi
19194
19195  CC=$ac_ct_CC
19196else
19197  CC="$ac_cv_prog_CC"
19198fi
19199
19200fi
19201if test -z "$CC"; then
19202  # Extract the first word of "cc", so it can be a program name with args.
19203set dummy cc; ac_word=$2
19204echo "$as_me:$LINENO: checking for $ac_word" >&5
19205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19206if test "${ac_cv_prog_CC+set}" = set; then
19207  echo $ECHO_N "(cached) $ECHO_C" >&6
19208else
19209  if test -n "$CC"; then
19210  ac_cv_prog_CC="$CC" # Let the user override the test.
19211else
19212  ac_prog_rejected=no
19213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19214for as_dir in $PATH
19215do
19216  IFS=$as_save_IFS
19217  test -z "$as_dir" && as_dir=.
19218  for ac_exec_ext in '' $ac_executable_extensions; do
19219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19220    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19221       ac_prog_rejected=yes
19222       continue
19223     fi
19224    ac_cv_prog_CC="cc"
19225    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19226    break 2
19227  fi
19228done
19229done
19230
19231if test $ac_prog_rejected = yes; then
19232  # We found a bogon in the path, so make sure we never use it.
19233  set dummy $ac_cv_prog_CC
19234  shift
19235  if test $# != 0; then
19236    # We chose a different compiler from the bogus one.
19237    # However, it has the same basename, so the bogon will be chosen
19238    # first if we set CC to just the basename; use the full file name.
19239    shift
19240    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19241  fi
19242fi
19243fi
19244fi
19245CC=$ac_cv_prog_CC
19246if test -n "$CC"; then
19247  echo "$as_me:$LINENO: result: $CC" >&5
19248echo "${ECHO_T}$CC" >&6
19249else
19250  echo "$as_me:$LINENO: result: no" >&5
19251echo "${ECHO_T}no" >&6
19252fi
19253
19254fi
19255if test -z "$CC"; then
19256  if test -n "$ac_tool_prefix"; then
19257  for ac_prog in cl
19258  do
19259    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19260set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19261echo "$as_me:$LINENO: checking for $ac_word" >&5
19262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19263if test "${ac_cv_prog_CC+set}" = set; then
19264  echo $ECHO_N "(cached) $ECHO_C" >&6
19265else
19266  if test -n "$CC"; then
19267  ac_cv_prog_CC="$CC" # Let the user override the test.
19268else
19269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19270for as_dir in $PATH
19271do
19272  IFS=$as_save_IFS
19273  test -z "$as_dir" && as_dir=.
19274  for ac_exec_ext in '' $ac_executable_extensions; do
19275  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19276    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19277    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19278    break 2
19279  fi
19280done
19281done
19282
19283fi
19284fi
19285CC=$ac_cv_prog_CC
19286if test -n "$CC"; then
19287  echo "$as_me:$LINENO: result: $CC" >&5
19288echo "${ECHO_T}$CC" >&6
19289else
19290  echo "$as_me:$LINENO: result: no" >&5
19291echo "${ECHO_T}no" >&6
19292fi
19293
19294    test -n "$CC" && break
19295  done
19296fi
19297if test -z "$CC"; then
19298  ac_ct_CC=$CC
19299  for ac_prog in cl
19300do
19301  # Extract the first word of "$ac_prog", so it can be a program name with args.
19302set dummy $ac_prog; ac_word=$2
19303echo "$as_me:$LINENO: checking for $ac_word" >&5
19304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19305if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19306  echo $ECHO_N "(cached) $ECHO_C" >&6
19307else
19308  if test -n "$ac_ct_CC"; then
19309  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19310else
19311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19312for as_dir in $PATH
19313do
19314  IFS=$as_save_IFS
19315  test -z "$as_dir" && as_dir=.
19316  for ac_exec_ext in '' $ac_executable_extensions; do
19317  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19318    ac_cv_prog_ac_ct_CC="$ac_prog"
19319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19320    break 2
19321  fi
19322done
19323done
19324
19325fi
19326fi
19327ac_ct_CC=$ac_cv_prog_ac_ct_CC
19328if test -n "$ac_ct_CC"; then
19329  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19330echo "${ECHO_T}$ac_ct_CC" >&6
19331else
19332  echo "$as_me:$LINENO: result: no" >&5
19333echo "${ECHO_T}no" >&6
19334fi
19335
19336  test -n "$ac_ct_CC" && break
19337done
19338
19339  CC=$ac_ct_CC
19340fi
19341
19342fi
19343
19344
19345test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19346See \`config.log' for more details." >&5
19347echo "$as_me: error: no acceptable C compiler found in \$PATH
19348See \`config.log' for more details." >&2;}
19349   { (exit 1); exit 1; }; }
19350
19351# Provide some information about the compiler.
19352echo "$as_me:$LINENO:" \
19353     "checking for C compiler version" >&5
19354ac_compiler=`set X $ac_compile; echo $2`
19355{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19356  (eval $ac_compiler --version </dev/null >&5) 2>&5
19357  ac_status=$?
19358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359  (exit $ac_status); }
19360{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19361  (eval $ac_compiler -v </dev/null >&5) 2>&5
19362  ac_status=$?
19363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364  (exit $ac_status); }
19365{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19366  (eval $ac_compiler -V </dev/null >&5) 2>&5
19367  ac_status=$?
19368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369  (exit $ac_status); }
19370
19371echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19372echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19373if test "${ac_cv_c_compiler_gnu+set}" = set; then
19374  echo $ECHO_N "(cached) $ECHO_C" >&6
19375else
19376  cat >conftest.$ac_ext <<_ACEOF
19377/* confdefs.h.  */
19378_ACEOF
19379cat confdefs.h >>conftest.$ac_ext
19380cat >>conftest.$ac_ext <<_ACEOF
19381/* end confdefs.h.  */
19382
19383int
19384main ()
19385{
19386#ifndef __GNUC__
19387       choke me
19388#endif
19389
19390  ;
19391  return 0;
19392}
19393_ACEOF
19394rm -f conftest.$ac_objext
19395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19396  (eval $ac_compile) 2>conftest.er1
19397  ac_status=$?
19398  grep -v '^ *+' conftest.er1 >conftest.err
19399  rm -f conftest.er1
19400  cat conftest.err >&5
19401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402  (exit $ac_status); } &&
19403	 { ac_try='test -z "$ac_c_werror_flag"
19404			 || test ! -s conftest.err'
19405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406  (eval $ac_try) 2>&5
19407  ac_status=$?
19408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409  (exit $ac_status); }; } &&
19410	 { ac_try='test -s conftest.$ac_objext'
19411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412  (eval $ac_try) 2>&5
19413  ac_status=$?
19414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415  (exit $ac_status); }; }; then
19416  ac_compiler_gnu=yes
19417else
19418  echo "$as_me: failed program was:" >&5
19419sed 's/^/| /' conftest.$ac_ext >&5
19420
19421ac_compiler_gnu=no
19422fi
19423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19424ac_cv_c_compiler_gnu=$ac_compiler_gnu
19425
19426fi
19427echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19428echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19429GCC=`test $ac_compiler_gnu = yes && echo yes`
19430ac_test_CFLAGS=${CFLAGS+set}
19431ac_save_CFLAGS=$CFLAGS
19432CFLAGS="-g"
19433echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19434echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19435if test "${ac_cv_prog_cc_g+set}" = set; then
19436  echo $ECHO_N "(cached) $ECHO_C" >&6
19437else
19438  cat >conftest.$ac_ext <<_ACEOF
19439/* confdefs.h.  */
19440_ACEOF
19441cat confdefs.h >>conftest.$ac_ext
19442cat >>conftest.$ac_ext <<_ACEOF
19443/* end confdefs.h.  */
19444
19445int
19446main ()
19447{
19448
19449  ;
19450  return 0;
19451}
19452_ACEOF
19453rm -f conftest.$ac_objext
19454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19455  (eval $ac_compile) 2>conftest.er1
19456  ac_status=$?
19457  grep -v '^ *+' conftest.er1 >conftest.err
19458  rm -f conftest.er1
19459  cat conftest.err >&5
19460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461  (exit $ac_status); } &&
19462	 { ac_try='test -z "$ac_c_werror_flag"
19463			 || test ! -s conftest.err'
19464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465  (eval $ac_try) 2>&5
19466  ac_status=$?
19467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468  (exit $ac_status); }; } &&
19469	 { ac_try='test -s conftest.$ac_objext'
19470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471  (eval $ac_try) 2>&5
19472  ac_status=$?
19473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474  (exit $ac_status); }; }; then
19475  ac_cv_prog_cc_g=yes
19476else
19477  echo "$as_me: failed program was:" >&5
19478sed 's/^/| /' conftest.$ac_ext >&5
19479
19480ac_cv_prog_cc_g=no
19481fi
19482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19483fi
19484echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19485echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19486if test "$ac_test_CFLAGS" = set; then
19487  CFLAGS=$ac_save_CFLAGS
19488elif test $ac_cv_prog_cc_g = yes; then
19489  if test "$GCC" = yes; then
19490    CFLAGS="-g -O2"
19491  else
19492    CFLAGS="-g"
19493  fi
19494else
19495  if test "$GCC" = yes; then
19496    CFLAGS="-O2"
19497  else
19498    CFLAGS=
19499  fi
19500fi
19501echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19502echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19503if test "${ac_cv_prog_cc_stdc+set}" = set; then
19504  echo $ECHO_N "(cached) $ECHO_C" >&6
19505else
19506  ac_cv_prog_cc_stdc=no
19507ac_save_CC=$CC
19508cat >conftest.$ac_ext <<_ACEOF
19509/* confdefs.h.  */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h.  */
19514#include <stdarg.h>
19515#include <stdio.h>
19516#include <sys/types.h>
19517#include <sys/stat.h>
19518/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19519struct buf { int x; };
19520FILE * (*rcsopen) (struct buf *, struct stat *, int);
19521static char *e (p, i)
19522     char **p;
19523     int i;
19524{
19525  return p[i];
19526}
19527static char *f (char * (*g) (char **, int), char **p, ...)
19528{
19529  char *s;
19530  va_list v;
19531  va_start (v,p);
19532  s = g (p, va_arg (v,int));
19533  va_end (v);
19534  return s;
19535}
19536
19537/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19538   function prototypes and stuff, but not '\xHH' hex character constants.
19539   These don't provoke an error unfortunately, instead are silently treated
19540   as 'x'.  The following induces an error, until -std1 is added to get
19541   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19542   array size at least.  It's necessary to write '\x00'==0 to get something
19543   that's true only with -std1.  */
19544int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19545
19546int test (int i, double x);
19547struct s1 {int (*f) (int a);};
19548struct s2 {int (*f) (double a);};
19549int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19550int argc;
19551char **argv;
19552int
19553main ()
19554{
19555return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19556  ;
19557  return 0;
19558}
19559_ACEOF
19560# Don't try gcc -ansi; that turns off useful extensions and
19561# breaks some systems' header files.
19562# AIX			-qlanglvl=ansi
19563# Ultrix and OSF/1	-std1
19564# HP-UX 10.20 and later	-Ae
19565# HP-UX older versions	-Aa -D_HPUX_SOURCE
19566# SVR4			-Xc -D__EXTENSIONS__
19567for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19568do
19569  CC="$ac_save_CC $ac_arg"
19570  rm -f conftest.$ac_objext
19571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19572  (eval $ac_compile) 2>conftest.er1
19573  ac_status=$?
19574  grep -v '^ *+' conftest.er1 >conftest.err
19575  rm -f conftest.er1
19576  cat conftest.err >&5
19577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578  (exit $ac_status); } &&
19579	 { ac_try='test -z "$ac_c_werror_flag"
19580			 || test ! -s conftest.err'
19581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582  (eval $ac_try) 2>&5
19583  ac_status=$?
19584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585  (exit $ac_status); }; } &&
19586	 { ac_try='test -s conftest.$ac_objext'
19587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588  (eval $ac_try) 2>&5
19589  ac_status=$?
19590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591  (exit $ac_status); }; }; then
19592  ac_cv_prog_cc_stdc=$ac_arg
19593break
19594else
19595  echo "$as_me: failed program was:" >&5
19596sed 's/^/| /' conftest.$ac_ext >&5
19597
19598fi
19599rm -f conftest.err conftest.$ac_objext
19600done
19601rm -f conftest.$ac_ext conftest.$ac_objext
19602CC=$ac_save_CC
19603
19604fi
19605
19606case "x$ac_cv_prog_cc_stdc" in
19607  x|xno)
19608    echo "$as_me:$LINENO: result: none needed" >&5
19609echo "${ECHO_T}none needed" >&6 ;;
19610  *)
19611    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19612echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19613    CC="$CC $ac_cv_prog_cc_stdc" ;;
19614esac
19615
19616# Some people use a C++ compiler to compile C.  Since we use `exit',
19617# in C++ we need to declare it.  In case someone uses the same compiler
19618# for both compiling C and C++ we need to have the C++ compiler decide
19619# the declaration of exit, since it's the most demanding environment.
19620cat >conftest.$ac_ext <<_ACEOF
19621#ifndef __cplusplus
19622  choke me
19623#endif
19624_ACEOF
19625rm -f conftest.$ac_objext
19626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19627  (eval $ac_compile) 2>conftest.er1
19628  ac_status=$?
19629  grep -v '^ *+' conftest.er1 >conftest.err
19630  rm -f conftest.er1
19631  cat conftest.err >&5
19632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633  (exit $ac_status); } &&
19634	 { ac_try='test -z "$ac_c_werror_flag"
19635			 || test ! -s conftest.err'
19636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637  (eval $ac_try) 2>&5
19638  ac_status=$?
19639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640  (exit $ac_status); }; } &&
19641	 { ac_try='test -s conftest.$ac_objext'
19642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643  (eval $ac_try) 2>&5
19644  ac_status=$?
19645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646  (exit $ac_status); }; }; then
19647  for ac_declaration in \
19648   '' \
19649   'extern "C" void std::exit (int) throw (); using std::exit;' \
19650   'extern "C" void std::exit (int); using std::exit;' \
19651   'extern "C" void exit (int) throw ();' \
19652   'extern "C" void exit (int);' \
19653   'void exit (int);'
19654do
19655  cat >conftest.$ac_ext <<_ACEOF
19656/* confdefs.h.  */
19657_ACEOF
19658cat confdefs.h >>conftest.$ac_ext
19659cat >>conftest.$ac_ext <<_ACEOF
19660/* end confdefs.h.  */
19661$ac_declaration
19662#include <stdlib.h>
19663int
19664main ()
19665{
19666exit (42);
19667  ;
19668  return 0;
19669}
19670_ACEOF
19671rm -f conftest.$ac_objext
19672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19673  (eval $ac_compile) 2>conftest.er1
19674  ac_status=$?
19675  grep -v '^ *+' conftest.er1 >conftest.err
19676  rm -f conftest.er1
19677  cat conftest.err >&5
19678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679  (exit $ac_status); } &&
19680	 { ac_try='test -z "$ac_c_werror_flag"
19681			 || test ! -s conftest.err'
19682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683  (eval $ac_try) 2>&5
19684  ac_status=$?
19685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686  (exit $ac_status); }; } &&
19687	 { ac_try='test -s conftest.$ac_objext'
19688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689  (eval $ac_try) 2>&5
19690  ac_status=$?
19691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692  (exit $ac_status); }; }; then
19693  :
19694else
19695  echo "$as_me: failed program was:" >&5
19696sed 's/^/| /' conftest.$ac_ext >&5
19697
19698continue
19699fi
19700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19701  cat >conftest.$ac_ext <<_ACEOF
19702/* confdefs.h.  */
19703_ACEOF
19704cat confdefs.h >>conftest.$ac_ext
19705cat >>conftest.$ac_ext <<_ACEOF
19706/* end confdefs.h.  */
19707$ac_declaration
19708int
19709main ()
19710{
19711exit (42);
19712  ;
19713  return 0;
19714}
19715_ACEOF
19716rm -f conftest.$ac_objext
19717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718  (eval $ac_compile) 2>conftest.er1
19719  ac_status=$?
19720  grep -v '^ *+' conftest.er1 >conftest.err
19721  rm -f conftest.er1
19722  cat conftest.err >&5
19723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724  (exit $ac_status); } &&
19725	 { ac_try='test -z "$ac_c_werror_flag"
19726			 || test ! -s conftest.err'
19727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728  (eval $ac_try) 2>&5
19729  ac_status=$?
19730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731  (exit $ac_status); }; } &&
19732	 { ac_try='test -s conftest.$ac_objext'
19733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734  (eval $ac_try) 2>&5
19735  ac_status=$?
19736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737  (exit $ac_status); }; }; then
19738  break
19739else
19740  echo "$as_me: failed program was:" >&5
19741sed 's/^/| /' conftest.$ac_ext >&5
19742
19743fi
19744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19745done
19746rm -f conftest*
19747if test -n "$ac_declaration"; then
19748  echo '#ifdef __cplusplus' >>confdefs.h
19749  echo $ac_declaration      >>confdefs.h
19750  echo '#endif'             >>confdefs.h
19751fi
19752
19753else
19754  echo "$as_me: failed program was:" >&5
19755sed 's/^/| /' conftest.$ac_ext >&5
19756
19757fi
19758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19759ac_ext=c
19760ac_cpp='$CPP $CPPFLAGS'
19761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19763ac_compiler_gnu=$ac_cv_c_compiler_gnu
19764
19765depcc="$CC"   am_compiler_list=
19766
19767echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19768echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19769if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19770  echo $ECHO_N "(cached) $ECHO_C" >&6
19771else
19772  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19773  # We make a subdir and do the tests there.  Otherwise we can end up
19774  # making bogus files that we don't know about and never remove.  For
19775  # instance it was reported that on HP-UX the gcc test will end up
19776  # making a dummy file named `D' -- because `-MD' means `put the output
19777  # in D'.
19778  mkdir conftest.dir
19779  # Copy depcomp to subdir because otherwise we won't find it if we're
19780  # using a relative directory.
19781  cp "$am_depcomp" conftest.dir
19782  cd conftest.dir
19783  # We will build objects and dependencies in a subdirectory because
19784  # it helps to detect inapplicable dependency modes.  For instance
19785  # both Tru64's cc and ICC support -MD to output dependencies as a
19786  # side effect of compilation, but ICC will put the dependencies in
19787  # the current directory while Tru64 will put them in the object
19788  # directory.
19789  mkdir sub
19790
19791  am_cv_CC_dependencies_compiler_type=none
19792  if test "$am_compiler_list" = ""; then
19793     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19794  fi
19795  for depmode in $am_compiler_list; do
19796    # Setup a source with many dependencies, because some compilers
19797    # like to wrap large dependency lists on column 80 (with \), and
19798    # we should not choose a depcomp mode which is confused by this.
19799    #
19800    # We need to recreate these files for each test, as the compiler may
19801    # overwrite some of them when testing with obscure command lines.
19802    # This happens at least with the AIX C compiler.
19803    : > sub/conftest.c
19804    for i in 1 2 3 4 5 6; do
19805      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19806      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19807      # Solaris 8's {/usr,}/bin/sh.
19808      touch sub/conftst$i.h
19809    done
19810    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19811
19812    case $depmode in
19813    nosideeffect)
19814      # after this tag, mechanisms are not by side-effect, so they'll
19815      # only be used when explicitly requested
19816      if test "x$enable_dependency_tracking" = xyes; then
19817	continue
19818      else
19819	break
19820      fi
19821      ;;
19822    none) break ;;
19823    esac
19824    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19825    # mode.  It turns out that the SunPro C++ compiler does not properly
19826    # handle `-M -o', and we need to detect this.
19827    if depmode=$depmode \
19828       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19829       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19830       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19831         >/dev/null 2>conftest.err &&
19832       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19833       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19834       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19835      # icc doesn't choke on unknown options, it will just issue warnings
19836      # or remarks (even with -Werror).  So we grep stderr for any message
19837      # that says an option was ignored or not supported.
19838      # When given -MP, icc 7.0 and 7.1 complain thusly:
19839      #   icc: Command line warning: ignoring option '-M'; no argument required
19840      # The diagnosis changed in icc 8.0:
19841      #   icc: Command line remark: option '-MP' not supported
19842      if (grep 'ignoring option' conftest.err ||
19843          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19844        am_cv_CC_dependencies_compiler_type=$depmode
19845        break
19846      fi
19847    fi
19848  done
19849
19850  cd ..
19851  rm -rf conftest.dir
19852else
19853  am_cv_CC_dependencies_compiler_type=none
19854fi
19855
19856fi
19857echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19858echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19859CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19860
19861
19862
19863if
19864  test "x$enable_dependency_tracking" != xno \
19865  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19866  am__fastdepCC_TRUE=
19867  am__fastdepCC_FALSE='#'
19868else
19869  am__fastdepCC_TRUE='#'
19870  am__fastdepCC_FALSE=
19871fi
19872
19873
19874
19875
19876
19877
19878#AC_DEFINE(XFree86LOADER,1,[Stub define for loadable drivers])
19879#
19880#AC_ARG_ENABLE(XINPUT, AS_HELP_STRING([--enable-xinput],
19881#              [Build XInput support (default: yes)]),
19882#              [XINPUT=$enableval],[XINPUT=yes])
19883#AM_CONDITIONAL(XINPUT, test "x$XINPUT" = "xyes")
19884#if test "x$XINPUT" = "xyes" ; then
19885#    AC_DEFINE(XINPUT,1,[Enable XInput support])
19886#fi
19887#
19888#AC_ARG_ENABLE(XKB, AS_HELP_STRING([--enable-xkb],
19889#              [Build XKB support (default: yes)]),
19890#              [XKB=$enableval],[XKB=yes])
19891#AM_CONDITIONAL(XKB, test "x$XKB" = "xyes")
19892#if test "x$XKB" = "xyes" ; then
19893#    AC_DEFINE(XKB,1,[Enable XKB support])
19894#fi
19895
19896
19897# Check whether --with-xorg-module-dir or --without-xorg-module-dir was given.
19898if test "${with_xorg_module_dir+set}" = set; then
19899  withval="$with_xorg_module_dir"
19900  moduledir="$withval"
19901else
19902  moduledir="$libdir/xorg/modules"
19903fi;
19904inputdir=${moduledir}/input
19905
19906
19907# Checks for extensions
19908
19909	SAVE_CFLAGS="$CFLAGS"
19910	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19911	cat >conftest.$ac_ext <<_ACEOF
19912/* confdefs.h.  */
19913_ACEOF
19914cat confdefs.h >>conftest.$ac_ext
19915cat >>conftest.$ac_ext <<_ACEOF
19916/* end confdefs.h.  */
19917
19918#include "xorg-server.h"
19919#if !defined RANDR
19920#error RANDR not defined
19921#endif
19922
19923int
19924main ()
19925{
19926
19927  ;
19928  return 0;
19929}
19930_ACEOF
19931rm -f conftest.$ac_objext
19932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19933  (eval $ac_compile) 2>conftest.er1
19934  ac_status=$?
19935  grep -v '^ *+' conftest.er1 >conftest.err
19936  rm -f conftest.er1
19937  cat conftest.err >&5
19938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939  (exit $ac_status); } &&
19940	 { ac_try='test -z "$ac_c_werror_flag"
19941			 || test ! -s conftest.err'
19942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943  (eval $ac_try) 2>&5
19944  ac_status=$?
19945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946  (exit $ac_status); }; } &&
19947	 { ac_try='test -s conftest.$ac_objext'
19948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949  (eval $ac_try) 2>&5
19950  ac_status=$?
19951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952  (exit $ac_status); }; }; then
19953  _EXT_CHECK=yes
19954else
19955  echo "$as_me: failed program was:" >&5
19956sed 's/^/| /' conftest.$ac_ext >&5
19957
19958_EXT_CHECK=no
19959fi
19960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19961	CFLAGS="$SAVE_CFLAGS"
19962	echo "$as_me:$LINENO: checking if RANDR is defined" >&5
19963echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6
19964	echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19965echo "${ECHO_T}$_EXT_CHECK" >&6
19966	if test "$_EXT_CHECK" != no; then
19967		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19968	fi
19969
19970
19971	SAVE_CFLAGS="$CFLAGS"
19972	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19973	cat >conftest.$ac_ext <<_ACEOF
19974/* confdefs.h.  */
19975_ACEOF
19976cat confdefs.h >>conftest.$ac_ext
19977cat >>conftest.$ac_ext <<_ACEOF
19978/* end confdefs.h.  */
19979
19980#include "xorg-server.h"
19981#if !defined XINPUT
19982#error XINPUT not defined
19983#endif
19984
19985int
19986main ()
19987{
19988
19989  ;
19990  return 0;
19991}
19992_ACEOF
19993rm -f conftest.$ac_objext
19994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19995  (eval $ac_compile) 2>conftest.er1
19996  ac_status=$?
19997  grep -v '^ *+' conftest.er1 >conftest.err
19998  rm -f conftest.er1
19999  cat conftest.err >&5
20000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001  (exit $ac_status); } &&
20002	 { ac_try='test -z "$ac_c_werror_flag"
20003			 || test ! -s conftest.err'
20004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005  (eval $ac_try) 2>&5
20006  ac_status=$?
20007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008  (exit $ac_status); }; } &&
20009	 { ac_try='test -s conftest.$ac_objext'
20010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011  (eval $ac_try) 2>&5
20012  ac_status=$?
20013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014  (exit $ac_status); }; }; then
20015  _EXT_CHECK=yes
20016else
20017  echo "$as_me: failed program was:" >&5
20018sed 's/^/| /' conftest.$ac_ext >&5
20019
20020_EXT_CHECK=no
20021fi
20022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20023	CFLAGS="$SAVE_CFLAGS"
20024	echo "$as_me:$LINENO: checking if XINPUT is defined" >&5
20025echo $ECHO_N "checking if XINPUT is defined... $ECHO_C" >&6
20026	echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20027echo "${ECHO_T}$_EXT_CHECK" >&6
20028	if test "$_EXT_CHECK" != no; then
20029		REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
20030	fi
20031
20032
20033# Checks for pkg-config packages
20034
20035
20036if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20037	if test -n "$ac_tool_prefix"; then
20038  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20039set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20040echo "$as_me:$LINENO: checking for $ac_word" >&5
20041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20042if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20043  echo $ECHO_N "(cached) $ECHO_C" >&6
20044else
20045  case $PKG_CONFIG in
20046  [\\/]* | ?:[\\/]*)
20047  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20048  ;;
20049  *)
20050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20051for as_dir in $PATH
20052do
20053  IFS=$as_save_IFS
20054  test -z "$as_dir" && as_dir=.
20055  for ac_exec_ext in '' $ac_executable_extensions; do
20056  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20057    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20058    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20059    break 2
20060  fi
20061done
20062done
20063
20064  ;;
20065esac
20066fi
20067PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20068
20069if test -n "$PKG_CONFIG"; then
20070  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20071echo "${ECHO_T}$PKG_CONFIG" >&6
20072else
20073  echo "$as_me:$LINENO: result: no" >&5
20074echo "${ECHO_T}no" >&6
20075fi
20076
20077fi
20078if test -z "$ac_cv_path_PKG_CONFIG"; then
20079  ac_pt_PKG_CONFIG=$PKG_CONFIG
20080  # Extract the first word of "pkg-config", so it can be a program name with args.
20081set dummy pkg-config; ac_word=$2
20082echo "$as_me:$LINENO: checking for $ac_word" >&5
20083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20084if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20085  echo $ECHO_N "(cached) $ECHO_C" >&6
20086else
20087  case $ac_pt_PKG_CONFIG in
20088  [\\/]* | ?:[\\/]*)
20089  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20090  ;;
20091  *)
20092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20093for as_dir in $PATH
20094do
20095  IFS=$as_save_IFS
20096  test -z "$as_dir" && as_dir=.
20097  for ac_exec_ext in '' $ac_executable_extensions; do
20098  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20099    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20101    break 2
20102  fi
20103done
20104done
20105
20106  ;;
20107esac
20108fi
20109ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20110
20111if test -n "$ac_pt_PKG_CONFIG"; then
20112  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20113echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
20114else
20115  echo "$as_me:$LINENO: result: no" >&5
20116echo "${ECHO_T}no" >&6
20117fi
20118
20119  PKG_CONFIG=$ac_pt_PKG_CONFIG
20120else
20121  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20122fi
20123
20124fi
20125if test -n "$PKG_CONFIG"; then
20126	_pkg_min_version=0.9.0
20127	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20128echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20129	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20130		echo "$as_me:$LINENO: result: yes" >&5
20131echo "${ECHO_T}yes" >&6
20132	else
20133		echo "$as_me:$LINENO: result: no" >&5
20134echo "${ECHO_T}no" >&6
20135		PKG_CONFIG=""
20136	fi
20137
20138fi
20139
20140pkg_failed=no
20141echo "$as_me:$LINENO: checking for XORG" >&5
20142echo $ECHO_N "checking for XORG... $ECHO_C" >&6
20143
20144if test -n "$PKG_CONFIG"; then
20145    if test -n "$XORG_CFLAGS"; then
20146        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20147    else
20148        if test -n "$PKG_CONFIG" && \
20149    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5
20150  ($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5
20151  ac_status=$?
20152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153  (exit $ac_status); }; then
20154  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null`
20155else
20156  pkg_failed=yes
20157fi
20158    fi
20159else
20160	pkg_failed=untried
20161fi
20162if test -n "$PKG_CONFIG"; then
20163    if test -n "$XORG_LIBS"; then
20164        pkg_cv_XORG_LIBS="$XORG_LIBS"
20165    else
20166        if test -n "$PKG_CONFIG" && \
20167    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5
20168  ($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5
20169  ac_status=$?
20170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171  (exit $ac_status); }; then
20172  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null`
20173else
20174  pkg_failed=yes
20175fi
20176    fi
20177else
20178	pkg_failed=untried
20179fi
20180
20181
20182
20183if test $pkg_failed = yes; then
20184
20185if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20186        _pkg_short_errors_supported=yes
20187else
20188        _pkg_short_errors_supported=no
20189fi
20190        if test $_pkg_short_errors_supported = yes; then
20191	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server xproto $REQUIRED_MODULES"`
20192        else
20193	        XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server xproto $REQUIRED_MODULES"`
20194        fi
20195	# Put the nasty error message in config.log where it belongs
20196	echo "$XORG_PKG_ERRORS" >&5
20197
20198	{ { echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met:
20199
20200$XORG_PKG_ERRORS
20201
20202Consider adjusting the PKG_CONFIG_PATH environment variable if you
20203installed software in a non-standard prefix.
20204
20205Alternatively, you may set the environment variables XORG_CFLAGS
20206and XORG_LIBS to avoid the need to call pkg-config.
20207See the pkg-config man page for more details.
20208" >&5
20209echo "$as_me: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met:
20210
20211$XORG_PKG_ERRORS
20212
20213Consider adjusting the PKG_CONFIG_PATH environment variable if you
20214installed software in a non-standard prefix.
20215
20216Alternatively, you may set the environment variables XORG_CFLAGS
20217and XORG_LIBS to avoid the need to call pkg-config.
20218See the pkg-config man page for more details.
20219" >&2;}
20220   { (exit 1); exit 1; }; }
20221elif test $pkg_failed = untried; then
20222	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20223is in your PATH or set the PKG_CONFIG environment variable to the full
20224path to pkg-config.
20225
20226Alternatively, you may set the environment variables XORG_CFLAGS
20227and XORG_LIBS to avoid the need to call pkg-config.
20228See the pkg-config man page for more details.
20229
20230To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20231See \`config.log' for more details." >&5
20232echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20233is in your PATH or set the PKG_CONFIG environment variable to the full
20234path to pkg-config.
20235
20236Alternatively, you may set the environment variables XORG_CFLAGS
20237and XORG_LIBS to avoid the need to call pkg-config.
20238See the pkg-config man page for more details.
20239
20240To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20241See \`config.log' for more details." >&2;}
20242   { (exit 1); exit 1; }; }
20243else
20244	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20245	XORG_LIBS=$pkg_cv_XORG_LIBS
20246        echo "$as_me:$LINENO: result: yes" >&5
20247echo "${ECHO_T}yes" >&6
20248	:
20249fi
20250sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20251
20252CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
20253
20254
20255# Checks for libraries.
20256
20257# Checks for header files.
20258echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20259echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20260if test "${ac_cv_header_stdc+set}" = set; then
20261  echo $ECHO_N "(cached) $ECHO_C" >&6
20262else
20263  cat >conftest.$ac_ext <<_ACEOF
20264/* confdefs.h.  */
20265_ACEOF
20266cat confdefs.h >>conftest.$ac_ext
20267cat >>conftest.$ac_ext <<_ACEOF
20268/* end confdefs.h.  */
20269#include <stdlib.h>
20270#include <stdarg.h>
20271#include <string.h>
20272#include <float.h>
20273
20274int
20275main ()
20276{
20277
20278  ;
20279  return 0;
20280}
20281_ACEOF
20282rm -f conftest.$ac_objext
20283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20284  (eval $ac_compile) 2>conftest.er1
20285  ac_status=$?
20286  grep -v '^ *+' conftest.er1 >conftest.err
20287  rm -f conftest.er1
20288  cat conftest.err >&5
20289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290  (exit $ac_status); } &&
20291	 { ac_try='test -z "$ac_c_werror_flag"
20292			 || test ! -s conftest.err'
20293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294  (eval $ac_try) 2>&5
20295  ac_status=$?
20296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297  (exit $ac_status); }; } &&
20298	 { ac_try='test -s conftest.$ac_objext'
20299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300  (eval $ac_try) 2>&5
20301  ac_status=$?
20302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303  (exit $ac_status); }; }; then
20304  ac_cv_header_stdc=yes
20305else
20306  echo "$as_me: failed program was:" >&5
20307sed 's/^/| /' conftest.$ac_ext >&5
20308
20309ac_cv_header_stdc=no
20310fi
20311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20312
20313if test $ac_cv_header_stdc = yes; then
20314  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20315  cat >conftest.$ac_ext <<_ACEOF
20316/* confdefs.h.  */
20317_ACEOF
20318cat confdefs.h >>conftest.$ac_ext
20319cat >>conftest.$ac_ext <<_ACEOF
20320/* end confdefs.h.  */
20321#include <string.h>
20322
20323_ACEOF
20324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20325  $EGREP "memchr" >/dev/null 2>&1; then
20326  :
20327else
20328  ac_cv_header_stdc=no
20329fi
20330rm -f conftest*
20331
20332fi
20333
20334if test $ac_cv_header_stdc = yes; then
20335  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20336  cat >conftest.$ac_ext <<_ACEOF
20337/* confdefs.h.  */
20338_ACEOF
20339cat confdefs.h >>conftest.$ac_ext
20340cat >>conftest.$ac_ext <<_ACEOF
20341/* end confdefs.h.  */
20342#include <stdlib.h>
20343
20344_ACEOF
20345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20346  $EGREP "free" >/dev/null 2>&1; then
20347  :
20348else
20349  ac_cv_header_stdc=no
20350fi
20351rm -f conftest*
20352
20353fi
20354
20355if test $ac_cv_header_stdc = yes; then
20356  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20357  if test "$cross_compiling" = yes; then
20358  :
20359else
20360  cat >conftest.$ac_ext <<_ACEOF
20361/* confdefs.h.  */
20362_ACEOF
20363cat confdefs.h >>conftest.$ac_ext
20364cat >>conftest.$ac_ext <<_ACEOF
20365/* end confdefs.h.  */
20366#include <ctype.h>
20367#if ((' ' & 0x0FF) == 0x020)
20368# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20369# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20370#else
20371# define ISLOWER(c) \
20372		   (('a' <= (c) && (c) <= 'i') \
20373		     || ('j' <= (c) && (c) <= 'r') \
20374		     || ('s' <= (c) && (c) <= 'z'))
20375# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20376#endif
20377
20378#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20379int
20380main ()
20381{
20382  int i;
20383  for (i = 0; i < 256; i++)
20384    if (XOR (islower (i), ISLOWER (i))
20385	|| toupper (i) != TOUPPER (i))
20386      exit(2);
20387  exit (0);
20388}
20389_ACEOF
20390rm -f conftest$ac_exeext
20391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20392  (eval $ac_link) 2>&5
20393  ac_status=$?
20394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397  (eval $ac_try) 2>&5
20398  ac_status=$?
20399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400  (exit $ac_status); }; }; then
20401  :
20402else
20403  echo "$as_me: program exited with status $ac_status" >&5
20404echo "$as_me: failed program was:" >&5
20405sed 's/^/| /' conftest.$ac_ext >&5
20406
20407( exit $ac_status )
20408ac_cv_header_stdc=no
20409fi
20410rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20411fi
20412fi
20413fi
20414echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20415echo "${ECHO_T}$ac_cv_header_stdc" >&6
20416if test $ac_cv_header_stdc = yes; then
20417
20418cat >>confdefs.h <<\_ACEOF
20419#define STDC_HEADERS 1
20420_ACEOF
20421
20422fi
20423
20424
20425
20426
20427
20428if test x$APP_MAN_SUFFIX = x    ; then
20429    APP_MAN_SUFFIX=1
20430fi
20431if test x$APP_MAN_DIR = x    ; then
20432    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20433fi
20434
20435if test x$LIB_MAN_SUFFIX = x    ; then
20436    LIB_MAN_SUFFIX=3
20437fi
20438if test x$LIB_MAN_DIR = x    ; then
20439    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20440fi
20441
20442if test x$FILE_MAN_SUFFIX = x    ; then
20443    case $host_os in
20444	solaris*)	FILE_MAN_SUFFIX=4  ;;
20445	*)		FILE_MAN_SUFFIX=5  ;;
20446    esac
20447fi
20448if test x$FILE_MAN_DIR = x    ; then
20449    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20450fi
20451
20452if test x$MISC_MAN_SUFFIX = x    ; then
20453    case $host_os in
20454	solaris*)	MISC_MAN_SUFFIX=5  ;;
20455	*)		MISC_MAN_SUFFIX=7  ;;
20456    esac
20457fi
20458if test x$MISC_MAN_DIR = x    ; then
20459    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20460fi
20461
20462if test x$DRIVER_MAN_SUFFIX = x    ; then
20463    case $host_os in
20464	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
20465	*)		DRIVER_MAN_SUFFIX=4  ;;
20466    esac
20467fi
20468if test x$DRIVER_MAN_DIR = x    ; then
20469    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20470fi
20471
20472if test x$ADMIN_MAN_SUFFIX = x    ; then
20473    case $host_os in
20474	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
20475	*)		ADMIN_MAN_SUFFIX=8  ;;
20476    esac
20477fi
20478if test x$ADMIN_MAN_DIR = x    ; then
20479    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20480fi
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498# Check whether --with-release-version or --without-release-version was given.
20499if test "${with_release_version+set}" = set; then
20500  withval="$with_release_version"
20501  RELEASE_VERSION="$withval"
20502else
20503  RELEASE_VERSION=""
20504fi;
20505	if test "x$RELEASE_VERSION" != "x"; then
20506		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20507		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20508		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20509echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20510	fi
20511
20512cat >>confdefs.h <<_ACEOF
20513#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20514_ACEOF
20515
20516	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20517	if test "x$PVM" = "x"; then
20518		PVM="0"
20519	fi
20520
20521cat >>confdefs.h <<_ACEOF
20522#define PACKAGE_VERSION_MINOR $PVM
20523_ACEOF
20524
20525	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20526	if test "x$PVP" = "x"; then
20527		PVP="0"
20528	fi
20529
20530cat >>confdefs.h <<_ACEOF
20531#define PACKAGE_VERSION_PATCHLEVEL $PVP
20532_ACEOF
20533
20534
20535
20536                              ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20537cat >confcache <<\_ACEOF
20538# This file is a shell script that caches the results of configure
20539# tests run on this system so they can be shared between configure
20540# scripts and configure runs, see configure's option --config-cache.
20541# It is not useful on other systems.  If it contains results you don't
20542# want to keep, you may remove or edit it.
20543#
20544# config.status only pays attention to the cache file if you give it
20545# the --recheck option to rerun configure.
20546#
20547# `ac_cv_env_foo' variables (set or unset) will be overridden when
20548# loading this file, other *unset* `ac_cv_foo' will be assigned the
20549# following values.
20550
20551_ACEOF
20552
20553# The following way of writing the cache mishandles newlines in values,
20554# but we know of no workaround that is simple, portable, and efficient.
20555# So, don't put newlines in cache variables' values.
20556# Ultrix sh set writes to stderr and can't be redirected directly,
20557# and sets the high bit in the cache file unless we assign to the vars.
20558{
20559  (set) 2>&1 |
20560    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20561    *ac_space=\ *)
20562      # `set' does not quote correctly, so add quotes (double-quote
20563      # substitution turns \\\\ into \\, and sed turns \\ into \).
20564      sed -n \
20565	"s/'/'\\\\''/g;
20566	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20567      ;;
20568    *)
20569      # `set' quotes correctly as required by POSIX, so do not add quotes.
20570      sed -n \
20571	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20572      ;;
20573    esac;
20574} |
20575  sed '
20576     t clear
20577     : clear
20578     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20579     t end
20580     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20581     : end' >>confcache
20582if diff $cache_file confcache >/dev/null 2>&1; then :; else
20583  if test -w $cache_file; then
20584    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20585    cat confcache >$cache_file
20586  else
20587    echo "not updating unwritable cache $cache_file"
20588  fi
20589fi
20590rm -f confcache
20591
20592test "x$prefix" = xNONE && prefix=$ac_default_prefix
20593# Let make expand exec_prefix.
20594test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20595
20596# VPATH may cause trouble with some makes, so we remove $(srcdir),
20597# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20598# trailing colons and then remove the whole line if VPATH becomes empty
20599# (actually we leave an empty line to preserve line numbers).
20600if test "x$srcdir" = x.; then
20601  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20602s/:*\$(srcdir):*/:/;
20603s/:*\${srcdir}:*/:/;
20604s/:*@srcdir@:*/:/;
20605s/^\([^=]*=[	 ]*\):*/\1/;
20606s/:*$//;
20607s/^[^=]*=[	 ]*$//;
20608}'
20609fi
20610
20611DEFS=-DHAVE_CONFIG_H
20612
20613ac_libobjs=
20614ac_ltlibobjs=
20615for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20616  # 1. Remove the extension, and $U if already installed.
20617  ac_i=`echo "$ac_i" |
20618	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20619  # 2. Add them.
20620  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20621  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20622done
20623LIBOBJS=$ac_libobjs
20624
20625LTLIBOBJS=$ac_ltlibobjs
20626
20627
20628if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20629  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20630Usually this means the macro was only invoked conditionally." >&5
20631echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20632Usually this means the macro was only invoked conditionally." >&2;}
20633   { (exit 1); exit 1; }; }
20634fi
20635if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20636  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20637Usually this means the macro was only invoked conditionally." >&5
20638echo "$as_me: error: conditional \"AMDEP\" was never defined.
20639Usually this means the macro was only invoked conditionally." >&2;}
20640   { (exit 1); exit 1; }; }
20641fi
20642if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20643  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20644Usually this means the macro was only invoked conditionally." >&5
20645echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20646Usually this means the macro was only invoked conditionally." >&2;}
20647   { (exit 1); exit 1; }; }
20648fi
20649if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20650  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20651Usually this means the macro was only invoked conditionally." >&5
20652echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20653Usually this means the macro was only invoked conditionally." >&2;}
20654   { (exit 1); exit 1; }; }
20655fi
20656if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20657  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20658Usually this means the macro was only invoked conditionally." >&5
20659echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20660Usually this means the macro was only invoked conditionally." >&2;}
20661   { (exit 1); exit 1; }; }
20662fi
20663
20664: ${CONFIG_STATUS=./config.status}
20665ac_clean_files_save=$ac_clean_files
20666ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20667{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20668echo "$as_me: creating $CONFIG_STATUS" >&6;}
20669cat >$CONFIG_STATUS <<_ACEOF
20670#! $SHELL
20671# Generated by $as_me.
20672# Run this file to recreate the current configuration.
20673# Compiler output produced by configure, useful for debugging
20674# configure, is in config.log if it exists.
20675
20676debug=false
20677ac_cs_recheck=false
20678ac_cs_silent=false
20679SHELL=\${CONFIG_SHELL-$SHELL}
20680_ACEOF
20681
20682cat >>$CONFIG_STATUS <<\_ACEOF
20683## --------------------- ##
20684## M4sh Initialization.  ##
20685## --------------------- ##
20686
20687# Be Bourne compatible
20688if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20689  emulate sh
20690  NULLCMD=:
20691  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20692  # is contrary to our usage.  Disable this feature.
20693  alias -g '${1+"$@"}'='"$@"'
20694elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20695  set -o posix
20696fi
20697DUALCASE=1; export DUALCASE # for MKS sh
20698
20699# Support unset when possible.
20700if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20701  as_unset=unset
20702else
20703  as_unset=false
20704fi
20705
20706
20707# Work around bugs in pre-3.0 UWIN ksh.
20708$as_unset ENV MAIL MAILPATH
20709PS1='$ '
20710PS2='> '
20711PS4='+ '
20712
20713# NLS nuisances.
20714for as_var in \
20715  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20716  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20717  LC_TELEPHONE LC_TIME
20718do
20719  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20720    eval $as_var=C; export $as_var
20721  else
20722    $as_unset $as_var
20723  fi
20724done
20725
20726# Required to use basename.
20727if expr a : '\(a\)' >/dev/null 2>&1; then
20728  as_expr=expr
20729else
20730  as_expr=false
20731fi
20732
20733if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20734  as_basename=basename
20735else
20736  as_basename=false
20737fi
20738
20739
20740# Name of the executable.
20741as_me=`$as_basename "$0" ||
20742$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20743	 X"$0" : 'X\(//\)$' \| \
20744	 X"$0" : 'X\(/\)$' \| \
20745	 .     : '\(.\)' 2>/dev/null ||
20746echo X/"$0" |
20747    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20748  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20749  	  /^X\/\(\/\).*/{ s//\1/; q; }
20750  	  s/.*/./; q'`
20751
20752
20753# PATH needs CR, and LINENO needs CR and PATH.
20754# Avoid depending upon Character Ranges.
20755as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20756as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20757as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20758as_cr_digits='0123456789'
20759as_cr_alnum=$as_cr_Letters$as_cr_digits
20760
20761# The user is always right.
20762if test "${PATH_SEPARATOR+set}" != set; then
20763  echo "#! /bin/sh" >conf$$.sh
20764  echo  "exit 0"   >>conf$$.sh
20765  chmod +x conf$$.sh
20766  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20767    PATH_SEPARATOR=';'
20768  else
20769    PATH_SEPARATOR=:
20770  fi
20771  rm -f conf$$.sh
20772fi
20773
20774
20775  as_lineno_1=$LINENO
20776  as_lineno_2=$LINENO
20777  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20778  test "x$as_lineno_1" != "x$as_lineno_2" &&
20779  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20780  # Find who we are.  Look in the path if we contain no path at all
20781  # relative or not.
20782  case $0 in
20783    *[\\/]* ) as_myself=$0 ;;
20784    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20785for as_dir in $PATH
20786do
20787  IFS=$as_save_IFS
20788  test -z "$as_dir" && as_dir=.
20789  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20790done
20791
20792       ;;
20793  esac
20794  # We did not find ourselves, most probably we were run as `sh COMMAND'
20795  # in which case we are not to be found in the path.
20796  if test "x$as_myself" = x; then
20797    as_myself=$0
20798  fi
20799  if test ! -f "$as_myself"; then
20800    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20801echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20802   { (exit 1); exit 1; }; }
20803  fi
20804  case $CONFIG_SHELL in
20805  '')
20806    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20807for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20808do
20809  IFS=$as_save_IFS
20810  test -z "$as_dir" && as_dir=.
20811  for as_base in sh bash ksh sh5; do
20812	 case $as_dir in
20813	 /*)
20814	   if ("$as_dir/$as_base" -c '
20815  as_lineno_1=$LINENO
20816  as_lineno_2=$LINENO
20817  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20818  test "x$as_lineno_1" != "x$as_lineno_2" &&
20819  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20820	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20821	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20822	     CONFIG_SHELL=$as_dir/$as_base
20823	     export CONFIG_SHELL
20824	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20825	   fi;;
20826	 esac
20827       done
20828done
20829;;
20830  esac
20831
20832  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20833  # uniformly replaced by the line number.  The first 'sed' inserts a
20834  # line-number line before each line; the second 'sed' does the real
20835  # work.  The second script uses 'N' to pair each line-number line
20836  # with the numbered line, and appends trailing '-' during
20837  # substitution so that $LINENO is not a special case at line end.
20838  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20839  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20840  sed '=' <$as_myself |
20841    sed '
20842      N
20843      s,$,-,
20844      : loop
20845      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20846      t loop
20847      s,-$,,
20848      s,^['$as_cr_digits']*\n,,
20849    ' >$as_me.lineno &&
20850  chmod +x $as_me.lineno ||
20851    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20852echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20853   { (exit 1); exit 1; }; }
20854
20855  # Don't try to exec as it changes $[0], causing all sort of problems
20856  # (the dirname of $[0] is not the place where we might find the
20857  # original and so on.  Autoconf is especially sensible to this).
20858  . ./$as_me.lineno
20859  # Exit status is that of the last command.
20860  exit
20861}
20862
20863
20864case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20865  *c*,-n*) ECHO_N= ECHO_C='
20866' ECHO_T='	' ;;
20867  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20868  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20869esac
20870
20871if expr a : '\(a\)' >/dev/null 2>&1; then
20872  as_expr=expr
20873else
20874  as_expr=false
20875fi
20876
20877rm -f conf$$ conf$$.exe conf$$.file
20878echo >conf$$.file
20879if ln -s conf$$.file conf$$ 2>/dev/null; then
20880  # We could just check for DJGPP; but this test a) works b) is more generic
20881  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20882  if test -f conf$$.exe; then
20883    # Don't use ln at all; we don't have any links
20884    as_ln_s='cp -p'
20885  else
20886    as_ln_s='ln -s'
20887  fi
20888elif ln conf$$.file conf$$ 2>/dev/null; then
20889  as_ln_s=ln
20890else
20891  as_ln_s='cp -p'
20892fi
20893rm -f conf$$ conf$$.exe conf$$.file
20894
20895if mkdir -p . 2>/dev/null; then
20896  as_mkdir_p=:
20897else
20898  test -d ./-p && rmdir ./-p
20899  as_mkdir_p=false
20900fi
20901
20902as_executable_p="test -f"
20903
20904# Sed expression to map a string onto a valid CPP name.
20905as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20906
20907# Sed expression to map a string onto a valid variable name.
20908as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20909
20910
20911# IFS
20912# We need space, tab and new line, in precisely that order.
20913as_nl='
20914'
20915IFS=" 	$as_nl"
20916
20917# CDPATH.
20918$as_unset CDPATH
20919
20920exec 6>&1
20921
20922# Open the log real soon, to keep \$[0] and so on meaningful, and to
20923# report actual input values of CONFIG_FILES etc. instead of their
20924# values after options handling.  Logging --version etc. is OK.
20925exec 5>>config.log
20926{
20927  echo
20928  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20929## Running $as_me. ##
20930_ASBOX
20931} >&5
20932cat >&5 <<_CSEOF
20933
20934This file was extended by xf86-input-elographics $as_me 1.2.3, which was
20935generated by GNU Autoconf 2.59.  Invocation command line was
20936
20937  CONFIG_FILES    = $CONFIG_FILES
20938  CONFIG_HEADERS  = $CONFIG_HEADERS
20939  CONFIG_LINKS    = $CONFIG_LINKS
20940  CONFIG_COMMANDS = $CONFIG_COMMANDS
20941  $ $0 $@
20942
20943_CSEOF
20944echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20945echo >&5
20946_ACEOF
20947
20948# Files that config.status was made for.
20949if test -n "$ac_config_files"; then
20950  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20951fi
20952
20953if test -n "$ac_config_headers"; then
20954  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20955fi
20956
20957if test -n "$ac_config_links"; then
20958  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20959fi
20960
20961if test -n "$ac_config_commands"; then
20962  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20963fi
20964
20965cat >>$CONFIG_STATUS <<\_ACEOF
20966
20967ac_cs_usage="\
20968\`$as_me' instantiates files from templates according to the
20969current configuration.
20970
20971Usage: $0 [OPTIONS] [FILE]...
20972
20973  -h, --help       print this help, then exit
20974  -V, --version    print version number, then exit
20975  -q, --quiet      do not print progress messages
20976  -d, --debug      don't remove temporary files
20977      --recheck    update $as_me by reconfiguring in the same conditions
20978  --file=FILE[:TEMPLATE]
20979		   instantiate the configuration file FILE
20980  --header=FILE[:TEMPLATE]
20981		   instantiate the configuration header FILE
20982
20983Configuration files:
20984$config_files
20985
20986Configuration headers:
20987$config_headers
20988
20989Configuration commands:
20990$config_commands
20991
20992Report bugs to <bug-autoconf@gnu.org>."
20993_ACEOF
20994
20995cat >>$CONFIG_STATUS <<_ACEOF
20996ac_cs_version="\\
20997xf86-input-elographics config.status 1.2.3
20998configured by $0, generated by GNU Autoconf 2.59,
20999  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21000
21001Copyright (C) 2003 Free Software Foundation, Inc.
21002This config.status script is free software; the Free Software Foundation
21003gives unlimited permission to copy, distribute and modify it."
21004srcdir=$srcdir
21005INSTALL="$INSTALL"
21006_ACEOF
21007
21008cat >>$CONFIG_STATUS <<\_ACEOF
21009# If no file are specified by the user, then we need to provide default
21010# value.  By we need to know if files were specified by the user.
21011ac_need_defaults=:
21012while test $# != 0
21013do
21014  case $1 in
21015  --*=*)
21016    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21017    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21018    ac_shift=:
21019    ;;
21020  -*)
21021    ac_option=$1
21022    ac_optarg=$2
21023    ac_shift=shift
21024    ;;
21025  *) # This is not an option, so the user has probably given explicit
21026     # arguments.
21027     ac_option=$1
21028     ac_need_defaults=false;;
21029  esac
21030
21031  case $ac_option in
21032  # Handling of the options.
21033_ACEOF
21034cat >>$CONFIG_STATUS <<\_ACEOF
21035  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21036    ac_cs_recheck=: ;;
21037  --version | --vers* | -V )
21038    echo "$ac_cs_version"; exit 0 ;;
21039  --he | --h)
21040    # Conflict between --help and --header
21041    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21042Try \`$0 --help' for more information." >&5
21043echo "$as_me: error: ambiguous option: $1
21044Try \`$0 --help' for more information." >&2;}
21045   { (exit 1); exit 1; }; };;
21046  --help | --hel | -h )
21047    echo "$ac_cs_usage"; exit 0 ;;
21048  --debug | --d* | -d )
21049    debug=: ;;
21050  --file | --fil | --fi | --f )
21051    $ac_shift
21052    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21053    ac_need_defaults=false;;
21054  --header | --heade | --head | --hea )
21055    $ac_shift
21056    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21057    ac_need_defaults=false;;
21058  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21059  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21060    ac_cs_silent=: ;;
21061
21062  # This is an error.
21063  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21064Try \`$0 --help' for more information." >&5
21065echo "$as_me: error: unrecognized option: $1
21066Try \`$0 --help' for more information." >&2;}
21067   { (exit 1); exit 1; }; } ;;
21068
21069  *) ac_config_targets="$ac_config_targets $1" ;;
21070
21071  esac
21072  shift
21073done
21074
21075ac_configure_extra_args=
21076
21077if $ac_cs_silent; then
21078  exec 6>/dev/null
21079  ac_configure_extra_args="$ac_configure_extra_args --silent"
21080fi
21081
21082_ACEOF
21083cat >>$CONFIG_STATUS <<_ACEOF
21084if \$ac_cs_recheck; then
21085  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21086  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21087fi
21088
21089_ACEOF
21090
21091cat >>$CONFIG_STATUS <<_ACEOF
21092#
21093# INIT-COMMANDS section.
21094#
21095
21096AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21097
21098_ACEOF
21099
21100
21101
21102cat >>$CONFIG_STATUS <<\_ACEOF
21103for ac_config_target in $ac_config_targets
21104do
21105  case "$ac_config_target" in
21106  # Handling of arguments.
21107  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21108  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21109  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21110  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21111  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21112  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21113echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21114   { (exit 1); exit 1; }; };;
21115  esac
21116done
21117
21118# If the user did not use the arguments to specify the items to instantiate,
21119# then the envvar interface is used.  Set only those that are not.
21120# We use the long form for the default assignment because of an extremely
21121# bizarre bug on SunOS 4.1.3.
21122if $ac_need_defaults; then
21123  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21124  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21125  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21126fi
21127
21128# Have a temporary directory for convenience.  Make it in the build tree
21129# simply because there is no reason to put it here, and in addition,
21130# creating and moving files from /tmp can sometimes cause problems.
21131# Create a temporary directory, and hook for its removal unless debugging.
21132$debug ||
21133{
21134  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21135  trap '{ (exit 1); exit 1; }' 1 2 13 15
21136}
21137
21138# Create a (secure) tmp directory for tmp files.
21139
21140{
21141  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21142  test -n "$tmp" && test -d "$tmp"
21143}  ||
21144{
21145  tmp=./confstat$$-$RANDOM
21146  (umask 077 && mkdir $tmp)
21147} ||
21148{
21149   echo "$me: cannot create a temporary directory in ." >&2
21150   { (exit 1); exit 1; }
21151}
21152
21153_ACEOF
21154
21155cat >>$CONFIG_STATUS <<_ACEOF
21156
21157#
21158# CONFIG_FILES section.
21159#
21160
21161# No need to generate the scripts if there are no CONFIG_FILES.
21162# This happens for instance when ./config.status config.h
21163if test -n "\$CONFIG_FILES"; then
21164  # Protect against being on the right side of a sed subst in config.status.
21165  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21166   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21167s,@SHELL@,$SHELL,;t t
21168s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21169s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21170s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21171s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21172s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21173s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21174s,@exec_prefix@,$exec_prefix,;t t
21175s,@prefix@,$prefix,;t t
21176s,@program_transform_name@,$program_transform_name,;t t
21177s,@bindir@,$bindir,;t t
21178s,@sbindir@,$sbindir,;t t
21179s,@libexecdir@,$libexecdir,;t t
21180s,@datadir@,$datadir,;t t
21181s,@sysconfdir@,$sysconfdir,;t t
21182s,@sharedstatedir@,$sharedstatedir,;t t
21183s,@localstatedir@,$localstatedir,;t t
21184s,@libdir@,$libdir,;t t
21185s,@includedir@,$includedir,;t t
21186s,@oldincludedir@,$oldincludedir,;t t
21187s,@infodir@,$infodir,;t t
21188s,@mandir@,$mandir,;t t
21189s,@build_alias@,$build_alias,;t t
21190s,@host_alias@,$host_alias,;t t
21191s,@target_alias@,$target_alias,;t t
21192s,@DEFS@,$DEFS,;t t
21193s,@ECHO_C@,$ECHO_C,;t t
21194s,@ECHO_N@,$ECHO_N,;t t
21195s,@ECHO_T@,$ECHO_T,;t t
21196s,@LIBS@,$LIBS,;t t
21197s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21198s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21199s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21200s,@CYGPATH_W@,$CYGPATH_W,;t t
21201s,@PACKAGE@,$PACKAGE,;t t
21202s,@VERSION@,$VERSION,;t t
21203s,@ACLOCAL@,$ACLOCAL,;t t
21204s,@AUTOCONF@,$AUTOCONF,;t t
21205s,@AUTOMAKE@,$AUTOMAKE,;t t
21206s,@AUTOHEADER@,$AUTOHEADER,;t t
21207s,@MAKEINFO@,$MAKEINFO,;t t
21208s,@install_sh@,$install_sh,;t t
21209s,@STRIP@,$STRIP,;t t
21210s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21211s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21212s,@mkdir_p@,$mkdir_p,;t t
21213s,@AWK@,$AWK,;t t
21214s,@SET_MAKE@,$SET_MAKE,;t t
21215s,@am__leading_dot@,$am__leading_dot,;t t
21216s,@AMTAR@,$AMTAR,;t t
21217s,@am__tar@,$am__tar,;t t
21218s,@am__untar@,$am__untar,;t t
21219s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21220s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21221s,@MAINT@,$MAINT,;t t
21222s,@DRIVER_NAME@,$DRIVER_NAME,;t t
21223s,@build@,$build,;t t
21224s,@build_cpu@,$build_cpu,;t t
21225s,@build_vendor@,$build_vendor,;t t
21226s,@build_os@,$build_os,;t t
21227s,@host@,$host,;t t
21228s,@host_cpu@,$host_cpu,;t t
21229s,@host_vendor@,$host_vendor,;t t
21230s,@host_os@,$host_os,;t t
21231s,@CC@,$CC,;t t
21232s,@CFLAGS@,$CFLAGS,;t t
21233s,@LDFLAGS@,$LDFLAGS,;t t
21234s,@CPPFLAGS@,$CPPFLAGS,;t t
21235s,@ac_ct_CC@,$ac_ct_CC,;t t
21236s,@EXEEXT@,$EXEEXT,;t t
21237s,@OBJEXT@,$OBJEXT,;t t
21238s,@DEPDIR@,$DEPDIR,;t t
21239s,@am__include@,$am__include,;t t
21240s,@am__quote@,$am__quote,;t t
21241s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21242s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21243s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21244s,@CCDEPMODE@,$CCDEPMODE,;t t
21245s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21246s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21247s,@SED@,$SED,;t t
21248s,@EGREP@,$EGREP,;t t
21249s,@LN_S@,$LN_S,;t t
21250s,@ECHO@,$ECHO,;t t
21251s,@AR@,$AR,;t t
21252s,@ac_ct_AR@,$ac_ct_AR,;t t
21253s,@RANLIB@,$RANLIB,;t t
21254s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21255s,@DSYMUTIL@,$DSYMUTIL,;t t
21256s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
21257s,@NMEDIT@,$NMEDIT,;t t
21258s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
21259s,@CPP@,$CPP,;t t
21260s,@CXX@,$CXX,;t t
21261s,@CXXFLAGS@,$CXXFLAGS,;t t
21262s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21263s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21264s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21265s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21266s,@CXXCPP@,$CXXCPP,;t t
21267s,@F77@,$F77,;t t
21268s,@FFLAGS@,$FFLAGS,;t t
21269s,@ac_ct_F77@,$ac_ct_F77,;t t
21270s,@LIBTOOL@,$LIBTOOL,;t t
21271s,@inputdir@,$inputdir,;t t
21272s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21273s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21274s,@XORG_CFLAGS@,$XORG_CFLAGS,;t t
21275s,@XORG_LIBS@,$XORG_LIBS,;t t
21276s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
21277s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
21278s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
21279s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
21280s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
21281s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
21282s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
21283s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
21284s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
21285s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
21286s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
21287s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
21288s,@LIBOBJS@,$LIBOBJS,;t t
21289s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21290CEOF
21291
21292_ACEOF
21293
21294  cat >>$CONFIG_STATUS <<\_ACEOF
21295  # Split the substitutions into bite-sized pieces for seds with
21296  # small command number limits, like on Digital OSF/1 and HP-UX.
21297  ac_max_sed_lines=48
21298  ac_sed_frag=1 # Number of current file.
21299  ac_beg=1 # First line for current file.
21300  ac_end=$ac_max_sed_lines # Line after last line for current file.
21301  ac_more_lines=:
21302  ac_sed_cmds=
21303  while $ac_more_lines; do
21304    if test $ac_beg -gt 1; then
21305      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21306    else
21307      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21308    fi
21309    if test ! -s $tmp/subs.frag; then
21310      ac_more_lines=false
21311    else
21312      # The purpose of the label and of the branching condition is to
21313      # speed up the sed processing (if there are no `@' at all, there
21314      # is no need to browse any of the substitutions).
21315      # These are the two extra sed commands mentioned above.
21316      (echo ':t
21317  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21318      if test -z "$ac_sed_cmds"; then
21319	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21320      else
21321	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21322      fi
21323      ac_sed_frag=`expr $ac_sed_frag + 1`
21324      ac_beg=$ac_end
21325      ac_end=`expr $ac_end + $ac_max_sed_lines`
21326    fi
21327  done
21328  if test -z "$ac_sed_cmds"; then
21329    ac_sed_cmds=cat
21330  fi
21331fi # test -n "$CONFIG_FILES"
21332
21333_ACEOF
21334cat >>$CONFIG_STATUS <<\_ACEOF
21335for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21336  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21337  case $ac_file in
21338  - | *:- | *:-:* ) # input from stdin
21339	cat >$tmp/stdin
21340	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21341	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21342  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21343	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21344  * )   ac_file_in=$ac_file.in ;;
21345  esac
21346
21347  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21348  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21349$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21350	 X"$ac_file" : 'X\(//\)[^/]' \| \
21351	 X"$ac_file" : 'X\(//\)$' \| \
21352	 X"$ac_file" : 'X\(/\)' \| \
21353	 .     : '\(.\)' 2>/dev/null ||
21354echo X"$ac_file" |
21355    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21356  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21357  	  /^X\(\/\/\)$/{ s//\1/; q; }
21358  	  /^X\(\/\).*/{ s//\1/; q; }
21359  	  s/.*/./; q'`
21360  { if $as_mkdir_p; then
21361    mkdir -p "$ac_dir"
21362  else
21363    as_dir="$ac_dir"
21364    as_dirs=
21365    while test ! -d "$as_dir"; do
21366      as_dirs="$as_dir $as_dirs"
21367      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21368$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21369	 X"$as_dir" : 'X\(//\)[^/]' \| \
21370	 X"$as_dir" : 'X\(//\)$' \| \
21371	 X"$as_dir" : 'X\(/\)' \| \
21372	 .     : '\(.\)' 2>/dev/null ||
21373echo X"$as_dir" |
21374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21375  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21376  	  /^X\(\/\/\)$/{ s//\1/; q; }
21377  	  /^X\(\/\).*/{ s//\1/; q; }
21378  	  s/.*/./; q'`
21379    done
21380    test ! -n "$as_dirs" || mkdir $as_dirs
21381  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21382echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21383   { (exit 1); exit 1; }; }; }
21384
21385  ac_builddir=.
21386
21387if test "$ac_dir" != .; then
21388  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21389  # A "../" for each directory in $ac_dir_suffix.
21390  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21391else
21392  ac_dir_suffix= ac_top_builddir=
21393fi
21394
21395case $srcdir in
21396  .)  # No --srcdir option.  We are building in place.
21397    ac_srcdir=.
21398    if test -z "$ac_top_builddir"; then
21399       ac_top_srcdir=.
21400    else
21401       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21402    fi ;;
21403  [\\/]* | ?:[\\/]* )  # Absolute path.
21404    ac_srcdir=$srcdir$ac_dir_suffix;
21405    ac_top_srcdir=$srcdir ;;
21406  *) # Relative path.
21407    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21408    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21409esac
21410
21411# Do not use `cd foo && pwd` to compute absolute paths, because
21412# the directories may not exist.
21413case `pwd` in
21414.) ac_abs_builddir="$ac_dir";;
21415*)
21416  case "$ac_dir" in
21417  .) ac_abs_builddir=`pwd`;;
21418  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21419  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21420  esac;;
21421esac
21422case $ac_abs_builddir in
21423.) ac_abs_top_builddir=${ac_top_builddir}.;;
21424*)
21425  case ${ac_top_builddir}. in
21426  .) ac_abs_top_builddir=$ac_abs_builddir;;
21427  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21428  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21429  esac;;
21430esac
21431case $ac_abs_builddir in
21432.) ac_abs_srcdir=$ac_srcdir;;
21433*)
21434  case $ac_srcdir in
21435  .) ac_abs_srcdir=$ac_abs_builddir;;
21436  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21437  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21438  esac;;
21439esac
21440case $ac_abs_builddir in
21441.) ac_abs_top_srcdir=$ac_top_srcdir;;
21442*)
21443  case $ac_top_srcdir in
21444  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21445  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21446  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21447  esac;;
21448esac
21449
21450
21451  case $INSTALL in
21452  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21453  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21454  esac
21455
21456  if test x"$ac_file" != x-; then
21457    { echo "$as_me:$LINENO: creating $ac_file" >&5
21458echo "$as_me: creating $ac_file" >&6;}
21459    rm -f "$ac_file"
21460  fi
21461  # Let's still pretend it is `configure' which instantiates (i.e., don't
21462  # use $as_me), people would be surprised to read:
21463  #    /* config.h.  Generated by config.status.  */
21464  if test x"$ac_file" = x-; then
21465    configure_input=
21466  else
21467    configure_input="$ac_file.  "
21468  fi
21469  configure_input=$configure_input"Generated from `echo $ac_file_in |
21470				     sed 's,.*/,,'` by configure."
21471
21472  # First look for the input files in the build tree, otherwise in the
21473  # src tree.
21474  ac_file_inputs=`IFS=:
21475    for f in $ac_file_in; do
21476      case $f in
21477      -) echo $tmp/stdin ;;
21478      [\\/$]*)
21479	 # Absolute (can't be DOS-style, as IFS=:)
21480	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21481echo "$as_me: error: cannot find input file: $f" >&2;}
21482   { (exit 1); exit 1; }; }
21483	 echo "$f";;
21484      *) # Relative
21485	 if test -f "$f"; then
21486	   # Build tree
21487	   echo "$f"
21488	 elif test -f "$srcdir/$f"; then
21489	   # Source tree
21490	   echo "$srcdir/$f"
21491	 else
21492	   # /dev/null tree
21493	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21494echo "$as_me: error: cannot find input file: $f" >&2;}
21495   { (exit 1); exit 1; }; }
21496	 fi;;
21497      esac
21498    done` || { (exit 1); exit 1; }
21499_ACEOF
21500cat >>$CONFIG_STATUS <<_ACEOF
21501  sed "$ac_vpsub
21502$extrasub
21503_ACEOF
21504cat >>$CONFIG_STATUS <<\_ACEOF
21505:t
21506/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21507s,@configure_input@,$configure_input,;t t
21508s,@srcdir@,$ac_srcdir,;t t
21509s,@abs_srcdir@,$ac_abs_srcdir,;t t
21510s,@top_srcdir@,$ac_top_srcdir,;t t
21511s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21512s,@builddir@,$ac_builddir,;t t
21513s,@abs_builddir@,$ac_abs_builddir,;t t
21514s,@top_builddir@,$ac_top_builddir,;t t
21515s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21516s,@INSTALL@,$ac_INSTALL,;t t
21517" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21518  rm -f $tmp/stdin
21519  if test x"$ac_file" != x-; then
21520    mv $tmp/out $ac_file
21521  else
21522    cat $tmp/out
21523    rm -f $tmp/out
21524  fi
21525
21526done
21527_ACEOF
21528cat >>$CONFIG_STATUS <<\_ACEOF
21529
21530#
21531# CONFIG_HEADER section.
21532#
21533
21534# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21535# NAME is the cpp macro being defined and VALUE is the value it is being given.
21536#
21537# ac_d sets the value in "#define NAME VALUE" lines.
21538ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21539ac_dB='[	 ].*$,\1#\2'
21540ac_dC=' '
21541ac_dD=',;t'
21542# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21543ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21544ac_uB='$,\1#\2define\3'
21545ac_uC=' '
21546ac_uD=',;t'
21547
21548for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21549  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21550  case $ac_file in
21551  - | *:- | *:-:* ) # input from stdin
21552	cat >$tmp/stdin
21553	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21554	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21555  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21556	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21557  * )   ac_file_in=$ac_file.in ;;
21558  esac
21559
21560  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21561echo "$as_me: creating $ac_file" >&6;}
21562
21563  # First look for the input files in the build tree, otherwise in the
21564  # src tree.
21565  ac_file_inputs=`IFS=:
21566    for f in $ac_file_in; do
21567      case $f in
21568      -) echo $tmp/stdin ;;
21569      [\\/$]*)
21570	 # Absolute (can't be DOS-style, as IFS=:)
21571	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21572echo "$as_me: error: cannot find input file: $f" >&2;}
21573   { (exit 1); exit 1; }; }
21574	 # Do quote $f, to prevent DOS paths from being IFS'd.
21575	 echo "$f";;
21576      *) # Relative
21577	 if test -f "$f"; then
21578	   # Build tree
21579	   echo "$f"
21580	 elif test -f "$srcdir/$f"; then
21581	   # Source tree
21582	   echo "$srcdir/$f"
21583	 else
21584	   # /dev/null tree
21585	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21586echo "$as_me: error: cannot find input file: $f" >&2;}
21587   { (exit 1); exit 1; }; }
21588	 fi;;
21589      esac
21590    done` || { (exit 1); exit 1; }
21591  # Remove the trailing spaces.
21592  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
21593
21594_ACEOF
21595
21596# Transform confdefs.h into two sed scripts, `conftest.defines' and
21597# `conftest.undefs', that substitutes the proper values into
21598# config.h.in to produce config.h.  The first handles `#define'
21599# templates, and the second `#undef' templates.
21600# And first: Protect against being on the right side of a sed subst in
21601# config.status.  Protect against being in an unquoted here document
21602# in config.status.
21603rm -f conftest.defines conftest.undefs
21604# Using a here document instead of a string reduces the quoting nightmare.
21605# Putting comments in sed scripts is not portable.
21606#
21607# `end' is used to avoid that the second main sed command (meant for
21608# 0-ary CPP macros) applies to n-ary macro definitions.
21609# See the Autoconf documentation for `clear'.
21610cat >confdef2sed.sed <<\_ACEOF
21611s/[\\&,]/\\&/g
21612s,[\\$`],\\&,g
21613t clear
21614: clear
21615s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21616t end
21617s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21618: end
21619_ACEOF
21620# If some macros were called several times there might be several times
21621# the same #defines, which is useless.  Nevertheless, we may not want to
21622# sort them, since we want the *last* AC-DEFINE to be honored.
21623uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21624sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21625rm -f confdef2sed.sed
21626
21627# This sed command replaces #undef with comments.  This is necessary, for
21628# example, in the case of _POSIX_SOURCE, which is predefined and required
21629# on some systems where configure will not decide to define it.
21630cat >>conftest.undefs <<\_ACEOF
21631s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21632_ACEOF
21633
21634# Break up conftest.defines because some shells have a limit on the size
21635# of here documents, and old seds have small limits too (100 cmds).
21636echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21637echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21638echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21639echo '  :' >>$CONFIG_STATUS
21640rm -f conftest.tail
21641while grep . conftest.defines >/dev/null
21642do
21643  # Write a limited-size here document to $tmp/defines.sed.
21644  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21645  # Speed up: don't consider the non `#define' lines.
21646  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21647  # Work around the forget-to-reset-the-flag bug.
21648  echo 't clr' >>$CONFIG_STATUS
21649  echo ': clr' >>$CONFIG_STATUS
21650  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21651  echo 'CEOF
21652  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21653  rm -f $tmp/in
21654  mv $tmp/out $tmp/in
21655' >>$CONFIG_STATUS
21656  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21657  rm -f conftest.defines
21658  mv conftest.tail conftest.defines
21659done
21660rm -f conftest.defines
21661echo '  fi # grep' >>$CONFIG_STATUS
21662echo >>$CONFIG_STATUS
21663
21664# Break up conftest.undefs because some shells have a limit on the size
21665# of here documents, and old seds have small limits too (100 cmds).
21666echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21667rm -f conftest.tail
21668while grep . conftest.undefs >/dev/null
21669do
21670  # Write a limited-size here document to $tmp/undefs.sed.
21671  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21672  # Speed up: don't consider the non `#undef'
21673  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21674  # Work around the forget-to-reset-the-flag bug.
21675  echo 't clr' >>$CONFIG_STATUS
21676  echo ': clr' >>$CONFIG_STATUS
21677  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21678  echo 'CEOF
21679  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21680  rm -f $tmp/in
21681  mv $tmp/out $tmp/in
21682' >>$CONFIG_STATUS
21683  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21684  rm -f conftest.undefs
21685  mv conftest.tail conftest.undefs
21686done
21687rm -f conftest.undefs
21688
21689cat >>$CONFIG_STATUS <<\_ACEOF
21690  # Let's still pretend it is `configure' which instantiates (i.e., don't
21691  # use $as_me), people would be surprised to read:
21692  #    /* config.h.  Generated by config.status.  */
21693  if test x"$ac_file" = x-; then
21694    echo "/* Generated by configure.  */" >$tmp/config.h
21695  else
21696    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21697  fi
21698  cat $tmp/in >>$tmp/config.h
21699  rm -f $tmp/in
21700  if test x"$ac_file" != x-; then
21701    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21702      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21703echo "$as_me: $ac_file is unchanged" >&6;}
21704    else
21705      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21706$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21707	 X"$ac_file" : 'X\(//\)[^/]' \| \
21708	 X"$ac_file" : 'X\(//\)$' \| \
21709	 X"$ac_file" : 'X\(/\)' \| \
21710	 .     : '\(.\)' 2>/dev/null ||
21711echo X"$ac_file" |
21712    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21713  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21714  	  /^X\(\/\/\)$/{ s//\1/; q; }
21715  	  /^X\(\/\).*/{ s//\1/; q; }
21716  	  s/.*/./; q'`
21717      { if $as_mkdir_p; then
21718    mkdir -p "$ac_dir"
21719  else
21720    as_dir="$ac_dir"
21721    as_dirs=
21722    while test ! -d "$as_dir"; do
21723      as_dirs="$as_dir $as_dirs"
21724      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21725$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21726	 X"$as_dir" : 'X\(//\)[^/]' \| \
21727	 X"$as_dir" : 'X\(//\)$' \| \
21728	 X"$as_dir" : 'X\(/\)' \| \
21729	 .     : '\(.\)' 2>/dev/null ||
21730echo X"$as_dir" |
21731    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21732  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21733  	  /^X\(\/\/\)$/{ s//\1/; q; }
21734  	  /^X\(\/\).*/{ s//\1/; q; }
21735  	  s/.*/./; q'`
21736    done
21737    test ! -n "$as_dirs" || mkdir $as_dirs
21738  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21739echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21740   { (exit 1); exit 1; }; }; }
21741
21742      rm -f $ac_file
21743      mv $tmp/config.h $ac_file
21744    fi
21745  else
21746    cat $tmp/config.h
21747    rm -f $tmp/config.h
21748  fi
21749# Compute $ac_file's index in $config_headers.
21750_am_stamp_count=1
21751for _am_header in $config_headers :; do
21752  case $_am_header in
21753    $ac_file | $ac_file:* )
21754      break ;;
21755    * )
21756      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21757  esac
21758done
21759echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21760$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21761	 X$ac_file : 'X\(//\)[^/]' \| \
21762	 X$ac_file : 'X\(//\)$' \| \
21763	 X$ac_file : 'X\(/\)' \| \
21764	 .     : '\(.\)' 2>/dev/null ||
21765echo X$ac_file |
21766    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21767  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21768  	  /^X\(\/\/\)$/{ s//\1/; q; }
21769  	  /^X\(\/\).*/{ s//\1/; q; }
21770  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21771done
21772_ACEOF
21773cat >>$CONFIG_STATUS <<\_ACEOF
21774
21775#
21776# CONFIG_COMMANDS section.
21777#
21778for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21779  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21780  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21781  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21782$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21783	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21784	 X"$ac_dest" : 'X\(//\)$' \| \
21785	 X"$ac_dest" : 'X\(/\)' \| \
21786	 .     : '\(.\)' 2>/dev/null ||
21787echo X"$ac_dest" |
21788    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21789  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21790  	  /^X\(\/\/\)$/{ s//\1/; q; }
21791  	  /^X\(\/\).*/{ s//\1/; q; }
21792  	  s/.*/./; q'`
21793  { if $as_mkdir_p; then
21794    mkdir -p "$ac_dir"
21795  else
21796    as_dir="$ac_dir"
21797    as_dirs=
21798    while test ! -d "$as_dir"; do
21799      as_dirs="$as_dir $as_dirs"
21800      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21801$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21802	 X"$as_dir" : 'X\(//\)[^/]' \| \
21803	 X"$as_dir" : 'X\(//\)$' \| \
21804	 X"$as_dir" : 'X\(/\)' \| \
21805	 .     : '\(.\)' 2>/dev/null ||
21806echo X"$as_dir" |
21807    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21808  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21809  	  /^X\(\/\/\)$/{ s//\1/; q; }
21810  	  /^X\(\/\).*/{ s//\1/; q; }
21811  	  s/.*/./; q'`
21812    done
21813    test ! -n "$as_dirs" || mkdir $as_dirs
21814  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21815echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21816   { (exit 1); exit 1; }; }; }
21817
21818  ac_builddir=.
21819
21820if test "$ac_dir" != .; then
21821  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21822  # A "../" for each directory in $ac_dir_suffix.
21823  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21824else
21825  ac_dir_suffix= ac_top_builddir=
21826fi
21827
21828case $srcdir in
21829  .)  # No --srcdir option.  We are building in place.
21830    ac_srcdir=.
21831    if test -z "$ac_top_builddir"; then
21832       ac_top_srcdir=.
21833    else
21834       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21835    fi ;;
21836  [\\/]* | ?:[\\/]* )  # Absolute path.
21837    ac_srcdir=$srcdir$ac_dir_suffix;
21838    ac_top_srcdir=$srcdir ;;
21839  *) # Relative path.
21840    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21841    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21842esac
21843
21844# Do not use `cd foo && pwd` to compute absolute paths, because
21845# the directories may not exist.
21846case `pwd` in
21847.) ac_abs_builddir="$ac_dir";;
21848*)
21849  case "$ac_dir" in
21850  .) ac_abs_builddir=`pwd`;;
21851  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21852  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21853  esac;;
21854esac
21855case $ac_abs_builddir in
21856.) ac_abs_top_builddir=${ac_top_builddir}.;;
21857*)
21858  case ${ac_top_builddir}. in
21859  .) ac_abs_top_builddir=$ac_abs_builddir;;
21860  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21861  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21862  esac;;
21863esac
21864case $ac_abs_builddir in
21865.) ac_abs_srcdir=$ac_srcdir;;
21866*)
21867  case $ac_srcdir in
21868  .) ac_abs_srcdir=$ac_abs_builddir;;
21869  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21870  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21871  esac;;
21872esac
21873case $ac_abs_builddir in
21874.) ac_abs_top_srcdir=$ac_top_srcdir;;
21875*)
21876  case $ac_top_srcdir in
21877  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21878  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21879  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21880  esac;;
21881esac
21882
21883
21884  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21885echo "$as_me: executing $ac_dest commands" >&6;}
21886  case $ac_dest in
21887    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21888  # Strip MF so we end up with the name of the file.
21889  mf=`echo "$mf" | sed -e 's/:.*$//'`
21890  # Check whether this is an Automake generated Makefile or not.
21891  # We used to match only the files named `Makefile.in', but
21892  # some people rename them; so instead we look at the file content.
21893  # Grep'ing the first line is not enough: some people post-process
21894  # each Makefile.in and add a new line on top of each file to say so.
21895  # So let's grep whole file.
21896  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21897    dirpart=`(dirname "$mf") 2>/dev/null ||
21898$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21899	 X"$mf" : 'X\(//\)[^/]' \| \
21900	 X"$mf" : 'X\(//\)$' \| \
21901	 X"$mf" : 'X\(/\)' \| \
21902	 .     : '\(.\)' 2>/dev/null ||
21903echo X"$mf" |
21904    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21905  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21906  	  /^X\(\/\/\)$/{ s//\1/; q; }
21907  	  /^X\(\/\).*/{ s//\1/; q; }
21908  	  s/.*/./; q'`
21909  else
21910    continue
21911  fi
21912  # Extract the definition of DEPDIR, am__include, and am__quote
21913  # from the Makefile without running `make'.
21914  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21915  test -z "$DEPDIR" && continue
21916  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21917  test -z "am__include" && continue
21918  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21919  # When using ansi2knr, U may be empty or an underscore; expand it
21920  U=`sed -n 's/^U = //p' < "$mf"`
21921  # Find all dependency output files, they are included files with
21922  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21923  # simplest approach to changing $(DEPDIR) to its actual value in the
21924  # expansion.
21925  for file in `sed -n "
21926    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21927       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21928    # Make sure the directory exists.
21929    test -f "$dirpart/$file" && continue
21930    fdir=`(dirname "$file") 2>/dev/null ||
21931$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21932	 X"$file" : 'X\(//\)[^/]' \| \
21933	 X"$file" : 'X\(//\)$' \| \
21934	 X"$file" : 'X\(/\)' \| \
21935	 .     : '\(.\)' 2>/dev/null ||
21936echo X"$file" |
21937    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21938  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21939  	  /^X\(\/\/\)$/{ s//\1/; q; }
21940  	  /^X\(\/\).*/{ s//\1/; q; }
21941  	  s/.*/./; q'`
21942    { if $as_mkdir_p; then
21943    mkdir -p $dirpart/$fdir
21944  else
21945    as_dir=$dirpart/$fdir
21946    as_dirs=
21947    while test ! -d "$as_dir"; do
21948      as_dirs="$as_dir $as_dirs"
21949      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21950$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21951	 X"$as_dir" : 'X\(//\)[^/]' \| \
21952	 X"$as_dir" : 'X\(//\)$' \| \
21953	 X"$as_dir" : 'X\(/\)' \| \
21954	 .     : '\(.\)' 2>/dev/null ||
21955echo X"$as_dir" |
21956    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21957  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21958  	  /^X\(\/\/\)$/{ s//\1/; q; }
21959  	  /^X\(\/\).*/{ s//\1/; q; }
21960  	  s/.*/./; q'`
21961    done
21962    test ! -n "$as_dirs" || mkdir $as_dirs
21963  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21964echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21965   { (exit 1); exit 1; }; }; }
21966
21967    # echo "creating $dirpart/$file"
21968    echo '# dummy' > "$dirpart/$file"
21969  done
21970done
21971 ;;
21972  esac
21973done
21974_ACEOF
21975
21976cat >>$CONFIG_STATUS <<\_ACEOF
21977
21978{ (exit 0); exit 0; }
21979_ACEOF
21980chmod +x $CONFIG_STATUS
21981ac_clean_files=$ac_clean_files_save
21982
21983
21984# configure is writing to config.log, and then calls config.status.
21985# config.status does its own redirection, appending to config.log.
21986# Unfortunately, on DOS this fails, as config.log is still kept open
21987# by configure, so config.status won't be able to write to it; its
21988# output is simply discarded.  So we exec the FD to /dev/null,
21989# effectively closing config.log, so it can be properly (re)opened and
21990# appended to by config.status.  When coming back to configure, we
21991# need to make the FD available again.
21992if test "$no_create" != yes; then
21993  ac_cs_success=:
21994  ac_config_status_args=
21995  test "$silent" = yes &&
21996    ac_config_status_args="$ac_config_status_args --quiet"
21997  exec 5>/dev/null
21998  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21999  exec 5>>config.log
22000  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22001  # would make configure fail if this is the last instruction.
22002  $ac_cs_success || { (exit 1); exit 1; }
22003fi
22004
22005