Pulled from branch_1_1, with formatting
[freeradius.git] / libltdl / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libltdl 1.2.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
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
15 if 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+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for 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
45 do
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
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo 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.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if 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
99 fi
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
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
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
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
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
154 done
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
189 case `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= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if 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
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_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.
233 as_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.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
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
285 if test -z "$ECHO"; then
286 if 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
297 fi
298
299 if 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   :
303 else
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
383 fi
384 fi
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.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${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.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${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.
424 PACKAGE_NAME='libltdl'
425 PACKAGE_TARNAME='libltdl'
426 PACKAGE_VERSION='1.2'
427 PACKAGE_STRING='libltdl 1.2'
428 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429
430 ac_unique_file="ltdl.c"
431 # Factoring default headers for most tests.
432 ac_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
468 ac_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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_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.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
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
783 Try \`$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
806 done
807
808 if 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; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
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
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
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
835 done
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.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if 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
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if 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 ||
871 echo 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
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if 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
892 fi
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; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 Program names:
1011   --program-prefix=PREFIX            prepend PREFIX to installed program names
1012   --program-suffix=SUFFIX            append SUFFIX to installed program names
1013   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015 System types:
1016   --build=BUILD     configure for building on BUILD [guessed]
1017   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022   case $ac_init_help in
1023      short | recursive ) echo "Configuration of libltdl 1.2:";;
1024    esac
1025   cat <<\_ACEOF
1026
1027 Optional Features:
1028   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030   --disable-dependency-tracking  speeds up one-time build
1031   --enable-dependency-tracking   do not reject slow dependency extractors
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-libtool-lock  avoid locking (might break parallel builds)
1039   --enable-ltdl-install   install libltdl
1040
1041 Optional Packages:
1042   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1043   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1044   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1045   --with-pic              try to use only PIC/non-PIC objects [default=use
1046                           both]
1047   --with-tags[=TAGS]
1048                           include additional configurations [automatic]
1049
1050 Some influential environment variables:
1051   CC          C compiler command
1052   CFLAGS      C compiler flags
1053   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1054               nonstandard directory <lib dir>
1055   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1056               headers in a nonstandard directory <include dir>
1057   CPP         C preprocessor
1058   CXX         C++ compiler command
1059   CXXFLAGS    C++ compiler flags
1060   CXXCPP      C++ preprocessor
1061   F77         Fortran 77 compiler command
1062   FFLAGS      Fortran 77 compiler flags
1063
1064 Use these variables to override the choices made by `configure' or to help
1065 it to find libraries and programs with nonstandard names/locations.
1066
1067 Report bugs to <bug-libtool@gnu.org>.
1068 _ACEOF
1069 fi
1070
1071 if test "$ac_init_help" = "recursive"; then
1072   # If there are subdirs, report their specific --help.
1073   ac_popdir=`pwd`
1074   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075     test -d $ac_dir || continue
1076     ac_builddir=.
1077
1078 if test "$ac_dir" != .; then
1079   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080   # A "../" for each directory in $ac_dir_suffix.
1081   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 else
1083   ac_dir_suffix= ac_top_builddir=
1084 fi
1085
1086 case $srcdir in
1087   .)  # No --srcdir option.  We are building in place.
1088     ac_srcdir=.
1089     if test -z "$ac_top_builddir"; then
1090        ac_top_srcdir=.
1091     else
1092        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093     fi ;;
1094   [\\/]* | ?:[\\/]* )  # Absolute path.
1095     ac_srcdir=$srcdir$ac_dir_suffix;
1096     ac_top_srcdir=$srcdir ;;
1097   *) # Relative path.
1098     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 esac
1101
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1104 case `pwd` in
1105 .) ac_abs_builddir="$ac_dir";;
1106 *)
1107   case "$ac_dir" in
1108   .) ac_abs_builddir=`pwd`;;
1109   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111   esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *)
1116   case ${ac_top_builddir}. in
1117   .) ac_abs_top_builddir=$ac_abs_builddir;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120   esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1124 *)
1125   case $ac_srcdir in
1126   .) ac_abs_srcdir=$ac_abs_builddir;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *)
1134   case $ac_top_srcdir in
1135   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138   esac;;
1139 esac
1140
1141     cd $ac_dir
1142     # Check for guested configure; otherwise get Cygnus style configure.
1143     if test -f $ac_srcdir/configure.gnu; then
1144       echo
1145       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1146     elif test -f $ac_srcdir/configure; then
1147       echo
1148       $SHELL $ac_srcdir/configure  --help=recursive
1149     elif test -f $ac_srcdir/configure.ac ||
1150            test -f $ac_srcdir/configure.in; then
1151       echo
1152       $ac_configure --help
1153     else
1154       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155     fi
1156     cd $ac_popdir
1157   done
1158 fi
1159
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1162   cat <<\_ACEOF
1163 libltdl configure 1.2
1164 generated by GNU Autoconf 2.59
1165
1166 Copyright (C) 2003 Free Software Foundation, Inc.
1167 This configure script is free software; the Free Software Foundation
1168 gives unlimited permission to copy, distribute and modify it.
1169 _ACEOF
1170   exit 0
1171 fi
1172 exec 5>config.log
1173 cat >&5 <<_ACEOF
1174 This file contains any messages produced by compilers while
1175 running configure, to aid debugging if configure makes a mistake.
1176
1177 It was created by libltdl $as_me 1.2, which was
1178 generated by GNU Autoconf 2.59.  Invocation command line was
1179
1180   $ $0 $@
1181
1182 _ACEOF
1183 {
1184 cat <<_ASUNAME
1185 ## --------- ##
1186 ## Platform. ##
1187 ## --------- ##
1188
1189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1197
1198 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1199 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1202 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1203 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1204 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1205
1206 _ASUNAME
1207
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209 for as_dir in $PATH
1210 do
1211   IFS=$as_save_IFS
1212   test -z "$as_dir" && as_dir=.
1213   echo "PATH: $as_dir"
1214 done
1215
1216 } >&5
1217
1218 cat >&5 <<_ACEOF
1219
1220
1221 ## ----------- ##
1222 ## Core tests. ##
1223 ## ----------- ##
1224
1225 _ACEOF
1226
1227
1228 # Keep a trace of the command line.
1229 # Strip out --no-create and --no-recursion so they do not pile up.
1230 # Strip out --silent because we don't want to record it for future runs.
1231 # Also quote any args containing shell meta-characters.
1232 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_configure_args=
1234 ac_configure_args0=
1235 ac_configure_args1=
1236 ac_sep=
1237 ac_must_keep_next=false
1238 for ac_pass in 1 2
1239 do
1240   for ac_arg
1241   do
1242     case $ac_arg in
1243     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245     | -silent | --silent | --silen | --sile | --sil)
1246       continue ;;
1247     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249     esac
1250     case $ac_pass in
1251     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252     2)
1253       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254       if test $ac_must_keep_next = true; then
1255         ac_must_keep_next=false # Got value, back to normal.
1256       else
1257         case $ac_arg in
1258           *=* | --config-cache | -C | -disable-* | --disable-* \
1259           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261           | -with-* | --with-* | -without-* | --without-* | --x)
1262             case "$ac_configure_args0 " in
1263               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264             esac
1265             ;;
1266           -* ) ac_must_keep_next=true ;;
1267         esac
1268       fi
1269       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270       # Get rid of the leading space.
1271       ac_sep=" "
1272       ;;
1273     esac
1274   done
1275 done
1276 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
1279 # When interrupted or exit'd, cleanup temporary files, and complete
1280 # config.log.  We remove comments because anyway the quotes in there
1281 # would cause problems or look ugly.
1282 # WARNING: Be sure not to use single quotes in there, as some shells,
1283 # such as our DU 5.0 friend, will then `close' the trap.
1284 trap 'exit_status=$?
1285   # Save into config.log some information that might help in debugging.
1286   {
1287     echo
1288
1289     cat <<\_ASBOX
1290 ## ---------------- ##
1291 ## Cache variables. ##
1292 ## ---------------- ##
1293 _ASBOX
1294     echo
1295     # The following way of writing the cache mishandles newlines in values,
1296 {
1297   (set) 2>&1 |
1298     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299     *ac_space=\ *)
1300       sed -n \
1301         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303       ;;
1304     *)
1305       sed -n \
1306         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307       ;;
1308     esac;
1309 }
1310     echo
1311
1312     cat <<\_ASBOX
1313 ## ----------------- ##
1314 ## Output variables. ##
1315 ## ----------------- ##
1316 _ASBOX
1317     echo
1318     for ac_var in $ac_subst_vars
1319     do
1320       eval ac_val=$`echo $ac_var`
1321       echo "$ac_var='"'"'$ac_val'"'"'"
1322     done | sort
1323     echo
1324
1325     if test -n "$ac_subst_files"; then
1326       cat <<\_ASBOX
1327 ## ------------- ##
1328 ## Output files. ##
1329 ## ------------- ##
1330 _ASBOX
1331       echo
1332       for ac_var in $ac_subst_files
1333       do
1334         eval ac_val=$`echo $ac_var`
1335         echo "$ac_var='"'"'$ac_val'"'"'"
1336       done | sort
1337       echo
1338     fi
1339
1340     if test -s confdefs.h; then
1341       cat <<\_ASBOX
1342 ## ----------- ##
1343 ## confdefs.h. ##
1344 ## ----------- ##
1345 _ASBOX
1346       echo
1347       sed "/^$/d" confdefs.h | sort
1348       echo
1349     fi
1350     test "$ac_signal" != 0 &&
1351       echo "$as_me: caught signal $ac_signal"
1352     echo "$as_me: exit $exit_status"
1353   } >&5
1354   rm -f core *.core &&
1355   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356     exit $exit_status
1357      ' 0
1358 for ac_signal in 1 2 13 15; do
1359   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360 done
1361 ac_signal=0
1362
1363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1364 rm -rf conftest* confdefs.h
1365 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366 echo >confdefs.h
1367
1368 # Predefined preprocessor variables.
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_NAME "$PACKAGE_NAME"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_STRING "$PACKAGE_STRING"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392 _ACEOF
1393
1394
1395 # Let the site file select an alternate cache file if it wants to.
1396 # Prefer explicitly selected file to automatically selected ones.
1397 if test -z "$CONFIG_SITE"; then
1398   if test "x$prefix" != xNONE; then
1399     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400   else
1401     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402   fi
1403 fi
1404 for ac_site_file in $CONFIG_SITE; do
1405   if test -r "$ac_site_file"; then
1406     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407 echo "$as_me: loading site script $ac_site_file" >&6;}
1408     sed 's/^/| /' "$ac_site_file" >&5
1409     . "$ac_site_file"
1410   fi
1411 done
1412
1413 if test -r "$cache_file"; then
1414   # Some versions of bash will fail to source /dev/null (special
1415   # files actually), so we avoid doing that.
1416   if test -f "$cache_file"; then
1417     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418 echo "$as_me: loading cache $cache_file" >&6;}
1419     case $cache_file in
1420       [\\/]* | ?:[\\/]* ) . $cache_file;;
1421       *)                      . ./$cache_file;;
1422     esac
1423   fi
1424 else
1425   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426 echo "$as_me: creating cache $cache_file" >&6;}
1427   >$cache_file
1428 fi
1429
1430 # Check that the precious variables saved in the cache have kept the same
1431 # value.
1432 ac_cache_corrupted=false
1433 for ac_var in `(set) 2>&1 |
1434                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436   eval ac_new_set=\$ac_env_${ac_var}_set
1437   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438   eval ac_new_val="\$ac_env_${ac_var}_value"
1439   case $ac_old_set,$ac_new_set in
1440     set,)
1441       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443       ac_cache_corrupted=: ;;
1444     ,set)
1445       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447       ac_cache_corrupted=: ;;
1448     ,);;
1449     *)
1450       if test "x$ac_old_val" != "x$ac_new_val"; then
1451         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1454 echo "$as_me:   former value:  $ac_old_val" >&2;}
1455         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1456 echo "$as_me:   current value: $ac_new_val" >&2;}
1457         ac_cache_corrupted=:
1458       fi;;
1459   esac
1460   # Pass precious variables to config.status.
1461   if test "$ac_new_set" = set; then
1462     case $ac_new_val in
1463     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465     *) ac_arg=$ac_var=$ac_new_val ;;
1466     esac
1467     case " $ac_configure_args " in
1468       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1469       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470     esac
1471   fi
1472 done
1473 if $ac_cache_corrupted; then
1474   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478    { (exit 1); exit 1; }; }
1479 fi
1480
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516 ## ------------------------------- ##
1517 ## Libltdl specific configuration. ##
1518 ## ------------------------------- ##
1519
1520 ac_aux_dir=
1521 for ac_dir in . $srcdir/.; do
1522   if test -f $ac_dir/install-sh; then
1523     ac_aux_dir=$ac_dir
1524     ac_install_sh="$ac_aux_dir/install-sh -c"
1525     break
1526   elif test -f $ac_dir/install.sh; then
1527     ac_aux_dir=$ac_dir
1528     ac_install_sh="$ac_aux_dir/install.sh -c"
1529     break
1530   elif test -f $ac_dir/shtool; then
1531     ac_aux_dir=$ac_dir
1532     ac_install_sh="$ac_aux_dir/shtool install -c"
1533     break
1534   fi
1535 done
1536 if test -z "$ac_aux_dir"; then
1537   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1538 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1539    { (exit 1); exit 1; }; }
1540 fi
1541 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544
1545
1546 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1547   if test -f ${srcdir}/ltmain.sh; then
1548     # if libltdl is libtoolized, it is assumed to be stand-alone and
1549     # installed unless the command line overrides it (tested above)
1550     enable_ltdl_install=yes
1551   else
1552     { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1553 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1554     { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1555 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1556     { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1557 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1558    { (exit 1); exit 1; }; }
1559   fi
1560 fi
1561
1562
1563 ## ------------------------ ##
1564 ## Automake Initialisation. ##
1565 ## ------------------------ ##
1566 am__api_version="1.9"
1567 # Find a good install program.  We prefer a C program (faster),
1568 # so one script is as good as another.  But avoid the broken or
1569 # incompatible versions:
1570 # SysV /etc/install, /usr/sbin/install
1571 # SunOS /usr/etc/install
1572 # IRIX /sbin/install
1573 # AIX /bin/install
1574 # AmigaOS /C/install, which installs bootblocks on floppy discs
1575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1578 # OS/2's system install, which has a completely different semantic
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582 if test -z "$INSTALL"; then
1583 if test "${ac_cv_path_install+set}" = set; then
1584   echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589   IFS=$as_save_IFS
1590   test -z "$as_dir" && as_dir=.
1591   # Account for people who put trailing slashes in PATH elements.
1592 case $as_dir/ in
1593   ./ | .// | /cC/* | \
1594   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1596   /usr/ucb/* ) ;;
1597   *)
1598     # OSF1 and SCO ODT 3.0 have their own names for install.
1599     # Don't use installbsd from OSF since it installs stuff as root
1600     # by default.
1601     for ac_prog in ginstall scoinst install; do
1602       for ac_exec_ext in '' $ac_executable_extensions; do
1603         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1604           if test $ac_prog = install &&
1605             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606             # AIX install.  It has an incompatible calling convention.
1607             :
1608           elif test $ac_prog = install &&
1609             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1610             # program-specific install script used by HP pwplus--don't use.
1611             :
1612           else
1613             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1614             break 3
1615           fi
1616         fi
1617       done
1618     done
1619     ;;
1620 esac
1621 done
1622
1623
1624 fi
1625   if test "${ac_cv_path_install+set}" = set; then
1626     INSTALL=$ac_cv_path_install
1627   else
1628     # As a last resort, use the slow shell script.  We don't cache a
1629     # path for INSTALL within a source directory, because that will
1630     # break other packages using the cache if that directory is
1631     # removed, or if the path is relative.
1632     INSTALL=$ac_install_sh
1633   fi
1634 fi
1635 echo "$as_me:$LINENO: result: $INSTALL" >&5
1636 echo "${ECHO_T}$INSTALL" >&6
1637
1638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1639 # It thinks the first close brace ends the variable substitution.
1640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1641
1642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1643
1644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1645
1646 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1647 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1648 # Just in case
1649 sleep 1
1650 echo timestamp > conftest.file
1651 # Do `set' in a subshell so we don't clobber the current shell's
1652 # arguments.  Must try -L first in case configure is actually a
1653 # symlink; some systems play weird games with the mod time of symlinks
1654 # (eg FreeBSD returns the mod time of the symlink's containing
1655 # directory).
1656 if (
1657    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1658    if test "$*" = "X"; then
1659       # -L didn't work.
1660       set X `ls -t $srcdir/configure conftest.file`
1661    fi
1662    rm -f conftest.file
1663    if test "$*" != "X $srcdir/configure conftest.file" \
1664       && test "$*" != "X conftest.file $srcdir/configure"; then
1665
1666       # If neither matched, then we have a broken ls.  This can happen
1667       # if, for instance, CONFIG_SHELL is bash and it inherits a
1668       # broken ls alias from the environment.  This has actually
1669       # happened.  Such a system could not be considered "sane".
1670       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1671 alias in your environment" >&5
1672 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1673 alias in your environment" >&2;}
1674    { (exit 1); exit 1; }; }
1675    fi
1676
1677    test "$2" = conftest.file
1678    )
1679 then
1680    # Ok.
1681    :
1682 else
1683    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1684 Check your system clock" >&5
1685 echo "$as_me: error: newly created file is older than distributed files!
1686 Check your system clock" >&2;}
1687    { (exit 1); exit 1; }; }
1688 fi
1689 echo "$as_me:$LINENO: result: yes" >&5
1690 echo "${ECHO_T}yes" >&6
1691 test "$program_prefix" != NONE &&
1692   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1693 # Use a double $ so make ignores it.
1694 test "$program_suffix" != NONE &&
1695   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1696 # Double any \ or $.  echo might interpret backslashes.
1697 # By default was `s,x,x', remove it if useless.
1698 cat <<\_ACEOF >conftest.sed
1699 s/[\\$]/&&/g;s/;s,x,x,$//
1700 _ACEOF
1701 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1702 rm conftest.sed
1703
1704 # expand $ac_aux_dir to an absolute path
1705 am_aux_dir=`cd $ac_aux_dir && pwd`
1706
1707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708 # Use eval to expand $SHELL
1709 if eval "$MISSING --run true"; then
1710   am_missing_run="$MISSING --run "
1711 else
1712   am_missing_run=
1713   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1715 fi
1716
1717 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1718   # We used to keeping the `.' as first argument, in order to
1719   # allow $(mkdir_p) to be used without argument.  As in
1720   #   $(mkdir_p) $(somedir)
1721   # where $(somedir) is conditionally defined.  However this is wrong
1722   # for two reasons:
1723   #  1. if the package is installed by a user who cannot write `.'
1724   #     make install will fail,
1725   #  2. the above comment should most certainly read
1726   #     $(mkdir_p) $(DESTDIR)$(somedir)
1727   #     so it does not work when $(somedir) is undefined and
1728   #     $(DESTDIR) is not.
1729   #  To support the latter case, we have to write
1730   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1731   #  so the `.' trick is pointless.
1732   mkdir_p='mkdir -p --'
1733 else
1734   # On NextStep and OpenStep, the `mkdir' command does not
1735   # recognize any option.  It will interpret all options as
1736   # directories to create, and then abort because `.' already
1737   # exists.
1738   for d in ./-p ./--version;
1739   do
1740     test -d $d && rmdir $d
1741   done
1742   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1743   if test -f "$ac_aux_dir/mkinstalldirs"; then
1744     mkdir_p='$(mkinstalldirs)'
1745   else
1746     mkdir_p='$(install_sh) -d'
1747   fi
1748 fi
1749
1750 for ac_prog in gawk mawk nawk awk
1751 do
1752   # Extract the first word of "$ac_prog", so it can be a program name with args.
1753 set dummy $ac_prog; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_AWK+set}" = set; then
1757   echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759   if test -n "$AWK"; then
1760   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1761 else
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
1764 do
1765   IFS=$as_save_IFS
1766   test -z "$as_dir" && as_dir=.
1767   for ac_exec_ext in '' $ac_executable_extensions; do
1768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769     ac_cv_prog_AWK="$ac_prog"
1770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771     break 2
1772   fi
1773 done
1774 done
1775
1776 fi
1777 fi
1778 AWK=$ac_cv_prog_AWK
1779 if test -n "$AWK"; then
1780   echo "$as_me:$LINENO: result: $AWK" >&5
1781 echo "${ECHO_T}$AWK" >&6
1782 else
1783   echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1785 fi
1786
1787   test -n "$AWK" && break
1788 done
1789
1790 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1791 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1792 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1793 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1794   echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796   cat >conftest.make <<\_ACEOF
1797 all:
1798         @echo 'ac_maketemp="$(MAKE)"'
1799 _ACEOF
1800 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1801 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1802 if test -n "$ac_maketemp"; then
1803   eval ac_cv_prog_make_${ac_make}_set=yes
1804 else
1805   eval ac_cv_prog_make_${ac_make}_set=no
1806 fi
1807 rm -f conftest.make
1808 fi
1809 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1810   echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1812   SET_MAKE=
1813 else
1814   echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816   SET_MAKE="MAKE=${MAKE-make}"
1817 fi
1818
1819 rm -rf .tst 2>/dev/null
1820 mkdir .tst 2>/dev/null
1821 if test -d .tst; then
1822   am__leading_dot=.
1823 else
1824   am__leading_dot=_
1825 fi
1826 rmdir .tst 2>/dev/null
1827
1828 # test to see if srcdir already configured
1829 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1830    test -f $srcdir/config.status; then
1831   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1832 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1833    { (exit 1); exit 1; }; }
1834 fi
1835
1836 # test whether we have cygpath
1837 if test -z "$CYGPATH_W"; then
1838   if (cygpath --version) >/dev/null 2>/dev/null; then
1839     CYGPATH_W='cygpath -w'
1840   else
1841     CYGPATH_W=echo
1842   fi
1843 fi
1844
1845
1846 # Define the identity of the package.
1847  PACKAGE=libltdl
1848  VERSION=1.2
1849
1850
1851 # Some tools Automake needs.
1852
1853 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1854
1855
1856 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1857
1858
1859 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1860
1861
1862 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1863
1864
1865 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1866
1867 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1868
1869 # Installed binaries are usually stripped using `strip' when the user
1870 # run `make install-strip'.  However `strip' might not be the right
1871 # tool to use in cross-compilation environments, therefore Automake
1872 # will honor the `STRIP' environment variable to overrule this program.
1873 if test "$cross_compiling" != no; then
1874   if test -n "$ac_tool_prefix"; then
1875   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1876 set dummy ${ac_tool_prefix}strip; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_STRIP+set}" = set; then
1880   echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882   if test -n "$STRIP"; then
1883   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1884 else
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888   IFS=$as_save_IFS
1889   test -z "$as_dir" && as_dir=.
1890   for ac_exec_ext in '' $ac_executable_extensions; do
1891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894     break 2
1895   fi
1896 done
1897 done
1898
1899 fi
1900 fi
1901 STRIP=$ac_cv_prog_STRIP
1902 if test -n "$STRIP"; then
1903   echo "$as_me:$LINENO: result: $STRIP" >&5
1904 echo "${ECHO_T}$STRIP" >&6
1905 else
1906   echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1908 fi
1909
1910 fi
1911 if test -z "$ac_cv_prog_STRIP"; then
1912   ac_ct_STRIP=$STRIP
1913   # Extract the first word of "strip", so it can be a program name with args.
1914 set dummy strip; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   if test -n "$ac_ct_STRIP"; then
1921   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926   IFS=$as_save_IFS
1927   test -z "$as_dir" && as_dir=.
1928   for ac_exec_ext in '' $ac_executable_extensions; do
1929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930     ac_cv_prog_ac_ct_STRIP="strip"
1931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932     break 2
1933   fi
1934 done
1935 done
1936
1937   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1938 fi
1939 fi
1940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1941 if test -n "$ac_ct_STRIP"; then
1942   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1943 echo "${ECHO_T}$ac_ct_STRIP" >&6
1944 else
1945   echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 fi
1948
1949   STRIP=$ac_ct_STRIP
1950 else
1951   STRIP="$ac_cv_prog_STRIP"
1952 fi
1953
1954 fi
1955 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1956
1957 # We need awk for the "check" target.  The system "awk" is bad on
1958 # some platforms.
1959 # Always define AMTAR for backward compatibility.
1960
1961 AMTAR=${AMTAR-"${am_missing_run}tar"}
1962
1963 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1964
1965
1966
1967
1968
1969           ac_config_headers="$ac_config_headers config.h:config-h.in"
1970
1971
1972
1973 ## ------------------ ##
1974 ## C compiler checks. ##
1975 ## ------------------ ##
1976 ac_ext=c
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   if test -n "$CC"; then
1990   ac_cv_prog_CC="$CC" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995   IFS=$as_save_IFS
1996   test -z "$as_dir" && as_dir=.
1997   for ac_exec_ext in '' $ac_executable_extensions; do
1998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001     break 2
2002   fi
2003 done
2004 done
2005
2006 fi
2007 fi
2008 CC=$ac_cv_prog_CC
2009 if test -n "$CC"; then
2010   echo "$as_me:$LINENO: result: $CC" >&5
2011 echo "${ECHO_T}$CC" >&6
2012 else
2013   echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2015 fi
2016
2017 fi
2018 if test -z "$ac_cv_prog_CC"; then
2019   ac_ct_CC=$CC
2020   # Extract the first word of "gcc", so it can be a program name with args.
2021 set dummy gcc; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   if test -n "$ac_ct_CC"; then
2028   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2032 do
2033   IFS=$as_save_IFS
2034   test -z "$as_dir" && as_dir=.
2035   for ac_exec_ext in '' $ac_executable_extensions; do
2036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037     ac_cv_prog_ac_ct_CC="gcc"
2038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039     break 2
2040   fi
2041 done
2042 done
2043
2044 fi
2045 fi
2046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047 if test -n "$ac_ct_CC"; then
2048   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049 echo "${ECHO_T}$ac_ct_CC" >&6
2050 else
2051   echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2053 fi
2054
2055   CC=$ac_ct_CC
2056 else
2057   CC="$ac_cv_prog_CC"
2058 fi
2059
2060 if test -z "$CC"; then
2061   if test -n "$ac_tool_prefix"; then
2062   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2063 set dummy ${ac_tool_prefix}cc; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_CC+set}" = set; then
2067   echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069   if test -n "$CC"; then
2070   ac_cv_prog_CC="$CC" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2074 do
2075   IFS=$as_save_IFS
2076   test -z "$as_dir" && as_dir=.
2077   for ac_exec_ext in '' $ac_executable_extensions; do
2078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079     ac_cv_prog_CC="${ac_tool_prefix}cc"
2080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081     break 2
2082   fi
2083 done
2084 done
2085
2086 fi
2087 fi
2088 CC=$ac_cv_prog_CC
2089 if test -n "$CC"; then
2090   echo "$as_me:$LINENO: result: $CC" >&5
2091 echo "${ECHO_T}$CC" >&6
2092 else
2093   echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2095 fi
2096
2097 fi
2098 if test -z "$ac_cv_prog_CC"; then
2099   ac_ct_CC=$CC
2100   # Extract the first word of "cc", so it can be a program name with args.
2101 set dummy cc; ac_word=$2
2102 echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2104 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2105   echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107   if test -n "$ac_ct_CC"; then
2108   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2109 else
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 for as_dir in $PATH
2112 do
2113   IFS=$as_save_IFS
2114   test -z "$as_dir" && as_dir=.
2115   for ac_exec_ext in '' $ac_executable_extensions; do
2116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2117     ac_cv_prog_ac_ct_CC="cc"
2118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119     break 2
2120   fi
2121 done
2122 done
2123
2124 fi
2125 fi
2126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2127 if test -n "$ac_ct_CC"; then
2128   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2129 echo "${ECHO_T}$ac_ct_CC" >&6
2130 else
2131   echo "$as_me:$LINENO: result: no" >&5
2132 echo "${ECHO_T}no" >&6
2133 fi
2134
2135   CC=$ac_ct_CC
2136 else
2137   CC="$ac_cv_prog_CC"
2138 fi
2139
2140 fi
2141 if test -z "$CC"; then
2142   # Extract the first word of "cc", so it can be a program name with args.
2143 set dummy cc; ac_word=$2
2144 echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2146 if test "${ac_cv_prog_CC+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149   if test -n "$CC"; then
2150   ac_cv_prog_CC="$CC" # Let the user override the test.
2151 else
2152   ac_prog_rejected=no
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 for as_dir in $PATH
2155 do
2156   IFS=$as_save_IFS
2157   test -z "$as_dir" && as_dir=.
2158   for ac_exec_ext in '' $ac_executable_extensions; do
2159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2160     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2161        ac_prog_rejected=yes
2162        continue
2163      fi
2164     ac_cv_prog_CC="cc"
2165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166     break 2
2167   fi
2168 done
2169 done
2170
2171 if test $ac_prog_rejected = yes; then
2172   # We found a bogon in the path, so make sure we never use it.
2173   set dummy $ac_cv_prog_CC
2174   shift
2175   if test $# != 0; then
2176     # We chose a different compiler from the bogus one.
2177     # However, it has the same basename, so the bogon will be chosen
2178     # first if we set CC to just the basename; use the full file name.
2179     shift
2180     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2181   fi
2182 fi
2183 fi
2184 fi
2185 CC=$ac_cv_prog_CC
2186 if test -n "$CC"; then
2187   echo "$as_me:$LINENO: result: $CC" >&5
2188 echo "${ECHO_T}$CC" >&6
2189 else
2190   echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6
2192 fi
2193
2194 fi
2195 if test -z "$CC"; then
2196   if test -n "$ac_tool_prefix"; then
2197   for ac_prog in cl
2198   do
2199     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2201 echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203 if test "${ac_cv_prog_CC+set}" = set; then
2204   echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206   if test -n "$CC"; then
2207   ac_cv_prog_CC="$CC" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212   IFS=$as_save_IFS
2213   test -z "$as_dir" && as_dir=.
2214   for ac_exec_ext in '' $ac_executable_extensions; do
2215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218     break 2
2219   fi
2220 done
2221 done
2222
2223 fi
2224 fi
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227   echo "$as_me:$LINENO: result: $CC" >&5
2228 echo "${ECHO_T}$CC" >&6
2229 else
2230   echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6
2232 fi
2233
2234     test -n "$CC" && break
2235   done
2236 fi
2237 if test -z "$CC"; then
2238   ac_ct_CC=$CC
2239   for ac_prog in cl
2240 do
2241   # Extract the first word of "$ac_prog", so it can be a program name with args.
2242 set dummy $ac_prog; ac_word=$2
2243 echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2246   echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248   if test -n "$ac_ct_CC"; then
2249   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254   IFS=$as_save_IFS
2255   test -z "$as_dir" && as_dir=.
2256   for ac_exec_ext in '' $ac_executable_extensions; do
2257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258     ac_cv_prog_ac_ct_CC="$ac_prog"
2259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260     break 2
2261   fi
2262 done
2263 done
2264
2265 fi
2266 fi
2267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2268 if test -n "$ac_ct_CC"; then
2269   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2270 echo "${ECHO_T}$ac_ct_CC" >&6
2271 else
2272   echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2274 fi
2275
2276   test -n "$ac_ct_CC" && break
2277 done
2278
2279   CC=$ac_ct_CC
2280 fi
2281
2282 fi
2283
2284
2285 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: no acceptable C compiler found in \$PATH
2288 See \`config.log' for more details." >&2;}
2289    { (exit 1); exit 1; }; }
2290
2291 # Provide some information about the compiler.
2292 echo "$as_me:$LINENO:" \
2293      "checking for C compiler version" >&5
2294 ac_compiler=`set X $ac_compile; echo $2`
2295 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2296   (eval $ac_compiler --version </dev/null >&5) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }
2300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2301   (eval $ac_compiler -v </dev/null >&5) 2>&5
2302   ac_status=$?
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); }
2305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2306   (eval $ac_compiler -V </dev/null >&5) 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }
2310
2311 cat >conftest.$ac_ext <<_ACEOF
2312 /* confdefs.h.  */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h.  */
2317
2318 int
2319 main ()
2320 {
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 ac_clean_files_save=$ac_clean_files
2327 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2328 # Try to create an executable without -o first, disregard a.out.
2329 # It will help us diagnose broken compilers, and finding out an intuition
2330 # of exeext.
2331 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2332 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2333 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2334 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2335   (eval $ac_link_default) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; then
2339   # Find the output, starting from the most likely.  This scheme is
2340 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2341 # resort.
2342
2343 # Be careful to initialize this variable, since it used to be cached.
2344 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2345 ac_cv_exeext=
2346 # b.out is created by i960 compilers.
2347 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2348 do
2349   test -f "$ac_file" || continue
2350   case $ac_file in
2351     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2352         ;;
2353     conftest.$ac_ext )
2354         # This is the source file.
2355         ;;
2356     [ab].out )
2357         # We found the default executable, but exeext='' is most
2358         # certainly right.
2359         break;;
2360     *.* )
2361         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2362         # FIXME: I believe we export ac_cv_exeext for Libtool,
2363         # but it would be cool to find out if it's true.  Does anybody
2364         # maintain Libtool? --akim.
2365         export ac_cv_exeext
2366         break;;
2367     * )
2368         break;;
2369   esac
2370 done
2371 else
2372   echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2376 See \`config.log' for more details." >&5
2377 echo "$as_me: error: C compiler cannot create executables
2378 See \`config.log' for more details." >&2;}
2379    { (exit 77); exit 77; }; }
2380 fi
2381
2382 ac_exeext=$ac_cv_exeext
2383 echo "$as_me:$LINENO: result: $ac_file" >&5
2384 echo "${ECHO_T}$ac_file" >&6
2385
2386 # Check the compiler produces executables we can run.  If not, either
2387 # the compiler is broken, or we cross compile.
2388 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2389 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2390 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2391 # If not cross compiling, check that we can run a simple program.
2392 if test "$cross_compiling" != yes; then
2393   if { ac_try='./$ac_file'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; }; then
2399     cross_compiling=no
2400   else
2401     if test "$cross_compiling" = maybe; then
2402         cross_compiling=yes
2403     else
2404         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2405 If you meant to cross compile, use \`--host'.
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: cannot run C compiled programs.
2408 If you meant to cross compile, use \`--host'.
2409 See \`config.log' for more details." >&2;}
2410    { (exit 1); exit 1; }; }
2411     fi
2412   fi
2413 fi
2414 echo "$as_me:$LINENO: result: yes" >&5
2415 echo "${ECHO_T}yes" >&6
2416
2417 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2418 ac_clean_files=$ac_clean_files_save
2419 # Check the compiler produces executables we can run.  If not, either
2420 # the compiler is broken, or we cross compile.
2421 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2422 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2423 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2424 echo "${ECHO_T}$cross_compiling" >&6
2425
2426 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2427 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2429   (eval $ac_link) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; then
2433   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2434 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2435 # work properly (i.e., refer to `conftest.exe'), while it won't with
2436 # `rm'.
2437 for ac_file in conftest.exe conftest conftest.*; do
2438   test -f "$ac_file" || continue
2439   case $ac_file in
2440     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2441     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2442           export ac_cv_exeext
2443           break;;
2444     * ) break;;
2445   esac
2446 done
2447 else
2448   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2449 See \`config.log' for more details." >&5
2450 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2451 See \`config.log' for more details." >&2;}
2452    { (exit 1); exit 1; }; }
2453 fi
2454
2455 rm -f conftest$ac_cv_exeext
2456 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2457 echo "${ECHO_T}$ac_cv_exeext" >&6
2458
2459 rm -f conftest.$ac_ext
2460 EXEEXT=$ac_cv_exeext
2461 ac_exeext=$EXEEXT
2462 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2463 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2464 if test "${ac_cv_objext+set}" = set; then
2465   echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467   cat >conftest.$ac_ext <<_ACEOF
2468 /* confdefs.h.  */
2469 _ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h.  */
2473
2474 int
2475 main ()
2476 {
2477
2478   ;
2479   return 0;
2480 }
2481 _ACEOF
2482 rm -f conftest.o conftest.obj
2483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484   (eval $ac_compile) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; then
2488   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2489   case $ac_file in
2490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2491     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2492        break;;
2493   esac
2494 done
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2502 See \`config.log' for more details." >&2;}
2503    { (exit 1); exit 1; }; }
2504 fi
2505
2506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2507 fi
2508 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2509 echo "${ECHO_T}$ac_cv_objext" >&6
2510 OBJEXT=$ac_cv_objext
2511 ac_objext=$OBJEXT
2512 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2513 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2514 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h.  */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h.  */
2523
2524 int
2525 main ()
2526 {
2527 #ifndef __GNUC__
2528        choke me
2529 #endif
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537   (eval $ac_compile) 2>conftest.er1
2538   ac_status=$?
2539   grep -v '^ *+' conftest.er1 >conftest.err
2540   rm -f conftest.er1
2541   cat conftest.err >&5
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); } &&
2544          { ac_try='test -z "$ac_c_werror_flag"
2545                          || test ! -s conftest.err'
2546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547   (eval $ac_try) 2>&5
2548   ac_status=$?
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); }; } &&
2551          { ac_try='test -s conftest.$ac_objext'
2552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553   (eval $ac_try) 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }; }; then
2557   ac_compiler_gnu=yes
2558 else
2559   echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 ac_compiler_gnu=no
2563 fi
2564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2565 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2566
2567 fi
2568 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2569 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2570 GCC=`test $ac_compiler_gnu = yes && echo yes`
2571 ac_test_CFLAGS=${CFLAGS+set}
2572 ac_save_CFLAGS=$CFLAGS
2573 CFLAGS="-g"
2574 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2575 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2576 if test "${ac_cv_prog_cc_g+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h.  */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h.  */
2585
2586 int
2587 main ()
2588 {
2589
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596   (eval $ac_compile) 2>conftest.er1
2597   ac_status=$?
2598   grep -v '^ *+' conftest.er1 >conftest.err
2599   rm -f conftest.er1
2600   cat conftest.err >&5
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); } &&
2603          { ac_try='test -z "$ac_c_werror_flag"
2604                          || test ! -s conftest.err'
2605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606   (eval $ac_try) 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); }; } &&
2610          { ac_try='test -s conftest.$ac_objext'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; }; then
2616   ac_cv_prog_cc_g=yes
2617 else
2618   echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 ac_cv_prog_cc_g=no
2622 fi
2623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2624 fi
2625 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2627 if test "$ac_test_CFLAGS" = set; then
2628   CFLAGS=$ac_save_CFLAGS
2629 elif test $ac_cv_prog_cc_g = yes; then
2630   if test "$GCC" = yes; then
2631     CFLAGS="-g -O2"
2632   else
2633     CFLAGS="-g"
2634   fi
2635 else
2636   if test "$GCC" = yes; then
2637     CFLAGS="-O2"
2638   else
2639     CFLAGS=
2640   fi
2641 fi
2642 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2643 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2644 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   ac_cv_prog_cc_stdc=no
2648 ac_save_CC=$CC
2649 cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h.  */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h.  */
2655 #include <stdarg.h>
2656 #include <stdio.h>
2657 #include <sys/types.h>
2658 #include <sys/stat.h>
2659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2660 struct buf { int x; };
2661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662 static char *e (p, i)
2663      char **p;
2664      int i;
2665 {
2666   return p[i];
2667 }
2668 static char *f (char * (*g) (char **, int), char **p, ...)
2669 {
2670   char *s;
2671   va_list v;
2672   va_start (v,p);
2673   s = g (p, va_arg (v,int));
2674   va_end (v);
2675   return s;
2676 }
2677
2678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2679    function prototypes and stuff, but not '\xHH' hex character constants.
2680    These don't provoke an error unfortunately, instead are silently treated
2681    as 'x'.  The following induces an error, until -std1 is added to get
2682    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2683    array size at least.  It's necessary to write '\x00'==0 to get something
2684    that's true only with -std1.  */
2685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2686
2687 int test (int i, double x);
2688 struct s1 {int (*f) (int a);};
2689 struct s2 {int (*f) (double a);};
2690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2691 int argc;
2692 char **argv;
2693 int
2694 main ()
2695 {
2696 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2697   ;
2698   return 0;
2699 }
2700 _ACEOF
2701 # Don't try gcc -ansi; that turns off useful extensions and
2702 # breaks some systems' header files.
2703 # AIX                   -qlanglvl=ansi
2704 # Ultrix and OSF/1      -std1
2705 # HP-UX 10.20 and later -Ae
2706 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2707 # SVR4                  -Xc -D__EXTENSIONS__
2708 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2709 do
2710   CC="$ac_save_CC $ac_arg"
2711   rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713   (eval $ac_compile) 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -z "$ac_c_werror_flag"
2721                          || test ! -s conftest.err'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   ac_cv_prog_cc_stdc=$ac_arg
2734 break
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 fi
2740 rm -f conftest.err conftest.$ac_objext
2741 done
2742 rm -f conftest.$ac_ext conftest.$ac_objext
2743 CC=$ac_save_CC
2744
2745 fi
2746
2747 case "x$ac_cv_prog_cc_stdc" in
2748   x|xno)
2749     echo "$as_me:$LINENO: result: none needed" >&5
2750 echo "${ECHO_T}none needed" >&6 ;;
2751   *)
2752     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2753 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2754     CC="$CC $ac_cv_prog_cc_stdc" ;;
2755 esac
2756
2757 # Some people use a C++ compiler to compile C.  Since we use `exit',
2758 # in C++ we need to declare it.  In case someone uses the same compiler
2759 # for both compiling C and C++ we need to have the C++ compiler decide
2760 # the declaration of exit, since it's the most demanding environment.
2761 cat >conftest.$ac_ext <<_ACEOF
2762 #ifndef __cplusplus
2763   choke me
2764 #endif
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768   (eval $ac_compile) 2>conftest.er1
2769   ac_status=$?
2770   grep -v '^ *+' conftest.er1 >conftest.err
2771   rm -f conftest.er1
2772   cat conftest.err >&5
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); } &&
2775          { ac_try='test -z "$ac_c_werror_flag"
2776                          || test ! -s conftest.err'
2777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778   (eval $ac_try) 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; } &&
2782          { ac_try='test -s conftest.$ac_objext'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; }; then
2788   for ac_declaration in \
2789    '' \
2790    'extern "C" void std::exit (int) throw (); using std::exit;' \
2791    'extern "C" void std::exit (int); using std::exit;' \
2792    'extern "C" void exit (int) throw ();' \
2793    'extern "C" void exit (int);' \
2794    'void exit (int);'
2795 do
2796   cat >conftest.$ac_ext <<_ACEOF
2797 /* confdefs.h.  */
2798 _ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h.  */
2802 $ac_declaration
2803 #include <stdlib.h>
2804 int
2805 main ()
2806 {
2807 exit (42);
2808   ;
2809   return 0;
2810 }
2811 _ACEOF
2812 rm -f conftest.$ac_objext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2814   (eval $ac_compile) 2>conftest.er1
2815   ac_status=$?
2816   grep -v '^ *+' conftest.er1 >conftest.err
2817   rm -f conftest.er1
2818   cat conftest.err >&5
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); } &&
2821          { ac_try='test -z "$ac_c_werror_flag"
2822                          || test ! -s conftest.err'
2823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824   (eval $ac_try) 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); }; } &&
2828          { ac_try='test -s conftest.$ac_objext'
2829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830   (eval $ac_try) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; }; then
2834   :
2835 else
2836   echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839 continue
2840 fi
2841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2842   cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h.  */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h.  */
2848 $ac_declaration
2849 int
2850 main ()
2851 {
2852 exit (42);
2853   ;
2854   return 0;
2855 }
2856 _ACEOF
2857 rm -f conftest.$ac_objext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859   (eval $ac_compile) 2>conftest.er1
2860   ac_status=$?
2861   grep -v '^ *+' conftest.er1 >conftest.err
2862   rm -f conftest.er1
2863   cat conftest.err >&5
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); } &&
2866          { ac_try='test -z "$ac_c_werror_flag"
2867                          || test ! -s conftest.err'
2868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869   (eval $ac_try) 2>&5
2870   ac_status=$?
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); }; } &&
2873          { ac_try='test -s conftest.$ac_objext'
2874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875   (eval $ac_try) 2>&5
2876   ac_status=$?
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); }; }; then
2879   break
2880 else
2881   echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2883
2884 fi
2885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2886 done
2887 rm -f conftest*
2888 if test -n "$ac_declaration"; then
2889   echo '#ifdef __cplusplus' >>confdefs.h
2890   echo $ac_declaration      >>confdefs.h
2891   echo '#endif'             >>confdefs.h
2892 fi
2893
2894 else
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 fi
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 ac_ext=c
2901 ac_cpp='$CPP $CPPFLAGS'
2902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2905 DEPDIR="${am__leading_dot}deps"
2906
2907           ac_config_commands="$ac_config_commands depfiles"
2908
2909
2910 am_make=${MAKE-make}
2911 cat > confinc << 'END'
2912 am__doit:
2913         @echo done
2914 .PHONY: am__doit
2915 END
2916 # If we don't find an include directive, just comment out the code.
2917 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2918 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2919 am__include="#"
2920 am__quote=
2921 _am_result=none
2922 # First try GNU make style include.
2923 echo "include confinc" > confmf
2924 # We grep out `Entering directory' and `Leaving directory'
2925 # messages which can occur if `w' ends up in MAKEFLAGS.
2926 # In particular we don't look at `^make:' because GNU make might
2927 # be invoked under some other name (usually "gmake"), in which
2928 # case it prints its new name instead of `make'.
2929 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2930    am__include=include
2931    am__quote=
2932    _am_result=GNU
2933 fi
2934 # Now try BSD make style include.
2935 if test "$am__include" = "#"; then
2936    echo '.include "confinc"' > confmf
2937    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2938       am__include=.include
2939       am__quote="\""
2940       _am_result=BSD
2941    fi
2942 fi
2943
2944
2945 echo "$as_me:$LINENO: result: $_am_result" >&5
2946 echo "${ECHO_T}$_am_result" >&6
2947 rm -f confinc confmf
2948
2949 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2950 if test "${enable_dependency_tracking+set}" = set; then
2951   enableval="$enable_dependency_tracking"
2952
2953 fi;
2954 if test "x$enable_dependency_tracking" != xno; then
2955   am_depcomp="$ac_aux_dir/depcomp"
2956   AMDEPBACKSLASH='\'
2957 fi
2958
2959
2960 if test "x$enable_dependency_tracking" != xno; then
2961   AMDEP_TRUE=
2962   AMDEP_FALSE='#'
2963 else
2964   AMDEP_TRUE='#'
2965   AMDEP_FALSE=
2966 fi
2967
2968
2969
2970
2971 depcc="$CC"   am_compiler_list=
2972
2973 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2974 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2976   echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2979   # We make a subdir and do the tests there.  Otherwise we can end up
2980   # making bogus files that we don't know about and never remove.  For
2981   # instance it was reported that on HP-UX the gcc test will end up
2982   # making a dummy file named `D' -- because `-MD' means `put the output
2983   # in D'.
2984   mkdir conftest.dir
2985   # Copy depcomp to subdir because otherwise we won't find it if we're
2986   # using a relative directory.
2987   cp "$am_depcomp" conftest.dir
2988   cd conftest.dir
2989   # We will build objects and dependencies in a subdirectory because
2990   # it helps to detect inapplicable dependency modes.  For instance
2991   # both Tru64's cc and ICC support -MD to output dependencies as a
2992   # side effect of compilation, but ICC will put the dependencies in
2993   # the current directory while Tru64 will put them in the object
2994   # directory.
2995   mkdir sub
2996
2997   am_cv_CC_dependencies_compiler_type=none
2998   if test "$am_compiler_list" = ""; then
2999      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3000   fi
3001   for depmode in $am_compiler_list; do
3002     # Setup a source with many dependencies, because some compilers
3003     # like to wrap large dependency lists on column 80 (with \), and
3004     # we should not choose a depcomp mode which is confused by this.
3005     #
3006     # We need to recreate these files for each test, as the compiler may
3007     # overwrite some of them when testing with obscure command lines.
3008     # This happens at least with the AIX C compiler.
3009     : > sub/conftest.c
3010     for i in 1 2 3 4 5 6; do
3011       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3012       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3013       # Solaris 8's {/usr,}/bin/sh.
3014       touch sub/conftst$i.h
3015     done
3016     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3017
3018     case $depmode in
3019     nosideeffect)
3020       # after this tag, mechanisms are not by side-effect, so they'll
3021       # only be used when explicitly requested
3022       if test "x$enable_dependency_tracking" = xyes; then
3023         continue
3024       else
3025         break
3026       fi
3027       ;;
3028     none) break ;;
3029     esac
3030     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3031     # mode.  It turns out that the SunPro C++ compiler does not properly
3032     # handle `-M -o', and we need to detect this.
3033     if depmode=$depmode \
3034        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3035        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3036        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3037          >/dev/null 2>conftest.err &&
3038        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3039        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3040        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3041       # icc doesn't choke on unknown options, it will just issue warnings
3042       # or remarks (even with -Werror).  So we grep stderr for any message
3043       # that says an option was ignored or not supported.
3044       # When given -MP, icc 7.0 and 7.1 complain thusly:
3045       #   icc: Command line warning: ignoring option '-M'; no argument required
3046       # The diagnosis changed in icc 8.0:
3047       #   icc: Command line remark: option '-MP' not supported
3048       if (grep 'ignoring option' conftest.err ||
3049           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3050         am_cv_CC_dependencies_compiler_type=$depmode
3051         break
3052       fi
3053     fi
3054   done
3055
3056   cd ..
3057   rm -rf conftest.dir
3058 else
3059   am_cv_CC_dependencies_compiler_type=none
3060 fi
3061
3062 fi
3063 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3064 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3065 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3066
3067
3068
3069 if
3070   test "x$enable_dependency_tracking" != xno \
3071   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3072   am__fastdepCC_TRUE=
3073   am__fastdepCC_FALSE='#'
3074 else
3075   am__fastdepCC_TRUE='#'
3076   am__fastdepCC_FALSE=
3077 fi
3078
3079
3080
3081 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3082 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3083 if test "${ac_cv_c_const+set}" = set; then
3084   echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086   cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092
3093 int
3094 main ()
3095 {
3096 /* FIXME: Include the comments suggested by Paul. */
3097 #ifndef __cplusplus
3098   /* Ultrix mips cc rejects this.  */
3099   typedef int charset[2];
3100   const charset x;
3101   /* SunOS 4.1.1 cc rejects this.  */
3102   char const *const *ccp;
3103   char **p;
3104   /* NEC SVR4.0.2 mips cc rejects this.  */
3105   struct point {int x, y;};
3106   static struct point const zero = {0,0};
3107   /* AIX XL C 1.02.0.0 rejects this.
3108      It does not let you subtract one const X* pointer from another in
3109      an arm of an if-expression whose if-part is not a constant
3110      expression */
3111   const char *g = "string";
3112   ccp = &g + (g ? g-g : 0);
3113   /* HPUX 7.0 cc rejects these. */
3114   ++ccp;
3115   p = (char**) ccp;
3116   ccp = (char const *const *) p;
3117   { /* SCO 3.2v4 cc rejects this.  */
3118     char *t;
3119     char const *s = 0 ? (char *) 0 : (char const *) 0;
3120
3121     *t++ = 0;
3122   }
3123   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3124     int x[] = {25, 17};
3125     const int *foo = &x[0];
3126     ++foo;
3127   }
3128   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3129     typedef const int *iptr;
3130     iptr p = 0;
3131     ++p;
3132   }
3133   { /* AIX XL C 1.02.0.0 rejects this saying
3134        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3135     struct s { int j; const int *ap[3]; };
3136     struct s *b; b->j = 5;
3137   }
3138   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3139     const int foo = 10;
3140   }
3141 #endif
3142
3143   ;
3144   return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149   (eval $ac_compile) 2>conftest.er1
3150   ac_status=$?
3151   grep -v '^ *+' conftest.er1 >conftest.err
3152   rm -f conftest.er1
3153   cat conftest.err >&5
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); } &&
3156          { ac_try='test -z "$ac_c_werror_flag"
3157                          || test ! -s conftest.err'
3158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159   (eval $ac_try) 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }; } &&
3163          { ac_try='test -s conftest.$ac_objext'
3164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165   (eval $ac_try) 2>&5
3166   ac_status=$?
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); }; }; then
3169   ac_cv_c_const=yes
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 ac_cv_c_const=no
3175 fi
3176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3177 fi
3178 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3179 echo "${ECHO_T}$ac_cv_c_const" >&6
3180 if test $ac_cv_c_const = no; then
3181
3182 cat >>confdefs.h <<\_ACEOF
3183 #define const
3184 _ACEOF
3185
3186 fi
3187
3188 echo "$as_me:$LINENO: checking for inline" >&5
3189 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3190 if test "${ac_cv_c_inline+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   ac_cv_c_inline=no
3194 for ac_kw in inline __inline__ __inline; do
3195   cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h.  */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h.  */
3201 #ifndef __cplusplus
3202 typedef int foo_t;
3203 static $ac_kw foo_t static_foo () {return 0; }
3204 $ac_kw foo_t foo () {return 0; }
3205 #endif
3206
3207 _ACEOF
3208 rm -f conftest.$ac_objext
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210   (eval $ac_compile) 2>conftest.er1
3211   ac_status=$?
3212   grep -v '^ *+' conftest.er1 >conftest.err
3213   rm -f conftest.er1
3214   cat conftest.err >&5
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); } &&
3217          { ac_try='test -z "$ac_c_werror_flag"
3218                          || test ! -s conftest.err'
3219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220   (eval $ac_try) 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; } &&
3224          { ac_try='test -s conftest.$ac_objext'
3225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226   (eval $ac_try) 2>&5
3227   ac_status=$?
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); }; }; then
3230   ac_cv_c_inline=$ac_kw; break
3231 else
3232   echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235 fi
3236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3237 done
3238
3239 fi
3240 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3241 echo "${ECHO_T}$ac_cv_c_inline" >&6
3242
3243
3244 case $ac_cv_c_inline in
3245   inline | yes) ;;
3246   *)
3247     case $ac_cv_c_inline in
3248       no) ac_val=;;
3249       *) ac_val=$ac_cv_c_inline;;
3250     esac
3251     cat >>confdefs.h <<_ACEOF
3252 #ifndef __cplusplus
3253 #define inline $ac_val
3254 #endif
3255 _ACEOF
3256     ;;
3257 esac
3258
3259
3260
3261 ## ----------------------- ##
3262 ## Libtool initialisation. ##
3263 ## ----------------------- ##
3264
3265
3266 # Check whether --enable-shared or --disable-shared was given.
3267 if test "${enable_shared+set}" = set; then
3268   enableval="$enable_shared"
3269   p=${PACKAGE-default}
3270     case $enableval in
3271     yes) enable_shared=yes ;;
3272     no) enable_shared=no ;;
3273     *)
3274       enable_shared=no
3275       # Look at the argument we got.  We use all the common list separators.
3276       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3277       for pkg in $enableval; do
3278         IFS="$lt_save_ifs"
3279         if test "X$pkg" = "X$p"; then
3280           enable_shared=yes
3281         fi
3282       done
3283       IFS="$lt_save_ifs"
3284       ;;
3285     esac
3286 else
3287   enable_shared=yes
3288 fi;
3289
3290 # Check whether --enable-static or --disable-static was given.
3291 if test "${enable_static+set}" = set; then
3292   enableval="$enable_static"
3293   p=${PACKAGE-default}
3294     case $enableval in
3295     yes) enable_static=yes ;;
3296     no) enable_static=no ;;
3297     *)
3298      enable_static=no
3299       # Look at the argument we got.  We use all the common list separators.
3300       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3301       for pkg in $enableval; do
3302         IFS="$lt_save_ifs"
3303         if test "X$pkg" = "X$p"; then
3304           enable_static=yes
3305         fi
3306       done
3307       IFS="$lt_save_ifs"
3308       ;;
3309     esac
3310 else
3311   enable_static=yes
3312 fi;
3313
3314 # Check whether --enable-fast-install or --disable-fast-install was given.
3315 if test "${enable_fast_install+set}" = set; then
3316   enableval="$enable_fast_install"
3317   p=${PACKAGE-default}
3318     case $enableval in
3319     yes) enable_fast_install=yes ;;
3320     no) enable_fast_install=no ;;
3321     *)
3322       enable_fast_install=no
3323       # Look at the argument we got.  We use all the common list separators.
3324       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3325       for pkg in $enableval; do
3326         IFS="$lt_save_ifs"
3327         if test "X$pkg" = "X$p"; then
3328           enable_fast_install=yes
3329         fi
3330       done
3331       IFS="$lt_save_ifs"
3332       ;;
3333     esac
3334 else
3335   enable_fast_install=yes
3336 fi;
3337
3338 # Make sure we can run config.sub.
3339 $ac_config_sub sun4 >/dev/null 2>&1 ||
3340   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3341 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3342    { (exit 1); exit 1; }; }
3343
3344 echo "$as_me:$LINENO: checking build system type" >&5
3345 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3346 if test "${ac_cv_build+set}" = set; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349   ac_cv_build_alias=$build_alias
3350 test -z "$ac_cv_build_alias" &&
3351   ac_cv_build_alias=`$ac_config_guess`
3352 test -z "$ac_cv_build_alias" &&
3353   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3354 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3355    { (exit 1); exit 1; }; }
3356 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3357   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3358 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3359    { (exit 1); exit 1; }; }
3360
3361 fi
3362 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3363 echo "${ECHO_T}$ac_cv_build" >&6
3364 build=$ac_cv_build
3365 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3366 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3367 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3368
3369
3370 echo "$as_me:$LINENO: checking host system type" >&5
3371 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3372 if test "${ac_cv_host+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375   ac_cv_host_alias=$host_alias
3376 test -z "$ac_cv_host_alias" &&
3377   ac_cv_host_alias=$ac_cv_build_alias
3378 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3379   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3380 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3381    { (exit 1); exit 1; }; }
3382
3383 fi
3384 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3385 echo "${ECHO_T}$ac_cv_host" >&6
3386 host=$ac_cv_host
3387 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3388 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3389 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3390
3391
3392 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3393 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3394 if test "${lt_cv_path_SED+set}" = set; then
3395   echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397   # Loop through the user's path and test for sed and gsed.
3398 # Then use that list of sed's as ones to test for truncation.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402   IFS=$as_save_IFS
3403   test -z "$as_dir" && as_dir=.
3404   for lt_ac_prog in sed gsed; do
3405     for ac_exec_ext in '' $ac_executable_extensions; do
3406       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3407         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3408       fi
3409     done
3410   done
3411 done
3412 lt_ac_max=0
3413 lt_ac_count=0
3414 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3415 # along with /bin/sed that truncates output.
3416 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3417   test ! -f $lt_ac_sed && break
3418   cat /dev/null > conftest.in
3419   lt_ac_count=0
3420   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3421   # Check for GNU sed and select it if it is found.
3422   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3423     lt_cv_path_SED=$lt_ac_sed
3424     break
3425   fi
3426   while true; do
3427     cat conftest.in conftest.in >conftest.tmp
3428     mv conftest.tmp conftest.in
3429     cp conftest.in conftest.nl
3430     echo >>conftest.nl
3431     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3432     cmp -s conftest.out conftest.nl || break
3433     # 10000 chars as input seems more than enough
3434     test $lt_ac_count -gt 10 && break
3435     lt_ac_count=`expr $lt_ac_count + 1`
3436     if test $lt_ac_count -gt $lt_ac_max; then
3437       lt_ac_max=$lt_ac_count
3438       lt_cv_path_SED=$lt_ac_sed
3439     fi
3440   done
3441 done
3442
3443 fi
3444
3445 SED=$lt_cv_path_SED
3446 echo "$as_me:$LINENO: result: $SED" >&5
3447 echo "${ECHO_T}$SED" >&6
3448
3449 echo "$as_me:$LINENO: checking for egrep" >&5
3450 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3451 if test "${ac_cv_prog_egrep+set}" = set; then
3452   echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3455     then ac_cv_prog_egrep='grep -E'
3456     else ac_cv_prog_egrep='egrep'
3457     fi
3458 fi
3459 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3460 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3461  EGREP=$ac_cv_prog_egrep
3462
3463
3464
3465 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3466 if test "${with_gnu_ld+set}" = set; then
3467   withval="$with_gnu_ld"
3468   test "$withval" = no || with_gnu_ld=yes
3469 else
3470   with_gnu_ld=no
3471 fi;
3472 ac_prog=ld
3473 if test "$GCC" = yes; then
3474   # Check if gcc -print-prog-name=ld gives a path.
3475   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3476 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3477   case $host in
3478   *-*-mingw*)
3479     # gcc leaves a trailing carriage return which upsets mingw
3480     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3481   *)
3482     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3483   esac
3484   case $ac_prog in
3485     # Accept absolute paths.
3486     [\\/]* | ?:[\\/]*)
3487       re_direlt='/[^/][^/]*/\.\./'
3488       # Canonicalize the pathname of ld
3489       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3490       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3491         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3492       done
3493       test -z "$LD" && LD="$ac_prog"
3494       ;;
3495   "")
3496     # If it fails, then pretend we aren't using GCC.
3497     ac_prog=ld
3498     ;;
3499   *)
3500     # If it is relative, then search for the first ld in PATH.
3501     with_gnu_ld=unknown
3502     ;;
3503   esac
3504 elif test "$with_gnu_ld" = yes; then
3505   echo "$as_me:$LINENO: checking for GNU ld" >&5
3506 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3507 else
3508   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3509 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3510 fi
3511 if test "${lt_cv_path_LD+set}" = set; then
3512   echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514   if test -z "$LD"; then
3515   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3516   for ac_dir in $PATH; do
3517     IFS="$lt_save_ifs"
3518     test -z "$ac_dir" && ac_dir=.
3519     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3520       lt_cv_path_LD="$ac_dir/$ac_prog"
3521       # Check to see if the program is GNU ld.  I'd rather use --version,
3522       # but apparently some GNU ld's only accept -v.
3523       # Break only if it was the GNU/non-GNU ld that we prefer.
3524       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3525       *GNU* | *'with BFD'*)
3526         test "$with_gnu_ld" != no && break
3527         ;;
3528       *)
3529         test "$with_gnu_ld" != yes && break
3530         ;;
3531       esac
3532     fi
3533   done
3534   IFS="$lt_save_ifs"
3535 else
3536   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3537 fi
3538 fi
3539
3540 LD="$lt_cv_path_LD"
3541 if test -n "$LD"; then
3542   echo "$as_me:$LINENO: result: $LD" >&5
3543 echo "${ECHO_T}$LD" >&6
3544 else
3545   echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3547 fi
3548 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3549 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3550    { (exit 1); exit 1; }; }
3551 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3552 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3553 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3557 case `$LD -v 2>&1 </dev/null` in
3558 *GNU* | *'with BFD'*)
3559   lt_cv_prog_gnu_ld=yes
3560   ;;
3561 *)
3562   lt_cv_prog_gnu_ld=no
3563   ;;
3564 esac
3565 fi
3566 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3567 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3568 with_gnu_ld=$lt_cv_prog_gnu_ld
3569
3570
3571 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3572 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3573 if test "${lt_cv_ld_reload_flag+set}" = set; then
3574   echo $ECHO_N "(cached) $ECHO_C" >&6
3575 else
3576   lt_cv_ld_reload_flag='-r'
3577 fi
3578 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3579 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3580 reload_flag=$lt_cv_ld_reload_flag
3581 case $reload_flag in
3582 "" | " "*) ;;
3583 *) reload_flag=" $reload_flag" ;;
3584 esac
3585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3586 case $host_os in
3587   darwin*)
3588     if test "$GCC" = yes; then
3589       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3590     else
3591       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3592     fi
3593     ;;
3594 esac
3595
3596 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3597 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3598 if test "${lt_cv_path_NM+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   if test -n "$NM"; then
3602   # Let the user override the test.
3603   lt_cv_path_NM="$NM"
3604 else
3605   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3606   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3607     IFS="$lt_save_ifs"
3608     test -z "$ac_dir" && ac_dir=.
3609     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3610     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3611       # Check to see if the nm accepts a BSD-compat flag.
3612       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3613       #   nm: unknown option "B" ignored
3614       # Tru64's nm complains that /dev/null is an invalid object file
3615       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3616       */dev/null* | *'Invalid file or object type'*)
3617         lt_cv_path_NM="$tmp_nm -B"
3618         break
3619         ;;
3620       *)
3621         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3622         */dev/null*)
3623           lt_cv_path_NM="$tmp_nm -p"
3624           break
3625           ;;
3626         *)
3627           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3628           continue # so that we can try to find one that supports BSD flags
3629           ;;
3630         esac
3631       esac
3632     fi
3633   done
3634   IFS="$lt_save_ifs"
3635   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3636 fi
3637 fi
3638 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3639 echo "${ECHO_T}$lt_cv_path_NM" >&6
3640 NM="$lt_cv_path_NM"
3641
3642 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3643 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3644 LN_S=$as_ln_s
3645 if test "$LN_S" = "ln -s"; then
3646   echo "$as_me:$LINENO: result: yes" >&5
3647 echo "${ECHO_T}yes" >&6
3648 else
3649   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3650 echo "${ECHO_T}no, using $LN_S" >&6
3651 fi
3652
3653 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3654 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3655 if test "${lt_cv_deplibs_check_method+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   lt_cv_file_magic_cmd='$MAGIC_CMD'
3659 lt_cv_file_magic_test_file=
3660 lt_cv_deplibs_check_method='unknown'
3661 # Need to set the preceding variable on all platforms that support
3662 # interlibrary dependencies.
3663 # 'none' -- dependencies not supported.
3664 # `unknown' -- same as none, but documents that we really don't know.
3665 # 'pass_all' -- all dependencies passed with no checks.
3666 # 'test_compile' -- check by making test program.
3667 # 'file_magic [[regex]]' -- check by looking for files in library path
3668 # which responds to the $file_magic_cmd with a given extended regex.
3669 # If you have `file' or equivalent on your system and you're not sure
3670 # whether `pass_all' will *always* work, you probably want this one.
3671
3672 case $host_os in
3673 aix4* | aix5*)
3674   lt_cv_deplibs_check_method=pass_all
3675   ;;
3676
3677 beos*)
3678   lt_cv_deplibs_check_method=pass_all
3679   ;;
3680
3681 bsdi[45]*)
3682   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3683   lt_cv_file_magic_cmd='/usr/bin/file -L'
3684   lt_cv_file_magic_test_file=/shlib/libc.so
3685   ;;
3686
3687 cygwin*)
3688   # func_win32_libid is a shell function defined in ltmain.sh
3689   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3690   lt_cv_file_magic_cmd='func_win32_libid'
3691   ;;
3692
3693 mingw* | pw32*)
3694   # Base MSYS/MinGW do not provide the 'file' command needed by
3695   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3696   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3697   lt_cv_file_magic_cmd='$OBJDUMP -f'
3698   ;;
3699
3700 darwin* | rhapsody*)
3701   lt_cv_deplibs_check_method=pass_all
3702   ;;
3703
3704 freebsd* | kfreebsd*-gnu)
3705   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3706     case $host_cpu in
3707     i*86 )
3708       # Not sure whether the presence of OpenBSD here was a mistake.
3709       # Let's accept both of them until this is cleared up.
3710       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3711       lt_cv_file_magic_cmd=/usr/bin/file
3712       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3713       ;;
3714     esac
3715   else
3716     lt_cv_deplibs_check_method=pass_all
3717   fi
3718   ;;
3719
3720 gnu*)
3721   lt_cv_deplibs_check_method=pass_all
3722   ;;
3723
3724 hpux10.20* | hpux11*)
3725   lt_cv_file_magic_cmd=/usr/bin/file
3726   case "$host_cpu" in
3727   ia64*)
3728     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3729     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3730     ;;
3731   hppa*64*)
3732     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]'
3733     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3734     ;;
3735   *)
3736     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3737     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3738     ;;
3739   esac
3740   ;;
3741
3742 irix5* | irix6* | nonstopux*)
3743   case $LD in
3744   *-32|*"-32 ") libmagic=32-bit;;
3745   *-n32|*"-n32 ") libmagic=N32;;
3746   *-64|*"-64 ") libmagic=64-bit;;
3747   *) libmagic=never-match;;
3748   esac
3749   lt_cv_deplibs_check_method=pass_all
3750   ;;
3751
3752 # This must be Linux ELF.
3753 linux*)
3754   lt_cv_deplibs_check_method=pass_all
3755   ;;
3756
3757 netbsd*)
3758   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3759     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3760   else
3761     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3762   fi
3763   ;;
3764
3765 newos6*)
3766   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3767   lt_cv_file_magic_cmd=/usr/bin/file
3768   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3769   ;;
3770
3771 nto-qnx*)
3772   lt_cv_deplibs_check_method=unknown
3773   ;;
3774
3775 openbsd*)
3776   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3777     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3778   else
3779     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3780   fi
3781   ;;
3782
3783 osf3* | osf4* | osf5*)
3784   lt_cv_deplibs_check_method=pass_all
3785   ;;
3786
3787 sco3.2v5*)
3788   lt_cv_deplibs_check_method=pass_all
3789   ;;
3790
3791 solaris*)
3792   lt_cv_deplibs_check_method=pass_all
3793   ;;
3794
3795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3796   case $host_vendor in
3797   motorola)
3798     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]'
3799     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3800     ;;
3801   ncr)
3802     lt_cv_deplibs_check_method=pass_all
3803     ;;
3804   sequent)
3805     lt_cv_file_magic_cmd='/bin/file'
3806     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3807     ;;
3808   sni)
3809     lt_cv_file_magic_cmd='/bin/file'
3810     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3811     lt_cv_file_magic_test_file=/lib/libc.so
3812     ;;
3813   siemens)
3814     lt_cv_deplibs_check_method=pass_all
3815     ;;
3816   esac
3817   ;;
3818
3819 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3820   lt_cv_deplibs_check_method=pass_all
3821   ;;
3822 esac
3823
3824 fi
3825 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3826 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3827 file_magic_cmd=$lt_cv_file_magic_cmd
3828 deplibs_check_method=$lt_cv_deplibs_check_method
3829 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3830
3831
3832
3833
3834 # If no C compiler was specified, use CC.
3835 LTCC=${LTCC-"$CC"}
3836
3837 # Allow CC to be a program name with arguments.
3838 compiler=$CC
3839
3840 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3841 if test "${enable_libtool_lock+set}" = set; then
3842   enableval="$enable_libtool_lock"
3843
3844 fi;
3845 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3846
3847 # Some flags need to be propagated to the compiler or linker for good
3848 # libtool support.
3849 case $host in
3850 ia64-*-hpux*)
3851   # Find out which ABI we are using.
3852   echo 'int i;' > conftest.$ac_ext
3853   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3854   (eval $ac_compile) 2>&5
3855   ac_status=$?
3856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857   (exit $ac_status); }; then
3858     case `/usr/bin/file conftest.$ac_objext` in
3859     *ELF-32*)
3860       HPUX_IA64_MODE="32"
3861       ;;
3862     *ELF-64*)
3863       HPUX_IA64_MODE="64"
3864       ;;
3865     esac
3866   fi
3867   rm -rf conftest*
3868   ;;
3869 *-*-irix6*)
3870   # Find out which ABI we are using.
3871   echo '#line 3871 "configure"' > conftest.$ac_ext
3872   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873   (eval $ac_compile) 2>&5
3874   ac_status=$?
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); }; then
3877    if test "$lt_cv_prog_gnu_ld" = yes; then
3878     case `/usr/bin/file conftest.$ac_objext` in
3879     *32-bit*)
3880       LD="${LD-ld} -melf32bsmip"
3881       ;;
3882     *N32*)
3883       LD="${LD-ld} -melf32bmipn32"
3884       ;;
3885     *64-bit*)
3886       LD="${LD-ld} -melf64bmip"
3887       ;;
3888     esac
3889    else
3890     case `/usr/bin/file conftest.$ac_objext` in
3891     *32-bit*)
3892       LD="${LD-ld} -32"
3893       ;;
3894     *N32*)
3895       LD="${LD-ld} -n32"
3896       ;;
3897     *64-bit*)
3898       LD="${LD-ld} -64"
3899       ;;
3900     esac
3901    fi
3902   fi
3903   rm -rf conftest*
3904   ;;
3905
3906 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3907   # Find out which ABI we are using.
3908   echo 'int i;' > conftest.$ac_ext
3909   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910   (eval $ac_compile) 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); }; then
3914     case "`/usr/bin/file conftest.o`" in
3915     *32-bit*)
3916       case $host in
3917         x86_64-*linux*)
3918           LD="${LD-ld} -m elf_i386"
3919           ;;
3920         ppc64-*linux*|powerpc64-*linux*)
3921           LD="${LD-ld} -m elf32ppclinux"
3922           ;;
3923         s390x-*linux*)
3924           LD="${LD-ld} -m elf_s390"
3925           ;;
3926         sparc64-*linux*)
3927           LD="${LD-ld} -m elf32_sparc"
3928           ;;
3929       esac
3930       ;;
3931     *64-bit*)
3932       case $host in
3933         x86_64-*linux*)
3934           LD="${LD-ld} -m elf_x86_64"
3935           ;;
3936         ppc*-*linux*|powerpc*-*linux*)
3937           LD="${LD-ld} -m elf64ppc"
3938           ;;
3939         s390*-*linux*)
3940           LD="${LD-ld} -m elf64_s390"
3941           ;;
3942         sparc*-*linux*)
3943           LD="${LD-ld} -m elf64_sparc"
3944           ;;
3945       esac
3946       ;;
3947     esac
3948   fi
3949   rm -rf conftest*
3950   ;;
3951
3952 *-*-sco3.2v5*)
3953   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3954   SAVE_CFLAGS="$CFLAGS"
3955   CFLAGS="$CFLAGS -belf"
3956   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3957 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3958 if test "${lt_cv_cc_needs_belf+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   ac_ext=c
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966
3967      cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h.  */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h.  */
3973
3974 int
3975 main ()
3976 {
3977
3978   ;
3979   return 0;
3980 }
3981 _ACEOF
3982 rm -f conftest.$ac_objext conftest$ac_exeext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3984   (eval $ac_link) 2>conftest.er1
3985   ac_status=$?
3986   grep -v '^ *+' conftest.er1 >conftest.err
3987   rm -f conftest.er1
3988   cat conftest.err >&5
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); } &&
3991          { ac_try='test -z "$ac_c_werror_flag"
3992                          || test ! -s conftest.err'
3993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994   (eval $ac_try) 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); }; } &&
3998          { ac_try='test -s conftest$ac_exeext'
3999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000   (eval $ac_try) 2>&5
4001   ac_status=$?
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); }; }; then
4004   lt_cv_cc_needs_belf=yes
4005 else
4006   echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 lt_cv_cc_needs_belf=no
4010 fi
4011 rm -f conftest.err conftest.$ac_objext \
4012       conftest$ac_exeext conftest.$ac_ext
4013      ac_ext=c
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018
4019 fi
4020 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4021 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4022   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4023     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4024     CFLAGS="$SAVE_CFLAGS"
4025   fi
4026   ;;
4027 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4028   if test -n "$ac_tool_prefix"; then
4029   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4030 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   if test -n "$DLLTOOL"; then
4037   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042   IFS=$as_save_IFS
4043   test -z "$as_dir" && as_dir=.
4044   for ac_exec_ext in '' $ac_executable_extensions; do
4045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048     break 2
4049   fi
4050 done
4051 done
4052
4053 fi
4054 fi
4055 DLLTOOL=$ac_cv_prog_DLLTOOL
4056 if test -n "$DLLTOOL"; then
4057   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4058 echo "${ECHO_T}$DLLTOOL" >&6
4059 else
4060   echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4062 fi
4063
4064 fi
4065 if test -z "$ac_cv_prog_DLLTOOL"; then
4066   ac_ct_DLLTOOL=$DLLTOOL
4067   # Extract the first word of "dlltool", so it can be a program name with args.
4068 set dummy dlltool; ac_word=$2
4069 echo "$as_me:$LINENO: checking for $ac_word" >&5
4070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074   if test -n "$ac_ct_DLLTOOL"; then
4075   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4079 do
4080   IFS=$as_save_IFS
4081   test -z "$as_dir" && as_dir=.
4082   for ac_exec_ext in '' $ac_executable_extensions; do
4083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086     break 2
4087   fi
4088 done
4089 done
4090
4091   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4092 fi
4093 fi
4094 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4095 if test -n "$ac_ct_DLLTOOL"; then
4096   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4097 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4098 else
4099   echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4101 fi
4102
4103   DLLTOOL=$ac_ct_DLLTOOL
4104 else
4105   DLLTOOL="$ac_cv_prog_DLLTOOL"
4106 fi
4107
4108   if test -n "$ac_tool_prefix"; then
4109   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}as; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_prog_AS+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   if test -n "$AS"; then
4117   ac_cv_prog_AS="$AS" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122   IFS=$as_save_IFS
4123   test -z "$as_dir" && as_dir=.
4124   for ac_exec_ext in '' $ac_executable_extensions; do
4125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126     ac_cv_prog_AS="${ac_tool_prefix}as"
4127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128     break 2
4129   fi
4130 done
4131 done
4132
4133 fi
4134 fi
4135 AS=$ac_cv_prog_AS
4136 if test -n "$AS"; then
4137   echo "$as_me:$LINENO: result: $AS" >&5
4138 echo "${ECHO_T}$AS" >&6
4139 else
4140   echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4142 fi
4143
4144 fi
4145 if test -z "$ac_cv_prog_AS"; then
4146   ac_ct_AS=$AS
4147   # Extract the first word of "as", so it can be a program name with args.
4148 set dummy as; ac_word=$2
4149 echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4151 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4152   echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154   if test -n "$ac_ct_AS"; then
4155   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   test -z "$as_dir" && as_dir=.
4162   for ac_exec_ext in '' $ac_executable_extensions; do
4163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164     ac_cv_prog_ac_ct_AS="as"
4165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169 done
4170
4171   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4172 fi
4173 fi
4174 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4175 if test -n "$ac_ct_AS"; then
4176   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4177 echo "${ECHO_T}$ac_ct_AS" >&6
4178 else
4179   echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4181 fi
4182
4183   AS=$ac_ct_AS
4184 else
4185   AS="$ac_cv_prog_AS"
4186 fi
4187
4188   if test -n "$ac_tool_prefix"; then
4189   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4190 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4191 echo "$as_me:$LINENO: checking for $ac_word" >&5
4192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4193 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4194   echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196   if test -n "$OBJDUMP"; then
4197   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202   IFS=$as_save_IFS
4203   test -z "$as_dir" && as_dir=.
4204   for ac_exec_ext in '' $ac_executable_extensions; do
4205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4208     break 2
4209   fi
4210 done
4211 done
4212
4213 fi
4214 fi
4215 OBJDUMP=$ac_cv_prog_OBJDUMP
4216 if test -n "$OBJDUMP"; then
4217   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4218 echo "${ECHO_T}$OBJDUMP" >&6
4219 else
4220   echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4222 fi
4223
4224 fi
4225 if test -z "$ac_cv_prog_OBJDUMP"; then
4226   ac_ct_OBJDUMP=$OBJDUMP
4227   # Extract the first word of "objdump", so it can be a program name with args.
4228 set dummy objdump; ac_word=$2
4229 echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4232   echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234   if test -n "$ac_ct_OBJDUMP"; then
4235   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240   IFS=$as_save_IFS
4241   test -z "$as_dir" && as_dir=.
4242   for ac_exec_ext in '' $ac_executable_extensions; do
4243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246     break 2
4247   fi
4248 done
4249 done
4250
4251   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4252 fi
4253 fi
4254 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4255 if test -n "$ac_ct_OBJDUMP"; then
4256   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4257 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4258 else
4259   echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6
4261 fi
4262
4263   OBJDUMP=$ac_ct_OBJDUMP
4264 else
4265   OBJDUMP="$ac_cv_prog_OBJDUMP"
4266 fi
4267
4268   ;;
4269
4270 esac
4271
4272 need_locks="$enable_libtool_lock"
4273
4274
4275 ac_ext=c
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4281 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4282 # On Suns, sometimes $CPP names a directory.
4283 if test -n "$CPP" && test -d "$CPP"; then
4284   CPP=
4285 fi
4286 if test -z "$CPP"; then
4287   if test "${ac_cv_prog_CPP+set}" = set; then
4288   echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290       # Double quotes because CPP needs to be expanded
4291     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4292     do
4293       ac_preproc_ok=false
4294 for ac_c_preproc_warn_flag in '' yes
4295 do
4296   # Use a header file that comes with gcc, so configuring glibc
4297   # with a fresh cross-compiler works.
4298   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4299   # <limits.h> exists even on freestanding compilers.
4300   # On the NeXT, cc -E runs the code through the compiler's parser,
4301   # not just through cpp. "Syntax error" is here to catch this case.
4302   cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h.  */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h.  */
4308 #ifdef __STDC__
4309 # include <limits.h>
4310 #else
4311 # include <assert.h>
4312 #endif
4313                      Syntax error
4314 _ACEOF
4315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4316   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4317   ac_status=$?
4318   grep -v '^ *+' conftest.er1 >conftest.err
4319   rm -f conftest.er1
4320   cat conftest.err >&5
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); } >/dev/null; then
4323   if test -s conftest.err; then
4324     ac_cpp_err=$ac_c_preproc_warn_flag
4325     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4326   else
4327     ac_cpp_err=
4328   fi
4329 else
4330   ac_cpp_err=yes
4331 fi
4332 if test -z "$ac_cpp_err"; then
4333   :
4334 else
4335   echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338   # Broken: fails on valid input.
4339 continue
4340 fi
4341 rm -f conftest.err conftest.$ac_ext
4342
4343   # OK, works on sane cases.  Now check whether non-existent headers
4344   # can be detected and how.
4345   cat >conftest.$ac_ext <<_ACEOF
4346 /* confdefs.h.  */
4347 _ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h.  */
4351 #include <ac_nonexistent.h>
4352 _ACEOF
4353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4355   ac_status=$?
4356   grep -v '^ *+' conftest.er1 >conftest.err
4357   rm -f conftest.er1
4358   cat conftest.err >&5
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); } >/dev/null; then
4361   if test -s conftest.err; then
4362     ac_cpp_err=$ac_c_preproc_warn_flag
4363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4364   else
4365     ac_cpp_err=
4366   fi
4367 else
4368   ac_cpp_err=yes
4369 fi
4370 if test -z "$ac_cpp_err"; then
4371   # Broken: success on invalid input.
4372 continue
4373 else
4374   echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4376
4377   # Passes both tests.
4378 ac_preproc_ok=:
4379 break
4380 fi
4381 rm -f conftest.err conftest.$ac_ext
4382
4383 done
4384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4385 rm -f conftest.err conftest.$ac_ext
4386 if $ac_preproc_ok; then
4387   break
4388 fi
4389
4390     done
4391     ac_cv_prog_CPP=$CPP
4392
4393 fi
4394   CPP=$ac_cv_prog_CPP
4395 else
4396   ac_cv_prog_CPP=$CPP
4397 fi
4398 echo "$as_me:$LINENO: result: $CPP" >&5
4399 echo "${ECHO_T}$CPP" >&6
4400 ac_preproc_ok=false
4401 for ac_c_preproc_warn_flag in '' yes
4402 do
4403   # Use a header file that comes with gcc, so configuring glibc
4404   # with a fresh cross-compiler works.
4405   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406   # <limits.h> exists even on freestanding compilers.
4407   # On the NeXT, cc -E runs the code through the compiler's parser,
4408   # not just through cpp. "Syntax error" is here to catch this case.
4409   cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h.  */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h.  */
4415 #ifdef __STDC__
4416 # include <limits.h>
4417 #else
4418 # include <assert.h>
4419 #endif
4420                      Syntax error
4421 _ACEOF
4422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4424   ac_status=$?
4425   grep -v '^ *+' conftest.er1 >conftest.err
4426   rm -f conftest.er1
4427   cat conftest.err >&5
4428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429   (exit $ac_status); } >/dev/null; then
4430   if test -s conftest.err; then
4431     ac_cpp_err=$ac_c_preproc_warn_flag
4432     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4433   else
4434     ac_cpp_err=
4435   fi
4436 else
4437   ac_cpp_err=yes
4438 fi
4439 if test -z "$ac_cpp_err"; then
4440   :
4441 else
4442   echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445   # Broken: fails on valid input.
4446 continue
4447 fi
4448 rm -f conftest.err conftest.$ac_ext
4449
4450   # OK, works on sane cases.  Now check whether non-existent headers
4451   # can be detected and how.
4452   cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h.  */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h.  */
4458 #include <ac_nonexistent.h>
4459 _ACEOF
4460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4462   ac_status=$?
4463   grep -v '^ *+' conftest.er1 >conftest.err
4464   rm -f conftest.er1
4465   cat conftest.err >&5
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); } >/dev/null; then
4468   if test -s conftest.err; then
4469     ac_cpp_err=$ac_c_preproc_warn_flag
4470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4471   else
4472     ac_cpp_err=
4473   fi
4474 else
4475   ac_cpp_err=yes
4476 fi
4477 if test -z "$ac_cpp_err"; then
4478   # Broken: success on invalid input.
4479 continue
4480 else
4481   echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484   # Passes both tests.
4485 ac_preproc_ok=:
4486 break
4487 fi
4488 rm -f conftest.err conftest.$ac_ext
4489
4490 done
4491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492 rm -f conftest.err conftest.$ac_ext
4493 if $ac_preproc_ok; then
4494   :
4495 else
4496   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4497 See \`config.log' for more details." >&5
4498 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4499 See \`config.log' for more details." >&2;}
4500    { (exit 1); exit 1; }; }
4501 fi
4502
4503 ac_ext=c
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508
4509
4510 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4511 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4512 if test "${ac_cv_header_stdc+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h.  */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h.  */
4521 #include <stdlib.h>
4522 #include <stdarg.h>
4523 #include <string.h>
4524 #include <float.h>
4525
4526 int
4527 main ()
4528 {
4529
4530   ;
4531   return 0;
4532 }
4533 _ACEOF
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536   (eval $ac_compile) 2>conftest.er1
4537   ac_status=$?
4538   grep -v '^ *+' conftest.er1 >conftest.err
4539   rm -f conftest.er1
4540   cat conftest.err >&5
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); } &&
4543          { ac_try='test -z "$ac_c_werror_flag"
4544                          || test ! -s conftest.err'
4545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546   (eval $ac_try) 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; } &&
4550          { ac_try='test -s conftest.$ac_objext'
4551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552   (eval $ac_try) 2>&5
4553   ac_status=$?
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); }; }; then
4556   ac_cv_header_stdc=yes
4557 else
4558   echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561 ac_cv_header_stdc=no
4562 fi
4563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4564
4565 if test $ac_cv_header_stdc = yes; then
4566   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4567   cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573 #include <string.h>
4574
4575 _ACEOF
4576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4577   $EGREP "memchr" >/dev/null 2>&1; then
4578   :
4579 else
4580   ac_cv_header_stdc=no
4581 fi
4582 rm -f conftest*
4583
4584 fi
4585
4586 if test $ac_cv_header_stdc = yes; then
4587   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4588   cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594 #include <stdlib.h>
4595
4596 _ACEOF
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598   $EGREP "free" >/dev/null 2>&1; then
4599   :
4600 else
4601   ac_cv_header_stdc=no
4602 fi
4603 rm -f conftest*
4604
4605 fi
4606
4607 if test $ac_cv_header_stdc = yes; then
4608   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4609   if test "$cross_compiling" = yes; then
4610   :
4611 else
4612   cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h.  */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h.  */
4618 #include <ctype.h>
4619 #if ((' ' & 0x0FF) == 0x020)
4620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4622 #else
4623 # define ISLOWER(c) \
4624                    (('a' <= (c) && (c) <= 'i') \
4625                      || ('j' <= (c) && (c) <= 'r') \
4626                      || ('s' <= (c) && (c) <= 'z'))
4627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4628 #endif
4629
4630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4631 int
4632 main ()
4633 {
4634   int i;
4635   for (i = 0; i < 256; i++)
4636     if (XOR (islower (i), ISLOWER (i))
4637         || toupper (i) != TOUPPER (i))
4638       exit(2);
4639   exit (0);
4640 }
4641 _ACEOF
4642 rm -f conftest$ac_exeext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4644   (eval $ac_link) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649   (eval $ac_try) 2>&5
4650   ac_status=$?
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); }; }; then
4653   :
4654 else
4655   echo "$as_me: program exited with status $ac_status" >&5
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4658
4659 ( exit $ac_status )
4660 ac_cv_header_stdc=no
4661 fi
4662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4663 fi
4664 fi
4665 fi
4666 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4667 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4668 if test $ac_cv_header_stdc = yes; then
4669
4670 cat >>confdefs.h <<\_ACEOF
4671 #define STDC_HEADERS 1
4672 _ACEOF
4673
4674 fi
4675
4676 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4687                   inttypes.h stdint.h unistd.h
4688 do
4689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4690 echo "$as_me:$LINENO: checking for $ac_header" >&5
4691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h.  */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h.  */
4701 $ac_includes_default
4702
4703 #include <$ac_header>
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707   (eval $ac_compile) 2>conftest.er1
4708   ac_status=$?
4709   grep -v '^ *+' conftest.er1 >conftest.err
4710   rm -f conftest.er1
4711   cat conftest.err >&5
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); } &&
4714          { ac_try='test -z "$ac_c_werror_flag"
4715                          || test ! -s conftest.err'
4716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717   (eval $ac_try) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; } &&
4721          { ac_try='test -s conftest.$ac_objext'
4722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723   (eval $ac_try) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; }; then
4727   eval "$as_ac_Header=yes"
4728 else
4729   echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 eval "$as_ac_Header=no"
4733 fi
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735 fi
4736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4739   cat >>confdefs.h <<_ACEOF
4740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4741 _ACEOF
4742
4743 fi
4744
4745 done
4746
4747
4748
4749 for ac_header in dlfcn.h
4750 do
4751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4753   echo "$as_me:$LINENO: checking for $ac_header" >&5
4754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4756   echo $ECHO_N "(cached) $ECHO_C" >&6
4757 fi
4758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4760 else
4761   # Is the header compilable?
4762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4764 cat >conftest.$ac_ext <<_ACEOF
4765 /* confdefs.h.  */
4766 _ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h.  */
4770 $ac_includes_default
4771 #include <$ac_header>
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775   (eval $ac_compile) 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } &&
4782          { ac_try='test -z "$ac_c_werror_flag"
4783                          || test ! -s conftest.err'
4784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785   (eval $ac_try) 2>&5
4786   ac_status=$?
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); }; } &&
4789          { ac_try='test -s conftest.$ac_objext'
4790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791   (eval $ac_try) 2>&5
4792   ac_status=$?
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); }; }; then
4795   ac_header_compiler=yes
4796 else
4797   echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4799
4800 ac_header_compiler=no
4801 fi
4802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4804 echo "${ECHO_T}$ac_header_compiler" >&6
4805
4806 # Is the header present?
4807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h.  */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h.  */
4815 #include <$ac_header>
4816 _ACEOF
4817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4818   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4819   ac_status=$?
4820   grep -v '^ *+' conftest.er1 >conftest.err
4821   rm -f conftest.er1
4822   cat conftest.err >&5
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); } >/dev/null; then
4825   if test -s conftest.err; then
4826     ac_cpp_err=$ac_c_preproc_warn_flag
4827     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4828   else
4829     ac_cpp_err=
4830   fi
4831 else
4832   ac_cpp_err=yes
4833 fi
4834 if test -z "$ac_cpp_err"; then
4835   ac_header_preproc=yes
4836 else
4837   echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4839
4840   ac_header_preproc=no
4841 fi
4842 rm -f conftest.err conftest.$ac_ext
4843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4844 echo "${ECHO_T}$ac_header_preproc" >&6
4845
4846 # So?  What about this header?
4847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4848   yes:no: )
4849     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4853     ac_header_preproc=yes
4854     ;;
4855   no:yes:* )
4856     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4858     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4859 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4860     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4862     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4863 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4866     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4868     (
4869       cat <<\_ASBOX
4870 ## ---------------------------------- ##
4871 ## Report this to bug-libtool@gnu.org ##
4872 ## ---------------------------------- ##
4873 _ASBOX
4874     ) |
4875       sed "s/^/$as_me: WARNING:     /" >&2
4876     ;;
4877 esac
4878 echo "$as_me:$LINENO: checking for $ac_header" >&5
4879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4881   echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883   eval "$as_ac_Header=\$ac_header_preproc"
4884 fi
4885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4887
4888 fi
4889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4890   cat >>confdefs.h <<_ACEOF
4891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4892 _ACEOF
4893
4894 fi
4895
4896 done
4897
4898 ac_ext=cc
4899 ac_cpp='$CXXCPP $CPPFLAGS'
4900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4903 if test -n "$ac_tool_prefix"; then
4904   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4905   do
4906     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4908 echo "$as_me:$LINENO: checking for $ac_word" >&5
4909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4910 if test "${ac_cv_prog_CXX+set}" = set; then
4911   echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913   if test -n "$CXX"; then
4914   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919   IFS=$as_save_IFS
4920   test -z "$as_dir" && as_dir=.
4921   for ac_exec_ext in '' $ac_executable_extensions; do
4922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4923     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925     break 2
4926   fi
4927 done
4928 done
4929
4930 fi
4931 fi
4932 CXX=$ac_cv_prog_CXX
4933 if test -n "$CXX"; then
4934   echo "$as_me:$LINENO: result: $CXX" >&5
4935 echo "${ECHO_T}$CXX" >&6
4936 else
4937   echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6
4939 fi
4940
4941     test -n "$CXX" && break
4942   done
4943 fi
4944 if test -z "$CXX"; then
4945   ac_ct_CXX=$CXX
4946   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4947 do
4948   # Extract the first word of "$ac_prog", so it can be a program name with args.
4949 set dummy $ac_prog; ac_word=$2
4950 echo "$as_me:$LINENO: checking for $ac_word" >&5
4951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4952 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4953   echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955   if test -n "$ac_ct_CXX"; then
4956   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963   for ac_exec_ext in '' $ac_executable_extensions; do
4964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4965     ac_cv_prog_ac_ct_CXX="$ac_prog"
4966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4967     break 2
4968   fi
4969 done
4970 done
4971
4972 fi
4973 fi
4974 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4975 if test -n "$ac_ct_CXX"; then
4976   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4977 echo "${ECHO_T}$ac_ct_CXX" >&6
4978 else
4979   echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6
4981 fi
4982
4983   test -n "$ac_ct_CXX" && break
4984 done
4985 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4986
4987   CXX=$ac_ct_CXX
4988 fi
4989
4990
4991 # Provide some information about the compiler.
4992 echo "$as_me:$LINENO:" \
4993      "checking for C++ compiler version" >&5
4994 ac_compiler=`set X $ac_compile; echo $2`
4995 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4996   (eval $ac_compiler --version </dev/null >&5) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }
5000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5001   (eval $ac_compiler -v </dev/null >&5) 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); }
5005 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5006   (eval $ac_compiler -V </dev/null >&5) 2>&5
5007   ac_status=$?
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); }
5010
5011 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5012 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5013 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h.  */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h.  */
5022
5023 int
5024 main ()
5025 {
5026 #ifndef __GNUC__
5027        choke me
5028 #endif
5029
5030   ;
5031   return 0;
5032 }
5033 _ACEOF
5034 rm -f conftest.$ac_objext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036   (eval $ac_compile) 2>conftest.er1
5037   ac_status=$?
5038   grep -v '^ *+' conftest.er1 >conftest.err
5039   rm -f conftest.er1
5040   cat conftest.err >&5
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } &&
5043          { ac_try='test -z "$ac_cxx_werror_flag"
5044                          || test ! -s conftest.err'
5045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046   (eval $ac_try) 2>&5
5047   ac_status=$?
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); }; } &&
5050          { ac_try='test -s conftest.$ac_objext'
5051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052   (eval $ac_try) 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); }; }; then
5056   ac_compiler_gnu=yes
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 ac_compiler_gnu=no
5062 fi
5063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5064 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5065
5066 fi
5067 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5068 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5069 GXX=`test $ac_compiler_gnu = yes && echo yes`
5070 ac_test_CXXFLAGS=${CXXFLAGS+set}
5071 ac_save_CXXFLAGS=$CXXFLAGS
5072 CXXFLAGS="-g"
5073 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5074 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5075 if test "${ac_cv_prog_cxx_g+set}" = set; then
5076   echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078   cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h.  */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h.  */
5084
5085 int
5086 main ()
5087 {
5088
5089   ;
5090   return 0;
5091 }
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095   (eval $ac_compile) 2>conftest.er1
5096   ac_status=$?
5097   grep -v '^ *+' conftest.er1 >conftest.err
5098   rm -f conftest.er1
5099   cat conftest.err >&5
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } &&
5102          { ac_try='test -z "$ac_cxx_werror_flag"
5103                          || test ! -s conftest.err'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; } &&
5109          { ac_try='test -s conftest.$ac_objext'
5110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111   (eval $ac_try) 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); }; }; then
5115   ac_cv_prog_cxx_g=yes
5116 else
5117   echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5119
5120 ac_cv_prog_cxx_g=no
5121 fi
5122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123 fi
5124 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5125 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5126 if test "$ac_test_CXXFLAGS" = set; then
5127   CXXFLAGS=$ac_save_CXXFLAGS
5128 elif test $ac_cv_prog_cxx_g = yes; then
5129   if test "$GXX" = yes; then
5130     CXXFLAGS="-g -O2"
5131   else
5132     CXXFLAGS="-g"
5133   fi
5134 else
5135   if test "$GXX" = yes; then
5136     CXXFLAGS="-O2"
5137   else
5138     CXXFLAGS=
5139   fi
5140 fi
5141 for ac_declaration in \
5142    '' \
5143    'extern "C" void std::exit (int) throw (); using std::exit;' \
5144    'extern "C" void std::exit (int); using std::exit;' \
5145    'extern "C" void exit (int) throw ();' \
5146    'extern "C" void exit (int);' \
5147    'void exit (int);'
5148 do
5149   cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h.  */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h.  */
5155 $ac_declaration
5156 #include <stdlib.h>
5157 int
5158 main ()
5159 {
5160 exit (42);
5161   ;
5162   return 0;
5163 }
5164 _ACEOF
5165 rm -f conftest.$ac_objext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167   (eval $ac_compile) 2>conftest.er1
5168   ac_status=$?
5169   grep -v '^ *+' conftest.er1 >conftest.err
5170   rm -f conftest.er1
5171   cat conftest.err >&5
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); } &&
5174          { ac_try='test -z "$ac_cxx_werror_flag"
5175                          || test ! -s conftest.err'
5176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177   (eval $ac_try) 2>&5
5178   ac_status=$?
5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); }; } &&
5181          { ac_try='test -s conftest.$ac_objext'
5182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183   (eval $ac_try) 2>&5
5184   ac_status=$?
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); }; }; then
5187   :
5188 else
5189   echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5191
5192 continue
5193 fi
5194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5195   cat >conftest.$ac_ext <<_ACEOF
5196 /* confdefs.h.  */
5197 _ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h.  */
5201 $ac_declaration
5202 int
5203 main ()
5204 {
5205 exit (42);
5206   ;
5207   return 0;
5208 }
5209 _ACEOF
5210 rm -f conftest.$ac_objext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5212   (eval $ac_compile) 2>conftest.er1
5213   ac_status=$?
5214   grep -v '^ *+' conftest.er1 >conftest.err
5215   rm -f conftest.er1
5216   cat conftest.err >&5
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); } &&
5219          { ac_try='test -z "$ac_cxx_werror_flag"
5220                          || test ! -s conftest.err'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; } &&
5226          { ac_try='test -s conftest.$ac_objext'
5227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228   (eval $ac_try) 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); }; }; then
5232   break
5233 else
5234   echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 fi
5238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5239 done
5240 rm -f conftest*
5241 if test -n "$ac_declaration"; then
5242   echo '#ifdef __cplusplus' >>confdefs.h
5243   echo $ac_declaration      >>confdefs.h
5244   echo '#endif'             >>confdefs.h
5245 fi
5246
5247 ac_ext=cc
5248 ac_cpp='$CXXCPP $CPPFLAGS'
5249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5252
5253 depcc="$CXX"  am_compiler_list=
5254
5255 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5256 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5257 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5261   # We make a subdir and do the tests there.  Otherwise we can end up
5262   # making bogus files that we don't know about and never remove.  For
5263   # instance it was reported that on HP-UX the gcc test will end up
5264   # making a dummy file named `D' -- because `-MD' means `put the output
5265   # in D'.
5266   mkdir conftest.dir
5267   # Copy depcomp to subdir because otherwise we won't find it if we're
5268   # using a relative directory.
5269   cp "$am_depcomp" conftest.dir
5270   cd conftest.dir
5271   # We will build objects and dependencies in a subdirectory because
5272   # it helps to detect inapplicable dependency modes.  For instance
5273   # both Tru64's cc and ICC support -MD to output dependencies as a
5274   # side effect of compilation, but ICC will put the dependencies in
5275   # the current directory while Tru64 will put them in the object
5276   # directory.
5277   mkdir sub
5278
5279   am_cv_CXX_dependencies_compiler_type=none
5280   if test "$am_compiler_list" = ""; then
5281      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5282   fi
5283   for depmode in $am_compiler_list; do
5284     # Setup a source with many dependencies, because some compilers
5285     # like to wrap large dependency lists on column 80 (with \), and
5286     # we should not choose a depcomp mode which is confused by this.
5287     #
5288     # We need to recreate these files for each test, as the compiler may
5289     # overwrite some of them when testing with obscure command lines.
5290     # This happens at least with the AIX C compiler.
5291     : > sub/conftest.c
5292     for i in 1 2 3 4 5 6; do
5293       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5294       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5295       # Solaris 8's {/usr,}/bin/sh.
5296       touch sub/conftst$i.h
5297     done
5298     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5299
5300     case $depmode in
5301     nosideeffect)
5302       # after this tag, mechanisms are not by side-effect, so they'll
5303       # only be used when explicitly requested
5304       if test "x$enable_dependency_tracking" = xyes; then
5305         continue
5306       else
5307         break
5308       fi
5309       ;;
5310     none) break ;;
5311     esac
5312     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5313     # mode.  It turns out that the SunPro C++ compiler does not properly
5314     # handle `-M -o', and we need to detect this.
5315     if depmode=$depmode \
5316        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5317        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5318        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5319          >/dev/null 2>conftest.err &&
5320        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5321        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5322        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5323       # icc doesn't choke on unknown options, it will just issue warnings
5324       # or remarks (even with -Werror).  So we grep stderr for any message
5325       # that says an option was ignored or not supported.
5326       # When given -MP, icc 7.0 and 7.1 complain thusly:
5327       #   icc: Command line warning: ignoring option '-M'; no argument required
5328       # The diagnosis changed in icc 8.0:
5329       #   icc: Command line remark: option '-MP' not supported
5330       if (grep 'ignoring option' conftest.err ||
5331           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5332         am_cv_CXX_dependencies_compiler_type=$depmode
5333         break
5334       fi
5335     fi
5336   done
5337
5338   cd ..
5339   rm -rf conftest.dir
5340 else
5341   am_cv_CXX_dependencies_compiler_type=none
5342 fi
5343
5344 fi
5345 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5346 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5347 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5348
5349
5350
5351 if
5352   test "x$enable_dependency_tracking" != xno \
5353   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5354   am__fastdepCXX_TRUE=
5355   am__fastdepCXX_FALSE='#'
5356 else
5357   am__fastdepCXX_TRUE='#'
5358   am__fastdepCXX_FALSE=
5359 fi
5360
5361
5362
5363
5364 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5365     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5366     (test "X$CXX" != "Xg++"))) ; then
5367   ac_ext=cc
5368 ac_cpp='$CXXCPP $CPPFLAGS'
5369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5372 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5373 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5374 if test -z "$CXXCPP"; then
5375   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5376   echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378       # Double quotes because CXXCPP needs to be expanded
5379     for CXXCPP in "$CXX -E" "/lib/cpp"
5380     do
5381       ac_preproc_ok=false
5382 for ac_cxx_preproc_warn_flag in '' yes
5383 do
5384   # Use a header file that comes with gcc, so configuring glibc
5385   # with a fresh cross-compiler works.
5386   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387   # <limits.h> exists even on freestanding compilers.
5388   # On the NeXT, cc -E runs the code through the compiler's parser,
5389   # not just through cpp. "Syntax error" is here to catch this case.
5390   cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h.  */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h.  */
5396 #ifdef __STDC__
5397 # include <limits.h>
5398 #else
5399 # include <assert.h>
5400 #endif
5401                      Syntax error
5402 _ACEOF
5403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5405   ac_status=$?
5406   grep -v '^ *+' conftest.er1 >conftest.err
5407   rm -f conftest.er1
5408   cat conftest.err >&5
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); } >/dev/null; then
5411   if test -s conftest.err; then
5412     ac_cpp_err=$ac_cxx_preproc_warn_flag
5413     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5414   else
5415     ac_cpp_err=
5416   fi
5417 else
5418   ac_cpp_err=yes
5419 fi
5420 if test -z "$ac_cpp_err"; then
5421   :
5422 else
5423   echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426   # Broken: fails on valid input.
5427 continue
5428 fi
5429 rm -f conftest.err conftest.$ac_ext
5430
5431   # OK, works on sane cases.  Now check whether non-existent headers
5432   # can be detected and how.
5433   cat >conftest.$ac_ext <<_ACEOF
5434 /* confdefs.h.  */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h.  */
5439 #include <ac_nonexistent.h>
5440 _ACEOF
5441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5443   ac_status=$?
5444   grep -v '^ *+' conftest.er1 >conftest.err
5445   rm -f conftest.er1
5446   cat conftest.err >&5
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); } >/dev/null; then
5449   if test -s conftest.err; then
5450     ac_cpp_err=$ac_cxx_preproc_warn_flag
5451     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5452   else
5453     ac_cpp_err=
5454   fi
5455 else
5456   ac_cpp_err=yes
5457 fi
5458 if test -z "$ac_cpp_err"; then
5459   # Broken: success on invalid input.
5460 continue
5461 else
5462   echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465   # Passes both tests.
5466 ac_preproc_ok=:
5467 break
5468 fi
5469 rm -f conftest.err conftest.$ac_ext
5470
5471 done
5472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5473 rm -f conftest.err conftest.$ac_ext
5474 if $ac_preproc_ok; then
5475   break
5476 fi
5477
5478     done
5479     ac_cv_prog_CXXCPP=$CXXCPP
5480
5481 fi
5482   CXXCPP=$ac_cv_prog_CXXCPP
5483 else
5484   ac_cv_prog_CXXCPP=$CXXCPP
5485 fi
5486 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5487 echo "${ECHO_T}$CXXCPP" >&6
5488 ac_preproc_ok=false
5489 for ac_cxx_preproc_warn_flag in '' yes
5490 do
5491   # Use a header file that comes with gcc, so configuring glibc
5492   # with a fresh cross-compiler works.
5493   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5494   # <limits.h> exists even on freestanding compilers.
5495   # On the NeXT, cc -E runs the code through the compiler's parser,
5496   # not just through cpp. "Syntax error" is here to catch this case.
5497   cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h.  */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h.  */
5503 #ifdef __STDC__
5504 # include <limits.h>
5505 #else
5506 # include <assert.h>
5507 #endif
5508                      Syntax error
5509 _ACEOF
5510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5511   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5512   ac_status=$?
5513   grep -v '^ *+' conftest.er1 >conftest.err
5514   rm -f conftest.er1
5515   cat conftest.err >&5
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); } >/dev/null; then
5518   if test -s conftest.err; then
5519     ac_cpp_err=$ac_cxx_preproc_warn_flag
5520     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5521   else
5522     ac_cpp_err=
5523   fi
5524 else
5525   ac_cpp_err=yes
5526 fi
5527 if test -z "$ac_cpp_err"; then
5528   :
5529 else
5530   echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533   # Broken: fails on valid input.
5534 continue
5535 fi
5536 rm -f conftest.err conftest.$ac_ext
5537
5538   # OK, works on sane cases.  Now check whether non-existent headers
5539   # can be detected and how.
5540   cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 #include <ac_nonexistent.h>
5547 _ACEOF
5548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5550   ac_status=$?
5551   grep -v '^ *+' conftest.er1 >conftest.err
5552   rm -f conftest.er1
5553   cat conftest.err >&5
5554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555   (exit $ac_status); } >/dev/null; then
5556   if test -s conftest.err; then
5557     ac_cpp_err=$ac_cxx_preproc_warn_flag
5558     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5559   else
5560     ac_cpp_err=
5561   fi
5562 else
5563   ac_cpp_err=yes
5564 fi
5565 if test -z "$ac_cpp_err"; then
5566   # Broken: success on invalid input.
5567 continue
5568 else
5569   echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572   # Passes both tests.
5573 ac_preproc_ok=:
5574 break
5575 fi
5576 rm -f conftest.err conftest.$ac_ext
5577
5578 done
5579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5580 rm -f conftest.err conftest.$ac_ext
5581 if $ac_preproc_ok; then
5582   :
5583 else
5584   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5585 See \`config.log' for more details." >&5
5586 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5587 See \`config.log' for more details." >&2;}
5588    { (exit 1); exit 1; }; }
5589 fi
5590
5591 ac_ext=cc
5592 ac_cpp='$CXXCPP $CPPFLAGS'
5593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5596
5597 fi
5598
5599
5600 ac_ext=f
5601 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5602 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5604 if test -n "$ac_tool_prefix"; then
5605   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5606   do
5607     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5609 echo "$as_me:$LINENO: checking for $ac_word" >&5
5610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5611 if test "${ac_cv_prog_F77+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614   if test -n "$F77"; then
5615   ac_cv_prog_F77="$F77" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622   for ac_exec_ext in '' $ac_executable_extensions; do
5623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626     break 2
5627   fi
5628 done
5629 done
5630
5631 fi
5632 fi
5633 F77=$ac_cv_prog_F77
5634 if test -n "$F77"; then
5635   echo "$as_me:$LINENO: result: $F77" >&5
5636 echo "${ECHO_T}$F77" >&6
5637 else
5638   echo "$as_me:$LINENO: result: no" >&5
5639 echo "${ECHO_T}no" >&6
5640 fi
5641
5642     test -n "$F77" && break
5643   done
5644 fi
5645 if test -z "$F77"; then
5646   ac_ct_F77=$F77
5647   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5648 do
5649   # Extract the first word of "$ac_prog", so it can be a program name with args.
5650 set dummy $ac_prog; ac_word=$2
5651 echo "$as_me:$LINENO: checking for $ac_word" >&5
5652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5653 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5654   echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656   if test -n "$ac_ct_F77"; then
5657   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662   IFS=$as_save_IFS
5663   test -z "$as_dir" && as_dir=.
5664   for ac_exec_ext in '' $ac_executable_extensions; do
5665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5666     ac_cv_prog_ac_ct_F77="$ac_prog"
5667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5668     break 2
5669   fi
5670 done
5671 done
5672
5673 fi
5674 fi
5675 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5676 if test -n "$ac_ct_F77"; then
5677   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5678 echo "${ECHO_T}$ac_ct_F77" >&6
5679 else
5680   echo "$as_me:$LINENO: result: no" >&5
5681 echo "${ECHO_T}no" >&6
5682 fi
5683
5684   test -n "$ac_ct_F77" && break
5685 done
5686
5687   F77=$ac_ct_F77
5688 fi
5689
5690
5691 # Provide some information about the compiler.
5692 echo "$as_me:5692:" \
5693      "checking for Fortran 77 compiler version" >&5
5694 ac_compiler=`set X $ac_compile; echo $2`
5695 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5696   (eval $ac_compiler --version </dev/null >&5) 2>&5
5697   ac_status=$?
5698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699   (exit $ac_status); }
5700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5701   (eval $ac_compiler -v </dev/null >&5) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); }
5705 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5706   (eval $ac_compiler -V </dev/null >&5) 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); }
5710 rm -f a.out
5711
5712 # If we don't use `.F' as extension, the preprocessor is not run on the
5713 # input file.  (Note that this only needs to work for GNU compilers.)
5714 ac_save_ext=$ac_ext
5715 ac_ext=F
5716 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5717 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5718 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   cat >conftest.$ac_ext <<_ACEOF
5722       program main
5723 #ifndef __GNUC__
5724        choke me
5725 #endif
5726
5727       end
5728 _ACEOF
5729 rm -f conftest.$ac_objext
5730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731   (eval $ac_compile) 2>conftest.er1
5732   ac_status=$?
5733   grep -v '^ *+' conftest.er1 >conftest.err
5734   rm -f conftest.er1
5735   cat conftest.err >&5
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); } &&
5738          { ac_try='test -z "$ac_f77_werror_flag"
5739                          || test ! -s conftest.err'
5740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741   (eval $ac_try) 2>&5
5742   ac_status=$?
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); }; } &&
5745          { ac_try='test -s conftest.$ac_objext'
5746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747   (eval $ac_try) 2>&5
5748   ac_status=$?
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); }; }; then
5751   ac_compiler_gnu=yes
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 ac_compiler_gnu=no
5757 fi
5758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5759 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5760
5761 fi
5762 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5763 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5764 ac_ext=$ac_save_ext
5765 ac_test_FFLAGS=${FFLAGS+set}
5766 ac_save_FFLAGS=$FFLAGS
5767 FFLAGS=
5768 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5769 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5770 if test "${ac_cv_prog_f77_g+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   FFLAGS=-g
5774 cat >conftest.$ac_ext <<_ACEOF
5775       program main
5776
5777       end
5778 _ACEOF
5779 rm -f conftest.$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781   (eval $ac_compile) 2>conftest.er1
5782   ac_status=$?
5783   grep -v '^ *+' conftest.er1 >conftest.err
5784   rm -f conftest.er1
5785   cat conftest.err >&5
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); } &&
5788          { ac_try='test -z "$ac_f77_werror_flag"
5789                          || test ! -s conftest.err'
5790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791   (eval $ac_try) 2>&5
5792   ac_status=$?
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); }; } &&
5795          { ac_try='test -s conftest.$ac_objext'
5796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797   (eval $ac_try) 2>&5
5798   ac_status=$?
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); }; }; then
5801   ac_cv_prog_f77_g=yes
5802 else
5803   echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 ac_cv_prog_f77_g=no
5807 fi
5808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809
5810 fi
5811 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5812 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5813 if test "$ac_test_FFLAGS" = set; then
5814   FFLAGS=$ac_save_FFLAGS
5815 elif test $ac_cv_prog_f77_g = yes; then
5816   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5817     FFLAGS="-g -O2"
5818   else
5819     FFLAGS="-g"
5820   fi
5821 else
5822   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5823     FFLAGS="-O2"
5824   else
5825     FFLAGS=
5826   fi
5827 fi
5828
5829 G77=`test $ac_compiler_gnu = yes && echo yes`
5830 ac_ext=c
5831 ac_cpp='$CPP $CPPFLAGS'
5832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5835
5836
5837
5838 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5839
5840 # find the maximum length of command line arguments
5841 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5842 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5843 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5844   echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846     i=0
5847   teststring="ABCD"
5848
5849   case $build_os in
5850   msdosdjgpp*)
5851     # On DJGPP, this test can blow up pretty badly due to problems in libc
5852     # (any single argument exceeding 2000 bytes causes a buffer overrun
5853     # during glob expansion).  Even if it were fixed, the result of this
5854     # check would be larger than it should be.
5855     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5856     ;;
5857
5858   gnu*)
5859     # Under GNU Hurd, this test is not required because there is
5860     # no limit to the length of command line arguments.
5861     # Libtool will interpret -1 as no limit whatsoever
5862     lt_cv_sys_max_cmd_len=-1;
5863     ;;
5864
5865   cygwin* | mingw*)
5866     # On Win9x/ME, this test blows up -- it succeeds, but takes
5867     # about 5 minutes as the teststring grows exponentially.
5868     # Worse, since 9x/ME are not pre-emptively multitasking,
5869     # you end up with a "frozen" computer, even though with patience
5870     # the test eventually succeeds (with a max line length of 256k).
5871     # Instead, let's just punt: use the minimum linelength reported by
5872     # all of the supported platforms: 8192 (on NT/2K/XP).
5873     lt_cv_sys_max_cmd_len=8192;
5874     ;;
5875
5876   amigaos*)
5877     # On AmigaOS with pdksh, this test takes hours, literally.
5878     # So we just punt and use a minimum line length of 8192.
5879     lt_cv_sys_max_cmd_len=8192;
5880     ;;
5881
5882   netbsd* | freebsd* | openbsd* | darwin* )
5883     # This has been around since 386BSD, at least.  Likely further.
5884     if test -x /sbin/sysctl; then
5885       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5886     elif test -x /usr/sbin/sysctl; then
5887       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5888     else
5889       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5890     fi
5891     # And add a safety zone
5892     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5893     ;;
5894
5895  *)
5896     # If test is not a shell built-in, we'll probably end up computing a
5897     # maximum length that is only half of the actual maximum length, but
5898     # we can't tell.
5899     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5900     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5901                = "XX$teststring") >/dev/null 2>&1 &&
5902             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5903             lt_cv_sys_max_cmd_len=$new_result &&
5904             test $i != 17 # 1/2 MB should be enough
5905     do
5906       i=`expr $i + 1`
5907       teststring=$teststring$teststring
5908     done
5909     teststring=
5910     # Add a significant safety factor because C++ compilers can tack on massive
5911     # amounts of additional arguments before passing them to the linker.
5912     # It appears as though 1/2 is a usable value.
5913     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5914     ;;
5915   esac
5916
5917 fi
5918
5919 if test -n $lt_cv_sys_max_cmd_len ; then
5920   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5921 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5922 else
5923   echo "$as_me:$LINENO: result: none" >&5
5924 echo "${ECHO_T}none" >&6
5925 fi
5926
5927
5928
5929
5930 # Check for command to grab the raw symbol name followed by C symbol from nm.
5931 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5932 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5933 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936
5937 # These are sane defaults that work on at least a few old systems.
5938 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5939
5940 # Character class describing NM global symbol codes.
5941 symcode='[BCDEGRST]'
5942
5943 # Regexp to match symbols that can be accessed directly from C.
5944 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5945
5946 # Transform the above into a raw symbol and a C symbol.
5947 symxfrm='\1 \2\3 \3'
5948
5949 # Transform an extracted symbol line into a proper C declaration
5950 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5951
5952 # Transform an extracted symbol line into symbol name and symbol address
5953 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'"
5954
5955 # Define system-specific variables.
5956 case $host_os in
5957 aix*)
5958   symcode='[BCDT]'
5959   ;;
5960 cygwin* | mingw* | pw32*)
5961   symcode='[ABCDGISTW]'
5962   ;;
5963 hpux*) # Its linker distinguishes data from code symbols
5964   if test "$host_cpu" = ia64; then
5965     symcode='[ABCDEGRST]'
5966   fi
5967   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5968   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'"
5969   ;;
5970 linux*)
5971   if test "$host_cpu" = ia64; then
5972     symcode='[ABCDGIRSTW]'
5973     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5974     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'"
5975   fi
5976   ;;
5977 irix* | nonstopux*)
5978   symcode='[BCDEGRST]'
5979   ;;
5980 osf*)
5981   symcode='[BCDEGQRST]'
5982   ;;
5983 solaris* | sysv5*)
5984   symcode='[BDRT]'
5985   ;;
5986 sysv4)
5987   symcode='[DFNSTU]'
5988   ;;
5989 esac
5990
5991 # Handle CRLF in mingw tool chain
5992 opt_cr=
5993 case $build_os in
5994 mingw*)
5995   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5996   ;;
5997 esac
5998
5999 # If we're using GNU nm, then use its standard symbol codes.
6000 case `$NM -V 2>&1` in
6001 *GNU* | *'with BFD'*)
6002   symcode='[ABCDGIRSTW]' ;;
6003 esac
6004
6005 # Try without a prefix undercore, then with it.
6006 for ac_symprfx in "" "_"; do
6007
6008   # Write the raw and C identifiers.
6009   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6010
6011   # Check to see that the pipe works correctly.
6012   pipe_works=no
6013
6014   rm -f conftest*
6015   cat > conftest.$ac_ext <<EOF
6016 #ifdef __cplusplus
6017 extern "C" {
6018 #endif
6019 char nm_test_var;
6020 void nm_test_func(){}
6021 #ifdef __cplusplus
6022 }
6023 #endif
6024 int main(){nm_test_var='a';nm_test_func();return(0);}
6025 EOF
6026
6027   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028   (eval $ac_compile) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; then
6032     # Now try to grab the symbols.
6033     nlist=conftest.nm
6034     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6035   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); } && test -s "$nlist"; then
6039       # Try sorting and uniquifying the output.
6040       if sort "$nlist" | uniq > "$nlist"T; then
6041         mv -f "$nlist"T "$nlist"
6042       else
6043         rm -f "$nlist"T
6044       fi
6045
6046       # Make sure that we snagged all the symbols we need.
6047       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6048         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6049           cat <<EOF > conftest.$ac_ext
6050 #ifdef __cplusplus
6051 extern "C" {
6052 #endif
6053
6054 EOF
6055           # Now generate the symbol file.
6056           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6057
6058           cat <<EOF >> conftest.$ac_ext
6059 #if defined (__STDC__) && __STDC__
6060 # define lt_ptr_t void *
6061 #else
6062 # define lt_ptr_t char *
6063 # define const
6064 #endif
6065
6066 /* The mapping between symbol names and symbols. */
6067 const struct {
6068   const char *name;
6069   lt_ptr_t address;
6070 }
6071 lt_preloaded_symbols[] =
6072 {
6073 EOF
6074           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6075           cat <<\EOF >> conftest.$ac_ext
6076   {0, (lt_ptr_t) 0}
6077 };
6078
6079 #ifdef __cplusplus
6080 }
6081 #endif
6082 EOF
6083           # Now try linking the two files.
6084           mv conftest.$ac_objext conftstm.$ac_objext
6085           lt_save_LIBS="$LIBS"
6086           lt_save_CFLAGS="$CFLAGS"
6087           LIBS="conftstm.$ac_objext"
6088           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6089           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6090   (eval $ac_link) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6094             pipe_works=yes
6095           fi
6096           LIBS="$lt_save_LIBS"
6097           CFLAGS="$lt_save_CFLAGS"
6098         else
6099           echo "cannot find nm_test_func in $nlist" >&5
6100         fi
6101       else
6102         echo "cannot find nm_test_var in $nlist" >&5
6103       fi
6104     else
6105       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6106     fi
6107   else
6108     echo "$progname: failed program was:" >&5
6109     cat conftest.$ac_ext >&5
6110   fi
6111   rm -f conftest* conftst*
6112
6113   # Do not use the global_symbol_pipe unless it works.
6114   if test "$pipe_works" = yes; then
6115     break
6116   else
6117     lt_cv_sys_global_symbol_pipe=
6118   fi
6119 done
6120
6121 fi
6122
6123 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6124   lt_cv_sys_global_symbol_to_cdecl=
6125 fi
6126 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6127   echo "$as_me:$LINENO: result: failed" >&5
6128 echo "${ECHO_T}failed" >&6
6129 else
6130   echo "$as_me:$LINENO: result: ok" >&5
6131 echo "${ECHO_T}ok" >&6
6132 fi
6133
6134 echo "$as_me:$LINENO: checking for objdir" >&5
6135 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6136 if test "${lt_cv_objdir+set}" = set; then
6137   echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139   rm -f .libs 2>/dev/null
6140 mkdir .libs 2>/dev/null
6141 if test -d .libs; then
6142   lt_cv_objdir=.libs
6143 else
6144   # MS-DOS does not allow filenames that begin with a dot.
6145   lt_cv_objdir=_libs
6146 fi
6147 rmdir .libs 2>/dev/null
6148 fi
6149 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6150 echo "${ECHO_T}$lt_cv_objdir" >&6
6151 objdir=$lt_cv_objdir
6152
6153
6154
6155
6156
6157 case $host_os in
6158 aix3*)
6159   # AIX sometimes has problems with the GCC collect2 program.  For some
6160   # reason, if we set the COLLECT_NAMES environment variable, the problems
6161   # vanish in a puff of smoke.
6162   if test "X${COLLECT_NAMES+set}" != Xset; then
6163     COLLECT_NAMES=
6164     export COLLECT_NAMES
6165   fi
6166   ;;
6167 esac
6168
6169 # Sed substitution that helps us do robust quoting.  It backslashifies
6170 # metacharacters that are still active within double-quoted strings.
6171 Xsed='sed -e s/^X//'
6172 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6173
6174 # Same as above, but do not quote variable references.
6175 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6176
6177 # Sed substitution to delay expansion of an escaped shell variable in a
6178 # double_quote_subst'ed string.
6179 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6180
6181 # Sed substitution to avoid accidental globbing in evaled expressions
6182 no_glob_subst='s/\*/\\\*/g'
6183
6184 # Constants:
6185 rm="rm -f"
6186
6187 # Global variables:
6188 default_ofile=libtool
6189 can_build_shared=yes
6190
6191 # All known linkers require a `.a' archive for static linking (except M$VC,
6192 # which needs '.lib').
6193 libext=a
6194 ltmain="$ac_aux_dir/ltmain.sh"
6195 ofile="$default_ofile"
6196 with_gnu_ld="$lt_cv_prog_gnu_ld"
6197
6198 if test -n "$ac_tool_prefix"; then
6199   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6200 set dummy ${ac_tool_prefix}ar; ac_word=$2
6201 echo "$as_me:$LINENO: checking for $ac_word" >&5
6202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6203 if test "${ac_cv_prog_AR+set}" = set; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206   if test -n "$AR"; then
6207   ac_cv_prog_AR="$AR" # Let the user override the test.
6208 else
6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 for as_dir in $PATH
6211 do
6212   IFS=$as_save_IFS
6213   test -z "$as_dir" && as_dir=.
6214   for ac_exec_ext in '' $ac_executable_extensions; do
6215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216     ac_cv_prog_AR="${ac_tool_prefix}ar"
6217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6218     break 2
6219   fi
6220 done
6221 done
6222
6223 fi
6224 fi
6225 AR=$ac_cv_prog_AR
6226 if test -n "$AR"; then
6227   echo "$as_me:$LINENO: result: $AR" >&5
6228 echo "${ECHO_T}$AR" >&6
6229 else
6230   echo "$as_me:$LINENO: result: no" >&5
6231 echo "${ECHO_T}no" >&6
6232 fi
6233
6234 fi
6235 if test -z "$ac_cv_prog_AR"; then
6236   ac_ct_AR=$AR
6237   # Extract the first word of "ar", so it can be a program name with args.
6238 set dummy ar; ac_word=$2
6239 echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6241 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6242   echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244   if test -n "$ac_ct_AR"; then
6245   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250   IFS=$as_save_IFS
6251   test -z "$as_dir" && as_dir=.
6252   for ac_exec_ext in '' $ac_executable_extensions; do
6253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254     ac_cv_prog_ac_ct_AR="ar"
6255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256     break 2
6257   fi
6258 done
6259 done
6260
6261   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6262 fi
6263 fi
6264 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6265 if test -n "$ac_ct_AR"; then
6266   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6267 echo "${ECHO_T}$ac_ct_AR" >&6
6268 else
6269   echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6
6271 fi
6272
6273   AR=$ac_ct_AR
6274 else
6275   AR="$ac_cv_prog_AR"
6276 fi
6277
6278 if test -n "$ac_tool_prefix"; then
6279   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6280 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6281 echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6283 if test "${ac_cv_prog_RANLIB+set}" = set; then
6284   echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286   if test -n "$RANLIB"; then
6287   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6288 else
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6291 do
6292   IFS=$as_save_IFS
6293   test -z "$as_dir" && as_dir=.
6294   for ac_exec_ext in '' $ac_executable_extensions; do
6295   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298     break 2
6299   fi
6300 done
6301 done
6302
6303 fi
6304 fi
6305 RANLIB=$ac_cv_prog_RANLIB
6306 if test -n "$RANLIB"; then
6307   echo "$as_me:$LINENO: result: $RANLIB" >&5
6308 echo "${ECHO_T}$RANLIB" >&6
6309 else
6310   echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6
6312 fi
6313
6314 fi
6315 if test -z "$ac_cv_prog_RANLIB"; then
6316   ac_ct_RANLIB=$RANLIB
6317   # Extract the first word of "ranlib", so it can be a program name with args.
6318 set dummy ranlib; ac_word=$2
6319 echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6321 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   if test -n "$ac_ct_RANLIB"; then
6325   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330   IFS=$as_save_IFS
6331   test -z "$as_dir" && as_dir=.
6332   for ac_exec_ext in '' $ac_executable_extensions; do
6333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334     ac_cv_prog_ac_ct_RANLIB="ranlib"
6335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336     break 2
6337   fi
6338 done
6339 done
6340
6341   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6342 fi
6343 fi
6344 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6345 if test -n "$ac_ct_RANLIB"; then
6346   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6347 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6348 else
6349   echo "$as_me:$LINENO: result: no" >&5
6350 echo "${ECHO_T}no" >&6
6351 fi
6352
6353   RANLIB=$ac_ct_RANLIB
6354 else
6355   RANLIB="$ac_cv_prog_RANLIB"
6356 fi
6357
6358 if test -n "$ac_tool_prefix"; then
6359   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6360 set dummy ${ac_tool_prefix}strip; ac_word=$2
6361 echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6363 if test "${ac_cv_prog_STRIP+set}" = set; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366   if test -n "$STRIP"; then
6367   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6371 do
6372   IFS=$as_save_IFS
6373   test -z "$as_dir" && as_dir=.
6374   for ac_exec_ext in '' $ac_executable_extensions; do
6375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378     break 2
6379   fi
6380 done
6381 done
6382
6383 fi
6384 fi
6385 STRIP=$ac_cv_prog_STRIP
6386 if test -n "$STRIP"; then
6387   echo "$as_me:$LINENO: result: $STRIP" >&5
6388 echo "${ECHO_T}$STRIP" >&6
6389 else
6390   echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6
6392 fi
6393
6394 fi
6395 if test -z "$ac_cv_prog_STRIP"; then
6396   ac_ct_STRIP=$STRIP
6397   # Extract the first word of "strip", so it can be a program name with args.
6398 set dummy strip; ac_word=$2
6399 echo "$as_me:$LINENO: checking for $ac_word" >&5
6400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6401 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   if test -n "$ac_ct_STRIP"; then
6405   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412   for ac_exec_ext in '' $ac_executable_extensions; do
6413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414     ac_cv_prog_ac_ct_STRIP="strip"
6415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419 done
6420
6421   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6422 fi
6423 fi
6424 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6425 if test -n "$ac_ct_STRIP"; then
6426   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6427 echo "${ECHO_T}$ac_ct_STRIP" >&6
6428 else
6429   echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6
6431 fi
6432
6433   STRIP=$ac_ct_STRIP
6434 else
6435   STRIP="$ac_cv_prog_STRIP"
6436 fi
6437
6438
6439 old_CC="$CC"
6440 old_CFLAGS="$CFLAGS"
6441
6442 # Set sane defaults for various variables
6443 test -z "$AR" && AR=ar
6444 test -z "$AR_FLAGS" && AR_FLAGS=cru
6445 test -z "$AS" && AS=as
6446 test -z "$CC" && CC=cc
6447 test -z "$LTCC" && LTCC=$CC
6448 test -z "$DLLTOOL" && DLLTOOL=dlltool
6449 test -z "$LD" && LD=ld
6450 test -z "$LN_S" && LN_S="ln -s"
6451 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6452 test -z "$NM" && NM=nm
6453 test -z "$SED" && SED=sed
6454 test -z "$OBJDUMP" && OBJDUMP=objdump
6455 test -z "$RANLIB" && RANLIB=:
6456 test -z "$STRIP" && STRIP=:
6457 test -z "$ac_objext" && ac_objext=o
6458
6459 # Determine commands to create old-style static archives.
6460 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6461 old_postinstall_cmds='chmod 644 $oldlib'
6462 old_postuninstall_cmds=
6463
6464 if test -n "$RANLIB"; then
6465   case $host_os in
6466   openbsd*)
6467     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6468     ;;
6469   *)
6470     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6471     ;;
6472   esac
6473   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6474 fi
6475
6476 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6477
6478 # Only perform the check for file, if the check method requires it
6479 case $deplibs_check_method in
6480 file_magic*)
6481   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6482     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6483 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6484 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6485   echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487   case $MAGIC_CMD in
6488 [\\/*] |  ?:[\\/]*)
6489   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6490   ;;
6491 *)
6492   lt_save_MAGIC_CMD="$MAGIC_CMD"
6493   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6494   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6495   for ac_dir in $ac_dummy; do
6496     IFS="$lt_save_ifs"
6497     test -z "$ac_dir" && ac_dir=.
6498     if test -f $ac_dir/${ac_tool_prefix}file; then
6499       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6500       if test -n "$file_magic_test_file"; then
6501         case $deplibs_check_method in
6502         "file_magic "*)
6503           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6504           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6505           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6506             $EGREP "$file_magic_regex" > /dev/null; then
6507             :
6508           else
6509             cat <<EOF 1>&2
6510
6511 *** Warning: the command libtool uses to detect shared libraries,
6512 *** $file_magic_cmd, produces output that libtool cannot recognize.
6513 *** The result is that libtool may fail to recognize shared libraries
6514 *** as such.  This will affect the creation of libtool libraries that
6515 *** depend on shared libraries, but programs linked with such libtool
6516 *** libraries will work regardless of this problem.  Nevertheless, you
6517 *** may want to report the problem to your system manager and/or to
6518 *** bug-libtool@gnu.org
6519
6520 EOF
6521           fi ;;
6522         esac
6523       fi
6524       break
6525     fi
6526   done
6527   IFS="$lt_save_ifs"
6528   MAGIC_CMD="$lt_save_MAGIC_CMD"
6529   ;;
6530 esac
6531 fi
6532
6533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6534 if test -n "$MAGIC_CMD"; then
6535   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6536 echo "${ECHO_T}$MAGIC_CMD" >&6
6537 else
6538   echo "$as_me:$LINENO: result: no" >&5
6539 echo "${ECHO_T}no" >&6
6540 fi
6541
6542 if test -z "$lt_cv_path_MAGIC_CMD"; then
6543   if test -n "$ac_tool_prefix"; then
6544     echo "$as_me:$LINENO: checking for file" >&5
6545 echo $ECHO_N "checking for file... $ECHO_C" >&6
6546 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6547   echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549   case $MAGIC_CMD in
6550 [\\/*] |  ?:[\\/]*)
6551   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6552   ;;
6553 *)
6554   lt_save_MAGIC_CMD="$MAGIC_CMD"
6555   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6556   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6557   for ac_dir in $ac_dummy; do
6558     IFS="$lt_save_ifs"
6559     test -z "$ac_dir" && ac_dir=.
6560     if test -f $ac_dir/file; then
6561       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6562       if test -n "$file_magic_test_file"; then
6563         case $deplibs_check_method in
6564         "file_magic "*)
6565           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6566           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6567           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6568             $EGREP "$file_magic_regex" > /dev/null; then
6569             :
6570           else
6571             cat <<EOF 1>&2
6572
6573 *** Warning: the command libtool uses to detect shared libraries,
6574 *** $file_magic_cmd, produces output that libtool cannot recognize.
6575 *** The result is that libtool may fail to recognize shared libraries
6576 *** as such.  This will affect the creation of libtool libraries that
6577 *** depend on shared libraries, but programs linked with such libtool
6578 *** libraries will work regardless of this problem.  Nevertheless, you
6579 *** may want to report the problem to your system manager and/or to
6580 *** bug-libtool@gnu.org
6581
6582 EOF
6583           fi ;;
6584         esac
6585       fi
6586       break
6587     fi
6588   done
6589   IFS="$lt_save_ifs"
6590   MAGIC_CMD="$lt_save_MAGIC_CMD"
6591   ;;
6592 esac
6593 fi
6594
6595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6596 if test -n "$MAGIC_CMD"; then
6597   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6598 echo "${ECHO_T}$MAGIC_CMD" >&6
6599 else
6600   echo "$as_me:$LINENO: result: no" >&5
6601 echo "${ECHO_T}no" >&6
6602 fi
6603
6604   else
6605     MAGIC_CMD=:
6606   fi
6607 fi
6608
6609   fi
6610   ;;
6611 esac
6612
6613 enable_dlopen=no
6614 enable_win32_dll=yes
6615
6616 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6617 if test "${enable_libtool_lock+set}" = set; then
6618   enableval="$enable_libtool_lock"
6619
6620 fi;
6621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6622
6623
6624 # Check whether --with-pic or --without-pic was given.
6625 if test "${with_pic+set}" = set; then
6626   withval="$with_pic"
6627   pic_mode="$withval"
6628 else
6629   pic_mode=default
6630 fi;
6631 test -z "$pic_mode" && pic_mode=default
6632
6633 # Use C for the default configuration in the libtool script
6634 tagname=
6635 lt_save_CC="$CC"
6636 ac_ext=c
6637 ac_cpp='$CPP $CPPFLAGS'
6638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6641
6642
6643 # Source file extension for C test sources.
6644 ac_ext=c
6645
6646 # Object file extension for compiled C test sources.
6647 objext=o
6648 objext=$objext
6649
6650 # Code to be used in simple compile tests
6651 lt_simple_compile_test_code="int some_variable = 0;\n"
6652
6653 # Code to be used in simple link tests
6654 lt_simple_link_test_code='int main(){return(0);}\n'
6655
6656
6657 # If no C compiler was specified, use CC.
6658 LTCC=${LTCC-"$CC"}
6659
6660 # Allow CC to be a program name with arguments.
6661 compiler=$CC
6662
6663
6664 #
6665 # Check for any special shared library compilation flags.
6666 #
6667 lt_prog_cc_shlib=
6668 if test "$GCC" = no; then
6669   case $host_os in
6670   sco3.2v5*)
6671     lt_prog_cc_shlib='-belf'
6672     ;;
6673   esac
6674 fi
6675 if test -n "$lt_prog_cc_shlib"; then
6676   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6677 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6678   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6679   else
6680     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6681 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6682     lt_cv_prog_cc_can_build_shared=no
6683   fi
6684 fi
6685
6686
6687 #
6688 # Check to make sure the static flag actually works.
6689 #
6690 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6691 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6692 if test "${lt_prog_compiler_static_works+set}" = set; then
6693   echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695   lt_prog_compiler_static_works=no
6696    save_LDFLAGS="$LDFLAGS"
6697    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6698    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6699    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6700      # The compiler can only warn and ignore the option if not recognized
6701      # So say no if there are warnings
6702      if test -s conftest.err; then
6703        # Append any errors to the config.log.
6704        cat conftest.err 1>&5
6705      else
6706        lt_prog_compiler_static_works=yes
6707      fi
6708    fi
6709    $rm conftest*
6710    LDFLAGS="$save_LDFLAGS"
6711
6712 fi
6713 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6714 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6715
6716 if test x"$lt_prog_compiler_static_works" = xyes; then
6717     :
6718 else
6719     lt_prog_compiler_static=
6720 fi
6721
6722
6723
6724 ## CAVEAT EMPTOR:
6725 ## There is no encapsulation within the following macros, do not change
6726 ## the running order or otherwise move them around unless you know exactly
6727 ## what you are doing...
6728
6729 lt_prog_compiler_no_builtin_flag=
6730
6731 if test "$GCC" = yes; then
6732   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6733
6734
6735 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6736 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6737 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   lt_cv_prog_compiler_rtti_exceptions=no
6741   ac_outfile=conftest.$ac_objext
6742    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6743    lt_compiler_flag="-fno-rtti -fno-exceptions"
6744    # Insert the option either (1) after the last *FLAGS variable, or
6745    # (2) before a word containing "conftest.", or (3) at the end.
6746    # Note that $ac_compile itself does not contain backslashes and begins
6747    # with a dollar sign (not a hyphen), so the echo should work correctly.
6748    # The option is referenced via a variable to avoid confusing sed.
6749    lt_compile=`echo "$ac_compile" | $SED \
6750    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6751    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6752    -e 's:$: $lt_compiler_flag:'`
6753    (eval echo "\"\$as_me:6753: $lt_compile\"" >&5)
6754    (eval "$lt_compile" 2>conftest.err)
6755    ac_status=$?
6756    cat conftest.err >&5
6757    echo "$as_me:6757: \$? = $ac_status" >&5
6758    if (exit $ac_status) && test -s "$ac_outfile"; then
6759      # The compiler can only warn and ignore the option if not recognized
6760      # So say no if there are warnings
6761      if test ! -s conftest.err; then
6762        lt_cv_prog_compiler_rtti_exceptions=yes
6763      fi
6764    fi
6765    $rm conftest*
6766
6767 fi
6768 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6769 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6770
6771 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6772     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6773 else
6774     :
6775 fi
6776
6777 fi
6778
6779 lt_prog_compiler_wl=
6780 lt_prog_compiler_pic=
6781 lt_prog_compiler_static=
6782
6783 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6784 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6785
6786   if test "$GCC" = yes; then
6787     lt_prog_compiler_wl='-Wl,'
6788     lt_prog_compiler_static='-static'
6789
6790     case $host_os in
6791       aix*)
6792       # All AIX code is PIC.
6793       if test "$host_cpu" = ia64; then
6794         # AIX 5 now supports IA64 processor
6795         lt_prog_compiler_static='-Bstatic'
6796       fi
6797       ;;
6798
6799     amigaos*)
6800       # FIXME: we need at least 68020 code to build shared libraries, but
6801       # adding the `-m68020' flag to GCC prevents building anything better,
6802       # like `-m68040'.
6803       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6804       ;;
6805
6806     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6807       # PIC is the default for these OSes.
6808       ;;
6809
6810     mingw* | pw32* | os2*)
6811       # This hack is so that the source file can tell whether it is being
6812       # built for inclusion in a dll (and should export symbols for example).
6813       lt_prog_compiler_pic='-DDLL_EXPORT'
6814       ;;
6815
6816     darwin* | rhapsody*)
6817       # PIC is the default on this platform
6818       # Common symbols not allowed in MH_DYLIB files
6819       lt_prog_compiler_pic='-fno-common'
6820       ;;
6821
6822     msdosdjgpp*)
6823       # Just because we use GCC doesn't mean we suddenly get shared libraries
6824       # on systems that don't support them.
6825       lt_prog_compiler_can_build_shared=no
6826       enable_shared=no
6827       ;;
6828
6829     sysv4*MP*)
6830       if test -d /usr/nec; then
6831         lt_prog_compiler_pic=-Kconform_pic
6832       fi
6833       ;;
6834
6835     hpux*)
6836       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6837       # not for PA HP-UX.
6838       case "$host_cpu" in
6839       hppa*64*|ia64*)
6840         # +Z the default
6841         ;;
6842       *)
6843         lt_prog_compiler_pic='-fPIC'
6844         ;;
6845       esac
6846       ;;
6847
6848     *)
6849       lt_prog_compiler_pic='-fPIC'
6850       ;;
6851     esac
6852   else
6853     # PORTME Check for flag to pass linker flags through the system compiler.
6854     case $host_os in
6855     aix*)
6856       lt_prog_compiler_wl='-Wl,'
6857       if test "$host_cpu" = ia64; then
6858         # AIX 5 now supports IA64 processor
6859         lt_prog_compiler_static='-Bstatic'
6860       else
6861         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6862       fi
6863       ;;
6864       darwin*)
6865         # PIC is the default on this platform
6866         # Common symbols not allowed in MH_DYLIB files
6867        case "$cc_basename" in
6868          xlc*)
6869          lt_prog_compiler_pic='-qnocommon'
6870          lt_prog_compiler_wl='-Wl,'
6871          ;;
6872        esac
6873        ;;
6874
6875     mingw* | pw32* | os2*)
6876       # This hack is so that the source file can tell whether it is being
6877       # built for inclusion in a dll (and should export symbols for example).
6878       lt_prog_compiler_pic='-DDLL_EXPORT'
6879       ;;
6880
6881     hpux9* | hpux10* | hpux11*)
6882       lt_prog_compiler_wl='-Wl,'
6883       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6884       # not for PA HP-UX.
6885       case "$host_cpu" in
6886       hppa*64*|ia64*)
6887         # +Z the default
6888         ;;
6889       *)
6890         lt_prog_compiler_pic='+Z'
6891         ;;
6892       esac
6893       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6894       lt_prog_compiler_static='${wl}-a ${wl}archive'
6895       ;;
6896
6897     irix5* | irix6* | nonstopux*)
6898       lt_prog_compiler_wl='-Wl,'
6899       # PIC (with -KPIC) is the default.
6900       lt_prog_compiler_static='-non_shared'
6901       ;;
6902
6903     newsos6)
6904       lt_prog_compiler_pic='-KPIC'
6905       lt_prog_compiler_static='-Bstatic'
6906       ;;
6907
6908     linux*)
6909       case $CC in
6910       icc* | ecc*)
6911         lt_prog_compiler_wl='-Wl,'
6912         lt_prog_compiler_pic='-KPIC'
6913         lt_prog_compiler_static='-static'
6914         ;;
6915       ccc*)
6916         lt_prog_compiler_wl='-Wl,'
6917         # All Alpha code is PIC.
6918         lt_prog_compiler_static='-non_shared'
6919         ;;
6920       esac
6921       ;;
6922
6923     osf3* | osf4* | osf5*)
6924       lt_prog_compiler_wl='-Wl,'
6925       # All OSF/1 code is PIC.
6926       lt_prog_compiler_static='-non_shared'
6927       ;;
6928
6929     sco3.2v5*)
6930       lt_prog_compiler_pic='-Kpic'
6931       lt_prog_compiler_static='-dn'
6932       ;;
6933
6934     solaris*)
6935       lt_prog_compiler_wl='-Wl,'
6936       lt_prog_compiler_pic='-KPIC'
6937       lt_prog_compiler_static='-Bstatic'
6938       ;;
6939
6940     sunos4*)
6941       lt_prog_compiler_wl='-Qoption ld '
6942       lt_prog_compiler_pic='-PIC'
6943       lt_prog_compiler_static='-Bstatic'
6944       ;;
6945
6946     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6947       lt_prog_compiler_wl='-Wl,'
6948       lt_prog_compiler_pic='-KPIC'
6949       lt_prog_compiler_static='-Bstatic'
6950       ;;
6951
6952     sysv4*MP*)
6953       if test -d /usr/nec ;then
6954         lt_prog_compiler_pic='-Kconform_pic'
6955         lt_prog_compiler_static='-Bstatic'
6956       fi
6957       ;;
6958
6959     uts4*)
6960       lt_prog_compiler_pic='-pic'
6961       lt_prog_compiler_static='-Bstatic'
6962       ;;
6963
6964     *)
6965       lt_prog_compiler_can_build_shared=no
6966       ;;
6967     esac
6968   fi
6969
6970 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6971 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6972
6973 #
6974 # Check to make sure the PIC flag actually works.
6975 #
6976 if test -n "$lt_prog_compiler_pic"; then
6977
6978 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6979 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6980 if test "${lt_prog_compiler_pic_works+set}" = set; then
6981   echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983   lt_prog_compiler_pic_works=no
6984   ac_outfile=conftest.$ac_objext
6985    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6986    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6987    # Insert the option either (1) after the last *FLAGS variable, or
6988    # (2) before a word containing "conftest.", or (3) at the end.
6989    # Note that $ac_compile itself does not contain backslashes and begins
6990    # with a dollar sign (not a hyphen), so the echo should work correctly.
6991    # The option is referenced via a variable to avoid confusing sed.
6992    lt_compile=`echo "$ac_compile" | $SED \
6993    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6994    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6995    -e 's:$: $lt_compiler_flag:'`
6996    (eval echo "\"\$as_me:6996: $lt_compile\"" >&5)
6997    (eval "$lt_compile" 2>conftest.err)
6998    ac_status=$?
6999    cat conftest.err >&5
7000    echo "$as_me:7000: \$? = $ac_status" >&5
7001    if (exit $ac_status) && test -s "$ac_outfile"; then
7002      # The compiler 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        lt_prog_compiler_pic_works=yes
7006      fi
7007    fi
7008    $rm conftest*
7009
7010 fi
7011 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7012 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7013
7014 if test x"$lt_prog_compiler_pic_works" = xyes; then
7015     case $lt_prog_compiler_pic in
7016      "" | " "*) ;;
7017      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7018      esac
7019 else
7020     lt_prog_compiler_pic=
7021      lt_prog_compiler_can_build_shared=no
7022 fi
7023
7024 fi
7025 case "$host_os" in
7026   # For platforms which do not support PIC, -DPIC is meaningless:
7027   *djgpp*)
7028     lt_prog_compiler_pic=
7029     ;;
7030   *)
7031     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7032     ;;
7033 esac
7034
7035 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7036 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7037 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7038   echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040   lt_cv_prog_compiler_c_o=no
7041    $rm -r conftest 2>/dev/null
7042    mkdir conftest
7043    cd conftest
7044    mkdir out
7045    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7046
7047    lt_compiler_flag="-o out/conftest2.$ac_objext"
7048    # Insert the option either (1) after the last *FLAGS variable, or
7049    # (2) before a word containing "conftest.", or (3) at the end.
7050    # Note that $ac_compile itself does not contain backslashes and begins
7051    # with a dollar sign (not a hyphen), so the echo should work correctly.
7052    lt_compile=`echo "$ac_compile" | $SED \
7053    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7054    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7055    -e 's:$: $lt_compiler_flag:'`
7056    (eval echo "\"\$as_me:7056: $lt_compile\"" >&5)
7057    (eval "$lt_compile" 2>out/conftest.err)
7058    ac_status=$?
7059    cat out/conftest.err >&5
7060    echo "$as_me:7060: \$? = $ac_status" >&5
7061    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7062    then
7063      # The compiler can only warn and ignore the option if not recognized
7064      # So say no if there are warnings
7065      if test ! -s out/conftest.err; then
7066        lt_cv_prog_compiler_c_o=yes
7067      fi
7068    fi
7069    chmod u+w .
7070    $rm conftest*
7071    # SGI C++ compiler will create directory out/ii_files/ for
7072    # template instantiation
7073    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7074    $rm out/* && rmdir out
7075    cd ..
7076    rmdir conftest
7077    $rm conftest*
7078
7079 fi
7080 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7081 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7082
7083
7084 hard_links="nottested"
7085 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7086   # do not overwrite the value of need_locks provided by the user
7087   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7088 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7089   hard_links=yes
7090   $rm conftest*
7091   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7092   touch conftest.a
7093   ln conftest.a conftest.b 2>&5 || hard_links=no
7094   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7095   echo "$as_me:$LINENO: result: $hard_links" >&5
7096 echo "${ECHO_T}$hard_links" >&6
7097   if test "$hard_links" = no; then
7098     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7099 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7100     need_locks=warn
7101   fi
7102 else
7103   need_locks=no
7104 fi
7105
7106 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7107 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7108
7109   runpath_var=
7110   allow_undefined_flag=
7111   enable_shared_with_static_runtimes=no
7112   archive_cmds=
7113   archive_expsym_cmds=
7114   old_archive_From_new_cmds=
7115   old_archive_from_expsyms_cmds=
7116   export_dynamic_flag_spec=
7117   whole_archive_flag_spec=
7118   thread_safe_flag_spec=
7119   hardcode_libdir_flag_spec=
7120   hardcode_libdir_flag_spec_ld=
7121   hardcode_libdir_separator=
7122   hardcode_direct=no
7123   hardcode_minus_L=no
7124   hardcode_shlibpath_var=unsupported
7125   link_all_deplibs=unknown
7126   hardcode_automatic=no
7127   module_cmds=
7128   module_expsym_cmds=
7129   always_export_symbols=no
7130   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7131   # include_expsyms should be a list of space-separated symbols to be *always*
7132   # included in the symbol list
7133   include_expsyms=
7134   # exclude_expsyms can be an extended regexp of symbols to exclude
7135   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7136   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7137   # as well as any symbol that contains `d'.
7138   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7139   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7140   # platforms (ab)use it in PIC code, but their linkers get confused if
7141   # the symbol is explicitly referenced.  Since portable code cannot
7142   # rely on this symbol name, it's probably fine to never include it in
7143   # preloaded symbol tables.
7144   extract_expsyms_cmds=
7145
7146   case $host_os in
7147   cygwin* | mingw* | pw32*)
7148     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7149     # When not using gcc, we currently assume that we are using
7150     # Microsoft Visual C++.
7151     if test "$GCC" != yes; then
7152       with_gnu_ld=no
7153     fi
7154     ;;
7155   openbsd*)
7156     with_gnu_ld=no
7157     ;;
7158   esac
7159
7160   ld_shlibs=yes
7161   if test "$with_gnu_ld" = yes; then
7162     # If archive_cmds runs LD, not CC, wlarc should be empty
7163     wlarc='${wl}'
7164
7165     # See if GNU ld supports shared libraries.
7166     case $host_os in
7167     aix3* | aix4* | aix5*)
7168       # On AIX/PPC, the GNU linker is very broken
7169       if test "$host_cpu" != ia64; then
7170         ld_shlibs=no
7171         cat <<EOF 1>&2
7172
7173 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7174 *** to be unable to reliably create shared libraries on AIX.
7175 *** Therefore, libtool is disabling shared libraries support.  If you
7176 *** really care for shared libraries, you may want to modify your PATH
7177 *** so that a non-GNU linker is found, and then restart.
7178
7179 EOF
7180       fi
7181       ;;
7182
7183     amigaos*)
7184       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)'
7185       hardcode_libdir_flag_spec='-L$libdir'
7186       hardcode_minus_L=yes
7187
7188       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7189       # that the semantics of dynamic libraries on AmigaOS, at least up
7190       # to version 4, is to share data among multiple programs linked
7191       # with the same dynamic library.  Since this doesn't match the
7192       # behavior of shared libraries on other platforms, we can't use
7193       # them.
7194       ld_shlibs=no
7195       ;;
7196
7197     beos*)
7198       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7199         allow_undefined_flag=unsupported
7200         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7201         # support --undefined.  This deserves some investigation.  FIXME
7202         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7203       else
7204         ld_shlibs=no
7205       fi
7206       ;;
7207
7208     cygwin* | mingw* | pw32*)
7209       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7210       # as there is no search path for DLLs.
7211       hardcode_libdir_flag_spec='-L$libdir'
7212       allow_undefined_flag=unsupported
7213       always_export_symbols=no
7214       enable_shared_with_static_runtimes=yes
7215       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7216
7217       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7218         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7219         # If the export-symbols file already is a .def file (1st line
7220         # is EXPORTS), use it as is; otherwise, prepend...
7221         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7222           cp $export_symbols $output_objdir/$soname.def;
7223         else
7224           echo EXPORTS > $output_objdir/$soname.def;
7225           cat $export_symbols >> $output_objdir/$soname.def;
7226         fi~
7227         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7228       else
7229         ld_shlibs=no
7230       fi
7231       ;;
7232
7233     netbsd*)
7234       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7235         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7236         wlarc=
7237       else
7238         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7239         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7240       fi
7241       ;;
7242
7243     solaris* | sysv5*)
7244       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7245         ld_shlibs=no
7246         cat <<EOF 1>&2
7247
7248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7249 *** create shared libraries on Solaris systems.  Therefore, libtool
7250 *** is disabling shared libraries support.  We urge you to upgrade GNU
7251 *** binutils to release 2.9.1 or newer.  Another option is to modify
7252 *** your PATH or compiler configuration so that the native linker is
7253 *** used, and then restart.
7254
7255 EOF
7256       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7257         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7258         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7259       else
7260         ld_shlibs=no
7261       fi
7262       ;;
7263
7264     sunos4*)
7265       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7266       wlarc=
7267       hardcode_direct=yes
7268       hardcode_shlibpath_var=no
7269       ;;
7270
7271   linux*)
7272     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7273         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7274         archive_cmds="$tmp_archive_cmds"
7275       supports_anon_versioning=no
7276       case `$LD -v 2>/dev/null` in
7277         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7278         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7279         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7280         *\ 2.11.*) ;; # other 2.11 versions
7281         *) supports_anon_versioning=yes ;;
7282       esac
7283       if test $supports_anon_versioning = yes; then
7284         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7285 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7286 $echo "local: *; };" >> $output_objdir/$libname.ver~
7287         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7288       else
7289         archive_expsym_cmds="$tmp_archive_cmds"
7290       fi
7291     else
7292       ld_shlibs=no
7293     fi
7294     ;;
7295
7296     *)
7297       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7298         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7299         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7300       else
7301         ld_shlibs=no
7302       fi
7303       ;;
7304     esac
7305
7306     if test "$ld_shlibs" = yes; then
7307       runpath_var=LD_RUN_PATH
7308       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7309       export_dynamic_flag_spec='${wl}--export-dynamic'
7310       # ancient GNU ld didn't support --whole-archive et. al.
7311       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7312         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7313       else
7314         whole_archive_flag_spec=
7315       fi
7316     fi
7317   else
7318     # PORTME fill in a description of your system's linker (not GNU ld)
7319     case $host_os in
7320     aix3*)
7321       allow_undefined_flag=unsupported
7322       always_export_symbols=yes
7323       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'
7324       # Note: this linker hardcodes the directories in LIBPATH if there
7325       # are no directories specified by -L.
7326       hardcode_minus_L=yes
7327       if test "$GCC" = yes && test -z "$link_static_flag"; then
7328         # Neither direct hardcoding nor static linking is supported with a
7329         # broken collect2.
7330         hardcode_direct=unsupported
7331       fi
7332       ;;
7333
7334     aix4* | aix5*)
7335       if test "$host_cpu" = ia64; then
7336         # On IA64, the linker does run time linking by default, so we don't
7337         # have to do anything special.
7338         aix_use_runtimelinking=no
7339         exp_sym_flag='-Bexport'
7340         no_entry_flag=""
7341       else
7342         # If we're using GNU nm, then we don't want the "-C" option.
7343         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7344         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7345           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'
7346         else
7347           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'
7348         fi
7349         aix_use_runtimelinking=no
7350
7351         # Test if we are trying to use run time linking or normal
7352         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7353         # need to do runtime linking.
7354         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7355           for ld_flag in $LDFLAGS; do
7356           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7357             aix_use_runtimelinking=yes
7358             break
7359           fi
7360           done
7361         esac
7362
7363         exp_sym_flag='-bexport'
7364         no_entry_flag='-bnoentry'
7365       fi
7366
7367       # When large executables or shared objects are built, AIX ld can
7368       # have problems creating the table of contents.  If linking a library
7369       # or program results in "error TOC overflow" add -mminimal-toc to
7370       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7371       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7372
7373       archive_cmds=''
7374       hardcode_direct=yes
7375       hardcode_libdir_separator=':'
7376       link_all_deplibs=yes
7377
7378       if test "$GCC" = yes; then
7379         case $host_os in aix4.012|aix4.012.*)
7380         # We only want to do this on AIX 4.2 and lower, the check
7381         # below for broken collect2 doesn't work under 4.3+
7382           collect2name=`${CC} -print-prog-name=collect2`
7383           if test -f "$collect2name" && \
7384            strings "$collect2name" | grep resolve_lib_name >/dev/null
7385           then
7386           # We have reworked collect2
7387           hardcode_direct=yes
7388           else
7389           # We have old collect2
7390           hardcode_direct=unsupported
7391           # It fails to find uninstalled libraries when the uninstalled
7392           # path is not listed in the libpath.  Setting hardcode_minus_L
7393           # to unsupported forces relinking
7394           hardcode_minus_L=yes
7395           hardcode_libdir_flag_spec='-L$libdir'
7396           hardcode_libdir_separator=
7397           fi
7398         esac
7399         shared_flag='-shared'
7400       else
7401         # not using gcc
7402         if test "$host_cpu" = ia64; then
7403         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7404         # chokes on -Wl,-G. The following line is correct:
7405           shared_flag='-G'
7406         else
7407         if test "$aix_use_runtimelinking" = yes; then
7408             shared_flag='${wl}-G'
7409           else
7410             shared_flag='${wl}-bM:SRE'
7411         fi
7412         fi
7413       fi
7414
7415       # It seems that -bexpall does not export symbols beginning with
7416       # underscore (_), so it is better to generate a list of symbols to export.
7417       always_export_symbols=yes
7418       if test "$aix_use_runtimelinking" = yes; then
7419         # Warning - without using the other runtime loading flags (-brtl),
7420         # -berok will link without error, but may produce a broken library.
7421         allow_undefined_flag='-berok'
7422        # Determine the default libpath from the value encoded in an empty executable.
7423        cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h.  */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h.  */
7429
7430 int
7431 main ()
7432 {
7433
7434   ;
7435   return 0;
7436 }
7437 _ACEOF
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7440   (eval $ac_link) 2>conftest.er1
7441   ac_status=$?
7442   grep -v '^ *+' conftest.er1 >conftest.err
7443   rm -f conftest.er1
7444   cat conftest.err >&5
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } &&
7447          { ac_try='test -z "$ac_c_werror_flag"
7448                          || test ! -s conftest.err'
7449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450   (eval $ac_try) 2>&5
7451   ac_status=$?
7452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453   (exit $ac_status); }; } &&
7454          { ac_try='test -s conftest$ac_exeext'
7455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456   (eval $ac_try) 2>&5
7457   ac_status=$?
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); }; }; then
7460
7461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7462 }'`
7463 # Check for a 64-bit object if we didn't find anything.
7464 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7465 }'`; fi
7466 else
7467   echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470 fi
7471 rm -f conftest.err conftest.$ac_objext \
7472       conftest$ac_exeext conftest.$ac_ext
7473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7474
7475        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7476         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7477        else
7478         if test "$host_cpu" = ia64; then
7479           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7480           allow_undefined_flag="-z nodefs"
7481           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7482         else
7483          # Determine the default libpath from the value encoded in an empty executable.
7484          cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h.  */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h.  */
7490
7491 int
7492 main ()
7493 {
7494
7495   ;
7496   return 0;
7497 }
7498 _ACEOF
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7501   (eval $ac_link) 2>conftest.er1
7502   ac_status=$?
7503   grep -v '^ *+' conftest.er1 >conftest.err
7504   rm -f conftest.er1
7505   cat conftest.err >&5
7506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507   (exit $ac_status); } &&
7508          { ac_try='test -z "$ac_c_werror_flag"
7509                          || test ! -s conftest.err'
7510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511   (eval $ac_try) 2>&5
7512   ac_status=$?
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); }; } &&
7515          { ac_try='test -s conftest$ac_exeext'
7516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517   (eval $ac_try) 2>&5
7518   ac_status=$?
7519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520   (exit $ac_status); }; }; then
7521
7522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7523 }'`
7524 # Check for a 64-bit object if we didn't find anything.
7525 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7526 }'`; fi
7527 else
7528   echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7530
7531 fi
7532 rm -f conftest.err conftest.$ac_objext \
7533       conftest$ac_exeext conftest.$ac_ext
7534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7535
7536          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7537           # Warning - without using the other run time loading flags,
7538           # -berok will link without error, but may produce a broken library.
7539           no_undefined_flag=' ${wl}-bernotok'
7540           allow_undefined_flag=' ${wl}-berok'
7541           # -bexpall does not export symbols beginning with underscore (_)
7542           always_export_symbols=yes
7543           # Exported symbols can be pulled into shared objects from archives
7544           whole_archive_flag_spec=' '
7545           archive_cmds_need_lc=yes
7546           # This is similar to how AIX traditionally builds it's shared libraries.
7547           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7548         fi
7549       fi
7550       ;;
7551
7552     amigaos*)
7553       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)'
7554       hardcode_libdir_flag_spec='-L$libdir'
7555       hardcode_minus_L=yes
7556       # see comment about different semantics on the GNU ld section
7557       ld_shlibs=no
7558       ;;
7559
7560     bsdi[45]*)
7561       export_dynamic_flag_spec=-rdynamic
7562       ;;
7563
7564     cygwin* | mingw* | pw32*)
7565       # When not using gcc, we currently assume that we are using
7566       # Microsoft Visual C++.
7567       # hardcode_libdir_flag_spec is actually meaningless, as there is
7568       # no search path for DLLs.
7569       hardcode_libdir_flag_spec=' '
7570       allow_undefined_flag=unsupported
7571       # Tell ltmain to make .lib files, not .a files.
7572       libext=lib
7573       # Tell ltmain to make .dll files, not .so files.
7574       shrext_cmds=".dll"
7575       # FIXME: Setting linknames here is a bad hack.
7576       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7577       # The linker will automatically build a .lib file if we build a DLL.
7578       old_archive_From_new_cmds='true'
7579       # FIXME: Should let the user specify the lib program.
7580       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7581       fix_srcfile_path='`cygpath -w "$srcfile"`'
7582       enable_shared_with_static_runtimes=yes
7583       ;;
7584
7585     darwin* | rhapsody*)
7586       case "$host_os" in
7587         rhapsody* | darwin1.[012])
7588          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7589          ;;
7590        *) # Darwin 1.3 on
7591          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7592            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7593          else
7594            case ${MACOSX_DEPLOYMENT_TARGET} in
7595              10.[012])
7596                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7597                ;;
7598              10.*)
7599                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7600                ;;
7601            esac
7602          fi
7603          ;;
7604       esac
7605       archive_cmds_need_lc=no
7606       hardcode_direct=no
7607       hardcode_automatic=yes
7608       hardcode_shlibpath_var=unsupported
7609       whole_archive_flag_spec=''
7610       link_all_deplibs=yes
7611     if test "$GCC" = yes ; then
7612         output_verbose_link_cmd='echo'
7613         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7614       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7615       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7616       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7617       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}'
7618     else
7619       case "$cc_basename" in
7620         xlc*)
7621          output_verbose_link_cmd='echo'
7622          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7623          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7624           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7625          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7626           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}'
7627           ;;
7628        *)
7629          ld_shlibs=no
7630           ;;
7631       esac
7632     fi
7633       ;;
7634
7635     dgux*)
7636       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7637       hardcode_libdir_flag_spec='-L$libdir'
7638       hardcode_shlibpath_var=no
7639       ;;
7640
7641     freebsd1*)
7642       ld_shlibs=no
7643       ;;
7644
7645     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7646     # support.  Future versions do this automatically, but an explicit c++rt0.o
7647     # does not break anything, and helps significantly (at the cost of a little
7648     # extra space).
7649     freebsd2.2*)
7650       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7651       hardcode_libdir_flag_spec='-R$libdir'
7652       hardcode_direct=yes
7653       hardcode_shlibpath_var=no
7654       ;;
7655
7656     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7657     freebsd2*)
7658       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7659       hardcode_direct=yes
7660       hardcode_minus_L=yes
7661       hardcode_shlibpath_var=no
7662       ;;
7663
7664     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7665     freebsd* | kfreebsd*-gnu)
7666       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7667       hardcode_libdir_flag_spec='-R$libdir'
7668       hardcode_direct=yes
7669       hardcode_shlibpath_var=no
7670       ;;
7671
7672     hpux9*)
7673       if test "$GCC" = yes; then
7674         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'
7675       else
7676         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'
7677       fi
7678       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7679       hardcode_libdir_separator=:
7680       hardcode_direct=yes
7681
7682       # hardcode_minus_L: Not really in the search PATH,
7683       # but as the default location of the library.
7684       hardcode_minus_L=yes
7685       export_dynamic_flag_spec='${wl}-E'
7686       ;;
7687
7688     hpux10* | hpux11*)
7689       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7690         case "$host_cpu" in
7691         hppa*64*|ia64*)
7692           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7693           ;;
7694         *)
7695           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7696           ;;
7697         esac
7698       else
7699         case "$host_cpu" in
7700         hppa*64*|ia64*)
7701           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7702           ;;
7703         *)
7704           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7705           ;;
7706         esac
7707       fi
7708       if test "$with_gnu_ld" = no; then
7709         case "$host_cpu" in
7710         hppa*64*)
7711           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7712           hardcode_libdir_flag_spec_ld='+b $libdir'
7713           hardcode_libdir_separator=:
7714           hardcode_direct=no
7715           hardcode_shlibpath_var=no
7716           ;;
7717         ia64*)
7718           hardcode_libdir_flag_spec='-L$libdir'
7719           hardcode_direct=no
7720           hardcode_shlibpath_var=no
7721
7722           # hardcode_minus_L: Not really in the search PATH,
7723           # but as the default location of the library.
7724           hardcode_minus_L=yes
7725           ;;
7726         *)
7727           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7728           hardcode_libdir_separator=:
7729           hardcode_direct=yes
7730           export_dynamic_flag_spec='${wl}-E'
7731
7732           # hardcode_minus_L: Not really in the search PATH,
7733           # but as the default location of the library.
7734           hardcode_minus_L=yes
7735           ;;
7736         esac
7737       fi
7738       ;;
7739
7740     irix5* | irix6* | nonstopux*)
7741       if test "$GCC" = yes; then
7742         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'
7743       else
7744         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'
7745         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7746       fi
7747       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7748       hardcode_libdir_separator=:
7749       link_all_deplibs=yes
7750       ;;
7751
7752     netbsd*)
7753       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7754         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7755       else
7756         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7757       fi
7758       hardcode_libdir_flag_spec='-R$libdir'
7759       hardcode_direct=yes
7760       hardcode_shlibpath_var=no
7761       ;;
7762
7763     newsos6)
7764       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7765       hardcode_direct=yes
7766       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7767       hardcode_libdir_separator=:
7768       hardcode_shlibpath_var=no
7769       ;;
7770
7771     openbsd*)
7772       hardcode_direct=yes
7773       hardcode_shlibpath_var=no
7774       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7775         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7776         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7777         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7778         export_dynamic_flag_spec='${wl}-E'
7779       else
7780        case $host_os in
7781          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7782            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7783            hardcode_libdir_flag_spec='-R$libdir'
7784            ;;
7785          *)
7786            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7787            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7788            ;;
7789        esac
7790       fi
7791       ;;
7792
7793     os2*)
7794       hardcode_libdir_flag_spec='-L$libdir'
7795       hardcode_minus_L=yes
7796       allow_undefined_flag=unsupported
7797       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'
7798       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7799       ;;
7800
7801     osf3*)
7802       if test "$GCC" = yes; then
7803         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7804         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'
7805       else
7806         allow_undefined_flag=' -expect_unresolved \*'
7807         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'
7808       fi
7809       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7810       hardcode_libdir_separator=:
7811       ;;
7812
7813     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7814       if test "$GCC" = yes; then
7815         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7816         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'
7817         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7818       else
7819         allow_undefined_flag=' -expect_unresolved \*'
7820         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'
7821         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7822         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7823
7824         # Both c and cxx compiler support -rpath directly
7825         hardcode_libdir_flag_spec='-rpath $libdir'
7826       fi
7827       hardcode_libdir_separator=:
7828       ;;
7829
7830     sco3.2v5*)
7831       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7832       hardcode_shlibpath_var=no
7833       export_dynamic_flag_spec='${wl}-Bexport'
7834       runpath_var=LD_RUN_PATH
7835       hardcode_runpath_var=yes
7836       ;;
7837
7838     solaris*)
7839       no_undefined_flag=' -z text'
7840       if test "$GCC" = yes; then
7841         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7842         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7843           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7844       else
7845         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7846         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7847         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7848       fi
7849       hardcode_libdir_flag_spec='-R$libdir'
7850       hardcode_shlibpath_var=no
7851       case $host_os in
7852       solaris2.[0-5] | solaris2.[0-5].*) ;;
7853       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7854         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7855       esac
7856       link_all_deplibs=yes
7857       ;;
7858
7859     sunos4*)
7860       if test "x$host_vendor" = xsequent; then
7861         # Use $CC to link under sequent, because it throws in some extra .o
7862         # files that make .init and .fini sections work.
7863         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7864       else
7865         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7866       fi
7867       hardcode_libdir_flag_spec='-L$libdir'
7868       hardcode_direct=yes
7869       hardcode_minus_L=yes
7870       hardcode_shlibpath_var=no
7871       ;;
7872
7873     sysv4)
7874       case $host_vendor in
7875         sni)
7876           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7877           hardcode_direct=yes # is this really true???
7878         ;;
7879         siemens)
7880           ## LD is ld it makes a PLAMLIB
7881           ## CC just makes a GrossModule.
7882           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7883           reload_cmds='$CC -r -o $output$reload_objs'
7884           hardcode_direct=no
7885         ;;
7886         motorola)
7887           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7888           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7889         ;;
7890       esac
7891       runpath_var='LD_RUN_PATH'
7892       hardcode_shlibpath_var=no
7893       ;;
7894
7895     sysv4.3*)
7896       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7897       hardcode_shlibpath_var=no
7898       export_dynamic_flag_spec='-Bexport'
7899       ;;
7900
7901     sysv4*MP*)
7902       if test -d /usr/nec; then
7903         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7904         hardcode_shlibpath_var=no
7905         runpath_var=LD_RUN_PATH
7906         hardcode_runpath_var=yes
7907         ld_shlibs=yes
7908       fi
7909       ;;
7910
7911     sysv4.2uw2*)
7912       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7913       hardcode_direct=yes
7914       hardcode_minus_L=no
7915       hardcode_shlibpath_var=no
7916       hardcode_runpath_var=yes
7917       runpath_var=LD_RUN_PATH
7918       ;;
7919
7920    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7921       no_undefined_flag='${wl}-z ${wl}text'
7922       if test "$GCC" = yes; then
7923         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7924       else
7925         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7926       fi
7927       runpath_var='LD_RUN_PATH'
7928       hardcode_shlibpath_var=no
7929       ;;
7930
7931     sysv5*)
7932       no_undefined_flag=' -z text'
7933       # $CC -shared without GNU ld will not create a library from C++
7934       # object files and a static libstdc++, better avoid it by now
7935       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7936       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7937                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7938       hardcode_libdir_flag_spec=
7939       hardcode_shlibpath_var=no
7940       runpath_var='LD_RUN_PATH'
7941       ;;
7942
7943     uts4*)
7944       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7945       hardcode_libdir_flag_spec='-L$libdir'
7946       hardcode_shlibpath_var=no
7947       ;;
7948
7949     *)
7950       ld_shlibs=no
7951       ;;
7952     esac
7953   fi
7954
7955 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7956 echo "${ECHO_T}$ld_shlibs" >&6
7957 test "$ld_shlibs" = no && can_build_shared=no
7958
7959 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7960 if test "$GCC" = yes; then
7961   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7962 fi
7963
7964 #
7965 # Do we need to explicitly link libc?
7966 #
7967 case "x$archive_cmds_need_lc" in
7968 x|xyes)
7969   # Assume -lc should be added
7970   archive_cmds_need_lc=yes
7971
7972   if test "$enable_shared" = yes && test "$GCC" = yes; then
7973     case $archive_cmds in
7974     *'~'*)
7975       # FIXME: we may have to deal with multi-command sequences.
7976       ;;
7977     '$CC '*)
7978       # Test whether the compiler implicitly links with -lc since on some
7979       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7980       # to ld, don't add -lc before -lgcc.
7981       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7982 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7983       $rm conftest*
7984       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7985
7986       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987   (eval $ac_compile) 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); } 2>conftest.err; then
7991         soname=conftest
7992         lib=conftest
7993         libobjs=conftest.$ac_objext
7994         deplibs=
7995         wl=$lt_prog_compiler_wl
7996         compiler_flags=-v
7997         linker_flags=-v
7998         verstring=
7999         output_objdir=.
8000         libname=conftest
8001         lt_save_allow_undefined_flag=$allow_undefined_flag
8002         allow_undefined_flag=
8003         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8004   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8005   ac_status=$?
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); }
8008         then
8009           archive_cmds_need_lc=no
8010         else
8011           archive_cmds_need_lc=yes
8012         fi
8013         allow_undefined_flag=$lt_save_allow_undefined_flag
8014       else
8015         cat conftest.err 1>&5
8016       fi
8017       $rm conftest*
8018       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8019 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8020       ;;
8021     esac
8022   fi
8023   ;;
8024 esac
8025
8026 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8027 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8028 library_names_spec=
8029 libname_spec='lib$name'
8030 soname_spec=
8031 shrext_cmds=".so"
8032 postinstall_cmds=
8033 postuninstall_cmds=
8034 finish_cmds=
8035 finish_eval=
8036 shlibpath_var=
8037 shlibpath_overrides_runpath=unknown
8038 version_type=none
8039 dynamic_linker="$host_os ld.so"
8040 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8041 if test "$GCC" = yes; then
8042   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8043   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8044     # if the path contains ";" then we assume it to be the separator
8045     # otherwise default to the standard path separator (i.e. ":") - it is
8046     # assumed that no part of a normal pathname contains ";" but that should
8047     # okay in the real world where ";" in dirpaths is itself problematic.
8048     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8049   else
8050     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8051   fi
8052 else
8053   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8054 fi
8055 need_lib_prefix=unknown
8056 hardcode_into_libs=no
8057
8058 # when you set need_version to no, make sure it does not cause -set_version
8059 # flags to be left without arguments
8060 need_version=unknown
8061
8062 case $host_os in
8063 aix3*)
8064   version_type=linux
8065   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8066   shlibpath_var=LIBPATH
8067
8068   # AIX 3 has no versioning support, so we append a major version to the name.
8069   soname_spec='${libname}${release}${shared_ext}$major'
8070   ;;
8071
8072 aix4* | aix5*)
8073   version_type=linux
8074   need_lib_prefix=no
8075   need_version=no
8076   hardcode_into_libs=yes
8077   if test "$host_cpu" = ia64; then
8078     # AIX 5 supports IA64
8079     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8080     shlibpath_var=LD_LIBRARY_PATH
8081   else
8082     # With GCC up to 2.95.x, collect2 would create an import file
8083     # for dependence libraries.  The import file would start with
8084     # the line `#! .'.  This would cause the generated library to
8085     # depend on `.', always an invalid library.  This was fixed in
8086     # development snapshots of GCC prior to 3.0.
8087     case $host_os in
8088       aix4 | aix4.[01] | aix4.[01].*)
8089       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8090            echo ' yes '
8091            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8092         :
8093       else
8094         can_build_shared=no
8095       fi
8096       ;;
8097     esac
8098     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8099     # soname into executable. Probably we can add versioning support to
8100     # collect2, so additional links can be useful in future.
8101     if test "$aix_use_runtimelinking" = yes; then
8102       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8103       # instead of lib<name>.a to let people know that these are not
8104       # typical AIX shared libraries.
8105       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106     else
8107       # We preserve .a as extension for shared libraries through AIX4.2
8108       # and later when we are not doing run time linking.
8109       library_names_spec='${libname}${release}.a $libname.a'
8110       soname_spec='${libname}${release}${shared_ext}$major'
8111     fi
8112     shlibpath_var=LIBPATH
8113   fi
8114   ;;
8115
8116 amigaos*)
8117   library_names_spec='$libname.ixlibrary $libname.a'
8118   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8119   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'
8120   ;;
8121
8122 beos*)
8123   library_names_spec='${libname}${shared_ext}'
8124   dynamic_linker="$host_os ld.so"
8125   shlibpath_var=LIBRARY_PATH
8126   ;;
8127
8128 bsdi[45]*)
8129   version_type=linux
8130   need_version=no
8131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8132   soname_spec='${libname}${release}${shared_ext}$major'
8133   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8134   shlibpath_var=LD_LIBRARY_PATH
8135   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8136   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8137   # the default ld.so.conf also contains /usr/contrib/lib and
8138   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8139   # libtool to hard-code these into programs
8140   ;;
8141
8142 cygwin* | mingw* | pw32*)
8143   version_type=windows
8144   shrext_cmds=".dll"
8145   need_version=no
8146   need_lib_prefix=no
8147
8148   case $GCC,$host_os in
8149   yes,cygwin* | yes,mingw* | yes,pw32*)
8150     library_names_spec='$libname.dll.a'
8151     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8152     postinstall_cmds='base_file=`basename \${file}`~
8153       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8154       dldir=$destdir/`dirname \$dlpath`~
8155       test -d \$dldir || mkdir -p \$dldir~
8156       $install_prog $dir/$dlname \$dldir/$dlname'
8157     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8158       dlpath=$dir/\$dldll~
8159        $rm \$dlpath'
8160     shlibpath_overrides_runpath=yes
8161
8162     case $host_os in
8163     cygwin*)
8164       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8165       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8166       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8167       ;;
8168     mingw*)
8169       # MinGW DLLs use traditional 'lib' prefix
8170       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8171       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8172       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8173         # It is most probably a Windows format PATH printed by
8174         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8175         # path with ; separators, and with drive letters. We can handle the
8176         # drive letters (cygwin fileutils understands them), so leave them,
8177         # especially as we might pass files found there to a mingw objdump,
8178         # which wouldn't understand a cygwinified path. Ahh.
8179         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8180       else
8181         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8182       fi
8183       ;;
8184     pw32*)
8185       # pw32 DLLs use 'pw' prefix rather than 'lib'
8186       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8187       ;;
8188     esac
8189     ;;
8190
8191   *)
8192     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8193     ;;
8194   esac
8195   dynamic_linker='Win32 ld.exe'
8196   # FIXME: first we should search . and the directory the executable is in
8197   shlibpath_var=PATH
8198   ;;
8199
8200 darwin* | rhapsody*)
8201   dynamic_linker="$host_os dyld"
8202   version_type=darwin
8203   need_lib_prefix=no
8204   need_version=no
8205   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8206   soname_spec='${libname}${release}${major}$shared_ext'
8207   shlibpath_overrides_runpath=yes
8208   shlibpath_var=DYLD_LIBRARY_PATH
8209   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8210   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8211   if test "$GCC" = yes; then
8212     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8213   else
8214     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8215   fi
8216   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8217   ;;
8218
8219 dgux*)
8220   version_type=linux
8221   need_lib_prefix=no
8222   need_version=no
8223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8224   soname_spec='${libname}${release}${shared_ext}$major'
8225   shlibpath_var=LD_LIBRARY_PATH
8226   ;;
8227
8228 freebsd1*)
8229   dynamic_linker=no
8230   ;;
8231
8232 kfreebsd*-gnu)
8233   version_type=linux
8234   need_lib_prefix=no
8235   need_version=no
8236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8237   soname_spec='${libname}${release}${shared_ext}$major'
8238   shlibpath_var=LD_LIBRARY_PATH
8239   shlibpath_overrides_runpath=no
8240   hardcode_into_libs=yes
8241   dynamic_linker='GNU ld.so'
8242   ;;
8243
8244 freebsd*)
8245   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8246   version_type=freebsd-$objformat
8247   case $version_type in
8248     freebsd-elf*)
8249       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8250       need_version=no
8251       need_lib_prefix=no
8252       ;;
8253     freebsd-*)
8254       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8255       need_version=yes
8256       ;;
8257   esac
8258   shlibpath_var=LD_LIBRARY_PATH
8259   case $host_os in
8260   freebsd2*)
8261     shlibpath_overrides_runpath=yes
8262     ;;
8263   freebsd3.01* | freebsdelf3.01*)
8264     shlibpath_overrides_runpath=yes
8265     hardcode_into_libs=yes
8266     ;;
8267   *) # from 3.2 on
8268     shlibpath_overrides_runpath=no
8269     hardcode_into_libs=yes
8270     ;;
8271   esac
8272   ;;
8273
8274 gnu*)
8275   version_type=linux
8276   need_lib_prefix=no
8277   need_version=no
8278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8279   soname_spec='${libname}${release}${shared_ext}$major'
8280   shlibpath_var=LD_LIBRARY_PATH
8281   hardcode_into_libs=yes
8282   ;;
8283
8284 hpux9* | hpux10* | hpux11*)
8285   # Give a soname corresponding to the major version so that dld.sl refuses to
8286   # link against other versions.
8287   version_type=sunos
8288   need_lib_prefix=no
8289   need_version=no
8290   case "$host_cpu" in
8291   ia64*)
8292     shrext_cmds='.so'
8293     hardcode_into_libs=yes
8294     dynamic_linker="$host_os dld.so"
8295     shlibpath_var=LD_LIBRARY_PATH
8296     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
8300       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8301     else
8302       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8303     fi
8304     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8305     ;;
8306    hppa*64*)
8307      shrext_cmds='.sl'
8308      hardcode_into_libs=yes
8309      dynamic_linker="$host_os dld.sl"
8310      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8311      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8312      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8313      soname_spec='${libname}${release}${shared_ext}$major'
8314      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8315      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8316      ;;
8317    *)
8318     shrext_cmds='.sl'
8319     dynamic_linker="$host_os dld.sl"
8320     shlibpath_var=SHLIB_PATH
8321     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8323     soname_spec='${libname}${release}${shared_ext}$major'
8324     ;;
8325   esac
8326   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8327   postinstall_cmds='chmod 555 $lib'
8328   ;;
8329
8330 irix5* | irix6* | nonstopux*)
8331   case $host_os in
8332     nonstopux*) version_type=nonstopux ;;
8333     *)
8334         if test "$lt_cv_prog_gnu_ld" = yes; then
8335                 version_type=linux
8336         else
8337                 version_type=irix
8338         fi ;;
8339   esac
8340   need_lib_prefix=no
8341   need_version=no
8342   soname_spec='${libname}${release}${shared_ext}$major'
8343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8344   case $host_os in
8345   irix5* | nonstopux*)
8346     libsuff= shlibsuff=
8347     ;;
8348   *)
8349     case $LD in # libtool.m4 will add one of these switches to LD
8350     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8351       libsuff= shlibsuff= libmagic=32-bit;;
8352     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8353       libsuff=32 shlibsuff=N32 libmagic=N32;;
8354     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8355       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8356     *) libsuff= shlibsuff= libmagic=never-match;;
8357     esac
8358     ;;
8359   esac
8360   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8361   shlibpath_overrides_runpath=no
8362   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8363   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8364   hardcode_into_libs=yes
8365   ;;
8366
8367 # No shared lib support for Linux oldld, aout, or coff.
8368 linux*oldld* | linux*aout* | linux*coff*)
8369   dynamic_linker=no
8370   ;;
8371
8372 # This must be Linux ELF.
8373 linux*)
8374   version_type=linux
8375   need_lib_prefix=no
8376   need_version=no
8377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8378   soname_spec='${libname}${release}${shared_ext}$major'
8379   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8380   shlibpath_var=LD_LIBRARY_PATH
8381   shlibpath_overrides_runpath=no
8382   # This implies no fast_install, which is unacceptable.
8383   # Some rework will be needed to allow for fast_install
8384   # before this can be enabled.
8385   hardcode_into_libs=yes
8386
8387   # Append ld.so.conf contents to the search path
8388   if test -f /etc/ld.so.conf; then
8389     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8390     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8391   fi
8392
8393   # We used to test for /lib/ld.so.1 and disable shared libraries on
8394   # powerpc, because MkLinux only supported shared libraries with the
8395   # GNU dynamic linker.  Since this was broken with cross compilers,
8396   # most powerpc-linux boxes support dynamic linking these days and
8397   # people can always --disable-shared, the test was removed, and we
8398   # assume the GNU/Linux dynamic linker is in use.
8399   dynamic_linker='GNU/Linux ld.so'
8400   ;;
8401
8402 knetbsd*-gnu)
8403   version_type=linux
8404   need_lib_prefix=no
8405   need_version=no
8406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8407   soname_spec='${libname}${release}${shared_ext}$major'
8408   shlibpath_var=LD_LIBRARY_PATH
8409   shlibpath_overrides_runpath=no
8410   hardcode_into_libs=yes
8411   dynamic_linker='GNU ld.so'
8412   ;;
8413
8414 netbsd*)
8415   version_type=sunos
8416   need_lib_prefix=no
8417   need_version=no
8418   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8420     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8421     dynamic_linker='NetBSD (a.out) ld.so'
8422   else
8423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8424     soname_spec='${libname}${release}${shared_ext}$major'
8425     dynamic_linker='NetBSD ld.elf_so'
8426   fi
8427   shlibpath_var=LD_LIBRARY_PATH
8428   shlibpath_overrides_runpath=yes
8429   hardcode_into_libs=yes
8430   ;;
8431
8432 newsos6)
8433   version_type=linux
8434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8435   shlibpath_var=LD_LIBRARY_PATH
8436   shlibpath_overrides_runpath=yes
8437   ;;
8438
8439 nto-qnx*)
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   shlibpath_overrides_runpath=yes
8447   ;;
8448
8449 openbsd*)
8450   version_type=sunos
8451   need_lib_prefix=no
8452   need_version=no
8453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8454   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8455   shlibpath_var=LD_LIBRARY_PATH
8456   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8457     case $host_os in
8458       openbsd2.[89] | openbsd2.[89].*)
8459         shlibpath_overrides_runpath=no
8460         ;;
8461       *)
8462         shlibpath_overrides_runpath=yes
8463         ;;
8464       esac
8465   else
8466     shlibpath_overrides_runpath=yes
8467   fi
8468   ;;
8469
8470 os2*)
8471   libname_spec='$name'
8472   shrext_cmds=".dll"
8473   need_lib_prefix=no
8474   library_names_spec='$libname${shared_ext} $libname.a'
8475   dynamic_linker='OS/2 ld.exe'
8476   shlibpath_var=LIBPATH
8477   ;;
8478
8479 osf3* | osf4* | osf5*)
8480   version_type=osf
8481   need_lib_prefix=no
8482   need_version=no
8483   soname_spec='${libname}${release}${shared_ext}$major'
8484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8485   shlibpath_var=LD_LIBRARY_PATH
8486   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8487   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8488   ;;
8489
8490 sco3.2v5*)
8491   version_type=osf
8492   soname_spec='${libname}${release}${shared_ext}$major'
8493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8494   shlibpath_var=LD_LIBRARY_PATH
8495   ;;
8496
8497 solaris*)
8498   version_type=linux
8499   need_lib_prefix=no
8500   need_version=no
8501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8502   soname_spec='${libname}${release}${shared_ext}$major'
8503   shlibpath_var=LD_LIBRARY_PATH
8504   shlibpath_overrides_runpath=yes
8505   hardcode_into_libs=yes
8506   # ldd complains unless libraries are executable
8507   postinstall_cmds='chmod +x $lib'
8508   ;;
8509
8510 sunos4*)
8511   version_type=sunos
8512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8513   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8514   shlibpath_var=LD_LIBRARY_PATH
8515   shlibpath_overrides_runpath=yes
8516   if test "$with_gnu_ld" = yes; then
8517     need_lib_prefix=no
8518   fi
8519   need_version=yes
8520   ;;
8521
8522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8523   version_type=linux
8524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8525   soname_spec='${libname}${release}${shared_ext}$major'
8526   shlibpath_var=LD_LIBRARY_PATH
8527   case $host_vendor in
8528     sni)
8529       shlibpath_overrides_runpath=no
8530       need_lib_prefix=no
8531       export_dynamic_flag_spec='${wl}-Blargedynsym'
8532       runpath_var=LD_RUN_PATH
8533       ;;
8534     siemens)
8535       need_lib_prefix=no
8536       ;;
8537     motorola)
8538       need_lib_prefix=no
8539       need_version=no
8540       shlibpath_overrides_runpath=no
8541       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8542       ;;
8543   esac
8544   ;;
8545
8546 sysv4*MP*)
8547   if test -d /usr/nec ;then
8548     version_type=linux
8549     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8550     soname_spec='$libname${shared_ext}.$major'
8551     shlibpath_var=LD_LIBRARY_PATH
8552   fi
8553   ;;
8554
8555 uts4*)
8556   version_type=linux
8557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558   soname_spec='${libname}${release}${shared_ext}$major'
8559   shlibpath_var=LD_LIBRARY_PATH
8560   ;;
8561
8562 *)
8563   dynamic_linker=no
8564   ;;
8565 esac
8566 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8567 echo "${ECHO_T}$dynamic_linker" >&6
8568 test "$dynamic_linker" = no && can_build_shared=no
8569
8570 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8572 hardcode_action=
8573 if test -n "$hardcode_libdir_flag_spec" || \
8574    test -n "$runpath_var" || \
8575    test "X$hardcode_automatic" = "Xyes" ; then
8576
8577   # We can hardcode non-existant directories.
8578   if test "$hardcode_direct" != no &&
8579      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8580      # have to relink, otherwise we might link with an installed library
8581      # when we should be linking with a yet-to-be-installed one
8582      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8583      test "$hardcode_minus_L" != no; then
8584     # Linking always hardcodes the temporary library directory.
8585     hardcode_action=relink
8586   else
8587     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8588     hardcode_action=immediate
8589   fi
8590 else
8591   # We cannot hardcode anything, or else we can only hardcode existing
8592   # directories.
8593   hardcode_action=unsupported
8594 fi
8595 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8596 echo "${ECHO_T}$hardcode_action" >&6
8597
8598 if test "$hardcode_action" = relink; then
8599   # Fast installation is not supported
8600   enable_fast_install=no
8601 elif test "$shlibpath_overrides_runpath" = yes ||
8602      test "$enable_shared" = no; then
8603   # Fast installation is not necessary
8604   enable_fast_install=needless
8605 fi
8606
8607 striplib=
8608 old_striplib=
8609 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8612   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8613   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8614   echo "$as_me:$LINENO: result: yes" >&5
8615 echo "${ECHO_T}yes" >&6
8616 else
8617 # FIXME - insert some real tests, host_os isn't really good enough
8618   case $host_os in
8619    darwin*)
8620        if test -n "$STRIP" ; then
8621          striplib="$STRIP -x"
8622          echo "$as_me:$LINENO: result: yes" >&5
8623 echo "${ECHO_T}yes" >&6
8624        else
8625   echo "$as_me:$LINENO: result: no" >&5
8626 echo "${ECHO_T}no" >&6
8627 fi
8628        ;;
8629    *)
8630   echo "$as_me:$LINENO: result: no" >&5
8631 echo "${ECHO_T}no" >&6
8632     ;;
8633   esac
8634 fi
8635
8636 if test "x$enable_dlopen" != xyes; then
8637   enable_dlopen=unknown
8638   enable_dlopen_self=unknown
8639   enable_dlopen_self_static=unknown
8640 else
8641   lt_cv_dlopen=no
8642   lt_cv_dlopen_libs=
8643
8644   case $host_os in
8645   beos*)
8646     lt_cv_dlopen="load_add_on"
8647     lt_cv_dlopen_libs=
8648     lt_cv_dlopen_self=yes
8649     ;;
8650
8651   mingw* | pw32*)
8652     lt_cv_dlopen="LoadLibrary"
8653     lt_cv_dlopen_libs=
8654    ;;
8655
8656   cygwin*)
8657     lt_cv_dlopen="dlopen"
8658     lt_cv_dlopen_libs=
8659    ;;
8660
8661   darwin*)
8662   # if libdl is installed we need to link against it
8663     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8666   echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668   ac_check_lib_save_LIBS=$LIBS
8669 LIBS="-ldl  $LIBS"
8670 cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h.  */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h.  */
8676
8677 /* Override any gcc2 internal prototype to avoid an error.  */
8678 #ifdef __cplusplus
8679 extern "C"
8680 #endif
8681 /* We use char because int might match the return type of a gcc2
8682    builtin and then its argument prototype would still apply.  */
8683 char dlopen ();
8684 int
8685 main ()
8686 {
8687 dlopen ();
8688   ;
8689   return 0;
8690 }
8691 _ACEOF
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8694   (eval $ac_link) 2>conftest.er1
8695   ac_status=$?
8696   grep -v '^ *+' conftest.er1 >conftest.err
8697   rm -f conftest.er1
8698   cat conftest.err >&5
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); } &&
8701          { ac_try='test -z "$ac_c_werror_flag"
8702                          || test ! -s conftest.err'
8703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704   (eval $ac_try) 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); }; } &&
8708          { ac_try='test -s conftest$ac_exeext'
8709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710   (eval $ac_try) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; }; then
8714   ac_cv_lib_dl_dlopen=yes
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719 ac_cv_lib_dl_dlopen=no
8720 fi
8721 rm -f conftest.err conftest.$ac_objext \
8722       conftest$ac_exeext conftest.$ac_ext
8723 LIBS=$ac_check_lib_save_LIBS
8724 fi
8725 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8726 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8727 if test $ac_cv_lib_dl_dlopen = yes; then
8728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8729 else
8730
8731     lt_cv_dlopen="dyld"
8732     lt_cv_dlopen_libs=
8733     lt_cv_dlopen_self=yes
8734
8735 fi
8736
8737    ;;
8738
8739   *)
8740     echo "$as_me:$LINENO: checking for shl_load" >&5
8741 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8742 if test "${ac_cv_func_shl_load+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8753 #define shl_load innocuous_shl_load
8754
8755 /* System header to define __stub macros and hopefully few prototypes,
8756     which can conflict with char shl_load (); below.
8757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8758     <limits.h> exists even on freestanding compilers.  */
8759
8760 #ifdef __STDC__
8761 # include <limits.h>
8762 #else
8763 # include <assert.h>
8764 #endif
8765
8766 #undef shl_load
8767
8768 /* Override any gcc2 internal prototype to avoid an error.  */
8769 #ifdef __cplusplus
8770 extern "C"
8771 {
8772 #endif
8773 /* We use char because int might match the return type of a gcc2
8774    builtin and then its argument prototype would still apply.  */
8775 char shl_load ();
8776 /* The GNU C library defines this for functions which it implements
8777     to always fail with ENOSYS.  Some functions are actually named
8778     something starting with __ and the normal name is an alias.  */
8779 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8780 choke me
8781 #else
8782 char (*f) () = shl_load;
8783 #endif
8784 #ifdef __cplusplus
8785 }
8786 #endif
8787
8788 int
8789 main ()
8790 {
8791 return f != shl_load;
8792   ;
8793   return 0;
8794 }
8795 _ACEOF
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8798   (eval $ac_link) 2>conftest.er1
8799   ac_status=$?
8800   grep -v '^ *+' conftest.er1 >conftest.err
8801   rm -f conftest.er1
8802   cat conftest.err >&5
8803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804   (exit $ac_status); } &&
8805          { ac_try='test -z "$ac_c_werror_flag"
8806                          || test ! -s conftest.err'
8807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808   (eval $ac_try) 2>&5
8809   ac_status=$?
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); }; } &&
8812          { ac_try='test -s conftest$ac_exeext'
8813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814   (eval $ac_try) 2>&5
8815   ac_status=$?
8816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); }; }; then
8818   ac_cv_func_shl_load=yes
8819 else
8820   echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8822
8823 ac_cv_func_shl_load=no
8824 fi
8825 rm -f conftest.err conftest.$ac_objext \
8826       conftest$ac_exeext conftest.$ac_ext
8827 fi
8828 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8829 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8830 if test $ac_cv_func_shl_load = yes; then
8831   lt_cv_dlopen="shl_load"
8832 else
8833   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8834 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8835 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8836   echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838   ac_check_lib_save_LIBS=$LIBS
8839 LIBS="-ldld  $LIBS"
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h.  */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h.  */
8846
8847 /* Override any gcc2 internal prototype to avoid an error.  */
8848 #ifdef __cplusplus
8849 extern "C"
8850 #endif
8851 /* We use char because int might match the return type of a gcc2
8852    builtin and then its argument prototype would still apply.  */
8853 char shl_load ();
8854 int
8855 main ()
8856 {
8857 shl_load ();
8858   ;
8859   return 0;
8860 }
8861 _ACEOF
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864   (eval $ac_link) 2>conftest.er1
8865   ac_status=$?
8866   grep -v '^ *+' conftest.er1 >conftest.err
8867   rm -f conftest.er1
8868   cat conftest.err >&5
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); } &&
8871          { ac_try='test -z "$ac_c_werror_flag"
8872                          || test ! -s conftest.err'
8873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874   (eval $ac_try) 2>&5
8875   ac_status=$?
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); }; } &&
8878          { ac_try='test -s conftest$ac_exeext'
8879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880   (eval $ac_try) 2>&5
8881   ac_status=$?
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); }; }; then
8884   ac_cv_lib_dld_shl_load=yes
8885 else
8886   echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889 ac_cv_lib_dld_shl_load=no
8890 fi
8891 rm -f conftest.err conftest.$ac_objext \
8892       conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8894 fi
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8896 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8897 if test $ac_cv_lib_dld_shl_load = yes; then
8898   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8899 else
8900   echo "$as_me:$LINENO: checking for dlopen" >&5
8901 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8902 if test "${ac_cv_func_dlopen+set}" = set; then
8903   echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8905   cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8913 #define dlopen innocuous_dlopen
8914
8915 /* System header to define __stub macros and hopefully few prototypes,
8916     which can conflict with char dlopen (); below.
8917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8918     <limits.h> exists even on freestanding compilers.  */
8919
8920 #ifdef __STDC__
8921 # include <limits.h>
8922 #else
8923 # include <assert.h>
8924 #endif
8925
8926 #undef dlopen
8927
8928 /* Override any gcc2 internal prototype to avoid an error.  */
8929 #ifdef __cplusplus
8930 extern "C"
8931 {
8932 #endif
8933 /* We use char because int might match the return type of a gcc2
8934    builtin and then its argument prototype would still apply.  */
8935 char dlopen ();
8936 /* The GNU C library defines this for functions which it implements
8937     to always fail with ENOSYS.  Some functions are actually named
8938     something starting with __ and the normal name is an alias.  */
8939 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8940 choke me
8941 #else
8942 char (*f) () = dlopen;
8943 #endif
8944 #ifdef __cplusplus
8945 }
8946 #endif
8947
8948 int
8949 main ()
8950 {
8951 return f != dlopen;
8952   ;
8953   return 0;
8954 }
8955 _ACEOF
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8958   (eval $ac_link) 2>conftest.er1
8959   ac_status=$?
8960   grep -v '^ *+' conftest.er1 >conftest.err
8961   rm -f conftest.er1
8962   cat conftest.err >&5
8963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   (exit $ac_status); } &&
8965          { ac_try='test -z "$ac_c_werror_flag"
8966                          || test ! -s conftest.err'
8967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968   (eval $ac_try) 2>&5
8969   ac_status=$?
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); }; } &&
8972          { ac_try='test -s conftest$ac_exeext'
8973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974   (eval $ac_try) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); }; }; then
8978   ac_cv_func_dlopen=yes
8979 else
8980   echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8982
8983 ac_cv_func_dlopen=no
8984 fi
8985 rm -f conftest.err conftest.$ac_objext \
8986       conftest$ac_exeext conftest.$ac_ext
8987 fi
8988 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8989 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8990 if test $ac_cv_func_dlopen = yes; then
8991   lt_cv_dlopen="dlopen"
8992 else
8993   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8996   echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998   ac_check_lib_save_LIBS=$LIBS
8999 LIBS="-ldl  $LIBS"
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h.  */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h.  */
9006
9007 /* Override any gcc2 internal prototype to avoid an error.  */
9008 #ifdef __cplusplus
9009 extern "C"
9010 #endif
9011 /* We use char because int might match the return type of a gcc2
9012    builtin and then its argument prototype would still apply.  */
9013 char dlopen ();
9014 int
9015 main ()
9016 {
9017 dlopen ();
9018   ;
9019   return 0;
9020 }
9021 _ACEOF
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9024   (eval $ac_link) 2>conftest.er1
9025   ac_status=$?
9026   grep -v '^ *+' conftest.er1 >conftest.err
9027   rm -f conftest.er1
9028   cat conftest.err >&5
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); } &&
9031          { ac_try='test -z "$ac_c_werror_flag"
9032                          || test ! -s conftest.err'
9033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034   (eval $ac_try) 2>&5
9035   ac_status=$?
9036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037   (exit $ac_status); }; } &&
9038          { ac_try='test -s conftest$ac_exeext'
9039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040   (eval $ac_try) 2>&5
9041   ac_status=$?
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); }; }; then
9044   ac_cv_lib_dl_dlopen=yes
9045 else
9046   echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049 ac_cv_lib_dl_dlopen=no
9050 fi
9051 rm -f conftest.err conftest.$ac_objext \
9052       conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_lib_save_LIBS
9054 fi
9055 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9056 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9057 if test $ac_cv_lib_dl_dlopen = yes; then
9058   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9059 else
9060   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9061 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9062 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9063   echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065   ac_check_lib_save_LIBS=$LIBS
9066 LIBS="-lsvld  $LIBS"
9067 cat >conftest.$ac_ext <<_ACEOF
9068 /* confdefs.h.  */
9069 _ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h.  */
9073
9074 /* Override any gcc2 internal prototype to avoid an error.  */
9075 #ifdef __cplusplus
9076 extern "C"
9077 #endif
9078 /* We use char because int might match the return type of a gcc2
9079    builtin and then its argument prototype would still apply.  */
9080 char dlopen ();
9081 int
9082 main ()
9083 {
9084 dlopen ();
9085   ;
9086   return 0;
9087 }
9088 _ACEOF
9089 rm -f conftest.$ac_objext conftest$ac_exeext
9090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9091   (eval $ac_link) 2>conftest.er1
9092   ac_status=$?
9093   grep -v '^ *+' conftest.er1 >conftest.err
9094   rm -f conftest.er1
9095   cat conftest.err >&5
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); } &&
9098          { ac_try='test -z "$ac_c_werror_flag"
9099                          || test ! -s conftest.err'
9100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101   (eval $ac_try) 2>&5
9102   ac_status=$?
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); }; } &&
9105          { ac_try='test -s conftest$ac_exeext'
9106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107   (eval $ac_try) 2>&5
9108   ac_status=$?
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); }; }; then
9111   ac_cv_lib_svld_dlopen=yes
9112 else
9113   echo "$as_me: failed program was:" >&5
9114 sed 's/^/| /' conftest.$ac_ext >&5
9115
9116 ac_cv_lib_svld_dlopen=no
9117 fi
9118 rm -f conftest.err conftest.$ac_objext \
9119       conftest$ac_exeext conftest.$ac_ext
9120 LIBS=$ac_check_lib_save_LIBS
9121 fi
9122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9124 if test $ac_cv_lib_svld_dlopen = yes; then
9125   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9126 else
9127   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9130   echo $ECHO_N "(cached) $ECHO_C" >&6
9131 else
9132   ac_check_lib_save_LIBS=$LIBS
9133 LIBS="-ldld  $LIBS"
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h.  */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h.  */
9140
9141 /* Override any gcc2 internal prototype to avoid an error.  */
9142 #ifdef __cplusplus
9143 extern "C"
9144 #endif
9145 /* We use char because int might match the return type of a gcc2
9146    builtin and then its argument prototype would still apply.  */
9147 char dld_link ();
9148 int
9149 main ()
9150 {
9151 dld_link ();
9152   ;
9153   return 0;
9154 }
9155 _ACEOF
9156 rm -f conftest.$ac_objext conftest$ac_exeext
9157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9158   (eval $ac_link) 2>conftest.er1
9159   ac_status=$?
9160   grep -v '^ *+' conftest.er1 >conftest.err
9161   rm -f conftest.er1
9162   cat conftest.err >&5
9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); } &&
9165          { ac_try='test -z "$ac_c_werror_flag"
9166                          || test ! -s conftest.err'
9167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168   (eval $ac_try) 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); }; } &&
9172          { ac_try='test -s conftest$ac_exeext'
9173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174   (eval $ac_try) 2>&5
9175   ac_status=$?
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); }; }; then
9178   ac_cv_lib_dld_dld_link=yes
9179 else
9180   echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183 ac_cv_lib_dld_dld_link=no
9184 fi
9185 rm -f conftest.err conftest.$ac_objext \
9186       conftest$ac_exeext conftest.$ac_ext
9187 LIBS=$ac_check_lib_save_LIBS
9188 fi
9189 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9190 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9191 if test $ac_cv_lib_dld_dld_link = yes; then
9192   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9193 fi
9194
9195
9196 fi
9197
9198
9199 fi
9200
9201
9202 fi
9203
9204
9205 fi
9206
9207
9208 fi
9209
9210     ;;
9211   esac
9212
9213   if test "x$lt_cv_dlopen" != xno; then
9214     enable_dlopen=yes
9215   else
9216     enable_dlopen=no
9217   fi
9218
9219   case $lt_cv_dlopen in
9220   dlopen)
9221     save_CPPFLAGS="$CPPFLAGS"
9222     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9223
9224     save_LDFLAGS="$LDFLAGS"
9225     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9226
9227     save_LIBS="$LIBS"
9228     LIBS="$lt_cv_dlopen_libs $LIBS"
9229
9230     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9231 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9232 if test "${lt_cv_dlopen_self+set}" = set; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235           if test "$cross_compiling" = yes; then :
9236   lt_cv_dlopen_self=cross
9237 else
9238   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9239   lt_status=$lt_dlunknown
9240   cat > conftest.$ac_ext <<EOF
9241 #line 9241 "configure"
9242 #include "confdefs.h"
9243
9244 #if HAVE_DLFCN_H
9245 #include <dlfcn.h>
9246 #endif
9247
9248 #include <stdio.h>
9249
9250 #ifdef RTLD_GLOBAL
9251 #  define LT_DLGLOBAL           RTLD_GLOBAL
9252 #else
9253 #  ifdef DL_GLOBAL
9254 #    define LT_DLGLOBAL         DL_GLOBAL
9255 #  else
9256 #    define LT_DLGLOBAL         0
9257 #  endif
9258 #endif
9259
9260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9261    find out it does not work in some platform. */
9262 #ifndef LT_DLLAZY_OR_NOW
9263 #  ifdef RTLD_LAZY
9264 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9265 #  else
9266 #    ifdef DL_LAZY
9267 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9268 #    else
9269 #      ifdef RTLD_NOW
9270 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9271 #      else
9272 #        ifdef DL_NOW
9273 #          define LT_DLLAZY_OR_NOW      DL_NOW
9274 #        else
9275 #          define LT_DLLAZY_OR_NOW      0
9276 #        endif
9277 #      endif
9278 #    endif
9279 #  endif
9280 #endif
9281
9282 #ifdef __cplusplus
9283 extern "C" void exit (int);
9284 #endif
9285
9286 void fnord() { int i=42;}
9287 int main ()
9288 {
9289   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9290   int status = $lt_dlunknown;
9291
9292   if (self)
9293     {
9294       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9295       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9296       /* dlclose (self); */
9297     }
9298
9299     exit (status);
9300 }
9301 EOF
9302   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303   (eval $ac_link) 2>&5
9304   ac_status=$?
9305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9307     (./conftest; exit; ) 2>/dev/null
9308     lt_status=$?
9309     case x$lt_status in
9310       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9311       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9312       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9313     esac
9314   else :
9315     # compilation failed
9316     lt_cv_dlopen_self=no
9317   fi
9318 fi
9319 rm -fr conftest*
9320
9321
9322 fi
9323 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9324 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9325
9326     if test "x$lt_cv_dlopen_self" = xyes; then
9327       LDFLAGS="$LDFLAGS $link_static_flag"
9328       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9329 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9330 if test "${lt_cv_dlopen_self_static+set}" = set; then
9331   echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333           if test "$cross_compiling" = yes; then :
9334   lt_cv_dlopen_self_static=cross
9335 else
9336   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9337   lt_status=$lt_dlunknown
9338   cat > conftest.$ac_ext <<EOF
9339 #line 9339 "configure"
9340 #include "confdefs.h"
9341
9342 #if HAVE_DLFCN_H
9343 #include <dlfcn.h>
9344 #endif
9345
9346 #include <stdio.h>
9347
9348 #ifdef RTLD_GLOBAL
9349 #  define LT_DLGLOBAL           RTLD_GLOBAL
9350 #else
9351 #  ifdef DL_GLOBAL
9352 #    define LT_DLGLOBAL         DL_GLOBAL
9353 #  else
9354 #    define LT_DLGLOBAL         0
9355 #  endif
9356 #endif
9357
9358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9359    find out it does not work in some platform. */
9360 #ifndef LT_DLLAZY_OR_NOW
9361 #  ifdef RTLD_LAZY
9362 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9363 #  else
9364 #    ifdef DL_LAZY
9365 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9366 #    else
9367 #      ifdef RTLD_NOW
9368 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9369 #      else
9370 #        ifdef DL_NOW
9371 #          define LT_DLLAZY_OR_NOW      DL_NOW
9372 #        else
9373 #          define LT_DLLAZY_OR_NOW      0
9374 #        endif
9375 #      endif
9376 #    endif
9377 #  endif
9378 #endif
9379
9380 #ifdef __cplusplus
9381 extern "C" void exit (int);
9382 #endif
9383
9384 void fnord() { int i=42;}
9385 int main ()
9386 {
9387   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9388   int status = $lt_dlunknown;
9389
9390   if (self)
9391     {
9392       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9393       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9394       /* dlclose (self); */
9395     }
9396
9397     exit (status);
9398 }
9399 EOF
9400   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401   (eval $ac_link) 2>&5
9402   ac_status=$?
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9405     (./conftest; exit; ) 2>/dev/null
9406     lt_status=$?
9407     case x$lt_status in
9408       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9409       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9410       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9411     esac
9412   else :
9413     # compilation failed
9414     lt_cv_dlopen_self_static=no
9415   fi
9416 fi
9417 rm -fr conftest*
9418
9419
9420 fi
9421 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9422 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9423     fi
9424
9425     CPPFLAGS="$save_CPPFLAGS"
9426     LDFLAGS="$save_LDFLAGS"
9427     LIBS="$save_LIBS"
9428     ;;
9429   esac
9430
9431   case $lt_cv_dlopen_self in
9432   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9433   *) enable_dlopen_self=unknown ;;
9434   esac
9435
9436   case $lt_cv_dlopen_self_static in
9437   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9438   *) enable_dlopen_self_static=unknown ;;
9439   esac
9440 fi
9441
9442
9443 # Report which librarie types wil actually be built
9444 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9445 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9446 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9447 echo "${ECHO_T}$can_build_shared" >&6
9448
9449 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9450 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9451 test "$can_build_shared" = "no" && enable_shared=no
9452
9453 # On AIX, shared libraries and static libraries use the same namespace, and
9454 # are all built from PIC.
9455 case "$host_os" in
9456 aix3*)
9457   test "$enable_shared" = yes && enable_static=no
9458   if test -n "$RANLIB"; then
9459     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9460     postinstall_cmds='$RANLIB $lib'
9461   fi
9462   ;;
9463
9464 aix4* | aix5*)
9465   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9466     test "$enable_shared" = yes && enable_static=no
9467   fi
9468     ;;
9469 esac
9470 echo "$as_me:$LINENO: result: $enable_shared" >&5
9471 echo "${ECHO_T}$enable_shared" >&6
9472
9473 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9475 # Make sure either enable_shared or enable_static is yes.
9476 test "$enable_shared" = yes || enable_static=yes
9477 echo "$as_me:$LINENO: result: $enable_static" >&5
9478 echo "${ECHO_T}$enable_static" >&6
9479
9480 # The else clause should only fire when bootstrapping the
9481 # libtool distribution, otherwise you forgot to ship ltmain.sh
9482 # with your package, and you will get complaints that there are
9483 # no rules to generate ltmain.sh.
9484 if test -f "$ltmain"; then
9485   # See if we are running on zsh, and set the options which allow our commands through
9486   # without removal of \ escapes.
9487   if test -n "${ZSH_VERSION+set}" ; then
9488     setopt NO_GLOB_SUBST
9489   fi
9490   # Now quote all the things that may contain metacharacters while being
9491   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9492   # variables and quote the copies for generation of the libtool script.
9493   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9494     SED SHELL STRIP \
9495     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9496     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9497     deplibs_check_method reload_flag reload_cmds need_locks \
9498     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9499     lt_cv_sys_global_symbol_to_c_name_address \
9500     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9501     old_postinstall_cmds old_postuninstall_cmds \
9502     compiler \
9503     CC \
9504     LD \
9505     lt_prog_compiler_wl \
9506     lt_prog_compiler_pic \
9507     lt_prog_compiler_static \
9508     lt_prog_compiler_no_builtin_flag \
9509     export_dynamic_flag_spec \
9510     thread_safe_flag_spec \
9511     whole_archive_flag_spec \
9512     enable_shared_with_static_runtimes \
9513     old_archive_cmds \
9514     old_archive_from_new_cmds \
9515     predep_objects \
9516     postdep_objects \
9517     predeps \
9518     postdeps \
9519     compiler_lib_search_path \
9520     archive_cmds \
9521     archive_expsym_cmds \
9522     postinstall_cmds \
9523     postuninstall_cmds \
9524     old_archive_from_expsyms_cmds \
9525     allow_undefined_flag \
9526     no_undefined_flag \
9527     export_symbols_cmds \
9528     hardcode_libdir_flag_spec \
9529     hardcode_libdir_flag_spec_ld \
9530     hardcode_libdir_separator \
9531     hardcode_automatic \
9532     module_cmds \
9533     module_expsym_cmds \
9534     lt_cv_prog_compiler_c_o \
9535     exclude_expsyms \
9536     include_expsyms; do
9537
9538     case $var in
9539     old_archive_cmds | \
9540     old_archive_from_new_cmds | \
9541     archive_cmds | \
9542     archive_expsym_cmds | \
9543     module_cmds | \
9544     module_expsym_cmds | \
9545     old_archive_from_expsyms_cmds | \
9546     export_symbols_cmds | \
9547     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9548     postinstall_cmds | postuninstall_cmds | \
9549     old_postinstall_cmds | old_postuninstall_cmds | \
9550     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9551       # Double-quote double-evaled strings.
9552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9553       ;;
9554     *)
9555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9556       ;;
9557     esac
9558   done
9559
9560   case $lt_echo in
9561   *'\$0 --fallback-echo"')
9562     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9563     ;;
9564   esac
9565
9566 cfgfile="${ofile}T"
9567   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9568   $rm -f "$cfgfile"
9569   { echo "$as_me:$LINENO: creating $ofile" >&5
9570 echo "$as_me: creating $ofile" >&6;}
9571
9572   cat <<__EOF__ >> "$cfgfile"
9573 #! $SHELL
9574
9575 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9578 #
9579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9580 # Free Software Foundation, Inc.
9581 #
9582 # This file is part of GNU Libtool:
9583 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9584 #
9585 # This program is free software; you can redistribute it and/or modify
9586 # it under the terms of the GNU General Public License as published by
9587 # the Free Software Foundation; either version 2 of the License, or
9588 # (at your option) any later version.
9589 #
9590 # This program is distributed in the hope that it will be useful, but
9591 # WITHOUT ANY WARRANTY; without even the implied warranty of
9592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9593 # General Public License for more details.
9594 #
9595 # You should have received a copy of the GNU General Public License
9596 # along with this program; if not, write to the Free Software
9597 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9598 #
9599 # As a special exception to the GNU General Public License, if you
9600 # distribute this file as part of a program that contains a
9601 # configuration script generated by Autoconf, you may include it under
9602 # the same distribution terms that you use for the rest of that program.
9603
9604 # A sed program that does not truncate output.
9605 SED=$lt_SED
9606
9607 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9608 Xsed="$SED -e s/^X//"
9609
9610 # The HP-UX ksh and POSIX shell print the target directory to stdout
9611 # if CDPATH is set.
9612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9613
9614 # The names of the tagged configurations supported by this script.
9615 available_tags=
9616
9617 # ### BEGIN LIBTOOL CONFIG
9618
9619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9620
9621 # Shell to use when invoking shell scripts.
9622 SHELL=$lt_SHELL
9623
9624 # Whether or not to build shared libraries.
9625 build_libtool_libs=$enable_shared
9626
9627 # Whether or not to build static libraries.
9628 build_old_libs=$enable_static
9629
9630 # Whether or not to add -lc for building shared libraries.
9631 build_libtool_need_lc=$archive_cmds_need_lc
9632
9633 # Whether or not to disallow shared libs when runtime libs are static
9634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9635
9636 # Whether or not to optimize for fast installation.
9637 fast_install=$enable_fast_install
9638
9639 # The host system.
9640 host_alias=$host_alias
9641 host=$host
9642
9643 # An echo program that does not interpret backslashes.
9644 echo=$lt_echo
9645
9646 # The archiver.
9647 AR=$lt_AR
9648 AR_FLAGS=$lt_AR_FLAGS
9649
9650 # A C compiler.
9651 LTCC=$lt_LTCC
9652
9653 # A language-specific compiler.
9654 CC=$lt_compiler
9655
9656 # Is the compiler the GNU C compiler?
9657 with_gcc=$GCC
9658
9659 # An ERE matcher.
9660 EGREP=$lt_EGREP
9661
9662 # The linker used to build libraries.
9663 LD=$lt_LD
9664
9665 # Whether we need hard or soft links.
9666 LN_S=$lt_LN_S
9667
9668 # A BSD-compatible nm program.
9669 NM=$lt_NM
9670
9671 # A symbol stripping program
9672 STRIP=$lt_STRIP
9673
9674 # Used to examine libraries when file_magic_cmd begins "file"
9675 MAGIC_CMD=$MAGIC_CMD
9676
9677 # Used on cygwin: DLL creation program.
9678 DLLTOOL="$DLLTOOL"
9679
9680 # Used on cygwin: object dumper.
9681 OBJDUMP="$OBJDUMP"
9682
9683 # Used on cygwin: assembler.
9684 AS="$AS"
9685
9686 # The name of the directory that contains temporary libtool files.
9687 objdir=$objdir
9688
9689 # How to create reloadable object files.
9690 reload_flag=$lt_reload_flag
9691 reload_cmds=$lt_reload_cmds
9692
9693 # How to pass a linker flag through the compiler.
9694 wl=$lt_lt_prog_compiler_wl
9695
9696 # Object file suffix (normally "o").
9697 objext="$ac_objext"
9698
9699 # Old archive suffix (normally "a").
9700 libext="$libext"
9701
9702 # Shared library suffix (normally ".so").
9703 shrext_cmds='$shrext_cmds'
9704
9705 # Executable file suffix (normally "").
9706 exeext="$exeext"
9707
9708 # Additional compiler flags for building library objects.
9709 pic_flag=$lt_lt_prog_compiler_pic
9710 pic_mode=$pic_mode
9711
9712 # What is the maximum length of a command?
9713 max_cmd_len=$lt_cv_sys_max_cmd_len
9714
9715 # Does compiler simultaneously support -c and -o options?
9716 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9717
9718 # Must we lock files when doing compilation ?
9719 need_locks=$lt_need_locks
9720
9721 # Do we need the lib prefix for modules?
9722 need_lib_prefix=$need_lib_prefix
9723
9724 # Do we need a version for libraries?
9725 need_version=$need_version
9726
9727 # Whether dlopen is supported.
9728 dlopen_support=$enable_dlopen
9729
9730 # Whether dlopen of programs is supported.
9731 dlopen_self=$enable_dlopen_self
9732
9733 # Whether dlopen of statically linked programs is supported.
9734 dlopen_self_static=$enable_dlopen_self_static
9735
9736 # Compiler flag to prevent dynamic linking.
9737 link_static_flag=$lt_lt_prog_compiler_static
9738
9739 # Compiler flag to turn off builtin functions.
9740 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9741
9742 # Compiler flag to allow reflexive dlopens.
9743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9744
9745 # Compiler flag to generate shared objects directly from archives.
9746 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9747
9748 # Compiler flag to generate thread-safe objects.
9749 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9750
9751 # Library versioning type.
9752 version_type=$version_type
9753
9754 # Format of library name prefix.
9755 libname_spec=$lt_libname_spec
9756
9757 # List of archive names.  First name is the real one, the rest are links.
9758 # The last name is the one that the linker finds with -lNAME.
9759 library_names_spec=$lt_library_names_spec
9760
9761 # The coded name of the library, if different from the real name.
9762 soname_spec=$lt_soname_spec
9763
9764 # Commands used to build and install an old-style archive.
9765 RANLIB=$lt_RANLIB
9766 old_archive_cmds=$lt_old_archive_cmds
9767 old_postinstall_cmds=$lt_old_postinstall_cmds
9768 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9769
9770 # Create an old-style archive from a shared archive.
9771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9772
9773 # Create a temporary old-style archive to link instead of a shared archive.
9774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9775
9776 # Commands used to build and install a shared archive.
9777 archive_cmds=$lt_archive_cmds
9778 archive_expsym_cmds=$lt_archive_expsym_cmds
9779 postinstall_cmds=$lt_postinstall_cmds
9780 postuninstall_cmds=$lt_postuninstall_cmds
9781
9782 # Commands used to build a loadable module (assumed same as above if empty)
9783 module_cmds=$lt_module_cmds
9784 module_expsym_cmds=$lt_module_expsym_cmds
9785
9786 # Commands to strip libraries.
9787 old_striplib=$lt_old_striplib
9788 striplib=$lt_striplib
9789
9790 # Dependencies to place before the objects being linked to create a
9791 # shared library.
9792 predep_objects=$lt_predep_objects
9793
9794 # Dependencies to place after the objects being linked to create a
9795 # shared library.
9796 postdep_objects=$lt_postdep_objects
9797
9798 # Dependencies to place before the objects being linked to create a
9799 # shared library.
9800 predeps=$lt_predeps
9801
9802 # Dependencies to place after the objects being linked to create a
9803 # shared library.
9804 postdeps=$lt_postdeps
9805
9806 # The library search path used internally by the compiler when linking
9807 # a shared library.
9808 compiler_lib_search_path=$lt_compiler_lib_search_path
9809
9810 # Method to check whether dependent libraries are shared objects.
9811 deplibs_check_method=$lt_deplibs_check_method
9812
9813 # Command to use when deplibs_check_method == file_magic.
9814 file_magic_cmd=$lt_file_magic_cmd
9815
9816 # Flag that allows shared libraries with undefined symbols to be built.
9817 allow_undefined_flag=$lt_allow_undefined_flag
9818
9819 # Flag that forces no undefined symbols.
9820 no_undefined_flag=$lt_no_undefined_flag
9821
9822 # Commands used to finish a libtool library installation in a directory.
9823 finish_cmds=$lt_finish_cmds
9824
9825 # Same as above, but a single script fragment to be evaled but not shown.
9826 finish_eval=$lt_finish_eval
9827
9828 # Take the output of nm and produce a listing of raw symbols and C names.
9829 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9830
9831 # Transform the output of nm in a proper C declaration
9832 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9833
9834 # Transform the output of nm in a C name address pair
9835 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9836
9837 # This is the shared library runtime path variable.
9838 runpath_var=$runpath_var
9839
9840 # This is the shared library path variable.
9841 shlibpath_var=$shlibpath_var
9842
9843 # Is shlibpath searched before the hard-coded library search path?
9844 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9845
9846 # How to hardcode a shared library path into an executable.
9847 hardcode_action=$hardcode_action
9848
9849 # Whether we should hardcode library paths into libraries.
9850 hardcode_into_libs=$hardcode_into_libs
9851
9852 # Flag to hardcode \$libdir into a binary during linking.
9853 # This must work even if \$libdir does not exist.
9854 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9855
9856 # If ld is used when linking, flag to hardcode \$libdir into
9857 # a binary during linking. This must work even if \$libdir does
9858 # not exist.
9859 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9860
9861 # Whether we need a single -rpath flag with a separated argument.
9862 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9863
9864 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9865 # resulting binary.
9866 hardcode_direct=$hardcode_direct
9867
9868 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9869 # resulting binary.
9870 hardcode_minus_L=$hardcode_minus_L
9871
9872 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9873 # the resulting binary.
9874 hardcode_shlibpath_var=$hardcode_shlibpath_var
9875
9876 # Set to yes if building a shared library automatically hardcodes DIR into the library
9877 # and all subsequent libraries and executables linked against it.
9878 hardcode_automatic=$hardcode_automatic
9879
9880 # Variables whose values should be saved in libtool wrapper scripts and
9881 # restored at relink time.
9882 variables_saved_for_relink="$variables_saved_for_relink"
9883
9884 # Whether libtool must link a program against all its dependency libraries.
9885 link_all_deplibs=$link_all_deplibs
9886
9887 # Compile-time system search path for libraries
9888 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9889
9890 # Run-time system search path for libraries
9891 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9892
9893 # Fix the shell variable \$srcfile for the compiler.
9894 fix_srcfile_path="$fix_srcfile_path"
9895
9896 # Set to yes if exported symbols are required.
9897 always_export_symbols=$always_export_symbols
9898
9899 # The commands to list exported symbols.
9900 export_symbols_cmds=$lt_export_symbols_cmds
9901
9902 # The commands to extract the exported symbol list from a shared archive.
9903 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9904
9905 # Symbols that should not be listed in the preloaded symbols.
9906 exclude_expsyms=$lt_exclude_expsyms
9907
9908 # Symbols that must always be exported.
9909 include_expsyms=$lt_include_expsyms
9910
9911 # ### END LIBTOOL CONFIG
9912
9913 __EOF__
9914
9915
9916   case $host_os in
9917   aix3*)
9918     cat <<\EOF >> "$cfgfile"
9919
9920 # AIX sometimes has problems with the GCC collect2 program.  For some
9921 # reason, if we set the COLLECT_NAMES environment variable, the problems
9922 # vanish in a puff of smoke.
9923 if test "X${COLLECT_NAMES+set}" != Xset; then
9924   COLLECT_NAMES=
9925   export COLLECT_NAMES
9926 fi
9927 EOF
9928     ;;
9929   esac
9930
9931   # We use sed instead of cat because bash on DJGPP gets confused if
9932   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9933   # text mode, it properly converts lines to CR/LF.  This bash problem
9934   # is reportedly fixed, but why not run on old versions too?
9935   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9936
9937   mv -f "$cfgfile" "$ofile" || \
9938     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9939   chmod +x "$ofile"
9940
9941 else
9942   # If there is no Makefile yet, we rely on a make rule to execute
9943   # `config.status --recheck' to rerun these tests and create the
9944   # libtool script then.
9945   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9946   if test -f "$ltmain_in"; then
9947     test -f Makefile && make "$ltmain"
9948   fi
9949 fi
9950
9951
9952 ac_ext=c
9953 ac_cpp='$CPP $CPPFLAGS'
9954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9957
9958 CC="$lt_save_CC"
9959
9960
9961 # Check whether --with-tags or --without-tags was given.
9962 if test "${with_tags+set}" = set; then
9963   withval="$with_tags"
9964   tagnames="$withval"
9965 fi;
9966
9967 if test -f "$ltmain" && test -n "$tagnames"; then
9968   if test ! -f "${ofile}"; then
9969     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9970 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9971   fi
9972
9973   if test -z "$LTCC"; then
9974     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9975     if test -z "$LTCC"; then
9976       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9977 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9978     else
9979       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9980 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9981     fi
9982   fi
9983
9984   # Extract list of available tagged configurations in $ofile.
9985   # Note that this assumes the entire list is on one line.
9986   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9987
9988   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9989   for tagname in $tagnames; do
9990     IFS="$lt_save_ifs"
9991     # Check whether tagname contains only valid characters
9992     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9993     "") ;;
9994     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9995 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9996    { (exit 1); exit 1; }; }
9997         ;;
9998     esac
9999
10000     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10001     then
10002       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10003 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10004    { (exit 1); exit 1; }; }
10005     fi
10006
10007     # Update the list of available tags.
10008     if test -n "$tagname"; then
10009       echo appending configuration tag \"$tagname\" to $ofile
10010
10011       case $tagname in
10012       CXX)
10013         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10014             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10015             (test "X$CXX" != "Xg++"))) ; then
10016           ac_ext=cc
10017 ac_cpp='$CXXCPP $CPPFLAGS'
10018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10021
10022
10023
10024
10025 archive_cmds_need_lc_CXX=no
10026 allow_undefined_flag_CXX=
10027 always_export_symbols_CXX=no
10028 archive_expsym_cmds_CXX=
10029 export_dynamic_flag_spec_CXX=
10030 hardcode_direct_CXX=no
10031 hardcode_libdir_flag_spec_CXX=
10032 hardcode_libdir_flag_spec_ld_CXX=
10033 hardcode_libdir_separator_CXX=
10034 hardcode_minus_L_CXX=no
10035 hardcode_automatic_CXX=no
10036 module_cmds_CXX=
10037 module_expsym_cmds_CXX=
10038 link_all_deplibs_CXX=unknown
10039 old_archive_cmds_CXX=$old_archive_cmds
10040 no_undefined_flag_CXX=
10041 whole_archive_flag_spec_CXX=
10042 enable_shared_with_static_runtimes_CXX=no
10043
10044 # Dependencies to place before and after the object being linked:
10045 predep_objects_CXX=
10046 postdep_objects_CXX=
10047 predeps_CXX=
10048 postdeps_CXX=
10049 compiler_lib_search_path_CXX=
10050
10051 # Source file extension for C++ test sources.
10052 ac_ext=cc
10053
10054 # Object file extension for compiled C++ test sources.
10055 objext=o
10056 objext_CXX=$objext
10057
10058 # Code to be used in simple compile tests
10059 lt_simple_compile_test_code="int some_variable = 0;\n"
10060
10061 # Code to be used in simple link tests
10062 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10063
10064 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10065
10066 # If no C compiler was specified, use CC.
10067 LTCC=${LTCC-"$CC"}
10068
10069 # Allow CC to be a program name with arguments.
10070 compiler=$CC
10071
10072
10073 # Allow CC to be a program name with arguments.
10074 lt_save_CC=$CC
10075 lt_save_LD=$LD
10076 lt_save_GCC=$GCC
10077 GCC=$GXX
10078 lt_save_with_gnu_ld=$with_gnu_ld
10079 lt_save_path_LD=$lt_cv_path_LD
10080 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10081   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10082 else
10083   unset lt_cv_prog_gnu_ld
10084 fi
10085 if test -n "${lt_cv_path_LDCXX+set}"; then
10086   lt_cv_path_LD=$lt_cv_path_LDCXX
10087 else
10088   unset lt_cv_path_LD
10089 fi
10090 test -z "${LDCXX+set}" || LD=$LDCXX
10091 CC=${CXX-"c++"}
10092 compiler=$CC
10093 compiler_CXX=$CC
10094 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10095
10096 # We don't want -fno-exception wen compiling C++ code, so set the
10097 # no_builtin_flag separately
10098 if test "$GXX" = yes; then
10099   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10100 else
10101   lt_prog_compiler_no_builtin_flag_CXX=
10102 fi
10103
10104 if test "$GXX" = yes; then
10105   # Set up default GNU C++ configuration
10106
10107
10108 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10109 if test "${with_gnu_ld+set}" = set; then
10110   withval="$with_gnu_ld"
10111   test "$withval" = no || with_gnu_ld=yes
10112 else
10113   with_gnu_ld=no
10114 fi;
10115 ac_prog=ld
10116 if test "$GCC" = yes; then
10117   # Check if gcc -print-prog-name=ld gives a path.
10118   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10119 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10120   case $host in
10121   *-*-mingw*)
10122     # gcc leaves a trailing carriage return which upsets mingw
10123     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10124   *)
10125     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10126   esac
10127   case $ac_prog in
10128     # Accept absolute paths.
10129     [\\/]* | ?:[\\/]*)
10130       re_direlt='/[^/][^/]*/\.\./'
10131       # Canonicalize the pathname of ld
10132       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10133       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10134         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10135       done
10136       test -z "$LD" && LD="$ac_prog"
10137       ;;
10138   "")
10139     # If it fails, then pretend we aren't using GCC.
10140     ac_prog=ld
10141     ;;
10142   *)
10143     # If it is relative, then search for the first ld in PATH.
10144     with_gnu_ld=unknown
10145     ;;
10146   esac
10147 elif test "$with_gnu_ld" = yes; then
10148   echo "$as_me:$LINENO: checking for GNU ld" >&5
10149 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10150 else
10151   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10152 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10153 fi
10154 if test "${lt_cv_path_LD+set}" = set; then
10155   echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157   if test -z "$LD"; then
10158   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10159   for ac_dir in $PATH; do
10160     IFS="$lt_save_ifs"
10161     test -z "$ac_dir" && ac_dir=.
10162     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10163       lt_cv_path_LD="$ac_dir/$ac_prog"
10164       # Check to see if the program is GNU ld.  I'd rather use --version,
10165       # but apparently some GNU ld's only accept -v.
10166       # Break only if it was the GNU/non-GNU ld that we prefer.
10167       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10168       *GNU* | *'with BFD'*)
10169         test "$with_gnu_ld" != no && break
10170         ;;
10171       *)
10172         test "$with_gnu_ld" != yes && break
10173         ;;
10174       esac
10175     fi
10176   done
10177   IFS="$lt_save_ifs"
10178 else
10179   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10180 fi
10181 fi
10182
10183 LD="$lt_cv_path_LD"
10184 if test -n "$LD"; then
10185   echo "$as_me:$LINENO: result: $LD" >&5
10186 echo "${ECHO_T}$LD" >&6
10187 else
10188   echo "$as_me:$LINENO: result: no" >&5
10189 echo "${ECHO_T}no" >&6
10190 fi
10191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10193    { (exit 1); exit 1; }; }
10194 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10197   echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10200 case `$LD -v 2>&1 </dev/null` in
10201 *GNU* | *'with BFD'*)
10202   lt_cv_prog_gnu_ld=yes
10203   ;;
10204 *)
10205   lt_cv_prog_gnu_ld=no
10206   ;;
10207 esac
10208 fi
10209 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10211 with_gnu_ld=$lt_cv_prog_gnu_ld
10212
10213
10214
10215   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10216   # archiving commands below assume that GNU ld is being used.
10217   if test "$with_gnu_ld" = yes; then
10218     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219     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'
10220
10221     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10222     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10223
10224     # If archive_cmds runs LD, not CC, wlarc should be empty
10225     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10226     #     investigate it a little bit more. (MM)
10227     wlarc='${wl}'
10228
10229     # ancient GNU ld didn't support --whole-archive et. al.
10230     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10231         grep 'no-whole-archive' > /dev/null; then
10232       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10233     else
10234       whole_archive_flag_spec_CXX=
10235     fi
10236   else
10237     with_gnu_ld=no
10238     wlarc=
10239
10240     # A generic and very simple default shared library creation
10241     # command for GNU C++ for the case where it uses the native
10242     # linker, instead of GNU ld.  If possible, this setting should
10243     # overridden to take advantage of the native linker features on
10244     # the platform it is being used on.
10245     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10246   fi
10247
10248   # Commands to make compiler produce verbose output that lists
10249   # what "hidden" libraries, object files and flags are used when
10250   # linking a shared library.
10251   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10252
10253 else
10254   GXX=no
10255   with_gnu_ld=no
10256   wlarc=
10257 fi
10258
10259 # PORTME: fill in a description of your system's C++ link characteristics
10260 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10261 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10262 ld_shlibs_CXX=yes
10263 case $host_os in
10264   aix3*)
10265     # FIXME: insert proper C++ library support
10266     ld_shlibs_CXX=no
10267     ;;
10268   aix4* | aix5*)
10269     if test "$host_cpu" = ia64; then
10270       # On IA64, the linker does run time linking by default, so we don't
10271       # have to do anything special.
10272       aix_use_runtimelinking=no
10273       exp_sym_flag='-Bexport'
10274       no_entry_flag=""
10275     else
10276       aix_use_runtimelinking=no
10277
10278       # Test if we are trying to use run time linking or normal
10279       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10280       # need to do runtime linking.
10281       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10282         for ld_flag in $LDFLAGS; do
10283           case $ld_flag in
10284           *-brtl*)
10285             aix_use_runtimelinking=yes
10286             break
10287             ;;
10288           esac
10289         done
10290       esac
10291
10292       exp_sym_flag='-bexport'
10293       no_entry_flag='-bnoentry'
10294     fi
10295
10296     # When large executables or shared objects are built, AIX ld can
10297     # have problems creating the table of contents.  If linking a library
10298     # or program results in "error TOC overflow" add -mminimal-toc to
10299     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10300     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10301
10302     archive_cmds_CXX=''
10303     hardcode_direct_CXX=yes
10304     hardcode_libdir_separator_CXX=':'
10305     link_all_deplibs_CXX=yes
10306
10307     if test "$GXX" = yes; then
10308       case $host_os in aix4.012|aix4.012.*)
10309       # We only want to do this on AIX 4.2 and lower, the check
10310       # below for broken collect2 doesn't work under 4.3+
10311         collect2name=`${CC} -print-prog-name=collect2`
10312         if test -f "$collect2name" && \
10313            strings "$collect2name" | grep resolve_lib_name >/dev/null
10314         then
10315           # We have reworked collect2
10316           hardcode_direct_CXX=yes
10317         else
10318           # We have old collect2
10319           hardcode_direct_CXX=unsupported
10320           # It fails to find uninstalled libraries when the uninstalled
10321           # path is not listed in the libpath.  Setting hardcode_minus_L
10322           # to unsupported forces relinking
10323           hardcode_minus_L_CXX=yes
10324           hardcode_libdir_flag_spec_CXX='-L$libdir'
10325           hardcode_libdir_separator_CXX=
10326         fi
10327       esac
10328       shared_flag='-shared'
10329     else
10330       # not using gcc
10331       if test "$host_cpu" = ia64; then
10332         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10333         # chokes on -Wl,-G. The following line is correct:
10334         shared_flag='-G'
10335       else
10336         if test "$aix_use_runtimelinking" = yes; then
10337           shared_flag='${wl}-G'
10338         else
10339           shared_flag='${wl}-bM:SRE'
10340         fi
10341       fi
10342     fi
10343
10344     # It seems that -bexpall does not export symbols beginning with
10345     # underscore (_), so it is better to generate a list of symbols to export.
10346     always_export_symbols_CXX=yes
10347     if test "$aix_use_runtimelinking" = yes; then
10348       # Warning - without using the other runtime loading flags (-brtl),
10349       # -berok will link without error, but may produce a broken library.
10350       allow_undefined_flag_CXX='-berok'
10351       # Determine the default libpath from the value encoded in an empty executable.
10352       cat >conftest.$ac_ext <<_ACEOF
10353 /* confdefs.h.  */
10354 _ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h.  */
10358
10359 int
10360 main ()
10361 {
10362
10363   ;
10364   return 0;
10365 }
10366 _ACEOF
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10369   (eval $ac_link) 2>conftest.er1
10370   ac_status=$?
10371   grep -v '^ *+' conftest.er1 >conftest.err
10372   rm -f conftest.er1
10373   cat conftest.err >&5
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); } &&
10376          { ac_try='test -z "$ac_cxx_werror_flag"
10377                          || test ! -s conftest.err'
10378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379   (eval $ac_try) 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); }; } &&
10383          { ac_try='test -s conftest$ac_exeext'
10384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385   (eval $ac_try) 2>&5
10386   ac_status=$?
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); }; }; then
10389
10390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10391 }'`
10392 # Check for a 64-bit object if we didn't find anything.
10393 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10394 }'`; fi
10395 else
10396   echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399 fi
10400 rm -f conftest.err conftest.$ac_objext \
10401       conftest$ac_exeext conftest.$ac_ext
10402 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10403
10404       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10405
10406       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10407      else
10408       if test "$host_cpu" = ia64; then
10409         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10410         allow_undefined_flag_CXX="-z nodefs"
10411         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10412       else
10413         # Determine the default libpath from the value encoded in an empty executable.
10414         cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h.  */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h.  */
10420
10421 int
10422 main ()
10423 {
10424
10425   ;
10426   return 0;
10427 }
10428 _ACEOF
10429 rm -f conftest.$ac_objext conftest$ac_exeext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10431   (eval $ac_link) 2>conftest.er1
10432   ac_status=$?
10433   grep -v '^ *+' conftest.er1 >conftest.err
10434   rm -f conftest.er1
10435   cat conftest.err >&5
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); } &&
10438          { ac_try='test -z "$ac_cxx_werror_flag"
10439                          || test ! -s conftest.err'
10440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441   (eval $ac_try) 2>&5
10442   ac_status=$?
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); }; } &&
10445          { ac_try='test -s conftest$ac_exeext'
10446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447   (eval $ac_try) 2>&5
10448   ac_status=$?
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); }; }; then
10451
10452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10453 }'`
10454 # Check for a 64-bit object if we didn't find anything.
10455 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10456 }'`; fi
10457 else
10458   echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10460
10461 fi
10462 rm -f conftest.err conftest.$ac_objext \
10463       conftest$ac_exeext conftest.$ac_ext
10464 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10465
10466         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10467         # Warning - without using the other run time loading flags,
10468         # -berok will link without error, but may produce a broken library.
10469         no_undefined_flag_CXX=' ${wl}-bernotok'
10470         allow_undefined_flag_CXX=' ${wl}-berok'
10471         # -bexpall does not export symbols beginning with underscore (_)
10472         always_export_symbols_CXX=yes
10473         # Exported symbols can be pulled into shared objects from archives
10474         whole_archive_flag_spec_CXX=' '
10475         archive_cmds_need_lc_CXX=yes
10476         # This is similar to how AIX traditionally builds it's shared libraries.
10477         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10478       fi
10479     fi
10480     ;;
10481   chorus*)
10482     case $cc_basename in
10483       *)
10484         # FIXME: insert proper C++ library support
10485         ld_shlibs_CXX=no
10486         ;;
10487     esac
10488     ;;
10489
10490
10491   cygwin* | mingw* | pw32*)
10492     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10493     # as there is no search path for DLLs.
10494     hardcode_libdir_flag_spec_CXX='-L$libdir'
10495     allow_undefined_flag_CXX=unsupported
10496     always_export_symbols_CXX=no
10497     enable_shared_with_static_runtimes_CXX=yes
10498
10499     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10500       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10501       # If the export-symbols file already is a .def file (1st line
10502       # is EXPORTS), use it as is; otherwise, prepend...
10503       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10504         cp $export_symbols $output_objdir/$soname.def;
10505       else
10506         echo EXPORTS > $output_objdir/$soname.def;
10507         cat $export_symbols >> $output_objdir/$soname.def;
10508       fi~
10509       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10510     else
10511       ld_shlibs_CXX=no
10512     fi
10513   ;;
10514       darwin* | rhapsody*)
10515         case "$host_os" in
10516         rhapsody* | darwin1.[012])
10517          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10518          ;;
10519        *) # Darwin 1.3 on
10520          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10521            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10522          else
10523            case ${MACOSX_DEPLOYMENT_TARGET} in
10524              10.[012])
10525                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10526                ;;
10527              10.*)
10528                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10529                ;;
10530            esac
10531          fi
10532          ;;
10533         esac
10534       archive_cmds_need_lc_CXX=no
10535       hardcode_direct_CXX=no
10536       hardcode_automatic_CXX=yes
10537       hardcode_shlibpath_var_CXX=unsupported
10538       whole_archive_flag_spec_CXX=''
10539       link_all_deplibs_CXX=yes
10540
10541     if test "$GXX" = yes ; then
10542       lt_int_apple_cc_single_mod=no
10543       output_verbose_link_cmd='echo'
10544       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10545        lt_int_apple_cc_single_mod=yes
10546       fi
10547       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10548        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10549       else
10550           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'
10551         fi
10552         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10553         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10554           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10555             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10556           else
10557             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10558           fi
10559             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}'
10560       else
10561       case "$cc_basename" in
10562         xlc*)
10563          output_verbose_link_cmd='echo'
10564           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10565           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10566           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10567           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10568           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}'
10569           ;;
10570        *)
10571          ld_shlibs_CXX=no
10572           ;;
10573       esac
10574       fi
10575         ;;
10576
10577   dgux*)
10578     case $cc_basename in
10579       ec++)
10580         # FIXME: insert proper C++ library support
10581         ld_shlibs_CXX=no
10582         ;;
10583       ghcx)
10584         # Green Hills C++ Compiler
10585         # FIXME: insert proper C++ library support
10586         ld_shlibs_CXX=no
10587         ;;
10588       *)
10589         # FIXME: insert proper C++ library support
10590         ld_shlibs_CXX=no
10591         ;;
10592     esac
10593     ;;
10594   freebsd12*)
10595     # C++ shared libraries reported to be fairly broken before switch to ELF
10596     ld_shlibs_CXX=no
10597     ;;
10598   freebsd-elf*)
10599     archive_cmds_need_lc_CXX=no
10600     ;;
10601   freebsd* | kfreebsd*-gnu)
10602     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10603     # conventions
10604     ld_shlibs_CXX=yes
10605     ;;
10606   gnu*)
10607     ;;
10608   hpux9*)
10609     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10610     hardcode_libdir_separator_CXX=:
10611     export_dynamic_flag_spec_CXX='${wl}-E'
10612     hardcode_direct_CXX=yes
10613     hardcode_minus_L_CXX=yes # Not in the search PATH,
10614                                 # but as the default
10615                                 # location of the library.
10616
10617     case $cc_basename in
10618     CC)
10619       # FIXME: insert proper C++ library support
10620       ld_shlibs_CXX=no
10621       ;;
10622     aCC)
10623       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'
10624       # Commands to make compiler produce verbose output that lists
10625       # what "hidden" libraries, object files and flags are used when
10626       # linking a shared library.
10627       #
10628       # There doesn't appear to be a way to prevent this compiler from
10629       # explicitly linking system object files so we need to strip them
10630       # from the output so that they don't get included in the library
10631       # dependencies.
10632       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'
10633       ;;
10634     *)
10635       if test "$GXX" = yes; then
10636         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'
10637       else
10638         # FIXME: insert proper C++ library support
10639         ld_shlibs_CXX=no
10640       fi
10641       ;;
10642     esac
10643     ;;
10644   hpux10*|hpux11*)
10645     if test $with_gnu_ld = no; then
10646       case "$host_cpu" in
10647       hppa*64*)
10648         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10649         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10650         hardcode_libdir_separator_CXX=:
10651         ;;
10652       ia64*)
10653         hardcode_libdir_flag_spec_CXX='-L$libdir'
10654         ;;
10655       *)
10656         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10657         hardcode_libdir_separator_CXX=:
10658         export_dynamic_flag_spec_CXX='${wl}-E'
10659         ;;
10660       esac
10661     fi
10662     case "$host_cpu" in
10663     hppa*64*)
10664       hardcode_direct_CXX=no
10665       hardcode_shlibpath_var_CXX=no
10666       ;;
10667     ia64*)
10668       hardcode_direct_CXX=no
10669       hardcode_shlibpath_var_CXX=no
10670       hardcode_minus_L_CXX=yes # Not in the search PATH,
10671                                               # but as the default
10672                                               # location of the library.
10673       ;;
10674     *)
10675       hardcode_direct_CXX=yes
10676       hardcode_minus_L_CXX=yes # Not in the search PATH,
10677                                               # but as the default
10678                                               # location of the library.
10679       ;;
10680     esac
10681
10682     case $cc_basename in
10683       CC)
10684         # FIXME: insert proper C++ library support
10685         ld_shlibs_CXX=no
10686         ;;
10687       aCC)
10688         case "$host_cpu" in
10689         hppa*64*|ia64*)
10690           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10691           ;;
10692         *)
10693           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10694           ;;
10695         esac
10696         # Commands to make compiler produce verbose output that lists
10697         # what "hidden" libraries, object files and flags are used when
10698         # linking a shared library.
10699         #
10700         # There doesn't appear to be a way to prevent this compiler from
10701         # explicitly linking system object files so we need to strip them
10702         # from the output so that they don't get included in the library
10703         # dependencies.
10704         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'
10705         ;;
10706       *)
10707         if test "$GXX" = yes; then
10708           if test $with_gnu_ld = no; then
10709             case "$host_cpu" in
10710             ia64*|hppa*64*)
10711               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10712               ;;
10713             *)
10714               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'
10715               ;;
10716             esac
10717           fi
10718         else
10719           # FIXME: insert proper C++ library support
10720           ld_shlibs_CXX=no
10721         fi
10722         ;;
10723     esac
10724     ;;
10725   irix5* | irix6*)
10726     case $cc_basename in
10727       CC)
10728         # SGI C++
10729         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 ${objdir}/so_locations -o $lib'
10730
10731         # Archives containing C++ object files must be created using
10732         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10733         # necessary to make sure instantiated templates are included
10734         # in the archive.
10735         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10736         ;;
10737       *)
10738         if test "$GXX" = yes; then
10739           if test "$with_gnu_ld" = no; then
10740             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}${objdir}/so_locations -o $lib'
10741           else
10742             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'
10743           fi
10744         fi
10745         link_all_deplibs_CXX=yes
10746         ;;
10747     esac
10748     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10749     hardcode_libdir_separator_CXX=:
10750     ;;
10751   linux*)
10752     case $cc_basename in
10753       KCC)
10754         # Kuck and Associates, Inc. (KAI) C++ Compiler
10755
10756         # KCC will only create a shared library if the output file
10757         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10758         # to its proper name (with version) after linking.
10759         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'
10760         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'
10761         # Commands to make compiler produce verbose output that lists
10762         # what "hidden" libraries, object files and flags are used when
10763         # linking a shared library.
10764         #
10765         # There doesn't appear to be a way to prevent this compiler from
10766         # explicitly linking system object files so we need to strip them
10767         # from the output so that they don't get included in the library
10768         # dependencies.
10769         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'
10770
10771         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10772         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10773
10774         # Archives containing C++ object files must be created using
10775         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10776         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10777         ;;
10778       icpc)
10779         # Intel C++
10780         with_gnu_ld=yes
10781         # version 8.0 and above of icpc choke on multiply defined symbols
10782         # if we add $predep_objects and $postdep_objects, however 7.1 and
10783         # earlier do not add the objects themselves.
10784         case `$CC -V 2>&1` in
10785         *"Version 7."*)
10786           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10787           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'
10788           ;;
10789         *)  # Version 8.0 or newer
10790           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10791         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10792           ;;
10793         esac
10794         archive_cmds_need_lc_CXX=no
10795         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10796         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10797         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10798         ;;
10799       cxx)
10800         # Compaq C++
10801         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10802         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'
10803
10804         runpath_var=LD_RUN_PATH
10805         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10806         hardcode_libdir_separator_CXX=:
10807
10808         # Commands to make compiler produce verbose output that lists
10809         # what "hidden" libraries, object files and flags are used when
10810         # linking a shared library.
10811         #
10812         # There doesn't appear to be a way to prevent this compiler from
10813         # explicitly linking system object files so we need to strip them
10814         # from the output so that they don't get included in the library
10815         # dependencies.
10816         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'
10817         ;;
10818     esac
10819     ;;
10820   lynxos*)
10821     # FIXME: insert proper C++ library support
10822     ld_shlibs_CXX=no
10823     ;;
10824   m88k*)
10825     # FIXME: insert proper C++ library support
10826     ld_shlibs_CXX=no
10827     ;;
10828   mvs*)
10829     case $cc_basename in
10830       cxx)
10831         # FIXME: insert proper C++ library support
10832         ld_shlibs_CXX=no
10833         ;;
10834       *)
10835         # FIXME: insert proper C++ library support
10836         ld_shlibs_CXX=no
10837         ;;
10838     esac
10839     ;;
10840   netbsd*)
10841     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10842       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10843       wlarc=
10844       hardcode_libdir_flag_spec_CXX='-R$libdir'
10845       hardcode_direct_CXX=yes
10846       hardcode_shlibpath_var_CXX=no
10847     fi
10848     # Workaround some broken pre-1.5 toolchains
10849     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10850     ;;
10851   openbsd2*)
10852     # C++ shared libraries are fairly broken
10853     ld_shlibs_CXX=no
10854     ;;
10855   openbsd*)
10856     hardcode_direct_CXX=yes
10857     hardcode_shlibpath_var_CXX=no
10858     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10859     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10860     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10861       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10862       export_dynamic_flag_spec_CXX='${wl}-E'
10863       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10864     fi
10865     output_verbose_link_cmd='echo'
10866     ;;
10867   osf3*)
10868     case $cc_basename in
10869       KCC)
10870         # Kuck and Associates, Inc. (KAI) C++ Compiler
10871
10872         # KCC will only create a shared library if the output file
10873         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10874         # to its proper name (with version) after linking.
10875         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'
10876
10877         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10878         hardcode_libdir_separator_CXX=:
10879
10880         # Archives containing C++ object files must be created using
10881         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10882         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10883
10884         ;;
10885       RCC)
10886         # Rational C++ 2.4.1
10887         # FIXME: insert proper C++ library support
10888         ld_shlibs_CXX=no
10889         ;;
10890       cxx)
10891         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10892         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 ${objdir}/so_locations -o $lib'
10893
10894         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10895         hardcode_libdir_separator_CXX=:
10896
10897         # Commands to make compiler produce verbose output that lists
10898         # what "hidden" libraries, object files and flags are used when
10899         # linking a shared library.
10900         #
10901         # There doesn't appear to be a way to prevent this compiler from
10902         # explicitly linking system object files so we need to strip them
10903         # from the output so that they don't get included in the library
10904         # dependencies.
10905         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'
10906         ;;
10907       *)
10908         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10909           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10910           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}${objdir}/so_locations -o $lib'
10911
10912           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10913           hardcode_libdir_separator_CXX=:
10914
10915           # Commands to make compiler produce verbose output that lists
10916           # what "hidden" libraries, object files and flags are used when
10917           # linking a shared library.
10918           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10919
10920         else
10921           # FIXME: insert proper C++ library support
10922           ld_shlibs_CXX=no
10923         fi
10924         ;;
10925     esac
10926     ;;
10927   osf4* | osf5*)
10928     case $cc_basename in
10929       KCC)
10930         # Kuck and Associates, Inc. (KAI) C++ Compiler
10931
10932         # KCC will only create a shared library if the output file
10933         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10934         # to its proper name (with version) after linking.
10935         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'
10936
10937         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10938         hardcode_libdir_separator_CXX=:
10939
10940         # Archives containing C++ object files must be created using
10941         # the KAI C++ compiler.
10942         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10943         ;;
10944       RCC)
10945         # Rational C++ 2.4.1
10946         # FIXME: insert proper C++ library support
10947         ld_shlibs_CXX=no
10948         ;;
10949       cxx)
10950         allow_undefined_flag_CXX=' -expect_unresolved \*'
10951         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 ${objdir}/so_locations -o $lib'
10952         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10953           echo "-hidden">> $lib.exp~
10954           $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 $objdir/so_locations -o $lib~
10955           $rm $lib.exp'
10956
10957         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10958         hardcode_libdir_separator_CXX=:
10959
10960         # Commands to make compiler produce verbose output that lists
10961         # what "hidden" libraries, object files and flags are used when
10962         # linking a shared library.
10963         #
10964         # There doesn't appear to be a way to prevent this compiler from
10965         # explicitly linking system object files so we need to strip them
10966         # from the output so that they don't get included in the library
10967         # dependencies.
10968         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'
10969         ;;
10970       *)
10971         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10972           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10973          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}${objdir}/so_locations -o $lib'
10974
10975           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10976           hardcode_libdir_separator_CXX=:
10977
10978           # Commands to make compiler produce verbose output that lists
10979           # what "hidden" libraries, object files and flags are used when
10980           # linking a shared library.
10981           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10982
10983         else
10984           # FIXME: insert proper C++ library support
10985           ld_shlibs_CXX=no
10986         fi
10987         ;;
10988     esac
10989     ;;
10990   psos*)
10991     # FIXME: insert proper C++ library support
10992     ld_shlibs_CXX=no
10993     ;;
10994   sco*)
10995     archive_cmds_need_lc_CXX=no
10996     case $cc_basename in
10997       CC)
10998         # FIXME: insert proper C++ library support
10999         ld_shlibs_CXX=no
11000         ;;
11001       *)
11002         # FIXME: insert proper C++ library support
11003         ld_shlibs_CXX=no
11004         ;;
11005     esac
11006     ;;
11007   sunos4*)
11008     case $cc_basename in
11009       CC)
11010         # Sun C++ 4.x
11011         # FIXME: insert proper C++ library support
11012         ld_shlibs_CXX=no
11013         ;;
11014       lcc)
11015         # Lucid
11016         # FIXME: insert proper C++ library support
11017         ld_shlibs_CXX=no
11018         ;;
11019       *)
11020         # FIXME: insert proper C++ library support
11021         ld_shlibs_CXX=no
11022         ;;
11023     esac
11024     ;;
11025   solaris*)
11026     case $cc_basename in
11027       CC)
11028         # Sun C++ 4.2, 5.x and Centerline C++
11029         no_undefined_flag_CXX=' -zdefs'
11030         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11031         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11032         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11033
11034         hardcode_libdir_flag_spec_CXX='-R$libdir'
11035         hardcode_shlibpath_var_CXX=no
11036         case $host_os in
11037           solaris2.0-5 | solaris2.0-5.*) ;;
11038           *)
11039             # The C++ compiler is used as linker so we must use $wl
11040             # flag to pass the commands to the underlying system
11041             # linker.
11042             # Supported since Solaris 2.6 (maybe 2.5.1?)
11043             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11044             ;;
11045         esac
11046         link_all_deplibs_CXX=yes
11047
11048         # Commands to make compiler produce verbose output that lists
11049         # what "hidden" libraries, object files and flags are used when
11050         # linking a shared library.
11051         #
11052         # There doesn't appear to be a way to prevent this compiler from
11053         # explicitly linking system object files so we need to strip them
11054         # from the output so that they don't get included in the library
11055         # dependencies.
11056         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11057
11058         # Archives containing C++ object files must be created using
11059         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11060         # necessary to make sure instantiated templates are included
11061         # in the archive.
11062         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11063         ;;
11064       gcx)
11065         # Green Hills C++ Compiler
11066         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11067
11068         # The C++ compiler must be used to create the archive.
11069         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11070         ;;
11071       *)
11072         # GNU C++ compiler with Solaris linker
11073         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11074           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11075           if $CC --version | grep -v '^2\.7' > /dev/null; then
11076             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11077             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11078                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11079
11080             # Commands to make compiler produce verbose output that lists
11081             # what "hidden" libraries, object files and flags are used when
11082             # linking a shared library.
11083             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11084           else
11085             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11086             # platform.
11087             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11088             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11089                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11090
11091             # Commands to make compiler produce verbose output that lists
11092             # what "hidden" libraries, object files and flags are used when
11093             # linking a shared library.
11094             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11095           fi
11096
11097           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11098         fi
11099         ;;
11100     esac
11101     ;;
11102   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11103     archive_cmds_need_lc_CXX=no
11104     ;;
11105   tandem*)
11106     case $cc_basename in
11107       NCC)
11108         # NonStop-UX NCC 3.20
11109         # FIXME: insert proper C++ library support
11110         ld_shlibs_CXX=no
11111         ;;
11112       *)
11113         # FIXME: insert proper C++ library support
11114         ld_shlibs_CXX=no
11115         ;;
11116     esac
11117     ;;
11118   vxworks*)
11119     # FIXME: insert proper C++ library support
11120     ld_shlibs_CXX=no
11121     ;;
11122   *)
11123     # FIXME: insert proper C++ library support
11124     ld_shlibs_CXX=no
11125     ;;
11126 esac
11127 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11128 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11129 test "$ld_shlibs_CXX" = no && can_build_shared=no
11130
11131 GCC_CXX="$GXX"
11132 LD_CXX="$LD"
11133
11134 ## CAVEAT EMPTOR:
11135 ## There is no encapsulation within the following macros, do not change
11136 ## the running order or otherwise move them around unless you know exactly
11137 ## what you are doing...
11138
11139 cat > conftest.$ac_ext <<EOF
11140 class Foo
11141 {
11142 public:
11143   Foo (void) { a = 0; }
11144 private:
11145   int a;
11146 };
11147 EOF
11148
11149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11150   (eval $ac_compile) 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; then
11154   # Parse the compiler output and extract the necessary
11155   # objects, libraries and library flags.
11156
11157   # Sentinel used to keep track of whether or not we are before
11158   # the conftest object file.
11159   pre_test_object_deps_done=no
11160
11161   # The `*' in the case matches for architectures that use `case' in
11162   # $output_verbose_cmd can trigger glob expansion during the loop
11163   # eval without this substitution.
11164   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11165
11166   for p in `eval $output_verbose_link_cmd`; do
11167     case $p in
11168
11169     -L* | -R* | -l*)
11170        # Some compilers place space between "-{L,R}" and the path.
11171        # Remove the space.
11172        if test $p = "-L" \
11173           || test $p = "-R"; then
11174          prev=$p
11175          continue
11176        else
11177          prev=
11178        fi
11179
11180        if test "$pre_test_object_deps_done" = no; then
11181          case $p in
11182          -L* | -R*)
11183            # Internal compiler library paths should come after those
11184            # provided the user.  The postdeps already come after the
11185            # user supplied libs so there is no need to process them.
11186            if test -z "$compiler_lib_search_path_CXX"; then
11187              compiler_lib_search_path_CXX="${prev}${p}"
11188            else
11189              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11190            fi
11191            ;;
11192          # The "-l" case would never come before the object being
11193          # linked, so don't bother handling this case.
11194          esac
11195        else
11196          if test -z "$postdeps_CXX"; then
11197            postdeps_CXX="${prev}${p}"
11198          else
11199            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11200          fi
11201        fi
11202        ;;
11203
11204     *.$objext)
11205        # This assumes that the test object file only shows up
11206        # once in the compiler output.
11207        if test "$p" = "conftest.$objext"; then
11208          pre_test_object_deps_done=yes
11209          continue
11210        fi
11211
11212        if test "$pre_test_object_deps_done" = no; then
11213          if test -z "$predep_objects_CXX"; then
11214            predep_objects_CXX="$p"
11215          else
11216            predep_objects_CXX="$predep_objects_CXX $p"
11217          fi
11218        else
11219          if test -z "$postdep_objects_CXX"; then
11220            postdep_objects_CXX="$p"
11221          else
11222            postdep_objects_CXX="$postdep_objects_CXX $p"
11223          fi
11224        fi
11225        ;;
11226
11227     *) ;; # Ignore the rest.
11228
11229     esac
11230   done
11231
11232   # Clean up.
11233   rm -f a.out a.exe
11234 else
11235   echo "libtool.m4: error: problem compiling CXX test program"
11236 fi
11237
11238 $rm -f confest.$objext
11239
11240 case " $postdeps_CXX " in
11241 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11242 esac
11243
11244 lt_prog_compiler_wl_CXX=
11245 lt_prog_compiler_pic_CXX=
11246 lt_prog_compiler_static_CXX=
11247
11248 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11249 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11250
11251   # C++ specific cases for pic, static, wl, etc.
11252   if test "$GXX" = yes; then
11253     lt_prog_compiler_wl_CXX='-Wl,'
11254     lt_prog_compiler_static_CXX='-static'
11255
11256     case $host_os in
11257     aix*)
11258       # All AIX code is PIC.
11259       if test "$host_cpu" = ia64; then
11260         # AIX 5 now supports IA64 processor
11261         lt_prog_compiler_static_CXX='-Bstatic'
11262       fi
11263       ;;
11264     amigaos*)
11265       # FIXME: we need at least 68020 code to build shared libraries, but
11266       # adding the `-m68020' flag to GCC prevents building anything better,
11267       # like `-m68040'.
11268       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11269       ;;
11270     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11271       # PIC is the default for these OSes.
11272       ;;
11273     mingw* | os2* | pw32*)
11274       # This hack is so that the source file can tell whether it is being
11275       # built for inclusion in a dll (and should export symbols for example).
11276       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11277       ;;
11278     darwin* | rhapsody*)
11279       # PIC is the default on this platform
11280       # Common symbols not allowed in MH_DYLIB files
11281       lt_prog_compiler_pic_CXX='-fno-common'
11282       ;;
11283     *djgpp*)
11284       # DJGPP does not support shared libraries at all
11285       lt_prog_compiler_pic_CXX=
11286       ;;
11287     sysv4*MP*)
11288       if test -d /usr/nec; then
11289         lt_prog_compiler_pic_CXX=-Kconform_pic
11290       fi
11291       ;;
11292     hpux*)
11293       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11294       # not for PA HP-UX.
11295       case "$host_cpu" in
11296       hppa*64*|ia64*)
11297         ;;
11298       *)
11299         lt_prog_compiler_pic_CXX='-fPIC'
11300         ;;
11301       esac
11302       ;;
11303     *)
11304       lt_prog_compiler_pic_CXX='-fPIC'
11305       ;;
11306     esac
11307   else
11308     case $host_os in
11309       aix4* | aix5*)
11310         # All AIX code is PIC.
11311         if test "$host_cpu" = ia64; then
11312           # AIX 5 now supports IA64 processor
11313           lt_prog_compiler_static_CXX='-Bstatic'
11314         else
11315           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11316         fi
11317         ;;
11318       chorus*)
11319         case $cc_basename in
11320         cxch68)
11321           # Green Hills C++ Compiler
11322           # _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"
11323           ;;
11324         esac
11325         ;;
11326        darwin*)
11327          # PIC is the default on this platform
11328          # Common symbols not allowed in MH_DYLIB files
11329          case "$cc_basename" in
11330            xlc*)
11331            lt_prog_compiler_pic_CXX='-qnocommon'
11332            lt_prog_compiler_wl_CXX='-Wl,'
11333            ;;
11334          esac
11335        ;;
11336       dgux*)
11337         case $cc_basename in
11338           ec++)
11339             lt_prog_compiler_pic_CXX='-KPIC'
11340             ;;
11341           ghcx)
11342             # Green Hills C++ Compiler
11343             lt_prog_compiler_pic_CXX='-pic'
11344             ;;
11345           *)
11346             ;;
11347         esac
11348         ;;
11349       freebsd* | kfreebsd*-gnu)
11350         # FreeBSD uses GNU C++
11351         ;;
11352       hpux9* | hpux10* | hpux11*)
11353         case $cc_basename in
11354           CC)
11355             lt_prog_compiler_wl_CXX='-Wl,'
11356             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11357             if test "$host_cpu" != ia64; then
11358               lt_prog_compiler_pic_CXX='+Z'
11359             fi
11360             ;;
11361           aCC)
11362             lt_prog_compiler_wl_CXX='-Wl,'
11363             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11364             case "$host_cpu" in
11365             hppa*64*|ia64*)
11366               # +Z the default
11367               ;;
11368             *)
11369               lt_prog_compiler_pic_CXX='+Z'
11370               ;;
11371             esac
11372             ;;
11373           *)
11374             ;;
11375         esac
11376         ;;
11377       irix5* | irix6* | nonstopux*)
11378         case $cc_basename in
11379           CC)
11380             lt_prog_compiler_wl_CXX='-Wl,'
11381             lt_prog_compiler_static_CXX='-non_shared'
11382             # CC pic flag -KPIC is the default.
11383             ;;
11384           *)
11385             ;;
11386         esac
11387         ;;
11388       linux*)
11389         case $cc_basename in
11390           KCC)
11391             # KAI C++ Compiler
11392             lt_prog_compiler_wl_CXX='--backend -Wl,'
11393             lt_prog_compiler_pic_CXX='-fPIC'
11394             ;;
11395           icpc)
11396             # Intel C++
11397             lt_prog_compiler_wl_CXX='-Wl,'
11398             lt_prog_compiler_pic_CXX='-KPIC'
11399             lt_prog_compiler_static_CXX='-static'
11400             ;;
11401           cxx)
11402             # Compaq C++
11403             # Make sure the PIC flag is empty.  It appears that all Alpha
11404             # Linux and Compaq Tru64 Unix objects are PIC.
11405             lt_prog_compiler_pic_CXX=
11406             lt_prog_compiler_static_CXX='-non_shared'
11407             ;;
11408           *)
11409             ;;
11410         esac
11411         ;;
11412       lynxos*)
11413         ;;
11414       m88k*)
11415         ;;
11416       mvs*)
11417         case $cc_basename in
11418           cxx)
11419             lt_prog_compiler_pic_CXX='-W c,exportall'
11420             ;;
11421           *)
11422             ;;
11423         esac
11424         ;;
11425       netbsd*)
11426         ;;
11427       osf3* | osf4* | osf5*)
11428         case $cc_basename in
11429           KCC)
11430             lt_prog_compiler_wl_CXX='--backend -Wl,'
11431             ;;
11432           RCC)
11433             # Rational C++ 2.4.1
11434             lt_prog_compiler_pic_CXX='-pic'
11435             ;;
11436           cxx)
11437             # Digital/Compaq C++
11438             lt_prog_compiler_wl_CXX='-Wl,'
11439             # Make sure the PIC flag is empty.  It appears that all Alpha
11440             # Linux and Compaq Tru64 Unix objects are PIC.
11441             lt_prog_compiler_pic_CXX=
11442             lt_prog_compiler_static_CXX='-non_shared'
11443             ;;
11444           *)
11445             ;;
11446         esac
11447         ;;
11448       psos*)
11449         ;;
11450       sco*)
11451         case $cc_basename in
11452           CC)
11453             lt_prog_compiler_pic_CXX='-fPIC'
11454             ;;
11455           *)
11456             ;;
11457         esac
11458         ;;
11459       solaris*)
11460         case $cc_basename in
11461           CC)
11462             # Sun C++ 4.2, 5.x and Centerline C++
11463             lt_prog_compiler_pic_CXX='-KPIC'
11464             lt_prog_compiler_static_CXX='-Bstatic'
11465             lt_prog_compiler_wl_CXX='-Qoption ld '
11466             ;;
11467           gcx)
11468             # Green Hills C++ Compiler
11469             lt_prog_compiler_pic_CXX='-PIC'
11470             ;;
11471           *)
11472             ;;
11473         esac
11474         ;;
11475       sunos4*)
11476         case $cc_basename in
11477           CC)
11478             # Sun C++ 4.x
11479             lt_prog_compiler_pic_CXX='-pic'
11480             lt_prog_compiler_static_CXX='-Bstatic'
11481             ;;
11482           lcc)
11483             # Lucid
11484             lt_prog_compiler_pic_CXX='-pic'
11485             ;;
11486           *)
11487             ;;
11488         esac
11489         ;;
11490       tandem*)
11491         case $cc_basename in
11492           NCC)
11493             # NonStop-UX NCC 3.20
11494             lt_prog_compiler_pic_CXX='-KPIC'
11495             ;;
11496           *)
11497             ;;
11498         esac
11499         ;;
11500       unixware*)
11501         ;;
11502       vxworks*)
11503         ;;
11504       *)
11505         lt_prog_compiler_can_build_shared_CXX=no
11506         ;;
11507     esac
11508   fi
11509
11510 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11511 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11512
11513 #
11514 # Check to make sure the PIC flag actually works.
11515 #
11516 if test -n "$lt_prog_compiler_pic_CXX"; then
11517
11518 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11519 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11520 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11521   echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523   lt_prog_compiler_pic_works_CXX=no
11524   ac_outfile=conftest.$ac_objext
11525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11526    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11527    # Insert the option either (1) after the last *FLAGS variable, or
11528    # (2) before a word containing "conftest.", or (3) at the end.
11529    # Note that $ac_compile itself does not contain backslashes and begins
11530    # with a dollar sign (not a hyphen), so the echo should work correctly.
11531    # The option is referenced via a variable to avoid confusing sed.
11532    lt_compile=`echo "$ac_compile" | $SED \
11533    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11535    -e 's:$: $lt_compiler_flag:'`
11536    (eval echo "\"\$as_me:11536: $lt_compile\"" >&5)
11537    (eval "$lt_compile" 2>conftest.err)
11538    ac_status=$?
11539    cat conftest.err >&5
11540    echo "$as_me:11540: \$? = $ac_status" >&5
11541    if (exit $ac_status) && test -s "$ac_outfile"; then
11542      # The compiler can only warn and ignore the option if not recognized
11543      # So say no if there are warnings
11544      if test ! -s conftest.err; then
11545        lt_prog_compiler_pic_works_CXX=yes
11546      fi
11547    fi
11548    $rm conftest*
11549
11550 fi
11551 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11552 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11553
11554 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11555     case $lt_prog_compiler_pic_CXX in
11556      "" | " "*) ;;
11557      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11558      esac
11559 else
11560     lt_prog_compiler_pic_CXX=
11561      lt_prog_compiler_can_build_shared_CXX=no
11562 fi
11563
11564 fi
11565 case "$host_os" in
11566   # For platforms which do not support PIC, -DPIC is meaningless:
11567   *djgpp*)
11568     lt_prog_compiler_pic_CXX=
11569     ;;
11570   *)
11571     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11572     ;;
11573 esac
11574
11575 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11576 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11577 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11578   echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580   lt_cv_prog_compiler_c_o_CXX=no
11581    $rm -r conftest 2>/dev/null
11582    mkdir conftest
11583    cd conftest
11584    mkdir out
11585    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11586
11587    lt_compiler_flag="-o out/conftest2.$ac_objext"
11588    # Insert the option either (1) after the last *FLAGS variable, or
11589    # (2) before a word containing "conftest.", or (3) at the end.
11590    # Note that $ac_compile itself does not contain backslashes and begins
11591    # with a dollar sign (not a hyphen), so the echo should work correctly.
11592    lt_compile=`echo "$ac_compile" | $SED \
11593    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11595    -e 's:$: $lt_compiler_flag:'`
11596    (eval echo "\"\$as_me:11596: $lt_compile\"" >&5)
11597    (eval "$lt_compile" 2>out/conftest.err)
11598    ac_status=$?
11599    cat out/conftest.err >&5
11600    echo "$as_me:11600: \$? = $ac_status" >&5
11601    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11602    then
11603      # The compiler can only warn and ignore the option if not recognized
11604      # So say no if there are warnings
11605      if test ! -s out/conftest.err; then
11606        lt_cv_prog_compiler_c_o_CXX=yes
11607      fi
11608    fi
11609    chmod u+w .
11610    $rm conftest*
11611    # SGI C++ compiler will create directory out/ii_files/ for
11612    # template instantiation
11613    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11614    $rm out/* && rmdir out
11615    cd ..
11616    rmdir conftest
11617    $rm conftest*
11618
11619 fi
11620 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11621 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11622
11623
11624 hard_links="nottested"
11625 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11626   # do not overwrite the value of need_locks provided by the user
11627   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11628 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11629   hard_links=yes
11630   $rm conftest*
11631   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11632   touch conftest.a
11633   ln conftest.a conftest.b 2>&5 || hard_links=no
11634   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11635   echo "$as_me:$LINENO: result: $hard_links" >&5
11636 echo "${ECHO_T}$hard_links" >&6
11637   if test "$hard_links" = no; then
11638     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11639 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11640     need_locks=warn
11641   fi
11642 else
11643   need_locks=no
11644 fi
11645
11646 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11647 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11648
11649   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11650   case $host_os in
11651   aix4* | aix5*)
11652     # If we're using GNU nm, then we don't want the "-C" option.
11653     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11654     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11655       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'
11656     else
11657       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'
11658     fi
11659     ;;
11660   pw32*)
11661     export_symbols_cmds_CXX="$ltdll_cmds"
11662   ;;
11663   cygwin* | mingw*)
11664     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11665   ;;
11666   *)
11667     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11668   ;;
11669   esac
11670
11671 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11672 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11673 test "$ld_shlibs_CXX" = no && can_build_shared=no
11674
11675 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11676 if test "$GCC" = yes; then
11677   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11678 fi
11679
11680 #
11681 # Do we need to explicitly link libc?
11682 #
11683 case "x$archive_cmds_need_lc_CXX" in
11684 x|xyes)
11685   # Assume -lc should be added
11686   archive_cmds_need_lc_CXX=yes
11687
11688   if test "$enable_shared" = yes && test "$GCC" = yes; then
11689     case $archive_cmds_CXX in
11690     *'~'*)
11691       # FIXME: we may have to deal with multi-command sequences.
11692       ;;
11693     '$CC '*)
11694       # Test whether the compiler implicitly links with -lc since on some
11695       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11696       # to ld, don't add -lc before -lgcc.
11697       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11698 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11699       $rm conftest*
11700       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11701
11702       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11703   (eval $ac_compile) 2>&5
11704   ac_status=$?
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } 2>conftest.err; then
11707         soname=conftest
11708         lib=conftest
11709         libobjs=conftest.$ac_objext
11710         deplibs=
11711         wl=$lt_prog_compiler_wl_CXX
11712         compiler_flags=-v
11713         linker_flags=-v
11714         verstring=
11715         output_objdir=.
11716         libname=conftest
11717         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11718         allow_undefined_flag_CXX=
11719         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11720   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); }
11724         then
11725           archive_cmds_need_lc_CXX=no
11726         else
11727           archive_cmds_need_lc_CXX=yes
11728         fi
11729         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11730       else
11731         cat conftest.err 1>&5
11732       fi
11733       $rm conftest*
11734       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11735 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11736       ;;
11737     esac
11738   fi
11739   ;;
11740 esac
11741
11742 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11743 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11744 library_names_spec=
11745 libname_spec='lib$name'
11746 soname_spec=
11747 shrext_cmds=".so"
11748 postinstall_cmds=
11749 postuninstall_cmds=
11750 finish_cmds=
11751 finish_eval=
11752 shlibpath_var=
11753 shlibpath_overrides_runpath=unknown
11754 version_type=none
11755 dynamic_linker="$host_os ld.so"
11756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11757 if test "$GCC" = yes; then
11758   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11759   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11760     # if the path contains ";" then we assume it to be the separator
11761     # otherwise default to the standard path separator (i.e. ":") - it is
11762     # assumed that no part of a normal pathname contains ";" but that should
11763     # okay in the real world where ";" in dirpaths is itself problematic.
11764     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11765   else
11766     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11767   fi
11768 else
11769   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11770 fi
11771 need_lib_prefix=unknown
11772 hardcode_into_libs=no
11773
11774 # when you set need_version to no, make sure it does not cause -set_version
11775 # flags to be left without arguments
11776 need_version=unknown
11777
11778 case $host_os in
11779 aix3*)
11780   version_type=linux
11781   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11782   shlibpath_var=LIBPATH
11783
11784   # AIX 3 has no versioning support, so we append a major version to the name.
11785   soname_spec='${libname}${release}${shared_ext}$major'
11786   ;;
11787
11788 aix4* | aix5*)
11789   version_type=linux
11790   need_lib_prefix=no
11791   need_version=no
11792   hardcode_into_libs=yes
11793   if test "$host_cpu" = ia64; then
11794     # AIX 5 supports IA64
11795     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11796     shlibpath_var=LD_LIBRARY_PATH
11797   else
11798     # With GCC up to 2.95.x, collect2 would create an import file
11799     # for dependence libraries.  The import file would start with
11800     # the line `#! .'.  This would cause the generated library to
11801     # depend on `.', always an invalid library.  This was fixed in
11802     # development snapshots of GCC prior to 3.0.
11803     case $host_os in
11804       aix4 | aix4.[01] | aix4.[01].*)
11805       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11806            echo ' yes '
11807            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11808         :
11809       else
11810         can_build_shared=no
11811       fi
11812       ;;
11813     esac
11814     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11815     # soname into executable. Probably we can add versioning support to
11816     # collect2, so additional links can be useful in future.
11817     if test "$aix_use_runtimelinking" = yes; then
11818       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11819       # instead of lib<name>.a to let people know that these are not
11820       # typical AIX shared libraries.
11821       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822     else
11823       # We preserve .a as extension for shared libraries through AIX4.2
11824       # and later when we are not doing run time linking.
11825       library_names_spec='${libname}${release}.a $libname.a'
11826       soname_spec='${libname}${release}${shared_ext}$major'
11827     fi
11828     shlibpath_var=LIBPATH
11829   fi
11830   ;;
11831
11832 amigaos*)
11833   library_names_spec='$libname.ixlibrary $libname.a'
11834   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11835   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'
11836   ;;
11837
11838 beos*)
11839   library_names_spec='${libname}${shared_ext}'
11840   dynamic_linker="$host_os ld.so"
11841   shlibpath_var=LIBRARY_PATH
11842   ;;
11843
11844 bsdi[45]*)
11845   version_type=linux
11846   need_version=no
11847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11848   soname_spec='${libname}${release}${shared_ext}$major'
11849   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11850   shlibpath_var=LD_LIBRARY_PATH
11851   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11852   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11853   # the default ld.so.conf also contains /usr/contrib/lib and
11854   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11855   # libtool to hard-code these into programs
11856   ;;
11857
11858 cygwin* | mingw* | pw32*)
11859   version_type=windows
11860   shrext_cmds=".dll"
11861   need_version=no
11862   need_lib_prefix=no
11863
11864   case $GCC,$host_os in
11865   yes,cygwin* | yes,mingw* | yes,pw32*)
11866     library_names_spec='$libname.dll.a'
11867     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11868     postinstall_cmds='base_file=`basename \${file}`~
11869       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11870       dldir=$destdir/`dirname \$dlpath`~
11871       test -d \$dldir || mkdir -p \$dldir~
11872       $install_prog $dir/$dlname \$dldir/$dlname'
11873     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11874       dlpath=$dir/\$dldll~
11875        $rm \$dlpath'
11876     shlibpath_overrides_runpath=yes
11877
11878     case $host_os in
11879     cygwin*)
11880       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11881       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11882       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11883       ;;
11884     mingw*)
11885       # MinGW DLLs use traditional 'lib' prefix
11886       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11887       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11888       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11889         # It is most probably a Windows format PATH printed by
11890         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11891         # path with ; separators, and with drive letters. We can handle the
11892         # drive letters (cygwin fileutils understands them), so leave them,
11893         # especially as we might pass files found there to a mingw objdump,
11894         # which wouldn't understand a cygwinified path. Ahh.
11895         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11896       else
11897         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11898       fi
11899       ;;
11900     pw32*)
11901       # pw32 DLLs use 'pw' prefix rather than 'lib'
11902       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11903       ;;
11904     esac
11905     ;;
11906
11907   *)
11908     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11909     ;;
11910   esac
11911   dynamic_linker='Win32 ld.exe'
11912   # FIXME: first we should search . and the directory the executable is in
11913   shlibpath_var=PATH
11914   ;;
11915
11916 darwin* | rhapsody*)
11917   dynamic_linker="$host_os dyld"
11918   version_type=darwin
11919   need_lib_prefix=no
11920   need_version=no
11921   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11922   soname_spec='${libname}${release}${major}$shared_ext'
11923   shlibpath_overrides_runpath=yes
11924   shlibpath_var=DYLD_LIBRARY_PATH
11925   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11926   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11927   if test "$GCC" = yes; then
11928     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11929   else
11930     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11931   fi
11932   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11933   ;;
11934
11935 dgux*)
11936   version_type=linux
11937   need_lib_prefix=no
11938   need_version=no
11939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11940   soname_spec='${libname}${release}${shared_ext}$major'
11941   shlibpath_var=LD_LIBRARY_PATH
11942   ;;
11943
11944 freebsd1*)
11945   dynamic_linker=no
11946   ;;
11947
11948 kfreebsd*-gnu)
11949   version_type=linux
11950   need_lib_prefix=no
11951   need_version=no
11952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11953   soname_spec='${libname}${release}${shared_ext}$major'
11954   shlibpath_var=LD_LIBRARY_PATH
11955   shlibpath_overrides_runpath=no
11956   hardcode_into_libs=yes
11957   dynamic_linker='GNU ld.so'
11958   ;;
11959
11960 freebsd*)
11961   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11962   version_type=freebsd-$objformat
11963   case $version_type in
11964     freebsd-elf*)
11965       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11966       need_version=no
11967       need_lib_prefix=no
11968       ;;
11969     freebsd-*)
11970       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11971       need_version=yes
11972       ;;
11973   esac
11974   shlibpath_var=LD_LIBRARY_PATH
11975   case $host_os in
11976   freebsd2*)
11977     shlibpath_overrides_runpath=yes
11978     ;;
11979   freebsd3.01* | freebsdelf3.01*)
11980     shlibpath_overrides_runpath=yes
11981     hardcode_into_libs=yes
11982     ;;
11983   *) # from 3.2 on
11984     shlibpath_overrides_runpath=no
11985     hardcode_into_libs=yes
11986     ;;
11987   esac
11988   ;;
11989
11990 gnu*)
11991   version_type=linux
11992   need_lib_prefix=no
11993   need_version=no
11994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11995   soname_spec='${libname}${release}${shared_ext}$major'
11996   shlibpath_var=LD_LIBRARY_PATH
11997   hardcode_into_libs=yes
11998   ;;
11999
12000 hpux9* | hpux10* | hpux11*)
12001   # Give a soname corresponding to the major version so that dld.sl refuses to
12002   # link against other versions.
12003   version_type=sunos
12004   need_lib_prefix=no
12005   need_version=no
12006   case "$host_cpu" in
12007   ia64*)
12008     shrext_cmds='.so'
12009     hardcode_into_libs=yes
12010     dynamic_linker="$host_os dld.so"
12011     shlibpath_var=LD_LIBRARY_PATH
12012     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12013     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12014     soname_spec='${libname}${release}${shared_ext}$major'
12015     if test "X$HPUX_IA64_MODE" = X32; then
12016       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12017     else
12018       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12019     fi
12020     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12021     ;;
12022    hppa*64*)
12023      shrext_cmds='.sl'
12024      hardcode_into_libs=yes
12025      dynamic_linker="$host_os dld.sl"
12026      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12027      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12028      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12029      soname_spec='${libname}${release}${shared_ext}$major'
12030      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12031      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12032      ;;
12033    *)
12034     shrext_cmds='.sl'
12035     dynamic_linker="$host_os dld.sl"
12036     shlibpath_var=SHLIB_PATH
12037     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12038     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12039     soname_spec='${libname}${release}${shared_ext}$major'
12040     ;;
12041   esac
12042   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12043   postinstall_cmds='chmod 555 $lib'
12044   ;;
12045
12046 irix5* | irix6* | nonstopux*)
12047   case $host_os in
12048     nonstopux*) version_type=nonstopux ;;
12049     *)
12050         if test "$lt_cv_prog_gnu_ld" = yes; then
12051                 version_type=linux
12052         else
12053                 version_type=irix
12054         fi ;;
12055   esac
12056   need_lib_prefix=no
12057   need_version=no
12058   soname_spec='${libname}${release}${shared_ext}$major'
12059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12060   case $host_os in
12061   irix5* | nonstopux*)
12062     libsuff= shlibsuff=
12063     ;;
12064   *)
12065     case $LD in # libtool.m4 will add one of these switches to LD
12066     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12067       libsuff= shlibsuff= libmagic=32-bit;;
12068     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12069       libsuff=32 shlibsuff=N32 libmagic=N32;;
12070     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12071       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12072     *) libsuff= shlibsuff= libmagic=never-match;;
12073     esac
12074     ;;
12075   esac
12076   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12077   shlibpath_overrides_runpath=no
12078   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12079   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12080   hardcode_into_libs=yes
12081   ;;
12082
12083 # No shared lib support for Linux oldld, aout, or coff.
12084 linux*oldld* | linux*aout* | linux*coff*)
12085   dynamic_linker=no
12086   ;;
12087
12088 # This must be Linux ELF.
12089 linux*)
12090   version_type=linux
12091   need_lib_prefix=no
12092   need_version=no
12093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12094   soname_spec='${libname}${release}${shared_ext}$major'
12095   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12096   shlibpath_var=LD_LIBRARY_PATH
12097   shlibpath_overrides_runpath=no
12098   # This implies no fast_install, which is unacceptable.
12099   # Some rework will be needed to allow for fast_install
12100   # before this can be enabled.
12101   hardcode_into_libs=yes
12102
12103   # Append ld.so.conf contents to the search path
12104   if test -f /etc/ld.so.conf; then
12105     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12106     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12107   fi
12108
12109   # We used to test for /lib/ld.so.1 and disable shared libraries on
12110   # powerpc, because MkLinux only supported shared libraries with the
12111   # GNU dynamic linker.  Since this was broken with cross compilers,
12112   # most powerpc-linux boxes support dynamic linking these days and
12113   # people can always --disable-shared, the test was removed, and we
12114   # assume the GNU/Linux dynamic linker is in use.
12115   dynamic_linker='GNU/Linux ld.so'
12116   ;;
12117
12118 knetbsd*-gnu)
12119   version_type=linux
12120   need_lib_prefix=no
12121   need_version=no
12122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12123   soname_spec='${libname}${release}${shared_ext}$major'
12124   shlibpath_var=LD_LIBRARY_PATH
12125   shlibpath_overrides_runpath=no
12126   hardcode_into_libs=yes
12127   dynamic_linker='GNU ld.so'
12128   ;;
12129
12130 netbsd*)
12131   version_type=sunos
12132   need_lib_prefix=no
12133   need_version=no
12134   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12136     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12137     dynamic_linker='NetBSD (a.out) ld.so'
12138   else
12139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12140     soname_spec='${libname}${release}${shared_ext}$major'
12141     dynamic_linker='NetBSD ld.elf_so'
12142   fi
12143   shlibpath_var=LD_LIBRARY_PATH
12144   shlibpath_overrides_runpath=yes
12145   hardcode_into_libs=yes
12146   ;;
12147
12148 newsos6)
12149   version_type=linux
12150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12151   shlibpath_var=LD_LIBRARY_PATH
12152   shlibpath_overrides_runpath=yes
12153   ;;
12154
12155 nto-qnx*)
12156   version_type=linux
12157   need_lib_prefix=no
12158   need_version=no
12159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160   soname_spec='${libname}${release}${shared_ext}$major'
12161   shlibpath_var=LD_LIBRARY_PATH
12162   shlibpath_overrides_runpath=yes
12163   ;;
12164
12165 openbsd*)
12166   version_type=sunos
12167   need_lib_prefix=no
12168   need_version=no
12169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12170   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12171   shlibpath_var=LD_LIBRARY_PATH
12172   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12173     case $host_os in
12174       openbsd2.[89] | openbsd2.[89].*)
12175         shlibpath_overrides_runpath=no
12176         ;;
12177       *)
12178         shlibpath_overrides_runpath=yes
12179         ;;
12180       esac
12181   else
12182     shlibpath_overrides_runpath=yes
12183   fi
12184   ;;
12185
12186 os2*)
12187   libname_spec='$name'
12188   shrext_cmds=".dll"
12189   need_lib_prefix=no
12190   library_names_spec='$libname${shared_ext} $libname.a'
12191   dynamic_linker='OS/2 ld.exe'
12192   shlibpath_var=LIBPATH
12193   ;;
12194
12195 osf3* | osf4* | osf5*)
12196   version_type=osf
12197   need_lib_prefix=no
12198   need_version=no
12199   soname_spec='${libname}${release}${shared_ext}$major'
12200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12201   shlibpath_var=LD_LIBRARY_PATH
12202   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12203   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12204   ;;
12205
12206 sco3.2v5*)
12207   version_type=osf
12208   soname_spec='${libname}${release}${shared_ext}$major'
12209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12210   shlibpath_var=LD_LIBRARY_PATH
12211   ;;
12212
12213 solaris*)
12214   version_type=linux
12215   need_lib_prefix=no
12216   need_version=no
12217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12218   soname_spec='${libname}${release}${shared_ext}$major'
12219   shlibpath_var=LD_LIBRARY_PATH
12220   shlibpath_overrides_runpath=yes
12221   hardcode_into_libs=yes
12222   # ldd complains unless libraries are executable
12223   postinstall_cmds='chmod +x $lib'
12224   ;;
12225
12226 sunos4*)
12227   version_type=sunos
12228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12229   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12230   shlibpath_var=LD_LIBRARY_PATH
12231   shlibpath_overrides_runpath=yes
12232   if test "$with_gnu_ld" = yes; then
12233     need_lib_prefix=no
12234   fi
12235   need_version=yes
12236   ;;
12237
12238 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12239   version_type=linux
12240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12241   soname_spec='${libname}${release}${shared_ext}$major'
12242   shlibpath_var=LD_LIBRARY_PATH
12243   case $host_vendor in
12244     sni)
12245       shlibpath_overrides_runpath=no
12246       need_lib_prefix=no
12247       export_dynamic_flag_spec='${wl}-Blargedynsym'
12248       runpath_var=LD_RUN_PATH
12249       ;;
12250     siemens)
12251       need_lib_prefix=no
12252       ;;
12253     motorola)
12254       need_lib_prefix=no
12255       need_version=no
12256       shlibpath_overrides_runpath=no
12257       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12258       ;;
12259   esac
12260   ;;
12261
12262 sysv4*MP*)
12263   if test -d /usr/nec ;then
12264     version_type=linux
12265     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12266     soname_spec='$libname${shared_ext}.$major'
12267     shlibpath_var=LD_LIBRARY_PATH
12268   fi
12269   ;;
12270
12271 uts4*)
12272   version_type=linux
12273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12274   soname_spec='${libname}${release}${shared_ext}$major'
12275   shlibpath_var=LD_LIBRARY_PATH
12276   ;;
12277
12278 *)
12279   dynamic_linker=no
12280   ;;
12281 esac
12282 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12283 echo "${ECHO_T}$dynamic_linker" >&6
12284 test "$dynamic_linker" = no && can_build_shared=no
12285
12286 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12287 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12288 hardcode_action_CXX=
12289 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12290    test -n "$runpath_var_CXX" || \
12291    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12292
12293   # We can hardcode non-existant directories.
12294   if test "$hardcode_direct_CXX" != no &&
12295      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12296      # have to relink, otherwise we might link with an installed library
12297      # when we should be linking with a yet-to-be-installed one
12298      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12299      test "$hardcode_minus_L_CXX" != no; then
12300     # Linking always hardcodes the temporary library directory.
12301     hardcode_action_CXX=relink
12302   else
12303     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12304     hardcode_action_CXX=immediate
12305   fi
12306 else
12307   # We cannot hardcode anything, or else we can only hardcode existing
12308   # directories.
12309   hardcode_action_CXX=unsupported
12310 fi
12311 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12312 echo "${ECHO_T}$hardcode_action_CXX" >&6
12313
12314 if test "$hardcode_action_CXX" = relink; then
12315   # Fast installation is not supported
12316   enable_fast_install=no
12317 elif test "$shlibpath_overrides_runpath" = yes ||
12318      test "$enable_shared" = no; then
12319   # Fast installation is not necessary
12320   enable_fast_install=needless
12321 fi
12322
12323 striplib=
12324 old_striplib=
12325 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12326 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12327 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12328   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12329   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12330   echo "$as_me:$LINENO: result: yes" >&5
12331 echo "${ECHO_T}yes" >&6
12332 else
12333 # FIXME - insert some real tests, host_os isn't really good enough
12334   case $host_os in
12335    darwin*)
12336        if test -n "$STRIP" ; then
12337          striplib="$STRIP -x"
12338          echo "$as_me:$LINENO: result: yes" >&5
12339 echo "${ECHO_T}yes" >&6
12340        else
12341   echo "$as_me:$LINENO: result: no" >&5
12342 echo "${ECHO_T}no" >&6
12343 fi
12344        ;;
12345    *)
12346   echo "$as_me:$LINENO: result: no" >&5
12347 echo "${ECHO_T}no" >&6
12348     ;;
12349   esac
12350 fi
12351
12352 if test "x$enable_dlopen" != xyes; then
12353   enable_dlopen=unknown
12354   enable_dlopen_self=unknown
12355   enable_dlopen_self_static=unknown
12356 else
12357   lt_cv_dlopen=no
12358   lt_cv_dlopen_libs=
12359
12360   case $host_os in
12361   beos*)
12362     lt_cv_dlopen="load_add_on"
12363     lt_cv_dlopen_libs=
12364     lt_cv_dlopen_self=yes
12365     ;;
12366
12367   mingw* | pw32*)
12368     lt_cv_dlopen="LoadLibrary"
12369     lt_cv_dlopen_libs=
12370    ;;
12371
12372   cygwin*)
12373     lt_cv_dlopen="dlopen"
12374     lt_cv_dlopen_libs=
12375    ;;
12376
12377   darwin*)
12378   # if libdl is installed we need to link against it
12379     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12380 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12381 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12382   echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384   ac_check_lib_save_LIBS=$LIBS
12385 LIBS="-ldl  $LIBS"
12386 cat >conftest.$ac_ext <<_ACEOF
12387 /* confdefs.h.  */
12388 _ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h.  */
12392
12393 /* Override any gcc2 internal prototype to avoid an error.  */
12394 #ifdef __cplusplus
12395 extern "C"
12396 #endif
12397 /* We use char because int might match the return type of a gcc2
12398    builtin and then its argument prototype would still apply.  */
12399 char dlopen ();
12400 int
12401 main ()
12402 {
12403 dlopen ();
12404   ;
12405   return 0;
12406 }
12407 _ACEOF
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410   (eval $ac_link) 2>conftest.er1
12411   ac_status=$?
12412   grep -v '^ *+' conftest.er1 >conftest.err
12413   rm -f conftest.er1
12414   cat conftest.err >&5
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } &&
12417          { ac_try='test -z "$ac_cxx_werror_flag"
12418                          || test ! -s conftest.err'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; } &&
12424          { ac_try='test -s conftest$ac_exeext'
12425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426   (eval $ac_try) 2>&5
12427   ac_status=$?
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); }; }; then
12430   ac_cv_lib_dl_dlopen=yes
12431 else
12432   echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12434
12435 ac_cv_lib_dl_dlopen=no
12436 fi
12437 rm -f conftest.err conftest.$ac_objext \
12438       conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12440 fi
12441 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12442 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12443 if test $ac_cv_lib_dl_dlopen = yes; then
12444   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12445 else
12446
12447     lt_cv_dlopen="dyld"
12448     lt_cv_dlopen_libs=
12449     lt_cv_dlopen_self=yes
12450
12451 fi
12452
12453    ;;
12454
12455   *)
12456     echo "$as_me:$LINENO: checking for shl_load" >&5
12457 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12458 if test "${ac_cv_func_shl_load+set}" = set; then
12459   echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461   cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h.  */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h.  */
12467 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12469 #define shl_load innocuous_shl_load
12470
12471 /* System header to define __stub macros and hopefully few prototypes,
12472     which can conflict with char shl_load (); below.
12473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12474     <limits.h> exists even on freestanding compilers.  */
12475
12476 #ifdef __STDC__
12477 # include <limits.h>
12478 #else
12479 # include <assert.h>
12480 #endif
12481
12482 #undef shl_load
12483
12484 /* Override any gcc2 internal prototype to avoid an error.  */
12485 #ifdef __cplusplus
12486 extern "C"
12487 {
12488 #endif
12489 /* We use char because int might match the return type of a gcc2
12490    builtin and then its argument prototype would still apply.  */
12491 char shl_load ();
12492 /* The GNU C library defines this for functions which it implements
12493     to always fail with ENOSYS.  Some functions are actually named
12494     something starting with __ and the normal name is an alias.  */
12495 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12496 choke me
12497 #else
12498 char (*f) () = shl_load;
12499 #endif
12500 #ifdef __cplusplus
12501 }
12502 #endif
12503
12504 int
12505 main ()
12506 {
12507 return f != shl_load;
12508   ;
12509   return 0;
12510 }
12511 _ACEOF
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514   (eval $ac_link) 2>conftest.er1
12515   ac_status=$?
12516   grep -v '^ *+' conftest.er1 >conftest.err
12517   rm -f conftest.er1
12518   cat conftest.err >&5
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); } &&
12521          { ac_try='test -z "$ac_cxx_werror_flag"
12522                          || test ! -s conftest.err'
12523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524   (eval $ac_try) 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; } &&
12528          { ac_try='test -s conftest$ac_exeext'
12529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530   (eval $ac_try) 2>&5
12531   ac_status=$?
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); }; }; then
12534   ac_cv_func_shl_load=yes
12535 else
12536   echo "$as_me: failed program was:" >&5
12537 sed 's/^/| /' conftest.$ac_ext >&5
12538
12539 ac_cv_func_shl_load=no
12540 fi
12541 rm -f conftest.err conftest.$ac_objext \
12542       conftest$ac_exeext conftest.$ac_ext
12543 fi
12544 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12545 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12546 if test $ac_cv_func_shl_load = yes; then
12547   lt_cv_dlopen="shl_load"
12548 else
12549   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12550 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12551 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12552   echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12554   ac_check_lib_save_LIBS=$LIBS
12555 LIBS="-ldld  $LIBS"
12556 cat >conftest.$ac_ext <<_ACEOF
12557 /* confdefs.h.  */
12558 _ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h.  */
12562
12563 /* Override any gcc2 internal prototype to avoid an error.  */
12564 #ifdef __cplusplus
12565 extern "C"
12566 #endif
12567 /* We use char because int might match the return type of a gcc2
12568    builtin and then its argument prototype would still apply.  */
12569 char shl_load ();
12570 int
12571 main ()
12572 {
12573 shl_load ();
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 rm -f conftest.$ac_objext conftest$ac_exeext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12580   (eval $ac_link) 2>conftest.er1
12581   ac_status=$?
12582   grep -v '^ *+' conftest.er1 >conftest.err
12583   rm -f conftest.er1
12584   cat conftest.err >&5
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); } &&
12587          { ac_try='test -z "$ac_cxx_werror_flag"
12588                          || test ! -s conftest.err'
12589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590   (eval $ac_try) 2>&5
12591   ac_status=$?
12592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); }; } &&
12594          { ac_try='test -s conftest$ac_exeext'
12595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596   (eval $ac_try) 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); }; }; then
12600   ac_cv_lib_dld_shl_load=yes
12601 else
12602   echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12604
12605 ac_cv_lib_dld_shl_load=no
12606 fi
12607 rm -f conftest.err conftest.$ac_objext \
12608       conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12610 fi
12611 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12612 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12613 if test $ac_cv_lib_dld_shl_load = yes; then
12614   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12615 else
12616   echo "$as_me:$LINENO: checking for dlopen" >&5
12617 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12618 if test "${ac_cv_func_dlopen+set}" = set; then
12619   echo $ECHO_N "(cached) $ECHO_C" >&6
12620 else
12621   cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h.  */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h.  */
12627 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12629 #define dlopen innocuous_dlopen
12630
12631 /* System header to define __stub macros and hopefully few prototypes,
12632     which can conflict with char dlopen (); below.
12633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12634     <limits.h> exists even on freestanding compilers.  */
12635
12636 #ifdef __STDC__
12637 # include <limits.h>
12638 #else
12639 # include <assert.h>
12640 #endif
12641
12642 #undef dlopen
12643
12644 /* Override any gcc2 internal prototype to avoid an error.  */
12645 #ifdef __cplusplus
12646 extern "C"
12647 {
12648 #endif
12649 /* We use char because int might match the return type of a gcc2
12650    builtin and then its argument prototype would still apply.  */
12651 char dlopen ();
12652 /* The GNU C library defines this for functions which it implements
12653     to always fail with ENOSYS.  Some functions are actually named
12654     something starting with __ and the normal name is an alias.  */
12655 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12656 choke me
12657 #else
12658 char (*f) () = dlopen;
12659 #endif
12660 #ifdef __cplusplus
12661 }
12662 #endif
12663
12664 int
12665 main ()
12666 {
12667 return f != dlopen;
12668   ;
12669   return 0;
12670 }
12671 _ACEOF
12672 rm -f conftest.$ac_objext conftest$ac_exeext
12673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12674   (eval $ac_link) 2>conftest.er1
12675   ac_status=$?
12676   grep -v '^ *+' conftest.er1 >conftest.err
12677   rm -f conftest.er1
12678   cat conftest.err >&5
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); } &&
12681          { ac_try='test -z "$ac_cxx_werror_flag"
12682                          || test ! -s conftest.err'
12683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684   (eval $ac_try) 2>&5
12685   ac_status=$?
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); }; } &&
12688          { ac_try='test -s conftest$ac_exeext'
12689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690   (eval $ac_try) 2>&5
12691   ac_status=$?
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); }; }; then
12694   ac_cv_func_dlopen=yes
12695 else
12696   echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12698
12699 ac_cv_func_dlopen=no
12700 fi
12701 rm -f conftest.err conftest.$ac_objext \
12702       conftest$ac_exeext conftest.$ac_ext
12703 fi
12704 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12705 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12706 if test $ac_cv_func_dlopen = yes; then
12707   lt_cv_dlopen="dlopen"
12708 else
12709   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12710 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12712   echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714   ac_check_lib_save_LIBS=$LIBS
12715 LIBS="-ldl  $LIBS"
12716 cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h.  */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h.  */
12722
12723 /* Override any gcc2 internal prototype to avoid an error.  */
12724 #ifdef __cplusplus
12725 extern "C"
12726 #endif
12727 /* We use char because int might match the return type of a gcc2
12728    builtin and then its argument prototype would still apply.  */
12729 char dlopen ();
12730 int
12731 main ()
12732 {
12733 dlopen ();
12734   ;
12735   return 0;
12736 }
12737 _ACEOF
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12740   (eval $ac_link) 2>conftest.er1
12741   ac_status=$?
12742   grep -v '^ *+' conftest.er1 >conftest.err
12743   rm -f conftest.er1
12744   cat conftest.err >&5
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); } &&
12747          { ac_try='test -z "$ac_cxx_werror_flag"
12748                          || test ! -s conftest.err'
12749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750   (eval $ac_try) 2>&5
12751   ac_status=$?
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); }; } &&
12754          { ac_try='test -s conftest$ac_exeext'
12755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756   (eval $ac_try) 2>&5
12757   ac_status=$?
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); }; }; then
12760   ac_cv_lib_dl_dlopen=yes
12761 else
12762   echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12764
12765 ac_cv_lib_dl_dlopen=no
12766 fi
12767 rm -f conftest.err conftest.$ac_objext \
12768       conftest$ac_exeext conftest.$ac_ext
12769 LIBS=$ac_check_lib_save_LIBS
12770 fi
12771 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12772 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12773 if test $ac_cv_lib_dl_dlopen = yes; then
12774   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12775 else
12776   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12777 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12778 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12779   echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781   ac_check_lib_save_LIBS=$LIBS
12782 LIBS="-lsvld  $LIBS"
12783 cat >conftest.$ac_ext <<_ACEOF
12784 /* confdefs.h.  */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h.  */
12789
12790 /* Override any gcc2 internal prototype to avoid an error.  */
12791 #ifdef __cplusplus
12792 extern "C"
12793 #endif
12794 /* We use char because int might match the return type of a gcc2
12795    builtin and then its argument prototype would still apply.  */
12796 char dlopen ();
12797 int
12798 main ()
12799 {
12800 dlopen ();
12801   ;
12802   return 0;
12803 }
12804 _ACEOF
12805 rm -f conftest.$ac_objext conftest$ac_exeext
12806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12807   (eval $ac_link) 2>conftest.er1
12808   ac_status=$?
12809   grep -v '^ *+' conftest.er1 >conftest.err
12810   rm -f conftest.er1
12811   cat conftest.err >&5
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); } &&
12814          { ac_try='test -z "$ac_cxx_werror_flag"
12815                          || test ! -s conftest.err'
12816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817   (eval $ac_try) 2>&5
12818   ac_status=$?
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); }; } &&
12821          { ac_try='test -s conftest$ac_exeext'
12822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823   (eval $ac_try) 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); }; }; then
12827   ac_cv_lib_svld_dlopen=yes
12828 else
12829   echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12831
12832 ac_cv_lib_svld_dlopen=no
12833 fi
12834 rm -f conftest.err conftest.$ac_objext \
12835       conftest$ac_exeext conftest.$ac_ext
12836 LIBS=$ac_check_lib_save_LIBS
12837 fi
12838 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12839 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12840 if test $ac_cv_lib_svld_dlopen = yes; then
12841   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12842 else
12843   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12844 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12845 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12846   echo $ECHO_N "(cached) $ECHO_C" >&6
12847 else
12848   ac_check_lib_save_LIBS=$LIBS
12849 LIBS="-ldld  $LIBS"
12850 cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h.  */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h.  */
12856
12857 /* Override any gcc2 internal prototype to avoid an error.  */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 /* We use char because int might match the return type of a gcc2
12862    builtin and then its argument prototype would still apply.  */
12863 char dld_link ();
12864 int
12865 main ()
12866 {
12867 dld_link ();
12868   ;
12869   return 0;
12870 }
12871 _ACEOF
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12874   (eval $ac_link) 2>conftest.er1
12875   ac_status=$?
12876   grep -v '^ *+' conftest.er1 >conftest.err
12877   rm -f conftest.er1
12878   cat conftest.err >&5
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } &&
12881          { ac_try='test -z "$ac_cxx_werror_flag"
12882                          || test ! -s conftest.err'
12883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884   (eval $ac_try) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); }; } &&
12888          { ac_try='test -s conftest$ac_exeext'
12889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890   (eval $ac_try) 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; }; then
12894   ac_cv_lib_dld_dld_link=yes
12895 else
12896   echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12898
12899 ac_cv_lib_dld_dld_link=no
12900 fi
12901 rm -f conftest.err conftest.$ac_objext \
12902       conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12904 fi
12905 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12906 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12907 if test $ac_cv_lib_dld_dld_link = yes; then
12908   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12909 fi
12910
12911
12912 fi
12913
12914
12915 fi
12916
12917
12918 fi
12919
12920
12921 fi
12922
12923
12924 fi
12925
12926     ;;
12927   esac
12928
12929   if test "x$lt_cv_dlopen" != xno; then
12930     enable_dlopen=yes
12931   else
12932     enable_dlopen=no
12933   fi
12934
12935   case $lt_cv_dlopen in
12936   dlopen)
12937     save_CPPFLAGS="$CPPFLAGS"
12938     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12939
12940     save_LDFLAGS="$LDFLAGS"
12941     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12942
12943     save_LIBS="$LIBS"
12944     LIBS="$lt_cv_dlopen_libs $LIBS"
12945
12946     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12947 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12948 if test "${lt_cv_dlopen_self+set}" = set; then
12949   echo $ECHO_N "(cached) $ECHO_C" >&6
12950 else
12951           if test "$cross_compiling" = yes; then :
12952   lt_cv_dlopen_self=cross
12953 else
12954   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12955   lt_status=$lt_dlunknown
12956   cat > conftest.$ac_ext <<EOF
12957 #line 12957 "configure"
12958 #include "confdefs.h"
12959
12960 #if HAVE_DLFCN_H
12961 #include <dlfcn.h>
12962 #endif
12963
12964 #include <stdio.h>
12965
12966 #ifdef RTLD_GLOBAL
12967 #  define LT_DLGLOBAL           RTLD_GLOBAL
12968 #else
12969 #  ifdef DL_GLOBAL
12970 #    define LT_DLGLOBAL         DL_GLOBAL
12971 #  else
12972 #    define LT_DLGLOBAL         0
12973 #  endif
12974 #endif
12975
12976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12977    find out it does not work in some platform. */
12978 #ifndef LT_DLLAZY_OR_NOW
12979 #  ifdef RTLD_LAZY
12980 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12981 #  else
12982 #    ifdef DL_LAZY
12983 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12984 #    else
12985 #      ifdef RTLD_NOW
12986 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12987 #      else
12988 #        ifdef DL_NOW
12989 #          define LT_DLLAZY_OR_NOW      DL_NOW
12990 #        else
12991 #          define LT_DLLAZY_OR_NOW      0
12992 #        endif
12993 #      endif
12994 #    endif
12995 #  endif
12996 #endif
12997
12998 #ifdef __cplusplus
12999 extern "C" void exit (int);
13000 #endif
13001
13002 void fnord() { int i=42;}
13003 int main ()
13004 {
13005   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13006   int status = $lt_dlunknown;
13007
13008   if (self)
13009     {
13010       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13011       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13012       /* dlclose (self); */
13013     }
13014
13015     exit (status);
13016 }
13017 EOF
13018   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019   (eval $ac_link) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13023     (./conftest; exit; ) 2>/dev/null
13024     lt_status=$?
13025     case x$lt_status in
13026       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13027       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13028       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13029     esac
13030   else :
13031     # compilation failed
13032     lt_cv_dlopen_self=no
13033   fi
13034 fi
13035 rm -fr conftest*
13036
13037
13038 fi
13039 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13040 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13041
13042     if test "x$lt_cv_dlopen_self" = xyes; then
13043       LDFLAGS="$LDFLAGS $link_static_flag"
13044       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13045 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13046 if test "${lt_cv_dlopen_self_static+set}" = set; then
13047   echo $ECHO_N "(cached) $ECHO_C" >&6
13048 else
13049           if test "$cross_compiling" = yes; then :
13050   lt_cv_dlopen_self_static=cross
13051 else
13052   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13053   lt_status=$lt_dlunknown
13054   cat > conftest.$ac_ext <<EOF
13055 #line 13055 "configure"
13056 #include "confdefs.h"
13057
13058 #if HAVE_DLFCN_H
13059 #include <dlfcn.h>
13060 #endif
13061
13062 #include <stdio.h>
13063
13064 #ifdef RTLD_GLOBAL
13065 #  define LT_DLGLOBAL           RTLD_GLOBAL
13066 #else
13067 #  ifdef DL_GLOBAL
13068 #    define LT_DLGLOBAL         DL_GLOBAL
13069 #  else
13070 #    define LT_DLGLOBAL         0
13071 #  endif
13072 #endif
13073
13074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13075    find out it does not work in some platform. */
13076 #ifndef LT_DLLAZY_OR_NOW
13077 #  ifdef RTLD_LAZY
13078 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13079 #  else
13080 #    ifdef DL_LAZY
13081 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13082 #    else
13083 #      ifdef RTLD_NOW
13084 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13085 #      else
13086 #        ifdef DL_NOW
13087 #          define LT_DLLAZY_OR_NOW      DL_NOW
13088 #        else
13089 #          define LT_DLLAZY_OR_NOW      0
13090 #        endif
13091 #      endif
13092 #    endif
13093 #  endif
13094 #endif
13095
13096 #ifdef __cplusplus
13097 extern "C" void exit (int);
13098 #endif
13099
13100 void fnord() { int i=42;}
13101 int main ()
13102 {
13103   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13104   int status = $lt_dlunknown;
13105
13106   if (self)
13107     {
13108       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13109       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13110       /* dlclose (self); */
13111     }
13112
13113     exit (status);
13114 }
13115 EOF
13116   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13117   (eval $ac_link) 2>&5
13118   ac_status=$?
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13121     (./conftest; exit; ) 2>/dev/null
13122     lt_status=$?
13123     case x$lt_status in
13124       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13125       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13126       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13127     esac
13128   else :
13129     # compilation failed
13130     lt_cv_dlopen_self_static=no
13131   fi
13132 fi
13133 rm -fr conftest*
13134
13135
13136 fi
13137 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13138 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13139     fi
13140
13141     CPPFLAGS="$save_CPPFLAGS"
13142     LDFLAGS="$save_LDFLAGS"
13143     LIBS="$save_LIBS"
13144     ;;
13145   esac
13146
13147   case $lt_cv_dlopen_self in
13148   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13149   *) enable_dlopen_self=unknown ;;
13150   esac
13151
13152   case $lt_cv_dlopen_self_static in
13153   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13154   *) enable_dlopen_self_static=unknown ;;
13155   esac
13156 fi
13157
13158
13159 # The else clause should only fire when bootstrapping the
13160 # libtool distribution, otherwise you forgot to ship ltmain.sh
13161 # with your package, and you will get complaints that there are
13162 # no rules to generate ltmain.sh.
13163 if test -f "$ltmain"; then
13164   # See if we are running on zsh, and set the options which allow our commands through
13165   # without removal of \ escapes.
13166   if test -n "${ZSH_VERSION+set}" ; then
13167     setopt NO_GLOB_SUBST
13168   fi
13169   # Now quote all the things that may contain metacharacters while being
13170   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13171   # variables and quote the copies for generation of the libtool script.
13172   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13173     SED SHELL STRIP \
13174     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13175     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13176     deplibs_check_method reload_flag reload_cmds need_locks \
13177     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13178     lt_cv_sys_global_symbol_to_c_name_address \
13179     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13180     old_postinstall_cmds old_postuninstall_cmds \
13181     compiler_CXX \
13182     CC_CXX \
13183     LD_CXX \
13184     lt_prog_compiler_wl_CXX \
13185     lt_prog_compiler_pic_CXX \
13186     lt_prog_compiler_static_CXX \
13187     lt_prog_compiler_no_builtin_flag_CXX \
13188     export_dynamic_flag_spec_CXX \
13189     thread_safe_flag_spec_CXX \
13190     whole_archive_flag_spec_CXX \
13191     enable_shared_with_static_runtimes_CXX \
13192     old_archive_cmds_CXX \
13193     old_archive_from_new_cmds_CXX \
13194     predep_objects_CXX \
13195     postdep_objects_CXX \
13196     predeps_CXX \
13197     postdeps_CXX \
13198     compiler_lib_search_path_CXX \
13199     archive_cmds_CXX \
13200     archive_expsym_cmds_CXX \
13201     postinstall_cmds_CXX \
13202     postuninstall_cmds_CXX \
13203     old_archive_from_expsyms_cmds_CXX \
13204     allow_undefined_flag_CXX \
13205     no_undefined_flag_CXX \
13206     export_symbols_cmds_CXX \
13207     hardcode_libdir_flag_spec_CXX \
13208     hardcode_libdir_flag_spec_ld_CXX \
13209     hardcode_libdir_separator_CXX \
13210     hardcode_automatic_CXX \
13211     module_cmds_CXX \
13212     module_expsym_cmds_CXX \
13213     lt_cv_prog_compiler_c_o_CXX \
13214     exclude_expsyms_CXX \
13215     include_expsyms_CXX; do
13216
13217     case $var in
13218     old_archive_cmds_CXX | \
13219     old_archive_from_new_cmds_CXX | \
13220     archive_cmds_CXX | \
13221     archive_expsym_cmds_CXX | \
13222     module_cmds_CXX | \
13223     module_expsym_cmds_CXX | \
13224     old_archive_from_expsyms_cmds_CXX | \
13225     export_symbols_cmds_CXX | \
13226     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13227     postinstall_cmds | postuninstall_cmds | \
13228     old_postinstall_cmds | old_postuninstall_cmds | \
13229     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13230       # Double-quote double-evaled strings.
13231       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13232       ;;
13233     *)
13234       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13235       ;;
13236     esac
13237   done
13238
13239   case $lt_echo in
13240   *'\$0 --fallback-echo"')
13241     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13242     ;;
13243   esac
13244
13245 cfgfile="$ofile"
13246
13247   cat <<__EOF__ >> "$cfgfile"
13248 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13249
13250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13251
13252 # Shell to use when invoking shell scripts.
13253 SHELL=$lt_SHELL
13254
13255 # Whether or not to build shared libraries.
13256 build_libtool_libs=$enable_shared
13257
13258 # Whether or not to build static libraries.
13259 build_old_libs=$enable_static
13260
13261 # Whether or not to add -lc for building shared libraries.
13262 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13263
13264 # Whether or not to disallow shared libs when runtime libs are static
13265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13266
13267 # Whether or not to optimize for fast installation.
13268 fast_install=$enable_fast_install
13269
13270 # The host system.
13271 host_alias=$host_alias
13272 host=$host
13273
13274 # An echo program that does not interpret backslashes.
13275 echo=$lt_echo
13276
13277 # The archiver.
13278 AR=$lt_AR
13279 AR_FLAGS=$lt_AR_FLAGS
13280
13281 # A C compiler.
13282 LTCC=$lt_LTCC
13283
13284 # A language-specific compiler.
13285 CC=$lt_compiler_CXX
13286
13287 # Is the compiler the GNU C compiler?
13288 with_gcc=$GCC_CXX
13289
13290 # An ERE matcher.
13291 EGREP=$lt_EGREP
13292
13293 # The linker used to build libraries.
13294 LD=$lt_LD_CXX
13295
13296 # Whether we need hard or soft links.
13297 LN_S=$lt_LN_S
13298
13299 # A BSD-compatible nm program.
13300 NM=$lt_NM
13301
13302 # A symbol stripping program
13303 STRIP=$lt_STRIP
13304
13305 # Used to examine libraries when file_magic_cmd begins "file"
13306 MAGIC_CMD=$MAGIC_CMD
13307
13308 # Used on cygwin: DLL creation program.
13309 DLLTOOL="$DLLTOOL"
13310
13311 # Used on cygwin: object dumper.
13312 OBJDUMP="$OBJDUMP"
13313
13314 # Used on cygwin: assembler.
13315 AS="$AS"
13316
13317 # The name of the directory that contains temporary libtool files.
13318 objdir=$objdir
13319
13320 # How to create reloadable object files.
13321 reload_flag=$lt_reload_flag
13322 reload_cmds=$lt_reload_cmds
13323
13324 # How to pass a linker flag through the compiler.
13325 wl=$lt_lt_prog_compiler_wl_CXX
13326
13327 # Object file suffix (normally "o").
13328 objext="$ac_objext"
13329
13330 # Old archive suffix (normally "a").
13331 libext="$libext"
13332
13333 # Shared library suffix (normally ".so").
13334 shrext_cmds='$shrext_cmds'
13335
13336 # Executable file suffix (normally "").
13337 exeext="$exeext"
13338
13339 # Additional compiler flags for building library objects.
13340 pic_flag=$lt_lt_prog_compiler_pic_CXX
13341 pic_mode=$pic_mode
13342
13343 # What is the maximum length of a command?
13344 max_cmd_len=$lt_cv_sys_max_cmd_len
13345
13346 # Does compiler simultaneously support -c and -o options?
13347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13348
13349 # Must we lock files when doing compilation ?
13350 need_locks=$lt_need_locks
13351
13352 # Do we need the lib prefix for modules?
13353 need_lib_prefix=$need_lib_prefix
13354
13355 # Do we need a version for libraries?
13356 need_version=$need_version
13357
13358 # Whether dlopen is supported.
13359 dlopen_support=$enable_dlopen
13360
13361 # Whether dlopen of programs is supported.
13362 dlopen_self=$enable_dlopen_self
13363
13364 # Whether dlopen of statically linked programs is supported.
13365 dlopen_self_static=$enable_dlopen_self_static
13366
13367 # Compiler flag to prevent dynamic linking.
13368 link_static_flag=$lt_lt_prog_compiler_static_CXX
13369
13370 # Compiler flag to turn off builtin functions.
13371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13372
13373 # Compiler flag to allow reflexive dlopens.
13374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13375
13376 # Compiler flag to generate shared objects directly from archives.
13377 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13378
13379 # Compiler flag to generate thread-safe objects.
13380 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13381
13382 # Library versioning type.
13383 version_type=$version_type
13384
13385 # Format of library name prefix.
13386 libname_spec=$lt_libname_spec
13387
13388 # List of archive names.  First name is the real one, the rest are links.
13389 # The last name is the one that the linker finds with -lNAME.
13390 library_names_spec=$lt_library_names_spec
13391
13392 # The coded name of the library, if different from the real name.
13393 soname_spec=$lt_soname_spec
13394
13395 # Commands used to build and install an old-style archive.
13396 RANLIB=$lt_RANLIB
13397 old_archive_cmds=$lt_old_archive_cmds_CXX
13398 old_postinstall_cmds=$lt_old_postinstall_cmds
13399 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13400
13401 # Create an old-style archive from a shared archive.
13402 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13403
13404 # Create a temporary old-style archive to link instead of a shared archive.
13405 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13406
13407 # Commands used to build and install a shared archive.
13408 archive_cmds=$lt_archive_cmds_CXX
13409 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13410 postinstall_cmds=$lt_postinstall_cmds
13411 postuninstall_cmds=$lt_postuninstall_cmds
13412
13413 # Commands used to build a loadable module (assumed same as above if empty)
13414 module_cmds=$lt_module_cmds_CXX
13415 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13416
13417 # Commands to strip libraries.
13418 old_striplib=$lt_old_striplib
13419 striplib=$lt_striplib
13420
13421 # Dependencies to place before the objects being linked to create a
13422 # shared library.
13423 predep_objects=$lt_predep_objects_CXX
13424
13425 # Dependencies to place after the objects being linked to create a
13426 # shared library.
13427 postdep_objects=$lt_postdep_objects_CXX
13428
13429 # Dependencies to place before the objects being linked to create a
13430 # shared library.
13431 predeps=$lt_predeps_CXX
13432
13433 # Dependencies to place after the objects being linked to create a
13434 # shared library.
13435 postdeps=$lt_postdeps_CXX
13436
13437 # The library search path used internally by the compiler when linking
13438 # a shared library.
13439 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13440
13441 # Method to check whether dependent libraries are shared objects.
13442 deplibs_check_method=$lt_deplibs_check_method
13443
13444 # Command to use when deplibs_check_method == file_magic.
13445 file_magic_cmd=$lt_file_magic_cmd
13446
13447 # Flag that allows shared libraries with undefined symbols to be built.
13448 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13449
13450 # Flag that forces no undefined symbols.
13451 no_undefined_flag=$lt_no_undefined_flag_CXX
13452
13453 # Commands used to finish a libtool library installation in a directory.
13454 finish_cmds=$lt_finish_cmds
13455
13456 # Same as above, but a single script fragment to be evaled but not shown.
13457 finish_eval=$lt_finish_eval
13458
13459 # Take the output of nm and produce a listing of raw symbols and C names.
13460 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13461
13462 # Transform the output of nm in a proper C declaration
13463 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13464
13465 # Transform the output of nm in a C name address pair
13466 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13467
13468 # This is the shared library runtime path variable.
13469 runpath_var=$runpath_var
13470
13471 # This is the shared library path variable.
13472 shlibpath_var=$shlibpath_var
13473
13474 # Is shlibpath searched before the hard-coded library search path?
13475 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13476
13477 # How to hardcode a shared library path into an executable.
13478 hardcode_action=$hardcode_action_CXX
13479
13480 # Whether we should hardcode library paths into libraries.
13481 hardcode_into_libs=$hardcode_into_libs
13482
13483 # Flag to hardcode \$libdir into a binary during linking.
13484 # This must work even if \$libdir does not exist.
13485 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13486
13487 # If ld is used when linking, flag to hardcode \$libdir into
13488 # a binary during linking. This must work even if \$libdir does
13489 # not exist.
13490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13491
13492 # Whether we need a single -rpath flag with a separated argument.
13493 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13494
13495 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13496 # resulting binary.
13497 hardcode_direct=$hardcode_direct_CXX
13498
13499 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13500 # resulting binary.
13501 hardcode_minus_L=$hardcode_minus_L_CXX
13502
13503 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13504 # the resulting binary.
13505 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13506
13507 # Set to yes if building a shared library automatically hardcodes DIR into the library
13508 # and all subsequent libraries and executables linked against it.
13509 hardcode_automatic=$hardcode_automatic_CXX
13510
13511 # Variables whose values should be saved in libtool wrapper scripts and
13512 # restored at relink time.
13513 variables_saved_for_relink="$variables_saved_for_relink"
13514
13515 # Whether libtool must link a program against all its dependency libraries.
13516 link_all_deplibs=$link_all_deplibs_CXX
13517
13518 # Compile-time system search path for libraries
13519 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13520
13521 # Run-time system search path for libraries
13522 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13523
13524 # Fix the shell variable \$srcfile for the compiler.
13525 fix_srcfile_path="$fix_srcfile_path_CXX"
13526
13527 # Set to yes if exported symbols are required.
13528 always_export_symbols=$always_export_symbols_CXX
13529
13530 # The commands to list exported symbols.
13531 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13532
13533 # The commands to extract the exported symbol list from a shared archive.
13534 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13535
13536 # Symbols that should not be listed in the preloaded symbols.
13537 exclude_expsyms=$lt_exclude_expsyms_CXX
13538
13539 # Symbols that must always be exported.
13540 include_expsyms=$lt_include_expsyms_CXX
13541
13542 # ### END LIBTOOL TAG CONFIG: $tagname
13543
13544 __EOF__
13545
13546
13547 else
13548   # If there is no Makefile yet, we rely on a make rule to execute
13549   # `config.status --recheck' to rerun these tests and create the
13550   # libtool script then.
13551   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13552   if test -f "$ltmain_in"; then
13553     test -f Makefile && make "$ltmain"
13554   fi
13555 fi
13556
13557
13558 ac_ext=c
13559 ac_cpp='$CPP $CPPFLAGS'
13560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13563
13564 CC=$lt_save_CC
13565 LDCXX=$LD
13566 LD=$lt_save_LD
13567 GCC=$lt_save_GCC
13568 with_gnu_ldcxx=$with_gnu_ld
13569 with_gnu_ld=$lt_save_with_gnu_ld
13570 lt_cv_path_LDCXX=$lt_cv_path_LD
13571 lt_cv_path_LD=$lt_save_path_LD
13572 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13573 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13574
13575         else
13576           tagname=""
13577         fi
13578         ;;
13579
13580       F77)
13581         if test -n "$F77" && test "X$F77" != "Xno"; then
13582
13583 ac_ext=f
13584 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13585 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13586 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13587
13588
13589 archive_cmds_need_lc_F77=no
13590 allow_undefined_flag_F77=
13591 always_export_symbols_F77=no
13592 archive_expsym_cmds_F77=
13593 export_dynamic_flag_spec_F77=
13594 hardcode_direct_F77=no
13595 hardcode_libdir_flag_spec_F77=
13596 hardcode_libdir_flag_spec_ld_F77=
13597 hardcode_libdir_separator_F77=
13598 hardcode_minus_L_F77=no
13599 hardcode_automatic_F77=no
13600 module_cmds_F77=
13601 module_expsym_cmds_F77=
13602 link_all_deplibs_F77=unknown
13603 old_archive_cmds_F77=$old_archive_cmds
13604 no_undefined_flag_F77=
13605 whole_archive_flag_spec_F77=
13606 enable_shared_with_static_runtimes_F77=no
13607
13608 # Source file extension for f77 test sources.
13609 ac_ext=f
13610
13611 # Object file extension for compiled f77 test sources.
13612 objext=o
13613 objext_F77=$objext
13614
13615 # Code to be used in simple compile tests
13616 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13617
13618 # Code to be used in simple link tests
13619 lt_simple_link_test_code="      program t\n      end\n"
13620
13621 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13622
13623 # If no C compiler was specified, use CC.
13624 LTCC=${LTCC-"$CC"}
13625
13626 # Allow CC to be a program name with arguments.
13627 compiler=$CC
13628
13629
13630 # Allow CC to be a program name with arguments.
13631 lt_save_CC="$CC"
13632 CC=${F77-"f77"}
13633 compiler=$CC
13634 compiler_F77=$CC
13635 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13636
13637 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13638 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13639 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13640 echo "${ECHO_T}$can_build_shared" >&6
13641
13642 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13643 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13644 test "$can_build_shared" = "no" && enable_shared=no
13645
13646 # On AIX, shared libraries and static libraries use the same namespace, and
13647 # are all built from PIC.
13648 case "$host_os" in
13649 aix3*)
13650   test "$enable_shared" = yes && enable_static=no
13651   if test -n "$RANLIB"; then
13652     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13653     postinstall_cmds='$RANLIB $lib'
13654   fi
13655   ;;
13656 aix4* | aix5*)
13657   test "$enable_shared" = yes && enable_static=no
13658   ;;
13659 esac
13660 echo "$as_me:$LINENO: result: $enable_shared" >&5
13661 echo "${ECHO_T}$enable_shared" >&6
13662
13663 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13664 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13665 # Make sure either enable_shared or enable_static is yes.
13666 test "$enable_shared" = yes || enable_static=yes
13667 echo "$as_me:$LINENO: result: $enable_static" >&5
13668 echo "${ECHO_T}$enable_static" >&6
13669
13670 test "$ld_shlibs_F77" = no && can_build_shared=no
13671
13672 GCC_F77="$G77"
13673 LD_F77="$LD"
13674
13675 lt_prog_compiler_wl_F77=
13676 lt_prog_compiler_pic_F77=
13677 lt_prog_compiler_static_F77=
13678
13679 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13680 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13681
13682   if test "$GCC" = yes; then
13683     lt_prog_compiler_wl_F77='-Wl,'
13684     lt_prog_compiler_static_F77='-static'
13685
13686     case $host_os in
13687       aix*)
13688       # All AIX code is PIC.
13689       if test "$host_cpu" = ia64; then
13690         # AIX 5 now supports IA64 processor
13691         lt_prog_compiler_static_F77='-Bstatic'
13692       fi
13693       ;;
13694
13695     amigaos*)
13696       # FIXME: we need at least 68020 code to build shared libraries, but
13697       # adding the `-m68020' flag to GCC prevents building anything better,
13698       # like `-m68040'.
13699       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13700       ;;
13701
13702     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13703       # PIC is the default for these OSes.
13704       ;;
13705
13706     mingw* | pw32* | os2*)
13707       # This hack is so that the source file can tell whether it is being
13708       # built for inclusion in a dll (and should export symbols for example).
13709       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13710       ;;
13711
13712     darwin* | rhapsody*)
13713       # PIC is the default on this platform
13714       # Common symbols not allowed in MH_DYLIB files
13715       lt_prog_compiler_pic_F77='-fno-common'
13716       ;;
13717
13718     msdosdjgpp*)
13719       # Just because we use GCC doesn't mean we suddenly get shared libraries
13720       # on systems that don't support them.
13721       lt_prog_compiler_can_build_shared_F77=no
13722       enable_shared=no
13723       ;;
13724
13725     sysv4*MP*)
13726       if test -d /usr/nec; then
13727         lt_prog_compiler_pic_F77=-Kconform_pic
13728       fi
13729       ;;
13730
13731     hpux*)
13732       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13733       # not for PA HP-UX.
13734       case "$host_cpu" in
13735       hppa*64*|ia64*)
13736         # +Z the default
13737         ;;
13738       *)
13739         lt_prog_compiler_pic_F77='-fPIC'
13740         ;;
13741       esac
13742       ;;
13743
13744     *)
13745       lt_prog_compiler_pic_F77='-fPIC'
13746       ;;
13747     esac
13748   else
13749     # PORTME Check for flag to pass linker flags through the system compiler.
13750     case $host_os in
13751     aix*)
13752       lt_prog_compiler_wl_F77='-Wl,'
13753       if test "$host_cpu" = ia64; then
13754         # AIX 5 now supports IA64 processor
13755         lt_prog_compiler_static_F77='-Bstatic'
13756       else
13757         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13758       fi
13759       ;;
13760       darwin*)
13761         # PIC is the default on this platform
13762         # Common symbols not allowed in MH_DYLIB files
13763        case "$cc_basename" in
13764          xlc*)
13765          lt_prog_compiler_pic_F77='-qnocommon'
13766          lt_prog_compiler_wl_F77='-Wl,'
13767          ;;
13768        esac
13769        ;;
13770
13771     mingw* | pw32* | os2*)
13772       # This hack is so that the source file can tell whether it is being
13773       # built for inclusion in a dll (and should export symbols for example).
13774       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13775       ;;
13776
13777     hpux9* | hpux10* | hpux11*)
13778       lt_prog_compiler_wl_F77='-Wl,'
13779       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13780       # not for PA HP-UX.
13781       case "$host_cpu" in
13782       hppa*64*|ia64*)
13783         # +Z the default
13784         ;;
13785       *)
13786         lt_prog_compiler_pic_F77='+Z'
13787         ;;
13788       esac
13789       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13790       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13791       ;;
13792
13793     irix5* | irix6* | nonstopux*)
13794       lt_prog_compiler_wl_F77='-Wl,'
13795       # PIC (with -KPIC) is the default.
13796       lt_prog_compiler_static_F77='-non_shared'
13797       ;;
13798
13799     newsos6)
13800       lt_prog_compiler_pic_F77='-KPIC'
13801       lt_prog_compiler_static_F77='-Bstatic'
13802       ;;
13803
13804     linux*)
13805       case $CC in
13806       icc* | ecc*)
13807         lt_prog_compiler_wl_F77='-Wl,'
13808         lt_prog_compiler_pic_F77='-KPIC'
13809         lt_prog_compiler_static_F77='-static'
13810         ;;
13811       ccc*)
13812         lt_prog_compiler_wl_F77='-Wl,'
13813         # All Alpha code is PIC.
13814         lt_prog_compiler_static_F77='-non_shared'
13815         ;;
13816       esac
13817       ;;
13818
13819     osf3* | osf4* | osf5*)
13820       lt_prog_compiler_wl_F77='-Wl,'
13821       # All OSF/1 code is PIC.
13822       lt_prog_compiler_static_F77='-non_shared'
13823       ;;
13824
13825     sco3.2v5*)
13826       lt_prog_compiler_pic_F77='-Kpic'
13827       lt_prog_compiler_static_F77='-dn'
13828       ;;
13829
13830     solaris*)
13831       lt_prog_compiler_wl_F77='-Wl,'
13832       lt_prog_compiler_pic_F77='-KPIC'
13833       lt_prog_compiler_static_F77='-Bstatic'
13834       ;;
13835
13836     sunos4*)
13837       lt_prog_compiler_wl_F77='-Qoption ld '
13838       lt_prog_compiler_pic_F77='-PIC'
13839       lt_prog_compiler_static_F77='-Bstatic'
13840       ;;
13841
13842     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13843       lt_prog_compiler_wl_F77='-Wl,'
13844       lt_prog_compiler_pic_F77='-KPIC'
13845       lt_prog_compiler_static_F77='-Bstatic'
13846       ;;
13847
13848     sysv4*MP*)
13849       if test -d /usr/nec ;then
13850         lt_prog_compiler_pic_F77='-Kconform_pic'
13851         lt_prog_compiler_static_F77='-Bstatic'
13852       fi
13853       ;;
13854
13855     uts4*)
13856       lt_prog_compiler_pic_F77='-pic'
13857       lt_prog_compiler_static_F77='-Bstatic'
13858       ;;
13859
13860     *)
13861       lt_prog_compiler_can_build_shared_F77=no
13862       ;;
13863     esac
13864   fi
13865
13866 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13867 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13868
13869 #
13870 # Check to make sure the PIC flag actually works.
13871 #
13872 if test -n "$lt_prog_compiler_pic_F77"; then
13873
13874 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13875 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13876 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13877   echo $ECHO_N "(cached) $ECHO_C" >&6
13878 else
13879   lt_prog_compiler_pic_works_F77=no
13880   ac_outfile=conftest.$ac_objext
13881    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13882    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13883    # Insert the option either (1) after the last *FLAGS variable, or
13884    # (2) before a word containing "conftest.", or (3) at the end.
13885    # Note that $ac_compile itself does not contain backslashes and begins
13886    # with a dollar sign (not a hyphen), so the echo should work correctly.
13887    # The option is referenced via a variable to avoid confusing sed.
13888    lt_compile=`echo "$ac_compile" | $SED \
13889    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13890    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13891    -e 's:$: $lt_compiler_flag:'`
13892    (eval echo "\"\$as_me:13892: $lt_compile\"" >&5)
13893    (eval "$lt_compile" 2>conftest.err)
13894    ac_status=$?
13895    cat conftest.err >&5
13896    echo "$as_me:13896: \$? = $ac_status" >&5
13897    if (exit $ac_status) && test -s "$ac_outfile"; then
13898      # The compiler can only warn and ignore the option if not recognized
13899      # So say no if there are warnings
13900      if test ! -s conftest.err; then
13901        lt_prog_compiler_pic_works_F77=yes
13902      fi
13903    fi
13904    $rm conftest*
13905
13906 fi
13907 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13908 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13909
13910 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13911     case $lt_prog_compiler_pic_F77 in
13912      "" | " "*) ;;
13913      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13914      esac
13915 else
13916     lt_prog_compiler_pic_F77=
13917      lt_prog_compiler_can_build_shared_F77=no
13918 fi
13919
13920 fi
13921 case "$host_os" in
13922   # For platforms which do not support PIC, -DPIC is meaningless:
13923   *djgpp*)
13924     lt_prog_compiler_pic_F77=
13925     ;;
13926   *)
13927     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13928     ;;
13929 esac
13930
13931 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13932 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13933 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13934   echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936   lt_cv_prog_compiler_c_o_F77=no
13937    $rm -r conftest 2>/dev/null
13938    mkdir conftest
13939    cd conftest
13940    mkdir out
13941    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13942
13943    lt_compiler_flag="-o out/conftest2.$ac_objext"
13944    # Insert the option either (1) after the last *FLAGS variable, or
13945    # (2) before a word containing "conftest.", or (3) at the end.
13946    # Note that $ac_compile itself does not contain backslashes and begins
13947    # with a dollar sign (not a hyphen), so the echo should work correctly.
13948    lt_compile=`echo "$ac_compile" | $SED \
13949    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13950    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13951    -e 's:$: $lt_compiler_flag:'`
13952    (eval echo "\"\$as_me:13952: $lt_compile\"" >&5)
13953    (eval "$lt_compile" 2>out/conftest.err)
13954    ac_status=$?
13955    cat out/conftest.err >&5
13956    echo "$as_me:13956: \$? = $ac_status" >&5
13957    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13958    then
13959      # The compiler can only warn and ignore the option if not recognized
13960      # So say no if there are warnings
13961      if test ! -s out/conftest.err; then
13962        lt_cv_prog_compiler_c_o_F77=yes
13963      fi
13964    fi
13965    chmod u+w .
13966    $rm conftest*
13967    # SGI C++ compiler will create directory out/ii_files/ for
13968    # template instantiation
13969    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13970    $rm out/* && rmdir out
13971    cd ..
13972    rmdir conftest
13973    $rm conftest*
13974
13975 fi
13976 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13977 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13978
13979
13980 hard_links="nottested"
13981 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13982   # do not overwrite the value of need_locks provided by the user
13983   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13984 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13985   hard_links=yes
13986   $rm conftest*
13987   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13988   touch conftest.a
13989   ln conftest.a conftest.b 2>&5 || hard_links=no
13990   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13991   echo "$as_me:$LINENO: result: $hard_links" >&5
13992 echo "${ECHO_T}$hard_links" >&6
13993   if test "$hard_links" = no; then
13994     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13995 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13996     need_locks=warn
13997   fi
13998 else
13999   need_locks=no
14000 fi
14001
14002 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14003 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14004
14005   runpath_var=
14006   allow_undefined_flag_F77=
14007   enable_shared_with_static_runtimes_F77=no
14008   archive_cmds_F77=
14009   archive_expsym_cmds_F77=
14010   old_archive_From_new_cmds_F77=
14011   old_archive_from_expsyms_cmds_F77=
14012   export_dynamic_flag_spec_F77=
14013   whole_archive_flag_spec_F77=
14014   thread_safe_flag_spec_F77=
14015   hardcode_libdir_flag_spec_F77=
14016   hardcode_libdir_flag_spec_ld_F77=
14017   hardcode_libdir_separator_F77=
14018   hardcode_direct_F77=no
14019   hardcode_minus_L_F77=no
14020   hardcode_shlibpath_var_F77=unsupported
14021   link_all_deplibs_F77=unknown
14022   hardcode_automatic_F77=no
14023   module_cmds_F77=
14024   module_expsym_cmds_F77=
14025   always_export_symbols_F77=no
14026   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14027   # include_expsyms should be a list of space-separated symbols to be *always*
14028   # included in the symbol list
14029   include_expsyms_F77=
14030   # exclude_expsyms can be an extended regexp of symbols to exclude
14031   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14032   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14033   # as well as any symbol that contains `d'.
14034   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14035   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14036   # platforms (ab)use it in PIC code, but their linkers get confused if
14037   # the symbol is explicitly referenced.  Since portable code cannot
14038   # rely on this symbol name, it's probably fine to never include it in
14039   # preloaded symbol tables.
14040   extract_expsyms_cmds=
14041
14042   case $host_os in
14043   cygwin* | mingw* | pw32*)
14044     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14045     # When not using gcc, we currently assume that we are using
14046     # Microsoft Visual C++.
14047     if test "$GCC" != yes; then
14048       with_gnu_ld=no
14049     fi
14050     ;;
14051   openbsd*)
14052     with_gnu_ld=no
14053     ;;
14054   esac
14055
14056   ld_shlibs_F77=yes
14057   if test "$with_gnu_ld" = yes; then
14058     # If archive_cmds runs LD, not CC, wlarc should be empty
14059     wlarc='${wl}'
14060
14061     # See if GNU ld supports shared libraries.
14062     case $host_os in
14063     aix3* | aix4* | aix5*)
14064       # On AIX/PPC, the GNU linker is very broken
14065       if test "$host_cpu" != ia64; then
14066         ld_shlibs_F77=no
14067         cat <<EOF 1>&2
14068
14069 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14070 *** to be unable to reliably create shared libraries on AIX.
14071 *** Therefore, libtool is disabling shared libraries support.  If you
14072 *** really care for shared libraries, you may want to modify your PATH
14073 *** so that a non-GNU linker is found, and then restart.
14074
14075 EOF
14076       fi
14077       ;;
14078
14079     amigaos*)
14080       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)'
14081       hardcode_libdir_flag_spec_F77='-L$libdir'
14082       hardcode_minus_L_F77=yes
14083
14084       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14085       # that the semantics of dynamic libraries on AmigaOS, at least up
14086       # to version 4, is to share data among multiple programs linked
14087       # with the same dynamic library.  Since this doesn't match the
14088       # behavior of shared libraries on other platforms, we can't use
14089       # them.
14090       ld_shlibs_F77=no
14091       ;;
14092
14093     beos*)
14094       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14095         allow_undefined_flag_F77=unsupported
14096         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14097         # support --undefined.  This deserves some investigation.  FIXME
14098         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14099       else
14100         ld_shlibs_F77=no
14101       fi
14102       ;;
14103
14104     cygwin* | mingw* | pw32*)
14105       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14106       # as there is no search path for DLLs.
14107       hardcode_libdir_flag_spec_F77='-L$libdir'
14108       allow_undefined_flag_F77=unsupported
14109       always_export_symbols_F77=no
14110       enable_shared_with_static_runtimes_F77=yes
14111       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14112
14113       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14114         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14115         # If the export-symbols file already is a .def file (1st line
14116         # is EXPORTS), use it as is; otherwise, prepend...
14117         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14118           cp $export_symbols $output_objdir/$soname.def;
14119         else
14120           echo EXPORTS > $output_objdir/$soname.def;
14121           cat $export_symbols >> $output_objdir/$soname.def;
14122         fi~
14123         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14124       else
14125         ld_shlibs=no
14126       fi
14127       ;;
14128
14129     netbsd*)
14130       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14131         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14132         wlarc=
14133       else
14134         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14135         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14136       fi
14137       ;;
14138
14139     solaris* | sysv5*)
14140       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14141         ld_shlibs_F77=no
14142         cat <<EOF 1>&2
14143
14144 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14145 *** create shared libraries on Solaris systems.  Therefore, libtool
14146 *** is disabling shared libraries support.  We urge you to upgrade GNU
14147 *** binutils to release 2.9.1 or newer.  Another option is to modify
14148 *** your PATH or compiler configuration so that the native linker is
14149 *** used, and then restart.
14150
14151 EOF
14152       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14153         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14154         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14155       else
14156         ld_shlibs_F77=no
14157       fi
14158       ;;
14159
14160     sunos4*)
14161       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14162       wlarc=
14163       hardcode_direct_F77=yes
14164       hardcode_shlibpath_var_F77=no
14165       ;;
14166
14167   linux*)
14168     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14169         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14170         archive_cmds_F77="$tmp_archive_cmds"
14171       supports_anon_versioning=no
14172       case `$LD -v 2>/dev/null` in
14173         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14174         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14175         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14176         *\ 2.11.*) ;; # other 2.11 versions
14177         *) supports_anon_versioning=yes ;;
14178       esac
14179       if test $supports_anon_versioning = yes; then
14180         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14181 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14182 $echo "local: *; };" >> $output_objdir/$libname.ver~
14183         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14184       else
14185         archive_expsym_cmds_F77="$tmp_archive_cmds"
14186       fi
14187     else
14188       ld_shlibs_F77=no
14189     fi
14190     ;;
14191
14192     *)
14193       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14194         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14195         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14196       else
14197         ld_shlibs_F77=no
14198       fi
14199       ;;
14200     esac
14201
14202     if test "$ld_shlibs_F77" = yes; then
14203       runpath_var=LD_RUN_PATH
14204       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14205       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14206       # ancient GNU ld didn't support --whole-archive et. al.
14207       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14208         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14209       else
14210         whole_archive_flag_spec_F77=
14211       fi
14212     fi
14213   else
14214     # PORTME fill in a description of your system's linker (not GNU ld)
14215     case $host_os in
14216     aix3*)
14217       allow_undefined_flag_F77=unsupported
14218       always_export_symbols_F77=yes
14219       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'
14220       # Note: this linker hardcodes the directories in LIBPATH if there
14221       # are no directories specified by -L.
14222       hardcode_minus_L_F77=yes
14223       if test "$GCC" = yes && test -z "$link_static_flag"; then
14224         # Neither direct hardcoding nor static linking is supported with a
14225         # broken collect2.
14226         hardcode_direct_F77=unsupported
14227       fi
14228       ;;
14229
14230     aix4* | aix5*)
14231       if test "$host_cpu" = ia64; then
14232         # On IA64, the linker does run time linking by default, so we don't
14233         # have to do anything special.
14234         aix_use_runtimelinking=no
14235         exp_sym_flag='-Bexport'
14236         no_entry_flag=""
14237       else
14238         # If we're using GNU nm, then we don't want the "-C" option.
14239         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14240         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14241           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'
14242         else
14243           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'
14244         fi
14245         aix_use_runtimelinking=no
14246
14247         # Test if we are trying to use run time linking or normal
14248         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14249         # need to do runtime linking.
14250         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14251           for ld_flag in $LDFLAGS; do
14252           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14253             aix_use_runtimelinking=yes
14254             break
14255           fi
14256           done
14257         esac
14258
14259         exp_sym_flag='-bexport'
14260         no_entry_flag='-bnoentry'
14261       fi
14262
14263       # When large executables or shared objects are built, AIX ld can
14264       # have problems creating the table of contents.  If linking a library
14265       # or program results in "error TOC overflow" add -mminimal-toc to
14266       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14267       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14268
14269       archive_cmds_F77=''
14270       hardcode_direct_F77=yes
14271       hardcode_libdir_separator_F77=':'
14272       link_all_deplibs_F77=yes
14273
14274       if test "$GCC" = yes; then
14275         case $host_os in aix4.012|aix4.012.*)
14276         # We only want to do this on AIX 4.2 and lower, the check
14277         # below for broken collect2 doesn't work under 4.3+
14278           collect2name=`${CC} -print-prog-name=collect2`
14279           if test -f "$collect2name" && \
14280            strings "$collect2name" | grep resolve_lib_name >/dev/null
14281           then
14282           # We have reworked collect2
14283           hardcode_direct_F77=yes
14284           else
14285           # We have old collect2
14286           hardcode_direct_F77=unsupported
14287           # It fails to find uninstalled libraries when the uninstalled
14288           # path is not listed in the libpath.  Setting hardcode_minus_L
14289           # to unsupported forces relinking
14290           hardcode_minus_L_F77=yes
14291           hardcode_libdir_flag_spec_F77='-L$libdir'
14292           hardcode_libdir_separator_F77=
14293           fi
14294         esac
14295         shared_flag='-shared'
14296       else
14297         # not using gcc
14298         if test "$host_cpu" = ia64; then
14299         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14300         # chokes on -Wl,-G. The following line is correct:
14301           shared_flag='-G'
14302         else
14303         if test "$aix_use_runtimelinking" = yes; then
14304             shared_flag='${wl}-G'
14305           else
14306             shared_flag='${wl}-bM:SRE'
14307         fi
14308         fi
14309       fi
14310
14311       # It seems that -bexpall does not export symbols beginning with
14312       # underscore (_), so it is better to generate a list of symbols to export.
14313       always_export_symbols_F77=yes
14314       if test "$aix_use_runtimelinking" = yes; then
14315         # Warning - without using the other runtime loading flags (-brtl),
14316         # -berok will link without error, but may produce a broken library.
14317         allow_undefined_flag_F77='-berok'
14318        # Determine the default libpath from the value encoded in an empty executable.
14319        cat >conftest.$ac_ext <<_ACEOF
14320       program main
14321
14322       end
14323 _ACEOF
14324 rm -f conftest.$ac_objext conftest$ac_exeext
14325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14326   (eval $ac_link) 2>conftest.er1
14327   ac_status=$?
14328   grep -v '^ *+' conftest.er1 >conftest.err
14329   rm -f conftest.er1
14330   cat conftest.err >&5
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); } &&
14333          { ac_try='test -z "$ac_f77_werror_flag"
14334                          || test ! -s conftest.err'
14335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336   (eval $ac_try) 2>&5
14337   ac_status=$?
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); }; } &&
14340          { ac_try='test -s conftest$ac_exeext'
14341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342   (eval $ac_try) 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); }; }; then
14346
14347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14348 }'`
14349 # Check for a 64-bit object if we didn't find anything.
14350 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14351 }'`; fi
14352 else
14353   echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14355
14356 fi
14357 rm -f conftest.err conftest.$ac_objext \
14358       conftest$ac_exeext conftest.$ac_ext
14359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14360
14361        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14362         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14363        else
14364         if test "$host_cpu" = ia64; then
14365           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14366           allow_undefined_flag_F77="-z nodefs"
14367           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14368         else
14369          # Determine the default libpath from the value encoded in an empty executable.
14370          cat >conftest.$ac_ext <<_ACEOF
14371       program main
14372
14373       end
14374 _ACEOF
14375 rm -f conftest.$ac_objext conftest$ac_exeext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14377   (eval $ac_link) 2>conftest.er1
14378   ac_status=$?
14379   grep -v '^ *+' conftest.er1 >conftest.err
14380   rm -f conftest.er1
14381   cat conftest.err >&5
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); } &&
14384          { ac_try='test -z "$ac_f77_werror_flag"
14385                          || test ! -s conftest.err'
14386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387   (eval $ac_try) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); }; } &&
14391          { ac_try='test -s conftest$ac_exeext'
14392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393   (eval $ac_try) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); }; }; then
14397
14398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14399 }'`
14400 # Check for a 64-bit object if we didn't find anything.
14401 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14402 }'`; fi
14403 else
14404   echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14406
14407 fi
14408 rm -f conftest.err conftest.$ac_objext \
14409       conftest$ac_exeext conftest.$ac_ext
14410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14411
14412          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14413           # Warning - without using the other run time loading flags,
14414           # -berok will link without error, but may produce a broken library.
14415           no_undefined_flag_F77=' ${wl}-bernotok'
14416           allow_undefined_flag_F77=' ${wl}-berok'
14417           # -bexpall does not export symbols beginning with underscore (_)
14418           always_export_symbols_F77=yes
14419           # Exported symbols can be pulled into shared objects from archives
14420           whole_archive_flag_spec_F77=' '
14421           archive_cmds_need_lc_F77=yes
14422           # This is similar to how AIX traditionally builds it's shared libraries.
14423           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14424         fi
14425       fi
14426       ;;
14427
14428     amigaos*)
14429       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)'
14430       hardcode_libdir_flag_spec_F77='-L$libdir'
14431       hardcode_minus_L_F77=yes
14432       # see comment about different semantics on the GNU ld section
14433       ld_shlibs_F77=no
14434       ;;
14435
14436     bsdi[45]*)
14437       export_dynamic_flag_spec_F77=-rdynamic
14438       ;;
14439
14440     cygwin* | mingw* | pw32*)
14441       # When not using gcc, we currently assume that we are using
14442       # Microsoft Visual C++.
14443       # hardcode_libdir_flag_spec is actually meaningless, as there is
14444       # no search path for DLLs.
14445       hardcode_libdir_flag_spec_F77=' '
14446       allow_undefined_flag_F77=unsupported
14447       # Tell ltmain to make .lib files, not .a files.
14448       libext=lib
14449       # Tell ltmain to make .dll files, not .so files.
14450       shrext_cmds=".dll"
14451       # FIXME: Setting linknames here is a bad hack.
14452       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14453       # The linker will automatically build a .lib file if we build a DLL.
14454       old_archive_From_new_cmds_F77='true'
14455       # FIXME: Should let the user specify the lib program.
14456       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14457       fix_srcfile_path='`cygpath -w "$srcfile"`'
14458       enable_shared_with_static_runtimes_F77=yes
14459       ;;
14460
14461     darwin* | rhapsody*)
14462       case "$host_os" in
14463         rhapsody* | darwin1.[012])
14464          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14465          ;;
14466        *) # Darwin 1.3 on
14467          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14468            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14469          else
14470            case ${MACOSX_DEPLOYMENT_TARGET} in
14471              10.[012])
14472                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14473                ;;
14474              10.*)
14475                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14476                ;;
14477            esac
14478          fi
14479          ;;
14480       esac
14481       archive_cmds_need_lc_F77=no
14482       hardcode_direct_F77=no
14483       hardcode_automatic_F77=yes
14484       hardcode_shlibpath_var_F77=unsupported
14485       whole_archive_flag_spec_F77=''
14486       link_all_deplibs_F77=yes
14487     if test "$GCC" = yes ; then
14488         output_verbose_link_cmd='echo'
14489         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14490       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14491       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14492       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14493       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}'
14494     else
14495       case "$cc_basename" in
14496         xlc*)
14497          output_verbose_link_cmd='echo'
14498          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14499          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14500           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14501          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14502           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}'
14503           ;;
14504        *)
14505          ld_shlibs_F77=no
14506           ;;
14507       esac
14508     fi
14509       ;;
14510
14511     dgux*)
14512       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14513       hardcode_libdir_flag_spec_F77='-L$libdir'
14514       hardcode_shlibpath_var_F77=no
14515       ;;
14516
14517     freebsd1*)
14518       ld_shlibs_F77=no
14519       ;;
14520
14521     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14522     # support.  Future versions do this automatically, but an explicit c++rt0.o
14523     # does not break anything, and helps significantly (at the cost of a little
14524     # extra space).
14525     freebsd2.2*)
14526       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14527       hardcode_libdir_flag_spec_F77='-R$libdir'
14528       hardcode_direct_F77=yes
14529       hardcode_shlibpath_var_F77=no
14530       ;;
14531
14532     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14533     freebsd2*)
14534       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14535       hardcode_direct_F77=yes
14536       hardcode_minus_L_F77=yes
14537       hardcode_shlibpath_var_F77=no
14538       ;;
14539
14540     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14541     freebsd* | kfreebsd*-gnu)
14542       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14543       hardcode_libdir_flag_spec_F77='-R$libdir'
14544       hardcode_direct_F77=yes
14545       hardcode_shlibpath_var_F77=no
14546       ;;
14547
14548     hpux9*)
14549       if test "$GCC" = yes; then
14550         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'
14551       else
14552         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'
14553       fi
14554       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14555       hardcode_libdir_separator_F77=:
14556       hardcode_direct_F77=yes
14557
14558       # hardcode_minus_L: Not really in the search PATH,
14559       # but as the default location of the library.
14560       hardcode_minus_L_F77=yes
14561       export_dynamic_flag_spec_F77='${wl}-E'
14562       ;;
14563
14564     hpux10* | hpux11*)
14565       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14566         case "$host_cpu" in
14567         hppa*64*|ia64*)
14568           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14569           ;;
14570         *)
14571           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14572           ;;
14573         esac
14574       else
14575         case "$host_cpu" in
14576         hppa*64*|ia64*)
14577           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14578           ;;
14579         *)
14580           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14581           ;;
14582         esac
14583       fi
14584       if test "$with_gnu_ld" = no; then
14585         case "$host_cpu" in
14586         hppa*64*)
14587           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14588           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14589           hardcode_libdir_separator_F77=:
14590           hardcode_direct_F77=no
14591           hardcode_shlibpath_var_F77=no
14592           ;;
14593         ia64*)
14594           hardcode_libdir_flag_spec_F77='-L$libdir'
14595           hardcode_direct_F77=no
14596           hardcode_shlibpath_var_F77=no
14597
14598           # hardcode_minus_L: Not really in the search PATH,
14599           # but as the default location of the library.
14600           hardcode_minus_L_F77=yes
14601           ;;
14602         *)
14603           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14604           hardcode_libdir_separator_F77=:
14605           hardcode_direct_F77=yes
14606           export_dynamic_flag_spec_F77='${wl}-E'
14607
14608           # hardcode_minus_L: Not really in the search PATH,
14609           # but as the default location of the library.
14610           hardcode_minus_L_F77=yes
14611           ;;
14612         esac
14613       fi
14614       ;;
14615
14616     irix5* | irix6* | nonstopux*)
14617       if test "$GCC" = yes; then
14618         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'
14619       else
14620         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'
14621         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14622       fi
14623       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14624       hardcode_libdir_separator_F77=:
14625       link_all_deplibs_F77=yes
14626       ;;
14627
14628     netbsd*)
14629       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14630         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14631       else
14632         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14633       fi
14634       hardcode_libdir_flag_spec_F77='-R$libdir'
14635       hardcode_direct_F77=yes
14636       hardcode_shlibpath_var_F77=no
14637       ;;
14638
14639     newsos6)
14640       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14641       hardcode_direct_F77=yes
14642       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14643       hardcode_libdir_separator_F77=:
14644       hardcode_shlibpath_var_F77=no
14645       ;;
14646
14647     openbsd*)
14648       hardcode_direct_F77=yes
14649       hardcode_shlibpath_var_F77=no
14650       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14651         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14652         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14653         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14654         export_dynamic_flag_spec_F77='${wl}-E'
14655       else
14656        case $host_os in
14657          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14658            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14659            hardcode_libdir_flag_spec_F77='-R$libdir'
14660            ;;
14661          *)
14662            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14663            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14664            ;;
14665        esac
14666       fi
14667       ;;
14668
14669     os2*)
14670       hardcode_libdir_flag_spec_F77='-L$libdir'
14671       hardcode_minus_L_F77=yes
14672       allow_undefined_flag_F77=unsupported
14673       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'
14674       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14675       ;;
14676
14677     osf3*)
14678       if test "$GCC" = yes; then
14679         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14680         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'
14681       else
14682         allow_undefined_flag_F77=' -expect_unresolved \*'
14683         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'
14684       fi
14685       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14686       hardcode_libdir_separator_F77=:
14687       ;;
14688
14689     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14690       if test "$GCC" = yes; then
14691         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14692         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'
14693         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14694       else
14695         allow_undefined_flag_F77=' -expect_unresolved \*'
14696         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'
14697         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~
14698         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14699
14700         # Both c and cxx compiler support -rpath directly
14701         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14702       fi
14703       hardcode_libdir_separator_F77=:
14704       ;;
14705
14706     sco3.2v5*)
14707       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14708       hardcode_shlibpath_var_F77=no
14709       export_dynamic_flag_spec_F77='${wl}-Bexport'
14710       runpath_var=LD_RUN_PATH
14711       hardcode_runpath_var=yes
14712       ;;
14713
14714     solaris*)
14715       no_undefined_flag_F77=' -z text'
14716       if test "$GCC" = yes; then
14717         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14718         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14719           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14720       else
14721         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14722         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14723         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14724       fi
14725       hardcode_libdir_flag_spec_F77='-R$libdir'
14726       hardcode_shlibpath_var_F77=no
14727       case $host_os in
14728       solaris2.[0-5] | solaris2.[0-5].*) ;;
14729       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14730         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14731       esac
14732       link_all_deplibs_F77=yes
14733       ;;
14734
14735     sunos4*)
14736       if test "x$host_vendor" = xsequent; then
14737         # Use $CC to link under sequent, because it throws in some extra .o
14738         # files that make .init and .fini sections work.
14739         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14740       else
14741         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14742       fi
14743       hardcode_libdir_flag_spec_F77='-L$libdir'
14744       hardcode_direct_F77=yes
14745       hardcode_minus_L_F77=yes
14746       hardcode_shlibpath_var_F77=no
14747       ;;
14748
14749     sysv4)
14750       case $host_vendor in
14751         sni)
14752           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14753           hardcode_direct_F77=yes # is this really true???
14754         ;;
14755         siemens)
14756           ## LD is ld it makes a PLAMLIB
14757           ## CC just makes a GrossModule.
14758           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14759           reload_cmds_F77='$CC -r -o $output$reload_objs'
14760           hardcode_direct_F77=no
14761         ;;
14762         motorola)
14763           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14764           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14765         ;;
14766       esac
14767       runpath_var='LD_RUN_PATH'
14768       hardcode_shlibpath_var_F77=no
14769       ;;
14770
14771     sysv4.3*)
14772       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14773       hardcode_shlibpath_var_F77=no
14774       export_dynamic_flag_spec_F77='-Bexport'
14775       ;;
14776
14777     sysv4*MP*)
14778       if test -d /usr/nec; then
14779         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14780         hardcode_shlibpath_var_F77=no
14781         runpath_var=LD_RUN_PATH
14782         hardcode_runpath_var=yes
14783         ld_shlibs_F77=yes
14784       fi
14785       ;;
14786
14787     sysv4.2uw2*)
14788       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14789       hardcode_direct_F77=yes
14790       hardcode_minus_L_F77=no
14791       hardcode_shlibpath_var_F77=no
14792       hardcode_runpath_var=yes
14793       runpath_var=LD_RUN_PATH
14794       ;;
14795
14796    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14797       no_undefined_flag_F77='${wl}-z ${wl}text'
14798       if test "$GCC" = yes; then
14799         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14800       else
14801         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14802       fi
14803       runpath_var='LD_RUN_PATH'
14804       hardcode_shlibpath_var_F77=no
14805       ;;
14806
14807     sysv5*)
14808       no_undefined_flag_F77=' -z text'
14809       # $CC -shared without GNU ld will not create a library from C++
14810       # object files and a static libstdc++, better avoid it by now
14811       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14812       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14813                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14814       hardcode_libdir_flag_spec_F77=
14815       hardcode_shlibpath_var_F77=no
14816       runpath_var='LD_RUN_PATH'
14817       ;;
14818
14819     uts4*)
14820       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14821       hardcode_libdir_flag_spec_F77='-L$libdir'
14822       hardcode_shlibpath_var_F77=no
14823       ;;
14824
14825     *)
14826       ld_shlibs_F77=no
14827       ;;
14828     esac
14829   fi
14830
14831 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14832 echo "${ECHO_T}$ld_shlibs_F77" >&6
14833 test "$ld_shlibs_F77" = no && can_build_shared=no
14834
14835 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14836 if test "$GCC" = yes; then
14837   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14838 fi
14839
14840 #
14841 # Do we need to explicitly link libc?
14842 #
14843 case "x$archive_cmds_need_lc_F77" in
14844 x|xyes)
14845   # Assume -lc should be added
14846   archive_cmds_need_lc_F77=yes
14847
14848   if test "$enable_shared" = yes && test "$GCC" = yes; then
14849     case $archive_cmds_F77 in
14850     *'~'*)
14851       # FIXME: we may have to deal with multi-command sequences.
14852       ;;
14853     '$CC '*)
14854       # Test whether the compiler implicitly links with -lc since on some
14855       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14856       # to ld, don't add -lc before -lgcc.
14857       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14858 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14859       $rm conftest*
14860       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14861
14862       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14863   (eval $ac_compile) 2>&5
14864   ac_status=$?
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); } 2>conftest.err; then
14867         soname=conftest
14868         lib=conftest
14869         libobjs=conftest.$ac_objext
14870         deplibs=
14871         wl=$lt_prog_compiler_wl_F77
14872         compiler_flags=-v
14873         linker_flags=-v
14874         verstring=
14875         output_objdir=.
14876         libname=conftest
14877         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14878         allow_undefined_flag_F77=
14879         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14880   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); }
14884         then
14885           archive_cmds_need_lc_F77=no
14886         else
14887           archive_cmds_need_lc_F77=yes
14888         fi
14889         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14890       else
14891         cat conftest.err 1>&5
14892       fi
14893       $rm conftest*
14894       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14895 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14896       ;;
14897     esac
14898   fi
14899   ;;
14900 esac
14901
14902 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14903 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14904 library_names_spec=
14905 libname_spec='lib$name'
14906 soname_spec=
14907 shrext_cmds=".so"
14908 postinstall_cmds=
14909 postuninstall_cmds=
14910 finish_cmds=
14911 finish_eval=
14912 shlibpath_var=
14913 shlibpath_overrides_runpath=unknown
14914 version_type=none
14915 dynamic_linker="$host_os ld.so"
14916 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14917 if test "$GCC" = yes; then
14918   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14919   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14920     # if the path contains ";" then we assume it to be the separator
14921     # otherwise default to the standard path separator (i.e. ":") - it is
14922     # assumed that no part of a normal pathname contains ";" but that should
14923     # okay in the real world where ";" in dirpaths is itself problematic.
14924     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14925   else
14926     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14927   fi
14928 else
14929   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14930 fi
14931 need_lib_prefix=unknown
14932 hardcode_into_libs=no
14933
14934 # when you set need_version to no, make sure it does not cause -set_version
14935 # flags to be left without arguments
14936 need_version=unknown
14937
14938 case $host_os in
14939 aix3*)
14940   version_type=linux
14941   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14942   shlibpath_var=LIBPATH
14943
14944   # AIX 3 has no versioning support, so we append a major version to the name.
14945   soname_spec='${libname}${release}${shared_ext}$major'
14946   ;;
14947
14948 aix4* | aix5*)
14949   version_type=linux
14950   need_lib_prefix=no
14951   need_version=no
14952   hardcode_into_libs=yes
14953   if test "$host_cpu" = ia64; then
14954     # AIX 5 supports IA64
14955     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14956     shlibpath_var=LD_LIBRARY_PATH
14957   else
14958     # With GCC up to 2.95.x, collect2 would create an import file
14959     # for dependence libraries.  The import file would start with
14960     # the line `#! .'.  This would cause the generated library to
14961     # depend on `.', always an invalid library.  This was fixed in
14962     # development snapshots of GCC prior to 3.0.
14963     case $host_os in
14964       aix4 | aix4.[01] | aix4.[01].*)
14965       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14966            echo ' yes '
14967            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14968         :
14969       else
14970         can_build_shared=no
14971       fi
14972       ;;
14973     esac
14974     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14975     # soname into executable. Probably we can add versioning support to
14976     # collect2, so additional links can be useful in future.
14977     if test "$aix_use_runtimelinking" = yes; then
14978       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14979       # instead of lib<name>.a to let people know that these are not
14980       # typical AIX shared libraries.
14981       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982     else
14983       # We preserve .a as extension for shared libraries through AIX4.2
14984       # and later when we are not doing run time linking.
14985       library_names_spec='${libname}${release}.a $libname.a'
14986       soname_spec='${libname}${release}${shared_ext}$major'
14987     fi
14988     shlibpath_var=LIBPATH
14989   fi
14990   ;;
14991
14992 amigaos*)
14993   library_names_spec='$libname.ixlibrary $libname.a'
14994   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14995   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'
14996   ;;
14997
14998 beos*)
14999   library_names_spec='${libname}${shared_ext}'
15000   dynamic_linker="$host_os ld.so"
15001   shlibpath_var=LIBRARY_PATH
15002   ;;
15003
15004 bsdi[45]*)
15005   version_type=linux
15006   need_version=no
15007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15008   soname_spec='${libname}${release}${shared_ext}$major'
15009   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15010   shlibpath_var=LD_LIBRARY_PATH
15011   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15012   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15013   # the default ld.so.conf also contains /usr/contrib/lib and
15014   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15015   # libtool to hard-code these into programs
15016   ;;
15017
15018 cygwin* | mingw* | pw32*)
15019   version_type=windows
15020   shrext_cmds=".dll"
15021   need_version=no
15022   need_lib_prefix=no
15023
15024   case $GCC,$host_os in
15025   yes,cygwin* | yes,mingw* | yes,pw32*)
15026     library_names_spec='$libname.dll.a'
15027     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15028     postinstall_cmds='base_file=`basename \${file}`~
15029       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15030       dldir=$destdir/`dirname \$dlpath`~
15031       test -d \$dldir || mkdir -p \$dldir~
15032       $install_prog $dir/$dlname \$dldir/$dlname'
15033     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15034       dlpath=$dir/\$dldll~
15035        $rm \$dlpath'
15036     shlibpath_overrides_runpath=yes
15037
15038     case $host_os in
15039     cygwin*)
15040       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15041       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15042       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15043       ;;
15044     mingw*)
15045       # MinGW DLLs use traditional 'lib' prefix
15046       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15047       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15048       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15049         # It is most probably a Windows format PATH printed by
15050         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15051         # path with ; separators, and with drive letters. We can handle the
15052         # drive letters (cygwin fileutils understands them), so leave them,
15053         # especially as we might pass files found there to a mingw objdump,
15054         # which wouldn't understand a cygwinified path. Ahh.
15055         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15056       else
15057         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15058       fi
15059       ;;
15060     pw32*)
15061       # pw32 DLLs use 'pw' prefix rather than 'lib'
15062       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15063       ;;
15064     esac
15065     ;;
15066
15067   *)
15068     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15069     ;;
15070   esac
15071   dynamic_linker='Win32 ld.exe'
15072   # FIXME: first we should search . and the directory the executable is in
15073   shlibpath_var=PATH
15074   ;;
15075
15076 darwin* | rhapsody*)
15077   dynamic_linker="$host_os dyld"
15078   version_type=darwin
15079   need_lib_prefix=no
15080   need_version=no
15081   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15082   soname_spec='${libname}${release}${major}$shared_ext'
15083   shlibpath_overrides_runpath=yes
15084   shlibpath_var=DYLD_LIBRARY_PATH
15085   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15086   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15087   if test "$GCC" = yes; then
15088     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15089   else
15090     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15091   fi
15092   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15093   ;;
15094
15095 dgux*)
15096   version_type=linux
15097   need_lib_prefix=no
15098   need_version=no
15099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15100   soname_spec='${libname}${release}${shared_ext}$major'
15101   shlibpath_var=LD_LIBRARY_PATH
15102   ;;
15103
15104 freebsd1*)
15105   dynamic_linker=no
15106   ;;
15107
15108 kfreebsd*-gnu)
15109   version_type=linux
15110   need_lib_prefix=no
15111   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
15115   shlibpath_overrides_runpath=no
15116   hardcode_into_libs=yes
15117   dynamic_linker='GNU ld.so'
15118   ;;
15119
15120 freebsd*)
15121   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15122   version_type=freebsd-$objformat
15123   case $version_type in
15124     freebsd-elf*)
15125       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15126       need_version=no
15127       need_lib_prefix=no
15128       ;;
15129     freebsd-*)
15130       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15131       need_version=yes
15132       ;;
15133   esac
15134   shlibpath_var=LD_LIBRARY_PATH
15135   case $host_os in
15136   freebsd2*)
15137     shlibpath_overrides_runpath=yes
15138     ;;
15139   freebsd3.01* | freebsdelf3.01*)
15140     shlibpath_overrides_runpath=yes
15141     hardcode_into_libs=yes
15142     ;;
15143   *) # from 3.2 on
15144     shlibpath_overrides_runpath=no
15145     hardcode_into_libs=yes
15146     ;;
15147   esac
15148   ;;
15149
15150 gnu*)
15151   version_type=linux
15152   need_lib_prefix=no
15153   need_version=no
15154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15155   soname_spec='${libname}${release}${shared_ext}$major'
15156   shlibpath_var=LD_LIBRARY_PATH
15157   hardcode_into_libs=yes
15158   ;;
15159
15160 hpux9* | hpux10* | hpux11*)
15161   # Give a soname corresponding to the major version so that dld.sl refuses to
15162   # link against other versions.
15163   version_type=sunos
15164   need_lib_prefix=no
15165   need_version=no
15166   case "$host_cpu" in
15167   ia64*)
15168     shrext_cmds='.so'
15169     hardcode_into_libs=yes
15170     dynamic_linker="$host_os dld.so"
15171     shlibpath_var=LD_LIBRARY_PATH
15172     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174     soname_spec='${libname}${release}${shared_ext}$major'
15175     if test "X$HPUX_IA64_MODE" = X32; then
15176       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15177     else
15178       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15179     fi
15180     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15181     ;;
15182    hppa*64*)
15183      shrext_cmds='.sl'
15184      hardcode_into_libs=yes
15185      dynamic_linker="$host_os dld.sl"
15186      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15187      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15188      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189      soname_spec='${libname}${release}${shared_ext}$major'
15190      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15191      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15192      ;;
15193    *)
15194     shrext_cmds='.sl'
15195     dynamic_linker="$host_os dld.sl"
15196     shlibpath_var=SHLIB_PATH
15197     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199     soname_spec='${libname}${release}${shared_ext}$major'
15200     ;;
15201   esac
15202   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15203   postinstall_cmds='chmod 555 $lib'
15204   ;;
15205
15206 irix5* | irix6* | nonstopux*)
15207   case $host_os in
15208     nonstopux*) version_type=nonstopux ;;
15209     *)
15210         if test "$lt_cv_prog_gnu_ld" = yes; then
15211                 version_type=linux
15212         else
15213                 version_type=irix
15214         fi ;;
15215   esac
15216   need_lib_prefix=no
15217   need_version=no
15218   soname_spec='${libname}${release}${shared_ext}$major'
15219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15220   case $host_os in
15221   irix5* | nonstopux*)
15222     libsuff= shlibsuff=
15223     ;;
15224   *)
15225     case $LD in # libtool.m4 will add one of these switches to LD
15226     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15227       libsuff= shlibsuff= libmagic=32-bit;;
15228     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15229       libsuff=32 shlibsuff=N32 libmagic=N32;;
15230     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15231       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15232     *) libsuff= shlibsuff= libmagic=never-match;;
15233     esac
15234     ;;
15235   esac
15236   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15237   shlibpath_overrides_runpath=no
15238   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15239   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15240   hardcode_into_libs=yes
15241   ;;
15242
15243 # No shared lib support for Linux oldld, aout, or coff.
15244 linux*oldld* | linux*aout* | linux*coff*)
15245   dynamic_linker=no
15246   ;;
15247
15248 # This must be Linux ELF.
15249 linux*)
15250   version_type=linux
15251   need_lib_prefix=no
15252   need_version=no
15253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254   soname_spec='${libname}${release}${shared_ext}$major'
15255   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15256   shlibpath_var=LD_LIBRARY_PATH
15257   shlibpath_overrides_runpath=no
15258   # This implies no fast_install, which is unacceptable.
15259   # Some rework will be needed to allow for fast_install
15260   # before this can be enabled.
15261   hardcode_into_libs=yes
15262
15263   # Append ld.so.conf contents to the search path
15264   if test -f /etc/ld.so.conf; then
15265     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15266     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15267   fi
15268
15269   # We used to test for /lib/ld.so.1 and disable shared libraries on
15270   # powerpc, because MkLinux only supported shared libraries with the
15271   # GNU dynamic linker.  Since this was broken with cross compilers,
15272   # most powerpc-linux boxes support dynamic linking these days and
15273   # people can always --disable-shared, the test was removed, and we
15274   # assume the GNU/Linux dynamic linker is in use.
15275   dynamic_linker='GNU/Linux ld.so'
15276   ;;
15277
15278 knetbsd*-gnu)
15279   version_type=linux
15280   need_lib_prefix=no
15281   need_version=no
15282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15283   soname_spec='${libname}${release}${shared_ext}$major'
15284   shlibpath_var=LD_LIBRARY_PATH
15285   shlibpath_overrides_runpath=no
15286   hardcode_into_libs=yes
15287   dynamic_linker='GNU ld.so'
15288   ;;
15289
15290 netbsd*)
15291   version_type=sunos
15292   need_lib_prefix=no
15293   need_version=no
15294   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15296     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15297     dynamic_linker='NetBSD (a.out) ld.so'
15298   else
15299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15300     soname_spec='${libname}${release}${shared_ext}$major'
15301     dynamic_linker='NetBSD ld.elf_so'
15302   fi
15303   shlibpath_var=LD_LIBRARY_PATH
15304   shlibpath_overrides_runpath=yes
15305   hardcode_into_libs=yes
15306   ;;
15307
15308 newsos6)
15309   version_type=linux
15310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15311   shlibpath_var=LD_LIBRARY_PATH
15312   shlibpath_overrides_runpath=yes
15313   ;;
15314
15315 nto-qnx*)
15316   version_type=linux
15317   need_lib_prefix=no
15318   need_version=no
15319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15320   soname_spec='${libname}${release}${shared_ext}$major'
15321   shlibpath_var=LD_LIBRARY_PATH
15322   shlibpath_overrides_runpath=yes
15323   ;;
15324
15325 openbsd*)
15326   version_type=sunos
15327   need_lib_prefix=no
15328   need_version=no
15329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15330   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15331   shlibpath_var=LD_LIBRARY_PATH
15332   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15333     case $host_os in
15334       openbsd2.[89] | openbsd2.[89].*)
15335         shlibpath_overrides_runpath=no
15336         ;;
15337       *)
15338         shlibpath_overrides_runpath=yes
15339         ;;
15340       esac
15341   else
15342     shlibpath_overrides_runpath=yes
15343   fi
15344   ;;
15345
15346 os2*)
15347   libname_spec='$name'
15348   shrext_cmds=".dll"
15349   need_lib_prefix=no
15350   library_names_spec='$libname${shared_ext} $libname.a'
15351   dynamic_linker='OS/2 ld.exe'
15352   shlibpath_var=LIBPATH
15353   ;;
15354
15355 osf3* | osf4* | osf5*)
15356   version_type=osf
15357   need_lib_prefix=no
15358   need_version=no
15359   soname_spec='${libname}${release}${shared_ext}$major'
15360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361   shlibpath_var=LD_LIBRARY_PATH
15362   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15363   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15364   ;;
15365
15366 sco3.2v5*)
15367   version_type=osf
15368   soname_spec='${libname}${release}${shared_ext}$major'
15369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370   shlibpath_var=LD_LIBRARY_PATH
15371   ;;
15372
15373 solaris*)
15374   version_type=linux
15375   need_lib_prefix=no
15376   need_version=no
15377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378   soname_spec='${libname}${release}${shared_ext}$major'
15379   shlibpath_var=LD_LIBRARY_PATH
15380   shlibpath_overrides_runpath=yes
15381   hardcode_into_libs=yes
15382   # ldd complains unless libraries are executable
15383   postinstall_cmds='chmod +x $lib'
15384   ;;
15385
15386 sunos4*)
15387   version_type=sunos
15388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15389   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15390   shlibpath_var=LD_LIBRARY_PATH
15391   shlibpath_overrides_runpath=yes
15392   if test "$with_gnu_ld" = yes; then
15393     need_lib_prefix=no
15394   fi
15395   need_version=yes
15396   ;;
15397
15398 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15399   version_type=linux
15400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401   soname_spec='${libname}${release}${shared_ext}$major'
15402   shlibpath_var=LD_LIBRARY_PATH
15403   case $host_vendor in
15404     sni)
15405       shlibpath_overrides_runpath=no
15406       need_lib_prefix=no
15407       export_dynamic_flag_spec='${wl}-Blargedynsym'
15408       runpath_var=LD_RUN_PATH
15409       ;;
15410     siemens)
15411       need_lib_prefix=no
15412       ;;
15413     motorola)
15414       need_lib_prefix=no
15415       need_version=no
15416       shlibpath_overrides_runpath=no
15417       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15418       ;;
15419   esac
15420   ;;
15421
15422 sysv4*MP*)
15423   if test -d /usr/nec ;then
15424     version_type=linux
15425     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15426     soname_spec='$libname${shared_ext}.$major'
15427     shlibpath_var=LD_LIBRARY_PATH
15428   fi
15429   ;;
15430
15431 uts4*)
15432   version_type=linux
15433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434   soname_spec='${libname}${release}${shared_ext}$major'
15435   shlibpath_var=LD_LIBRARY_PATH
15436   ;;
15437
15438 *)
15439   dynamic_linker=no
15440   ;;
15441 esac
15442 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15443 echo "${ECHO_T}$dynamic_linker" >&6
15444 test "$dynamic_linker" = no && can_build_shared=no
15445
15446 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15447 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15448 hardcode_action_F77=
15449 if test -n "$hardcode_libdir_flag_spec_F77" || \
15450    test -n "$runpath_var_F77" || \
15451    test "X$hardcode_automatic_F77" = "Xyes" ; then
15452
15453   # We can hardcode non-existant directories.
15454   if test "$hardcode_direct_F77" != no &&
15455      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15456      # have to relink, otherwise we might link with an installed library
15457      # when we should be linking with a yet-to-be-installed one
15458      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15459      test "$hardcode_minus_L_F77" != no; then
15460     # Linking always hardcodes the temporary library directory.
15461     hardcode_action_F77=relink
15462   else
15463     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15464     hardcode_action_F77=immediate
15465   fi
15466 else
15467   # We cannot hardcode anything, or else we can only hardcode existing
15468   # directories.
15469   hardcode_action_F77=unsupported
15470 fi
15471 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15472 echo "${ECHO_T}$hardcode_action_F77" >&6
15473
15474 if test "$hardcode_action_F77" = relink; then
15475   # Fast installation is not supported
15476   enable_fast_install=no
15477 elif test "$shlibpath_overrides_runpath" = yes ||
15478      test "$enable_shared" = no; then
15479   # Fast installation is not necessary
15480   enable_fast_install=needless
15481 fi
15482
15483 striplib=
15484 old_striplib=
15485 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15486 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15487 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15488   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15489   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15490   echo "$as_me:$LINENO: result: yes" >&5
15491 echo "${ECHO_T}yes" >&6
15492 else
15493 # FIXME - insert some real tests, host_os isn't really good enough
15494   case $host_os in
15495    darwin*)
15496        if test -n "$STRIP" ; then
15497          striplib="$STRIP -x"
15498          echo "$as_me:$LINENO: result: yes" >&5
15499 echo "${ECHO_T}yes" >&6
15500        else
15501   echo "$as_me:$LINENO: result: no" >&5
15502 echo "${ECHO_T}no" >&6
15503 fi
15504        ;;
15505    *)
15506   echo "$as_me:$LINENO: result: no" >&5
15507 echo "${ECHO_T}no" >&6
15508     ;;
15509   esac
15510 fi
15511
15512
15513
15514 # The else clause should only fire when bootstrapping the
15515 # libtool distribution, otherwise you forgot to ship ltmain.sh
15516 # with your package, and you will get complaints that there are
15517 # no rules to generate ltmain.sh.
15518 if test -f "$ltmain"; then
15519   # See if we are running on zsh, and set the options which allow our commands through
15520   # without removal of \ escapes.
15521   if test -n "${ZSH_VERSION+set}" ; then
15522     setopt NO_GLOB_SUBST
15523   fi
15524   # Now quote all the things that may contain metacharacters while being
15525   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15526   # variables and quote the copies for generation of the libtool script.
15527   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15528     SED SHELL STRIP \
15529     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15530     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15531     deplibs_check_method reload_flag reload_cmds need_locks \
15532     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15533     lt_cv_sys_global_symbol_to_c_name_address \
15534     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15535     old_postinstall_cmds old_postuninstall_cmds \
15536     compiler_F77 \
15537     CC_F77 \
15538     LD_F77 \
15539     lt_prog_compiler_wl_F77 \
15540     lt_prog_compiler_pic_F77 \
15541     lt_prog_compiler_static_F77 \
15542     lt_prog_compiler_no_builtin_flag_F77 \
15543     export_dynamic_flag_spec_F77 \
15544     thread_safe_flag_spec_F77 \
15545     whole_archive_flag_spec_F77 \
15546     enable_shared_with_static_runtimes_F77 \
15547     old_archive_cmds_F77 \
15548     old_archive_from_new_cmds_F77 \
15549     predep_objects_F77 \
15550     postdep_objects_F77 \
15551     predeps_F77 \
15552     postdeps_F77 \
15553     compiler_lib_search_path_F77 \
15554     archive_cmds_F77 \
15555     archive_expsym_cmds_F77 \
15556     postinstall_cmds_F77 \
15557     postuninstall_cmds_F77 \
15558     old_archive_from_expsyms_cmds_F77 \
15559     allow_undefined_flag_F77 \
15560     no_undefined_flag_F77 \
15561     export_symbols_cmds_F77 \
15562     hardcode_libdir_flag_spec_F77 \
15563     hardcode_libdir_flag_spec_ld_F77 \
15564     hardcode_libdir_separator_F77 \
15565     hardcode_automatic_F77 \
15566     module_cmds_F77 \
15567     module_expsym_cmds_F77 \
15568     lt_cv_prog_compiler_c_o_F77 \
15569     exclude_expsyms_F77 \
15570     include_expsyms_F77; do
15571
15572     case $var in
15573     old_archive_cmds_F77 | \
15574     old_archive_from_new_cmds_F77 | \
15575     archive_cmds_F77 | \
15576     archive_expsym_cmds_F77 | \
15577     module_cmds_F77 | \
15578     module_expsym_cmds_F77 | \
15579     old_archive_from_expsyms_cmds_F77 | \
15580     export_symbols_cmds_F77 | \
15581     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15582     postinstall_cmds | postuninstall_cmds | \
15583     old_postinstall_cmds | old_postuninstall_cmds | \
15584     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15585       # Double-quote double-evaled strings.
15586       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15587       ;;
15588     *)
15589       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15590       ;;
15591     esac
15592   done
15593
15594   case $lt_echo in
15595   *'\$0 --fallback-echo"')
15596     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15597     ;;
15598   esac
15599
15600 cfgfile="$ofile"
15601
15602   cat <<__EOF__ >> "$cfgfile"
15603 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15604
15605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15606
15607 # Shell to use when invoking shell scripts.
15608 SHELL=$lt_SHELL
15609
15610 # Whether or not to build shared libraries.
15611 build_libtool_libs=$enable_shared
15612
15613 # Whether or not to build static libraries.
15614 build_old_libs=$enable_static
15615
15616 # Whether or not to add -lc for building shared libraries.
15617 build_libtool_need_lc=$archive_cmds_need_lc_F77
15618
15619 # Whether or not to disallow shared libs when runtime libs are static
15620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15621
15622 # Whether or not to optimize for fast installation.
15623 fast_install=$enable_fast_install
15624
15625 # The host system.
15626 host_alias=$host_alias
15627 host=$host
15628
15629 # An echo program that does not interpret backslashes.
15630 echo=$lt_echo
15631
15632 # The archiver.
15633 AR=$lt_AR
15634 AR_FLAGS=$lt_AR_FLAGS
15635
15636 # A C compiler.
15637 LTCC=$lt_LTCC
15638
15639 # A language-specific compiler.
15640 CC=$lt_compiler_F77
15641
15642 # Is the compiler the GNU C compiler?
15643 with_gcc=$GCC_F77
15644
15645 # An ERE matcher.
15646 EGREP=$lt_EGREP
15647
15648 # The linker used to build libraries.
15649 LD=$lt_LD_F77
15650
15651 # Whether we need hard or soft links.
15652 LN_S=$lt_LN_S
15653
15654 # A BSD-compatible nm program.
15655 NM=$lt_NM
15656
15657 # A symbol stripping program
15658 STRIP=$lt_STRIP
15659
15660 # Used to examine libraries when file_magic_cmd begins "file"
15661 MAGIC_CMD=$MAGIC_CMD
15662
15663 # Used on cygwin: DLL creation program.
15664 DLLTOOL="$DLLTOOL"
15665
15666 # Used on cygwin: object dumper.
15667 OBJDUMP="$OBJDUMP"
15668
15669 # Used on cygwin: assembler.
15670 AS="$AS"
15671
15672 # The name of the directory that contains temporary libtool files.
15673 objdir=$objdir
15674
15675 # How to create reloadable object files.
15676 reload_flag=$lt_reload_flag
15677 reload_cmds=$lt_reload_cmds
15678
15679 # How to pass a linker flag through the compiler.
15680 wl=$lt_lt_prog_compiler_wl_F77
15681
15682 # Object file suffix (normally "o").
15683 objext="$ac_objext"
15684
15685 # Old archive suffix (normally "a").
15686 libext="$libext"
15687
15688 # Shared library suffix (normally ".so").
15689 shrext_cmds='$shrext_cmds'
15690
15691 # Executable file suffix (normally "").
15692 exeext="$exeext"
15693
15694 # Additional compiler flags for building library objects.
15695 pic_flag=$lt_lt_prog_compiler_pic_F77
15696 pic_mode=$pic_mode
15697
15698 # What is the maximum length of a command?
15699 max_cmd_len=$lt_cv_sys_max_cmd_len
15700
15701 # Does compiler simultaneously support -c and -o options?
15702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15703
15704 # Must we lock files when doing compilation ?
15705 need_locks=$lt_need_locks
15706
15707 # Do we need the lib prefix for modules?
15708 need_lib_prefix=$need_lib_prefix
15709
15710 # Do we need a version for libraries?
15711 need_version=$need_version
15712
15713 # Whether dlopen is supported.
15714 dlopen_support=$enable_dlopen
15715
15716 # Whether dlopen of programs is supported.
15717 dlopen_self=$enable_dlopen_self
15718
15719 # Whether dlopen of statically linked programs is supported.
15720 dlopen_self_static=$enable_dlopen_self_static
15721
15722 # Compiler flag to prevent dynamic linking.
15723 link_static_flag=$lt_lt_prog_compiler_static_F77
15724
15725 # Compiler flag to turn off builtin functions.
15726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15727
15728 # Compiler flag to allow reflexive dlopens.
15729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15730
15731 # Compiler flag to generate shared objects directly from archives.
15732 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15733
15734 # Compiler flag to generate thread-safe objects.
15735 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15736
15737 # Library versioning type.
15738 version_type=$version_type
15739
15740 # Format of library name prefix.
15741 libname_spec=$lt_libname_spec
15742
15743 # List of archive names.  First name is the real one, the rest are links.
15744 # The last name is the one that the linker finds with -lNAME.
15745 library_names_spec=$lt_library_names_spec
15746
15747 # The coded name of the library, if different from the real name.
15748 soname_spec=$lt_soname_spec
15749
15750 # Commands used to build and install an old-style archive.
15751 RANLIB=$lt_RANLIB
15752 old_archive_cmds=$lt_old_archive_cmds_F77
15753 old_postinstall_cmds=$lt_old_postinstall_cmds
15754 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15755
15756 # Create an old-style archive from a shared archive.
15757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15758
15759 # Create a temporary old-style archive to link instead of a shared archive.
15760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15761
15762 # Commands used to build and install a shared archive.
15763 archive_cmds=$lt_archive_cmds_F77
15764 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15765 postinstall_cmds=$lt_postinstall_cmds
15766 postuninstall_cmds=$lt_postuninstall_cmds
15767
15768 # Commands used to build a loadable module (assumed same as above if empty)
15769 module_cmds=$lt_module_cmds_F77
15770 module_expsym_cmds=$lt_module_expsym_cmds_F77
15771
15772 # Commands to strip libraries.
15773 old_striplib=$lt_old_striplib
15774 striplib=$lt_striplib
15775
15776 # Dependencies to place before the objects being linked to create a
15777 # shared library.
15778 predep_objects=$lt_predep_objects_F77
15779
15780 # Dependencies to place after the objects being linked to create a
15781 # shared library.
15782 postdep_objects=$lt_postdep_objects_F77
15783
15784 # Dependencies to place before the objects being linked to create a
15785 # shared library.
15786 predeps=$lt_predeps_F77
15787
15788 # Dependencies to place after the objects being linked to create a
15789 # shared library.
15790 postdeps=$lt_postdeps_F77
15791
15792 # The library search path used internally by the compiler when linking
15793 # a shared library.
15794 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15795
15796 # Method to check whether dependent libraries are shared objects.
15797 deplibs_check_method=$lt_deplibs_check_method
15798
15799 # Command to use when deplibs_check_method == file_magic.
15800 file_magic_cmd=$lt_file_magic_cmd
15801
15802 # Flag that allows shared libraries with undefined symbols to be built.
15803 allow_undefined_flag=$lt_allow_undefined_flag_F77
15804
15805 # Flag that forces no undefined symbols.
15806 no_undefined_flag=$lt_no_undefined_flag_F77
15807
15808 # Commands used to finish a libtool library installation in a directory.
15809 finish_cmds=$lt_finish_cmds
15810
15811 # Same as above, but a single script fragment to be evaled but not shown.
15812 finish_eval=$lt_finish_eval
15813
15814 # Take the output of nm and produce a listing of raw symbols and C names.
15815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15816
15817 # Transform the output of nm in a proper C declaration
15818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15819
15820 # Transform the output of nm in a C name address pair
15821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15822
15823 # This is the shared library runtime path variable.
15824 runpath_var=$runpath_var
15825
15826 # This is the shared library path variable.
15827 shlibpath_var=$shlibpath_var
15828
15829 # Is shlibpath searched before the hard-coded library search path?
15830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15831
15832 # How to hardcode a shared library path into an executable.
15833 hardcode_action=$hardcode_action_F77
15834
15835 # Whether we should hardcode library paths into libraries.
15836 hardcode_into_libs=$hardcode_into_libs
15837
15838 # Flag to hardcode \$libdir into a binary during linking.
15839 # This must work even if \$libdir does not exist.
15840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15841
15842 # If ld is used when linking, flag to hardcode \$libdir into
15843 # a binary during linking. This must work even if \$libdir does
15844 # not exist.
15845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15846
15847 # Whether we need a single -rpath flag with a separated argument.
15848 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15849
15850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15851 # resulting binary.
15852 hardcode_direct=$hardcode_direct_F77
15853
15854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15855 # resulting binary.
15856 hardcode_minus_L=$hardcode_minus_L_F77
15857
15858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15859 # the resulting binary.
15860 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15861
15862 # Set to yes if building a shared library automatically hardcodes DIR into the library
15863 # and all subsequent libraries and executables linked against it.
15864 hardcode_automatic=$hardcode_automatic_F77
15865
15866 # Variables whose values should be saved in libtool wrapper scripts and
15867 # restored at relink time.
15868 variables_saved_for_relink="$variables_saved_for_relink"
15869
15870 # Whether libtool must link a program against all its dependency libraries.
15871 link_all_deplibs=$link_all_deplibs_F77
15872
15873 # Compile-time system search path for libraries
15874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15875
15876 # Run-time system search path for libraries
15877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15878
15879 # Fix the shell variable \$srcfile for the compiler.
15880 fix_srcfile_path="$fix_srcfile_path_F77"
15881
15882 # Set to yes if exported symbols are required.
15883 always_export_symbols=$always_export_symbols_F77
15884
15885 # The commands to list exported symbols.
15886 export_symbols_cmds=$lt_export_symbols_cmds_F77
15887
15888 # The commands to extract the exported symbol list from a shared archive.
15889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15890
15891 # Symbols that should not be listed in the preloaded symbols.
15892 exclude_expsyms=$lt_exclude_expsyms_F77
15893
15894 # Symbols that must always be exported.
15895 include_expsyms=$lt_include_expsyms_F77
15896
15897 # ### END LIBTOOL TAG CONFIG: $tagname
15898
15899 __EOF__
15900
15901
15902 else
15903   # If there is no Makefile yet, we rely on a make rule to execute
15904   # `config.status --recheck' to rerun these tests and create the
15905   # libtool script then.
15906   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15907   if test -f "$ltmain_in"; then
15908     test -f Makefile && make "$ltmain"
15909   fi
15910 fi
15911
15912
15913 ac_ext=c
15914 ac_cpp='$CPP $CPPFLAGS'
15915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15918
15919 CC="$lt_save_CC"
15920
15921         else
15922           tagname=""
15923         fi
15924         ;;
15925
15926       GCJ)
15927         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15928
15929
15930
15931 # Source file extension for Java test sources.
15932 ac_ext=java
15933
15934 # Object file extension for compiled Java test sources.
15935 objext=o
15936 objext_GCJ=$objext
15937
15938 # Code to be used in simple compile tests
15939 lt_simple_compile_test_code="class foo {}\n"
15940
15941 # Code to be used in simple link tests
15942 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15943
15944 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15945
15946 # If no C compiler was specified, use CC.
15947 LTCC=${LTCC-"$CC"}
15948
15949 # Allow CC to be a program name with arguments.
15950 compiler=$CC
15951
15952
15953 # Allow CC to be a program name with arguments.
15954 lt_save_CC="$CC"
15955 CC=${GCJ-"gcj"}
15956 compiler=$CC
15957 compiler_GCJ=$CC
15958
15959 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15960 archive_cmds_need_lc_GCJ=no
15961
15962 ## CAVEAT EMPTOR:
15963 ## There is no encapsulation within the following macros, do not change
15964 ## the running order or otherwise move them around unless you know exactly
15965 ## what you are doing...
15966
15967 lt_prog_compiler_no_builtin_flag_GCJ=
15968
15969 if test "$GCC" = yes; then
15970   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15971
15972
15973 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15974 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15975 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15976   echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978   lt_cv_prog_compiler_rtti_exceptions=no
15979   ac_outfile=conftest.$ac_objext
15980    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15981    lt_compiler_flag="-fno-rtti -fno-exceptions"
15982    # Insert the option either (1) after the last *FLAGS variable, or
15983    # (2) before a word containing "conftest.", or (3) at the end.
15984    # Note that $ac_compile itself does not contain backslashes and begins
15985    # with a dollar sign (not a hyphen), so the echo should work correctly.
15986    # The option is referenced via a variable to avoid confusing sed.
15987    lt_compile=`echo "$ac_compile" | $SED \
15988    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15989    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15990    -e 's:$: $lt_compiler_flag:'`
15991    (eval echo "\"\$as_me:15991: $lt_compile\"" >&5)
15992    (eval "$lt_compile" 2>conftest.err)
15993    ac_status=$?
15994    cat conftest.err >&5
15995    echo "$as_me:15995: \$? = $ac_status" >&5
15996    if (exit $ac_status) && test -s "$ac_outfile"; then
15997      # The compiler can only warn and ignore the option if not recognized
15998      # So say no if there are warnings
15999      if test ! -s conftest.err; then
16000        lt_cv_prog_compiler_rtti_exceptions=yes
16001      fi
16002    fi
16003    $rm conftest*
16004
16005 fi
16006 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16007 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16008
16009 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16010     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16011 else
16012     :
16013 fi
16014
16015 fi
16016
16017 lt_prog_compiler_wl_GCJ=
16018 lt_prog_compiler_pic_GCJ=
16019 lt_prog_compiler_static_GCJ=
16020
16021 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16022 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16023
16024   if test "$GCC" = yes; then
16025     lt_prog_compiler_wl_GCJ='-Wl,'
16026     lt_prog_compiler_static_GCJ='-static'
16027
16028     case $host_os in
16029       aix*)
16030       # All AIX code is PIC.
16031       if test "$host_cpu" = ia64; then
16032         # AIX 5 now supports IA64 processor
16033         lt_prog_compiler_static_GCJ='-Bstatic'
16034       fi
16035       ;;
16036
16037     amigaos*)
16038       # FIXME: we need at least 68020 code to build shared libraries, but
16039       # adding the `-m68020' flag to GCC prevents building anything better,
16040       # like `-m68040'.
16041       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16042       ;;
16043
16044     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16045       # PIC is the default for these OSes.
16046       ;;
16047
16048     mingw* | pw32* | os2*)
16049       # This hack is so that the source file can tell whether it is being
16050       # built for inclusion in a dll (and should export symbols for example).
16051       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16052       ;;
16053
16054     darwin* | rhapsody*)
16055       # PIC is the default on this platform
16056       # Common symbols not allowed in MH_DYLIB files
16057       lt_prog_compiler_pic_GCJ='-fno-common'
16058       ;;
16059
16060     msdosdjgpp*)
16061       # Just because we use GCC doesn't mean we suddenly get shared libraries
16062       # on systems that don't support them.
16063       lt_prog_compiler_can_build_shared_GCJ=no
16064       enable_shared=no
16065       ;;
16066
16067     sysv4*MP*)
16068       if test -d /usr/nec; then
16069         lt_prog_compiler_pic_GCJ=-Kconform_pic
16070       fi
16071       ;;
16072
16073     hpux*)
16074       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16075       # not for PA HP-UX.
16076       case "$host_cpu" in
16077       hppa*64*|ia64*)
16078         # +Z the default
16079         ;;
16080       *)
16081         lt_prog_compiler_pic_GCJ='-fPIC'
16082         ;;
16083       esac
16084       ;;
16085
16086     *)
16087       lt_prog_compiler_pic_GCJ='-fPIC'
16088       ;;
16089     esac
16090   else
16091     # PORTME Check for flag to pass linker flags through the system compiler.
16092     case $host_os in
16093     aix*)
16094       lt_prog_compiler_wl_GCJ='-Wl,'
16095       if test "$host_cpu" = ia64; then
16096         # AIX 5 now supports IA64 processor
16097         lt_prog_compiler_static_GCJ='-Bstatic'
16098       else
16099         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16100       fi
16101       ;;
16102       darwin*)
16103         # PIC is the default on this platform
16104         # Common symbols not allowed in MH_DYLIB files
16105        case "$cc_basename" in
16106          xlc*)
16107          lt_prog_compiler_pic_GCJ='-qnocommon'
16108          lt_prog_compiler_wl_GCJ='-Wl,'
16109          ;;
16110        esac
16111        ;;
16112
16113     mingw* | pw32* | os2*)
16114       # This hack is so that the source file can tell whether it is being
16115       # built for inclusion in a dll (and should export symbols for example).
16116       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16117       ;;
16118
16119     hpux9* | hpux10* | hpux11*)
16120       lt_prog_compiler_wl_GCJ='-Wl,'
16121       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16122       # not for PA HP-UX.
16123       case "$host_cpu" in
16124       hppa*64*|ia64*)
16125         # +Z the default
16126         ;;
16127       *)
16128         lt_prog_compiler_pic_GCJ='+Z'
16129         ;;
16130       esac
16131       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16132       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16133       ;;
16134
16135     irix5* | irix6* | nonstopux*)
16136       lt_prog_compiler_wl_GCJ='-Wl,'
16137       # PIC (with -KPIC) is the default.
16138       lt_prog_compiler_static_GCJ='-non_shared'
16139       ;;
16140
16141     newsos6)
16142       lt_prog_compiler_pic_GCJ='-KPIC'
16143       lt_prog_compiler_static_GCJ='-Bstatic'
16144       ;;
16145
16146     linux*)
16147       case $CC in
16148       icc* | ecc*)
16149         lt_prog_compiler_wl_GCJ='-Wl,'
16150         lt_prog_compiler_pic_GCJ='-KPIC'
16151         lt_prog_compiler_static_GCJ='-static'
16152         ;;
16153       ccc*)
16154         lt_prog_compiler_wl_GCJ='-Wl,'
16155         # All Alpha code is PIC.
16156         lt_prog_compiler_static_GCJ='-non_shared'
16157         ;;
16158       esac
16159       ;;
16160
16161     osf3* | osf4* | osf5*)
16162       lt_prog_compiler_wl_GCJ='-Wl,'
16163       # All OSF/1 code is PIC.
16164       lt_prog_compiler_static_GCJ='-non_shared'
16165       ;;
16166
16167     sco3.2v5*)
16168       lt_prog_compiler_pic_GCJ='-Kpic'
16169       lt_prog_compiler_static_GCJ='-dn'
16170       ;;
16171
16172     solaris*)
16173       lt_prog_compiler_wl_GCJ='-Wl,'
16174       lt_prog_compiler_pic_GCJ='-KPIC'
16175       lt_prog_compiler_static_GCJ='-Bstatic'
16176       ;;
16177
16178     sunos4*)
16179       lt_prog_compiler_wl_GCJ='-Qoption ld '
16180       lt_prog_compiler_pic_GCJ='-PIC'
16181       lt_prog_compiler_static_GCJ='-Bstatic'
16182       ;;
16183
16184     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16185       lt_prog_compiler_wl_GCJ='-Wl,'
16186       lt_prog_compiler_pic_GCJ='-KPIC'
16187       lt_prog_compiler_static_GCJ='-Bstatic'
16188       ;;
16189
16190     sysv4*MP*)
16191       if test -d /usr/nec ;then
16192         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16193         lt_prog_compiler_static_GCJ='-Bstatic'
16194       fi
16195       ;;
16196
16197     uts4*)
16198       lt_prog_compiler_pic_GCJ='-pic'
16199       lt_prog_compiler_static_GCJ='-Bstatic'
16200       ;;
16201
16202     *)
16203       lt_prog_compiler_can_build_shared_GCJ=no
16204       ;;
16205     esac
16206   fi
16207
16208 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16209 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16210
16211 #
16212 # Check to make sure the PIC flag actually works.
16213 #
16214 if test -n "$lt_prog_compiler_pic_GCJ"; then
16215
16216 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16217 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16218 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16219   echo $ECHO_N "(cached) $ECHO_C" >&6
16220 else
16221   lt_prog_compiler_pic_works_GCJ=no
16222   ac_outfile=conftest.$ac_objext
16223    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16224    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16225    # Insert the option either (1) after the last *FLAGS variable, or
16226    # (2) before a word containing "conftest.", or (3) at the end.
16227    # Note that $ac_compile itself does not contain backslashes and begins
16228    # with a dollar sign (not a hyphen), so the echo should work correctly.
16229    # The option is referenced via a variable to avoid confusing sed.
16230    lt_compile=`echo "$ac_compile" | $SED \
16231    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16232    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16233    -e 's:$: $lt_compiler_flag:'`
16234    (eval echo "\"\$as_me:16234: $lt_compile\"" >&5)
16235    (eval "$lt_compile" 2>conftest.err)
16236    ac_status=$?
16237    cat conftest.err >&5
16238    echo "$as_me:16238: \$? = $ac_status" >&5
16239    if (exit $ac_status) && test -s "$ac_outfile"; then
16240      # The compiler can only warn and ignore the option if not recognized
16241      # So say no if there are warnings
16242      if test ! -s conftest.err; then
16243        lt_prog_compiler_pic_works_GCJ=yes
16244      fi
16245    fi
16246    $rm conftest*
16247
16248 fi
16249 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16250 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16251
16252 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16253     case $lt_prog_compiler_pic_GCJ in
16254      "" | " "*) ;;
16255      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16256      esac
16257 else
16258     lt_prog_compiler_pic_GCJ=
16259      lt_prog_compiler_can_build_shared_GCJ=no
16260 fi
16261
16262 fi
16263 case "$host_os" in
16264   # For platforms which do not support PIC, -DPIC is meaningless:
16265   *djgpp*)
16266     lt_prog_compiler_pic_GCJ=
16267     ;;
16268   *)
16269     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16270     ;;
16271 esac
16272
16273 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16274 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16275 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16276   echo $ECHO_N "(cached) $ECHO_C" >&6
16277 else
16278   lt_cv_prog_compiler_c_o_GCJ=no
16279    $rm -r conftest 2>/dev/null
16280    mkdir conftest
16281    cd conftest
16282    mkdir out
16283    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16284
16285    lt_compiler_flag="-o out/conftest2.$ac_objext"
16286    # Insert the option either (1) after the last *FLAGS variable, or
16287    # (2) before a word containing "conftest.", or (3) at the end.
16288    # Note that $ac_compile itself does not contain backslashes and begins
16289    # with a dollar sign (not a hyphen), so the echo should work correctly.
16290    lt_compile=`echo "$ac_compile" | $SED \
16291    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16292    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16293    -e 's:$: $lt_compiler_flag:'`
16294    (eval echo "\"\$as_me:16294: $lt_compile\"" >&5)
16295    (eval "$lt_compile" 2>out/conftest.err)
16296    ac_status=$?
16297    cat out/conftest.err >&5
16298    echo "$as_me:16298: \$? = $ac_status" >&5
16299    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16300    then
16301      # The compiler can only warn and ignore the option if not recognized
16302      # So say no if there are warnings
16303      if test ! -s out/conftest.err; then
16304        lt_cv_prog_compiler_c_o_GCJ=yes
16305      fi
16306    fi
16307    chmod u+w .
16308    $rm conftest*
16309    # SGI C++ compiler will create directory out/ii_files/ for
16310    # template instantiation
16311    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16312    $rm out/* && rmdir out
16313    cd ..
16314    rmdir conftest
16315    $rm conftest*
16316
16317 fi
16318 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16319 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16320
16321
16322 hard_links="nottested"
16323 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16324   # do not overwrite the value of need_locks provided by the user
16325   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16326 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16327   hard_links=yes
16328   $rm conftest*
16329   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16330   touch conftest.a
16331   ln conftest.a conftest.b 2>&5 || hard_links=no
16332   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16333   echo "$as_me:$LINENO: result: $hard_links" >&5
16334 echo "${ECHO_T}$hard_links" >&6
16335   if test "$hard_links" = no; then
16336     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16337 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16338     need_locks=warn
16339   fi
16340 else
16341   need_locks=no
16342 fi
16343
16344 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16345 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16346
16347   runpath_var=
16348   allow_undefined_flag_GCJ=
16349   enable_shared_with_static_runtimes_GCJ=no
16350   archive_cmds_GCJ=
16351   archive_expsym_cmds_GCJ=
16352   old_archive_From_new_cmds_GCJ=
16353   old_archive_from_expsyms_cmds_GCJ=
16354   export_dynamic_flag_spec_GCJ=
16355   whole_archive_flag_spec_GCJ=
16356   thread_safe_flag_spec_GCJ=
16357   hardcode_libdir_flag_spec_GCJ=
16358   hardcode_libdir_flag_spec_ld_GCJ=
16359   hardcode_libdir_separator_GCJ=
16360   hardcode_direct_GCJ=no
16361   hardcode_minus_L_GCJ=no
16362   hardcode_shlibpath_var_GCJ=unsupported
16363   link_all_deplibs_GCJ=unknown
16364   hardcode_automatic_GCJ=no
16365   module_cmds_GCJ=
16366   module_expsym_cmds_GCJ=
16367   always_export_symbols_GCJ=no
16368   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16369   # include_expsyms should be a list of space-separated symbols to be *always*
16370   # included in the symbol list
16371   include_expsyms_GCJ=
16372   # exclude_expsyms can be an extended regexp of symbols to exclude
16373   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16374   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16375   # as well as any symbol that contains `d'.
16376   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16377   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16378   # platforms (ab)use it in PIC code, but their linkers get confused if
16379   # the symbol is explicitly referenced.  Since portable code cannot
16380   # rely on this symbol name, it's probably fine to never include it in
16381   # preloaded symbol tables.
16382   extract_expsyms_cmds=
16383
16384   case $host_os in
16385   cygwin* | mingw* | pw32*)
16386     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16387     # When not using gcc, we currently assume that we are using
16388     # Microsoft Visual C++.
16389     if test "$GCC" != yes; then
16390       with_gnu_ld=no
16391     fi
16392     ;;
16393   openbsd*)
16394     with_gnu_ld=no
16395     ;;
16396   esac
16397
16398   ld_shlibs_GCJ=yes
16399   if test "$with_gnu_ld" = yes; then
16400     # If archive_cmds runs LD, not CC, wlarc should be empty
16401     wlarc='${wl}'
16402
16403     # See if GNU ld supports shared libraries.
16404     case $host_os in
16405     aix3* | aix4* | aix5*)
16406       # On AIX/PPC, the GNU linker is very broken
16407       if test "$host_cpu" != ia64; then
16408         ld_shlibs_GCJ=no
16409         cat <<EOF 1>&2
16410
16411 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16412 *** to be unable to reliably create shared libraries on AIX.
16413 *** Therefore, libtool is disabling shared libraries support.  If you
16414 *** really care for shared libraries, you may want to modify your PATH
16415 *** so that a non-GNU linker is found, and then restart.
16416
16417 EOF
16418       fi
16419       ;;
16420
16421     amigaos*)
16422       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)'
16423       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16424       hardcode_minus_L_GCJ=yes
16425
16426       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16427       # that the semantics of dynamic libraries on AmigaOS, at least up
16428       # to version 4, is to share data among multiple programs linked
16429       # with the same dynamic library.  Since this doesn't match the
16430       # behavior of shared libraries on other platforms, we can't use
16431       # them.
16432       ld_shlibs_GCJ=no
16433       ;;
16434
16435     beos*)
16436       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16437         allow_undefined_flag_GCJ=unsupported
16438         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16439         # support --undefined.  This deserves some investigation.  FIXME
16440         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16441       else
16442         ld_shlibs_GCJ=no
16443       fi
16444       ;;
16445
16446     cygwin* | mingw* | pw32*)
16447       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16448       # as there is no search path for DLLs.
16449       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16450       allow_undefined_flag_GCJ=unsupported
16451       always_export_symbols_GCJ=no
16452       enable_shared_with_static_runtimes_GCJ=yes
16453       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16454
16455       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16456         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16457         # If the export-symbols file already is a .def file (1st line
16458         # is EXPORTS), use it as is; otherwise, prepend...
16459         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16460           cp $export_symbols $output_objdir/$soname.def;
16461         else
16462           echo EXPORTS > $output_objdir/$soname.def;
16463           cat $export_symbols >> $output_objdir/$soname.def;
16464         fi~
16465         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16466       else
16467         ld_shlibs=no
16468       fi
16469       ;;
16470
16471     netbsd*)
16472       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16473         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16474         wlarc=
16475       else
16476         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16477         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16478       fi
16479       ;;
16480
16481     solaris* | sysv5*)
16482       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16483         ld_shlibs_GCJ=no
16484         cat <<EOF 1>&2
16485
16486 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16487 *** create shared libraries on Solaris systems.  Therefore, libtool
16488 *** is disabling shared libraries support.  We urge you to upgrade GNU
16489 *** binutils to release 2.9.1 or newer.  Another option is to modify
16490 *** your PATH or compiler configuration so that the native linker is
16491 *** used, and then restart.
16492
16493 EOF
16494       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16495         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16496         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16497       else
16498         ld_shlibs_GCJ=no
16499       fi
16500       ;;
16501
16502     sunos4*)
16503       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16504       wlarc=
16505       hardcode_direct_GCJ=yes
16506       hardcode_shlibpath_var_GCJ=no
16507       ;;
16508
16509   linux*)
16510     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16511         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16512         archive_cmds_GCJ="$tmp_archive_cmds"
16513       supports_anon_versioning=no
16514       case `$LD -v 2>/dev/null` in
16515         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16516         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16517         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16518         *\ 2.11.*) ;; # other 2.11 versions
16519         *) supports_anon_versioning=yes ;;
16520       esac
16521       if test $supports_anon_versioning = yes; then
16522         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16523 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16524 $echo "local: *; };" >> $output_objdir/$libname.ver~
16525         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16526       else
16527         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16528       fi
16529     else
16530       ld_shlibs_GCJ=no
16531     fi
16532     ;;
16533
16534     *)
16535       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16536         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16537         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16538       else
16539         ld_shlibs_GCJ=no
16540       fi
16541       ;;
16542     esac
16543
16544     if test "$ld_shlibs_GCJ" = yes; then
16545       runpath_var=LD_RUN_PATH
16546       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16547       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16548       # ancient GNU ld didn't support --whole-archive et. al.
16549       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16550         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16551       else
16552         whole_archive_flag_spec_GCJ=
16553       fi
16554     fi
16555   else
16556     # PORTME fill in a description of your system's linker (not GNU ld)
16557     case $host_os in
16558     aix3*)
16559       allow_undefined_flag_GCJ=unsupported
16560       always_export_symbols_GCJ=yes
16561       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'
16562       # Note: this linker hardcodes the directories in LIBPATH if there
16563       # are no directories specified by -L.
16564       hardcode_minus_L_GCJ=yes
16565       if test "$GCC" = yes && test -z "$link_static_flag"; then
16566         # Neither direct hardcoding nor static linking is supported with a
16567         # broken collect2.
16568         hardcode_direct_GCJ=unsupported
16569       fi
16570       ;;
16571
16572     aix4* | aix5*)
16573       if test "$host_cpu" = ia64; then
16574         # On IA64, the linker does run time linking by default, so we don't
16575         # have to do anything special.
16576         aix_use_runtimelinking=no
16577         exp_sym_flag='-Bexport'
16578         no_entry_flag=""
16579       else
16580         # If we're using GNU nm, then we don't want the "-C" option.
16581         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16582         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16583           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'
16584         else
16585           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'
16586         fi
16587         aix_use_runtimelinking=no
16588
16589         # Test if we are trying to use run time linking or normal
16590         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16591         # need to do runtime linking.
16592         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16593           for ld_flag in $LDFLAGS; do
16594           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16595             aix_use_runtimelinking=yes
16596             break
16597           fi
16598           done
16599         esac
16600
16601         exp_sym_flag='-bexport'
16602         no_entry_flag='-bnoentry'
16603       fi
16604
16605       # When large executables or shared objects are built, AIX ld can
16606       # have problems creating the table of contents.  If linking a library
16607       # or program results in "error TOC overflow" add -mminimal-toc to
16608       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16609       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16610
16611       archive_cmds_GCJ=''
16612       hardcode_direct_GCJ=yes
16613       hardcode_libdir_separator_GCJ=':'
16614       link_all_deplibs_GCJ=yes
16615
16616       if test "$GCC" = yes; then
16617         case $host_os in aix4.012|aix4.012.*)
16618         # We only want to do this on AIX 4.2 and lower, the check
16619         # below for broken collect2 doesn't work under 4.3+
16620           collect2name=`${CC} -print-prog-name=collect2`
16621           if test -f "$collect2name" && \
16622            strings "$collect2name" | grep resolve_lib_name >/dev/null
16623           then
16624           # We have reworked collect2
16625           hardcode_direct_GCJ=yes
16626           else
16627           # We have old collect2
16628           hardcode_direct_GCJ=unsupported
16629           # It fails to find uninstalled libraries when the uninstalled
16630           # path is not listed in the libpath.  Setting hardcode_minus_L
16631           # to unsupported forces relinking
16632           hardcode_minus_L_GCJ=yes
16633           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16634           hardcode_libdir_separator_GCJ=
16635           fi
16636         esac
16637         shared_flag='-shared'
16638       else
16639         # not using gcc
16640         if test "$host_cpu" = ia64; then
16641         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16642         # chokes on -Wl,-G. The following line is correct:
16643           shared_flag='-G'
16644         else
16645         if test "$aix_use_runtimelinking" = yes; then
16646             shared_flag='${wl}-G'
16647           else
16648             shared_flag='${wl}-bM:SRE'
16649         fi
16650         fi
16651       fi
16652
16653       # It seems that -bexpall does not export symbols beginning with
16654       # underscore (_), so it is better to generate a list of symbols to export.
16655       always_export_symbols_GCJ=yes
16656       if test "$aix_use_runtimelinking" = yes; then
16657         # Warning - without using the other runtime loading flags (-brtl),
16658         # -berok will link without error, but may produce a broken library.
16659         allow_undefined_flag_GCJ='-berok'
16660        # Determine the default libpath from the value encoded in an empty executable.
16661        cat >conftest.$ac_ext <<_ACEOF
16662 /* confdefs.h.  */
16663 _ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h.  */
16667
16668 int
16669 main ()
16670 {
16671
16672   ;
16673   return 0;
16674 }
16675 _ACEOF
16676 rm -f conftest.$ac_objext conftest$ac_exeext
16677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16678   (eval $ac_link) 2>conftest.er1
16679   ac_status=$?
16680   grep -v '^ *+' conftest.er1 >conftest.err
16681   rm -f conftest.er1
16682   cat conftest.err >&5
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); } &&
16685          { ac_try='test -z "$ac_c_werror_flag"
16686                          || test ! -s conftest.err'
16687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688   (eval $ac_try) 2>&5
16689   ac_status=$?
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); }; } &&
16692          { ac_try='test -s conftest$ac_exeext'
16693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694   (eval $ac_try) 2>&5
16695   ac_status=$?
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); }; }; then
16698
16699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16700 }'`
16701 # Check for a 64-bit object if we didn't find anything.
16702 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16703 }'`; fi
16704 else
16705   echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16707
16708 fi
16709 rm -f conftest.err conftest.$ac_objext \
16710       conftest$ac_exeext conftest.$ac_ext
16711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16712
16713        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16714         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16715        else
16716         if test "$host_cpu" = ia64; then
16717           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16718           allow_undefined_flag_GCJ="-z nodefs"
16719           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16720         else
16721          # Determine the default libpath from the value encoded in an empty executable.
16722          cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h.  */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h.  */
16728
16729 int
16730 main ()
16731 {
16732
16733   ;
16734   return 0;
16735 }
16736 _ACEOF
16737 rm -f conftest.$ac_objext conftest$ac_exeext
16738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16739   (eval $ac_link) 2>conftest.er1
16740   ac_status=$?
16741   grep -v '^ *+' conftest.er1 >conftest.err
16742   rm -f conftest.er1
16743   cat conftest.err >&5
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); } &&
16746          { ac_try='test -z "$ac_c_werror_flag"
16747                          || test ! -s conftest.err'
16748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749   (eval $ac_try) 2>&5
16750   ac_status=$?
16751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); }; } &&
16753          { ac_try='test -s conftest$ac_exeext'
16754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755   (eval $ac_try) 2>&5
16756   ac_status=$?
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); }; }; then
16759
16760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16761 }'`
16762 # Check for a 64-bit object if we didn't find anything.
16763 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16764 }'`; fi
16765 else
16766   echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16768
16769 fi
16770 rm -f conftest.err conftest.$ac_objext \
16771       conftest$ac_exeext conftest.$ac_ext
16772 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16773
16774          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16775           # Warning - without using the other run time loading flags,
16776           # -berok will link without error, but may produce a broken library.
16777           no_undefined_flag_GCJ=' ${wl}-bernotok'
16778           allow_undefined_flag_GCJ=' ${wl}-berok'
16779           # -bexpall does not export symbols beginning with underscore (_)
16780           always_export_symbols_GCJ=yes
16781           # Exported symbols can be pulled into shared objects from archives
16782           whole_archive_flag_spec_GCJ=' '
16783           archive_cmds_need_lc_GCJ=yes
16784           # This is similar to how AIX traditionally builds it's shared libraries.
16785           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16786         fi
16787       fi
16788       ;;
16789
16790     amigaos*)
16791       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)'
16792       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16793       hardcode_minus_L_GCJ=yes
16794       # see comment about different semantics on the GNU ld section
16795       ld_shlibs_GCJ=no
16796       ;;
16797
16798     bsdi[45]*)
16799       export_dynamic_flag_spec_GCJ=-rdynamic
16800       ;;
16801
16802     cygwin* | mingw* | pw32*)
16803       # When not using gcc, we currently assume that we are using
16804       # Microsoft Visual C++.
16805       # hardcode_libdir_flag_spec is actually meaningless, as there is
16806       # no search path for DLLs.
16807       hardcode_libdir_flag_spec_GCJ=' '
16808       allow_undefined_flag_GCJ=unsupported
16809       # Tell ltmain to make .lib files, not .a files.
16810       libext=lib
16811       # Tell ltmain to make .dll files, not .so files.
16812       shrext_cmds=".dll"
16813       # FIXME: Setting linknames here is a bad hack.
16814       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16815       # The linker will automatically build a .lib file if we build a DLL.
16816       old_archive_From_new_cmds_GCJ='true'
16817       # FIXME: Should let the user specify the lib program.
16818       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16819       fix_srcfile_path='`cygpath -w "$srcfile"`'
16820       enable_shared_with_static_runtimes_GCJ=yes
16821       ;;
16822
16823     darwin* | rhapsody*)
16824       case "$host_os" in
16825         rhapsody* | darwin1.[012])
16826          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16827          ;;
16828        *) # Darwin 1.3 on
16829          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16830            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16831          else
16832            case ${MACOSX_DEPLOYMENT_TARGET} in
16833              10.[012])
16834                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16835                ;;
16836              10.*)
16837                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16838                ;;
16839            esac
16840          fi
16841          ;;
16842       esac
16843       archive_cmds_need_lc_GCJ=no
16844       hardcode_direct_GCJ=no
16845       hardcode_automatic_GCJ=yes
16846       hardcode_shlibpath_var_GCJ=unsupported
16847       whole_archive_flag_spec_GCJ=''
16848       link_all_deplibs_GCJ=yes
16849     if test "$GCC" = yes ; then
16850         output_verbose_link_cmd='echo'
16851         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16852       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16853       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16854       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16855       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}'
16856     else
16857       case "$cc_basename" in
16858         xlc*)
16859          output_verbose_link_cmd='echo'
16860          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16861          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16862           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16863          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16864           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}'
16865           ;;
16866        *)
16867          ld_shlibs_GCJ=no
16868           ;;
16869       esac
16870     fi
16871       ;;
16872
16873     dgux*)
16874       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16875       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16876       hardcode_shlibpath_var_GCJ=no
16877       ;;
16878
16879     freebsd1*)
16880       ld_shlibs_GCJ=no
16881       ;;
16882
16883     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16884     # support.  Future versions do this automatically, but an explicit c++rt0.o
16885     # does not break anything, and helps significantly (at the cost of a little
16886     # extra space).
16887     freebsd2.2*)
16888       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16889       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16890       hardcode_direct_GCJ=yes
16891       hardcode_shlibpath_var_GCJ=no
16892       ;;
16893
16894     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16895     freebsd2*)
16896       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16897       hardcode_direct_GCJ=yes
16898       hardcode_minus_L_GCJ=yes
16899       hardcode_shlibpath_var_GCJ=no
16900       ;;
16901
16902     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16903     freebsd* | kfreebsd*-gnu)
16904       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16905       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16906       hardcode_direct_GCJ=yes
16907       hardcode_shlibpath_var_GCJ=no
16908       ;;
16909
16910     hpux9*)
16911       if test "$GCC" = yes; then
16912         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'
16913       else
16914         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'
16915       fi
16916       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16917       hardcode_libdir_separator_GCJ=:
16918       hardcode_direct_GCJ=yes
16919
16920       # hardcode_minus_L: Not really in the search PATH,
16921       # but as the default location of the library.
16922       hardcode_minus_L_GCJ=yes
16923       export_dynamic_flag_spec_GCJ='${wl}-E'
16924       ;;
16925
16926     hpux10* | hpux11*)
16927       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16928         case "$host_cpu" in
16929         hppa*64*|ia64*)
16930           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16931           ;;
16932         *)
16933           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16934           ;;
16935         esac
16936       else
16937         case "$host_cpu" in
16938         hppa*64*|ia64*)
16939           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16940           ;;
16941         *)
16942           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16943           ;;
16944         esac
16945       fi
16946       if test "$with_gnu_ld" = no; then
16947         case "$host_cpu" in
16948         hppa*64*)
16949           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16950           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16951           hardcode_libdir_separator_GCJ=:
16952           hardcode_direct_GCJ=no
16953           hardcode_shlibpath_var_GCJ=no
16954           ;;
16955         ia64*)
16956           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16957           hardcode_direct_GCJ=no
16958           hardcode_shlibpath_var_GCJ=no
16959
16960           # hardcode_minus_L: Not really in the search PATH,
16961           # but as the default location of the library.
16962           hardcode_minus_L_GCJ=yes
16963           ;;
16964         *)
16965           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16966           hardcode_libdir_separator_GCJ=:
16967           hardcode_direct_GCJ=yes
16968           export_dynamic_flag_spec_GCJ='${wl}-E'
16969
16970           # hardcode_minus_L: Not really in the search PATH,
16971           # but as the default location of the library.
16972           hardcode_minus_L_GCJ=yes
16973           ;;
16974         esac
16975       fi
16976       ;;
16977
16978     irix5* | irix6* | nonstopux*)
16979       if test "$GCC" = yes; then
16980         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'
16981       else
16982         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'
16983         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16984       fi
16985       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16986       hardcode_libdir_separator_GCJ=:
16987       link_all_deplibs_GCJ=yes
16988       ;;
16989
16990     netbsd*)
16991       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16992         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16993       else
16994         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16995       fi
16996       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16997       hardcode_direct_GCJ=yes
16998       hardcode_shlibpath_var_GCJ=no
16999       ;;
17000
17001     newsos6)
17002       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17003       hardcode_direct_GCJ=yes
17004       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17005       hardcode_libdir_separator_GCJ=:
17006       hardcode_shlibpath_var_GCJ=no
17007       ;;
17008
17009     openbsd*)
17010       hardcode_direct_GCJ=yes
17011       hardcode_shlibpath_var_GCJ=no
17012       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17013         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17014         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17015         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17016         export_dynamic_flag_spec_GCJ='${wl}-E'
17017       else
17018        case $host_os in
17019          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17020            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17021            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17022            ;;
17023          *)
17024            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17025            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17026            ;;
17027        esac
17028       fi
17029       ;;
17030
17031     os2*)
17032       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17033       hardcode_minus_L_GCJ=yes
17034       allow_undefined_flag_GCJ=unsupported
17035       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'
17036       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17037       ;;
17038
17039     osf3*)
17040       if test "$GCC" = yes; then
17041         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17042         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'
17043       else
17044         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17045         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'
17046       fi
17047       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17048       hardcode_libdir_separator_GCJ=:
17049       ;;
17050
17051     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17052       if test "$GCC" = yes; then
17053         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17054         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'
17055         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17056       else
17057         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17058         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'
17059         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~
17060         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17061
17062         # Both c and cxx compiler support -rpath directly
17063         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17064       fi
17065       hardcode_libdir_separator_GCJ=:
17066       ;;
17067
17068     sco3.2v5*)
17069       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17070       hardcode_shlibpath_var_GCJ=no
17071       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17072       runpath_var=LD_RUN_PATH
17073       hardcode_runpath_var=yes
17074       ;;
17075
17076     solaris*)
17077       no_undefined_flag_GCJ=' -z text'
17078       if test "$GCC" = yes; then
17079         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17080         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17081           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17082       else
17083         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17084         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17085         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17086       fi
17087       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17088       hardcode_shlibpath_var_GCJ=no
17089       case $host_os in
17090       solaris2.[0-5] | solaris2.[0-5].*) ;;
17091       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17092         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17093       esac
17094       link_all_deplibs_GCJ=yes
17095       ;;
17096
17097     sunos4*)
17098       if test "x$host_vendor" = xsequent; then
17099         # Use $CC to link under sequent, because it throws in some extra .o
17100         # files that make .init and .fini sections work.
17101         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17102       else
17103         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17104       fi
17105       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17106       hardcode_direct_GCJ=yes
17107       hardcode_minus_L_GCJ=yes
17108       hardcode_shlibpath_var_GCJ=no
17109       ;;
17110
17111     sysv4)
17112       case $host_vendor in
17113         sni)
17114           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17115           hardcode_direct_GCJ=yes # is this really true???
17116         ;;
17117         siemens)
17118           ## LD is ld it makes a PLAMLIB
17119           ## CC just makes a GrossModule.
17120           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17121           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17122           hardcode_direct_GCJ=no
17123         ;;
17124         motorola)
17125           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17126           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17127         ;;
17128       esac
17129       runpath_var='LD_RUN_PATH'
17130       hardcode_shlibpath_var_GCJ=no
17131       ;;
17132
17133     sysv4.3*)
17134       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17135       hardcode_shlibpath_var_GCJ=no
17136       export_dynamic_flag_spec_GCJ='-Bexport'
17137       ;;
17138
17139     sysv4*MP*)
17140       if test -d /usr/nec; then
17141         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17142         hardcode_shlibpath_var_GCJ=no
17143         runpath_var=LD_RUN_PATH
17144         hardcode_runpath_var=yes
17145         ld_shlibs_GCJ=yes
17146       fi
17147       ;;
17148
17149     sysv4.2uw2*)
17150       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17151       hardcode_direct_GCJ=yes
17152       hardcode_minus_L_GCJ=no
17153       hardcode_shlibpath_var_GCJ=no
17154       hardcode_runpath_var=yes
17155       runpath_var=LD_RUN_PATH
17156       ;;
17157
17158    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17159       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17160       if test "$GCC" = yes; then
17161         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17162       else
17163         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17164       fi
17165       runpath_var='LD_RUN_PATH'
17166       hardcode_shlibpath_var_GCJ=no
17167       ;;
17168
17169     sysv5*)
17170       no_undefined_flag_GCJ=' -z text'
17171       # $CC -shared without GNU ld will not create a library from C++
17172       # object files and a static libstdc++, better avoid it by now
17173       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17174       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17175                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17176       hardcode_libdir_flag_spec_GCJ=
17177       hardcode_shlibpath_var_GCJ=no
17178       runpath_var='LD_RUN_PATH'
17179       ;;
17180
17181     uts4*)
17182       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17183       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17184       hardcode_shlibpath_var_GCJ=no
17185       ;;
17186
17187     *)
17188       ld_shlibs_GCJ=no
17189       ;;
17190     esac
17191   fi
17192
17193 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17194 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17195 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17196
17197 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17198 if test "$GCC" = yes; then
17199   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17200 fi
17201
17202 #
17203 # Do we need to explicitly link libc?
17204 #
17205 case "x$archive_cmds_need_lc_GCJ" in
17206 x|xyes)
17207   # Assume -lc should be added
17208   archive_cmds_need_lc_GCJ=yes
17209
17210   if test "$enable_shared" = yes && test "$GCC" = yes; then
17211     case $archive_cmds_GCJ in
17212     *'~'*)
17213       # FIXME: we may have to deal with multi-command sequences.
17214       ;;
17215     '$CC '*)
17216       # Test whether the compiler implicitly links with -lc since on some
17217       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17218       # to ld, don't add -lc before -lgcc.
17219       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17220 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17221       $rm conftest*
17222       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17223
17224       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17225   (eval $ac_compile) 2>&5
17226   ac_status=$?
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } 2>conftest.err; then
17229         soname=conftest
17230         lib=conftest
17231         libobjs=conftest.$ac_objext
17232         deplibs=
17233         wl=$lt_prog_compiler_wl_GCJ
17234         compiler_flags=-v
17235         linker_flags=-v
17236         verstring=
17237         output_objdir=.
17238         libname=conftest
17239         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17240         allow_undefined_flag_GCJ=
17241         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17242   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }
17246         then
17247           archive_cmds_need_lc_GCJ=no
17248         else
17249           archive_cmds_need_lc_GCJ=yes
17250         fi
17251         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17252       else
17253         cat conftest.err 1>&5
17254       fi
17255       $rm conftest*
17256       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17257 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17258       ;;
17259     esac
17260   fi
17261   ;;
17262 esac
17263
17264 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17265 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17266 library_names_spec=
17267 libname_spec='lib$name'
17268 soname_spec=
17269 shrext_cmds=".so"
17270 postinstall_cmds=
17271 postuninstall_cmds=
17272 finish_cmds=
17273 finish_eval=
17274 shlibpath_var=
17275 shlibpath_overrides_runpath=unknown
17276 version_type=none
17277 dynamic_linker="$host_os ld.so"
17278 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17279 if test "$GCC" = yes; then
17280   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17281   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17282     # if the path contains ";" then we assume it to be the separator
17283     # otherwise default to the standard path separator (i.e. ":") - it is
17284     # assumed that no part of a normal pathname contains ";" but that should
17285     # okay in the real world where ";" in dirpaths is itself problematic.
17286     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17287   else
17288     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17289   fi
17290 else
17291   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17292 fi
17293 need_lib_prefix=unknown
17294 hardcode_into_libs=no
17295
17296 # when you set need_version to no, make sure it does not cause -set_version
17297 # flags to be left without arguments
17298 need_version=unknown
17299
17300 case $host_os in
17301 aix3*)
17302   version_type=linux
17303   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17304   shlibpath_var=LIBPATH
17305
17306   # AIX 3 has no versioning support, so we append a major version to the name.
17307   soname_spec='${libname}${release}${shared_ext}$major'
17308   ;;
17309
17310 aix4* | aix5*)
17311   version_type=linux
17312   need_lib_prefix=no
17313   need_version=no
17314   hardcode_into_libs=yes
17315   if test "$host_cpu" = ia64; then
17316     # AIX 5 supports IA64
17317     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17318     shlibpath_var=LD_LIBRARY_PATH
17319   else
17320     # With GCC up to 2.95.x, collect2 would create an import file
17321     # for dependence libraries.  The import file would start with
17322     # the line `#! .'.  This would cause the generated library to
17323     # depend on `.', always an invalid library.  This was fixed in
17324     # development snapshots of GCC prior to 3.0.
17325     case $host_os in
17326       aix4 | aix4.[01] | aix4.[01].*)
17327       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17328            echo ' yes '
17329            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17330         :
17331       else
17332         can_build_shared=no
17333       fi
17334       ;;
17335     esac
17336     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17337     # soname into executable. Probably we can add versioning support to
17338     # collect2, so additional links can be useful in future.
17339     if test "$aix_use_runtimelinking" = yes; then
17340       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17341       # instead of lib<name>.a to let people know that these are not
17342       # typical AIX shared libraries.
17343       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344     else
17345       # We preserve .a as extension for shared libraries through AIX4.2
17346       # and later when we are not doing run time linking.
17347       library_names_spec='${libname}${release}.a $libname.a'
17348       soname_spec='${libname}${release}${shared_ext}$major'
17349     fi
17350     shlibpath_var=LIBPATH
17351   fi
17352   ;;
17353
17354 amigaos*)
17355   library_names_spec='$libname.ixlibrary $libname.a'
17356   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17357   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'
17358   ;;
17359
17360 beos*)
17361   library_names_spec='${libname}${shared_ext}'
17362   dynamic_linker="$host_os ld.so"
17363   shlibpath_var=LIBRARY_PATH
17364   ;;
17365
17366 bsdi[45]*)
17367   version_type=linux
17368   need_version=no
17369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370   soname_spec='${libname}${release}${shared_ext}$major'
17371   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17372   shlibpath_var=LD_LIBRARY_PATH
17373   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17374   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17375   # the default ld.so.conf also contains /usr/contrib/lib and
17376   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17377   # libtool to hard-code these into programs
17378   ;;
17379
17380 cygwin* | mingw* | pw32*)
17381   version_type=windows
17382   shrext_cmds=".dll"
17383   need_version=no
17384   need_lib_prefix=no
17385
17386   case $GCC,$host_os in
17387   yes,cygwin* | yes,mingw* | yes,pw32*)
17388     library_names_spec='$libname.dll.a'
17389     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17390     postinstall_cmds='base_file=`basename \${file}`~
17391       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17392       dldir=$destdir/`dirname \$dlpath`~
17393       test -d \$dldir || mkdir -p \$dldir~
17394       $install_prog $dir/$dlname \$dldir/$dlname'
17395     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17396       dlpath=$dir/\$dldll~
17397        $rm \$dlpath'
17398     shlibpath_overrides_runpath=yes
17399
17400     case $host_os in
17401     cygwin*)
17402       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17403       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17404       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17405       ;;
17406     mingw*)
17407       # MinGW DLLs use traditional 'lib' prefix
17408       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17409       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17410       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17411         # It is most probably a Windows format PATH printed by
17412         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17413         # path with ; separators, and with drive letters. We can handle the
17414         # drive letters (cygwin fileutils understands them), so leave them,
17415         # especially as we might pass files found there to a mingw objdump,
17416         # which wouldn't understand a cygwinified path. Ahh.
17417         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17418       else
17419         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17420       fi
17421       ;;
17422     pw32*)
17423       # pw32 DLLs use 'pw' prefix rather than 'lib'
17424       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17425       ;;
17426     esac
17427     ;;
17428
17429   *)
17430     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17431     ;;
17432   esac
17433   dynamic_linker='Win32 ld.exe'
17434   # FIXME: first we should search . and the directory the executable is in
17435   shlibpath_var=PATH
17436   ;;
17437
17438 darwin* | rhapsody*)
17439   dynamic_linker="$host_os dyld"
17440   version_type=darwin
17441   need_lib_prefix=no
17442   need_version=no
17443   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17444   soname_spec='${libname}${release}${major}$shared_ext'
17445   shlibpath_overrides_runpath=yes
17446   shlibpath_var=DYLD_LIBRARY_PATH
17447   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17448   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17449   if test "$GCC" = yes; then
17450     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17451   else
17452     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17453   fi
17454   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17455   ;;
17456
17457 dgux*)
17458   version_type=linux
17459   need_lib_prefix=no
17460   need_version=no
17461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17462   soname_spec='${libname}${release}${shared_ext}$major'
17463   shlibpath_var=LD_LIBRARY_PATH
17464   ;;
17465
17466 freebsd1*)
17467   dynamic_linker=no
17468   ;;
17469
17470 kfreebsd*-gnu)
17471   version_type=linux
17472   need_lib_prefix=no
17473   need_version=no
17474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17475   soname_spec='${libname}${release}${shared_ext}$major'
17476   shlibpath_var=LD_LIBRARY_PATH
17477   shlibpath_overrides_runpath=no
17478   hardcode_into_libs=yes
17479   dynamic_linker='GNU ld.so'
17480   ;;
17481
17482 freebsd*)
17483   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17484   version_type=freebsd-$objformat
17485   case $version_type in
17486     freebsd-elf*)
17487       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17488       need_version=no
17489       need_lib_prefix=no
17490       ;;
17491     freebsd-*)
17492       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17493       need_version=yes
17494       ;;
17495   esac
17496   shlibpath_var=LD_LIBRARY_PATH
17497   case $host_os in
17498   freebsd2*)
17499     shlibpath_overrides_runpath=yes
17500     ;;
17501   freebsd3.01* | freebsdelf3.01*)
17502     shlibpath_overrides_runpath=yes
17503     hardcode_into_libs=yes
17504     ;;
17505   *) # from 3.2 on
17506     shlibpath_overrides_runpath=no
17507     hardcode_into_libs=yes
17508     ;;
17509   esac
17510   ;;
17511
17512 gnu*)
17513   version_type=linux
17514   need_lib_prefix=no
17515   need_version=no
17516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17517   soname_spec='${libname}${release}${shared_ext}$major'
17518   shlibpath_var=LD_LIBRARY_PATH
17519   hardcode_into_libs=yes
17520   ;;
17521
17522 hpux9* | hpux10* | hpux11*)
17523   # Give a soname corresponding to the major version so that dld.sl refuses to
17524   # link against other versions.
17525   version_type=sunos
17526   need_lib_prefix=no
17527   need_version=no
17528   case "$host_cpu" in
17529   ia64*)
17530     shrext_cmds='.so'
17531     hardcode_into_libs=yes
17532     dynamic_linker="$host_os dld.so"
17533     shlibpath_var=LD_LIBRARY_PATH
17534     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17536     soname_spec='${libname}${release}${shared_ext}$major'
17537     if test "X$HPUX_IA64_MODE" = X32; then
17538       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17539     else
17540       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17541     fi
17542     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17543     ;;
17544    hppa*64*)
17545      shrext_cmds='.sl'
17546      hardcode_into_libs=yes
17547      dynamic_linker="$host_os dld.sl"
17548      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17549      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17550      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17551      soname_spec='${libname}${release}${shared_ext}$major'
17552      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17553      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17554      ;;
17555    *)
17556     shrext_cmds='.sl'
17557     dynamic_linker="$host_os dld.sl"
17558     shlibpath_var=SHLIB_PATH
17559     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17560     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561     soname_spec='${libname}${release}${shared_ext}$major'
17562     ;;
17563   esac
17564   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17565   postinstall_cmds='chmod 555 $lib'
17566   ;;
17567
17568 irix5* | irix6* | nonstopux*)
17569   case $host_os in
17570     nonstopux*) version_type=nonstopux ;;
17571     *)
17572         if test "$lt_cv_prog_gnu_ld" = yes; then
17573                 version_type=linux
17574         else
17575                 version_type=irix
17576         fi ;;
17577   esac
17578   need_lib_prefix=no
17579   need_version=no
17580   soname_spec='${libname}${release}${shared_ext}$major'
17581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17582   case $host_os in
17583   irix5* | nonstopux*)
17584     libsuff= shlibsuff=
17585     ;;
17586   *)
17587     case $LD in # libtool.m4 will add one of these switches to LD
17588     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17589       libsuff= shlibsuff= libmagic=32-bit;;
17590     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17591       libsuff=32 shlibsuff=N32 libmagic=N32;;
17592     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17593       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17594     *) libsuff= shlibsuff= libmagic=never-match;;
17595     esac
17596     ;;
17597   esac
17598   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17599   shlibpath_overrides_runpath=no
17600   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17601   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17602   hardcode_into_libs=yes
17603   ;;
17604
17605 # No shared lib support for Linux oldld, aout, or coff.
17606 linux*oldld* | linux*aout* | linux*coff*)
17607   dynamic_linker=no
17608   ;;
17609
17610 # This must be Linux ELF.
17611 linux*)
17612   version_type=linux
17613   need_lib_prefix=no
17614   need_version=no
17615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17616   soname_spec='${libname}${release}${shared_ext}$major'
17617   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17618   shlibpath_var=LD_LIBRARY_PATH
17619   shlibpath_overrides_runpath=no
17620   # This implies no fast_install, which is unacceptable.
17621   # Some rework will be needed to allow for fast_install
17622   # before this can be enabled.
17623   hardcode_into_libs=yes
17624
17625   # Append ld.so.conf contents to the search path
17626   if test -f /etc/ld.so.conf; then
17627     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17628     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17629   fi
17630
17631   # We used to test for /lib/ld.so.1 and disable shared libraries on
17632   # powerpc, because MkLinux only supported shared libraries with the
17633   # GNU dynamic linker.  Since this was broken with cross compilers,
17634   # most powerpc-linux boxes support dynamic linking these days and
17635   # people can always --disable-shared, the test was removed, and we
17636   # assume the GNU/Linux dynamic linker is in use.
17637   dynamic_linker='GNU/Linux ld.so'
17638   ;;
17639
17640 knetbsd*-gnu)
17641   version_type=linux
17642   need_lib_prefix=no
17643   need_version=no
17644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17645   soname_spec='${libname}${release}${shared_ext}$major'
17646   shlibpath_var=LD_LIBRARY_PATH
17647   shlibpath_overrides_runpath=no
17648   hardcode_into_libs=yes
17649   dynamic_linker='GNU ld.so'
17650   ;;
17651
17652 netbsd*)
17653   version_type=sunos
17654   need_lib_prefix=no
17655   need_version=no
17656   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17658     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17659     dynamic_linker='NetBSD (a.out) ld.so'
17660   else
17661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17662     soname_spec='${libname}${release}${shared_ext}$major'
17663     dynamic_linker='NetBSD ld.elf_so'
17664   fi
17665   shlibpath_var=LD_LIBRARY_PATH
17666   shlibpath_overrides_runpath=yes
17667   hardcode_into_libs=yes
17668   ;;
17669
17670 newsos6)
17671   version_type=linux
17672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673   shlibpath_var=LD_LIBRARY_PATH
17674   shlibpath_overrides_runpath=yes
17675   ;;
17676
17677 nto-qnx*)
17678   version_type=linux
17679   need_lib_prefix=no
17680   need_version=no
17681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17682   soname_spec='${libname}${release}${shared_ext}$major'
17683   shlibpath_var=LD_LIBRARY_PATH
17684   shlibpath_overrides_runpath=yes
17685   ;;
17686
17687 openbsd*)
17688   version_type=sunos
17689   need_lib_prefix=no
17690   need_version=no
17691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17693   shlibpath_var=LD_LIBRARY_PATH
17694   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17695     case $host_os in
17696       openbsd2.[89] | openbsd2.[89].*)
17697         shlibpath_overrides_runpath=no
17698         ;;
17699       *)
17700         shlibpath_overrides_runpath=yes
17701         ;;
17702       esac
17703   else
17704     shlibpath_overrides_runpath=yes
17705   fi
17706   ;;
17707
17708 os2*)
17709   libname_spec='$name'
17710   shrext_cmds=".dll"
17711   need_lib_prefix=no
17712   library_names_spec='$libname${shared_ext} $libname.a'
17713   dynamic_linker='OS/2 ld.exe'
17714   shlibpath_var=LIBPATH
17715   ;;
17716
17717 osf3* | osf4* | osf5*)
17718   version_type=osf
17719   need_lib_prefix=no
17720   need_version=no
17721   soname_spec='${libname}${release}${shared_ext}$major'
17722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17723   shlibpath_var=LD_LIBRARY_PATH
17724   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17725   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17726   ;;
17727
17728 sco3.2v5*)
17729   version_type=osf
17730   soname_spec='${libname}${release}${shared_ext}$major'
17731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17732   shlibpath_var=LD_LIBRARY_PATH
17733   ;;
17734
17735 solaris*)
17736   version_type=linux
17737   need_lib_prefix=no
17738   need_version=no
17739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740   soname_spec='${libname}${release}${shared_ext}$major'
17741   shlibpath_var=LD_LIBRARY_PATH
17742   shlibpath_overrides_runpath=yes
17743   hardcode_into_libs=yes
17744   # ldd complains unless libraries are executable
17745   postinstall_cmds='chmod +x $lib'
17746   ;;
17747
17748 sunos4*)
17749   version_type=sunos
17750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17751   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17752   shlibpath_var=LD_LIBRARY_PATH
17753   shlibpath_overrides_runpath=yes
17754   if test "$with_gnu_ld" = yes; then
17755     need_lib_prefix=no
17756   fi
17757   need_version=yes
17758   ;;
17759
17760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17761   version_type=linux
17762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17763   soname_spec='${libname}${release}${shared_ext}$major'
17764   shlibpath_var=LD_LIBRARY_PATH
17765   case $host_vendor in
17766     sni)
17767       shlibpath_overrides_runpath=no
17768       need_lib_prefix=no
17769       export_dynamic_flag_spec='${wl}-Blargedynsym'
17770       runpath_var=LD_RUN_PATH
17771       ;;
17772     siemens)
17773       need_lib_prefix=no
17774       ;;
17775     motorola)
17776       need_lib_prefix=no
17777       need_version=no
17778       shlibpath_overrides_runpath=no
17779       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17780       ;;
17781   esac
17782   ;;
17783
17784 sysv4*MP*)
17785   if test -d /usr/nec ;then
17786     version_type=linux
17787     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17788     soname_spec='$libname${shared_ext}.$major'
17789     shlibpath_var=LD_LIBRARY_PATH
17790   fi
17791   ;;
17792
17793 uts4*)
17794   version_type=linux
17795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17796   soname_spec='${libname}${release}${shared_ext}$major'
17797   shlibpath_var=LD_LIBRARY_PATH
17798   ;;
17799
17800 *)
17801   dynamic_linker=no
17802   ;;
17803 esac
17804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17805 echo "${ECHO_T}$dynamic_linker" >&6
17806 test "$dynamic_linker" = no && can_build_shared=no
17807
17808 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17810 hardcode_action_GCJ=
17811 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17812    test -n "$runpath_var_GCJ" || \
17813    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17814
17815   # We can hardcode non-existant directories.
17816   if test "$hardcode_direct_GCJ" != no &&
17817      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17818      # have to relink, otherwise we might link with an installed library
17819      # when we should be linking with a yet-to-be-installed one
17820      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17821      test "$hardcode_minus_L_GCJ" != no; then
17822     # Linking always hardcodes the temporary library directory.
17823     hardcode_action_GCJ=relink
17824   else
17825     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17826     hardcode_action_GCJ=immediate
17827   fi
17828 else
17829   # We cannot hardcode anything, or else we can only hardcode existing
17830   # directories.
17831   hardcode_action_GCJ=unsupported
17832 fi
17833 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17834 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17835
17836 if test "$hardcode_action_GCJ" = relink; then
17837   # Fast installation is not supported
17838   enable_fast_install=no
17839 elif test "$shlibpath_overrides_runpath" = yes ||
17840      test "$enable_shared" = no; then
17841   # Fast installation is not necessary
17842   enable_fast_install=needless
17843 fi
17844
17845 striplib=
17846 old_striplib=
17847 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17848 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17849 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17850   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17851   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17852   echo "$as_me:$LINENO: result: yes" >&5
17853 echo "${ECHO_T}yes" >&6
17854 else
17855 # FIXME - insert some real tests, host_os isn't really good enough
17856   case $host_os in
17857    darwin*)
17858        if test -n "$STRIP" ; then
17859          striplib="$STRIP -x"
17860          echo "$as_me:$LINENO: result: yes" >&5
17861 echo "${ECHO_T}yes" >&6
17862        else
17863   echo "$as_me:$LINENO: result: no" >&5
17864 echo "${ECHO_T}no" >&6
17865 fi
17866        ;;
17867    *)
17868   echo "$as_me:$LINENO: result: no" >&5
17869 echo "${ECHO_T}no" >&6
17870     ;;
17871   esac
17872 fi
17873
17874 if test "x$enable_dlopen" != xyes; then
17875   enable_dlopen=unknown
17876   enable_dlopen_self=unknown
17877   enable_dlopen_self_static=unknown
17878 else
17879   lt_cv_dlopen=no
17880   lt_cv_dlopen_libs=
17881
17882   case $host_os in
17883   beos*)
17884     lt_cv_dlopen="load_add_on"
17885     lt_cv_dlopen_libs=
17886     lt_cv_dlopen_self=yes
17887     ;;
17888
17889   mingw* | pw32*)
17890     lt_cv_dlopen="LoadLibrary"
17891     lt_cv_dlopen_libs=
17892    ;;
17893
17894   cygwin*)
17895     lt_cv_dlopen="dlopen"
17896     lt_cv_dlopen_libs=
17897    ;;
17898
17899   darwin*)
17900   # if libdl is installed we need to link against it
17901     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17902 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17904   echo $ECHO_N "(cached) $ECHO_C" >&6
17905 else
17906   ac_check_lib_save_LIBS=$LIBS
17907 LIBS="-ldl  $LIBS"
17908 cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h.  */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h.  */
17914
17915 /* Override any gcc2 internal prototype to avoid an error.  */
17916 #ifdef __cplusplus
17917 extern "C"
17918 #endif
17919 /* We use char because int might match the return type of a gcc2
17920    builtin and then its argument prototype would still apply.  */
17921 char dlopen ();
17922 int
17923 main ()
17924 {
17925 dlopen ();
17926   ;
17927   return 0;
17928 }
17929 _ACEOF
17930 rm -f conftest.$ac_objext conftest$ac_exeext
17931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17932   (eval $ac_link) 2>conftest.er1
17933   ac_status=$?
17934   grep -v '^ *+' conftest.er1 >conftest.err
17935   rm -f conftest.er1
17936   cat conftest.err >&5
17937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938   (exit $ac_status); } &&
17939          { ac_try='test -z "$ac_c_werror_flag"
17940                          || test ! -s conftest.err'
17941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942   (eval $ac_try) 2>&5
17943   ac_status=$?
17944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945   (exit $ac_status); }; } &&
17946          { ac_try='test -s conftest$ac_exeext'
17947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948   (eval $ac_try) 2>&5
17949   ac_status=$?
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); }; }; then
17952   ac_cv_lib_dl_dlopen=yes
17953 else
17954   echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17956
17957 ac_cv_lib_dl_dlopen=no
17958 fi
17959 rm -f conftest.err conftest.$ac_objext \
17960       conftest$ac_exeext conftest.$ac_ext
17961 LIBS=$ac_check_lib_save_LIBS
17962 fi
17963 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17964 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17965 if test $ac_cv_lib_dl_dlopen = yes; then
17966   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17967 else
17968
17969     lt_cv_dlopen="dyld"
17970     lt_cv_dlopen_libs=
17971     lt_cv_dlopen_self=yes
17972
17973 fi
17974
17975    ;;
17976
17977   *)
17978     echo "$as_me:$LINENO: checking for shl_load" >&5
17979 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17980 if test "${ac_cv_func_shl_load+set}" = set; then
17981   echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17983   cat >conftest.$ac_ext <<_ACEOF
17984 /* confdefs.h.  */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h.  */
17989 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17991 #define shl_load innocuous_shl_load
17992
17993 /* System header to define __stub macros and hopefully few prototypes,
17994     which can conflict with char shl_load (); below.
17995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17996     <limits.h> exists even on freestanding compilers.  */
17997
17998 #ifdef __STDC__
17999 # include <limits.h>
18000 #else
18001 # include <assert.h>
18002 #endif
18003
18004 #undef shl_load
18005
18006 /* Override any gcc2 internal prototype to avoid an error.  */
18007 #ifdef __cplusplus
18008 extern "C"
18009 {
18010 #endif
18011 /* We use char because int might match the return type of a gcc2
18012    builtin and then its argument prototype would still apply.  */
18013 char shl_load ();
18014 /* The GNU C library defines this for functions which it implements
18015     to always fail with ENOSYS.  Some functions are actually named
18016     something starting with __ and the normal name is an alias.  */
18017 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18018 choke me
18019 #else
18020 char (*f) () = shl_load;
18021 #endif
18022 #ifdef __cplusplus
18023 }
18024 #endif
18025
18026 int
18027 main ()
18028 {
18029 return f != shl_load;
18030   ;
18031   return 0;
18032 }
18033 _ACEOF
18034 rm -f conftest.$ac_objext conftest$ac_exeext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18036   (eval $ac_link) 2>conftest.er1
18037   ac_status=$?
18038   grep -v '^ *+' conftest.er1 >conftest.err
18039   rm -f conftest.er1
18040   cat conftest.err >&5
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); } &&
18043          { ac_try='test -z "$ac_c_werror_flag"
18044                          || test ! -s conftest.err'
18045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046   (eval $ac_try) 2>&5
18047   ac_status=$?
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); }; } &&
18050          { ac_try='test -s conftest$ac_exeext'
18051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052   (eval $ac_try) 2>&5
18053   ac_status=$?
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); }; }; then
18056   ac_cv_func_shl_load=yes
18057 else
18058   echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18060
18061 ac_cv_func_shl_load=no
18062 fi
18063 rm -f conftest.err conftest.$ac_objext \
18064       conftest$ac_exeext conftest.$ac_ext
18065 fi
18066 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18067 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18068 if test $ac_cv_func_shl_load = yes; then
18069   lt_cv_dlopen="shl_load"
18070 else
18071   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18072 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18073 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18074   echo $ECHO_N "(cached) $ECHO_C" >&6
18075 else
18076   ac_check_lib_save_LIBS=$LIBS
18077 LIBS="-ldld  $LIBS"
18078 cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h.  */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h.  */
18084
18085 /* Override any gcc2 internal prototype to avoid an error.  */
18086 #ifdef __cplusplus
18087 extern "C"
18088 #endif
18089 /* We use char because int might match the return type of a gcc2
18090    builtin and then its argument prototype would still apply.  */
18091 char shl_load ();
18092 int
18093 main ()
18094 {
18095 shl_load ();
18096   ;
18097   return 0;
18098 }
18099 _ACEOF
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18102   (eval $ac_link) 2>conftest.er1
18103   ac_status=$?
18104   grep -v '^ *+' conftest.er1 >conftest.err
18105   rm -f conftest.er1
18106   cat conftest.err >&5
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); } &&
18109          { ac_try='test -z "$ac_c_werror_flag"
18110                          || test ! -s conftest.err'
18111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112   (eval $ac_try) 2>&5
18113   ac_status=$?
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); }; } &&
18116          { ac_try='test -s conftest$ac_exeext'
18117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118   (eval $ac_try) 2>&5
18119   ac_status=$?
18120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121   (exit $ac_status); }; }; then
18122   ac_cv_lib_dld_shl_load=yes
18123 else
18124   echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 ac_cv_lib_dld_shl_load=no
18128 fi
18129 rm -f conftest.err conftest.$ac_objext \
18130       conftest$ac_exeext conftest.$ac_ext
18131 LIBS=$ac_check_lib_save_LIBS
18132 fi
18133 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18134 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18135 if test $ac_cv_lib_dld_shl_load = yes; then
18136   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18137 else
18138   echo "$as_me:$LINENO: checking for dlopen" >&5
18139 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18140 if test "${ac_cv_func_dlopen+set}" = set; then
18141   echo $ECHO_N "(cached) $ECHO_C" >&6
18142 else
18143   cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h.  */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h.  */
18149 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18151 #define dlopen innocuous_dlopen
18152
18153 /* System header to define __stub macros and hopefully few prototypes,
18154     which can conflict with char dlopen (); below.
18155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18156     <limits.h> exists even on freestanding compilers.  */
18157
18158 #ifdef __STDC__
18159 # include <limits.h>
18160 #else
18161 # include <assert.h>
18162 #endif
18163
18164 #undef dlopen
18165
18166 /* Override any gcc2 internal prototype to avoid an error.  */
18167 #ifdef __cplusplus
18168 extern "C"
18169 {
18170 #endif
18171 /* We use char because int might match the return type of a gcc2
18172    builtin and then its argument prototype would still apply.  */
18173 char dlopen ();
18174 /* The GNU C library defines this for functions which it implements
18175     to always fail with ENOSYS.  Some functions are actually named
18176     something starting with __ and the normal name is an alias.  */
18177 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18178 choke me
18179 #else
18180 char (*f) () = dlopen;
18181 #endif
18182 #ifdef __cplusplus
18183 }
18184 #endif
18185
18186 int
18187 main ()
18188 {
18189 return f != dlopen;
18190   ;
18191   return 0;
18192 }
18193 _ACEOF
18194 rm -f conftest.$ac_objext conftest$ac_exeext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18196   (eval $ac_link) 2>conftest.er1
18197   ac_status=$?
18198   grep -v '^ *+' conftest.er1 >conftest.err
18199   rm -f conftest.er1
18200   cat conftest.err >&5
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); } &&
18203          { ac_try='test -z "$ac_c_werror_flag"
18204                          || test ! -s conftest.err'
18205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206   (eval $ac_try) 2>&5
18207   ac_status=$?
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); }; } &&
18210          { ac_try='test -s conftest$ac_exeext'
18211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212   (eval $ac_try) 2>&5
18213   ac_status=$?
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); }; }; then
18216   ac_cv_func_dlopen=yes
18217 else
18218   echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221 ac_cv_func_dlopen=no
18222 fi
18223 rm -f conftest.err conftest.$ac_objext \
18224       conftest$ac_exeext conftest.$ac_ext
18225 fi
18226 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18227 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18228 if test $ac_cv_func_dlopen = yes; then
18229   lt_cv_dlopen="dlopen"
18230 else
18231   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18232 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18233 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18234   echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236   ac_check_lib_save_LIBS=$LIBS
18237 LIBS="-ldl  $LIBS"
18238 cat >conftest.$ac_ext <<_ACEOF
18239 /* confdefs.h.  */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h.  */
18244
18245 /* Override any gcc2 internal prototype to avoid an error.  */
18246 #ifdef __cplusplus
18247 extern "C"
18248 #endif
18249 /* We use char because int might match the return type of a gcc2
18250    builtin and then its argument prototype would still apply.  */
18251 char dlopen ();
18252 int
18253 main ()
18254 {
18255 dlopen ();
18256   ;
18257   return 0;
18258 }
18259 _ACEOF
18260 rm -f conftest.$ac_objext conftest$ac_exeext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18262   (eval $ac_link) 2>conftest.er1
18263   ac_status=$?
18264   grep -v '^ *+' conftest.er1 >conftest.err
18265   rm -f conftest.er1
18266   cat conftest.err >&5
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); } &&
18269          { ac_try='test -z "$ac_c_werror_flag"
18270                          || test ! -s conftest.err'
18271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272   (eval $ac_try) 2>&5
18273   ac_status=$?
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); }; } &&
18276          { ac_try='test -s conftest$ac_exeext'
18277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278   (eval $ac_try) 2>&5
18279   ac_status=$?
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); }; }; then
18282   ac_cv_lib_dl_dlopen=yes
18283 else
18284   echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18286
18287 ac_cv_lib_dl_dlopen=no
18288 fi
18289 rm -f conftest.err conftest.$ac_objext \
18290       conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18292 fi
18293 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18294 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18295 if test $ac_cv_lib_dl_dlopen = yes; then
18296   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18297 else
18298   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18299 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18300 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18301   echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303   ac_check_lib_save_LIBS=$LIBS
18304 LIBS="-lsvld  $LIBS"
18305 cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h.  */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h.  */
18311
18312 /* Override any gcc2 internal prototype to avoid an error.  */
18313 #ifdef __cplusplus
18314 extern "C"
18315 #endif
18316 /* We use char because int might match the return type of a gcc2
18317    builtin and then its argument prototype would still apply.  */
18318 char dlopen ();
18319 int
18320 main ()
18321 {
18322 dlopen ();
18323   ;
18324   return 0;
18325 }
18326 _ACEOF
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18329   (eval $ac_link) 2>conftest.er1
18330   ac_status=$?
18331   grep -v '^ *+' conftest.er1 >conftest.err
18332   rm -f conftest.er1
18333   cat conftest.err >&5
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); } &&
18336          { ac_try='test -z "$ac_c_werror_flag"
18337                          || test ! -s conftest.err'
18338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339   (eval $ac_try) 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); }; } &&
18343          { ac_try='test -s conftest$ac_exeext'
18344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345   (eval $ac_try) 2>&5
18346   ac_status=$?
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); }; }; then
18349   ac_cv_lib_svld_dlopen=yes
18350 else
18351   echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354 ac_cv_lib_svld_dlopen=no
18355 fi
18356 rm -f conftest.err conftest.$ac_objext \
18357       conftest$ac_exeext conftest.$ac_ext
18358 LIBS=$ac_check_lib_save_LIBS
18359 fi
18360 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18361 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18362 if test $ac_cv_lib_svld_dlopen = yes; then
18363   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18364 else
18365   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18366 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18367 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18368   echo $ECHO_N "(cached) $ECHO_C" >&6
18369 else
18370   ac_check_lib_save_LIBS=$LIBS
18371 LIBS="-ldld  $LIBS"
18372 cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h.  */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h.  */
18378
18379 /* Override any gcc2 internal prototype to avoid an error.  */
18380 #ifdef __cplusplus
18381 extern "C"
18382 #endif
18383 /* We use char because int might match the return type of a gcc2
18384    builtin and then its argument prototype would still apply.  */
18385 char dld_link ();
18386 int
18387 main ()
18388 {
18389 dld_link ();
18390   ;
18391   return 0;
18392 }
18393 _ACEOF
18394 rm -f conftest.$ac_objext conftest$ac_exeext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18396   (eval $ac_link) 2>conftest.er1
18397   ac_status=$?
18398   grep -v '^ *+' conftest.er1 >conftest.err
18399   rm -f conftest.er1
18400   cat conftest.err >&5
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); } &&
18403          { ac_try='test -z "$ac_c_werror_flag"
18404                          || test ! -s conftest.err'
18405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406   (eval $ac_try) 2>&5
18407   ac_status=$?
18408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409   (exit $ac_status); }; } &&
18410          { ac_try='test -s conftest$ac_exeext'
18411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412   (eval $ac_try) 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); }; }; then
18416   ac_cv_lib_dld_dld_link=yes
18417 else
18418   echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421 ac_cv_lib_dld_dld_link=no
18422 fi
18423 rm -f conftest.err conftest.$ac_objext \
18424       conftest$ac_exeext conftest.$ac_ext
18425 LIBS=$ac_check_lib_save_LIBS
18426 fi
18427 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18428 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18429 if test $ac_cv_lib_dld_dld_link = yes; then
18430   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18431 fi
18432
18433
18434 fi
18435
18436
18437 fi
18438
18439
18440 fi
18441
18442
18443 fi
18444
18445
18446 fi
18447
18448     ;;
18449   esac
18450
18451   if test "x$lt_cv_dlopen" != xno; then
18452     enable_dlopen=yes
18453   else
18454     enable_dlopen=no
18455   fi
18456
18457   case $lt_cv_dlopen in
18458   dlopen)
18459     save_CPPFLAGS="$CPPFLAGS"
18460     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18461
18462     save_LDFLAGS="$LDFLAGS"
18463     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18464
18465     save_LIBS="$LIBS"
18466     LIBS="$lt_cv_dlopen_libs $LIBS"
18467
18468     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18469 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18470 if test "${lt_cv_dlopen_self+set}" = set; then
18471   echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473           if test "$cross_compiling" = yes; then :
18474   lt_cv_dlopen_self=cross
18475 else
18476   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18477   lt_status=$lt_dlunknown
18478   cat > conftest.$ac_ext <<EOF
18479 #line 18479 "configure"
18480 #include "confdefs.h"
18481
18482 #if HAVE_DLFCN_H
18483 #include <dlfcn.h>
18484 #endif
18485
18486 #include <stdio.h>
18487
18488 #ifdef RTLD_GLOBAL
18489 #  define LT_DLGLOBAL           RTLD_GLOBAL
18490 #else
18491 #  ifdef DL_GLOBAL
18492 #    define LT_DLGLOBAL         DL_GLOBAL
18493 #  else
18494 #    define LT_DLGLOBAL         0
18495 #  endif
18496 #endif
18497
18498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18499    find out it does not work in some platform. */
18500 #ifndef LT_DLLAZY_OR_NOW
18501 #  ifdef RTLD_LAZY
18502 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18503 #  else
18504 #    ifdef DL_LAZY
18505 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18506 #    else
18507 #      ifdef RTLD_NOW
18508 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18509 #      else
18510 #        ifdef DL_NOW
18511 #          define LT_DLLAZY_OR_NOW      DL_NOW
18512 #        else
18513 #          define LT_DLLAZY_OR_NOW      0
18514 #        endif
18515 #      endif
18516 #    endif
18517 #  endif
18518 #endif
18519
18520 #ifdef __cplusplus
18521 extern "C" void exit (int);
18522 #endif
18523
18524 void fnord() { int i=42;}
18525 int main ()
18526 {
18527   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18528   int status = $lt_dlunknown;
18529
18530   if (self)
18531     {
18532       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18533       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18534       /* dlclose (self); */
18535     }
18536
18537     exit (status);
18538 }
18539 EOF
18540   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18541   (eval $ac_link) 2>&5
18542   ac_status=$?
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18545     (./conftest; exit; ) 2>/dev/null
18546     lt_status=$?
18547     case x$lt_status in
18548       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18549       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18550       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18551     esac
18552   else :
18553     # compilation failed
18554     lt_cv_dlopen_self=no
18555   fi
18556 fi
18557 rm -fr conftest*
18558
18559
18560 fi
18561 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18562 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18563
18564     if test "x$lt_cv_dlopen_self" = xyes; then
18565       LDFLAGS="$LDFLAGS $link_static_flag"
18566       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18567 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18568 if test "${lt_cv_dlopen_self_static+set}" = set; then
18569   echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571           if test "$cross_compiling" = yes; then :
18572   lt_cv_dlopen_self_static=cross
18573 else
18574   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18575   lt_status=$lt_dlunknown
18576   cat > conftest.$ac_ext <<EOF
18577 #line 18577 "configure"
18578 #include "confdefs.h"
18579
18580 #if HAVE_DLFCN_H
18581 #include <dlfcn.h>
18582 #endif
18583
18584 #include <stdio.h>
18585
18586 #ifdef RTLD_GLOBAL
18587 #  define LT_DLGLOBAL           RTLD_GLOBAL
18588 #else
18589 #  ifdef DL_GLOBAL
18590 #    define LT_DLGLOBAL         DL_GLOBAL
18591 #  else
18592 #    define LT_DLGLOBAL         0
18593 #  endif
18594 #endif
18595
18596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18597    find out it does not work in some platform. */
18598 #ifndef LT_DLLAZY_OR_NOW
18599 #  ifdef RTLD_LAZY
18600 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18601 #  else
18602 #    ifdef DL_LAZY
18603 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18604 #    else
18605 #      ifdef RTLD_NOW
18606 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18607 #      else
18608 #        ifdef DL_NOW
18609 #          define LT_DLLAZY_OR_NOW      DL_NOW
18610 #        else
18611 #          define LT_DLLAZY_OR_NOW      0
18612 #        endif
18613 #      endif
18614 #    endif
18615 #  endif
18616 #endif
18617
18618 #ifdef __cplusplus
18619 extern "C" void exit (int);
18620 #endif
18621
18622 void fnord() { int i=42;}
18623 int main ()
18624 {
18625   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18626   int status = $lt_dlunknown;
18627
18628   if (self)
18629     {
18630       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18631       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18632       /* dlclose (self); */
18633     }
18634
18635     exit (status);
18636 }
18637 EOF
18638   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18639   (eval $ac_link) 2>&5
18640   ac_status=$?
18641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18643     (./conftest; exit; ) 2>/dev/null
18644     lt_status=$?
18645     case x$lt_status in
18646       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18647       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18648       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18649     esac
18650   else :
18651     # compilation failed
18652     lt_cv_dlopen_self_static=no
18653   fi
18654 fi
18655 rm -fr conftest*
18656
18657
18658 fi
18659 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18660 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18661     fi
18662
18663     CPPFLAGS="$save_CPPFLAGS"
18664     LDFLAGS="$save_LDFLAGS"
18665     LIBS="$save_LIBS"
18666     ;;
18667   esac
18668
18669   case $lt_cv_dlopen_self in
18670   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18671   *) enable_dlopen_self=unknown ;;
18672   esac
18673
18674   case $lt_cv_dlopen_self_static in
18675   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18676   *) enable_dlopen_self_static=unknown ;;
18677   esac
18678 fi
18679
18680
18681 # The else clause should only fire when bootstrapping the
18682 # libtool distribution, otherwise you forgot to ship ltmain.sh
18683 # with your package, and you will get complaints that there are
18684 # no rules to generate ltmain.sh.
18685 if test -f "$ltmain"; then
18686   # See if we are running on zsh, and set the options which allow our commands through
18687   # without removal of \ escapes.
18688   if test -n "${ZSH_VERSION+set}" ; then
18689     setopt NO_GLOB_SUBST
18690   fi
18691   # Now quote all the things that may contain metacharacters while being
18692   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18693   # variables and quote the copies for generation of the libtool script.
18694   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18695     SED SHELL STRIP \
18696     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18697     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18698     deplibs_check_method reload_flag reload_cmds need_locks \
18699     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18700     lt_cv_sys_global_symbol_to_c_name_address \
18701     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18702     old_postinstall_cmds old_postuninstall_cmds \
18703     compiler_GCJ \
18704     CC_GCJ \
18705     LD_GCJ \
18706     lt_prog_compiler_wl_GCJ \
18707     lt_prog_compiler_pic_GCJ \
18708     lt_prog_compiler_static_GCJ \
18709     lt_prog_compiler_no_builtin_flag_GCJ \
18710     export_dynamic_flag_spec_GCJ \
18711     thread_safe_flag_spec_GCJ \
18712     whole_archive_flag_spec_GCJ \
18713     enable_shared_with_static_runtimes_GCJ \
18714     old_archive_cmds_GCJ \
18715     old_archive_from_new_cmds_GCJ \
18716     predep_objects_GCJ \
18717     postdep_objects_GCJ \
18718     predeps_GCJ \
18719     postdeps_GCJ \
18720     compiler_lib_search_path_GCJ \
18721     archive_cmds_GCJ \
18722     archive_expsym_cmds_GCJ \
18723     postinstall_cmds_GCJ \
18724     postuninstall_cmds_GCJ \
18725     old_archive_from_expsyms_cmds_GCJ \
18726     allow_undefined_flag_GCJ \
18727     no_undefined_flag_GCJ \
18728     export_symbols_cmds_GCJ \
18729     hardcode_libdir_flag_spec_GCJ \
18730     hardcode_libdir_flag_spec_ld_GCJ \
18731     hardcode_libdir_separator_GCJ \
18732     hardcode_automatic_GCJ \
18733     module_cmds_GCJ \
18734     module_expsym_cmds_GCJ \
18735     lt_cv_prog_compiler_c_o_GCJ \
18736     exclude_expsyms_GCJ \
18737     include_expsyms_GCJ; do
18738
18739     case $var in
18740     old_archive_cmds_GCJ | \
18741     old_archive_from_new_cmds_GCJ | \
18742     archive_cmds_GCJ | \
18743     archive_expsym_cmds_GCJ | \
18744     module_cmds_GCJ | \
18745     module_expsym_cmds_GCJ | \
18746     old_archive_from_expsyms_cmds_GCJ | \
18747     export_symbols_cmds_GCJ | \
18748     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18749     postinstall_cmds | postuninstall_cmds | \
18750     old_postinstall_cmds | old_postuninstall_cmds | \
18751     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18752       # Double-quote double-evaled strings.
18753       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18754       ;;
18755     *)
18756       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18757       ;;
18758     esac
18759   done
18760
18761   case $lt_echo in
18762   *'\$0 --fallback-echo"')
18763     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18764     ;;
18765   esac
18766
18767 cfgfile="$ofile"
18768
18769   cat <<__EOF__ >> "$cfgfile"
18770 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18771
18772 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18773
18774 # Shell to use when invoking shell scripts.
18775 SHELL=$lt_SHELL
18776
18777 # Whether or not to build shared libraries.
18778 build_libtool_libs=$enable_shared
18779
18780 # Whether or not to build static libraries.
18781 build_old_libs=$enable_static
18782
18783 # Whether or not to add -lc for building shared libraries.
18784 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18785
18786 # Whether or not to disallow shared libs when runtime libs are static
18787 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18788
18789 # Whether or not to optimize for fast installation.
18790 fast_install=$enable_fast_install
18791
18792 # The host system.
18793 host_alias=$host_alias
18794 host=$host
18795
18796 # An echo program that does not interpret backslashes.
18797 echo=$lt_echo
18798
18799 # The archiver.
18800 AR=$lt_AR
18801 AR_FLAGS=$lt_AR_FLAGS
18802
18803 # A C compiler.
18804 LTCC=$lt_LTCC
18805
18806 # A language-specific compiler.
18807 CC=$lt_compiler_GCJ
18808
18809 # Is the compiler the GNU C compiler?
18810 with_gcc=$GCC_GCJ
18811
18812 # An ERE matcher.
18813 EGREP=$lt_EGREP
18814
18815 # The linker used to build libraries.
18816 LD=$lt_LD_GCJ
18817
18818 # Whether we need hard or soft links.
18819 LN_S=$lt_LN_S
18820
18821 # A BSD-compatible nm program.
18822 NM=$lt_NM
18823
18824 # A symbol stripping program
18825 STRIP=$lt_STRIP
18826
18827 # Used to examine libraries when file_magic_cmd begins "file"
18828 MAGIC_CMD=$MAGIC_CMD
18829
18830 # Used on cygwin: DLL creation program.
18831 DLLTOOL="$DLLTOOL"
18832
18833 # Used on cygwin: object dumper.
18834 OBJDUMP="$OBJDUMP"
18835
18836 # Used on cygwin: assembler.
18837 AS="$AS"
18838
18839 # The name of the directory that contains temporary libtool files.
18840 objdir=$objdir
18841
18842 # How to create reloadable object files.
18843 reload_flag=$lt_reload_flag
18844 reload_cmds=$lt_reload_cmds
18845
18846 # How to pass a linker flag through the compiler.
18847 wl=$lt_lt_prog_compiler_wl_GCJ
18848
18849 # Object file suffix (normally "o").
18850 objext="$ac_objext"
18851
18852 # Old archive suffix (normally "a").
18853 libext="$libext"
18854
18855 # Shared library suffix (normally ".so").
18856 shrext_cmds='$shrext_cmds'
18857
18858 # Executable file suffix (normally "").
18859 exeext="$exeext"
18860
18861 # Additional compiler flags for building library objects.
18862 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18863 pic_mode=$pic_mode
18864
18865 # What is the maximum length of a command?
18866 max_cmd_len=$lt_cv_sys_max_cmd_len
18867
18868 # Does compiler simultaneously support -c and -o options?
18869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18870
18871 # Must we lock files when doing compilation ?
18872 need_locks=$lt_need_locks
18873
18874 # Do we need the lib prefix for modules?
18875 need_lib_prefix=$need_lib_prefix
18876
18877 # Do we need a version for libraries?
18878 need_version=$need_version
18879
18880 # Whether dlopen is supported.
18881 dlopen_support=$enable_dlopen
18882
18883 # Whether dlopen of programs is supported.
18884 dlopen_self=$enable_dlopen_self
18885
18886 # Whether dlopen of statically linked programs is supported.
18887 dlopen_self_static=$enable_dlopen_self_static
18888
18889 # Compiler flag to prevent dynamic linking.
18890 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18891
18892 # Compiler flag to turn off builtin functions.
18893 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18894
18895 # Compiler flag to allow reflexive dlopens.
18896 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18897
18898 # Compiler flag to generate shared objects directly from archives.
18899 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18900
18901 # Compiler flag to generate thread-safe objects.
18902 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18903
18904 # Library versioning type.
18905 version_type=$version_type
18906
18907 # Format of library name prefix.
18908 libname_spec=$lt_libname_spec
18909
18910 # List of archive names.  First name is the real one, the rest are links.
18911 # The last name is the one that the linker finds with -lNAME.
18912 library_names_spec=$lt_library_names_spec
18913
18914 # The coded name of the library, if different from the real name.
18915 soname_spec=$lt_soname_spec
18916
18917 # Commands used to build and install an old-style archive.
18918 RANLIB=$lt_RANLIB
18919 old_archive_cmds=$lt_old_archive_cmds_GCJ
18920 old_postinstall_cmds=$lt_old_postinstall_cmds
18921 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18922
18923 # Create an old-style archive from a shared archive.
18924 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18925
18926 # Create a temporary old-style archive to link instead of a shared archive.
18927 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18928
18929 # Commands used to build and install a shared archive.
18930 archive_cmds=$lt_archive_cmds_GCJ
18931 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18932 postinstall_cmds=$lt_postinstall_cmds
18933 postuninstall_cmds=$lt_postuninstall_cmds
18934
18935 # Commands used to build a loadable module (assumed same as above if empty)
18936 module_cmds=$lt_module_cmds_GCJ
18937 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18938
18939 # Commands to strip libraries.
18940 old_striplib=$lt_old_striplib
18941 striplib=$lt_striplib
18942
18943 # Dependencies to place before the objects being linked to create a
18944 # shared library.
18945 predep_objects=$lt_predep_objects_GCJ
18946
18947 # Dependencies to place after the objects being linked to create a
18948 # shared library.
18949 postdep_objects=$lt_postdep_objects_GCJ
18950
18951 # Dependencies to place before the objects being linked to create a
18952 # shared library.
18953 predeps=$lt_predeps_GCJ
18954
18955 # Dependencies to place after the objects being linked to create a
18956 # shared library.
18957 postdeps=$lt_postdeps_GCJ
18958
18959 # The library search path used internally by the compiler when linking
18960 # a shared library.
18961 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18962
18963 # Method to check whether dependent libraries are shared objects.
18964 deplibs_check_method=$lt_deplibs_check_method
18965
18966 # Command to use when deplibs_check_method == file_magic.
18967 file_magic_cmd=$lt_file_magic_cmd
18968
18969 # Flag that allows shared libraries with undefined symbols to be built.
18970 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18971
18972 # Flag that forces no undefined symbols.
18973 no_undefined_flag=$lt_no_undefined_flag_GCJ
18974
18975 # Commands used to finish a libtool library installation in a directory.
18976 finish_cmds=$lt_finish_cmds
18977
18978 # Same as above, but a single script fragment to be evaled but not shown.
18979 finish_eval=$lt_finish_eval
18980
18981 # Take the output of nm and produce a listing of raw symbols and C names.
18982 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18983
18984 # Transform the output of nm in a proper C declaration
18985 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18986
18987 # Transform the output of nm in a C name address pair
18988 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18989
18990 # This is the shared library runtime path variable.
18991 runpath_var=$runpath_var
18992
18993 # This is the shared library path variable.
18994 shlibpath_var=$shlibpath_var
18995
18996 # Is shlibpath searched before the hard-coded library search path?
18997 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18998
18999 # How to hardcode a shared library path into an executable.
19000 hardcode_action=$hardcode_action_GCJ
19001
19002 # Whether we should hardcode library paths into libraries.
19003 hardcode_into_libs=$hardcode_into_libs
19004
19005 # Flag to hardcode \$libdir into a binary during linking.
19006 # This must work even if \$libdir does not exist.
19007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19008
19009 # If ld is used when linking, flag to hardcode \$libdir into
19010 # a binary during linking. This must work even if \$libdir does
19011 # not exist.
19012 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19013
19014 # Whether we need a single -rpath flag with a separated argument.
19015 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19016
19017 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19018 # resulting binary.
19019 hardcode_direct=$hardcode_direct_GCJ
19020
19021 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19022 # resulting binary.
19023 hardcode_minus_L=$hardcode_minus_L_GCJ
19024
19025 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19026 # the resulting binary.
19027 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19028
19029 # Set to yes if building a shared library automatically hardcodes DIR into the library
19030 # and all subsequent libraries and executables linked against it.
19031 hardcode_automatic=$hardcode_automatic_GCJ
19032
19033 # Variables whose values should be saved in libtool wrapper scripts and
19034 # restored at relink time.
19035 variables_saved_for_relink="$variables_saved_for_relink"
19036
19037 # Whether libtool must link a program against all its dependency libraries.
19038 link_all_deplibs=$link_all_deplibs_GCJ
19039
19040 # Compile-time system search path for libraries
19041 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19042
19043 # Run-time system search path for libraries
19044 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19045
19046 # Fix the shell variable \$srcfile for the compiler.
19047 fix_srcfile_path="$fix_srcfile_path_GCJ"
19048
19049 # Set to yes if exported symbols are required.
19050 always_export_symbols=$always_export_symbols_GCJ
19051
19052 # The commands to list exported symbols.
19053 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19054
19055 # The commands to extract the exported symbol list from a shared archive.
19056 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19057
19058 # Symbols that should not be listed in the preloaded symbols.
19059 exclude_expsyms=$lt_exclude_expsyms_GCJ
19060
19061 # Symbols that must always be exported.
19062 include_expsyms=$lt_include_expsyms_GCJ
19063
19064 # ### END LIBTOOL TAG CONFIG: $tagname
19065
19066 __EOF__
19067
19068
19069 else
19070   # If there is no Makefile yet, we rely on a make rule to execute
19071   # `config.status --recheck' to rerun these tests and create the
19072   # libtool script then.
19073   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19074   if test -f "$ltmain_in"; then
19075     test -f Makefile && make "$ltmain"
19076   fi
19077 fi
19078
19079
19080 ac_ext=c
19081 ac_cpp='$CPP $CPPFLAGS'
19082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19085
19086 CC="$lt_save_CC"
19087
19088         else
19089           tagname=""
19090         fi
19091         ;;
19092
19093       RC)
19094
19095
19096
19097 # Source file extension for RC test sources.
19098 ac_ext=rc
19099
19100 # Object file extension for compiled RC test sources.
19101 objext=o
19102 objext_RC=$objext
19103
19104 # Code to be used in simple compile tests
19105 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19106
19107 # Code to be used in simple link tests
19108 lt_simple_link_test_code="$lt_simple_compile_test_code"
19109
19110 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19111
19112 # If no C compiler was specified, use CC.
19113 LTCC=${LTCC-"$CC"}
19114
19115 # Allow CC to be a program name with arguments.
19116 compiler=$CC
19117
19118
19119 # Allow CC to be a program name with arguments.
19120 lt_save_CC="$CC"
19121 CC=${RC-"windres"}
19122 compiler=$CC
19123 compiler_RC=$CC
19124 lt_cv_prog_compiler_c_o_RC=yes
19125
19126 # The else clause should only fire when bootstrapping the
19127 # libtool distribution, otherwise you forgot to ship ltmain.sh
19128 # with your package, and you will get complaints that there are
19129 # no rules to generate ltmain.sh.
19130 if test -f "$ltmain"; then
19131   # See if we are running on zsh, and set the options which allow our commands through
19132   # without removal of \ escapes.
19133   if test -n "${ZSH_VERSION+set}" ; then
19134     setopt NO_GLOB_SUBST
19135   fi
19136   # Now quote all the things that may contain metacharacters while being
19137   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19138   # variables and quote the copies for generation of the libtool script.
19139   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19140     SED SHELL STRIP \
19141     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19142     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19143     deplibs_check_method reload_flag reload_cmds need_locks \
19144     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19145     lt_cv_sys_global_symbol_to_c_name_address \
19146     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19147     old_postinstall_cmds old_postuninstall_cmds \
19148     compiler_RC \
19149     CC_RC \
19150     LD_RC \
19151     lt_prog_compiler_wl_RC \
19152     lt_prog_compiler_pic_RC \
19153     lt_prog_compiler_static_RC \
19154     lt_prog_compiler_no_builtin_flag_RC \
19155     export_dynamic_flag_spec_RC \
19156     thread_safe_flag_spec_RC \
19157     whole_archive_flag_spec_RC \
19158     enable_shared_with_static_runtimes_RC \
19159     old_archive_cmds_RC \
19160     old_archive_from_new_cmds_RC \
19161     predep_objects_RC \
19162     postdep_objects_RC \
19163     predeps_RC \
19164     postdeps_RC \
19165     compiler_lib_search_path_RC \
19166     archive_cmds_RC \
19167     archive_expsym_cmds_RC \
19168     postinstall_cmds_RC \
19169     postuninstall_cmds_RC \
19170     old_archive_from_expsyms_cmds_RC \
19171     allow_undefined_flag_RC \
19172     no_undefined_flag_RC \
19173     export_symbols_cmds_RC \
19174     hardcode_libdir_flag_spec_RC \
19175     hardcode_libdir_flag_spec_ld_RC \
19176     hardcode_libdir_separator_RC \
19177     hardcode_automatic_RC \
19178     module_cmds_RC \
19179     module_expsym_cmds_RC \
19180     lt_cv_prog_compiler_c_o_RC \
19181     exclude_expsyms_RC \
19182     include_expsyms_RC; do
19183
19184     case $var in
19185     old_archive_cmds_RC | \
19186     old_archive_from_new_cmds_RC | \
19187     archive_cmds_RC | \
19188     archive_expsym_cmds_RC | \
19189     module_cmds_RC | \
19190     module_expsym_cmds_RC | \
19191     old_archive_from_expsyms_cmds_RC | \
19192     export_symbols_cmds_RC | \
19193     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19194     postinstall_cmds | postuninstall_cmds | \
19195     old_postinstall_cmds | old_postuninstall_cmds | \
19196     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19197       # Double-quote double-evaled strings.
19198       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19199       ;;
19200     *)
19201       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19202       ;;
19203     esac
19204   done
19205
19206   case $lt_echo in
19207   *'\$0 --fallback-echo"')
19208     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19209     ;;
19210   esac
19211
19212 cfgfile="$ofile"
19213
19214   cat <<__EOF__ >> "$cfgfile"
19215 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19216
19217 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19218
19219 # Shell to use when invoking shell scripts.
19220 SHELL=$lt_SHELL
19221
19222 # Whether or not to build shared libraries.
19223 build_libtool_libs=$enable_shared
19224
19225 # Whether or not to build static libraries.
19226 build_old_libs=$enable_static
19227
19228 # Whether or not to add -lc for building shared libraries.
19229 build_libtool_need_lc=$archive_cmds_need_lc_RC
19230
19231 # Whether or not to disallow shared libs when runtime libs are static
19232 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19233
19234 # Whether or not to optimize for fast installation.
19235 fast_install=$enable_fast_install
19236
19237 # The host system.
19238 host_alias=$host_alias
19239 host=$host
19240
19241 # An echo program that does not interpret backslashes.
19242 echo=$lt_echo
19243
19244 # The archiver.
19245 AR=$lt_AR
19246 AR_FLAGS=$lt_AR_FLAGS
19247
19248 # A C compiler.
19249 LTCC=$lt_LTCC
19250
19251 # A language-specific compiler.
19252 CC=$lt_compiler_RC
19253
19254 # Is the compiler the GNU C compiler?
19255 with_gcc=$GCC_RC
19256
19257 # An ERE matcher.
19258 EGREP=$lt_EGREP
19259
19260 # The linker used to build libraries.
19261 LD=$lt_LD_RC
19262
19263 # Whether we need hard or soft links.
19264 LN_S=$lt_LN_S
19265
19266 # A BSD-compatible nm program.
19267 NM=$lt_NM
19268
19269 # A symbol stripping program
19270 STRIP=$lt_STRIP
19271
19272 # Used to examine libraries when file_magic_cmd begins "file"
19273 MAGIC_CMD=$MAGIC_CMD
19274
19275 # Used on cygwin: DLL creation program.
19276 DLLTOOL="$DLLTOOL"
19277
19278 # Used on cygwin: object dumper.
19279 OBJDUMP="$OBJDUMP"
19280
19281 # Used on cygwin: assembler.
19282 AS="$AS"
19283
19284 # The name of the directory that contains temporary libtool files.
19285 objdir=$objdir
19286
19287 # How to create reloadable object files.
19288 reload_flag=$lt_reload_flag
19289 reload_cmds=$lt_reload_cmds
19290
19291 # How to pass a linker flag through the compiler.
19292 wl=$lt_lt_prog_compiler_wl_RC
19293
19294 # Object file suffix (normally "o").
19295 objext="$ac_objext"
19296
19297 # Old archive suffix (normally "a").
19298 libext="$libext"
19299
19300 # Shared library suffix (normally ".so").
19301 shrext_cmds='$shrext_cmds'
19302
19303 # Executable file suffix (normally "").
19304 exeext="$exeext"
19305
19306 # Additional compiler flags for building library objects.
19307 pic_flag=$lt_lt_prog_compiler_pic_RC
19308 pic_mode=$pic_mode
19309
19310 # What is the maximum length of a command?
19311 max_cmd_len=$lt_cv_sys_max_cmd_len
19312
19313 # Does compiler simultaneously support -c and -o options?
19314 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19315
19316 # Must we lock files when doing compilation ?
19317 need_locks=$lt_need_locks
19318
19319 # Do we need the lib prefix for modules?
19320 need_lib_prefix=$need_lib_prefix
19321
19322 # Do we need a version for libraries?
19323 need_version=$need_version
19324
19325 # Whether dlopen is supported.
19326 dlopen_support=$enable_dlopen
19327
19328 # Whether dlopen of programs is supported.
19329 dlopen_self=$enable_dlopen_self
19330
19331 # Whether dlopen of statically linked programs is supported.
19332 dlopen_self_static=$enable_dlopen_self_static
19333
19334 # Compiler flag to prevent dynamic linking.
19335 link_static_flag=$lt_lt_prog_compiler_static_RC
19336
19337 # Compiler flag to turn off builtin functions.
19338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19339
19340 # Compiler flag to allow reflexive dlopens.
19341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19342
19343 # Compiler flag to generate shared objects directly from archives.
19344 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19345
19346 # Compiler flag to generate thread-safe objects.
19347 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19348
19349 # Library versioning type.
19350 version_type=$version_type
19351
19352 # Format of library name prefix.
19353 libname_spec=$lt_libname_spec
19354
19355 # List of archive names.  First name is the real one, the rest are links.
19356 # The last name is the one that the linker finds with -lNAME.
19357 library_names_spec=$lt_library_names_spec
19358
19359 # The coded name of the library, if different from the real name.
19360 soname_spec=$lt_soname_spec
19361
19362 # Commands used to build and install an old-style archive.
19363 RANLIB=$lt_RANLIB
19364 old_archive_cmds=$lt_old_archive_cmds_RC
19365 old_postinstall_cmds=$lt_old_postinstall_cmds
19366 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19367
19368 # Create an old-style archive from a shared archive.
19369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19370
19371 # Create a temporary old-style archive to link instead of a shared archive.
19372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19373
19374 # Commands used to build and install a shared archive.
19375 archive_cmds=$lt_archive_cmds_RC
19376 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19377 postinstall_cmds=$lt_postinstall_cmds
19378 postuninstall_cmds=$lt_postuninstall_cmds
19379
19380 # Commands used to build a loadable module (assumed same as above if empty)
19381 module_cmds=$lt_module_cmds_RC
19382 module_expsym_cmds=$lt_module_expsym_cmds_RC
19383
19384 # Commands to strip libraries.
19385 old_striplib=$lt_old_striplib
19386 striplib=$lt_striplib
19387
19388 # Dependencies to place before the objects being linked to create a
19389 # shared library.
19390 predep_objects=$lt_predep_objects_RC
19391
19392 # Dependencies to place after the objects being linked to create a
19393 # shared library.
19394 postdep_objects=$lt_postdep_objects_RC
19395
19396 # Dependencies to place before the objects being linked to create a
19397 # shared library.
19398 predeps=$lt_predeps_RC
19399
19400 # Dependencies to place after the objects being linked to create a
19401 # shared library.
19402 postdeps=$lt_postdeps_RC
19403
19404 # The library search path used internally by the compiler when linking
19405 # a shared library.
19406 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19407
19408 # Method to check whether dependent libraries are shared objects.
19409 deplibs_check_method=$lt_deplibs_check_method
19410
19411 # Command to use when deplibs_check_method == file_magic.
19412 file_magic_cmd=$lt_file_magic_cmd
19413
19414 # Flag that allows shared libraries with undefined symbols to be built.
19415 allow_undefined_flag=$lt_allow_undefined_flag_RC
19416
19417 # Flag that forces no undefined symbols.
19418 no_undefined_flag=$lt_no_undefined_flag_RC
19419
19420 # Commands used to finish a libtool library installation in a directory.
19421 finish_cmds=$lt_finish_cmds
19422
19423 # Same as above, but a single script fragment to be evaled but not shown.
19424 finish_eval=$lt_finish_eval
19425
19426 # Take the output of nm and produce a listing of raw symbols and C names.
19427 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19428
19429 # Transform the output of nm in a proper C declaration
19430 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19431
19432 # Transform the output of nm in a C name address pair
19433 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19434
19435 # This is the shared library runtime path variable.
19436 runpath_var=$runpath_var
19437
19438 # This is the shared library path variable.
19439 shlibpath_var=$shlibpath_var
19440
19441 # Is shlibpath searched before the hard-coded library search path?
19442 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19443
19444 # How to hardcode a shared library path into an executable.
19445 hardcode_action=$hardcode_action_RC
19446
19447 # Whether we should hardcode library paths into libraries.
19448 hardcode_into_libs=$hardcode_into_libs
19449
19450 # Flag to hardcode \$libdir into a binary during linking.
19451 # This must work even if \$libdir does not exist.
19452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19453
19454 # If ld is used when linking, flag to hardcode \$libdir into
19455 # a binary during linking. This must work even if \$libdir does
19456 # not exist.
19457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19458
19459 # Whether we need a single -rpath flag with a separated argument.
19460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19461
19462 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19463 # resulting binary.
19464 hardcode_direct=$hardcode_direct_RC
19465
19466 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19467 # resulting binary.
19468 hardcode_minus_L=$hardcode_minus_L_RC
19469
19470 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19471 # the resulting binary.
19472 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19473
19474 # Set to yes if building a shared library automatically hardcodes DIR into the library
19475 # and all subsequent libraries and executables linked against it.
19476 hardcode_automatic=$hardcode_automatic_RC
19477
19478 # Variables whose values should be saved in libtool wrapper scripts and
19479 # restored at relink time.
19480 variables_saved_for_relink="$variables_saved_for_relink"
19481
19482 # Whether libtool must link a program against all its dependency libraries.
19483 link_all_deplibs=$link_all_deplibs_RC
19484
19485 # Compile-time system search path for libraries
19486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19487
19488 # Run-time system search path for libraries
19489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19490
19491 # Fix the shell variable \$srcfile for the compiler.
19492 fix_srcfile_path="$fix_srcfile_path_RC"
19493
19494 # Set to yes if exported symbols are required.
19495 always_export_symbols=$always_export_symbols_RC
19496
19497 # The commands to list exported symbols.
19498 export_symbols_cmds=$lt_export_symbols_cmds_RC
19499
19500 # The commands to extract the exported symbol list from a shared archive.
19501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19502
19503 # Symbols that should not be listed in the preloaded symbols.
19504 exclude_expsyms=$lt_exclude_expsyms_RC
19505
19506 # Symbols that must always be exported.
19507 include_expsyms=$lt_include_expsyms_RC
19508
19509 # ### END LIBTOOL TAG CONFIG: $tagname
19510
19511 __EOF__
19512
19513
19514 else
19515   # If there is no Makefile yet, we rely on a make rule to execute
19516   # `config.status --recheck' to rerun these tests and create the
19517   # libtool script then.
19518   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19519   if test -f "$ltmain_in"; then
19520     test -f Makefile && make "$ltmain"
19521   fi
19522 fi
19523
19524
19525 ac_ext=c
19526 ac_cpp='$CPP $CPPFLAGS'
19527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19530
19531 CC="$lt_save_CC"
19532
19533         ;;
19534
19535       *)
19536         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19537 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19538    { (exit 1); exit 1; }; }
19539         ;;
19540       esac
19541
19542       # Append the new tag name to the list of available tags.
19543       if test -n "$tagname" ; then
19544       available_tags="$available_tags $tagname"
19545     fi
19546     fi
19547   done
19548   IFS="$lt_save_ifs"
19549
19550   # Now substitute the updated list of available tags.
19551   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19552     mv "${ofile}T" "$ofile"
19553     chmod +x "$ofile"
19554   else
19555     rm -f "${ofile}T"
19556     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19557 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19558    { (exit 1); exit 1; }; }
19559   fi
19560 fi
19561
19562
19563
19564 # This can be used to rebuild libtool when needed
19565 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19566
19567 # Always use our own libtool.
19568 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19569
19570 # Prevent multiple expansion
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598 ac_header_dirent=no
19599 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19600   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19601 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19602 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19604   echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606   cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h.  */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h.  */
19612 #include <sys/types.h>
19613 #include <$ac_hdr>
19614
19615 int
19616 main ()
19617 {
19618 if ((DIR *) 0)
19619 return 0;
19620   ;
19621   return 0;
19622 }
19623 _ACEOF
19624 rm -f conftest.$ac_objext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626   (eval $ac_compile) 2>conftest.er1
19627   ac_status=$?
19628   grep -v '^ *+' conftest.er1 >conftest.err
19629   rm -f conftest.er1
19630   cat conftest.err >&5
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } &&
19633          { ac_try='test -z "$ac_c_werror_flag"
19634                          || test ! -s conftest.err'
19635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636   (eval $ac_try) 2>&5
19637   ac_status=$?
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); }; } &&
19640          { ac_try='test -s conftest.$ac_objext'
19641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642   (eval $ac_try) 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); }; }; then
19646   eval "$as_ac_Header=yes"
19647 else
19648   echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19650
19651 eval "$as_ac_Header=no"
19652 fi
19653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19654 fi
19655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19658   cat >>confdefs.h <<_ACEOF
19659 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19660 _ACEOF
19661
19662 ac_header_dirent=$ac_hdr; break
19663 fi
19664
19665 done
19666 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19667 if test $ac_header_dirent = dirent.h; then
19668   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19669 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19670 if test "${ac_cv_search_opendir+set}" = set; then
19671   echo $ECHO_N "(cached) $ECHO_C" >&6
19672 else
19673   ac_func_search_save_LIBS=$LIBS
19674 ac_cv_search_opendir=no
19675 cat >conftest.$ac_ext <<_ACEOF
19676 /* confdefs.h.  */
19677 _ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h.  */
19681
19682 /* Override any gcc2 internal prototype to avoid an error.  */
19683 #ifdef __cplusplus
19684 extern "C"
19685 #endif
19686 /* We use char because int might match the return type of a gcc2
19687    builtin and then its argument prototype would still apply.  */
19688 char opendir ();
19689 int
19690 main ()
19691 {
19692 opendir ();
19693   ;
19694   return 0;
19695 }
19696 _ACEOF
19697 rm -f conftest.$ac_objext conftest$ac_exeext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19699   (eval $ac_link) 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } &&
19706          { ac_try='test -z "$ac_c_werror_flag"
19707                          || test ! -s conftest.err'
19708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709   (eval $ac_try) 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; } &&
19713          { ac_try='test -s conftest$ac_exeext'
19714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715   (eval $ac_try) 2>&5
19716   ac_status=$?
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); }; }; then
19719   ac_cv_search_opendir="none required"
19720 else
19721   echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19723
19724 fi
19725 rm -f conftest.err conftest.$ac_objext \
19726       conftest$ac_exeext conftest.$ac_ext
19727 if test "$ac_cv_search_opendir" = no; then
19728   for ac_lib in dir; do
19729     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19730     cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h.  */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h.  */
19736
19737 /* Override any gcc2 internal prototype to avoid an error.  */
19738 #ifdef __cplusplus
19739 extern "C"
19740 #endif
19741 /* We use char because int might match the return type of a gcc2
19742    builtin and then its argument prototype would still apply.  */
19743 char opendir ();
19744 int
19745 main ()
19746 {
19747 opendir ();
19748   ;
19749   return 0;
19750 }
19751 _ACEOF
19752 rm -f conftest.$ac_objext conftest$ac_exeext
19753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19754   (eval $ac_link) 2>conftest.er1
19755   ac_status=$?
19756   grep -v '^ *+' conftest.er1 >conftest.err
19757   rm -f conftest.er1
19758   cat conftest.err >&5
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); } &&
19761          { ac_try='test -z "$ac_c_werror_flag"
19762                          || test ! -s conftest.err'
19763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764   (eval $ac_try) 2>&5
19765   ac_status=$?
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); }; } &&
19768          { ac_try='test -s conftest$ac_exeext'
19769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770   (eval $ac_try) 2>&5
19771   ac_status=$?
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); }; }; then
19774   ac_cv_search_opendir="-l$ac_lib"
19775 break
19776 else
19777   echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19779
19780 fi
19781 rm -f conftest.err conftest.$ac_objext \
19782       conftest$ac_exeext conftest.$ac_ext
19783   done
19784 fi
19785 LIBS=$ac_func_search_save_LIBS
19786 fi
19787 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19788 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19789 if test "$ac_cv_search_opendir" != no; then
19790   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19791
19792 fi
19793
19794 else
19795   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19796 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19797 if test "${ac_cv_search_opendir+set}" = set; then
19798   echo $ECHO_N "(cached) $ECHO_C" >&6
19799 else
19800   ac_func_search_save_LIBS=$LIBS
19801 ac_cv_search_opendir=no
19802 cat >conftest.$ac_ext <<_ACEOF
19803 /* confdefs.h.  */
19804 _ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h.  */
19808
19809 /* Override any gcc2 internal prototype to avoid an error.  */
19810 #ifdef __cplusplus
19811 extern "C"
19812 #endif
19813 /* We use char because int might match the return type of a gcc2
19814    builtin and then its argument prototype would still apply.  */
19815 char opendir ();
19816 int
19817 main ()
19818 {
19819 opendir ();
19820   ;
19821   return 0;
19822 }
19823 _ACEOF
19824 rm -f conftest.$ac_objext conftest$ac_exeext
19825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19826   (eval $ac_link) 2>conftest.er1
19827   ac_status=$?
19828   grep -v '^ *+' conftest.er1 >conftest.err
19829   rm -f conftest.er1
19830   cat conftest.err >&5
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); } &&
19833          { ac_try='test -z "$ac_c_werror_flag"
19834                          || test ! -s conftest.err'
19835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836   (eval $ac_try) 2>&5
19837   ac_status=$?
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); }; } &&
19840          { ac_try='test -s conftest$ac_exeext'
19841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842   (eval $ac_try) 2>&5
19843   ac_status=$?
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); }; }; then
19846   ac_cv_search_opendir="none required"
19847 else
19848   echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19850
19851 fi
19852 rm -f conftest.err conftest.$ac_objext \
19853       conftest$ac_exeext conftest.$ac_ext
19854 if test "$ac_cv_search_opendir" = no; then
19855   for ac_lib in x; do
19856     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19857     cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h.  */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h.  */
19863
19864 /* Override any gcc2 internal prototype to avoid an error.  */
19865 #ifdef __cplusplus
19866 extern "C"
19867 #endif
19868 /* We use char because int might match the return type of a gcc2
19869    builtin and then its argument prototype would still apply.  */
19870 char opendir ();
19871 int
19872 main ()
19873 {
19874 opendir ();
19875   ;
19876   return 0;
19877 }
19878 _ACEOF
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19881   (eval $ac_link) 2>conftest.er1
19882   ac_status=$?
19883   grep -v '^ *+' conftest.er1 >conftest.err
19884   rm -f conftest.er1
19885   cat conftest.err >&5
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); } &&
19888          { ac_try='test -z "$ac_c_werror_flag"
19889                          || test ! -s conftest.err'
19890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891   (eval $ac_try) 2>&5
19892   ac_status=$?
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); }; } &&
19895          { ac_try='test -s conftest$ac_exeext'
19896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897   (eval $ac_try) 2>&5
19898   ac_status=$?
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); }; }; then
19901   ac_cv_search_opendir="-l$ac_lib"
19902 break
19903 else
19904   echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19906
19907 fi
19908 rm -f conftest.err conftest.$ac_objext \
19909       conftest$ac_exeext conftest.$ac_ext
19910   done
19911 fi
19912 LIBS=$ac_func_search_save_LIBS
19913 fi
19914 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19915 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19916 if test "$ac_cv_search_opendir" != no; then
19917   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19918
19919 fi
19920
19921 fi
19922
19923 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
19924 if test "${enable_ltdl_install+set}" = set; then
19925   enableval="$enable_ltdl_install"
19926
19927 fi;
19928
19929
19930
19931 if test x"${enable_ltdl_install-no}" != xno; then
19932   INSTALL_LTDL_TRUE=
19933   INSTALL_LTDL_FALSE='#'
19934 else
19935   INSTALL_LTDL_TRUE='#'
19936   INSTALL_LTDL_FALSE=
19937 fi
19938
19939
19940
19941 if test x"${enable_ltdl_convenience-no}" != xno; then
19942   CONVENIENCE_LTDL_TRUE=
19943   CONVENIENCE_LTDL_FALSE='#'
19944 else
19945   CONVENIENCE_LTDL_TRUE='#'
19946   CONVENIENCE_LTDL_FALSE=
19947 fi
19948
19949
19950
19951 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19952 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
19953 if test "${libltdl_cv_shlibext+set}" = set; then
19954   echo $ECHO_N "(cached) $ECHO_C" >&6
19955 else
19956
19957 module=yes
19958 eval libltdl_cv_shlibext=$shrext_cmds
19959
19960 fi
19961 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19962 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
19963 if test -n "$libltdl_cv_shlibext"; then
19964
19965 cat >>confdefs.h <<_ACEOF
19966 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19967 _ACEOF
19968
19969 fi
19970
19971
19972 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19973 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
19974 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19975   echo $ECHO_N "(cached) $ECHO_C" >&6
19976 else
19977   libltdl_cv_shlibpath_var="$shlibpath_var"
19978 fi
19979 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19980 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
19981 if test -n "$libltdl_cv_shlibpath_var"; then
19982
19983 cat >>confdefs.h <<_ACEOF
19984 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19985 _ACEOF
19986
19987 fi
19988
19989
19990 echo "$as_me:$LINENO: checking for the default library search path" >&5
19991 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
19992 if test "${libltdl_cv_sys_search_path+set}" = set; then
19993   echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19996 fi
19997 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19998 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
19999 if test -n "$libltdl_cv_sys_search_path"; then
20000   sys_search_path=
20001   for dir in $libltdl_cv_sys_search_path; do
20002     if test -z "$sys_search_path"; then
20003       sys_search_path="$dir"
20004     else
20005       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20006     fi
20007   done
20008
20009 cat >>confdefs.h <<_ACEOF
20010 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20011 _ACEOF
20012
20013 fi
20014
20015 echo "$as_me:$LINENO: checking for objdir" >&5
20016 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
20017 if test "${libltdl_cv_objdir+set}" = set; then
20018   echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020   libltdl_cv_objdir="$objdir"
20021   if test -n "$objdir"; then
20022     :
20023   else
20024     rm -f .libs 2>/dev/null
20025     mkdir .libs 2>/dev/null
20026     if test -d .libs; then
20027       libltdl_cv_objdir=.libs
20028     else
20029       # MS-DOS does not allow filenames that begin with a dot.
20030       libltdl_cv_objdir=_libs
20031     fi
20032   rmdir .libs 2>/dev/null
20033   fi
20034
20035 fi
20036 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20037 echo "${ECHO_T}$libltdl_cv_objdir" >&6
20038
20039 cat >>confdefs.h <<_ACEOF
20040 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20041 _ACEOF
20042
20043
20044
20045 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20046 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
20047 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20048   echo $ECHO_N "(cached) $ECHO_C" >&6
20049 else
20050   if test -n "$lt_cv_sys_global_symbol_pipe"; then
20051     libltdl_cv_preloaded_symbols=yes
20052   else
20053     libltdl_cv_preloaded_symbols=no
20054   fi
20055
20056 fi
20057 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20058 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
20059 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20060
20061 cat >>confdefs.h <<\_ACEOF
20062 #define HAVE_PRELOADED_SYMBOLS 1
20063 _ACEOF
20064
20065 fi
20066
20067 LIBADD_DL=
20068
20069 ac_ext=c
20070 ac_cpp='$CPP $CPPFLAGS'
20071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20074
20075
20076 echo "$as_me:$LINENO: checking for shl_load" >&5
20077 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20078 if test "${ac_cv_func_shl_load+set}" = set; then
20079   echo $ECHO_N "(cached) $ECHO_C" >&6
20080 else
20081   cat >conftest.$ac_ext <<_ACEOF
20082 /* confdefs.h.  */
20083 _ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h.  */
20087 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20089 #define shl_load innocuous_shl_load
20090
20091 /* System header to define __stub macros and hopefully few prototypes,
20092     which can conflict with char shl_load (); below.
20093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20094     <limits.h> exists even on freestanding compilers.  */
20095
20096 #ifdef __STDC__
20097 # include <limits.h>
20098 #else
20099 # include <assert.h>
20100 #endif
20101
20102 #undef shl_load
20103
20104 /* Override any gcc2 internal prototype to avoid an error.  */
20105 #ifdef __cplusplus
20106 extern "C"
20107 {
20108 #endif
20109 /* We use char because int might match the return type of a gcc2
20110    builtin and then its argument prototype would still apply.  */
20111 char shl_load ();
20112 /* The GNU C library defines this for functions which it implements
20113     to always fail with ENOSYS.  Some functions are actually named
20114     something starting with __ and the normal name is an alias.  */
20115 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20116 choke me
20117 #else
20118 char (*f) () = shl_load;
20119 #endif
20120 #ifdef __cplusplus
20121 }
20122 #endif
20123
20124 int
20125 main ()
20126 {
20127 return f != shl_load;
20128   ;
20129   return 0;
20130 }
20131 _ACEOF
20132 rm -f conftest.$ac_objext conftest$ac_exeext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20134   (eval $ac_link) 2>conftest.er1
20135   ac_status=$?
20136   grep -v '^ *+' conftest.er1 >conftest.err
20137   rm -f conftest.er1
20138   cat conftest.err >&5
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); } &&
20141          { ac_try='test -z "$ac_c_werror_flag"
20142                          || test ! -s conftest.err'
20143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144   (eval $ac_try) 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); }; } &&
20148          { ac_try='test -s conftest$ac_exeext'
20149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150   (eval $ac_try) 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); }; }; then
20154   ac_cv_func_shl_load=yes
20155 else
20156   echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20158
20159 ac_cv_func_shl_load=no
20160 fi
20161 rm -f conftest.err conftest.$ac_objext \
20162       conftest$ac_exeext conftest.$ac_ext
20163 fi
20164 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20165 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20166 if test $ac_cv_func_shl_load = yes; then
20167
20168 cat >>confdefs.h <<\_ACEOF
20169 #define HAVE_SHL_LOAD 1
20170 _ACEOF
20171
20172 else
20173   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20174 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20175 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20176   echo $ECHO_N "(cached) $ECHO_C" >&6
20177 else
20178   ac_check_lib_save_LIBS=$LIBS
20179 LIBS="-ldld  $LIBS"
20180 cat >conftest.$ac_ext <<_ACEOF
20181 /* confdefs.h.  */
20182 _ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h.  */
20186
20187 /* Override any gcc2 internal prototype to avoid an error.  */
20188 #ifdef __cplusplus
20189 extern "C"
20190 #endif
20191 /* We use char because int might match the return type of a gcc2
20192    builtin and then its argument prototype would still apply.  */
20193 char shl_load ();
20194 int
20195 main ()
20196 {
20197 shl_load ();
20198   ;
20199   return 0;
20200 }
20201 _ACEOF
20202 rm -f conftest.$ac_objext conftest$ac_exeext
20203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20204   (eval $ac_link) 2>conftest.er1
20205   ac_status=$?
20206   grep -v '^ *+' conftest.er1 >conftest.err
20207   rm -f conftest.er1
20208   cat conftest.err >&5
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); } &&
20211          { ac_try='test -z "$ac_c_werror_flag"
20212                          || test ! -s conftest.err'
20213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20214   (eval $ac_try) 2>&5
20215   ac_status=$?
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); }; } &&
20218          { ac_try='test -s conftest$ac_exeext'
20219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220   (eval $ac_try) 2>&5
20221   ac_status=$?
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); }; }; then
20224   ac_cv_lib_dld_shl_load=yes
20225 else
20226   echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20228
20229 ac_cv_lib_dld_shl_load=no
20230 fi
20231 rm -f conftest.err conftest.$ac_objext \
20232       conftest$ac_exeext conftest.$ac_ext
20233 LIBS=$ac_check_lib_save_LIBS
20234 fi
20235 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20236 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20237 if test $ac_cv_lib_dld_shl_load = yes; then
20238
20239 cat >>confdefs.h <<\_ACEOF
20240 #define HAVE_SHL_LOAD 1
20241 _ACEOF
20242
20243         LIBADD_DL="$LIBADD_DL -ldld"
20244 else
20245   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20246 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20247 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20248   echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250   ac_check_lib_save_LIBS=$LIBS
20251 LIBS="-ldl  $LIBS"
20252 cat >conftest.$ac_ext <<_ACEOF
20253 /* confdefs.h.  */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h.  */
20258
20259 /* Override any gcc2 internal prototype to avoid an error.  */
20260 #ifdef __cplusplus
20261 extern "C"
20262 #endif
20263 /* We use char because int might match the return type of a gcc2
20264    builtin and then its argument prototype would still apply.  */
20265 char dlopen ();
20266 int
20267 main ()
20268 {
20269 dlopen ();
20270   ;
20271   return 0;
20272 }
20273 _ACEOF
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20276   (eval $ac_link) 2>conftest.er1
20277   ac_status=$?
20278   grep -v '^ *+' conftest.er1 >conftest.err
20279   rm -f conftest.er1
20280   cat conftest.err >&5
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); } &&
20283          { ac_try='test -z "$ac_c_werror_flag"
20284                          || test ! -s conftest.err'
20285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20286   (eval $ac_try) 2>&5
20287   ac_status=$?
20288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); }; } &&
20290          { ac_try='test -s conftest$ac_exeext'
20291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292   (eval $ac_try) 2>&5
20293   ac_status=$?
20294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); }; }; then
20296   ac_cv_lib_dl_dlopen=yes
20297 else
20298   echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301 ac_cv_lib_dl_dlopen=no
20302 fi
20303 rm -f conftest.err conftest.$ac_objext \
20304       conftest$ac_exeext conftest.$ac_ext
20305 LIBS=$ac_check_lib_save_LIBS
20306 fi
20307 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20308 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20309 if test $ac_cv_lib_dl_dlopen = yes; then
20310
20311 cat >>confdefs.h <<\_ACEOF
20312 #define HAVE_LIBDL 1
20313 _ACEOF
20314
20315                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20316 else
20317   cat >conftest.$ac_ext <<_ACEOF
20318 /* confdefs.h.  */
20319 _ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h.  */
20323 #if HAVE_DLFCN_H
20324 #  include <dlfcn.h>
20325 #endif
20326
20327 int
20328 main ()
20329 {
20330 dlopen(0, 0);
20331   ;
20332   return 0;
20333 }
20334 _ACEOF
20335 rm -f conftest.$ac_objext conftest$ac_exeext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20337   (eval $ac_link) 2>conftest.er1
20338   ac_status=$?
20339   grep -v '^ *+' conftest.er1 >conftest.err
20340   rm -f conftest.er1
20341   cat conftest.err >&5
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); } &&
20344          { ac_try='test -z "$ac_c_werror_flag"
20345                          || test ! -s conftest.err'
20346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347   (eval $ac_try) 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); }; } &&
20351          { ac_try='test -s conftest$ac_exeext'
20352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353   (eval $ac_try) 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); }; }; then
20357
20358 cat >>confdefs.h <<\_ACEOF
20359 #define HAVE_LIBDL 1
20360 _ACEOF
20361  libltdl_cv_func_dlopen="yes"
20362 else
20363   echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20365
20366 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20367 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20368 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20369   echo $ECHO_N "(cached) $ECHO_C" >&6
20370 else
20371   ac_check_lib_save_LIBS=$LIBS
20372 LIBS="-lsvld  $LIBS"
20373 cat >conftest.$ac_ext <<_ACEOF
20374 /* confdefs.h.  */
20375 _ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h.  */
20379
20380 /* Override any gcc2 internal prototype to avoid an error.  */
20381 #ifdef __cplusplus
20382 extern "C"
20383 #endif
20384 /* We use char because int might match the return type of a gcc2
20385    builtin and then its argument prototype would still apply.  */
20386 char dlopen ();
20387 int
20388 main ()
20389 {
20390 dlopen ();
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20397   (eval $ac_link) 2>conftest.er1
20398   ac_status=$?
20399   grep -v '^ *+' conftest.er1 >conftest.err
20400   rm -f conftest.er1
20401   cat conftest.err >&5
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); } &&
20404          { ac_try='test -z "$ac_c_werror_flag"
20405                          || test ! -s conftest.err'
20406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407   (eval $ac_try) 2>&5
20408   ac_status=$?
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); }; } &&
20411          { ac_try='test -s conftest$ac_exeext'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; }; then
20417   ac_cv_lib_svld_dlopen=yes
20418 else
20419   echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20421
20422 ac_cv_lib_svld_dlopen=no
20423 fi
20424 rm -f conftest.err conftest.$ac_objext \
20425       conftest$ac_exeext conftest.$ac_ext
20426 LIBS=$ac_check_lib_save_LIBS
20427 fi
20428 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20429 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20430 if test $ac_cv_lib_svld_dlopen = yes; then
20431
20432 cat >>confdefs.h <<\_ACEOF
20433 #define HAVE_LIBDL 1
20434 _ACEOF
20435
20436                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20437 else
20438   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20439 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20440 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20441   echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443   ac_check_lib_save_LIBS=$LIBS
20444 LIBS="-ldld  $LIBS"
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h.  */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h.  */
20451
20452 /* Override any gcc2 internal prototype to avoid an error.  */
20453 #ifdef __cplusplus
20454 extern "C"
20455 #endif
20456 /* We use char because int might match the return type of a gcc2
20457    builtin and then its argument prototype would still apply.  */
20458 char dld_link ();
20459 int
20460 main ()
20461 {
20462 dld_link ();
20463   ;
20464   return 0;
20465 }
20466 _ACEOF
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20469   (eval $ac_link) 2>conftest.er1
20470   ac_status=$?
20471   grep -v '^ *+' conftest.er1 >conftest.err
20472   rm -f conftest.er1
20473   cat conftest.err >&5
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); } &&
20476          { ac_try='test -z "$ac_c_werror_flag"
20477                          || test ! -s conftest.err'
20478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479   (eval $ac_try) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; } &&
20483          { ac_try='test -s conftest$ac_exeext'
20484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485   (eval $ac_try) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; }; then
20489   ac_cv_lib_dld_dld_link=yes
20490 else
20491   echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494 ac_cv_lib_dld_dld_link=no
20495 fi
20496 rm -f conftest.err conftest.$ac_objext \
20497       conftest$ac_exeext conftest.$ac_ext
20498 LIBS=$ac_check_lib_save_LIBS
20499 fi
20500 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20501 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20502 if test $ac_cv_lib_dld_dld_link = yes; then
20503
20504 cat >>confdefs.h <<\_ACEOF
20505 #define HAVE_DLD 1
20506 _ACEOF
20507
20508                 LIBADD_DL="$LIBADD_DL -ldld"
20509 else
20510   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20511 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
20512 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20513   echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515   cat >conftest.$ac_ext <<_ACEOF
20516 /* confdefs.h.  */
20517 _ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h.  */
20521 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20523 #define _dyld_func_lookup innocuous__dyld_func_lookup
20524
20525 /* System header to define __stub macros and hopefully few prototypes,
20526     which can conflict with char _dyld_func_lookup (); below.
20527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20528     <limits.h> exists even on freestanding compilers.  */
20529
20530 #ifdef __STDC__
20531 # include <limits.h>
20532 #else
20533 # include <assert.h>
20534 #endif
20535
20536 #undef _dyld_func_lookup
20537
20538 /* Override any gcc2 internal prototype to avoid an error.  */
20539 #ifdef __cplusplus
20540 extern "C"
20541 {
20542 #endif
20543 /* We use char because int might match the return type of a gcc2
20544    builtin and then its argument prototype would still apply.  */
20545 char _dyld_func_lookup ();
20546 /* The GNU C library defines this for functions which it implements
20547     to always fail with ENOSYS.  Some functions are actually named
20548     something starting with __ and the normal name is an alias.  */
20549 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
20550 choke me
20551 #else
20552 char (*f) () = _dyld_func_lookup;
20553 #endif
20554 #ifdef __cplusplus
20555 }
20556 #endif
20557
20558 int
20559 main ()
20560 {
20561 return f != _dyld_func_lookup;
20562   ;
20563   return 0;
20564 }
20565 _ACEOF
20566 rm -f conftest.$ac_objext conftest$ac_exeext
20567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20568   (eval $ac_link) 2>conftest.er1
20569   ac_status=$?
20570   grep -v '^ *+' conftest.er1 >conftest.err
20571   rm -f conftest.er1
20572   cat conftest.err >&5
20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574   (exit $ac_status); } &&
20575          { ac_try='test -z "$ac_c_werror_flag"
20576                          || test ! -s conftest.err'
20577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578   (eval $ac_try) 2>&5
20579   ac_status=$?
20580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581   (exit $ac_status); }; } &&
20582          { ac_try='test -s conftest$ac_exeext'
20583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584   (eval $ac_try) 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); }; }; then
20588   ac_cv_func__dyld_func_lookup=yes
20589 else
20590   echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20592
20593 ac_cv_func__dyld_func_lookup=no
20594 fi
20595 rm -f conftest.err conftest.$ac_objext \
20596       conftest$ac_exeext conftest.$ac_ext
20597 fi
20598 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20599 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
20600 if test $ac_cv_func__dyld_func_lookup = yes; then
20601
20602 cat >>confdefs.h <<\_ACEOF
20603 #define HAVE_DYLD 1
20604 _ACEOF
20605
20606 fi
20607
20608
20609 fi
20610
20611
20612 fi
20613
20614
20615 fi
20616 rm -f conftest.err conftest.$ac_objext \
20617       conftest$ac_exeext conftest.$ac_ext
20618
20619 fi
20620
20621
20622 fi
20623
20624
20625 fi
20626
20627
20628 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20629 then
20630   lt_save_LIBS="$LIBS"
20631   LIBS="$LIBS $LIBADD_DL"
20632
20633 for ac_func in dlerror
20634 do
20635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20636 echo "$as_me:$LINENO: checking for $ac_func" >&5
20637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20638 if eval "test \"\${$as_ac_var+set}\" = set"; then
20639   echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20641   cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h.  */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h.  */
20647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20649 #define $ac_func innocuous_$ac_func
20650
20651 /* System header to define __stub macros and hopefully few prototypes,
20652     which can conflict with char $ac_func (); below.
20653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20654     <limits.h> exists even on freestanding compilers.  */
20655
20656 #ifdef __STDC__
20657 # include <limits.h>
20658 #else
20659 # include <assert.h>
20660 #endif
20661
20662 #undef $ac_func
20663
20664 /* Override any gcc2 internal prototype to avoid an error.  */
20665 #ifdef __cplusplus
20666 extern "C"
20667 {
20668 #endif
20669 /* We use char because int might match the return type of a gcc2
20670    builtin and then its argument prototype would still apply.  */
20671 char $ac_func ();
20672 /* The GNU C library defines this for functions which it implements
20673     to always fail with ENOSYS.  Some functions are actually named
20674     something starting with __ and the normal name is an alias.  */
20675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20676 choke me
20677 #else
20678 char (*f) () = $ac_func;
20679 #endif
20680 #ifdef __cplusplus
20681 }
20682 #endif
20683
20684 int
20685 main ()
20686 {
20687 return f != $ac_func;
20688   ;
20689   return 0;
20690 }
20691 _ACEOF
20692 rm -f conftest.$ac_objext conftest$ac_exeext
20693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20694   (eval $ac_link) 2>conftest.er1
20695   ac_status=$?
20696   grep -v '^ *+' conftest.er1 >conftest.err
20697   rm -f conftest.er1
20698   cat conftest.err >&5
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); } &&
20701          { ac_try='test -z "$ac_c_werror_flag"
20702                          || test ! -s conftest.err'
20703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704   (eval $ac_try) 2>&5
20705   ac_status=$?
20706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707   (exit $ac_status); }; } &&
20708          { ac_try='test -s conftest$ac_exeext'
20709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710   (eval $ac_try) 2>&5
20711   ac_status=$?
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); }; }; then
20714   eval "$as_ac_var=yes"
20715 else
20716   echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719 eval "$as_ac_var=no"
20720 fi
20721 rm -f conftest.err conftest.$ac_objext \
20722       conftest$ac_exeext conftest.$ac_ext
20723 fi
20724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20726 if test `eval echo '${'$as_ac_var'}'` = yes; then
20727   cat >>confdefs.h <<_ACEOF
20728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20729 _ACEOF
20730
20731 fi
20732 done
20733
20734   LIBS="$lt_save_LIBS"
20735 fi
20736 ac_ext=c
20737 ac_cpp='$CPP $CPPFLAGS'
20738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20741
20742
20743
20744 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20745 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
20746 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20747   echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20749   ac_cv_sys_symbol_underscore=no
20750   cat > conftest.$ac_ext <<EOF
20751 void nm_test_func(){}
20752 int main(){nm_test_func;return 0;}
20753 EOF
20754   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20755   (eval $ac_compile) 2>&5
20756   ac_status=$?
20757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); }; then
20759     # Now try to grab the symbols.
20760     ac_nlist=conftest.nm
20761     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20762   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20763   ac_status=$?
20764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765   (exit $ac_status); } && test -s "$ac_nlist"; then
20766       # See whether the symbols have a leading underscore.
20767       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20768         ac_cv_sys_symbol_underscore=yes
20769       else
20770         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20771           :
20772         else
20773           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20774         fi
20775       fi
20776     else
20777       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20778     fi
20779   else
20780     echo "configure: failed program was:" >&5
20781     cat conftest.c >&5
20782   fi
20783   rm -rf conftest*
20784
20785 fi
20786 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20787 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
20788
20789
20790 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20791   if test x"$libltdl_cv_func_dlopen" = xyes ||
20792      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20793         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20794 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
20795 if test "${libltdl_cv_need_uscore+set}" = set; then
20796   echo $ECHO_N "(cached) $ECHO_C" >&6
20797 else
20798   libltdl_cv_need_uscore=unknown
20799           save_LIBS="$LIBS"
20800           LIBS="$LIBS $LIBADD_DL"
20801           if test "$cross_compiling" = yes; then :
20802   libltdl_cv_need_uscore=cross
20803 else
20804   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20805   lt_status=$lt_dlunknown
20806   cat > conftest.$ac_ext <<EOF
20807 #line 20807 "configure"
20808 #include "confdefs.h"
20809
20810 #if HAVE_DLFCN_H
20811 #include <dlfcn.h>
20812 #endif
20813
20814 #include <stdio.h>
20815
20816 #ifdef RTLD_GLOBAL
20817 #  define LT_DLGLOBAL           RTLD_GLOBAL
20818 #else
20819 #  ifdef DL_GLOBAL
20820 #    define LT_DLGLOBAL         DL_GLOBAL
20821 #  else
20822 #    define LT_DLGLOBAL         0
20823 #  endif
20824 #endif
20825
20826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20827    find out it does not work in some platform. */
20828 #ifndef LT_DLLAZY_OR_NOW
20829 #  ifdef RTLD_LAZY
20830 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20831 #  else
20832 #    ifdef DL_LAZY
20833 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20834 #    else
20835 #      ifdef RTLD_NOW
20836 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20837 #      else
20838 #        ifdef DL_NOW
20839 #          define LT_DLLAZY_OR_NOW      DL_NOW
20840 #        else
20841 #          define LT_DLLAZY_OR_NOW      0
20842 #        endif
20843 #      endif
20844 #    endif
20845 #  endif
20846 #endif
20847
20848 #ifdef __cplusplus
20849 extern "C" void exit (int);
20850 #endif
20851
20852 void fnord() { int i=42;}
20853 int main ()
20854 {
20855   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20856   int status = $lt_dlunknown;
20857
20858   if (self)
20859     {
20860       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20861       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20862       /* dlclose (self); */
20863     }
20864
20865     exit (status);
20866 }
20867 EOF
20868   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20869   (eval $ac_link) 2>&5
20870   ac_status=$?
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20873     (./conftest; exit; ) 2>/dev/null
20874     lt_status=$?
20875     case x$lt_status in
20876       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20877       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20878       x$lt_unknown|x*)  ;;
20879     esac
20880   else :
20881     # compilation failed
20882
20883   fi
20884 fi
20885 rm -fr conftest*
20886
20887           LIBS="$save_LIBS"
20888
20889 fi
20890 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20891 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
20892   fi
20893 fi
20894
20895 if test x"$libltdl_cv_need_uscore" = xyes; then
20896
20897 cat >>confdefs.h <<\_ACEOF
20898 #define NEED_USCORE 1
20899 _ACEOF
20900
20901 fi
20902
20903
20904 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20905 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
20906 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20907   echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909   # PORTME does your system automatically load deplibs for dlopen?
20910   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20911   # For now, we just catch OSes we know something about -- in the
20912   # future, we'll try test this programmatically.
20913   libltdl_cv_sys_dlopen_deplibs=unknown
20914   case "$host_os" in
20915   aix3*|aix4.1.*|aix4.2.*)
20916     # Unknown whether this is true for these versions of AIX, but
20917     # we want this `case' here to explicitly catch those versions.
20918     libltdl_cv_sys_dlopen_deplibs=unknown
20919     ;;
20920   aix[45]*)
20921     libltdl_cv_sys_dlopen_deplibs=yes
20922     ;;
20923   darwin*)
20924     # Assuming the user has installed a libdl from somewhere, this is true
20925     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20926     libltdl_cv_sys_dlopen_deplibs=yes
20927     ;;
20928   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
20929     # GNU and its variants, using gnu ld.so (Glibc)
20930     libltdl_cv_sys_dlopen_deplibs=yes
20931     ;;
20932   hpux10*|hpux11*)
20933     libltdl_cv_sys_dlopen_deplibs=yes
20934     ;;
20935   irix[12345]*|irix6.[01]*)
20936     # Catch all versions of IRIX before 6.2, and indicate that we don't
20937     # know how it worked for any of those versions.
20938     libltdl_cv_sys_dlopen_deplibs=unknown
20939     ;;
20940   irix*)
20941     # The case above catches anything before 6.2, and it's known that
20942     # at 6.2 and later dlopen does load deplibs.
20943     libltdl_cv_sys_dlopen_deplibs=yes
20944     ;;
20945   netbsd*)
20946     libltdl_cv_sys_dlopen_deplibs=yes
20947     ;;
20948   openbsd*)
20949     libltdl_cv_sys_dlopen_deplibs=yes
20950     ;;
20951   osf[1234]*)
20952     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20953     # it did *not* use an RPATH in a shared library to find objects the
20954     # library depends on, so we explictly say `no'.
20955     libltdl_cv_sys_dlopen_deplibs=no
20956     ;;
20957   osf5.0|osf5.0a|osf5.1)
20958     # dlopen *does* load deplibs and with the right loader patch applied
20959     # it even uses RPATH in a shared library to search for shared objects
20960     # that the library depends on, but there's no easy way to know if that
20961     # patch is installed.  Since this is the case, all we can really
20962     # say is unknown -- it depends on the patch being installed.  If
20963     # it is, this changes to `yes'.  Without it, it would be `no'.
20964     libltdl_cv_sys_dlopen_deplibs=unknown
20965     ;;
20966   osf*)
20967     # the two cases above should catch all versions of osf <= 5.1.  Read
20968     # the comments above for what we know about them.
20969     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20970     # is used to find them so we can finally say `yes'.
20971     libltdl_cv_sys_dlopen_deplibs=yes
20972     ;;
20973   solaris*)
20974     libltdl_cv_sys_dlopen_deplibs=yes
20975     ;;
20976   esac
20977
20978 fi
20979 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20980 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
20981 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20982
20983 cat >>confdefs.h <<\_ACEOF
20984 #define LTDL_DLOPEN_DEPLIBS 1
20985 _ACEOF
20986
20987 fi
20988
20989
20990 for ac_header in argz.h
20991 do
20992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20994   echo "$as_me:$LINENO: checking for $ac_header" >&5
20995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20997   echo $ECHO_N "(cached) $ECHO_C" >&6
20998 fi
20999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21001 else
21002   # Is the header compilable?
21003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21005 cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h.  */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h.  */
21011 $ac_includes_default
21012 #include <$ac_header>
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21016   (eval $ac_compile) 2>conftest.er1
21017   ac_status=$?
21018   grep -v '^ *+' conftest.er1 >conftest.err
21019   rm -f conftest.er1
21020   cat conftest.err >&5
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } &&
21023          { ac_try='test -z "$ac_c_werror_flag"
21024                          || test ! -s conftest.err'
21025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026   (eval $ac_try) 2>&5
21027   ac_status=$?
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); }; } &&
21030          { ac_try='test -s conftest.$ac_objext'
21031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032   (eval $ac_try) 2>&5
21033   ac_status=$?
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); }; }; then
21036   ac_header_compiler=yes
21037 else
21038   echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21040
21041 ac_header_compiler=no
21042 fi
21043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21045 echo "${ECHO_T}$ac_header_compiler" >&6
21046
21047 # Is the header present?
21048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21050 cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h.  */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h.  */
21056 #include <$ac_header>
21057 _ACEOF
21058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21060   ac_status=$?
21061   grep -v '^ *+' conftest.er1 >conftest.err
21062   rm -f conftest.er1
21063   cat conftest.err >&5
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); } >/dev/null; then
21066   if test -s conftest.err; then
21067     ac_cpp_err=$ac_c_preproc_warn_flag
21068     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21069   else
21070     ac_cpp_err=
21071   fi
21072 else
21073   ac_cpp_err=yes
21074 fi
21075 if test -z "$ac_cpp_err"; then
21076   ac_header_preproc=yes
21077 else
21078   echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21080
21081   ac_header_preproc=no
21082 fi
21083 rm -f conftest.err conftest.$ac_ext
21084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21085 echo "${ECHO_T}$ac_header_preproc" >&6
21086
21087 # So?  What about this header?
21088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21089   yes:no: )
21090     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21094     ac_header_preproc=yes
21095     ;;
21096   no:yes:* )
21097     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21099     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21100 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21101     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21103     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21104 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21107     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21109     (
21110       cat <<\_ASBOX
21111 ## ---------------------------------- ##
21112 ## Report this to bug-libtool@gnu.org ##
21113 ## ---------------------------------- ##
21114 _ASBOX
21115     ) |
21116       sed "s/^/$as_me: WARNING:     /" >&2
21117     ;;
21118 esac
21119 echo "$as_me:$LINENO: checking for $ac_header" >&5
21120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21122   echo $ECHO_N "(cached) $ECHO_C" >&6
21123 else
21124   eval "$as_ac_Header=\$ac_header_preproc"
21125 fi
21126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21128
21129 fi
21130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21131   cat >>confdefs.h <<_ACEOF
21132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21133 _ACEOF
21134
21135 fi
21136
21137 done
21138
21139
21140 echo "$as_me:$LINENO: checking for error_t" >&5
21141 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
21142 if test "${ac_cv_type_error_t+set}" = set; then
21143   echo $ECHO_N "(cached) $ECHO_C" >&6
21144 else
21145   cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h.  */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h.  */
21151 #if HAVE_ARGZ_H
21152 #  include <argz.h>
21153 #endif
21154
21155 int
21156 main ()
21157 {
21158 if ((error_t *) 0)
21159   return 0;
21160 if (sizeof (error_t))
21161   return 0;
21162   ;
21163   return 0;
21164 }
21165 _ACEOF
21166 rm -f conftest.$ac_objext
21167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21168   (eval $ac_compile) 2>conftest.er1
21169   ac_status=$?
21170   grep -v '^ *+' conftest.er1 >conftest.err
21171   rm -f conftest.er1
21172   cat conftest.err >&5
21173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174   (exit $ac_status); } &&
21175          { ac_try='test -z "$ac_c_werror_flag"
21176                          || test ! -s conftest.err'
21177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178   (eval $ac_try) 2>&5
21179   ac_status=$?
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); }; } &&
21182          { ac_try='test -s conftest.$ac_objext'
21183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184   (eval $ac_try) 2>&5
21185   ac_status=$?
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); }; }; then
21188   ac_cv_type_error_t=yes
21189 else
21190   echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21192
21193 ac_cv_type_error_t=no
21194 fi
21195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21196 fi
21197 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21198 echo "${ECHO_T}$ac_cv_type_error_t" >&6
21199 if test $ac_cv_type_error_t = yes; then
21200
21201 cat >>confdefs.h <<_ACEOF
21202 #define HAVE_ERROR_T 1
21203 _ACEOF
21204
21205
21206 else
21207
21208 cat >>confdefs.h <<\_ACEOF
21209 #define error_t int
21210 _ACEOF
21211
21212 fi
21213
21214
21215
21216
21217
21218
21219
21220 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21221 do
21222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21223 echo "$as_me:$LINENO: checking for $ac_func" >&5
21224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21225 if eval "test \"\${$as_ac_var+set}\" = set"; then
21226   echo $ECHO_N "(cached) $ECHO_C" >&6
21227 else
21228   cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h.  */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h.  */
21234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21236 #define $ac_func innocuous_$ac_func
21237
21238 /* System header to define __stub macros and hopefully few prototypes,
21239     which can conflict with char $ac_func (); below.
21240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21241     <limits.h> exists even on freestanding compilers.  */
21242
21243 #ifdef __STDC__
21244 # include <limits.h>
21245 #else
21246 # include <assert.h>
21247 #endif
21248
21249 #undef $ac_func
21250
21251 /* Override any gcc2 internal prototype to avoid an error.  */
21252 #ifdef __cplusplus
21253 extern "C"
21254 {
21255 #endif
21256 /* We use char because int might match the return type of a gcc2
21257    builtin and then its argument prototype would still apply.  */
21258 char $ac_func ();
21259 /* The GNU C library defines this for functions which it implements
21260     to always fail with ENOSYS.  Some functions are actually named
21261     something starting with __ and the normal name is an alias.  */
21262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21263 choke me
21264 #else
21265 char (*f) () = $ac_func;
21266 #endif
21267 #ifdef __cplusplus
21268 }
21269 #endif
21270
21271 int
21272 main ()
21273 {
21274 return f != $ac_func;
21275   ;
21276   return 0;
21277 }
21278 _ACEOF
21279 rm -f conftest.$ac_objext conftest$ac_exeext
21280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21281   (eval $ac_link) 2>conftest.er1
21282   ac_status=$?
21283   grep -v '^ *+' conftest.er1 >conftest.err
21284   rm -f conftest.er1
21285   cat conftest.err >&5
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); } &&
21288          { ac_try='test -z "$ac_c_werror_flag"
21289                          || test ! -s conftest.err'
21290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291   (eval $ac_try) 2>&5
21292   ac_status=$?
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); }; } &&
21295          { ac_try='test -s conftest$ac_exeext'
21296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297   (eval $ac_try) 2>&5
21298   ac_status=$?
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); }; }; then
21301   eval "$as_ac_var=yes"
21302 else
21303   echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21305
21306 eval "$as_ac_var=no"
21307 fi
21308 rm -f conftest.err conftest.$ac_objext \
21309       conftest$ac_exeext conftest.$ac_ext
21310 fi
21311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21313 if test `eval echo '${'$as_ac_var'}'` = yes; then
21314   cat >>confdefs.h <<_ACEOF
21315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21316 _ACEOF
21317
21318 fi
21319 done
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21349                   stdio.h unistd.h
21350 do
21351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21353   echo "$as_me:$LINENO: checking for $ac_header" >&5
21354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21356   echo $ECHO_N "(cached) $ECHO_C" >&6
21357 fi
21358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21360 else
21361   # Is the header compilable?
21362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21364 cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h.  */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h.  */
21370 $ac_includes_default
21371 #include <$ac_header>
21372 _ACEOF
21373 rm -f conftest.$ac_objext
21374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21375   (eval $ac_compile) 2>conftest.er1
21376   ac_status=$?
21377   grep -v '^ *+' conftest.er1 >conftest.err
21378   rm -f conftest.er1
21379   cat conftest.err >&5
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); } &&
21382          { ac_try='test -z "$ac_c_werror_flag"
21383                          || test ! -s conftest.err'
21384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385   (eval $ac_try) 2>&5
21386   ac_status=$?
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); }; } &&
21389          { ac_try='test -s conftest.$ac_objext'
21390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391   (eval $ac_try) 2>&5
21392   ac_status=$?
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); }; }; then
21395   ac_header_compiler=yes
21396 else
21397   echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21399
21400 ac_header_compiler=no
21401 fi
21402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21404 echo "${ECHO_T}$ac_header_compiler" >&6
21405
21406 # Is the header present?
21407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21409 cat >conftest.$ac_ext <<_ACEOF
21410 /* confdefs.h.  */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h.  */
21415 #include <$ac_header>
21416 _ACEOF
21417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21419   ac_status=$?
21420   grep -v '^ *+' conftest.er1 >conftest.err
21421   rm -f conftest.er1
21422   cat conftest.err >&5
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); } >/dev/null; then
21425   if test -s conftest.err; then
21426     ac_cpp_err=$ac_c_preproc_warn_flag
21427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21428   else
21429     ac_cpp_err=
21430   fi
21431 else
21432   ac_cpp_err=yes
21433 fi
21434 if test -z "$ac_cpp_err"; then
21435   ac_header_preproc=yes
21436 else
21437   echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21439
21440   ac_header_preproc=no
21441 fi
21442 rm -f conftest.err conftest.$ac_ext
21443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21444 echo "${ECHO_T}$ac_header_preproc" >&6
21445
21446 # So?  What about this header?
21447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21448   yes:no: )
21449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21453     ac_header_preproc=yes
21454     ;;
21455   no:yes:* )
21456     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21458     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21459 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21460     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21462     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21463 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21466     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21468     (
21469       cat <<\_ASBOX
21470 ## ---------------------------------- ##
21471 ## Report this to bug-libtool@gnu.org ##
21472 ## ---------------------------------- ##
21473 _ASBOX
21474     ) |
21475       sed "s/^/$as_me: WARNING:     /" >&2
21476     ;;
21477 esac
21478 echo "$as_me:$LINENO: checking for $ac_header" >&5
21479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21481   echo $ECHO_N "(cached) $ECHO_C" >&6
21482 else
21483   eval "$as_ac_Header=\$ac_header_preproc"
21484 fi
21485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21487
21488 fi
21489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21490   cat >>confdefs.h <<_ACEOF
21491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21492 _ACEOF
21493
21494 fi
21495
21496 done
21497
21498
21499
21500
21501
21502 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21503 do
21504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21506   echo "$as_me:$LINENO: checking for $ac_header" >&5
21507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21509   echo $ECHO_N "(cached) $ECHO_C" >&6
21510 fi
21511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21513 else
21514   # Is the header compilable?
21515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21517 cat >conftest.$ac_ext <<_ACEOF
21518 /* confdefs.h.  */
21519 _ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h.  */
21523 $ac_includes_default
21524 #include <$ac_header>
21525 _ACEOF
21526 rm -f conftest.$ac_objext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21528   (eval $ac_compile) 2>conftest.er1
21529   ac_status=$?
21530   grep -v '^ *+' conftest.er1 >conftest.err
21531   rm -f conftest.er1
21532   cat conftest.err >&5
21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534   (exit $ac_status); } &&
21535          { ac_try='test -z "$ac_c_werror_flag"
21536                          || test ! -s conftest.err'
21537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538   (eval $ac_try) 2>&5
21539   ac_status=$?
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); }; } &&
21542          { ac_try='test -s conftest.$ac_objext'
21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544   (eval $ac_try) 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; }; then
21548   ac_header_compiler=yes
21549 else
21550   echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21552
21553 ac_header_compiler=no
21554 fi
21555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21557 echo "${ECHO_T}$ac_header_compiler" >&6
21558
21559 # Is the header present?
21560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21562 cat >conftest.$ac_ext <<_ACEOF
21563 /* confdefs.h.  */
21564 _ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h.  */
21568 #include <$ac_header>
21569 _ACEOF
21570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21572   ac_status=$?
21573   grep -v '^ *+' conftest.er1 >conftest.err
21574   rm -f conftest.er1
21575   cat conftest.err >&5
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); } >/dev/null; then
21578   if test -s conftest.err; then
21579     ac_cpp_err=$ac_c_preproc_warn_flag
21580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21581   else
21582     ac_cpp_err=
21583   fi
21584 else
21585   ac_cpp_err=yes
21586 fi
21587 if test -z "$ac_cpp_err"; then
21588   ac_header_preproc=yes
21589 else
21590   echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21592
21593   ac_header_preproc=no
21594 fi
21595 rm -f conftest.err conftest.$ac_ext
21596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21597 echo "${ECHO_T}$ac_header_preproc" >&6
21598
21599 # So?  What about this header?
21600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21601   yes:no: )
21602     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21606     ac_header_preproc=yes
21607     ;;
21608   no:yes:* )
21609     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21611     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21612 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21613     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21615     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21616 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21619     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21621     (
21622       cat <<\_ASBOX
21623 ## ---------------------------------- ##
21624 ## Report this to bug-libtool@gnu.org ##
21625 ## ---------------------------------- ##
21626 _ASBOX
21627     ) |
21628       sed "s/^/$as_me: WARNING:     /" >&2
21629     ;;
21630 esac
21631 echo "$as_me:$LINENO: checking for $ac_header" >&5
21632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21634   echo $ECHO_N "(cached) $ECHO_C" >&6
21635 else
21636   eval "$as_ac_Header=\$ac_header_preproc"
21637 fi
21638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21640
21641 fi
21642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21643   cat >>confdefs.h <<_ACEOF
21644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21645 _ACEOF
21646
21647 fi
21648
21649 done
21650
21651
21652
21653 for ac_header in string.h strings.h
21654 do
21655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21657   echo "$as_me:$LINENO: checking for $ac_header" >&5
21658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21660   echo $ECHO_N "(cached) $ECHO_C" >&6
21661 fi
21662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21664 else
21665   # Is the header compilable?
21666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21668 cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h.  */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h.  */
21674 $ac_includes_default
21675 #include <$ac_header>
21676 _ACEOF
21677 rm -f conftest.$ac_objext
21678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21679   (eval $ac_compile) 2>conftest.er1
21680   ac_status=$?
21681   grep -v '^ *+' conftest.er1 >conftest.err
21682   rm -f conftest.er1
21683   cat conftest.err >&5
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } &&
21686          { ac_try='test -z "$ac_c_werror_flag"
21687                          || test ! -s conftest.err'
21688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689   (eval $ac_try) 2>&5
21690   ac_status=$?
21691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); }; } &&
21693          { ac_try='test -s conftest.$ac_objext'
21694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695   (eval $ac_try) 2>&5
21696   ac_status=$?
21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); }; }; then
21699   ac_header_compiler=yes
21700 else
21701   echo "$as_me: failed program was:" >&5
21702 sed 's/^/| /' conftest.$ac_ext >&5
21703
21704 ac_header_compiler=no
21705 fi
21706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21708 echo "${ECHO_T}$ac_header_compiler" >&6
21709
21710 # Is the header present?
21711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21713 cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h.  */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h.  */
21719 #include <$ac_header>
21720 _ACEOF
21721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21722   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21723   ac_status=$?
21724   grep -v '^ *+' conftest.er1 >conftest.err
21725   rm -f conftest.er1
21726   cat conftest.err >&5
21727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728   (exit $ac_status); } >/dev/null; then
21729   if test -s conftest.err; then
21730     ac_cpp_err=$ac_c_preproc_warn_flag
21731     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21732   else
21733     ac_cpp_err=
21734   fi
21735 else
21736   ac_cpp_err=yes
21737 fi
21738 if test -z "$ac_cpp_err"; then
21739   ac_header_preproc=yes
21740 else
21741   echo "$as_me: failed program was:" >&5
21742 sed 's/^/| /' conftest.$ac_ext >&5
21743
21744   ac_header_preproc=no
21745 fi
21746 rm -f conftest.err conftest.$ac_ext
21747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21748 echo "${ECHO_T}$ac_header_preproc" >&6
21749
21750 # So?  What about this header?
21751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21752   yes:no: )
21753     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21757     ac_header_preproc=yes
21758     ;;
21759   no:yes:* )
21760     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21762     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21763 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21764     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21766     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21767 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21770     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21772     (
21773       cat <<\_ASBOX
21774 ## ---------------------------------- ##
21775 ## Report this to bug-libtool@gnu.org ##
21776 ## ---------------------------------- ##
21777 _ASBOX
21778     ) |
21779       sed "s/^/$as_me: WARNING:     /" >&2
21780     ;;
21781 esac
21782 echo "$as_me:$LINENO: checking for $ac_header" >&5
21783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21785   echo $ECHO_N "(cached) $ECHO_C" >&6
21786 else
21787   eval "$as_ac_Header=\$ac_header_preproc"
21788 fi
21789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21791
21792 fi
21793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21794   cat >>confdefs.h <<_ACEOF
21795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21796 _ACEOF
21797  break
21798 fi
21799
21800 done
21801
21802
21803
21804
21805 for ac_func in strchr index
21806 do
21807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21808 echo "$as_me:$LINENO: checking for $ac_func" >&5
21809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21810 if eval "test \"\${$as_ac_var+set}\" = set"; then
21811   echo $ECHO_N "(cached) $ECHO_C" >&6
21812 else
21813   cat >conftest.$ac_ext <<_ACEOF
21814 /* confdefs.h.  */
21815 _ACEOF
21816 cat confdefs.h >>conftest.$ac_ext
21817 cat >>conftest.$ac_ext <<_ACEOF
21818 /* end confdefs.h.  */
21819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21821 #define $ac_func innocuous_$ac_func
21822
21823 /* System header to define __stub macros and hopefully few prototypes,
21824     which can conflict with char $ac_func (); below.
21825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21826     <limits.h> exists even on freestanding compilers.  */
21827
21828 #ifdef __STDC__
21829 # include <limits.h>
21830 #else
21831 # include <assert.h>
21832 #endif
21833
21834 #undef $ac_func
21835
21836 /* Override any gcc2 internal prototype to avoid an error.  */
21837 #ifdef __cplusplus
21838 extern "C"
21839 {
21840 #endif
21841 /* We use char because int might match the return type of a gcc2
21842    builtin and then its argument prototype would still apply.  */
21843 char $ac_func ();
21844 /* The GNU C library defines this for functions which it implements
21845     to always fail with ENOSYS.  Some functions are actually named
21846     something starting with __ and the normal name is an alias.  */
21847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21848 choke me
21849 #else
21850 char (*f) () = $ac_func;
21851 #endif
21852 #ifdef __cplusplus
21853 }
21854 #endif
21855
21856 int
21857 main ()
21858 {
21859 return f != $ac_func;
21860   ;
21861   return 0;
21862 }
21863 _ACEOF
21864 rm -f conftest.$ac_objext conftest$ac_exeext
21865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21866   (eval $ac_link) 2>conftest.er1
21867   ac_status=$?
21868   grep -v '^ *+' conftest.er1 >conftest.err
21869   rm -f conftest.er1
21870   cat conftest.err >&5
21871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872   (exit $ac_status); } &&
21873          { ac_try='test -z "$ac_c_werror_flag"
21874                          || test ! -s conftest.err'
21875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876   (eval $ac_try) 2>&5
21877   ac_status=$?
21878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879   (exit $ac_status); }; } &&
21880          { ac_try='test -s conftest$ac_exeext'
21881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882   (eval $ac_try) 2>&5
21883   ac_status=$?
21884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885   (exit $ac_status); }; }; then
21886   eval "$as_ac_var=yes"
21887 else
21888   echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21890
21891 eval "$as_ac_var=no"
21892 fi
21893 rm -f conftest.err conftest.$ac_objext \
21894       conftest$ac_exeext conftest.$ac_ext
21895 fi
21896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21898 if test `eval echo '${'$as_ac_var'}'` = yes; then
21899   cat >>confdefs.h <<_ACEOF
21900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21901 _ACEOF
21902  break
21903 fi
21904 done
21905
21906
21907
21908 for ac_func in strrchr rindex
21909 do
21910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21911 echo "$as_me:$LINENO: checking for $ac_func" >&5
21912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21913 if eval "test \"\${$as_ac_var+set}\" = set"; then
21914   echo $ECHO_N "(cached) $ECHO_C" >&6
21915 else
21916   cat >conftest.$ac_ext <<_ACEOF
21917 /* confdefs.h.  */
21918 _ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h.  */
21922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21924 #define $ac_func innocuous_$ac_func
21925
21926 /* System header to define __stub macros and hopefully few prototypes,
21927     which can conflict with char $ac_func (); below.
21928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21929     <limits.h> exists even on freestanding compilers.  */
21930
21931 #ifdef __STDC__
21932 # include <limits.h>
21933 #else
21934 # include <assert.h>
21935 #endif
21936
21937 #undef $ac_func
21938
21939 /* Override any gcc2 internal prototype to avoid an error.  */
21940 #ifdef __cplusplus
21941 extern "C"
21942 {
21943 #endif
21944 /* We use char because int might match the return type of a gcc2
21945    builtin and then its argument prototype would still apply.  */
21946 char $ac_func ();
21947 /* The GNU C library defines this for functions which it implements
21948     to always fail with ENOSYS.  Some functions are actually named
21949     something starting with __ and the normal name is an alias.  */
21950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21951 choke me
21952 #else
21953 char (*f) () = $ac_func;
21954 #endif
21955 #ifdef __cplusplus
21956 }
21957 #endif
21958
21959 int
21960 main ()
21961 {
21962 return f != $ac_func;
21963   ;
21964   return 0;
21965 }
21966 _ACEOF
21967 rm -f conftest.$ac_objext conftest$ac_exeext
21968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21969   (eval $ac_link) 2>conftest.er1
21970   ac_status=$?
21971   grep -v '^ *+' conftest.er1 >conftest.err
21972   rm -f conftest.er1
21973   cat conftest.err >&5
21974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975   (exit $ac_status); } &&
21976          { ac_try='test -z "$ac_c_werror_flag"
21977                          || test ! -s conftest.err'
21978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979   (eval $ac_try) 2>&5
21980   ac_status=$?
21981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982   (exit $ac_status); }; } &&
21983          { ac_try='test -s conftest$ac_exeext'
21984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985   (eval $ac_try) 2>&5
21986   ac_status=$?
21987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988   (exit $ac_status); }; }; then
21989   eval "$as_ac_var=yes"
21990 else
21991   echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21993
21994 eval "$as_ac_var=no"
21995 fi
21996 rm -f conftest.err conftest.$ac_objext \
21997       conftest$ac_exeext conftest.$ac_ext
21998 fi
21999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22001 if test `eval echo '${'$as_ac_var'}'` = yes; then
22002   cat >>confdefs.h <<_ACEOF
22003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22004 _ACEOF
22005  break
22006 fi
22007 done
22008
22009
22010
22011 for ac_func in memcpy bcopy
22012 do
22013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22014 echo "$as_me:$LINENO: checking for $ac_func" >&5
22015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22016 if eval "test \"\${$as_ac_var+set}\" = set"; then
22017   echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019   cat >conftest.$ac_ext <<_ACEOF
22020 /* confdefs.h.  */
22021 _ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h.  */
22025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22026    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22027 #define $ac_func innocuous_$ac_func
22028
22029 /* System header to define __stub macros and hopefully few prototypes,
22030     which can conflict with char $ac_func (); below.
22031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22032     <limits.h> exists even on freestanding compilers.  */
22033
22034 #ifdef __STDC__
22035 # include <limits.h>
22036 #else
22037 # include <assert.h>
22038 #endif
22039
22040 #undef $ac_func
22041
22042 /* Override any gcc2 internal prototype to avoid an error.  */
22043 #ifdef __cplusplus
22044 extern "C"
22045 {
22046 #endif
22047 /* We use char because int might match the return type of a gcc2
22048    builtin and then its argument prototype would still apply.  */
22049 char $ac_func ();
22050 /* The GNU C library defines this for functions which it implements
22051     to always fail with ENOSYS.  Some functions are actually named
22052     something starting with __ and the normal name is an alias.  */
22053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22054 choke me
22055 #else
22056 char (*f) () = $ac_func;
22057 #endif
22058 #ifdef __cplusplus
22059 }
22060 #endif
22061
22062 int
22063 main ()
22064 {
22065 return f != $ac_func;
22066   ;
22067   return 0;
22068 }
22069 _ACEOF
22070 rm -f conftest.$ac_objext conftest$ac_exeext
22071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22072   (eval $ac_link) 2>conftest.er1
22073   ac_status=$?
22074   grep -v '^ *+' conftest.er1 >conftest.err
22075   rm -f conftest.er1
22076   cat conftest.err >&5
22077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078   (exit $ac_status); } &&
22079          { ac_try='test -z "$ac_c_werror_flag"
22080                          || test ! -s conftest.err'
22081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082   (eval $ac_try) 2>&5
22083   ac_status=$?
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); }; } &&
22086          { ac_try='test -s conftest$ac_exeext'
22087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088   (eval $ac_try) 2>&5
22089   ac_status=$?
22090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); }; }; then
22092   eval "$as_ac_var=yes"
22093 else
22094   echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22096
22097 eval "$as_ac_var=no"
22098 fi
22099 rm -f conftest.err conftest.$ac_objext \
22100       conftest$ac_exeext conftest.$ac_ext
22101 fi
22102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22104 if test `eval echo '${'$as_ac_var'}'` = yes; then
22105   cat >>confdefs.h <<_ACEOF
22106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22107 _ACEOF
22108  break
22109 fi
22110 done
22111
22112
22113
22114 for ac_func in memmove strcmp
22115 do
22116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22117 echo "$as_me:$LINENO: checking for $ac_func" >&5
22118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22119 if eval "test \"\${$as_ac_var+set}\" = set"; then
22120   echo $ECHO_N "(cached) $ECHO_C" >&6
22121 else
22122   cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h.  */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h.  */
22128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22130 #define $ac_func innocuous_$ac_func
22131
22132 /* System header to define __stub macros and hopefully few prototypes,
22133     which can conflict with char $ac_func (); below.
22134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22135     <limits.h> exists even on freestanding compilers.  */
22136
22137 #ifdef __STDC__
22138 # include <limits.h>
22139 #else
22140 # include <assert.h>
22141 #endif
22142
22143 #undef $ac_func
22144
22145 /* Override any gcc2 internal prototype to avoid an error.  */
22146 #ifdef __cplusplus
22147 extern "C"
22148 {
22149 #endif
22150 /* We use char because int might match the return type of a gcc2
22151    builtin and then its argument prototype would still apply.  */
22152 char $ac_func ();
22153 /* The GNU C library defines this for functions which it implements
22154     to always fail with ENOSYS.  Some functions are actually named
22155     something starting with __ and the normal name is an alias.  */
22156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22157 choke me
22158 #else
22159 char (*f) () = $ac_func;
22160 #endif
22161 #ifdef __cplusplus
22162 }
22163 #endif
22164
22165 int
22166 main ()
22167 {
22168 return f != $ac_func;
22169   ;
22170   return 0;
22171 }
22172 _ACEOF
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22175   (eval $ac_link) 2>conftest.er1
22176   ac_status=$?
22177   grep -v '^ *+' conftest.er1 >conftest.err
22178   rm -f conftest.er1
22179   cat conftest.err >&5
22180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181   (exit $ac_status); } &&
22182          { ac_try='test -z "$ac_c_werror_flag"
22183                          || test ! -s conftest.err'
22184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22185   (eval $ac_try) 2>&5
22186   ac_status=$?
22187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188   (exit $ac_status); }; } &&
22189          { ac_try='test -s conftest$ac_exeext'
22190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22191   (eval $ac_try) 2>&5
22192   ac_status=$?
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); }; }; then
22195   eval "$as_ac_var=yes"
22196 else
22197   echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22199
22200 eval "$as_ac_var=no"
22201 fi
22202 rm -f conftest.err conftest.$ac_objext \
22203       conftest$ac_exeext conftest.$ac_ext
22204 fi
22205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22207 if test `eval echo '${'$as_ac_var'}'` = yes; then
22208   cat >>confdefs.h <<_ACEOF
22209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22210 _ACEOF
22211
22212 fi
22213 done
22214
22215
22216
22217
22218 for ac_func in closedir opendir readdir
22219 do
22220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22221 echo "$as_me:$LINENO: checking for $ac_func" >&5
22222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22223 if eval "test \"\${$as_ac_var+set}\" = set"; then
22224   echo $ECHO_N "(cached) $ECHO_C" >&6
22225 else
22226   cat >conftest.$ac_ext <<_ACEOF
22227 /* confdefs.h.  */
22228 _ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h.  */
22232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22234 #define $ac_func innocuous_$ac_func
22235
22236 /* System header to define __stub macros and hopefully few prototypes,
22237     which can conflict with char $ac_func (); below.
22238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22239     <limits.h> exists even on freestanding compilers.  */
22240
22241 #ifdef __STDC__
22242 # include <limits.h>
22243 #else
22244 # include <assert.h>
22245 #endif
22246
22247 #undef $ac_func
22248
22249 /* Override any gcc2 internal prototype to avoid an error.  */
22250 #ifdef __cplusplus
22251 extern "C"
22252 {
22253 #endif
22254 /* We use char because int might match the return type of a gcc2
22255    builtin and then its argument prototype would still apply.  */
22256 char $ac_func ();
22257 /* The GNU C library defines this for functions which it implements
22258     to always fail with ENOSYS.  Some functions are actually named
22259     something starting with __ and the normal name is an alias.  */
22260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22261 choke me
22262 #else
22263 char (*f) () = $ac_func;
22264 #endif
22265 #ifdef __cplusplus
22266 }
22267 #endif
22268
22269 int
22270 main ()
22271 {
22272 return f != $ac_func;
22273   ;
22274   return 0;
22275 }
22276 _ACEOF
22277 rm -f conftest.$ac_objext conftest$ac_exeext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22279   (eval $ac_link) 2>conftest.er1
22280   ac_status=$?
22281   grep -v '^ *+' conftest.er1 >conftest.err
22282   rm -f conftest.er1
22283   cat conftest.err >&5
22284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285   (exit $ac_status); } &&
22286          { ac_try='test -z "$ac_c_werror_flag"
22287                          || test ! -s conftest.err'
22288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289   (eval $ac_try) 2>&5
22290   ac_status=$?
22291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); }; } &&
22293          { ac_try='test -s conftest$ac_exeext'
22294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295   (eval $ac_try) 2>&5
22296   ac_status=$?
22297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298   (exit $ac_status); }; }; then
22299   eval "$as_ac_var=yes"
22300 else
22301   echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22303
22304 eval "$as_ac_var=no"
22305 fi
22306 rm -f conftest.err conftest.$ac_objext \
22307       conftest$ac_exeext conftest.$ac_ext
22308 fi
22309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22311 if test `eval echo '${'$as_ac_var'}'` = yes; then
22312   cat >>confdefs.h <<_ACEOF
22313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22314 _ACEOF
22315
22316 fi
22317 done
22318
22319
22320
22321
22322 ## -------- ##
22323 ## Outputs. ##
22324 ## -------- ##
22325           ac_config_files="$ac_config_files Makefile"
22326
22327 cat >confcache <<\_ACEOF
22328 # This file is a shell script that caches the results of configure
22329 # tests run on this system so they can be shared between configure
22330 # scripts and configure runs, see configure's option --config-cache.
22331 # It is not useful on other systems.  If it contains results you don't
22332 # want to keep, you may remove or edit it.
22333 #
22334 # config.status only pays attention to the cache file if you give it
22335 # the --recheck option to rerun configure.
22336 #
22337 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22338 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22339 # following values.
22340
22341 _ACEOF
22342
22343 # The following way of writing the cache mishandles newlines in values,
22344 # but we know of no workaround that is simple, portable, and efficient.
22345 # So, don't put newlines in cache variables' values.
22346 # Ultrix sh set writes to stderr and can't be redirected directly,
22347 # and sets the high bit in the cache file unless we assign to the vars.
22348 {
22349   (set) 2>&1 |
22350     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22351     *ac_space=\ *)
22352       # `set' does not quote correctly, so add quotes (double-quote
22353       # substitution turns \\\\ into \\, and sed turns \\ into \).
22354       sed -n \
22355         "s/'/'\\\\''/g;
22356           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22357       ;;
22358     *)
22359       # `set' quotes correctly as required by POSIX, so do not add quotes.
22360       sed -n \
22361         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22362       ;;
22363     esac;
22364 } |
22365   sed '
22366      t clear
22367      : clear
22368      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22369      t end
22370      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22371      : end' >>confcache
22372 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22373   if test -w $cache_file; then
22374     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22375     cat confcache >$cache_file
22376   else
22377     echo "not updating unwritable cache $cache_file"
22378   fi
22379 fi
22380 rm -f confcache
22381
22382 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22383 # Let make expand exec_prefix.
22384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22385
22386 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22387 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22388 # trailing colons and then remove the whole line if VPATH becomes empty
22389 # (actually we leave an empty line to preserve line numbers).
22390 if test "x$srcdir" = x.; then
22391   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22392 s/:*\$(srcdir):*/:/;
22393 s/:*\${srcdir}:*/:/;
22394 s/:*@srcdir@:*/:/;
22395 s/^\([^=]*=[     ]*\):*/\1/;
22396 s/:*$//;
22397 s/^[^=]*=[       ]*$//;
22398 }'
22399 fi
22400
22401 DEFS=-DHAVE_CONFIG_H
22402
22403 ac_libobjs=
22404 ac_ltlibobjs=
22405 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22406   # 1. Remove the extension, and $U if already installed.
22407   ac_i=`echo "$ac_i" |
22408          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22409   # 2. Add them.
22410   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22411   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22412 done
22413 LIBOBJS=$ac_libobjs
22414
22415 LTLIBOBJS=$ac_ltlibobjs
22416
22417
22418 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22419   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22420 Usually this means the macro was only invoked conditionally." >&5
22421 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22422 Usually this means the macro was only invoked conditionally." >&2;}
22423    { (exit 1); exit 1; }; }
22424 fi
22425 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22426   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22427 Usually this means the macro was only invoked conditionally." >&5
22428 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22429 Usually this means the macro was only invoked conditionally." >&2;}
22430    { (exit 1); exit 1; }; }
22431 fi
22432 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22433   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22434 Usually this means the macro was only invoked conditionally." >&5
22435 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22436 Usually this means the macro was only invoked conditionally." >&2;}
22437    { (exit 1); exit 1; }; }
22438 fi
22439 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22440   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22441 Usually this means the macro was only invoked conditionally." >&5
22442 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22443 Usually this means the macro was only invoked conditionally." >&2;}
22444    { (exit 1); exit 1; }; }
22445 fi
22446 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22447   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22448 Usually this means the macro was only invoked conditionally." >&5
22449 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22450 Usually this means the macro was only invoked conditionally." >&2;}
22451    { (exit 1); exit 1; }; }
22452 fi
22453
22454 : ${CONFIG_STATUS=./config.status}
22455 ac_clean_files_save=$ac_clean_files
22456 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22457 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22458 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22459 cat >$CONFIG_STATUS <<_ACEOF
22460 #! $SHELL
22461 # Generated by $as_me.
22462 # Run this file to recreate the current configuration.
22463 # Compiler output produced by configure, useful for debugging
22464 # configure, is in config.log if it exists.
22465
22466 debug=false
22467 ac_cs_recheck=false
22468 ac_cs_silent=false
22469 SHELL=\${CONFIG_SHELL-$SHELL}
22470 _ACEOF
22471
22472 cat >>$CONFIG_STATUS <<\_ACEOF
22473 ## --------------------- ##
22474 ## M4sh Initialization.  ##
22475 ## --------------------- ##
22476
22477 # Be Bourne compatible
22478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22479   emulate sh
22480   NULLCMD=:
22481   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22482   # is contrary to our usage.  Disable this feature.
22483   alias -g '${1+"$@"}'='"$@"'
22484 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22485   set -o posix
22486 fi
22487 DUALCASE=1; export DUALCASE # for MKS sh
22488
22489 # Support unset when possible.
22490 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22491   as_unset=unset
22492 else
22493   as_unset=false
22494 fi
22495
22496
22497 # Work around bugs in pre-3.0 UWIN ksh.
22498 $as_unset ENV MAIL MAILPATH
22499 PS1='$ '
22500 PS2='> '
22501 PS4='+ '
22502
22503 # NLS nuisances.
22504 for as_var in \
22505   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22506   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22507   LC_TELEPHONE LC_TIME
22508 do
22509   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22510     eval $as_var=C; export $as_var
22511   else
22512     $as_unset $as_var
22513   fi
22514 done
22515
22516 # Required to use basename.
22517 if expr a : '\(a\)' >/dev/null 2>&1; then
22518   as_expr=expr
22519 else
22520   as_expr=false
22521 fi
22522
22523 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22524   as_basename=basename
22525 else
22526   as_basename=false
22527 fi
22528
22529
22530 # Name of the executable.
22531 as_me=`$as_basename "$0" ||
22532 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22533          X"$0" : 'X\(//\)$' \| \
22534          X"$0" : 'X\(/\)$' \| \
22535          .     : '\(.\)' 2>/dev/null ||
22536 echo X/"$0" |
22537     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22538           /^X\/\(\/\/\)$/{ s//\1/; q; }
22539           /^X\/\(\/\).*/{ s//\1/; q; }
22540           s/.*/./; q'`
22541
22542
22543 # PATH needs CR, and LINENO needs CR and PATH.
22544 # Avoid depending upon Character Ranges.
22545 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22546 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22547 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22548 as_cr_digits='0123456789'
22549 as_cr_alnum=$as_cr_Letters$as_cr_digits
22550
22551 # The user is always right.
22552 if test "${PATH_SEPARATOR+set}" != set; then
22553   echo "#! /bin/sh" >conf$$.sh
22554   echo  "exit 0"   >>conf$$.sh
22555   chmod +x conf$$.sh
22556   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22557     PATH_SEPARATOR=';'
22558   else
22559     PATH_SEPARATOR=:
22560   fi
22561   rm -f conf$$.sh
22562 fi
22563
22564
22565   as_lineno_1=$LINENO
22566   as_lineno_2=$LINENO
22567   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22568   test "x$as_lineno_1" != "x$as_lineno_2" &&
22569   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22570   # Find who we are.  Look in the path if we contain no path at all
22571   # relative or not.
22572   case $0 in
22573     *[\\/]* ) as_myself=$0 ;;
22574     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22575 for as_dir in $PATH
22576 do
22577   IFS=$as_save_IFS
22578   test -z "$as_dir" && as_dir=.
22579   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22580 done
22581
22582        ;;
22583   esac
22584   # We did not find ourselves, most probably we were run as `sh COMMAND'
22585   # in which case we are not to be found in the path.
22586   if test "x$as_myself" = x; then
22587     as_myself=$0
22588   fi
22589   if test ! -f "$as_myself"; then
22590     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22591 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22592    { (exit 1); exit 1; }; }
22593   fi
22594   case $CONFIG_SHELL in
22595   '')
22596     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22597 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22598 do
22599   IFS=$as_save_IFS
22600   test -z "$as_dir" && as_dir=.
22601   for as_base in sh bash ksh sh5; do
22602          case $as_dir in
22603          /*)
22604            if ("$as_dir/$as_base" -c '
22605   as_lineno_1=$LINENO
22606   as_lineno_2=$LINENO
22607   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22608   test "x$as_lineno_1" != "x$as_lineno_2" &&
22609   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22610              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22611              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22612              CONFIG_SHELL=$as_dir/$as_base
22613              export CONFIG_SHELL
22614              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22615            fi;;
22616          esac
22617        done
22618 done
22619 ;;
22620   esac
22621
22622   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22623   # uniformly replaced by the line number.  The first 'sed' inserts a
22624   # line-number line before each line; the second 'sed' does the real
22625   # work.  The second script uses 'N' to pair each line-number line
22626   # with the numbered line, and appends trailing '-' during
22627   # substitution so that $LINENO is not a special case at line end.
22628   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22629   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22630   sed '=' <$as_myself |
22631     sed '
22632       N
22633       s,$,-,
22634       : loop
22635       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22636       t loop
22637       s,-$,,
22638       s,^['$as_cr_digits']*\n,,
22639     ' >$as_me.lineno &&
22640   chmod +x $as_me.lineno ||
22641     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22642 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22643    { (exit 1); exit 1; }; }
22644
22645   # Don't try to exec as it changes $[0], causing all sort of problems
22646   # (the dirname of $[0] is not the place where we might find the
22647   # original and so on.  Autoconf is especially sensible to this).
22648   . ./$as_me.lineno
22649   # Exit status is that of the last command.
22650   exit
22651 }
22652
22653
22654 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22655   *c*,-n*) ECHO_N= ECHO_C='
22656 ' ECHO_T='      ' ;;
22657   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22658   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22659 esac
22660
22661 if expr a : '\(a\)' >/dev/null 2>&1; then
22662   as_expr=expr
22663 else
22664   as_expr=false
22665 fi
22666
22667 rm -f conf$$ conf$$.exe conf$$.file
22668 echo >conf$$.file
22669 if ln -s conf$$.file conf$$ 2>/dev/null; then
22670   # We could just check for DJGPP; but this test a) works b) is more generic
22671   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22672   if test -f conf$$.exe; then
22673     # Don't use ln at all; we don't have any links
22674     as_ln_s='cp -p'
22675   else
22676     as_ln_s='ln -s'
22677   fi
22678 elif ln conf$$.file conf$$ 2>/dev/null; then
22679   as_ln_s=ln
22680 else
22681   as_ln_s='cp -p'
22682 fi
22683 rm -f conf$$ conf$$.exe conf$$.file
22684
22685 if mkdir -p . 2>/dev/null; then
22686   as_mkdir_p=:
22687 else
22688   test -d ./-p && rmdir ./-p
22689   as_mkdir_p=false
22690 fi
22691
22692 as_executable_p="test -f"
22693
22694 # Sed expression to map a string onto a valid CPP name.
22695 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22696
22697 # Sed expression to map a string onto a valid variable name.
22698 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22699
22700
22701 # IFS
22702 # We need space, tab and new line, in precisely that order.
22703 as_nl='
22704 '
22705 IFS="   $as_nl"
22706
22707 # CDPATH.
22708 $as_unset CDPATH
22709
22710 exec 6>&1
22711
22712 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22713 # report actual input values of CONFIG_FILES etc. instead of their
22714 # values after options handling.  Logging --version etc. is OK.
22715 exec 5>>config.log
22716 {
22717   echo
22718   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22719 ## Running $as_me. ##
22720 _ASBOX
22721 } >&5
22722 cat >&5 <<_CSEOF
22723
22724 This file was extended by libltdl $as_me 1.2, which was
22725 generated by GNU Autoconf 2.59.  Invocation command line was
22726
22727   CONFIG_FILES    = $CONFIG_FILES
22728   CONFIG_HEADERS  = $CONFIG_HEADERS
22729   CONFIG_LINKS    = $CONFIG_LINKS
22730   CONFIG_COMMANDS = $CONFIG_COMMANDS
22731   $ $0 $@
22732
22733 _CSEOF
22734 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22735 echo >&5
22736 _ACEOF
22737
22738 # Files that config.status was made for.
22739 if test -n "$ac_config_files"; then
22740   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22741 fi
22742
22743 if test -n "$ac_config_headers"; then
22744   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22745 fi
22746
22747 if test -n "$ac_config_links"; then
22748   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22749 fi
22750
22751 if test -n "$ac_config_commands"; then
22752   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22753 fi
22754
22755 cat >>$CONFIG_STATUS <<\_ACEOF
22756
22757 ac_cs_usage="\
22758 \`$as_me' instantiates files from templates according to the
22759 current configuration.
22760
22761 Usage: $0 [OPTIONS] [FILE]...
22762
22763   -h, --help       print this help, then exit
22764   -V, --version    print version number, then exit
22765   -q, --quiet      do not print progress messages
22766   -d, --debug      don't remove temporary files
22767       --recheck    update $as_me by reconfiguring in the same conditions
22768   --file=FILE[:TEMPLATE]
22769                    instantiate the configuration file FILE
22770   --header=FILE[:TEMPLATE]
22771                    instantiate the configuration header FILE
22772
22773 Configuration files:
22774 $config_files
22775
22776 Configuration headers:
22777 $config_headers
22778
22779 Configuration commands:
22780 $config_commands
22781
22782 Report bugs to <bug-autoconf@gnu.org>."
22783 _ACEOF
22784
22785 cat >>$CONFIG_STATUS <<_ACEOF
22786 ac_cs_version="\\
22787 libltdl config.status 1.2
22788 configured by $0, generated by GNU Autoconf 2.59,
22789   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22790
22791 Copyright (C) 2003 Free Software Foundation, Inc.
22792 This config.status script is free software; the Free Software Foundation
22793 gives unlimited permission to copy, distribute and modify it."
22794 srcdir=$srcdir
22795 INSTALL="$INSTALL"
22796 _ACEOF
22797
22798 cat >>$CONFIG_STATUS <<\_ACEOF
22799 # If no file are specified by the user, then we need to provide default
22800 # value.  By we need to know if files were specified by the user.
22801 ac_need_defaults=:
22802 while test $# != 0
22803 do
22804   case $1 in
22805   --*=*)
22806     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22807     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22808     ac_shift=:
22809     ;;
22810   -*)
22811     ac_option=$1
22812     ac_optarg=$2
22813     ac_shift=shift
22814     ;;
22815   *) # This is not an option, so the user has probably given explicit
22816      # arguments.
22817      ac_option=$1
22818      ac_need_defaults=false;;
22819   esac
22820
22821   case $ac_option in
22822   # Handling of the options.
22823 _ACEOF
22824 cat >>$CONFIG_STATUS <<\_ACEOF
22825   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22826     ac_cs_recheck=: ;;
22827   --version | --vers* | -V )
22828     echo "$ac_cs_version"; exit 0 ;;
22829   --he | --h)
22830     # Conflict between --help and --header
22831     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22832 Try \`$0 --help' for more information." >&5
22833 echo "$as_me: error: ambiguous option: $1
22834 Try \`$0 --help' for more information." >&2;}
22835    { (exit 1); exit 1; }; };;
22836   --help | --hel | -h )
22837     echo "$ac_cs_usage"; exit 0 ;;
22838   --debug | --d* | -d )
22839     debug=: ;;
22840   --file | --fil | --fi | --f )
22841     $ac_shift
22842     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22843     ac_need_defaults=false;;
22844   --header | --heade | --head | --hea )
22845     $ac_shift
22846     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22847     ac_need_defaults=false;;
22848   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22849   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22850     ac_cs_silent=: ;;
22851
22852   # This is an error.
22853   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22854 Try \`$0 --help' for more information." >&5
22855 echo "$as_me: error: unrecognized option: $1
22856 Try \`$0 --help' for more information." >&2;}
22857    { (exit 1); exit 1; }; } ;;
22858
22859   *) ac_config_targets="$ac_config_targets $1" ;;
22860
22861   esac
22862   shift
22863 done
22864
22865 ac_configure_extra_args=
22866
22867 if $ac_cs_silent; then
22868   exec 6>/dev/null
22869   ac_configure_extra_args="$ac_configure_extra_args --silent"
22870 fi
22871
22872 _ACEOF
22873 cat >>$CONFIG_STATUS <<_ACEOF
22874 if \$ac_cs_recheck; then
22875   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22876   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22877 fi
22878
22879 _ACEOF
22880
22881 cat >>$CONFIG_STATUS <<_ACEOF
22882 #
22883 # INIT-COMMANDS section.
22884 #
22885
22886 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22887
22888 _ACEOF
22889
22890
22891
22892 cat >>$CONFIG_STATUS <<\_ACEOF
22893 for ac_config_target in $ac_config_targets
22894 do
22895   case "$ac_config_target" in
22896   # Handling of arguments.
22897   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22898   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22899   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
22900   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22901 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22902    { (exit 1); exit 1; }; };;
22903   esac
22904 done
22905
22906 # If the user did not use the arguments to specify the items to instantiate,
22907 # then the envvar interface is used.  Set only those that are not.
22908 # We use the long form for the default assignment because of an extremely
22909 # bizarre bug on SunOS 4.1.3.
22910 if $ac_need_defaults; then
22911   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22912   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22913   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22914 fi
22915
22916 # Have a temporary directory for convenience.  Make it in the build tree
22917 # simply because there is no reason to put it here, and in addition,
22918 # creating and moving files from /tmp can sometimes cause problems.
22919 # Create a temporary directory, and hook for its removal unless debugging.
22920 $debug ||
22921 {
22922   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22923   trap '{ (exit 1); exit 1; }' 1 2 13 15
22924 }
22925
22926 # Create a (secure) tmp directory for tmp files.
22927
22928 {
22929   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22930   test -n "$tmp" && test -d "$tmp"
22931 }  ||
22932 {
22933   tmp=./confstat$$-$RANDOM
22934   (umask 077 && mkdir $tmp)
22935 } ||
22936 {
22937    echo "$me: cannot create a temporary directory in ." >&2
22938    { (exit 1); exit 1; }
22939 }
22940
22941 _ACEOF
22942
22943 cat >>$CONFIG_STATUS <<_ACEOF
22944
22945 #
22946 # CONFIG_FILES section.
22947 #
22948
22949 # No need to generate the scripts if there are no CONFIG_FILES.
22950 # This happens for instance when ./config.status config.h
22951 if test -n "\$CONFIG_FILES"; then
22952   # Protect against being on the right side of a sed subst in config.status.
22953   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22954    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22955 s,@SHELL@,$SHELL,;t t
22956 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22957 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22958 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22959 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22960 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22961 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22962 s,@exec_prefix@,$exec_prefix,;t t
22963 s,@prefix@,$prefix,;t t
22964 s,@program_transform_name@,$program_transform_name,;t t
22965 s,@bindir@,$bindir,;t t
22966 s,@sbindir@,$sbindir,;t t
22967 s,@libexecdir@,$libexecdir,;t t
22968 s,@datadir@,$datadir,;t t
22969 s,@sysconfdir@,$sysconfdir,;t t
22970 s,@sharedstatedir@,$sharedstatedir,;t t
22971 s,@localstatedir@,$localstatedir,;t t
22972 s,@libdir@,$libdir,;t t
22973 s,@includedir@,$includedir,;t t
22974 s,@oldincludedir@,$oldincludedir,;t t
22975 s,@infodir@,$infodir,;t t
22976 s,@mandir@,$mandir,;t t
22977 s,@build_alias@,$build_alias,;t t
22978 s,@host_alias@,$host_alias,;t t
22979 s,@target_alias@,$target_alias,;t t
22980 s,@DEFS@,$DEFS,;t t
22981 s,@ECHO_C@,$ECHO_C,;t t
22982 s,@ECHO_N@,$ECHO_N,;t t
22983 s,@ECHO_T@,$ECHO_T,;t t
22984 s,@LIBS@,$LIBS,;t t
22985 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22986 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22987 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22988 s,@CYGPATH_W@,$CYGPATH_W,;t t
22989 s,@PACKAGE@,$PACKAGE,;t t
22990 s,@VERSION@,$VERSION,;t t
22991 s,@ACLOCAL@,$ACLOCAL,;t t
22992 s,@AUTOCONF@,$AUTOCONF,;t t
22993 s,@AUTOMAKE@,$AUTOMAKE,;t t
22994 s,@AUTOHEADER@,$AUTOHEADER,;t t
22995 s,@MAKEINFO@,$MAKEINFO,;t t
22996 s,@install_sh@,$install_sh,;t t
22997 s,@STRIP@,$STRIP,;t t
22998 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22999 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23000 s,@mkdir_p@,$mkdir_p,;t t
23001 s,@AWK@,$AWK,;t t
23002 s,@SET_MAKE@,$SET_MAKE,;t t
23003 s,@am__leading_dot@,$am__leading_dot,;t t
23004 s,@AMTAR@,$AMTAR,;t t
23005 s,@am__tar@,$am__tar,;t t
23006 s,@am__untar@,$am__untar,;t t
23007 s,@CC@,$CC,;t t
23008 s,@CFLAGS@,$CFLAGS,;t t
23009 s,@LDFLAGS@,$LDFLAGS,;t t
23010 s,@CPPFLAGS@,$CPPFLAGS,;t t
23011 s,@ac_ct_CC@,$ac_ct_CC,;t t
23012 s,@EXEEXT@,$EXEEXT,;t t
23013 s,@OBJEXT@,$OBJEXT,;t t
23014 s,@DEPDIR@,$DEPDIR,;t t
23015 s,@am__include@,$am__include,;t t
23016 s,@am__quote@,$am__quote,;t t
23017 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23018 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23019 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23020 s,@CCDEPMODE@,$CCDEPMODE,;t t
23021 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23022 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23023 s,@build@,$build,;t t
23024 s,@build_cpu@,$build_cpu,;t t
23025 s,@build_vendor@,$build_vendor,;t t
23026 s,@build_os@,$build_os,;t t
23027 s,@host@,$host,;t t
23028 s,@host_cpu@,$host_cpu,;t t
23029 s,@host_vendor@,$host_vendor,;t t
23030 s,@host_os@,$host_os,;t t
23031 s,@EGREP@,$EGREP,;t t
23032 s,@LN_S@,$LN_S,;t t
23033 s,@ECHO@,$ECHO,;t t
23034 s,@AR@,$AR,;t t
23035 s,@ac_ct_AR@,$ac_ct_AR,;t t
23036 s,@RANLIB@,$RANLIB,;t t
23037 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23038 s,@DLLTOOL@,$DLLTOOL,;t t
23039 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23040 s,@AS@,$AS,;t t
23041 s,@ac_ct_AS@,$ac_ct_AS,;t t
23042 s,@OBJDUMP@,$OBJDUMP,;t t
23043 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23044 s,@CPP@,$CPP,;t t
23045 s,@CXX@,$CXX,;t t
23046 s,@CXXFLAGS@,$CXXFLAGS,;t t
23047 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23048 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23049 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23050 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23051 s,@CXXCPP@,$CXXCPP,;t t
23052 s,@F77@,$F77,;t t
23053 s,@FFLAGS@,$FFLAGS,;t t
23054 s,@ac_ct_F77@,$ac_ct_F77,;t t
23055 s,@LIBTOOL@,$LIBTOOL,;t t
23056 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
23057 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
23058 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
23059 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
23060 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
23061 s,@LIBADD_DL@,$LIBADD_DL,;t t
23062 s,@LIBOBJS@,$LIBOBJS,;t t
23063 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23064 CEOF
23065
23066 _ACEOF
23067
23068   cat >>$CONFIG_STATUS <<\_ACEOF
23069   # Split the substitutions into bite-sized pieces for seds with
23070   # small command number limits, like on Digital OSF/1 and HP-UX.
23071   ac_max_sed_lines=48
23072   ac_sed_frag=1 # Number of current file.
23073   ac_beg=1 # First line for current file.
23074   ac_end=$ac_max_sed_lines # Line after last line for current file.
23075   ac_more_lines=:
23076   ac_sed_cmds=
23077   while $ac_more_lines; do
23078     if test $ac_beg -gt 1; then
23079       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23080     else
23081       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23082     fi
23083     if test ! -s $tmp/subs.frag; then
23084       ac_more_lines=false
23085     else
23086       # The purpose of the label and of the branching condition is to
23087       # speed up the sed processing (if there are no `@' at all, there
23088       # is no need to browse any of the substitutions).
23089       # These are the two extra sed commands mentioned above.
23090       (echo ':t
23091   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23092       if test -z "$ac_sed_cmds"; then
23093         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23094       else
23095         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23096       fi
23097       ac_sed_frag=`expr $ac_sed_frag + 1`
23098       ac_beg=$ac_end
23099       ac_end=`expr $ac_end + $ac_max_sed_lines`
23100     fi
23101   done
23102   if test -z "$ac_sed_cmds"; then
23103     ac_sed_cmds=cat
23104   fi
23105 fi # test -n "$CONFIG_FILES"
23106
23107 _ACEOF
23108 cat >>$CONFIG_STATUS <<\_ACEOF
23109 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23110   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23111   case $ac_file in
23112   - | *:- | *:-:* ) # input from stdin
23113         cat >$tmp/stdin
23114         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23115         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23116   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23117         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23118   * )   ac_file_in=$ac_file.in ;;
23119   esac
23120
23121   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23122   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23123 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23124          X"$ac_file" : 'X\(//\)[^/]' \| \
23125          X"$ac_file" : 'X\(//\)$' \| \
23126          X"$ac_file" : 'X\(/\)' \| \
23127          .     : '\(.\)' 2>/dev/null ||
23128 echo X"$ac_file" |
23129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23130           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23131           /^X\(\/\/\)$/{ s//\1/; q; }
23132           /^X\(\/\).*/{ s//\1/; q; }
23133           s/.*/./; q'`
23134   { if $as_mkdir_p; then
23135     mkdir -p "$ac_dir"
23136   else
23137     as_dir="$ac_dir"
23138     as_dirs=
23139     while test ! -d "$as_dir"; do
23140       as_dirs="$as_dir $as_dirs"
23141       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23143          X"$as_dir" : 'X\(//\)[^/]' \| \
23144          X"$as_dir" : 'X\(//\)$' \| \
23145          X"$as_dir" : 'X\(/\)' \| \
23146          .     : '\(.\)' 2>/dev/null ||
23147 echo X"$as_dir" |
23148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23149           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23150           /^X\(\/\/\)$/{ s//\1/; q; }
23151           /^X\(\/\).*/{ s//\1/; q; }
23152           s/.*/./; q'`
23153     done
23154     test ! -n "$as_dirs" || mkdir $as_dirs
23155   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23156 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23157    { (exit 1); exit 1; }; }; }
23158
23159   ac_builddir=.
23160
23161 if test "$ac_dir" != .; then
23162   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23163   # A "../" for each directory in $ac_dir_suffix.
23164   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23165 else
23166   ac_dir_suffix= ac_top_builddir=
23167 fi
23168
23169 case $srcdir in
23170   .)  # No --srcdir option.  We are building in place.
23171     ac_srcdir=.
23172     if test -z "$ac_top_builddir"; then
23173        ac_top_srcdir=.
23174     else
23175        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23176     fi ;;
23177   [\\/]* | ?:[\\/]* )  # Absolute path.
23178     ac_srcdir=$srcdir$ac_dir_suffix;
23179     ac_top_srcdir=$srcdir ;;
23180   *) # Relative path.
23181     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23182     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23183 esac
23184
23185 # Do not use `cd foo && pwd` to compute absolute paths, because
23186 # the directories may not exist.
23187 case `pwd` in
23188 .) ac_abs_builddir="$ac_dir";;
23189 *)
23190   case "$ac_dir" in
23191   .) ac_abs_builddir=`pwd`;;
23192   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23193   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23194   esac;;
23195 esac
23196 case $ac_abs_builddir in
23197 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23198 *)
23199   case ${ac_top_builddir}. in
23200   .) ac_abs_top_builddir=$ac_abs_builddir;;
23201   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23202   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23203   esac;;
23204 esac
23205 case $ac_abs_builddir in
23206 .) ac_abs_srcdir=$ac_srcdir;;
23207 *)
23208   case $ac_srcdir in
23209   .) ac_abs_srcdir=$ac_abs_builddir;;
23210   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23211   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23212   esac;;
23213 esac
23214 case $ac_abs_builddir in
23215 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23216 *)
23217   case $ac_top_srcdir in
23218   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23219   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23220   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23221   esac;;
23222 esac
23223
23224
23225   case $INSTALL in
23226   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23227   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23228   esac
23229
23230   if test x"$ac_file" != x-; then
23231     { echo "$as_me:$LINENO: creating $ac_file" >&5
23232 echo "$as_me: creating $ac_file" >&6;}
23233     rm -f "$ac_file"
23234   fi
23235   # Let's still pretend it is `configure' which instantiates (i.e., don't
23236   # use $as_me), people would be surprised to read:
23237   #    /* config.h.  Generated by config.status.  */
23238   if test x"$ac_file" = x-; then
23239     configure_input=
23240   else
23241     configure_input="$ac_file.  "
23242   fi
23243   configure_input=$configure_input"Generated from `echo $ac_file_in |
23244                                      sed 's,.*/,,'` by configure."
23245
23246   # First look for the input files in the build tree, otherwise in the
23247   # src tree.
23248   ac_file_inputs=`IFS=:
23249     for f in $ac_file_in; do
23250       case $f in
23251       -) echo $tmp/stdin ;;
23252       [\\/$]*)
23253          # Absolute (can't be DOS-style, as IFS=:)
23254          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23255 echo "$as_me: error: cannot find input file: $f" >&2;}
23256    { (exit 1); exit 1; }; }
23257          echo "$f";;
23258       *) # Relative
23259          if test -f "$f"; then
23260            # Build tree
23261            echo "$f"
23262          elif test -f "$srcdir/$f"; then
23263            # Source tree
23264            echo "$srcdir/$f"
23265          else
23266            # /dev/null tree
23267            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23268 echo "$as_me: error: cannot find input file: $f" >&2;}
23269    { (exit 1); exit 1; }; }
23270          fi;;
23271       esac
23272     done` || { (exit 1); exit 1; }
23273 _ACEOF
23274 cat >>$CONFIG_STATUS <<_ACEOF
23275   sed "$ac_vpsub
23276 $extrasub
23277 _ACEOF
23278 cat >>$CONFIG_STATUS <<\_ACEOF
23279 :t
23280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23281 s,@configure_input@,$configure_input,;t t
23282 s,@srcdir@,$ac_srcdir,;t t
23283 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23284 s,@top_srcdir@,$ac_top_srcdir,;t t
23285 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23286 s,@builddir@,$ac_builddir,;t t
23287 s,@abs_builddir@,$ac_abs_builddir,;t t
23288 s,@top_builddir@,$ac_top_builddir,;t t
23289 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23290 s,@INSTALL@,$ac_INSTALL,;t t
23291 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23292   rm -f $tmp/stdin
23293   if test x"$ac_file" != x-; then
23294     mv $tmp/out $ac_file
23295   else
23296     cat $tmp/out
23297     rm -f $tmp/out
23298   fi
23299
23300 done
23301 _ACEOF
23302 cat >>$CONFIG_STATUS <<\_ACEOF
23303
23304 #
23305 # CONFIG_HEADER section.
23306 #
23307
23308 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23309 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23310 #
23311 # ac_d sets the value in "#define NAME VALUE" lines.
23312 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23313 ac_dB='[         ].*$,\1#\2'
23314 ac_dC=' '
23315 ac_dD=',;t'
23316 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23317 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23318 ac_uB='$,\1#\2define\3'
23319 ac_uC=' '
23320 ac_uD=',;t'
23321
23322 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23323   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23324   case $ac_file in
23325   - | *:- | *:-:* ) # input from stdin
23326         cat >$tmp/stdin
23327         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23328         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23329   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23330         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23331   * )   ac_file_in=$ac_file.in ;;
23332   esac
23333
23334   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23335 echo "$as_me: creating $ac_file" >&6;}
23336
23337   # First look for the input files in the build tree, otherwise in the
23338   # src tree.
23339   ac_file_inputs=`IFS=:
23340     for f in $ac_file_in; do
23341       case $f in
23342       -) echo $tmp/stdin ;;
23343       [\\/$]*)
23344          # Absolute (can't be DOS-style, as IFS=:)
23345          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23346 echo "$as_me: error: cannot find input file: $f" >&2;}
23347    { (exit 1); exit 1; }; }
23348          # Do quote $f, to prevent DOS paths from being IFS'd.
23349          echo "$f";;
23350       *) # Relative
23351          if test -f "$f"; then
23352            # Build tree
23353            echo "$f"
23354          elif test -f "$srcdir/$f"; then
23355            # Source tree
23356            echo "$srcdir/$f"
23357          else
23358            # /dev/null tree
23359            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23360 echo "$as_me: error: cannot find input file: $f" >&2;}
23361    { (exit 1); exit 1; }; }
23362          fi;;
23363       esac
23364     done` || { (exit 1); exit 1; }
23365   # Remove the trailing spaces.
23366   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23367
23368 _ACEOF
23369
23370 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23371 # `conftest.undefs', that substitutes the proper values into
23372 # config.h.in to produce config.h.  The first handles `#define'
23373 # templates, and the second `#undef' templates.
23374 # And first: Protect against being on the right side of a sed subst in
23375 # config.status.  Protect against being in an unquoted here document
23376 # in config.status.
23377 rm -f conftest.defines conftest.undefs
23378 # Using a here document instead of a string reduces the quoting nightmare.
23379 # Putting comments in sed scripts is not portable.
23380 #
23381 # `end' is used to avoid that the second main sed command (meant for
23382 # 0-ary CPP macros) applies to n-ary macro definitions.
23383 # See the Autoconf documentation for `clear'.
23384 cat >confdef2sed.sed <<\_ACEOF
23385 s/[\\&,]/\\&/g
23386 s,[\\$`],\\&,g
23387 t clear
23388 : clear
23389 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23390 t end
23391 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23392 : end
23393 _ACEOF
23394 # If some macros were called several times there might be several times
23395 # the same #defines, which is useless.  Nevertheless, we may not want to
23396 # sort them, since we want the *last* AC-DEFINE to be honored.
23397 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23398 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23399 rm -f confdef2sed.sed
23400
23401 # This sed command replaces #undef with comments.  This is necessary, for
23402 # example, in the case of _POSIX_SOURCE, which is predefined and required
23403 # on some systems where configure will not decide to define it.
23404 cat >>conftest.undefs <<\_ACEOF
23405 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23406 _ACEOF
23407
23408 # Break up conftest.defines because some shells have a limit on the size
23409 # of here documents, and old seds have small limits too (100 cmds).
23410 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23411 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23412 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23413 echo '  :' >>$CONFIG_STATUS
23414 rm -f conftest.tail
23415 while grep . conftest.defines >/dev/null
23416 do
23417   # Write a limited-size here document to $tmp/defines.sed.
23418   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23419   # Speed up: don't consider the non `#define' lines.
23420   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23421   # Work around the forget-to-reset-the-flag bug.
23422   echo 't clr' >>$CONFIG_STATUS
23423   echo ': clr' >>$CONFIG_STATUS
23424   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23425   echo 'CEOF
23426   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23427   rm -f $tmp/in
23428   mv $tmp/out $tmp/in
23429 ' >>$CONFIG_STATUS
23430   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23431   rm -f conftest.defines
23432   mv conftest.tail conftest.defines
23433 done
23434 rm -f conftest.defines
23435 echo '  fi # grep' >>$CONFIG_STATUS
23436 echo >>$CONFIG_STATUS
23437
23438 # Break up conftest.undefs because some shells have a limit on the size
23439 # of here documents, and old seds have small limits too (100 cmds).
23440 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23441 rm -f conftest.tail
23442 while grep . conftest.undefs >/dev/null
23443 do
23444   # Write a limited-size here document to $tmp/undefs.sed.
23445   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23446   # Speed up: don't consider the non `#undef'
23447   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23448   # Work around the forget-to-reset-the-flag bug.
23449   echo 't clr' >>$CONFIG_STATUS
23450   echo ': clr' >>$CONFIG_STATUS
23451   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23452   echo 'CEOF
23453   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23454   rm -f $tmp/in
23455   mv $tmp/out $tmp/in
23456 ' >>$CONFIG_STATUS
23457   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23458   rm -f conftest.undefs
23459   mv conftest.tail conftest.undefs
23460 done
23461 rm -f conftest.undefs
23462
23463 cat >>$CONFIG_STATUS <<\_ACEOF
23464   # Let's still pretend it is `configure' which instantiates (i.e., don't
23465   # use $as_me), people would be surprised to read:
23466   #    /* config.h.  Generated by config.status.  */
23467   if test x"$ac_file" = x-; then
23468     echo "/* Generated by configure.  */" >$tmp/config.h
23469   else
23470     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23471   fi
23472   cat $tmp/in >>$tmp/config.h
23473   rm -f $tmp/in
23474   if test x"$ac_file" != x-; then
23475     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23476       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23477 echo "$as_me: $ac_file is unchanged" >&6;}
23478     else
23479       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23480 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23481          X"$ac_file" : 'X\(//\)[^/]' \| \
23482          X"$ac_file" : 'X\(//\)$' \| \
23483          X"$ac_file" : 'X\(/\)' \| \
23484          .     : '\(.\)' 2>/dev/null ||
23485 echo X"$ac_file" |
23486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23488           /^X\(\/\/\)$/{ s//\1/; q; }
23489           /^X\(\/\).*/{ s//\1/; q; }
23490           s/.*/./; q'`
23491       { if $as_mkdir_p; then
23492     mkdir -p "$ac_dir"
23493   else
23494     as_dir="$ac_dir"
23495     as_dirs=
23496     while test ! -d "$as_dir"; do
23497       as_dirs="$as_dir $as_dirs"
23498       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23500          X"$as_dir" : 'X\(//\)[^/]' \| \
23501          X"$as_dir" : 'X\(//\)$' \| \
23502          X"$as_dir" : 'X\(/\)' \| \
23503          .     : '\(.\)' 2>/dev/null ||
23504 echo X"$as_dir" |
23505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23506           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23507           /^X\(\/\/\)$/{ s//\1/; q; }
23508           /^X\(\/\).*/{ s//\1/; q; }
23509           s/.*/./; q'`
23510     done
23511     test ! -n "$as_dirs" || mkdir $as_dirs
23512   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23513 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23514    { (exit 1); exit 1; }; }; }
23515
23516       rm -f $ac_file
23517       mv $tmp/config.h $ac_file
23518     fi
23519   else
23520     cat $tmp/config.h
23521     rm -f $tmp/config.h
23522   fi
23523 # Compute $ac_file's index in $config_headers.
23524 _am_stamp_count=1
23525 for _am_header in $config_headers :; do
23526   case $_am_header in
23527     $ac_file | $ac_file:* )
23528       break ;;
23529     * )
23530       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23531   esac
23532 done
23533 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23534 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23535          X$ac_file : 'X\(//\)[^/]' \| \
23536          X$ac_file : 'X\(//\)$' \| \
23537          X$ac_file : 'X\(/\)' \| \
23538          .     : '\(.\)' 2>/dev/null ||
23539 echo X$ac_file |
23540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23541           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23542           /^X\(\/\/\)$/{ s//\1/; q; }
23543           /^X\(\/\).*/{ s//\1/; q; }
23544           s/.*/./; q'`/stamp-h$_am_stamp_count
23545 done
23546 _ACEOF
23547 cat >>$CONFIG_STATUS <<\_ACEOF
23548
23549 #
23550 # CONFIG_COMMANDS section.
23551 #
23552 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23553   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23554   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23555   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23556 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23557          X"$ac_dest" : 'X\(//\)[^/]' \| \
23558          X"$ac_dest" : 'X\(//\)$' \| \
23559          X"$ac_dest" : 'X\(/\)' \| \
23560          .     : '\(.\)' 2>/dev/null ||
23561 echo X"$ac_dest" |
23562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23563           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23564           /^X\(\/\/\)$/{ s//\1/; q; }
23565           /^X\(\/\).*/{ s//\1/; q; }
23566           s/.*/./; q'`
23567   { if $as_mkdir_p; then
23568     mkdir -p "$ac_dir"
23569   else
23570     as_dir="$ac_dir"
23571     as_dirs=
23572     while test ! -d "$as_dir"; do
23573       as_dirs="$as_dir $as_dirs"
23574       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23576          X"$as_dir" : 'X\(//\)[^/]' \| \
23577          X"$as_dir" : 'X\(//\)$' \| \
23578          X"$as_dir" : 'X\(/\)' \| \
23579          .     : '\(.\)' 2>/dev/null ||
23580 echo X"$as_dir" |
23581     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23582           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23583           /^X\(\/\/\)$/{ s//\1/; q; }
23584           /^X\(\/\).*/{ s//\1/; q; }
23585           s/.*/./; q'`
23586     done
23587     test ! -n "$as_dirs" || mkdir $as_dirs
23588   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23589 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23590    { (exit 1); exit 1; }; }; }
23591
23592   ac_builddir=.
23593
23594 if test "$ac_dir" != .; then
23595   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23596   # A "../" for each directory in $ac_dir_suffix.
23597   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23598 else
23599   ac_dir_suffix= ac_top_builddir=
23600 fi
23601
23602 case $srcdir in
23603   .)  # No --srcdir option.  We are building in place.
23604     ac_srcdir=.
23605     if test -z "$ac_top_builddir"; then
23606        ac_top_srcdir=.
23607     else
23608        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23609     fi ;;
23610   [\\/]* | ?:[\\/]* )  # Absolute path.
23611     ac_srcdir=$srcdir$ac_dir_suffix;
23612     ac_top_srcdir=$srcdir ;;
23613   *) # Relative path.
23614     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23615     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23616 esac
23617
23618 # Do not use `cd foo && pwd` to compute absolute paths, because
23619 # the directories may not exist.
23620 case `pwd` in
23621 .) ac_abs_builddir="$ac_dir";;
23622 *)
23623   case "$ac_dir" in
23624   .) ac_abs_builddir=`pwd`;;
23625   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23626   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23627   esac;;
23628 esac
23629 case $ac_abs_builddir in
23630 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23631 *)
23632   case ${ac_top_builddir}. in
23633   .) ac_abs_top_builddir=$ac_abs_builddir;;
23634   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23635   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23636   esac;;
23637 esac
23638 case $ac_abs_builddir in
23639 .) ac_abs_srcdir=$ac_srcdir;;
23640 *)
23641   case $ac_srcdir in
23642   .) ac_abs_srcdir=$ac_abs_builddir;;
23643   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23644   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23645   esac;;
23646 esac
23647 case $ac_abs_builddir in
23648 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23649 *)
23650   case $ac_top_srcdir in
23651   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23652   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23653   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23654   esac;;
23655 esac
23656
23657
23658   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23659 echo "$as_me: executing $ac_dest commands" >&6;}
23660   case $ac_dest in
23661     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23662   # Strip MF so we end up with the name of the file.
23663   mf=`echo "$mf" | sed -e 's/:.*$//'`
23664   # Check whether this is an Automake generated Makefile or not.
23665   # We used to match only the files named `Makefile.in', but
23666   # some people rename them; so instead we look at the file content.
23667   # Grep'ing the first line is not enough: some people post-process
23668   # each Makefile.in and add a new line on top of each file to say so.
23669   # So let's grep whole file.
23670   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23671     dirpart=`(dirname "$mf") 2>/dev/null ||
23672 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23673          X"$mf" : 'X\(//\)[^/]' \| \
23674          X"$mf" : 'X\(//\)$' \| \
23675          X"$mf" : 'X\(/\)' \| \
23676          .     : '\(.\)' 2>/dev/null ||
23677 echo X"$mf" |
23678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23679           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23680           /^X\(\/\/\)$/{ s//\1/; q; }
23681           /^X\(\/\).*/{ s//\1/; q; }
23682           s/.*/./; q'`
23683   else
23684     continue
23685   fi
23686   # Extract the definition of DEPDIR, am__include, and am__quote
23687   # from the Makefile without running `make'.
23688   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23689   test -z "$DEPDIR" && continue
23690   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23691   test -z "am__include" && continue
23692   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23693   # When using ansi2knr, U may be empty or an underscore; expand it
23694   U=`sed -n 's/^U = //p' < "$mf"`
23695   # Find all dependency output files, they are included files with
23696   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23697   # simplest approach to changing $(DEPDIR) to its actual value in the
23698   # expansion.
23699   for file in `sed -n "
23700     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23701        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23702     # Make sure the directory exists.
23703     test -f "$dirpart/$file" && continue
23704     fdir=`(dirname "$file") 2>/dev/null ||
23705 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23706          X"$file" : 'X\(//\)[^/]' \| \
23707          X"$file" : 'X\(//\)$' \| \
23708          X"$file" : 'X\(/\)' \| \
23709          .     : '\(.\)' 2>/dev/null ||
23710 echo X"$file" |
23711     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23712           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23713           /^X\(\/\/\)$/{ s//\1/; q; }
23714           /^X\(\/\).*/{ s//\1/; q; }
23715           s/.*/./; q'`
23716     { if $as_mkdir_p; then
23717     mkdir -p $dirpart/$fdir
23718   else
23719     as_dir=$dirpart/$fdir
23720     as_dirs=
23721     while test ! -d "$as_dir"; do
23722       as_dirs="$as_dir $as_dirs"
23723       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23725          X"$as_dir" : 'X\(//\)[^/]' \| \
23726          X"$as_dir" : 'X\(//\)$' \| \
23727          X"$as_dir" : 'X\(/\)' \| \
23728          .     : '\(.\)' 2>/dev/null ||
23729 echo X"$as_dir" |
23730     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23731           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23732           /^X\(\/\/\)$/{ s//\1/; q; }
23733           /^X\(\/\).*/{ s//\1/; q; }
23734           s/.*/./; q'`
23735     done
23736     test ! -n "$as_dirs" || mkdir $as_dirs
23737   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23738 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23739    { (exit 1); exit 1; }; }; }
23740
23741     # echo "creating $dirpart/$file"
23742     echo '# dummy' > "$dirpart/$file"
23743   done
23744 done
23745  ;;
23746   esac
23747 done
23748 _ACEOF
23749
23750 cat >>$CONFIG_STATUS <<\_ACEOF
23751
23752 { (exit 0); exit 0; }
23753 _ACEOF
23754 chmod +x $CONFIG_STATUS
23755 ac_clean_files=$ac_clean_files_save
23756
23757
23758 # configure is writing to config.log, and then calls config.status.
23759 # config.status does its own redirection, appending to config.log.
23760 # Unfortunately, on DOS this fails, as config.log is still kept open
23761 # by configure, so config.status won't be able to write to it; its
23762 # output is simply discarded.  So we exec the FD to /dev/null,
23763 # effectively closing config.log, so it can be properly (re)opened and
23764 # appended to by config.status.  When coming back to configure, we
23765 # need to make the FD available again.
23766 if test "$no_create" != yes; then
23767   ac_cs_success=:
23768   ac_config_status_args=
23769   test "$silent" = yes &&
23770     ac_config_status_args="$ac_config_status_args --quiet"
23771   exec 5>/dev/null
23772   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23773   exec 5>>config.log
23774   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23775   # would make configure fail if this is the last instruction.
23776   $ac_cs_success || { (exit 1); exit 1; }
23777 fi
23778