OSDN Git Service

2006-04-08 Andreas Tobler <a.tobler@schweiz.ch>
[pf3gnuchains/gcc-fork.git] / libjava / 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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   --enable-maintainer-mode  enable make rules and dependencies not useful
1031                           (and sometimes confusing) to the casual installer
1032   --disable-dependency-tracking  speeds up one-time build
1033   --enable-dependency-tracking   do not reject slow dependency extractors
1034   --enable-shared[=PKGS]
1035                           build shared libraries [default=yes]
1036   --enable-static[=PKGS]
1037                           build static libraries [default=yes]
1038   --enable-fast-install[=PKGS]
1039                           optimize for fast installation [default=yes]
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-ltdl-install   install libltdl
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051
1052 Some influential environment variables:
1053   CC          C compiler command
1054   CFLAGS      C compiler flags
1055   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1056               nonstandard directory <lib dir>
1057   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058               headers in a nonstandard directory <include dir>
1059   CPP         C preprocessor
1060   CXX         C++ compiler command
1061   CXXFLAGS    C++ compiler flags
1062   CXXCPP      C++ preprocessor
1063   F77         Fortran 77 compiler command
1064   FFLAGS      Fortran 77 compiler flags
1065
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1068
1069 Report bugs to <bug-libtool@gnu.org>.
1070 _ACEOF
1071 fi
1072
1073 if test "$ac_init_help" = "recursive"; then
1074   # If there are subdirs, report their specific --help.
1075   ac_popdir=`pwd`
1076   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077     test -d $ac_dir || continue
1078     ac_builddir=.
1079
1080 if test "$ac_dir" != .; then
1081   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082   # A "../" for each directory in $ac_dir_suffix.
1083   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 else
1085   ac_dir_suffix= ac_top_builddir=
1086 fi
1087
1088 case $srcdir in
1089   .)  # No --srcdir option.  We are building in place.
1090     ac_srcdir=.
1091     if test -z "$ac_top_builddir"; then
1092        ac_top_srcdir=.
1093     else
1094        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095     fi ;;
1096   [\\/]* | ?:[\\/]* )  # Absolute path.
1097     ac_srcdir=$srcdir$ac_dir_suffix;
1098     ac_top_srcdir=$srcdir ;;
1099   *) # Relative path.
1100     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 esac
1103
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1106 case `pwd` in
1107 .) ac_abs_builddir="$ac_dir";;
1108 *)
1109   case "$ac_dir" in
1110   .) ac_abs_builddir=`pwd`;;
1111   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113   esac;;
1114 esac
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *)
1118   case ${ac_top_builddir}. in
1119   .) ac_abs_top_builddir=$ac_abs_builddir;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1126 *)
1127   case $ac_srcdir in
1128   .) ac_abs_srcdir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *)
1136   case $ac_top_srcdir in
1137   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140   esac;;
1141 esac
1142
1143     cd $ac_dir
1144     # Check for guested configure; otherwise get Cygnus style configure.
1145     if test -f $ac_srcdir/configure.gnu; then
1146       echo
1147       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1148     elif test -f $ac_srcdir/configure; then
1149       echo
1150       $SHELL $ac_srcdir/configure  --help=recursive
1151     elif test -f $ac_srcdir/configure.ac ||
1152            test -f $ac_srcdir/configure.in; then
1153       echo
1154       $ac_configure --help
1155     else
1156       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157     fi
1158     cd $ac_popdir
1159   done
1160 fi
1161
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1164   cat <<\_ACEOF
1165 libltdl configure 1.2
1166 generated by GNU Autoconf 2.59
1167
1168 Copyright (C) 2003 Free Software Foundation, Inc.
1169 This configure script is free software; the Free Software Foundation
1170 gives unlimited permission to copy, distribute and modify it.
1171 _ACEOF
1172   exit 0
1173 fi
1174 exec 5>config.log
1175 cat >&5 <<_ACEOF
1176 This file contains any messages produced by compilers while
1177 running configure, to aid debugging if configure makes a mistake.
1178
1179 It was created by libltdl $as_me 1.2, which was
1180 generated by GNU Autoconf 2.59.  Invocation command line was
1181
1182   $ $0 $@
1183
1184 _ACEOF
1185 {
1186 cat <<_ASUNAME
1187 ## --------- ##
1188 ## Platform. ##
1189 ## --------- ##
1190
1191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196
1197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1199
1200 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1201 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1204 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1205 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1206 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1207
1208 _ASUNAME
1209
1210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211 for as_dir in $PATH
1212 do
1213   IFS=$as_save_IFS
1214   test -z "$as_dir" && as_dir=.
1215   echo "PATH: $as_dir"
1216 done
1217
1218 } >&5
1219
1220 cat >&5 <<_ACEOF
1221
1222
1223 ## ----------- ##
1224 ## Core tests. ##
1225 ## ----------- ##
1226
1227 _ACEOF
1228
1229
1230 # Keep a trace of the command line.
1231 # Strip out --no-create and --no-recursion so they do not pile up.
1232 # Strip out --silent because we don't want to record it for future runs.
1233 # Also quote any args containing shell meta-characters.
1234 # Make two passes to allow for proper duplicate-argument suppression.
1235 ac_configure_args=
1236 ac_configure_args0=
1237 ac_configure_args1=
1238 ac_sep=
1239 ac_must_keep_next=false
1240 for ac_pass in 1 2
1241 do
1242   for ac_arg
1243   do
1244     case $ac_arg in
1245     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247     | -silent | --silent | --silen | --sile | --sil)
1248       continue ;;
1249     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251     esac
1252     case $ac_pass in
1253     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254     2)
1255       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256       if test $ac_must_keep_next = true; then
1257         ac_must_keep_next=false # Got value, back to normal.
1258       else
1259         case $ac_arg in
1260           *=* | --config-cache | -C | -disable-* | --disable-* \
1261           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263           | -with-* | --with-* | -without-* | --without-* | --x)
1264             case "$ac_configure_args0 " in
1265               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266             esac
1267             ;;
1268           -* ) ac_must_keep_next=true ;;
1269         esac
1270       fi
1271       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272       # Get rid of the leading space.
1273       ac_sep=" "
1274       ;;
1275     esac
1276   done
1277 done
1278 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280
1281 # When interrupted or exit'd, cleanup temporary files, and complete
1282 # config.log.  We remove comments because anyway the quotes in there
1283 # would cause problems or look ugly.
1284 # WARNING: Be sure not to use single quotes in there, as some shells,
1285 # such as our DU 5.0 friend, will then `close' the trap.
1286 trap 'exit_status=$?
1287   # Save into config.log some information that might help in debugging.
1288   {
1289     echo
1290
1291     cat <<\_ASBOX
1292 ## ---------------- ##
1293 ## Cache variables. ##
1294 ## ---------------- ##
1295 _ASBOX
1296     echo
1297     # The following way of writing the cache mishandles newlines in values,
1298 {
1299   (set) 2>&1 |
1300     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301     *ac_space=\ *)
1302       sed -n \
1303         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305       ;;
1306     *)
1307       sed -n \
1308         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309       ;;
1310     esac;
1311 }
1312     echo
1313
1314     cat <<\_ASBOX
1315 ## ----------------- ##
1316 ## Output variables. ##
1317 ## ----------------- ##
1318 _ASBOX
1319     echo
1320     for ac_var in $ac_subst_vars
1321     do
1322       eval ac_val=$`echo $ac_var`
1323       echo "$ac_var='"'"'$ac_val'"'"'"
1324     done | sort
1325     echo
1326
1327     if test -n "$ac_subst_files"; then
1328       cat <<\_ASBOX
1329 ## ------------- ##
1330 ## Output files. ##
1331 ## ------------- ##
1332 _ASBOX
1333       echo
1334       for ac_var in $ac_subst_files
1335       do
1336         eval ac_val=$`echo $ac_var`
1337         echo "$ac_var='"'"'$ac_val'"'"'"
1338       done | sort
1339       echo
1340     fi
1341
1342     if test -s confdefs.h; then
1343       cat <<\_ASBOX
1344 ## ----------- ##
1345 ## confdefs.h. ##
1346 ## ----------- ##
1347 _ASBOX
1348       echo
1349       sed "/^$/d" confdefs.h | sort
1350       echo
1351     fi
1352     test "$ac_signal" != 0 &&
1353       echo "$as_me: caught signal $ac_signal"
1354     echo "$as_me: exit $exit_status"
1355   } >&5
1356   rm -f core *.core &&
1357   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358     exit $exit_status
1359      ' 0
1360 for ac_signal in 1 2 13 15; do
1361   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362 done
1363 ac_signal=0
1364
1365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1366 rm -rf conftest* confdefs.h
1367 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368 echo >confdefs.h
1369
1370 # Predefined preprocessor variables.
1371
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_NAME "$PACKAGE_NAME"
1374 _ACEOF
1375
1376
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379 _ACEOF
1380
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_STRING "$PACKAGE_STRING"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394 _ACEOF
1395
1396
1397 # Let the site file select an alternate cache file if it wants to.
1398 # Prefer explicitly selected file to automatically selected ones.
1399 if test -z "$CONFIG_SITE"; then
1400   if test "x$prefix" != xNONE; then
1401     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402   else
1403     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404   fi
1405 fi
1406 for ac_site_file in $CONFIG_SITE; do
1407   if test -r "$ac_site_file"; then
1408     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409 echo "$as_me: loading site script $ac_site_file" >&6;}
1410     sed 's/^/| /' "$ac_site_file" >&5
1411     . "$ac_site_file"
1412   fi
1413 done
1414
1415 if test -r "$cache_file"; then
1416   # Some versions of bash will fail to source /dev/null (special
1417   # files actually), so we avoid doing that.
1418   if test -f "$cache_file"; then
1419     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420 echo "$as_me: loading cache $cache_file" >&6;}
1421     case $cache_file in
1422       [\\/]* | ?:[\\/]* ) . $cache_file;;
1423       *)                      . ./$cache_file;;
1424     esac
1425   fi
1426 else
1427   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428 echo "$as_me: creating cache $cache_file" >&6;}
1429   >$cache_file
1430 fi
1431
1432 # Check that the precious variables saved in the cache have kept the same
1433 # value.
1434 ac_cache_corrupted=false
1435 for ac_var in `(set) 2>&1 |
1436                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438   eval ac_new_set=\$ac_env_${ac_var}_set
1439   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440   eval ac_new_val="\$ac_env_${ac_var}_value"
1441   case $ac_old_set,$ac_new_set in
1442     set,)
1443       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445       ac_cache_corrupted=: ;;
1446     ,set)
1447       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449       ac_cache_corrupted=: ;;
1450     ,);;
1451     *)
1452       if test "x$ac_old_val" != "x$ac_new_val"; then
1453         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1456 echo "$as_me:   former value:  $ac_old_val" >&2;}
1457         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1458 echo "$as_me:   current value: $ac_new_val" >&2;}
1459         ac_cache_corrupted=:
1460       fi;;
1461   esac
1462   # Pass precious variables to config.status.
1463   if test "$ac_new_set" = set; then
1464     case $ac_new_val in
1465     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467     *) ac_arg=$ac_var=$ac_new_val ;;
1468     esac
1469     case " $ac_configure_args " in
1470       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1471       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472     esac
1473   fi
1474 done
1475 if $ac_cache_corrupted; then
1476   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480    { (exit 1); exit 1; }; }
1481 fi
1482
1483 ac_ext=c
1484 ac_cpp='$CPP $CPPFLAGS'
1485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 ## GCJ LOCAL: gcc tree uses maintainer mode.
1518 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1519 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1520     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1521 if test "${enable_maintainer_mode+set}" = set; then
1522   enableval="$enable_maintainer_mode"
1523   USE_MAINTAINER_MODE=$enableval
1524 else
1525   USE_MAINTAINER_MODE=no
1526 fi;
1527   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1528 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1529
1530
1531 if test $USE_MAINTAINER_MODE = yes; then
1532   MAINTAINER_MODE_TRUE=
1533   MAINTAINER_MODE_FALSE='#'
1534 else
1535   MAINTAINER_MODE_TRUE='#'
1536   MAINTAINER_MODE_FALSE=
1537 fi
1538
1539   MAINT=$MAINTAINER_MODE_TRUE
1540
1541
1542
1543 ## ------------------------------- ##
1544 ## Libltdl specific configuration. ##
1545 ## ------------------------------- ##
1546
1547 ac_aux_dir=
1548 for ac_dir in . $srcdir/.; do
1549   if test -f $ac_dir/install-sh; then
1550     ac_aux_dir=$ac_dir
1551     ac_install_sh="$ac_aux_dir/install-sh -c"
1552     break
1553   elif test -f $ac_dir/install.sh; then
1554     ac_aux_dir=$ac_dir
1555     ac_install_sh="$ac_aux_dir/install.sh -c"
1556     break
1557   elif test -f $ac_dir/shtool; then
1558     ac_aux_dir=$ac_dir
1559     ac_install_sh="$ac_aux_dir/shtool install -c"
1560     break
1561   fi
1562 done
1563 if test -z "$ac_aux_dir"; then
1564   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1565 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1566    { (exit 1); exit 1; }; }
1567 fi
1568 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1569 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1570 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1571
1572
1573 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1574   if test -f ${srcdir}/ltmain.sh; then
1575     # if libltdl is libtoolized, it is assumed to be stand-alone and
1576     # installed unless the command line overrides it (tested above)
1577     enable_ltdl_install=yes
1578   else
1579     { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1580 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1581     { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1582 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1583     { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1584 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1585    { (exit 1); exit 1; }; }
1586   fi
1587 fi
1588
1589
1590 ## ------------------------ ##
1591 ## Automake Initialisation. ##
1592 ## ------------------------ ##
1593 am__api_version="1.9"
1594 # Find a good install program.  We prefer a C program (faster),
1595 # so one script is as good as another.  But avoid the broken or
1596 # incompatible versions:
1597 # SysV /etc/install, /usr/sbin/install
1598 # SunOS /usr/etc/install
1599 # IRIX /sbin/install
1600 # AIX /bin/install
1601 # AmigaOS /C/install, which installs bootblocks on floppy discs
1602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1605 # OS/2's system install, which has a completely different semantic
1606 # ./install, which can be erroneously created by make from ./install.sh.
1607 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1608 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1609 if test -z "$INSTALL"; then
1610 if test "${ac_cv_path_install+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1615 do
1616   IFS=$as_save_IFS
1617   test -z "$as_dir" && as_dir=.
1618   # Account for people who put trailing slashes in PATH elements.
1619 case $as_dir/ in
1620   ./ | .// | /cC/* | \
1621   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1622   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1623   /usr/ucb/* ) ;;
1624   *)
1625     # OSF1 and SCO ODT 3.0 have their own names for install.
1626     # Don't use installbsd from OSF since it installs stuff as root
1627     # by default.
1628     for ac_prog in ginstall scoinst install; do
1629       for ac_exec_ext in '' $ac_executable_extensions; do
1630         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1631           if test $ac_prog = install &&
1632             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1633             # AIX install.  It has an incompatible calling convention.
1634             :
1635           elif test $ac_prog = install &&
1636             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1637             # program-specific install script used by HP pwplus--don't use.
1638             :
1639           else
1640             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1641             break 3
1642           fi
1643         fi
1644       done
1645     done
1646     ;;
1647 esac
1648 done
1649
1650
1651 fi
1652   if test "${ac_cv_path_install+set}" = set; then
1653     INSTALL=$ac_cv_path_install
1654   else
1655     # As a last resort, use the slow shell script.  We don't cache a
1656     # path for INSTALL within a source directory, because that will
1657     # break other packages using the cache if that directory is
1658     # removed, or if the path is relative.
1659     INSTALL=$ac_install_sh
1660   fi
1661 fi
1662 echo "$as_me:$LINENO: result: $INSTALL" >&5
1663 echo "${ECHO_T}$INSTALL" >&6
1664
1665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1666 # It thinks the first close brace ends the variable substitution.
1667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1668
1669 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1670
1671 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1672
1673 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1674 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1675 # Just in case
1676 sleep 1
1677 echo timestamp > conftest.file
1678 # Do `set' in a subshell so we don't clobber the current shell's
1679 # arguments.  Must try -L first in case configure is actually a
1680 # symlink; some systems play weird games with the mod time of symlinks
1681 # (eg FreeBSD returns the mod time of the symlink's containing
1682 # directory).
1683 if (
1684    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1685    if test "$*" = "X"; then
1686       # -L didn't work.
1687       set X `ls -t $srcdir/configure conftest.file`
1688    fi
1689    rm -f conftest.file
1690    if test "$*" != "X $srcdir/configure conftest.file" \
1691       && test "$*" != "X conftest.file $srcdir/configure"; then
1692
1693       # If neither matched, then we have a broken ls.  This can happen
1694       # if, for instance, CONFIG_SHELL is bash and it inherits a
1695       # broken ls alias from the environment.  This has actually
1696       # happened.  Such a system could not be considered "sane".
1697       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1698 alias in your environment" >&5
1699 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1700 alias in your environment" >&2;}
1701    { (exit 1); exit 1; }; }
1702    fi
1703
1704    test "$2" = conftest.file
1705    )
1706 then
1707    # Ok.
1708    :
1709 else
1710    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1711 Check your system clock" >&5
1712 echo "$as_me: error: newly created file is older than distributed files!
1713 Check your system clock" >&2;}
1714    { (exit 1); exit 1; }; }
1715 fi
1716 echo "$as_me:$LINENO: result: yes" >&5
1717 echo "${ECHO_T}yes" >&6
1718 test "$program_prefix" != NONE &&
1719   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1720 # Use a double $ so make ignores it.
1721 test "$program_suffix" != NONE &&
1722   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1723 # Double any \ or $.  echo might interpret backslashes.
1724 # By default was `s,x,x', remove it if useless.
1725 cat <<\_ACEOF >conftest.sed
1726 s/[\\$]/&&/g;s/;s,x,x,$//
1727 _ACEOF
1728 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1729 rm conftest.sed
1730
1731 # expand $ac_aux_dir to an absolute path
1732 am_aux_dir=`cd $ac_aux_dir && pwd`
1733
1734 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1735 # Use eval to expand $SHELL
1736 if eval "$MISSING --run true"; then
1737   am_missing_run="$MISSING --run "
1738 else
1739   am_missing_run=
1740   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1741 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1742 fi
1743
1744 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1745   # We used to keeping the `.' as first argument, in order to
1746   # allow $(mkdir_p) to be used without argument.  As in
1747   #   $(mkdir_p) $(somedir)
1748   # where $(somedir) is conditionally defined.  However this is wrong
1749   # for two reasons:
1750   #  1. if the package is installed by a user who cannot write `.'
1751   #     make install will fail,
1752   #  2. the above comment should most certainly read
1753   #     $(mkdir_p) $(DESTDIR)$(somedir)
1754   #     so it does not work when $(somedir) is undefined and
1755   #     $(DESTDIR) is not.
1756   #  To support the latter case, we have to write
1757   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1758   #  so the `.' trick is pointless.
1759   mkdir_p='mkdir -p --'
1760 else
1761   # On NextStep and OpenStep, the `mkdir' command does not
1762   # recognize any option.  It will interpret all options as
1763   # directories to create, and then abort because `.' already
1764   # exists.
1765   for d in ./-p ./--version;
1766   do
1767     test -d $d && rmdir $d
1768   done
1769   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1770   if test -f "$ac_aux_dir/mkinstalldirs"; then
1771     mkdir_p='$(mkinstalldirs)'
1772   else
1773     mkdir_p='$(install_sh) -d'
1774   fi
1775 fi
1776
1777 for ac_prog in gawk mawk nawk awk
1778 do
1779   # Extract the first word of "$ac_prog", so it can be a program name with args.
1780 set dummy $ac_prog; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_AWK+set}" = set; then
1784   echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786   if test -n "$AWK"; then
1787   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1791 do
1792   IFS=$as_save_IFS
1793   test -z "$as_dir" && as_dir=.
1794   for ac_exec_ext in '' $ac_executable_extensions; do
1795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796     ac_cv_prog_AWK="$ac_prog"
1797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798     break 2
1799   fi
1800 done
1801 done
1802
1803 fi
1804 fi
1805 AWK=$ac_cv_prog_AWK
1806 if test -n "$AWK"; then
1807   echo "$as_me:$LINENO: result: $AWK" >&5
1808 echo "${ECHO_T}$AWK" >&6
1809 else
1810   echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1812 fi
1813
1814   test -n "$AWK" && break
1815 done
1816
1817 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1820 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   cat >conftest.make <<\_ACEOF
1824 all:
1825         @echo 'ac_maketemp="$(MAKE)"'
1826 _ACEOF
1827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1828 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1829 if test -n "$ac_maketemp"; then
1830   eval ac_cv_prog_make_${ac_make}_set=yes
1831 else
1832   eval ac_cv_prog_make_${ac_make}_set=no
1833 fi
1834 rm -f conftest.make
1835 fi
1836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1837   echo "$as_me:$LINENO: result: yes" >&5
1838 echo "${ECHO_T}yes" >&6
1839   SET_MAKE=
1840 else
1841   echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843   SET_MAKE="MAKE=${MAKE-make}"
1844 fi
1845
1846 rm -rf .tst 2>/dev/null
1847 mkdir .tst 2>/dev/null
1848 if test -d .tst; then
1849   am__leading_dot=.
1850 else
1851   am__leading_dot=_
1852 fi
1853 rmdir .tst 2>/dev/null
1854
1855 # test to see if srcdir already configured
1856 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1857    test -f $srcdir/config.status; then
1858   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1859 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1860    { (exit 1); exit 1; }; }
1861 fi
1862
1863 # test whether we have cygpath
1864 if test -z "$CYGPATH_W"; then
1865   if (cygpath --version) >/dev/null 2>/dev/null; then
1866     CYGPATH_W='cygpath -w'
1867   else
1868     CYGPATH_W=echo
1869   fi
1870 fi
1871
1872
1873 # Define the identity of the package.
1874  PACKAGE=libltdl
1875  VERSION=1.2
1876
1877
1878 # Some tools Automake needs.
1879
1880 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1881
1882
1883 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1884
1885
1886 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1887
1888
1889 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1890
1891
1892 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1893
1894 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1895
1896 # Installed binaries are usually stripped using `strip' when the user
1897 # run `make install-strip'.  However `strip' might not be the right
1898 # tool to use in cross-compilation environments, therefore Automake
1899 # will honor the `STRIP' environment variable to overrule this program.
1900 if test "$cross_compiling" != no; then
1901   if test -n "$ac_tool_prefix"; then
1902   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1903 set dummy ${ac_tool_prefix}strip; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_STRIP+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   if test -n "$STRIP"; then
1910   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917   for ac_exec_ext in '' $ac_executable_extensions; do
1918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921     break 2
1922   fi
1923 done
1924 done
1925
1926 fi
1927 fi
1928 STRIP=$ac_cv_prog_STRIP
1929 if test -n "$STRIP"; then
1930   echo "$as_me:$LINENO: result: $STRIP" >&5
1931 echo "${ECHO_T}$STRIP" >&6
1932 else
1933   echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1935 fi
1936
1937 fi
1938 if test -z "$ac_cv_prog_STRIP"; then
1939   ac_ct_STRIP=$STRIP
1940   # Extract the first word of "strip", so it can be a program name with args.
1941 set dummy strip; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1945   echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947   if test -n "$ac_ct_STRIP"; then
1948   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1952 do
1953   IFS=$as_save_IFS
1954   test -z "$as_dir" && as_dir=.
1955   for ac_exec_ext in '' $ac_executable_extensions; do
1956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957     ac_cv_prog_ac_ct_STRIP="strip"
1958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959     break 2
1960   fi
1961 done
1962 done
1963
1964   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1965 fi
1966 fi
1967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1968 if test -n "$ac_ct_STRIP"; then
1969   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1970 echo "${ECHO_T}$ac_ct_STRIP" >&6
1971 else
1972   echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1974 fi
1975
1976   STRIP=$ac_ct_STRIP
1977 else
1978   STRIP="$ac_cv_prog_STRIP"
1979 fi
1980
1981 fi
1982 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1983
1984 # We need awk for the "check" target.  The system "awk" is bad on
1985 # some platforms.
1986 # Always define AMTAR for backward compatibility.
1987
1988 AMTAR=${AMTAR-"${am_missing_run}tar"}
1989
1990 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1991
1992
1993
1994
1995
1996           ac_config_headers="$ac_config_headers config.h:config-h.in"
1997
1998
1999
2000 ## ------------------ ##
2001 ## C compiler checks. ##
2002 ## ------------------ ##
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   if test -n "$CC"; then
2017   ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022   IFS=$as_save_IFS
2023   test -z "$as_dir" && as_dir=.
2024   for ac_exec_ext in '' $ac_executable_extensions; do
2025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028     break 2
2029   fi
2030 done
2031 done
2032
2033 fi
2034 fi
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037   echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040   echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2042 fi
2043
2044 fi
2045 if test -z "$ac_cv_prog_CC"; then
2046   ac_ct_CC=$CC
2047   # Extract the first word of "gcc", so it can be a program name with args.
2048 set dummy gcc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test -n "$ac_ct_CC"; then
2055   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064     ac_cv_prog_ac_ct_CC="gcc"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070
2071 fi
2072 fi
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082   CC=$ac_ct_CC
2083 else
2084   CC="$ac_cv_prog_CC"
2085 fi
2086
2087 if test -z "$CC"; then
2088   if test -n "$ac_tool_prefix"; then
2089   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}cc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test -n "$CC"; then
2097   ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   for ac_exec_ext in '' $ac_executable_extensions; do
2105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106     ac_cv_prog_CC="${ac_tool_prefix}cc"
2107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108     break 2
2109   fi
2110 done
2111 done
2112
2113 fi
2114 fi
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117   echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120   echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2122 fi
2123
2124 fi
2125 if test -z "$ac_cv_prog_CC"; then
2126   ac_ct_CC=$CC
2127   # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   if test -n "$ac_ct_CC"; then
2135   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140   IFS=$as_save_IFS
2141   test -z "$as_dir" && as_dir=.
2142   for ac_exec_ext in '' $ac_executable_extensions; do
2143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144     ac_cv_prog_ac_ct_CC="cc"
2145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146     break 2
2147   fi
2148 done
2149 done
2150
2151 fi
2152 fi
2153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2154 if test -n "$ac_ct_CC"; then
2155   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2156 echo "${ECHO_T}$ac_ct_CC" >&6
2157 else
2158   echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2160 fi
2161
2162   CC=$ac_ct_CC
2163 else
2164   CC="$ac_cv_prog_CC"
2165 fi
2166
2167 fi
2168 if test -z "$CC"; then
2169   # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test -n "$CC"; then
2177   ac_cv_prog_CC="$CC" # Let the user override the test.
2178 else
2179   ac_prog_rejected=no
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2182 do
2183   IFS=$as_save_IFS
2184   test -z "$as_dir" && as_dir=.
2185   for ac_exec_ext in '' $ac_executable_extensions; do
2186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188        ac_prog_rejected=yes
2189        continue
2190      fi
2191     ac_cv_prog_CC="cc"
2192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193     break 2
2194   fi
2195 done
2196 done
2197
2198 if test $ac_prog_rejected = yes; then
2199   # We found a bogon in the path, so make sure we never use it.
2200   set dummy $ac_cv_prog_CC
2201   shift
2202   if test $# != 0; then
2203     # We chose a different compiler from the bogus one.
2204     # However, it has the same basename, so the bogon will be chosen
2205     # first if we set CC to just the basename; use the full file name.
2206     shift
2207     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2208   fi
2209 fi
2210 fi
2211 fi
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214   echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2216 else
2217   echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2219 fi
2220
2221 fi
2222 if test -z "$CC"; then
2223   if test -n "$ac_tool_prefix"; then
2224   for ac_prog in cl
2225   do
2226     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test -n "$CC"; then
2234   ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239   IFS=$as_save_IFS
2240   test -z "$as_dir" && as_dir=.
2241   for ac_exec_ext in '' $ac_executable_extensions; do
2242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245     break 2
2246   fi
2247 done
2248 done
2249
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254   echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257   echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2259 fi
2260
2261     test -n "$CC" && break
2262   done
2263 fi
2264 if test -z "$CC"; then
2265   ac_ct_CC=$CC
2266   for ac_prog in cl
2267 do
2268   # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275   if test -n "$ac_ct_CC"; then
2276   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   for ac_exec_ext in '' $ac_executable_extensions; do
2284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285     ac_cv_prog_ac_ct_CC="$ac_prog"
2286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287     break 2
2288   fi
2289 done
2290 done
2291
2292 fi
2293 fi
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6
2298 else
2299   echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2301 fi
2302
2303   test -n "$ac_ct_CC" && break
2304 done
2305
2306   CC=$ac_ct_CC
2307 fi
2308
2309 fi
2310
2311
2312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&2;}
2316    { (exit 1); exit 1; }; }
2317
2318 # Provide some information about the compiler.
2319 echo "$as_me:$LINENO:" \
2320      "checking for C compiler version" >&5
2321 ac_compiler=`set X $ac_compile; echo $2`
2322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2323   (eval $ac_compiler --version </dev/null >&5) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }
2327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2328   (eval $ac_compiler -v </dev/null >&5) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }
2332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2333   (eval $ac_compiler -V </dev/null >&5) 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }
2337
2338 cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h.  */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h.  */
2344
2345 int
2346 main ()
2347 {
2348
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 ac_clean_files_save=$ac_clean_files
2354 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355 # Try to create an executable without -o first, disregard a.out.
2356 # It will help us diagnose broken compilers, and finding out an intuition
2357 # of exeext.
2358 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2360 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2362   (eval $ac_link_default) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; then
2366   # Find the output, starting from the most likely.  This scheme is
2367 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2368 # resort.
2369
2370 # Be careful to initialize this variable, since it used to be cached.
2371 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2372 ac_cv_exeext=
2373 # b.out is created by i960 compilers.
2374 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2375 do
2376   test -f "$ac_file" || continue
2377   case $ac_file in
2378     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2379         ;;
2380     conftest.$ac_ext )
2381         # This is the source file.
2382         ;;
2383     [ab].out )
2384         # We found the default executable, but exeext='' is most
2385         # certainly right.
2386         break;;
2387     *.* )
2388         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389         # FIXME: I believe we export ac_cv_exeext for Libtool,
2390         # but it would be cool to find out if it's true.  Does anybody
2391         # maintain Libtool? --akim.
2392         export ac_cv_exeext
2393         break;;
2394     * )
2395         break;;
2396   esac
2397 done
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&2;}
2406    { (exit 77); exit 77; }; }
2407 fi
2408
2409 ac_exeext=$ac_cv_exeext
2410 echo "$as_me:$LINENO: result: $ac_file" >&5
2411 echo "${ECHO_T}$ac_file" >&6
2412
2413 # Check the compiler produces executables we can run.  If not, either
2414 # the compiler is broken, or we cross compile.
2415 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418 # If not cross compiling, check that we can run a simple program.
2419 if test "$cross_compiling" != yes; then
2420   if { ac_try='./$ac_file'
2421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422   (eval $ac_try) 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; }; then
2426     cross_compiling=no
2427   else
2428     if test "$cross_compiling" = maybe; then
2429         cross_compiling=yes
2430     else
2431         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437    { (exit 1); exit 1; }; }
2438     fi
2439   fi
2440 fi
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2443
2444 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445 ac_clean_files=$ac_clean_files_save
2446 # Check the compiler produces executables we can run.  If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2450 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6
2452
2453 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2456   (eval $ac_link) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }; then
2460   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2461 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2462 # work properly (i.e., refer to `conftest.exe'), while it won't with
2463 # `rm'.
2464 for ac_file in conftest.exe conftest conftest.*; do
2465   test -f "$ac_file" || continue
2466   case $ac_file in
2467     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2468     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2469           export ac_cv_exeext
2470           break;;
2471     * ) break;;
2472   esac
2473 done
2474 else
2475   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2478 See \`config.log' for more details." >&2;}
2479    { (exit 1); exit 1; }; }
2480 fi
2481
2482 rm -f conftest$ac_cv_exeext
2483 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2484 echo "${ECHO_T}$ac_cv_exeext" >&6
2485
2486 rm -f conftest.$ac_ext
2487 EXEEXT=$ac_cv_exeext
2488 ac_exeext=$EXEEXT
2489 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2490 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2491 if test "${ac_cv_objext+set}" = set; then
2492   echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494   cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h.  */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h.  */
2500
2501 int
2502 main ()
2503 {
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 rm -f conftest.o conftest.obj
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511   (eval $ac_compile) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; then
2515   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2516   case $ac_file in
2517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2518     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2519        break;;
2520   esac
2521 done
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&2;}
2530    { (exit 1); exit 1; }; }
2531 fi
2532
2533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2534 fi
2535 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6
2537 OBJEXT=$ac_cv_objext
2538 ac_objext=$OBJEXT
2539 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550
2551 int
2552 main ()
2553 {
2554 #ifndef __GNUC__
2555        choke me
2556 #endif
2557
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564   (eval $ac_compile) 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -z "$ac_c_werror_flag"
2572                          || test ! -s conftest.err'
2573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574   (eval $ac_try) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }; } &&
2578          { ac_try='test -s conftest.$ac_objext'
2579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580   (eval $ac_try) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; }; then
2584   ac_compiler_gnu=yes
2585 else
2586   echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2588
2589 ac_compiler_gnu=no
2590 fi
2591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2592 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2593
2594 fi
2595 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2596 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2597 GCC=`test $ac_compiler_gnu = yes && echo yes`
2598 ac_test_CFLAGS=${CFLAGS+set}
2599 ac_save_CFLAGS=$CFLAGS
2600 CFLAGS="-g"
2601 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2602 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2603 if test "${ac_cv_prog_cc_g+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h.  */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h.  */
2612
2613 int
2614 main ()
2615 {
2616
2617   ;
2618   return 0;
2619 }
2620 _ACEOF
2621 rm -f conftest.$ac_objext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623   (eval $ac_compile) 2>conftest.er1
2624   ac_status=$?
2625   grep -v '^ *+' conftest.er1 >conftest.err
2626   rm -f conftest.er1
2627   cat conftest.err >&5
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } &&
2630          { ac_try='test -z "$ac_c_werror_flag"
2631                          || test ! -s conftest.err'
2632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633   (eval $ac_try) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; } &&
2637          { ac_try='test -s conftest.$ac_objext'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; }; then
2643   ac_cv_prog_cc_g=yes
2644 else
2645   echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648 ac_cv_prog_cc_g=no
2649 fi
2650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651 fi
2652 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2653 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2654 if test "$ac_test_CFLAGS" = set; then
2655   CFLAGS=$ac_save_CFLAGS
2656 elif test $ac_cv_prog_cc_g = yes; then
2657   if test "$GCC" = yes; then
2658     CFLAGS="-g -O2"
2659   else
2660     CFLAGS="-g"
2661   fi
2662 else
2663   if test "$GCC" = yes; then
2664     CFLAGS="-O2"
2665   else
2666     CFLAGS=
2667   fi
2668 fi
2669 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2670 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2671 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674   ac_cv_prog_cc_stdc=no
2675 ac_save_CC=$CC
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682 #include <stdarg.h>
2683 #include <stdio.h>
2684 #include <sys/types.h>
2685 #include <sys/stat.h>
2686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2687 struct buf { int x; };
2688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2689 static char *e (p, i)
2690      char **p;
2691      int i;
2692 {
2693   return p[i];
2694 }
2695 static char *f (char * (*g) (char **, int), char **p, ...)
2696 {
2697   char *s;
2698   va_list v;
2699   va_start (v,p);
2700   s = g (p, va_arg (v,int));
2701   va_end (v);
2702   return s;
2703 }
2704
2705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2706    function prototypes and stuff, but not '\xHH' hex character constants.
2707    These don't provoke an error unfortunately, instead are silently treated
2708    as 'x'.  The following induces an error, until -std1 is added to get
2709    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2710    array size at least.  It's necessary to write '\x00'==0 to get something
2711    that's true only with -std1.  */
2712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2713
2714 int test (int i, double x);
2715 struct s1 {int (*f) (int a);};
2716 struct s2 {int (*f) (double a);};
2717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2718 int argc;
2719 char **argv;
2720 int
2721 main ()
2722 {
2723 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2724   ;
2725   return 0;
2726 }
2727 _ACEOF
2728 # Don't try gcc -ansi; that turns off useful extensions and
2729 # breaks some systems' header files.
2730 # AIX                   -qlanglvl=ansi
2731 # Ultrix and OSF/1      -std1
2732 # HP-UX 10.20 and later -Ae
2733 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2734 # SVR4                  -Xc -D__EXTENSIONS__
2735 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2736 do
2737   CC="$ac_save_CC $ac_arg"
2738   rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740   (eval $ac_compile) 2>conftest.er1
2741   ac_status=$?
2742   grep -v '^ *+' conftest.er1 >conftest.err
2743   rm -f conftest.er1
2744   cat conftest.err >&5
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747          { ac_try='test -z "$ac_c_werror_flag"
2748                          || test ! -s conftest.err'
2749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750   (eval $ac_try) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; } &&
2754          { ac_try='test -s conftest.$ac_objext'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760   ac_cv_prog_cc_stdc=$ac_arg
2761 break
2762 else
2763   echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2765
2766 fi
2767 rm -f conftest.err conftest.$ac_objext
2768 done
2769 rm -f conftest.$ac_ext conftest.$ac_objext
2770 CC=$ac_save_CC
2771
2772 fi
2773
2774 case "x$ac_cv_prog_cc_stdc" in
2775   x|xno)
2776     echo "$as_me:$LINENO: result: none needed" >&5
2777 echo "${ECHO_T}none needed" >&6 ;;
2778   *)
2779     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2780 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2781     CC="$CC $ac_cv_prog_cc_stdc" ;;
2782 esac
2783
2784 # Some people use a C++ compiler to compile C.  Since we use `exit',
2785 # in C++ we need to declare it.  In case someone uses the same compiler
2786 # for both compiling C and C++ we need to have the C++ compiler decide
2787 # the declaration of exit, since it's the most demanding environment.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #ifndef __cplusplus
2790   choke me
2791 #endif
2792 _ACEOF
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795   (eval $ac_compile) 2>conftest.er1
2796   ac_status=$?
2797   grep -v '^ *+' conftest.er1 >conftest.err
2798   rm -f conftest.er1
2799   cat conftest.err >&5
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); } &&
2802          { ac_try='test -z "$ac_c_werror_flag"
2803                          || test ! -s conftest.err'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; } &&
2809          { ac_try='test -s conftest.$ac_objext'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; }; then
2815   for ac_declaration in \
2816    '' \
2817    'extern "C" void std::exit (int) throw (); using std::exit;' \
2818    'extern "C" void std::exit (int); using std::exit;' \
2819    'extern "C" void exit (int) throw ();' \
2820    'extern "C" void exit (int);' \
2821    'void exit (int);'
2822 do
2823   cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h.  */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h.  */
2829 $ac_declaration
2830 #include <stdlib.h>
2831 int
2832 main ()
2833 {
2834 exit (42);
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841   (eval $ac_compile) 2>conftest.er1
2842   ac_status=$?
2843   grep -v '^ *+' conftest.er1 >conftest.err
2844   rm -f conftest.er1
2845   cat conftest.err >&5
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); } &&
2848          { ac_try='test -z "$ac_c_werror_flag"
2849                          || test ! -s conftest.err'
2850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; } &&
2855          { ac_try='test -s conftest.$ac_objext'
2856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857   (eval $ac_try) 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); }; }; then
2861   :
2862 else
2863   echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866 continue
2867 fi
2868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869   cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h.  */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h.  */
2875 $ac_declaration
2876 int
2877 main ()
2878 {
2879 exit (42);
2880   ;
2881   return 0;
2882 }
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886   (eval $ac_compile) 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } &&
2893          { ac_try='test -z "$ac_c_werror_flag"
2894                          || test ! -s conftest.err'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; } &&
2900          { ac_try='test -s conftest.$ac_objext'
2901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902   (eval $ac_try) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; }; then
2906   break
2907 else
2908   echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2910
2911 fi
2912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2913 done
2914 rm -f conftest*
2915 if test -n "$ac_declaration"; then
2916   echo '#ifdef __cplusplus' >>confdefs.h
2917   echo $ac_declaration      >>confdefs.h
2918   echo '#endif'             >>confdefs.h
2919 fi
2920
2921 else
2922   echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2924
2925 fi
2926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2927 ac_ext=c
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932 DEPDIR="${am__leading_dot}deps"
2933
2934           ac_config_commands="$ac_config_commands depfiles"
2935
2936
2937 am_make=${MAKE-make}
2938 cat > confinc << 'END'
2939 am__doit:
2940         @echo done
2941 .PHONY: am__doit
2942 END
2943 # If we don't find an include directive, just comment out the code.
2944 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2945 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2946 am__include="#"
2947 am__quote=
2948 _am_result=none
2949 # First try GNU make style include.
2950 echo "include confinc" > confmf
2951 # We grep out `Entering directory' and `Leaving directory'
2952 # messages which can occur if `w' ends up in MAKEFLAGS.
2953 # In particular we don't look at `^make:' because GNU make might
2954 # be invoked under some other name (usually "gmake"), in which
2955 # case it prints its new name instead of `make'.
2956 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2957    am__include=include
2958    am__quote=
2959    _am_result=GNU
2960 fi
2961 # Now try BSD make style include.
2962 if test "$am__include" = "#"; then
2963    echo '.include "confinc"' > confmf
2964    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2965       am__include=.include
2966       am__quote="\""
2967       _am_result=BSD
2968    fi
2969 fi
2970
2971
2972 echo "$as_me:$LINENO: result: $_am_result" >&5
2973 echo "${ECHO_T}$_am_result" >&6
2974 rm -f confinc confmf
2975
2976 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2977 if test "${enable_dependency_tracking+set}" = set; then
2978   enableval="$enable_dependency_tracking"
2979
2980 fi;
2981 if test "x$enable_dependency_tracking" != xno; then
2982   am_depcomp="$ac_aux_dir/depcomp"
2983   AMDEPBACKSLASH='\'
2984 fi
2985
2986
2987 if test "x$enable_dependency_tracking" != xno; then
2988   AMDEP_TRUE=
2989   AMDEP_FALSE='#'
2990 else
2991   AMDEP_TRUE='#'
2992   AMDEP_FALSE=
2993 fi
2994
2995
2996
2997
2998 depcc="$CC"   am_compiler_list=
2999
3000 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3001 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3002 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3003   echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3006   # We make a subdir and do the tests there.  Otherwise we can end up
3007   # making bogus files that we don't know about and never remove.  For
3008   # instance it was reported that on HP-UX the gcc test will end up
3009   # making a dummy file named `D' -- because `-MD' means `put the output
3010   # in D'.
3011   mkdir conftest.dir
3012   # Copy depcomp to subdir because otherwise we won't find it if we're
3013   # using a relative directory.
3014   cp "$am_depcomp" conftest.dir
3015   cd conftest.dir
3016   # We will build objects and dependencies in a subdirectory because
3017   # it helps to detect inapplicable dependency modes.  For instance
3018   # both Tru64's cc and ICC support -MD to output dependencies as a
3019   # side effect of compilation, but ICC will put the dependencies in
3020   # the current directory while Tru64 will put them in the object
3021   # directory.
3022   mkdir sub
3023
3024   am_cv_CC_dependencies_compiler_type=none
3025   if test "$am_compiler_list" = ""; then
3026      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3027   fi
3028   for depmode in $am_compiler_list; do
3029     # Setup a source with many dependencies, because some compilers
3030     # like to wrap large dependency lists on column 80 (with \), and
3031     # we should not choose a depcomp mode which is confused by this.
3032     #
3033     # We need to recreate these files for each test, as the compiler may
3034     # overwrite some of them when testing with obscure command lines.
3035     # This happens at least with the AIX C compiler.
3036     : > sub/conftest.c
3037     for i in 1 2 3 4 5 6; do
3038       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3039       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3040       # Solaris 8's {/usr,}/bin/sh.
3041       touch sub/conftst$i.h
3042     done
3043     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3044
3045     case $depmode in
3046     nosideeffect)
3047       # after this tag, mechanisms are not by side-effect, so they'll
3048       # only be used when explicitly requested
3049       if test "x$enable_dependency_tracking" = xyes; then
3050         continue
3051       else
3052         break
3053       fi
3054       ;;
3055     none) break ;;
3056     esac
3057     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3058     # mode.  It turns out that the SunPro C++ compiler does not properly
3059     # handle `-M -o', and we need to detect this.
3060     if depmode=$depmode \
3061        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3062        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3063        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3064          >/dev/null 2>conftest.err &&
3065        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3066        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3067        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3068       # icc doesn't choke on unknown options, it will just issue warnings
3069       # or remarks (even with -Werror).  So we grep stderr for any message
3070       # that says an option was ignored or not supported.
3071       # When given -MP, icc 7.0 and 7.1 complain thusly:
3072       #   icc: Command line warning: ignoring option '-M'; no argument required
3073       # The diagnosis changed in icc 8.0:
3074       #   icc: Command line remark: option '-MP' not supported
3075       if (grep 'ignoring option' conftest.err ||
3076           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3077         am_cv_CC_dependencies_compiler_type=$depmode
3078         break
3079       fi
3080     fi
3081   done
3082
3083   cd ..
3084   rm -rf conftest.dir
3085 else
3086   am_cv_CC_dependencies_compiler_type=none
3087 fi
3088
3089 fi
3090 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3091 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3092 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3093
3094
3095
3096 if
3097   test "x$enable_dependency_tracking" != xno \
3098   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3099   am__fastdepCC_TRUE=
3100   am__fastdepCC_FALSE='#'
3101 else
3102   am__fastdepCC_TRUE='#'
3103   am__fastdepCC_FALSE=
3104 fi
3105
3106
3107
3108 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3109 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3110 if test "${ac_cv_c_const+set}" = set; then
3111   echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113   cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119
3120 int
3121 main ()
3122 {
3123 /* FIXME: Include the comments suggested by Paul. */
3124 #ifndef __cplusplus
3125   /* Ultrix mips cc rejects this.  */
3126   typedef int charset[2];
3127   const charset x;
3128   /* SunOS 4.1.1 cc rejects this.  */
3129   char const *const *ccp;
3130   char **p;
3131   /* NEC SVR4.0.2 mips cc rejects this.  */
3132   struct point {int x, y;};
3133   static struct point const zero = {0,0};
3134   /* AIX XL C 1.02.0.0 rejects this.
3135      It does not let you subtract one const X* pointer from another in
3136      an arm of an if-expression whose if-part is not a constant
3137      expression */
3138   const char *g = "string";
3139   ccp = &g + (g ? g-g : 0);
3140   /* HPUX 7.0 cc rejects these. */
3141   ++ccp;
3142   p = (char**) ccp;
3143   ccp = (char const *const *) p;
3144   { /* SCO 3.2v4 cc rejects this.  */
3145     char *t;
3146     char const *s = 0 ? (char *) 0 : (char const *) 0;
3147
3148     *t++ = 0;
3149   }
3150   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3151     int x[] = {25, 17};
3152     const int *foo = &x[0];
3153     ++foo;
3154   }
3155   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3156     typedef const int *iptr;
3157     iptr p = 0;
3158     ++p;
3159   }
3160   { /* AIX XL C 1.02.0.0 rejects this saying
3161        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3162     struct s { int j; const int *ap[3]; };
3163     struct s *b; b->j = 5;
3164   }
3165   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3166     const int foo = 10;
3167   }
3168 #endif
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3176   (eval $ac_compile) 2>conftest.er1
3177   ac_status=$?
3178   grep -v '^ *+' conftest.er1 >conftest.err
3179   rm -f conftest.er1
3180   cat conftest.err >&5
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); } &&
3183          { ac_try='test -z "$ac_c_werror_flag"
3184                          || test ! -s conftest.err'
3185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186   (eval $ac_try) 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); }; } &&
3190          { ac_try='test -s conftest.$ac_objext'
3191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192   (eval $ac_try) 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }; }; then
3196   ac_cv_c_const=yes
3197 else
3198   echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 ac_cv_c_const=no
3202 fi
3203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3204 fi
3205 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3206 echo "${ECHO_T}$ac_cv_c_const" >&6
3207 if test $ac_cv_c_const = no; then
3208
3209 cat >>confdefs.h <<\_ACEOF
3210 #define const
3211 _ACEOF
3212
3213 fi
3214
3215 echo "$as_me:$LINENO: checking for inline" >&5
3216 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3217 if test "${ac_cv_c_inline+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   ac_cv_c_inline=no
3221 for ac_kw in inline __inline__ __inline; do
3222   cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228 #ifndef __cplusplus
3229 typedef int foo_t;
3230 static $ac_kw foo_t static_foo () {return 0; }
3231 $ac_kw foo_t foo () {return 0; }
3232 #endif
3233
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237   (eval $ac_compile) 2>conftest.er1
3238   ac_status=$?
3239   grep -v '^ *+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
3241   cat conftest.err >&5
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } &&
3244          { ac_try='test -z "$ac_c_werror_flag"
3245                          || test ! -s conftest.err'
3246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247   (eval $ac_try) 2>&5
3248   ac_status=$?
3249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250   (exit $ac_status); }; } &&
3251          { ac_try='test -s conftest.$ac_objext'
3252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253   (eval $ac_try) 2>&5
3254   ac_status=$?
3255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256   (exit $ac_status); }; }; then
3257   ac_cv_c_inline=$ac_kw; break
3258 else
3259   echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 fi
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264 done
3265
3266 fi
3267 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3268 echo "${ECHO_T}$ac_cv_c_inline" >&6
3269
3270
3271 case $ac_cv_c_inline in
3272   inline | yes) ;;
3273   *)
3274     case $ac_cv_c_inline in
3275       no) ac_val=;;
3276       *) ac_val=$ac_cv_c_inline;;
3277     esac
3278     cat >>confdefs.h <<_ACEOF
3279 #ifndef __cplusplus
3280 #define inline $ac_val
3281 #endif
3282 _ACEOF
3283     ;;
3284 esac
3285
3286
3287
3288 ## ----------------------- ##
3289 ## Libtool initialisation. ##
3290 ## ----------------------- ##
3291
3292
3293 # Check whether --enable-shared or --disable-shared was given.
3294 if test "${enable_shared+set}" = set; then
3295   enableval="$enable_shared"
3296   p=${PACKAGE-default}
3297     case $enableval in
3298     yes) enable_shared=yes ;;
3299     no) enable_shared=no ;;
3300     *)
3301       enable_shared=no
3302       # Look at the argument we got.  We use all the common list separators.
3303       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3304       for pkg in $enableval; do
3305         IFS="$lt_save_ifs"
3306         if test "X$pkg" = "X$p"; then
3307           enable_shared=yes
3308         fi
3309       done
3310       IFS="$lt_save_ifs"
3311       ;;
3312     esac
3313 else
3314   enable_shared=yes
3315 fi;
3316
3317 # Check whether --enable-static or --disable-static was given.
3318 if test "${enable_static+set}" = set; then
3319   enableval="$enable_static"
3320   p=${PACKAGE-default}
3321     case $enableval in
3322     yes) enable_static=yes ;;
3323     no) enable_static=no ;;
3324     *)
3325      enable_static=no
3326       # Look at the argument we got.  We use all the common list separators.
3327       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3328       for pkg in $enableval; do
3329         IFS="$lt_save_ifs"
3330         if test "X$pkg" = "X$p"; then
3331           enable_static=yes
3332         fi
3333       done
3334       IFS="$lt_save_ifs"
3335       ;;
3336     esac
3337 else
3338   enable_static=yes
3339 fi;
3340
3341 # Check whether --enable-fast-install or --disable-fast-install was given.
3342 if test "${enable_fast_install+set}" = set; then
3343   enableval="$enable_fast_install"
3344   p=${PACKAGE-default}
3345     case $enableval in
3346     yes) enable_fast_install=yes ;;
3347     no) enable_fast_install=no ;;
3348     *)
3349       enable_fast_install=no
3350       # Look at the argument we got.  We use all the common list separators.
3351       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3352       for pkg in $enableval; do
3353         IFS="$lt_save_ifs"
3354         if test "X$pkg" = "X$p"; then
3355           enable_fast_install=yes
3356         fi
3357       done
3358       IFS="$lt_save_ifs"
3359       ;;
3360     esac
3361 else
3362   enable_fast_install=yes
3363 fi;
3364
3365 # Make sure we can run config.sub.
3366 $ac_config_sub sun4 >/dev/null 2>&1 ||
3367   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3368 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3369    { (exit 1); exit 1; }; }
3370
3371 echo "$as_me:$LINENO: checking build system type" >&5
3372 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3373 if test "${ac_cv_build+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376   ac_cv_build_alias=$build_alias
3377 test -z "$ac_cv_build_alias" &&
3378   ac_cv_build_alias=`$ac_config_guess`
3379 test -z "$ac_cv_build_alias" &&
3380   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3381 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3382    { (exit 1); exit 1; }; }
3383 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3384   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3385 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3386    { (exit 1); exit 1; }; }
3387
3388 fi
3389 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3390 echo "${ECHO_T}$ac_cv_build" >&6
3391 build=$ac_cv_build
3392 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3393 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3394 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3395
3396
3397 echo "$as_me:$LINENO: checking host system type" >&5
3398 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3399 if test "${ac_cv_host+set}" = set; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402   ac_cv_host_alias=$host_alias
3403 test -z "$ac_cv_host_alias" &&
3404   ac_cv_host_alias=$ac_cv_build_alias
3405 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3406   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3407 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3408    { (exit 1); exit 1; }; }
3409
3410 fi
3411 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3412 echo "${ECHO_T}$ac_cv_host" >&6
3413 host=$ac_cv_host
3414 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3415 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3416 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3417
3418
3419 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3420 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3421 if test "${lt_cv_path_SED+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   # Loop through the user's path and test for sed and gsed.
3425 # Then use that list of sed's as ones to test for truncation.
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for lt_ac_prog in sed gsed; do
3432     for ac_exec_ext in '' $ac_executable_extensions; do
3433       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3434         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3435       fi
3436     done
3437   done
3438 done
3439 lt_ac_max=0
3440 lt_ac_count=0
3441 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3442 # along with /bin/sed that truncates output.
3443 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3444   test ! -f $lt_ac_sed && continue
3445   cat /dev/null > conftest.in
3446   lt_ac_count=0
3447   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3448   # Check for GNU sed and select it if it is found.
3449   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3450     lt_cv_path_SED=$lt_ac_sed
3451     break
3452   fi
3453   while true; do
3454     cat conftest.in conftest.in >conftest.tmp
3455     mv conftest.tmp conftest.in
3456     cp conftest.in conftest.nl
3457     echo >>conftest.nl
3458     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3459     cmp -s conftest.out conftest.nl || break
3460     # 10000 chars as input seems more than enough
3461     test $lt_ac_count -gt 10 && break
3462     lt_ac_count=`expr $lt_ac_count + 1`
3463     if test $lt_ac_count -gt $lt_ac_max; then
3464       lt_ac_max=$lt_ac_count
3465       lt_cv_path_SED=$lt_ac_sed
3466     fi
3467   done
3468 done
3469
3470 fi
3471
3472 SED=$lt_cv_path_SED
3473 echo "$as_me:$LINENO: result: $SED" >&5
3474 echo "${ECHO_T}$SED" >&6
3475
3476 echo "$as_me:$LINENO: checking for egrep" >&5
3477 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3478 if test "${ac_cv_prog_egrep+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3482     then ac_cv_prog_egrep='grep -E'
3483     else ac_cv_prog_egrep='egrep'
3484     fi
3485 fi
3486 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3487 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3488  EGREP=$ac_cv_prog_egrep
3489
3490
3491
3492 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3493 if test "${with_gnu_ld+set}" = set; then
3494   withval="$with_gnu_ld"
3495   test "$withval" = no || with_gnu_ld=yes
3496 else
3497   with_gnu_ld=no
3498 fi;
3499 ac_prog=ld
3500 if test "$GCC" = yes; then
3501   # Check if gcc -print-prog-name=ld gives a path.
3502   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3503 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3504   case $host in
3505   *-*-mingw*)
3506     # gcc leaves a trailing carriage return which upsets mingw
3507     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3508   *)
3509     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3510   esac
3511   case $ac_prog in
3512     # Accept absolute paths.
3513     [\\/]* | ?:[\\/]*)
3514       re_direlt='/[^/][^/]*/\.\./'
3515       # Canonicalize the pathname of ld
3516       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3517       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3518         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3519       done
3520       test -z "$LD" && LD="$ac_prog"
3521       ;;
3522   "")
3523     # If it fails, then pretend we aren't using GCC.
3524     ac_prog=ld
3525     ;;
3526   *)
3527     # If it is relative, then search for the first ld in PATH.
3528     with_gnu_ld=unknown
3529     ;;
3530   esac
3531 elif test "$with_gnu_ld" = yes; then
3532   echo "$as_me:$LINENO: checking for GNU ld" >&5
3533 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3534 else
3535   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3536 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3537 fi
3538 if test "${lt_cv_path_LD+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   if test -z "$LD"; then
3542   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3543   for ac_dir in $PATH; do
3544     IFS="$lt_save_ifs"
3545     test -z "$ac_dir" && ac_dir=.
3546     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3547       lt_cv_path_LD="$ac_dir/$ac_prog"
3548       # Check to see if the program is GNU ld.  I'd rather use --version,
3549       # but apparently some GNU ld's only accept -v.
3550       # Break only if it was the GNU/non-GNU ld that we prefer.
3551       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3552       *GNU* | *'with BFD'*)
3553         test "$with_gnu_ld" != no && break
3554         ;;
3555       *)
3556         test "$with_gnu_ld" != yes && break
3557         ;;
3558       esac
3559     fi
3560   done
3561   IFS="$lt_save_ifs"
3562 else
3563   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3564 fi
3565 fi
3566
3567 LD="$lt_cv_path_LD"
3568 if test -n "$LD"; then
3569   echo "$as_me:$LINENO: result: $LD" >&5
3570 echo "${ECHO_T}$LD" >&6
3571 else
3572   echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3574 fi
3575 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3576 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3577    { (exit 1); exit 1; }; }
3578 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3579 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3580 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3584 case `$LD -v 2>&1 </dev/null` in
3585 *GNU* | *'with BFD'*)
3586   lt_cv_prog_gnu_ld=yes
3587   ;;
3588 *)
3589   lt_cv_prog_gnu_ld=no
3590   ;;
3591 esac
3592 fi
3593 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3594 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3595 with_gnu_ld=$lt_cv_prog_gnu_ld
3596
3597
3598 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3599 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3600 if test "${lt_cv_ld_reload_flag+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   lt_cv_ld_reload_flag='-r'
3604 fi
3605 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3606 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3607 reload_flag=$lt_cv_ld_reload_flag
3608 case $reload_flag in
3609 "" | " "*) ;;
3610 *) reload_flag=" $reload_flag" ;;
3611 esac
3612 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3613 case $host_os in
3614   darwin*)
3615     if test "$GCC" = yes; then
3616       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3617     else
3618       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3619     fi
3620     ;;
3621 esac
3622
3623 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3624 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3625 if test "${lt_cv_path_NM+set}" = set; then
3626   echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628   if test -n "$NM"; then
3629   # Let the user override the test.
3630   lt_cv_path_NM="$NM"
3631 else
3632   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3633   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3634     IFS="$lt_save_ifs"
3635     test -z "$ac_dir" && ac_dir=.
3636     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3637     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3638       # Check to see if the nm accepts a BSD-compat flag.
3639       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3640       #   nm: unknown option "B" ignored
3641       # Tru64's nm complains that /dev/null is an invalid object file
3642       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3643       */dev/null* | *'Invalid file or object type'*)
3644         lt_cv_path_NM="$tmp_nm -B"
3645         break
3646         ;;
3647       *)
3648         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3649         */dev/null*)
3650           lt_cv_path_NM="$tmp_nm -p"
3651           break
3652           ;;
3653         *)
3654           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3655           continue # so that we can try to find one that supports BSD flags
3656           ;;
3657         esac
3658       esac
3659     fi
3660   done
3661   IFS="$lt_save_ifs"
3662   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3663 fi
3664 fi
3665 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3666 echo "${ECHO_T}$lt_cv_path_NM" >&6
3667 NM="$lt_cv_path_NM"
3668
3669 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3670 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3671 LN_S=$as_ln_s
3672 if test "$LN_S" = "ln -s"; then
3673   echo "$as_me:$LINENO: result: yes" >&5
3674 echo "${ECHO_T}yes" >&6
3675 else
3676   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3677 echo "${ECHO_T}no, using $LN_S" >&6
3678 fi
3679
3680 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3681 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3682 if test "${lt_cv_deplibs_check_method+set}" = set; then
3683   echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685   lt_cv_file_magic_cmd='$MAGIC_CMD'
3686 lt_cv_file_magic_test_file=
3687 lt_cv_deplibs_check_method='unknown'
3688 # Need to set the preceding variable on all platforms that support
3689 # interlibrary dependencies.
3690 # 'none' -- dependencies not supported.
3691 # `unknown' -- same as none, but documents that we really don't know.
3692 # 'pass_all' -- all dependencies passed with no checks.
3693 # 'test_compile' -- check by making test program.
3694 # 'file_magic [[regex]]' -- check by looking for files in library path
3695 # which responds to the $file_magic_cmd with a given extended regex.
3696 # If you have `file' or equivalent on your system and you're not sure
3697 # whether `pass_all' will *always* work, you probably want this one.
3698
3699 case $host_os in
3700 aix4* | aix5*)
3701   lt_cv_deplibs_check_method=pass_all
3702   ;;
3703
3704 beos*)
3705   lt_cv_deplibs_check_method=pass_all
3706   ;;
3707
3708 bsdi[45]*)
3709   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3710   lt_cv_file_magic_cmd='/usr/bin/file -L'
3711   lt_cv_file_magic_test_file=/shlib/libc.so
3712   ;;
3713
3714 cygwin*)
3715   # func_win32_libid is a shell function defined in ltmain.sh
3716   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3717   lt_cv_file_magic_cmd='func_win32_libid'
3718   ;;
3719
3720 mingw* | pw32*)
3721   # Base MSYS/MinGW do not provide the 'file' command needed by
3722   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3723   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3724   lt_cv_file_magic_cmd='$OBJDUMP -f'
3725   ;;
3726
3727 darwin* | rhapsody*)
3728   lt_cv_deplibs_check_method=pass_all
3729   ;;
3730
3731 freebsd* | kfreebsd*-gnu | dragonfly*)
3732   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3733     case $host_cpu in
3734     i*86 )
3735       # Not sure whether the presence of OpenBSD here was a mistake.
3736       # Let's accept both of them until this is cleared up.
3737       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3738       lt_cv_file_magic_cmd=/usr/bin/file
3739       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3740       ;;
3741     esac
3742   else
3743     lt_cv_deplibs_check_method=pass_all
3744   fi
3745   ;;
3746
3747 gnu*)
3748   lt_cv_deplibs_check_method=pass_all
3749   ;;
3750
3751 hpux10.20* | hpux11*)
3752   lt_cv_file_magic_cmd=/usr/bin/file
3753   case "$host_cpu" in
3754   ia64*)
3755     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3756     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3757     ;;
3758   hppa*64*)
3759     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]'
3760     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3761     ;;
3762   *)
3763     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3764     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3765     ;;
3766   esac
3767   ;;
3768
3769 irix5* | irix6* | nonstopux*)
3770   case $LD in
3771   *-32|*"-32 ") libmagic=32-bit;;
3772   *-n32|*"-n32 ") libmagic=N32;;
3773   *-64|*"-64 ") libmagic=64-bit;;
3774   *) libmagic=never-match;;
3775   esac
3776   lt_cv_deplibs_check_method=pass_all
3777   ;;
3778
3779 # This must be Linux ELF.
3780 linux*)
3781   lt_cv_deplibs_check_method=pass_all
3782   ;;
3783
3784 netbsd*)
3785   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3786     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3787   else
3788     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3789   fi
3790   ;;
3791
3792 newos6*)
3793   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3794   lt_cv_file_magic_cmd=/usr/bin/file
3795   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3796   ;;
3797
3798 nto-qnx*)
3799   lt_cv_deplibs_check_method=unknown
3800   ;;
3801
3802 openbsd*)
3803   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3804     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3805   else
3806     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3807   fi
3808   ;;
3809
3810 osf3* | osf4* | osf5*)
3811   lt_cv_deplibs_check_method=pass_all
3812   ;;
3813
3814 sco3.2v5*)
3815   lt_cv_deplibs_check_method=pass_all
3816   ;;
3817
3818 solaris*)
3819   lt_cv_deplibs_check_method=pass_all
3820   ;;
3821
3822 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3823   case $host_vendor in
3824   motorola)
3825     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]'
3826     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3827     ;;
3828   ncr)
3829     lt_cv_deplibs_check_method=pass_all
3830     ;;
3831   sequent)
3832     lt_cv_file_magic_cmd='/bin/file'
3833     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3834     ;;
3835   sni)
3836     lt_cv_file_magic_cmd='/bin/file'
3837     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3838     lt_cv_file_magic_test_file=/lib/libc.so
3839     ;;
3840   siemens)
3841     lt_cv_deplibs_check_method=pass_all
3842     ;;
3843   esac
3844   ;;
3845
3846 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3847   lt_cv_deplibs_check_method=pass_all
3848   ;;
3849 esac
3850
3851 fi
3852 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3853 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3854 file_magic_cmd=$lt_cv_file_magic_cmd
3855 deplibs_check_method=$lt_cv_deplibs_check_method
3856 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3857
3858
3859
3860
3861 # If no C compiler was specified, use CC.
3862 LTCC=${LTCC-"$CC"}
3863
3864 # Allow CC to be a program name with arguments.
3865 compiler=$CC
3866
3867 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3868 if test "${enable_libtool_lock+set}" = set; then
3869   enableval="$enable_libtool_lock"
3870
3871 fi;
3872 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3873
3874 # Some flags need to be propagated to the compiler or linker for good
3875 # libtool support.
3876 case $host in
3877 ia64-*-hpux*)
3878   # Find out which ABI we are using.
3879   echo 'int i;' > conftest.$ac_ext
3880   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3881   (eval $ac_compile) 2>&5
3882   ac_status=$?
3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); }; then
3885     case `/usr/bin/file conftest.$ac_objext` in
3886     *ELF-32*)
3887       HPUX_IA64_MODE="32"
3888       ;;
3889     *ELF-64*)
3890       HPUX_IA64_MODE="64"
3891       ;;
3892     esac
3893   fi
3894   rm -rf conftest*
3895   ;;
3896 *-*-irix6*)
3897   # Find out which ABI we are using.
3898   echo '#line 3898 "configure"' > conftest.$ac_ext
3899   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900   (eval $ac_compile) 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); }; then
3904    if test "$lt_cv_prog_gnu_ld" = yes; then
3905     case `/usr/bin/file conftest.$ac_objext` in
3906     *32-bit*)
3907       LD="${LD-ld} -melf32bsmip"
3908       ;;
3909     *N32*)
3910       LD="${LD-ld} -melf32bmipn32"
3911       ;;
3912     *64-bit*)
3913       LD="${LD-ld} -melf64bmip"
3914       ;;
3915     esac
3916    else
3917     case `/usr/bin/file conftest.$ac_objext` in
3918     *32-bit*)
3919       LD="${LD-ld} -32"
3920       ;;
3921     *N32*)
3922       LD="${LD-ld} -n32"
3923       ;;
3924     *64-bit*)
3925       LD="${LD-ld} -64"
3926       ;;
3927     esac
3928    fi
3929   fi
3930   rm -rf conftest*
3931   ;;
3932
3933 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3934   # Find out which ABI we are using.
3935   echo 'int i;' > conftest.$ac_ext
3936   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937   (eval $ac_compile) 2>&5
3938   ac_status=$?
3939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940   (exit $ac_status); }; then
3941     case "`/usr/bin/file conftest.o`" in
3942     *32-bit*)
3943       case $host in
3944         x86_64-*linux*)
3945           LD="${LD-ld} -m elf_i386"
3946           ;;
3947         ppc64-*linux*|powerpc64-*linux*)
3948           LD="${LD-ld} -m elf32ppclinux"
3949           ;;
3950         s390x-*linux*)
3951           LD="${LD-ld} -m elf_s390"
3952           ;;
3953         sparc64-*linux*)
3954           LD="${LD-ld} -m elf32_sparc"
3955           ;;
3956       esac
3957       ;;
3958     *64-bit*)
3959       case $host in
3960         x86_64-*linux*)
3961           LD="${LD-ld} -m elf_x86_64"
3962           ;;
3963         ppc*-*linux*|powerpc*-*linux*)
3964           LD="${LD-ld} -m elf64ppc"
3965           ;;
3966         s390*-*linux*)
3967           LD="${LD-ld} -m elf64_s390"
3968           ;;
3969         sparc*-*linux*)
3970           LD="${LD-ld} -m elf64_sparc"
3971           ;;
3972       esac
3973       ;;
3974     esac
3975   fi
3976   rm -rf conftest*
3977   ;;
3978
3979 *-*-sco3.2v5*)
3980   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3981   SAVE_CFLAGS="$CFLAGS"
3982   CFLAGS="$CFLAGS -belf"
3983   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3984 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3985 if test "${lt_cv_cc_needs_belf+set}" = set; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   ac_ext=c
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993
3994      cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h.  */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h.  */
4000
4001 int
4002 main ()
4003 {
4004
4005   ;
4006   return 0;
4007 }
4008 _ACEOF
4009 rm -f conftest.$ac_objext conftest$ac_exeext
4010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011   (eval $ac_link) 2>conftest.er1
4012   ac_status=$?
4013   grep -v '^ *+' conftest.er1 >conftest.err
4014   rm -f conftest.er1
4015   cat conftest.err >&5
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); } &&
4018          { ac_try='test -z "$ac_c_werror_flag"
4019                          || test ! -s conftest.err'
4020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021   (eval $ac_try) 2>&5
4022   ac_status=$?
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); }; } &&
4025          { ac_try='test -s conftest$ac_exeext'
4026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027   (eval $ac_try) 2>&5
4028   ac_status=$?
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); }; }; then
4031   lt_cv_cc_needs_belf=yes
4032 else
4033   echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036 lt_cv_cc_needs_belf=no
4037 fi
4038 rm -f conftest.err conftest.$ac_objext \
4039       conftest$ac_exeext conftest.$ac_ext
4040      ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045
4046 fi
4047 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4048 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4049   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4050     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4051     CFLAGS="$SAVE_CFLAGS"
4052   fi
4053   ;;
4054 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4055   if test -n "$ac_tool_prefix"; then
4056   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4057 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   if test -n "$DLLTOOL"; then
4064   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069   IFS=$as_save_IFS
4070   test -z "$as_dir" && as_dir=.
4071   for ac_exec_ext in '' $ac_executable_extensions; do
4072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075     break 2
4076   fi
4077 done
4078 done
4079
4080 fi
4081 fi
4082 DLLTOOL=$ac_cv_prog_DLLTOOL
4083 if test -n "$DLLTOOL"; then
4084   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4085 echo "${ECHO_T}$DLLTOOL" >&6
4086 else
4087   echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4089 fi
4090
4091 fi
4092 if test -z "$ac_cv_prog_DLLTOOL"; then
4093   ac_ct_DLLTOOL=$DLLTOOL
4094   # Extract the first word of "dlltool", so it can be a program name with args.
4095 set dummy dlltool; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   if test -n "$ac_ct_DLLTOOL"; then
4102   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107   IFS=$as_save_IFS
4108   test -z "$as_dir" && as_dir=.
4109   for ac_exec_ext in '' $ac_executable_extensions; do
4110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113     break 2
4114   fi
4115 done
4116 done
4117
4118   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4119 fi
4120 fi
4121 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4122 if test -n "$ac_ct_DLLTOOL"; then
4123   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4124 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4125 else
4126   echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4128 fi
4129
4130   DLLTOOL=$ac_ct_DLLTOOL
4131 else
4132   DLLTOOL="$ac_cv_prog_DLLTOOL"
4133 fi
4134
4135   if test -n "$ac_tool_prefix"; then
4136   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4137 set dummy ${ac_tool_prefix}as; ac_word=$2
4138 echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4140 if test "${ac_cv_prog_AS+set}" = set; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   if test -n "$AS"; then
4144   ac_cv_prog_AS="$AS" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149   IFS=$as_save_IFS
4150   test -z "$as_dir" && as_dir=.
4151   for ac_exec_ext in '' $ac_executable_extensions; do
4152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153     ac_cv_prog_AS="${ac_tool_prefix}as"
4154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155     break 2
4156   fi
4157 done
4158 done
4159
4160 fi
4161 fi
4162 AS=$ac_cv_prog_AS
4163 if test -n "$AS"; then
4164   echo "$as_me:$LINENO: result: $AS" >&5
4165 echo "${ECHO_T}$AS" >&6
4166 else
4167   echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4169 fi
4170
4171 fi
4172 if test -z "$ac_cv_prog_AS"; then
4173   ac_ct_AS=$AS
4174   # Extract the first word of "as", so it can be a program name with args.
4175 set dummy as; ac_word=$2
4176 echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   if test -n "$ac_ct_AS"; then
4182   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189   for ac_exec_ext in '' $ac_executable_extensions; do
4190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191     ac_cv_prog_ac_ct_AS="as"
4192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193     break 2
4194   fi
4195 done
4196 done
4197
4198   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4199 fi
4200 fi
4201 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4202 if test -n "$ac_ct_AS"; then
4203   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4204 echo "${ECHO_T}$ac_ct_AS" >&6
4205 else
4206   echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4208 fi
4209
4210   AS=$ac_ct_AS
4211 else
4212   AS="$ac_cv_prog_AS"
4213 fi
4214
4215   if test -n "$ac_tool_prefix"; then
4216   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4217 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4221   echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223   if test -n "$OBJDUMP"; then
4224   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229   IFS=$as_save_IFS
4230   test -z "$as_dir" && as_dir=.
4231   for ac_exec_ext in '' $ac_executable_extensions; do
4232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235     break 2
4236   fi
4237 done
4238 done
4239
4240 fi
4241 fi
4242 OBJDUMP=$ac_cv_prog_OBJDUMP
4243 if test -n "$OBJDUMP"; then
4244   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4245 echo "${ECHO_T}$OBJDUMP" >&6
4246 else
4247   echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4249 fi
4250
4251 fi
4252 if test -z "$ac_cv_prog_OBJDUMP"; then
4253   ac_ct_OBJDUMP=$OBJDUMP
4254   # Extract the first word of "objdump", so it can be a program name with args.
4255 set dummy objdump; ac_word=$2
4256 echo "$as_me:$LINENO: checking for $ac_word" >&5
4257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4258 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4259   echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261   if test -n "$ac_ct_OBJDUMP"; then
4262   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4263 else
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4266 do
4267   IFS=$as_save_IFS
4268   test -z "$as_dir" && as_dir=.
4269   for ac_exec_ext in '' $ac_executable_extensions; do
4270   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4271     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273     break 2
4274   fi
4275 done
4276 done
4277
4278   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4279 fi
4280 fi
4281 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4282 if test -n "$ac_ct_OBJDUMP"; then
4283   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4284 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4285 else
4286   echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4288 fi
4289
4290   OBJDUMP=$ac_ct_OBJDUMP
4291 else
4292   OBJDUMP="$ac_cv_prog_OBJDUMP"
4293 fi
4294
4295   ;;
4296
4297 esac
4298
4299 need_locks="$enable_libtool_lock"
4300
4301
4302 ac_ext=c
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4308 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4309 # On Suns, sometimes $CPP names a directory.
4310 if test -n "$CPP" && test -d "$CPP"; then
4311   CPP=
4312 fi
4313 if test -z "$CPP"; then
4314   if test "${ac_cv_prog_CPP+set}" = set; then
4315   echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317       # Double quotes because CPP needs to be expanded
4318     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4319     do
4320       ac_preproc_ok=false
4321 for ac_c_preproc_warn_flag in '' yes
4322 do
4323   # Use a header file that comes with gcc, so configuring glibc
4324   # with a fresh cross-compiler works.
4325   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4326   # <limits.h> exists even on freestanding compilers.
4327   # On the NeXT, cc -E runs the code through the compiler's parser,
4328   # not just through cpp. "Syntax error" is here to catch this case.
4329   cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335 #ifdef __STDC__
4336 # include <limits.h>
4337 #else
4338 # include <assert.h>
4339 #endif
4340                      Syntax error
4341 _ACEOF
4342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4344   ac_status=$?
4345   grep -v '^ *+' conftest.er1 >conftest.err
4346   rm -f conftest.er1
4347   cat conftest.err >&5
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } >/dev/null; then
4350   if test -s conftest.err; then
4351     ac_cpp_err=$ac_c_preproc_warn_flag
4352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4353   else
4354     ac_cpp_err=
4355   fi
4356 else
4357   ac_cpp_err=yes
4358 fi
4359 if test -z "$ac_cpp_err"; then
4360   :
4361 else
4362   echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365   # Broken: fails on valid input.
4366 continue
4367 fi
4368 rm -f conftest.err conftest.$ac_ext
4369
4370   # OK, works on sane cases.  Now check whether non-existent headers
4371   # can be detected and how.
4372   cat >conftest.$ac_ext <<_ACEOF
4373 /* confdefs.h.  */
4374 _ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h.  */
4378 #include <ac_nonexistent.h>
4379 _ACEOF
4380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4382   ac_status=$?
4383   grep -v '^ *+' conftest.er1 >conftest.err
4384   rm -f conftest.er1
4385   cat conftest.err >&5
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); } >/dev/null; then
4388   if test -s conftest.err; then
4389     ac_cpp_err=$ac_c_preproc_warn_flag
4390     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4391   else
4392     ac_cpp_err=
4393   fi
4394 else
4395   ac_cpp_err=yes
4396 fi
4397 if test -z "$ac_cpp_err"; then
4398   # Broken: success on invalid input.
4399 continue
4400 else
4401   echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404   # Passes both tests.
4405 ac_preproc_ok=:
4406 break
4407 fi
4408 rm -f conftest.err conftest.$ac_ext
4409
4410 done
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.err conftest.$ac_ext
4413 if $ac_preproc_ok; then
4414   break
4415 fi
4416
4417     done
4418     ac_cv_prog_CPP=$CPP
4419
4420 fi
4421   CPP=$ac_cv_prog_CPP
4422 else
4423   ac_cv_prog_CPP=$CPP
4424 fi
4425 echo "$as_me:$LINENO: result: $CPP" >&5
4426 echo "${ECHO_T}$CPP" >&6
4427 ac_preproc_ok=false
4428 for ac_c_preproc_warn_flag in '' yes
4429 do
4430   # Use a header file that comes with gcc, so configuring glibc
4431   # with a fresh cross-compiler works.
4432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433   # <limits.h> exists even on freestanding compilers.
4434   # On the NeXT, cc -E runs the code through the compiler's parser,
4435   # not just through cpp. "Syntax error" is here to catch this case.
4436   cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 #ifdef __STDC__
4443 # include <limits.h>
4444 #else
4445 # include <assert.h>
4446 #endif
4447                      Syntax error
4448 _ACEOF
4449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4451   ac_status=$?
4452   grep -v '^ *+' conftest.er1 >conftest.err
4453   rm -f conftest.er1
4454   cat conftest.err >&5
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); } >/dev/null; then
4457   if test -s conftest.err; then
4458     ac_cpp_err=$ac_c_preproc_warn_flag
4459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4460   else
4461     ac_cpp_err=
4462   fi
4463 else
4464   ac_cpp_err=yes
4465 fi
4466 if test -z "$ac_cpp_err"; then
4467   :
4468 else
4469   echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472   # Broken: fails on valid input.
4473 continue
4474 fi
4475 rm -f conftest.err conftest.$ac_ext
4476
4477   # OK, works on sane cases.  Now check whether non-existent headers
4478   # can be detected and how.
4479   cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485 #include <ac_nonexistent.h>
4486 _ACEOF
4487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4489   ac_status=$?
4490   grep -v '^ *+' conftest.er1 >conftest.err
4491   rm -f conftest.er1
4492   cat conftest.err >&5
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } >/dev/null; then
4495   if test -s conftest.err; then
4496     ac_cpp_err=$ac_c_preproc_warn_flag
4497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4498   else
4499     ac_cpp_err=
4500   fi
4501 else
4502   ac_cpp_err=yes
4503 fi
4504 if test -z "$ac_cpp_err"; then
4505   # Broken: success on invalid input.
4506 continue
4507 else
4508   echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511   # Passes both tests.
4512 ac_preproc_ok=:
4513 break
4514 fi
4515 rm -f conftest.err conftest.$ac_ext
4516
4517 done
4518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4519 rm -f conftest.err conftest.$ac_ext
4520 if $ac_preproc_ok; then
4521   :
4522 else
4523   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4524 See \`config.log' for more details." >&5
4525 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4526 See \`config.log' for more details." >&2;}
4527    { (exit 1); exit 1; }; }
4528 fi
4529
4530 ac_ext=c
4531 ac_cpp='$CPP $CPPFLAGS'
4532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4535
4536
4537 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4539 if test "${ac_cv_header_stdc+set}" = set; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548 #include <stdlib.h>
4549 #include <stdarg.h>
4550 #include <string.h>
4551 #include <float.h>
4552
4553 int
4554 main ()
4555 {
4556
4557   ;
4558   return 0;
4559 }
4560 _ACEOF
4561 rm -f conftest.$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563   (eval $ac_compile) 2>conftest.er1
4564   ac_status=$?
4565   grep -v '^ *+' conftest.er1 >conftest.err
4566   rm -f conftest.er1
4567   cat conftest.err >&5
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); } &&
4570          { ac_try='test -z "$ac_c_werror_flag"
4571                          || test ! -s conftest.err'
4572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573   (eval $ac_try) 2>&5
4574   ac_status=$?
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); }; } &&
4577          { ac_try='test -s conftest.$ac_objext'
4578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579   (eval $ac_try) 2>&5
4580   ac_status=$?
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); }; }; then
4583   ac_cv_header_stdc=yes
4584 else
4585   echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 ac_cv_header_stdc=no
4589 fi
4590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4591
4592 if test $ac_cv_header_stdc = yes; then
4593   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594   cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h.  */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h.  */
4600 #include <string.h>
4601
4602 _ACEOF
4603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4604   $EGREP "memchr" >/dev/null 2>&1; then
4605   :
4606 else
4607   ac_cv_header_stdc=no
4608 fi
4609 rm -f conftest*
4610
4611 fi
4612
4613 if test $ac_cv_header_stdc = yes; then
4614   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4615   cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h.  */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h.  */
4621 #include <stdlib.h>
4622
4623 _ACEOF
4624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4625   $EGREP "free" >/dev/null 2>&1; then
4626   :
4627 else
4628   ac_cv_header_stdc=no
4629 fi
4630 rm -f conftest*
4631
4632 fi
4633
4634 if test $ac_cv_header_stdc = yes; then
4635   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4636   if test "$cross_compiling" = yes; then
4637   :
4638 else
4639   cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645 #include <ctype.h>
4646 #if ((' ' & 0x0FF) == 0x020)
4647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4649 #else
4650 # define ISLOWER(c) \
4651                    (('a' <= (c) && (c) <= 'i') \
4652                      || ('j' <= (c) && (c) <= 'r') \
4653                      || ('s' <= (c) && (c) <= 'z'))
4654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4655 #endif
4656
4657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4658 int
4659 main ()
4660 {
4661   int i;
4662   for (i = 0; i < 256; i++)
4663     if (XOR (islower (i), ISLOWER (i))
4664         || toupper (i) != TOUPPER (i))
4665       exit(2);
4666   exit (0);
4667 }
4668 _ACEOF
4669 rm -f conftest$ac_exeext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4671   (eval $ac_link) 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676   (eval $ac_try) 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); }; }; then
4680   :
4681 else
4682   echo "$as_me: program exited with status $ac_status" >&5
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4685
4686 ( exit $ac_status )
4687 ac_cv_header_stdc=no
4688 fi
4689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4690 fi
4691 fi
4692 fi
4693 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4694 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4695 if test $ac_cv_header_stdc = yes; then
4696
4697 cat >>confdefs.h <<\_ACEOF
4698 #define STDC_HEADERS 1
4699 _ACEOF
4700
4701 fi
4702
4703 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4714                   inttypes.h stdint.h unistd.h
4715 do
4716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4717 echo "$as_me:$LINENO: checking for $ac_header" >&5
4718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h.  */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h.  */
4728 $ac_includes_default
4729
4730 #include <$ac_header>
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734   (eval $ac_compile) 2>conftest.er1
4735   ac_status=$?
4736   grep -v '^ *+' conftest.er1 >conftest.err
4737   rm -f conftest.er1
4738   cat conftest.err >&5
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); } &&
4741          { ac_try='test -z "$ac_c_werror_flag"
4742                          || test ! -s conftest.err'
4743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744   (eval $ac_try) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; } &&
4748          { ac_try='test -s conftest.$ac_objext'
4749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750   (eval $ac_try) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; }; then
4754   eval "$as_ac_Header=yes"
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759 eval "$as_ac_Header=no"
4760 fi
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766   cat >>confdefs.h <<_ACEOF
4767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768 _ACEOF
4769
4770 fi
4771
4772 done
4773
4774
4775
4776 for ac_header in dlfcn.h
4777 do
4778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780   echo "$as_me:$LINENO: checking for $ac_header" >&5
4781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 fi
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787 else
4788   # Is the header compilable?
4789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791 cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797 $ac_includes_default
4798 #include <$ac_header>
4799 _ACEOF
4800 rm -f conftest.$ac_objext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802   (eval $ac_compile) 2>conftest.er1
4803   ac_status=$?
4804   grep -v '^ *+' conftest.er1 >conftest.err
4805   rm -f conftest.er1
4806   cat conftest.err >&5
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); } &&
4809          { ac_try='test -z "$ac_c_werror_flag"
4810                          || test ! -s conftest.err'
4811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812   (eval $ac_try) 2>&5
4813   ac_status=$?
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); }; } &&
4816          { ac_try='test -s conftest.$ac_objext'
4817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818   (eval $ac_try) 2>&5
4819   ac_status=$?
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); }; }; then
4822   ac_header_compiler=yes
4823 else
4824   echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4826
4827 ac_header_compiler=no
4828 fi
4829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4831 echo "${ECHO_T}$ac_header_compiler" >&6
4832
4833 # Is the header present?
4834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h.  */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h.  */
4842 #include <$ac_header>
4843 _ACEOF
4844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846   ac_status=$?
4847   grep -v '^ *+' conftest.er1 >conftest.err
4848   rm -f conftest.er1
4849   cat conftest.err >&5
4850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851   (exit $ac_status); } >/dev/null; then
4852   if test -s conftest.err; then
4853     ac_cpp_err=$ac_c_preproc_warn_flag
4854     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4855   else
4856     ac_cpp_err=
4857   fi
4858 else
4859   ac_cpp_err=yes
4860 fi
4861 if test -z "$ac_cpp_err"; then
4862   ac_header_preproc=yes
4863 else
4864   echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4866
4867   ac_header_preproc=no
4868 fi
4869 rm -f conftest.err conftest.$ac_ext
4870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871 echo "${ECHO_T}$ac_header_preproc" >&6
4872
4873 # So?  What about this header?
4874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4875   yes:no: )
4876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4880     ac_header_preproc=yes
4881     ;;
4882   no:yes:* )
4883     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4885     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4886 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4887     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4889     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4890 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4893     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4895     (
4896       cat <<\_ASBOX
4897 ## ---------------------------------- ##
4898 ## Report this to bug-libtool@gnu.org ##
4899 ## ---------------------------------- ##
4900 _ASBOX
4901     ) |
4902       sed "s/^/$as_me: WARNING:     /" >&2
4903     ;;
4904 esac
4905 echo "$as_me:$LINENO: checking for $ac_header" >&5
4906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4908   echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910   eval "$as_ac_Header=\$ac_header_preproc"
4911 fi
4912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4914
4915 fi
4916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4917   cat >>confdefs.h <<_ACEOF
4918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919 _ACEOF
4920
4921 fi
4922
4923 done
4924
4925 ac_ext=cc
4926 ac_cpp='$CXXCPP $CPPFLAGS'
4927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4930 if test -n "$ac_tool_prefix"; then
4931   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4932   do
4933     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4935 echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4937 if test "${ac_cv_prog_CXX+set}" = set; then
4938   echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940   if test -n "$CXX"; then
4941   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948   for ac_exec_ext in '' $ac_executable_extensions; do
4949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955 done
4956
4957 fi
4958 fi
4959 CXX=$ac_cv_prog_CXX
4960 if test -n "$CXX"; then
4961   echo "$as_me:$LINENO: result: $CXX" >&5
4962 echo "${ECHO_T}$CXX" >&6
4963 else
4964   echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6
4966 fi
4967
4968     test -n "$CXX" && break
4969   done
4970 fi
4971 if test -z "$CXX"; then
4972   ac_ct_CXX=$CXX
4973   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4974 do
4975   # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy $ac_prog; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4980   echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982   if test -n "$ac_ct_CXX"; then
4983   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990   for ac_exec_ext in '' $ac_executable_extensions; do
4991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992     ac_cv_prog_ac_ct_CXX="$ac_prog"
4993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997 done
4998
4999 fi
5000 fi
5001 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5002 if test -n "$ac_ct_CXX"; then
5003   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5004 echo "${ECHO_T}$ac_ct_CXX" >&6
5005 else
5006   echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5008 fi
5009
5010   test -n "$ac_ct_CXX" && break
5011 done
5012 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5013
5014   CXX=$ac_ct_CXX
5015 fi
5016
5017
5018 # Provide some information about the compiler.
5019 echo "$as_me:$LINENO:" \
5020      "checking for C++ compiler version" >&5
5021 ac_compiler=`set X $ac_compile; echo $2`
5022 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5023   (eval $ac_compiler --version </dev/null >&5) 2>&5
5024   ac_status=$?
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); }
5027 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5028   (eval $ac_compiler -v </dev/null >&5) 2>&5
5029   ac_status=$?
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); }
5032 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5033   (eval $ac_compiler -V </dev/null >&5) 2>&5
5034   ac_status=$?
5035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036   (exit $ac_status); }
5037
5038 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5039 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5040 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5041   echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043   cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049
5050 int
5051 main ()
5052 {
5053 #ifndef __GNUC__
5054        choke me
5055 #endif
5056
5057   ;
5058   return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063   (eval $ac_compile) 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
5067   cat conftest.err >&5
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } &&
5070          { ac_try='test -z "$ac_cxx_werror_flag"
5071                          || test ! -s conftest.err'
5072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073   (eval $ac_try) 2>&5
5074   ac_status=$?
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); }; } &&
5077          { ac_try='test -s conftest.$ac_objext'
5078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079   (eval $ac_try) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }; }; then
5083   ac_compiler_gnu=yes
5084 else
5085   echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
5088 ac_compiler_gnu=no
5089 fi
5090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5092
5093 fi
5094 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5095 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5096 GXX=`test $ac_compiler_gnu = yes && echo yes`
5097 ac_test_CXXFLAGS=${CXXFLAGS+set}
5098 ac_save_CXXFLAGS=$CXXFLAGS
5099 CXXFLAGS="-g"
5100 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5101 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5102 if test "${ac_cv_prog_cxx_g+set}" = set; then
5103   echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105   cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h.  */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h.  */
5111
5112 int
5113 main ()
5114 {
5115
5116   ;
5117   return 0;
5118 }
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122   (eval $ac_compile) 2>conftest.er1
5123   ac_status=$?
5124   grep -v '^ *+' conftest.er1 >conftest.err
5125   rm -f conftest.er1
5126   cat conftest.err >&5
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); } &&
5129          { ac_try='test -z "$ac_cxx_werror_flag"
5130                          || test ! -s conftest.err'
5131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132   (eval $ac_try) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); }; } &&
5136          { ac_try='test -s conftest.$ac_objext'
5137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138   (eval $ac_try) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); }; }; then
5142   ac_cv_prog_cxx_g=yes
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147 ac_cv_prog_cxx_g=no
5148 fi
5149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5150 fi
5151 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5152 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5153 if test "$ac_test_CXXFLAGS" = set; then
5154   CXXFLAGS=$ac_save_CXXFLAGS
5155 elif test $ac_cv_prog_cxx_g = yes; then
5156   if test "$GXX" = yes; then
5157     CXXFLAGS="-g -O2"
5158   else
5159     CXXFLAGS="-g"
5160   fi
5161 else
5162   if test "$GXX" = yes; then
5163     CXXFLAGS="-O2"
5164   else
5165     CXXFLAGS=
5166   fi
5167 fi
5168 for ac_declaration in \
5169    '' \
5170    'extern "C" void std::exit (int) throw (); using std::exit;' \
5171    'extern "C" void std::exit (int); using std::exit;' \
5172    'extern "C" void exit (int) throw ();' \
5173    'extern "C" void exit (int);' \
5174    'void exit (int);'
5175 do
5176   cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h.  */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h.  */
5182 $ac_declaration
5183 #include <stdlib.h>
5184 int
5185 main ()
5186 {
5187 exit (42);
5188   ;
5189   return 0;
5190 }
5191 _ACEOF
5192 rm -f conftest.$ac_objext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194   (eval $ac_compile) 2>conftest.er1
5195   ac_status=$?
5196   grep -v '^ *+' conftest.er1 >conftest.err
5197   rm -f conftest.er1
5198   cat conftest.err >&5
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); } &&
5201          { ac_try='test -z "$ac_cxx_werror_flag"
5202                          || test ! -s conftest.err'
5203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204   (eval $ac_try) 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }; } &&
5208          { ac_try='test -s conftest.$ac_objext'
5209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210   (eval $ac_try) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); }; }; then
5214   :
5215 else
5216   echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5218
5219 continue
5220 fi
5221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5222   cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h.  */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h.  */
5228 $ac_declaration
5229 int
5230 main ()
5231 {
5232 exit (42);
5233   ;
5234   return 0;
5235 }
5236 _ACEOF
5237 rm -f conftest.$ac_objext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5239   (eval $ac_compile) 2>conftest.er1
5240   ac_status=$?
5241   grep -v '^ *+' conftest.er1 >conftest.err
5242   rm -f conftest.er1
5243   cat conftest.err >&5
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); } &&
5246          { ac_try='test -z "$ac_cxx_werror_flag"
5247                          || test ! -s conftest.err'
5248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249   (eval $ac_try) 2>&5
5250   ac_status=$?
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); }; } &&
5253          { ac_try='test -s conftest.$ac_objext'
5254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255   (eval $ac_try) 2>&5
5256   ac_status=$?
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); }; }; then
5259   break
5260 else
5261   echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5263
5264 fi
5265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5266 done
5267 rm -f conftest*
5268 if test -n "$ac_declaration"; then
5269   echo '#ifdef __cplusplus' >>confdefs.h
5270   echo $ac_declaration      >>confdefs.h
5271   echo '#endif'             >>confdefs.h
5272 fi
5273
5274 ac_ext=cc
5275 ac_cpp='$CXXCPP $CPPFLAGS'
5276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5279
5280 depcc="$CXX"  am_compiler_list=
5281
5282 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5283 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5284 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5288   # We make a subdir and do the tests there.  Otherwise we can end up
5289   # making bogus files that we don't know about and never remove.  For
5290   # instance it was reported that on HP-UX the gcc test will end up
5291   # making a dummy file named `D' -- because `-MD' means `put the output
5292   # in D'.
5293   mkdir conftest.dir
5294   # Copy depcomp to subdir because otherwise we won't find it if we're
5295   # using a relative directory.
5296   cp "$am_depcomp" conftest.dir
5297   cd conftest.dir
5298   # We will build objects and dependencies in a subdirectory because
5299   # it helps to detect inapplicable dependency modes.  For instance
5300   # both Tru64's cc and ICC support -MD to output dependencies as a
5301   # side effect of compilation, but ICC will put the dependencies in
5302   # the current directory while Tru64 will put them in the object
5303   # directory.
5304   mkdir sub
5305
5306   am_cv_CXX_dependencies_compiler_type=none
5307   if test "$am_compiler_list" = ""; then
5308      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5309   fi
5310   for depmode in $am_compiler_list; do
5311     # Setup a source with many dependencies, because some compilers
5312     # like to wrap large dependency lists on column 80 (with \), and
5313     # we should not choose a depcomp mode which is confused by this.
5314     #
5315     # We need to recreate these files for each test, as the compiler may
5316     # overwrite some of them when testing with obscure command lines.
5317     # This happens at least with the AIX C compiler.
5318     : > sub/conftest.c
5319     for i in 1 2 3 4 5 6; do
5320       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5321       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5322       # Solaris 8's {/usr,}/bin/sh.
5323       touch sub/conftst$i.h
5324     done
5325     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5326
5327     case $depmode in
5328     nosideeffect)
5329       # after this tag, mechanisms are not by side-effect, so they'll
5330       # only be used when explicitly requested
5331       if test "x$enable_dependency_tracking" = xyes; then
5332         continue
5333       else
5334         break
5335       fi
5336       ;;
5337     none) break ;;
5338     esac
5339     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5340     # mode.  It turns out that the SunPro C++ compiler does not properly
5341     # handle `-M -o', and we need to detect this.
5342     if depmode=$depmode \
5343        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5344        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5345        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5346          >/dev/null 2>conftest.err &&
5347        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5348        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5349        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5350       # icc doesn't choke on unknown options, it will just issue warnings
5351       # or remarks (even with -Werror).  So we grep stderr for any message
5352       # that says an option was ignored or not supported.
5353       # When given -MP, icc 7.0 and 7.1 complain thusly:
5354       #   icc: Command line warning: ignoring option '-M'; no argument required
5355       # The diagnosis changed in icc 8.0:
5356       #   icc: Command line remark: option '-MP' not supported
5357       if (grep 'ignoring option' conftest.err ||
5358           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5359         am_cv_CXX_dependencies_compiler_type=$depmode
5360         break
5361       fi
5362     fi
5363   done
5364
5365   cd ..
5366   rm -rf conftest.dir
5367 else
5368   am_cv_CXX_dependencies_compiler_type=none
5369 fi
5370
5371 fi
5372 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5373 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5374 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5375
5376
5377
5378 if
5379   test "x$enable_dependency_tracking" != xno \
5380   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5381   am__fastdepCXX_TRUE=
5382   am__fastdepCXX_FALSE='#'
5383 else
5384   am__fastdepCXX_TRUE='#'
5385   am__fastdepCXX_FALSE=
5386 fi
5387
5388
5389
5390
5391 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5392     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5393     (test "X$CXX" != "Xg++"))) ; then
5394   ac_ext=cc
5395 ac_cpp='$CXXCPP $CPPFLAGS'
5396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5399 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5400 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5401 if test -z "$CXXCPP"; then
5402   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5403   echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405       # Double quotes because CXXCPP needs to be expanded
5406     for CXXCPP in "$CXX -E" "/lib/cpp"
5407     do
5408       ac_preproc_ok=false
5409 for ac_cxx_preproc_warn_flag in '' yes
5410 do
5411   # Use a header file that comes with gcc, so configuring glibc
5412   # with a fresh cross-compiler works.
5413   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5414   # <limits.h> exists even on freestanding compilers.
5415   # On the NeXT, cc -E runs the code through the compiler's parser,
5416   # not just through cpp. "Syntax error" is here to catch this case.
5417   cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h.  */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h.  */
5423 #ifdef __STDC__
5424 # include <limits.h>
5425 #else
5426 # include <assert.h>
5427 #endif
5428                      Syntax error
5429 _ACEOF
5430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5432   ac_status=$?
5433   grep -v '^ *+' conftest.er1 >conftest.err
5434   rm -f conftest.er1
5435   cat conftest.err >&5
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } >/dev/null; then
5438   if test -s conftest.err; then
5439     ac_cpp_err=$ac_cxx_preproc_warn_flag
5440     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5441   else
5442     ac_cpp_err=
5443   fi
5444 else
5445   ac_cpp_err=yes
5446 fi
5447 if test -z "$ac_cpp_err"; then
5448   :
5449 else
5450   echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5452
5453   # Broken: fails on valid input.
5454 continue
5455 fi
5456 rm -f conftest.err conftest.$ac_ext
5457
5458   # OK, works on sane cases.  Now check whether non-existent headers
5459   # can be detected and how.
5460   cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h.  */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h.  */
5466 #include <ac_nonexistent.h>
5467 _ACEOF
5468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5470   ac_status=$?
5471   grep -v '^ *+' conftest.er1 >conftest.err
5472   rm -f conftest.er1
5473   cat conftest.err >&5
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); } >/dev/null; then
5476   if test -s conftest.err; then
5477     ac_cpp_err=$ac_cxx_preproc_warn_flag
5478     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5479   else
5480     ac_cpp_err=
5481   fi
5482 else
5483   ac_cpp_err=yes
5484 fi
5485 if test -z "$ac_cpp_err"; then
5486   # Broken: success on invalid input.
5487 continue
5488 else
5489   echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5491
5492   # Passes both tests.
5493 ac_preproc_ok=:
5494 break
5495 fi
5496 rm -f conftest.err conftest.$ac_ext
5497
5498 done
5499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5500 rm -f conftest.err conftest.$ac_ext
5501 if $ac_preproc_ok; then
5502   break
5503 fi
5504
5505     done
5506     ac_cv_prog_CXXCPP=$CXXCPP
5507
5508 fi
5509   CXXCPP=$ac_cv_prog_CXXCPP
5510 else
5511   ac_cv_prog_CXXCPP=$CXXCPP
5512 fi
5513 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5514 echo "${ECHO_T}$CXXCPP" >&6
5515 ac_preproc_ok=false
5516 for ac_cxx_preproc_warn_flag in '' yes
5517 do
5518   # Use a header file that comes with gcc, so configuring glibc
5519   # with a fresh cross-compiler works.
5520   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5521   # <limits.h> exists even on freestanding compilers.
5522   # On the NeXT, cc -E runs the code through the compiler's parser,
5523   # not just through cpp. "Syntax error" is here to catch this case.
5524   cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h.  */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h.  */
5530 #ifdef __STDC__
5531 # include <limits.h>
5532 #else
5533 # include <assert.h>
5534 #endif
5535                      Syntax error
5536 _ACEOF
5537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5538   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } >/dev/null; then
5545   if test -s conftest.err; then
5546     ac_cpp_err=$ac_cxx_preproc_warn_flag
5547     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5548   else
5549     ac_cpp_err=
5550   fi
5551 else
5552   ac_cpp_err=yes
5553 fi
5554 if test -z "$ac_cpp_err"; then
5555   :
5556 else
5557   echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560   # Broken: fails on valid input.
5561 continue
5562 fi
5563 rm -f conftest.err conftest.$ac_ext
5564
5565   # OK, works on sane cases.  Now check whether non-existent headers
5566   # can be detected and how.
5567   cat >conftest.$ac_ext <<_ACEOF
5568 /* confdefs.h.  */
5569 _ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h.  */
5573 #include <ac_nonexistent.h>
5574 _ACEOF
5575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5577   ac_status=$?
5578   grep -v '^ *+' conftest.er1 >conftest.err
5579   rm -f conftest.er1
5580   cat conftest.err >&5
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); } >/dev/null; then
5583   if test -s conftest.err; then
5584     ac_cpp_err=$ac_cxx_preproc_warn_flag
5585     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5586   else
5587     ac_cpp_err=
5588   fi
5589 else
5590   ac_cpp_err=yes
5591 fi
5592 if test -z "$ac_cpp_err"; then
5593   # Broken: success on invalid input.
5594 continue
5595 else
5596   echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5598
5599   # Passes both tests.
5600 ac_preproc_ok=:
5601 break
5602 fi
5603 rm -f conftest.err conftest.$ac_ext
5604
5605 done
5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5607 rm -f conftest.err conftest.$ac_ext
5608 if $ac_preproc_ok; then
5609   :
5610 else
5611   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5612 See \`config.log' for more details." >&5
5613 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5614 See \`config.log' for more details." >&2;}
5615    { (exit 1); exit 1; }; }
5616 fi
5617
5618 ac_ext=cc
5619 ac_cpp='$CXXCPP $CPPFLAGS'
5620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5623
5624 fi
5625
5626
5627 ac_ext=f
5628 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5629 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5631 if test -n "$ac_tool_prefix"; then
5632   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5633   do
5634     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5636 echo "$as_me:$LINENO: checking for $ac_word" >&5
5637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5638 if test "${ac_cv_prog_F77+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   if test -n "$F77"; then
5642   ac_cv_prog_F77="$F77" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647   IFS=$as_save_IFS
5648   test -z "$as_dir" && as_dir=.
5649   for ac_exec_ext in '' $ac_executable_extensions; do
5650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653     break 2
5654   fi
5655 done
5656 done
5657
5658 fi
5659 fi
5660 F77=$ac_cv_prog_F77
5661 if test -n "$F77"; then
5662   echo "$as_me:$LINENO: result: $F77" >&5
5663 echo "${ECHO_T}$F77" >&6
5664 else
5665   echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6
5667 fi
5668
5669     test -n "$F77" && break
5670   done
5671 fi
5672 if test -z "$F77"; then
5673   ac_ct_F77=$F77
5674   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5675 do
5676   # Extract the first word of "$ac_prog", so it can be a program name with args.
5677 set dummy $ac_prog; ac_word=$2
5678 echo "$as_me:$LINENO: checking for $ac_word" >&5
5679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   if test -n "$ac_ct_F77"; then
5684   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689   IFS=$as_save_IFS
5690   test -z "$as_dir" && as_dir=.
5691   for ac_exec_ext in '' $ac_executable_extensions; do
5692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693     ac_cv_prog_ac_ct_F77="$ac_prog"
5694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695     break 2
5696   fi
5697 done
5698 done
5699
5700 fi
5701 fi
5702 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5703 if test -n "$ac_ct_F77"; then
5704   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5705 echo "${ECHO_T}$ac_ct_F77" >&6
5706 else
5707   echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6
5709 fi
5710
5711   test -n "$ac_ct_F77" && break
5712 done
5713
5714   F77=$ac_ct_F77
5715 fi
5716
5717
5718 # Provide some information about the compiler.
5719 echo "$as_me:5719:" \
5720      "checking for Fortran 77 compiler version" >&5
5721 ac_compiler=`set X $ac_compile; echo $2`
5722 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5723   (eval $ac_compiler --version </dev/null >&5) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }
5727 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5728   (eval $ac_compiler -v </dev/null >&5) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }
5732 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5733   (eval $ac_compiler -V </dev/null >&5) 2>&5
5734   ac_status=$?
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); }
5737 rm -f a.out
5738
5739 # If we don't use `.F' as extension, the preprocessor is not run on the
5740 # input file.  (Note that this only needs to work for GNU compilers.)
5741 ac_save_ext=$ac_ext
5742 ac_ext=F
5743 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5744 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5745 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5746   echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748   cat >conftest.$ac_ext <<_ACEOF
5749       program main
5750 #ifndef __GNUC__
5751        choke me
5752 #endif
5753
5754       end
5755 _ACEOF
5756 rm -f conftest.$ac_objext
5757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5758   (eval $ac_compile) 2>conftest.er1
5759   ac_status=$?
5760   grep -v '^ *+' conftest.er1 >conftest.err
5761   rm -f conftest.er1
5762   cat conftest.err >&5
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } &&
5765          { ac_try='test -z "$ac_f77_werror_flag"
5766                          || test ! -s conftest.err'
5767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768   (eval $ac_try) 2>&5
5769   ac_status=$?
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); }; } &&
5772          { ac_try='test -s conftest.$ac_objext'
5773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774   (eval $ac_try) 2>&5
5775   ac_status=$?
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); }; }; then
5778   ac_compiler_gnu=yes
5779 else
5780   echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5782
5783 ac_compiler_gnu=no
5784 fi
5785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5786 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5787
5788 fi
5789 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5790 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5791 ac_ext=$ac_save_ext
5792 ac_test_FFLAGS=${FFLAGS+set}
5793 ac_save_FFLAGS=$FFLAGS
5794 FFLAGS=
5795 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5796 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5797 if test "${ac_cv_prog_f77_g+set}" = set; then
5798   echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800   FFLAGS=-g
5801 cat >conftest.$ac_ext <<_ACEOF
5802       program main
5803
5804       end
5805 _ACEOF
5806 rm -f conftest.$ac_objext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808   (eval $ac_compile) 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } &&
5815          { ac_try='test -z "$ac_f77_werror_flag"
5816                          || test ! -s conftest.err'
5817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818   (eval $ac_try) 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; } &&
5822          { ac_try='test -s conftest.$ac_objext'
5823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824   (eval $ac_try) 2>&5
5825   ac_status=$?
5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827   (exit $ac_status); }; }; then
5828   ac_cv_prog_f77_g=yes
5829 else
5830   echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 ac_cv_prog_f77_g=no
5834 fi
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5836
5837 fi
5838 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5839 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5840 if test "$ac_test_FFLAGS" = set; then
5841   FFLAGS=$ac_save_FFLAGS
5842 elif test $ac_cv_prog_f77_g = yes; then
5843   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5844     FFLAGS="-g -O2"
5845   else
5846     FFLAGS="-g"
5847   fi
5848 else
5849   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5850     FFLAGS="-O2"
5851   else
5852     FFLAGS=
5853   fi
5854 fi
5855
5856 G77=`test $ac_compiler_gnu = yes && echo yes`
5857 ac_ext=c
5858 ac_cpp='$CPP $CPPFLAGS'
5859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5862
5863
5864
5865 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5866
5867 # find the maximum length of command line arguments
5868 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5869 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5870 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873     i=0
5874   teststring="ABCD"
5875
5876   case $build_os in
5877   msdosdjgpp*)
5878     # On DJGPP, this test can blow up pretty badly due to problems in libc
5879     # (any single argument exceeding 2000 bytes causes a buffer overrun
5880     # during glob expansion).  Even if it were fixed, the result of this
5881     # check would be larger than it should be.
5882     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5883     ;;
5884
5885   gnu*)
5886     # Under GNU Hurd, this test is not required because there is
5887     # no limit to the length of command line arguments.
5888     # Libtool will interpret -1 as no limit whatsoever
5889     lt_cv_sys_max_cmd_len=-1;
5890     ;;
5891
5892   cygwin* | mingw*)
5893     # On Win9x/ME, this test blows up -- it succeeds, but takes
5894     # about 5 minutes as the teststring grows exponentially.
5895     # Worse, since 9x/ME are not pre-emptively multitasking,
5896     # you end up with a "frozen" computer, even though with patience
5897     # the test eventually succeeds (with a max line length of 256k).
5898     # Instead, let's just punt: use the minimum linelength reported by
5899     # all of the supported platforms: 8192 (on NT/2K/XP).
5900     lt_cv_sys_max_cmd_len=8192;
5901     ;;
5902
5903   amigaos*)
5904     # On AmigaOS with pdksh, this test takes hours, literally.
5905     # So we just punt and use a minimum line length of 8192.
5906     lt_cv_sys_max_cmd_len=8192;
5907     ;;
5908
5909   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5910     # This has been around since 386BSD, at least.  Likely further.
5911     if test -x /sbin/sysctl; then
5912       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5913     elif test -x /usr/sbin/sysctl; then
5914       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5915     else
5916       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5917     fi
5918     # And add a safety zone
5919     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5920     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5921     ;;
5922   osf*)
5923     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5924     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5925     # nice to cause kernel panics so lets avoid the loop below.
5926     # First set a reasonable default.
5927     lt_cv_sys_max_cmd_len=16384
5928     #
5929     if test -x /sbin/sysconfig; then
5930       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5931         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5932       esac
5933     fi
5934     ;;
5935   *)
5936     # If test is not a shell built-in, we'll probably end up computing a
5937     # maximum length that is only half of the actual maximum length, but
5938     # we can't tell.
5939     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5940     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5941                = "XX$teststring") >/dev/null 2>&1 &&
5942             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5943             lt_cv_sys_max_cmd_len=$new_result &&
5944             test $i != 17 # 1/2 MB should be enough
5945     do
5946       i=`expr $i + 1`
5947       teststring=$teststring$teststring
5948     done
5949     teststring=
5950     # Add a significant safety factor because C++ compilers can tack on massive
5951     # amounts of additional arguments before passing them to the linker.
5952     # It appears as though 1/2 is a usable value.
5953     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5954     ;;
5955   esac
5956
5957 fi
5958
5959 if test -n $lt_cv_sys_max_cmd_len ; then
5960   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5961 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5962 else
5963   echo "$as_me:$LINENO: result: none" >&5
5964 echo "${ECHO_T}none" >&6
5965 fi
5966
5967
5968
5969
5970 # Check for command to grab the raw symbol name followed by C symbol from nm.
5971 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5972 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5973 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976
5977 # These are sane defaults that work on at least a few old systems.
5978 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5979
5980 # Character class describing NM global symbol codes.
5981 symcode='[BCDEGRST]'
5982
5983 # Regexp to match symbols that can be accessed directly from C.
5984 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5985
5986 # Transform an extracted symbol line into a proper C declaration
5987 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5988
5989 # Transform an extracted symbol line into symbol name and symbol address
5990 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'"
5991
5992 # Define system-specific variables.
5993 case $host_os in
5994 aix*)
5995   symcode='[BCDT]'
5996   ;;
5997 cygwin* | mingw* | pw32*)
5998   symcode='[ABCDGISTW]'
5999   ;;
6000 hpux*) # Its linker distinguishes data from code symbols
6001   if test "$host_cpu" = ia64; then
6002     symcode='[ABCDEGRST]'
6003   fi
6004   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6005   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'"
6006   ;;
6007 linux*)
6008   if test "$host_cpu" = ia64; then
6009     symcode='[ABCDGIRSTW]'
6010     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6011     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'"
6012   fi
6013   ;;
6014 irix* | nonstopux*)
6015   symcode='[BCDEGRST]'
6016   ;;
6017 osf*)
6018   symcode='[BCDEGQRST]'
6019   ;;
6020 solaris* | sysv5*)
6021   symcode='[BDRT]'
6022   ;;
6023 sysv4)
6024   symcode='[DFNSTU]'
6025   ;;
6026 esac
6027
6028 # Handle CRLF in mingw tool chain
6029 opt_cr=
6030 case $build_os in
6031 mingw*)
6032   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6033   ;;
6034 esac
6035
6036 # If we're using GNU nm, then use its standard symbol codes.
6037 case `$NM -V 2>&1` in
6038 *GNU* | *'with BFD'*)
6039   symcode='[ABCDGIRSTW]' ;;
6040 esac
6041
6042 # Try without a prefix undercore, then with it.
6043 for ac_symprfx in "" "_"; do
6044
6045   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6046   symxfrm="\\1 $ac_symprfx\\2 \\2"
6047
6048   # Write the raw and C identifiers.
6049   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6050
6051   # Check to see that the pipe works correctly.
6052   pipe_works=no
6053
6054   rm -f conftest*
6055   cat > conftest.$ac_ext <<EOF
6056 #ifdef __cplusplus
6057 extern "C" {
6058 #endif
6059 char nm_test_var;
6060 void nm_test_func(){}
6061 #ifdef __cplusplus
6062 }
6063 #endif
6064 int main(){nm_test_var='a';nm_test_func();return(0);}
6065 EOF
6066
6067   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068   (eval $ac_compile) 2>&5
6069   ac_status=$?
6070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071   (exit $ac_status); }; then
6072     # Now try to grab the symbols.
6073     nlist=conftest.nm
6074     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6075   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); } && test -s "$nlist"; then
6079       # Try sorting and uniquifying the output.
6080       if sort "$nlist" | uniq > "$nlist"T; then
6081         mv -f "$nlist"T "$nlist"
6082       else
6083         rm -f "$nlist"T
6084       fi
6085
6086       # Make sure that we snagged all the symbols we need.
6087       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6088         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6089           cat <<EOF > conftest.$ac_ext
6090 #ifdef __cplusplus
6091 extern "C" {
6092 #endif
6093
6094 EOF
6095           # Now generate the symbol file.
6096           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6097
6098           cat <<EOF >> conftest.$ac_ext
6099 #if defined (__STDC__) && __STDC__
6100 # define lt_ptr_t void *
6101 #else
6102 # define lt_ptr_t char *
6103 # define const
6104 #endif
6105
6106 /* The mapping between symbol names and symbols. */
6107 const struct {
6108   const char *name;
6109   lt_ptr_t address;
6110 }
6111 lt_preloaded_symbols[] =
6112 {
6113 EOF
6114           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6115           cat <<\EOF >> conftest.$ac_ext
6116   {0, (lt_ptr_t) 0}
6117 };
6118
6119 #ifdef __cplusplus
6120 }
6121 #endif
6122 EOF
6123           # Now try linking the two files.
6124           mv conftest.$ac_objext conftstm.$ac_objext
6125           lt_save_LIBS="$LIBS"
6126           lt_save_CFLAGS="$CFLAGS"
6127           LIBS="conftstm.$ac_objext"
6128           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6129           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6130   (eval $ac_link) 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6134             pipe_works=yes
6135           fi
6136           LIBS="$lt_save_LIBS"
6137           CFLAGS="$lt_save_CFLAGS"
6138         else
6139           echo "cannot find nm_test_func in $nlist" >&5
6140         fi
6141       else
6142         echo "cannot find nm_test_var in $nlist" >&5
6143       fi
6144     else
6145       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6146     fi
6147   else
6148     echo "$progname: failed program was:" >&5
6149     cat conftest.$ac_ext >&5
6150   fi
6151   rm -f conftest* conftst*
6152
6153   # Do not use the global_symbol_pipe unless it works.
6154   if test "$pipe_works" = yes; then
6155     break
6156   else
6157     lt_cv_sys_global_symbol_pipe=
6158   fi
6159 done
6160
6161 fi
6162
6163 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6164   lt_cv_sys_global_symbol_to_cdecl=
6165 fi
6166 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6167   echo "$as_me:$LINENO: result: failed" >&5
6168 echo "${ECHO_T}failed" >&6
6169 else
6170   echo "$as_me:$LINENO: result: ok" >&5
6171 echo "${ECHO_T}ok" >&6
6172 fi
6173
6174 echo "$as_me:$LINENO: checking for objdir" >&5
6175 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6176 if test "${lt_cv_objdir+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   rm -f .libs 2>/dev/null
6180 mkdir .libs 2>/dev/null
6181 if test -d .libs; then
6182   lt_cv_objdir=.libs
6183 else
6184   # MS-DOS does not allow filenames that begin with a dot.
6185   lt_cv_objdir=_libs
6186 fi
6187 rmdir .libs 2>/dev/null
6188 fi
6189 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6190 echo "${ECHO_T}$lt_cv_objdir" >&6
6191 objdir=$lt_cv_objdir
6192
6193
6194
6195
6196
6197 case $host_os in
6198 aix3*)
6199   # AIX sometimes has problems with the GCC collect2 program.  For some
6200   # reason, if we set the COLLECT_NAMES environment variable, the problems
6201   # vanish in a puff of smoke.
6202   if test "X${COLLECT_NAMES+set}" != Xset; then
6203     COLLECT_NAMES=
6204     export COLLECT_NAMES
6205   fi
6206   ;;
6207 esac
6208
6209 # Sed substitution that helps us do robust quoting.  It backslashifies
6210 # metacharacters that are still active within double-quoted strings.
6211 Xsed='sed -e 1s/^X//'
6212 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6213
6214 # Same as above, but do not quote variable references.
6215 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6216
6217 # Sed substitution to delay expansion of an escaped shell variable in a
6218 # double_quote_subst'ed string.
6219 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6220
6221 # Sed substitution to avoid accidental globbing in evaled expressions
6222 no_glob_subst='s/\*/\\\*/g'
6223
6224 # Constants:
6225 rm="rm -f"
6226
6227 # Global variables:
6228 default_ofile=libtool
6229 can_build_shared=yes
6230
6231 # All known linkers require a `.a' archive for static linking (except M$VC,
6232 # which needs '.lib').
6233 libext=a
6234 ltmain="$ac_aux_dir/ltmain.sh"
6235 ofile="$default_ofile"
6236 with_gnu_ld="$lt_cv_prog_gnu_ld"
6237
6238 if test -n "$ac_tool_prefix"; then
6239   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6240 set dummy ${ac_tool_prefix}ar; ac_word=$2
6241 echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6243 if test "${ac_cv_prog_AR+set}" = set; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   if test -n "$AR"; then
6247   ac_cv_prog_AR="$AR" # Let the user override the test.
6248 else
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252   IFS=$as_save_IFS
6253   test -z "$as_dir" && as_dir=.
6254   for ac_exec_ext in '' $ac_executable_extensions; do
6255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256     ac_cv_prog_AR="${ac_tool_prefix}ar"
6257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258     break 2
6259   fi
6260 done
6261 done
6262
6263 fi
6264 fi
6265 AR=$ac_cv_prog_AR
6266 if test -n "$AR"; then
6267   echo "$as_me:$LINENO: result: $AR" >&5
6268 echo "${ECHO_T}$AR" >&6
6269 else
6270   echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6
6272 fi
6273
6274 fi
6275 if test -z "$ac_cv_prog_AR"; then
6276   ac_ct_AR=$AR
6277   # Extract the first word of "ar", so it can be a program name with args.
6278 set dummy ar; ac_word=$2
6279 echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6281 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   if test -n "$ac_ct_AR"; then
6285   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290   IFS=$as_save_IFS
6291   test -z "$as_dir" && as_dir=.
6292   for ac_exec_ext in '' $ac_executable_extensions; do
6293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294     ac_cv_prog_ac_ct_AR="ar"
6295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296     break 2
6297   fi
6298 done
6299 done
6300
6301   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6302 fi
6303 fi
6304 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6305 if test -n "$ac_ct_AR"; then
6306   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6307 echo "${ECHO_T}$ac_ct_AR" >&6
6308 else
6309   echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6
6311 fi
6312
6313   AR=$ac_ct_AR
6314 else
6315   AR="$ac_cv_prog_AR"
6316 fi
6317
6318 if test -n "$ac_tool_prefix"; then
6319   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6320 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6321 echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6323 if test "${ac_cv_prog_RANLIB+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   if test -n "$RANLIB"; then
6327   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332   IFS=$as_save_IFS
6333   test -z "$as_dir" && as_dir=.
6334   for ac_exec_ext in '' $ac_executable_extensions; do
6335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338     break 2
6339   fi
6340 done
6341 done
6342
6343 fi
6344 fi
6345 RANLIB=$ac_cv_prog_RANLIB
6346 if test -n "$RANLIB"; then
6347   echo "$as_me:$LINENO: result: $RANLIB" >&5
6348 echo "${ECHO_T}$RANLIB" >&6
6349 else
6350   echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6352 fi
6353
6354 fi
6355 if test -z "$ac_cv_prog_RANLIB"; then
6356   ac_ct_RANLIB=$RANLIB
6357   # Extract the first word of "ranlib", so it can be a program name with args.
6358 set dummy ranlib; ac_word=$2
6359 echo "$as_me:$LINENO: checking for $ac_word" >&5
6360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6361 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6362   echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364   if test -n "$ac_ct_RANLIB"; then
6365   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370   IFS=$as_save_IFS
6371   test -z "$as_dir" && as_dir=.
6372   for ac_exec_ext in '' $ac_executable_extensions; do
6373   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6374     ac_cv_prog_ac_ct_RANLIB="ranlib"
6375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376     break 2
6377   fi
6378 done
6379 done
6380
6381   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6382 fi
6383 fi
6384 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6385 if test -n "$ac_ct_RANLIB"; then
6386   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6387 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6388 else
6389   echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6
6391 fi
6392
6393   RANLIB=$ac_ct_RANLIB
6394 else
6395   RANLIB="$ac_cv_prog_RANLIB"
6396 fi
6397
6398 if test -n "$ac_tool_prefix"; then
6399   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}strip; ac_word=$2
6401 echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6403 if test "${ac_cv_prog_STRIP+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   if test -n "$STRIP"; then
6407   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412   IFS=$as_save_IFS
6413   test -z "$as_dir" && as_dir=.
6414   for ac_exec_ext in '' $ac_executable_extensions; do
6415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6418     break 2
6419   fi
6420 done
6421 done
6422
6423 fi
6424 fi
6425 STRIP=$ac_cv_prog_STRIP
6426 if test -n "$STRIP"; then
6427   echo "$as_me:$LINENO: result: $STRIP" >&5
6428 echo "${ECHO_T}$STRIP" >&6
6429 else
6430   echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6
6432 fi
6433
6434 fi
6435 if test -z "$ac_cv_prog_STRIP"; then
6436   ac_ct_STRIP=$STRIP
6437   # Extract the first word of "strip", so it can be a program name with args.
6438 set dummy strip; ac_word=$2
6439 echo "$as_me:$LINENO: checking for $ac_word" >&5
6440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6441 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6442   echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444   if test -n "$ac_ct_STRIP"; then
6445   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6449 do
6450   IFS=$as_save_IFS
6451   test -z "$as_dir" && as_dir=.
6452   for ac_exec_ext in '' $ac_executable_extensions; do
6453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454     ac_cv_prog_ac_ct_STRIP="strip"
6455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456     break 2
6457   fi
6458 done
6459 done
6460
6461   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6462 fi
6463 fi
6464 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6465 if test -n "$ac_ct_STRIP"; then
6466   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6467 echo "${ECHO_T}$ac_ct_STRIP" >&6
6468 else
6469   echo "$as_me:$LINENO: result: no" >&5
6470 echo "${ECHO_T}no" >&6
6471 fi
6472
6473   STRIP=$ac_ct_STRIP
6474 else
6475   STRIP="$ac_cv_prog_STRIP"
6476 fi
6477
6478
6479 old_CC="$CC"
6480 old_CFLAGS="$CFLAGS"
6481
6482 # Set sane defaults for various variables
6483 test -z "$AR" && AR=ar
6484 test -z "$AR_FLAGS" && AR_FLAGS=cru
6485 test -z "$AS" && AS=as
6486 test -z "$CC" && CC=cc
6487 test -z "$LTCC" && LTCC=$CC
6488 test -z "$DLLTOOL" && DLLTOOL=dlltool
6489 test -z "$LD" && LD=ld
6490 test -z "$LN_S" && LN_S="ln -s"
6491 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6492 test -z "$NM" && NM=nm
6493 test -z "$SED" && SED=sed
6494 test -z "$OBJDUMP" && OBJDUMP=objdump
6495 test -z "$RANLIB" && RANLIB=:
6496 test -z "$STRIP" && STRIP=:
6497 test -z "$ac_objext" && ac_objext=o
6498
6499 # Determine commands to create old-style static archives.
6500 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6501 old_postinstall_cmds='chmod 644 $oldlib'
6502 old_postuninstall_cmds=
6503
6504 if test -n "$RANLIB"; then
6505   case $host_os in
6506   openbsd*)
6507     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6508     ;;
6509   *)
6510     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6511     ;;
6512   esac
6513   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6514 fi
6515
6516 for cc_temp in $compiler""; do
6517   case $cc_temp in
6518     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6519     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6520     \-*) ;;
6521     *) break;;
6522   esac
6523 done
6524 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6525
6526
6527 # Only perform the check for file, if the check method requires it
6528 case $deplibs_check_method in
6529 file_magic*)
6530   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6531     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6532 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6533 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6534   echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536   case $MAGIC_CMD in
6537 [\\/*] |  ?:[\\/]*)
6538   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6539   ;;
6540 *)
6541   lt_save_MAGIC_CMD="$MAGIC_CMD"
6542   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6543   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6544   for ac_dir in $ac_dummy; do
6545     IFS="$lt_save_ifs"
6546     test -z "$ac_dir" && ac_dir=.
6547     if test -f $ac_dir/${ac_tool_prefix}file; then
6548       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6549       if test -n "$file_magic_test_file"; then
6550         case $deplibs_check_method in
6551         "file_magic "*)
6552           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6553           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6554           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6555             $EGREP "$file_magic_regex" > /dev/null; then
6556             :
6557           else
6558             cat <<EOF 1>&2
6559
6560 *** Warning: the command libtool uses to detect shared libraries,
6561 *** $file_magic_cmd, produces output that libtool cannot recognize.
6562 *** The result is that libtool may fail to recognize shared libraries
6563 *** as such.  This will affect the creation of libtool libraries that
6564 *** depend on shared libraries, but programs linked with such libtool
6565 *** libraries will work regardless of this problem.  Nevertheless, you
6566 *** may want to report the problem to your system manager and/or to
6567 *** bug-libtool@gnu.org
6568
6569 EOF
6570           fi ;;
6571         esac
6572       fi
6573       break
6574     fi
6575   done
6576   IFS="$lt_save_ifs"
6577   MAGIC_CMD="$lt_save_MAGIC_CMD"
6578   ;;
6579 esac
6580 fi
6581
6582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6583 if test -n "$MAGIC_CMD"; then
6584   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6585 echo "${ECHO_T}$MAGIC_CMD" >&6
6586 else
6587   echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6
6589 fi
6590
6591 if test -z "$lt_cv_path_MAGIC_CMD"; then
6592   if test -n "$ac_tool_prefix"; then
6593     echo "$as_me:$LINENO: checking for file" >&5
6594 echo $ECHO_N "checking for file... $ECHO_C" >&6
6595 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   case $MAGIC_CMD in
6599 [\\/*] |  ?:[\\/]*)
6600   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6601   ;;
6602 *)
6603   lt_save_MAGIC_CMD="$MAGIC_CMD"
6604   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6605   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6606   for ac_dir in $ac_dummy; do
6607     IFS="$lt_save_ifs"
6608     test -z "$ac_dir" && ac_dir=.
6609     if test -f $ac_dir/file; then
6610       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6611       if test -n "$file_magic_test_file"; then
6612         case $deplibs_check_method in
6613         "file_magic "*)
6614           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6615           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6616           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6617             $EGREP "$file_magic_regex" > /dev/null; then
6618             :
6619           else
6620             cat <<EOF 1>&2
6621
6622 *** Warning: the command libtool uses to detect shared libraries,
6623 *** $file_magic_cmd, produces output that libtool cannot recognize.
6624 *** The result is that libtool may fail to recognize shared libraries
6625 *** as such.  This will affect the creation of libtool libraries that
6626 *** depend on shared libraries, but programs linked with such libtool
6627 *** libraries will work regardless of this problem.  Nevertheless, you
6628 *** may want to report the problem to your system manager and/or to
6629 *** bug-libtool@gnu.org
6630
6631 EOF
6632           fi ;;
6633         esac
6634       fi
6635       break
6636     fi
6637   done
6638   IFS="$lt_save_ifs"
6639   MAGIC_CMD="$lt_save_MAGIC_CMD"
6640   ;;
6641 esac
6642 fi
6643
6644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6645 if test -n "$MAGIC_CMD"; then
6646   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6647 echo "${ECHO_T}$MAGIC_CMD" >&6
6648 else
6649   echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6
6651 fi
6652
6653   else
6654     MAGIC_CMD=:
6655   fi
6656 fi
6657
6658   fi
6659   ;;
6660 esac
6661
6662 enable_dlopen=no
6663 enable_win32_dll=yes
6664
6665 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6666 if test "${enable_libtool_lock+set}" = set; then
6667   enableval="$enable_libtool_lock"
6668
6669 fi;
6670 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6671
6672
6673 # Check whether --with-pic or --without-pic was given.
6674 if test "${with_pic+set}" = set; then
6675   withval="$with_pic"
6676   pic_mode="$withval"
6677 else
6678   pic_mode=default
6679 fi;
6680 test -z "$pic_mode" && pic_mode=default
6681
6682 # Use C for the default configuration in the libtool script
6683 tagname=
6684 lt_save_CC="$CC"
6685 ac_ext=c
6686 ac_cpp='$CPP $CPPFLAGS'
6687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6690
6691
6692 # Source file extension for C test sources.
6693 ac_ext=c
6694
6695 # Object file extension for compiled C test sources.
6696 objext=o
6697 objext=$objext
6698
6699 # Code to be used in simple compile tests
6700 lt_simple_compile_test_code="int some_variable = 0;\n"
6701
6702 # Code to be used in simple link tests
6703 lt_simple_link_test_code='int main(){return(0);}\n'
6704
6705
6706 # If no C compiler was specified, use CC.
6707 LTCC=${LTCC-"$CC"}
6708
6709 # Allow CC to be a program name with arguments.
6710 compiler=$CC
6711
6712
6713 # save warnings/boilerplate of simple test code
6714 ac_outfile=conftest.$ac_objext
6715 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6716 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6717 _lt_compiler_boilerplate=`cat conftest.err`
6718 $rm conftest*
6719
6720 ac_outfile=conftest.$ac_objext
6721 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6722 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6723 _lt_linker_boilerplate=`cat conftest.err`
6724 $rm conftest*
6725
6726
6727 #
6728 # Check for any special shared library compilation flags.
6729 #
6730 lt_prog_cc_shlib=
6731 if test "$GCC" = no; then
6732   case $host_os in
6733   sco3.2v5*)
6734     lt_prog_cc_shlib='-belf'
6735     ;;
6736   esac
6737 fi
6738 if test -n "$lt_prog_cc_shlib"; then
6739   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6740 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6741   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6742   else
6743     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6744 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6745     lt_cv_prog_cc_can_build_shared=no
6746   fi
6747 fi
6748
6749
6750 #
6751 # Check to make sure the static flag actually works.
6752 #
6753 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6754 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6755 if test "${lt_prog_compiler_static_works+set}" = set; then
6756   echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758   lt_prog_compiler_static_works=no
6759    save_LDFLAGS="$LDFLAGS"
6760    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6761    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6762    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6763      # The compiler can only warn and ignore the option if not recognized
6764      # So say no if there are warnings
6765      if test -s conftest.err; then
6766        # Append any errors to the config.log.
6767        cat conftest.err 1>&5
6768        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6769        $SED '/^$/d' conftest.err >conftest.er2
6770        if diff conftest.exp conftest.er2 >/dev/null; then
6771          lt_prog_compiler_static_works=yes
6772        fi
6773      else
6774        lt_prog_compiler_static_works=yes
6775      fi
6776    fi
6777    $rm conftest*
6778    LDFLAGS="$save_LDFLAGS"
6779
6780 fi
6781 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6782 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6783
6784 if test x"$lt_prog_compiler_static_works" = xyes; then
6785     :
6786 else
6787     lt_prog_compiler_static=
6788 fi
6789
6790
6791
6792 ## CAVEAT EMPTOR:
6793 ## There is no encapsulation within the following macros, do not change
6794 ## the running order or otherwise move them around unless you know exactly
6795 ## what you are doing...
6796
6797 lt_prog_compiler_no_builtin_flag=
6798
6799 if test "$GCC" = yes; then
6800   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6801
6802
6803 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6804 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6805 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6806   echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808   lt_cv_prog_compiler_rtti_exceptions=no
6809   ac_outfile=conftest.$ac_objext
6810    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6811    lt_compiler_flag="-fno-rtti -fno-exceptions"
6812    # Insert the option either (1) after the last *FLAGS variable, or
6813    # (2) before a word containing "conftest.", or (3) at the end.
6814    # Note that $ac_compile itself does not contain backslashes and begins
6815    # with a dollar sign (not a hyphen), so the echo should work correctly.
6816    # The option is referenced via a variable to avoid confusing sed.
6817    lt_compile=`echo "$ac_compile" | $SED \
6818    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6819    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6820    -e 's:$: $lt_compiler_flag:'`
6821    (eval echo "\"\$as_me:6821: $lt_compile\"" >&5)
6822    (eval "$lt_compile" 2>conftest.err)
6823    ac_status=$?
6824    cat conftest.err >&5
6825    echo "$as_me:6825: \$? = $ac_status" >&5
6826    if (exit $ac_status) && test -s "$ac_outfile"; then
6827      # The compiler can only warn and ignore the option if not recognized
6828      # So say no if there are warnings other than the usual output.
6829      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6830      $SED '/^$/d' conftest.err >conftest.er2
6831      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6832        lt_cv_prog_compiler_rtti_exceptions=yes
6833      fi
6834    fi
6835    $rm conftest*
6836
6837 fi
6838 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6839 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6840
6841 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6842     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6843 else
6844     :
6845 fi
6846
6847 fi
6848
6849 lt_prog_compiler_wl=
6850 lt_prog_compiler_pic=
6851 lt_prog_compiler_static=
6852
6853 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6854 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6855
6856   if test "$GCC" = yes; then
6857     lt_prog_compiler_wl='-Wl,'
6858     lt_prog_compiler_static='-static'
6859
6860     case $host_os in
6861       aix*)
6862       # All AIX code is PIC.
6863       if test "$host_cpu" = ia64; then
6864         # AIX 5 now supports IA64 processor
6865         lt_prog_compiler_static='-Bstatic'
6866       fi
6867       ;;
6868
6869     amigaos*)
6870       # FIXME: we need at least 68020 code to build shared libraries, but
6871       # adding the `-m68020' flag to GCC prevents building anything better,
6872       # like `-m68040'.
6873       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6874       ;;
6875
6876     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6877       # PIC is the default for these OSes.
6878       ;;
6879
6880     mingw* | pw32* | os2*)
6881       # This hack is so that the source file can tell whether it is being
6882       # built for inclusion in a dll (and should export symbols for example).
6883       lt_prog_compiler_pic='-DDLL_EXPORT'
6884       ;;
6885
6886     darwin* | rhapsody*)
6887       # PIC is the default on this platform
6888       # Common symbols not allowed in MH_DYLIB files
6889       lt_prog_compiler_pic='-fno-common'
6890       ;;
6891
6892     msdosdjgpp*)
6893       # Just because we use GCC doesn't mean we suddenly get shared libraries
6894       # on systems that don't support them.
6895       lt_prog_compiler_can_build_shared=no
6896       enable_shared=no
6897       ;;
6898
6899     sysv4*MP*)
6900       if test -d /usr/nec; then
6901         lt_prog_compiler_pic=-Kconform_pic
6902       fi
6903       ;;
6904
6905     hpux*)
6906       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6907       # not for PA HP-UX.
6908       case "$host_cpu" in
6909       hppa*64*|ia64*)
6910         # +Z the default
6911         ;;
6912       *)
6913         lt_prog_compiler_pic='-fPIC'
6914         ;;
6915       esac
6916       ;;
6917
6918     *)
6919       lt_prog_compiler_pic='-fPIC'
6920       ;;
6921     esac
6922   else
6923     # PORTME Check for flag to pass linker flags through the system compiler.
6924     case $host_os in
6925     aix*)
6926       lt_prog_compiler_wl='-Wl,'
6927       if test "$host_cpu" = ia64; then
6928         # AIX 5 now supports IA64 processor
6929         lt_prog_compiler_static='-Bstatic'
6930       else
6931         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6932       fi
6933       ;;
6934       darwin*)
6935         # PIC is the default on this platform
6936         # Common symbols not allowed in MH_DYLIB files
6937        case $cc_basename in
6938          xlc*)
6939          lt_prog_compiler_pic='-qnocommon'
6940          lt_prog_compiler_wl='-Wl,'
6941          ;;
6942        esac
6943        ;;
6944
6945     mingw* | pw32* | os2*)
6946       # This hack is so that the source file can tell whether it is being
6947       # built for inclusion in a dll (and should export symbols for example).
6948       lt_prog_compiler_pic='-DDLL_EXPORT'
6949       ;;
6950
6951     hpux9* | hpux10* | hpux11*)
6952       lt_prog_compiler_wl='-Wl,'
6953       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6954       # not for PA HP-UX.
6955       case "$host_cpu" in
6956       hppa*64*|ia64*)
6957         # +Z the default
6958         ;;
6959       *)
6960         lt_prog_compiler_pic='+Z'
6961         ;;
6962       esac
6963       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6964       lt_prog_compiler_static='${wl}-a ${wl}archive'
6965       ;;
6966
6967     irix5* | irix6* | nonstopux*)
6968       lt_prog_compiler_wl='-Wl,'
6969       # PIC (with -KPIC) is the default.
6970       lt_prog_compiler_static='-non_shared'
6971       ;;
6972
6973     newsos6)
6974       lt_prog_compiler_pic='-KPIC'
6975       lt_prog_compiler_static='-Bstatic'
6976       ;;
6977
6978     linux*)
6979       case $cc_basename in
6980       icc* | ecc*)
6981         lt_prog_compiler_wl='-Wl,'
6982         lt_prog_compiler_pic='-KPIC'
6983         lt_prog_compiler_static='-static'
6984         ;;
6985       pgcc* | pgf77* | pgf90*)
6986         # Portland Group compilers (*not* the Pentium gcc compiler,
6987         # which looks to be a dead project)
6988         lt_prog_compiler_wl='-Wl,'
6989         lt_prog_compiler_pic='-fpic'
6990         lt_prog_compiler_static='-static'
6991         ;;
6992       ccc*)
6993         lt_prog_compiler_wl='-Wl,'
6994         # All Alpha code is PIC.
6995         lt_prog_compiler_static='-non_shared'
6996         ;;
6997       esac
6998       ;;
6999
7000     osf3* | osf4* | osf5*)
7001       lt_prog_compiler_wl='-Wl,'
7002       # All OSF/1 code is PIC.
7003       lt_prog_compiler_static='-non_shared'
7004       ;;
7005
7006     sco3.2v5*)
7007       lt_prog_compiler_pic='-Kpic'
7008       lt_prog_compiler_static='-dn'
7009       ;;
7010
7011     solaris*)
7012       lt_prog_compiler_pic='-KPIC'
7013       lt_prog_compiler_static='-Bstatic'
7014       case $cc_basename in
7015       f77* | f90* | f95*)
7016         lt_prog_compiler_wl='-Qoption ld ';;
7017       *)
7018         lt_prog_compiler_wl='-Wl,';;
7019       esac
7020       ;;
7021
7022     sunos4*)
7023       lt_prog_compiler_wl='-Qoption ld '
7024       lt_prog_compiler_pic='-PIC'
7025       lt_prog_compiler_static='-Bstatic'
7026       ;;
7027
7028     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7029       lt_prog_compiler_wl='-Wl,'
7030       lt_prog_compiler_pic='-KPIC'
7031       lt_prog_compiler_static='-Bstatic'
7032       ;;
7033
7034     sysv4*MP*)
7035       if test -d /usr/nec ;then
7036         lt_prog_compiler_pic='-Kconform_pic'
7037         lt_prog_compiler_static='-Bstatic'
7038       fi
7039       ;;
7040
7041     unicos*)
7042       lt_prog_compiler_wl='-Wl,'
7043       lt_prog_compiler_can_build_shared=no
7044       ;;
7045
7046     uts4*)
7047       lt_prog_compiler_pic='-pic'
7048       lt_prog_compiler_static='-Bstatic'
7049       ;;
7050
7051     *)
7052       lt_prog_compiler_can_build_shared=no
7053       ;;
7054     esac
7055   fi
7056
7057 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7058 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7059
7060 #
7061 # Check to make sure the PIC flag actually works.
7062 #
7063 if test -n "$lt_prog_compiler_pic"; then
7064
7065 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7066 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7067 if test "${lt_prog_compiler_pic_works+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   lt_prog_compiler_pic_works=no
7071   ac_outfile=conftest.$ac_objext
7072    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7073    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7074    # Insert the option either (1) after the last *FLAGS variable, or
7075    # (2) before a word containing "conftest.", or (3) at the end.
7076    # Note that $ac_compile itself does not contain backslashes and begins
7077    # with a dollar sign (not a hyphen), so the echo should work correctly.
7078    # The option is referenced via a variable to avoid confusing sed.
7079    lt_compile=`echo "$ac_compile" | $SED \
7080    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7081    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7082    -e 's:$: $lt_compiler_flag:'`
7083    (eval echo "\"\$as_me:7083: $lt_compile\"" >&5)
7084    (eval "$lt_compile" 2>conftest.err)
7085    ac_status=$?
7086    cat conftest.err >&5
7087    echo "$as_me:7087: \$? = $ac_status" >&5
7088    if (exit $ac_status) && test -s "$ac_outfile"; then
7089      # The compiler can only warn and ignore the option if not recognized
7090      # So say no if there are warnings other than the usual output.
7091      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7092      $SED '/^$/d' conftest.err >conftest.er2
7093      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7094        lt_prog_compiler_pic_works=yes
7095      fi
7096    fi
7097    $rm conftest*
7098
7099 fi
7100 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7101 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7102
7103 if test x"$lt_prog_compiler_pic_works" = xyes; then
7104     case $lt_prog_compiler_pic in
7105      "" | " "*) ;;
7106      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7107      esac
7108 else
7109     lt_prog_compiler_pic=
7110      lt_prog_compiler_can_build_shared=no
7111 fi
7112
7113 fi
7114 case "$host_os" in
7115   # For platforms which do not support PIC, -DPIC is meaningless:
7116   *djgpp*)
7117     lt_prog_compiler_pic=
7118     ;;
7119   *)
7120     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7121     ;;
7122 esac
7123
7124 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7125 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7126 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129   lt_cv_prog_compiler_c_o=no
7130    $rm -r conftest 2>/dev/null
7131    mkdir conftest
7132    cd conftest
7133    mkdir out
7134    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7135
7136    lt_compiler_flag="-o out/conftest2.$ac_objext"
7137    # Insert the option either (1) after the last *FLAGS variable, or
7138    # (2) before a word containing "conftest.", or (3) at the end.
7139    # Note that $ac_compile itself does not contain backslashes and begins
7140    # with a dollar sign (not a hyphen), so the echo should work correctly.
7141    lt_compile=`echo "$ac_compile" | $SED \
7142    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7143    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7144    -e 's:$: $lt_compiler_flag:'`
7145    (eval echo "\"\$as_me:7145: $lt_compile\"" >&5)
7146    (eval "$lt_compile" 2>out/conftest.err)
7147    ac_status=$?
7148    cat out/conftest.err >&5
7149    echo "$as_me:7149: \$? = $ac_status" >&5
7150    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7151    then
7152      # The compiler can only warn and ignore the option if not recognized
7153      # So say no if there are warnings
7154      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7155      $SED '/^$/d' out/conftest.err >out/conftest.er2
7156      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7157        lt_cv_prog_compiler_c_o=yes
7158      fi
7159    fi
7160    chmod u+w .
7161    $rm conftest*
7162    # SGI C++ compiler will create directory out/ii_files/ for
7163    # template instantiation
7164    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7165    $rm out/* && rmdir out
7166    cd ..
7167    rmdir conftest
7168    $rm conftest*
7169
7170 fi
7171 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7172 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7173
7174
7175 hard_links="nottested"
7176 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7177   # do not overwrite the value of need_locks provided by the user
7178   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7179 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7180   hard_links=yes
7181   $rm conftest*
7182   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7183   touch conftest.a
7184   ln conftest.a conftest.b 2>&5 || hard_links=no
7185   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7186   echo "$as_me:$LINENO: result: $hard_links" >&5
7187 echo "${ECHO_T}$hard_links" >&6
7188   if test "$hard_links" = no; then
7189     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7190 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7191     need_locks=warn
7192   fi
7193 else
7194   need_locks=no
7195 fi
7196
7197 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7198 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7199
7200   runpath_var=
7201   allow_undefined_flag=
7202   enable_shared_with_static_runtimes=no
7203   archive_cmds=
7204   archive_expsym_cmds=
7205   old_archive_From_new_cmds=
7206   old_archive_from_expsyms_cmds=
7207   export_dynamic_flag_spec=
7208   whole_archive_flag_spec=
7209   thread_safe_flag_spec=
7210   hardcode_libdir_flag_spec=
7211   hardcode_libdir_flag_spec_ld=
7212   hardcode_libdir_separator=
7213   hardcode_direct=no
7214   hardcode_minus_L=no
7215   hardcode_shlibpath_var=unsupported
7216   link_all_deplibs=unknown
7217   hardcode_automatic=no
7218   module_cmds=
7219   module_expsym_cmds=
7220   always_export_symbols=no
7221   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7222   # include_expsyms should be a list of space-separated symbols to be *always*
7223   # included in the symbol list
7224   include_expsyms=
7225   # exclude_expsyms can be an extended regexp of symbols to exclude
7226   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7227   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7228   # as well as any symbol that contains `d'.
7229   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7230   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7231   # platforms (ab)use it in PIC code, but their linkers get confused if
7232   # the symbol is explicitly referenced.  Since portable code cannot
7233   # rely on this symbol name, it's probably fine to never include it in
7234   # preloaded symbol tables.
7235   extract_expsyms_cmds=
7236   # Just being paranoid about ensuring that cc_basename is set.
7237   for cc_temp in $compiler""; do
7238   case $cc_temp in
7239     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7240     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7241     \-*) ;;
7242     *) break;;
7243   esac
7244 done
7245 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7246
7247   case $host_os in
7248   cygwin* | mingw* | pw32*)
7249     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7250     # When not using gcc, we currently assume that we are using
7251     # Microsoft Visual C++.
7252     if test "$GCC" != yes; then
7253       with_gnu_ld=no
7254     fi
7255     ;;
7256   openbsd*)
7257     with_gnu_ld=no
7258     ;;
7259   esac
7260
7261   ld_shlibs=yes
7262   if test "$with_gnu_ld" = yes; then
7263     # If archive_cmds runs LD, not CC, wlarc should be empty
7264     wlarc='${wl}'
7265
7266     # Set some defaults for GNU ld with shared library support. These
7267     # are reset later if shared libraries are not supported. Putting them
7268     # here allows them to be overridden if necessary.
7269     runpath_var=LD_RUN_PATH
7270     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7271     export_dynamic_flag_spec='${wl}--export-dynamic'
7272     # ancient GNU ld didn't support --whole-archive et. al.
7273     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7274         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7275       else
7276         whole_archive_flag_spec=
7277     fi
7278     supports_anon_versioning=no
7279     case `$LD -v 2>/dev/null` in
7280       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7281       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7282       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7283       *\ 2.11.*) ;; # other 2.11 versions
7284       *) supports_anon_versioning=yes ;;
7285     esac
7286
7287     # See if GNU ld supports shared libraries.
7288     case $host_os in
7289     aix3* | aix4* | aix5*)
7290       # On AIX/PPC, the GNU linker is very broken
7291       if test "$host_cpu" != ia64; then
7292         ld_shlibs=no
7293         cat <<EOF 1>&2
7294
7295 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7296 *** to be unable to reliably create shared libraries on AIX.
7297 *** Therefore, libtool is disabling shared libraries support.  If you
7298 *** really care for shared libraries, you may want to modify your PATH
7299 *** so that a non-GNU linker is found, and then restart.
7300
7301 EOF
7302       fi
7303       ;;
7304
7305     amigaos*)
7306       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)'
7307       hardcode_libdir_flag_spec='-L$libdir'
7308       hardcode_minus_L=yes
7309
7310       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7311       # that the semantics of dynamic libraries on AmigaOS, at least up
7312       # to version 4, is to share data among multiple programs linked
7313       # with the same dynamic library.  Since this doesn't match the
7314       # behavior of shared libraries on other platforms, we can't use
7315       # them.
7316       ld_shlibs=no
7317       ;;
7318
7319     beos*)
7320       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7321         allow_undefined_flag=unsupported
7322         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7323         # support --undefined.  This deserves some investigation.  FIXME
7324         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7325       else
7326         ld_shlibs=no
7327       fi
7328       ;;
7329
7330     cygwin* | mingw* | pw32*)
7331       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7332       # as there is no search path for DLLs.
7333       hardcode_libdir_flag_spec='-L$libdir'
7334       allow_undefined_flag=unsupported
7335       always_export_symbols=no
7336       enable_shared_with_static_runtimes=yes
7337       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7338
7339       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7340         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7341         # If the export-symbols file already is a .def file (1st line
7342         # is EXPORTS), use it as is; otherwise, prepend...
7343         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7344           cp $export_symbols $output_objdir/$soname.def;
7345         else
7346           echo EXPORTS > $output_objdir/$soname.def;
7347           cat $export_symbols >> $output_objdir/$soname.def;
7348         fi~
7349         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7350       else
7351         ld_shlibs=no
7352       fi
7353       ;;
7354
7355     linux*)
7356       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7357         tmp_addflag=
7358         case $cc_basename,$host_cpu in
7359         pgcc*)                          # Portland Group C compiler
7360           whole_archive_flag_spec=
7361           ;;
7362         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
7363           whole_archive_flag_spec=
7364           tmp_addflag=' -fpic -Mnomain' ;;
7365         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7366           tmp_addflag=' -i_dynamic' ;;
7367         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7368           tmp_addflag=' -i_dynamic -nofor_main' ;;
7369         ifc* | ifort*)                  # Intel Fortran compiler
7370           tmp_addflag=' -nofor_main' ;;
7371         esac
7372         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7373
7374         if test $supports_anon_versioning = yes; then
7375           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7376   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7377   $echo "local: *; };" >> $output_objdir/$libname.ver~
7378           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7379         fi
7380       else
7381         ld_shlibs=no
7382       fi
7383       ;;
7384
7385     netbsd*)
7386       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7387         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7388         wlarc=
7389       else
7390         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7391         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7392       fi
7393       ;;
7394
7395     solaris* | sysv5*)
7396       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7397         ld_shlibs=no
7398         cat <<EOF 1>&2
7399
7400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7401 *** create shared libraries on Solaris systems.  Therefore, libtool
7402 *** is disabling shared libraries support.  We urge you to upgrade GNU
7403 *** binutils to release 2.9.1 or newer.  Another option is to modify
7404 *** your PATH or compiler configuration so that the native linker is
7405 *** used, and then restart.
7406
7407 EOF
7408       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7409         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7410         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7411       else
7412         ld_shlibs=no
7413       fi
7414       ;;
7415
7416     sunos4*)
7417       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7418       wlarc=
7419       hardcode_direct=yes
7420       hardcode_shlibpath_var=no
7421       ;;
7422
7423     *)
7424       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7425         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7426         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7427       else
7428         ld_shlibs=no
7429       fi
7430       ;;
7431     esac
7432
7433     if test "$ld_shlibs" = no; then
7434       runpath_var=
7435       hardcode_libdir_flag_spec=
7436       export_dynamic_flag_spec=
7437       whole_archive_flag_spec=
7438     fi
7439   else
7440     # PORTME fill in a description of your system's linker (not GNU ld)
7441     case $host_os in
7442     aix3*)
7443       allow_undefined_flag=unsupported
7444       always_export_symbols=yes
7445       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'
7446       # Note: this linker hardcodes the directories in LIBPATH if there
7447       # are no directories specified by -L.
7448       hardcode_minus_L=yes
7449       if test "$GCC" = yes && test -z "$link_static_flag"; then
7450         # Neither direct hardcoding nor static linking is supported with a
7451         # broken collect2.
7452         hardcode_direct=unsupported
7453       fi
7454       ;;
7455
7456     aix4* | aix5*)
7457       if test "$host_cpu" = ia64; then
7458         # On IA64, the linker does run time linking by default, so we don't
7459         # have to do anything special.
7460         aix_use_runtimelinking=no
7461         exp_sym_flag='-Bexport'
7462         no_entry_flag=""
7463       else
7464         # If we're using GNU nm, then we don't want the "-C" option.
7465         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7466         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7467           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'
7468         else
7469           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'
7470         fi
7471         aix_use_runtimelinking=no
7472
7473         # Test if we are trying to use run time linking or normal
7474         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7475         # need to do runtime linking.
7476         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7477           for ld_flag in $LDFLAGS; do
7478           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7479             aix_use_runtimelinking=yes
7480             break
7481           fi
7482           done
7483         esac
7484
7485         exp_sym_flag='-bexport'
7486         no_entry_flag='-bnoentry'
7487       fi
7488
7489       # When large executables or shared objects are built, AIX ld can
7490       # have problems creating the table of contents.  If linking a library
7491       # or program results in "error TOC overflow" add -mminimal-toc to
7492       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7493       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7494
7495       archive_cmds=''
7496       hardcode_direct=yes
7497       hardcode_libdir_separator=':'
7498       link_all_deplibs=yes
7499
7500       if test "$GCC" = yes; then
7501         case $host_os in aix4.[012]|aix4.[012].*)
7502         # We only want to do this on AIX 4.2 and lower, the check
7503         # below for broken collect2 doesn't work under 4.3+
7504           collect2name=`${CC} -print-prog-name=collect2`
7505           if test -f "$collect2name" && \
7506            strings "$collect2name" | grep resolve_lib_name >/dev/null
7507           then
7508           # We have reworked collect2
7509           hardcode_direct=yes
7510           else
7511           # We have old collect2
7512           hardcode_direct=unsupported
7513           # It fails to find uninstalled libraries when the uninstalled
7514           # path is not listed in the libpath.  Setting hardcode_minus_L
7515           # to unsupported forces relinking
7516           hardcode_minus_L=yes
7517           hardcode_libdir_flag_spec='-L$libdir'
7518           hardcode_libdir_separator=
7519           fi
7520         esac
7521         shared_flag='-shared'
7522         if test "$aix_use_runtimelinking" = yes; then
7523           shared_flag="$shared_flag "'${wl}-G'
7524         fi
7525       else
7526         # not using gcc
7527         if test "$host_cpu" = ia64; then
7528         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7529         # chokes on -Wl,-G. The following line is correct:
7530           shared_flag='-G'
7531         else
7532         if test "$aix_use_runtimelinking" = yes; then
7533             shared_flag='${wl}-G'
7534           else
7535             shared_flag='${wl}-bM:SRE'
7536         fi
7537         fi
7538       fi
7539
7540       # It seems that -bexpall does not export symbols beginning with
7541       # underscore (_), so it is better to generate a list of symbols to export.
7542       always_export_symbols=yes
7543       if test "$aix_use_runtimelinking" = yes; then
7544         # Warning - without using the other runtime loading flags (-brtl),
7545         # -berok will link without error, but may produce a broken library.
7546         allow_undefined_flag='-berok'
7547        # Determine the default libpath from the value encoded in an empty executable.
7548        cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h.  */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h.  */
7554
7555 int
7556 main ()
7557 {
7558
7559   ;
7560   return 0;
7561 }
7562 _ACEOF
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565   (eval $ac_link) 2>conftest.er1
7566   ac_status=$?
7567   grep -v '^ *+' conftest.er1 >conftest.err
7568   rm -f conftest.er1
7569   cat conftest.err >&5
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); } &&
7572          { ac_try='test -z "$ac_c_werror_flag"
7573                          || test ! -s conftest.err'
7574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575   (eval $ac_try) 2>&5
7576   ac_status=$?
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); }; } &&
7579          { ac_try='test -s conftest$ac_exeext'
7580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581   (eval $ac_try) 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }; }; then
7585
7586 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7587 }'`
7588 # Check for a 64-bit object if we didn't find anything.
7589 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; }
7590 }'`; fi
7591 else
7592   echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7594
7595 fi
7596 rm -f conftest.err conftest.$ac_objext \
7597       conftest$ac_exeext conftest.$ac_ext
7598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7599
7600        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7601         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"
7602        else
7603         if test "$host_cpu" = ia64; then
7604           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7605           allow_undefined_flag="-z nodefs"
7606           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"
7607         else
7608          # Determine the default libpath from the value encoded in an empty executable.
7609          cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h.  */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h.  */
7615
7616 int
7617 main ()
7618 {
7619
7620   ;
7621   return 0;
7622 }
7623 _ACEOF
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626   (eval $ac_link) 2>conftest.er1
7627   ac_status=$?
7628   grep -v '^ *+' conftest.er1 >conftest.err
7629   rm -f conftest.er1
7630   cat conftest.err >&5
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); } &&
7633          { ac_try='test -z "$ac_c_werror_flag"
7634                          || test ! -s conftest.err'
7635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636   (eval $ac_try) 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }; } &&
7640          { ac_try='test -s conftest$ac_exeext'
7641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642   (eval $ac_try) 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); }; }; then
7646
7647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7648 }'`
7649 # Check for a 64-bit object if we didn't find anything.
7650 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; }
7651 }'`; fi
7652 else
7653   echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7655
7656 fi
7657 rm -f conftest.err conftest.$ac_objext \
7658       conftest$ac_exeext conftest.$ac_ext
7659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7660
7661          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7662           # Warning - without using the other run time loading flags,
7663           # -berok will link without error, but may produce a broken library.
7664           no_undefined_flag=' ${wl}-bernotok'
7665           allow_undefined_flag=' ${wl}-berok'
7666           # -bexpall does not export symbols beginning with underscore (_)
7667           always_export_symbols=yes
7668           # Exported symbols can be pulled into shared objects from archives
7669           whole_archive_flag_spec=' '
7670           archive_cmds_need_lc=yes
7671           # This is similar to how AIX traditionally builds it's shared libraries.
7672           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'
7673         fi
7674       fi
7675       ;;
7676
7677     amigaos*)
7678       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)'
7679       hardcode_libdir_flag_spec='-L$libdir'
7680       hardcode_minus_L=yes
7681       # see comment about different semantics on the GNU ld section
7682       ld_shlibs=no
7683       ;;
7684
7685     bsdi[45]*)
7686       export_dynamic_flag_spec=-rdynamic
7687       ;;
7688
7689     cygwin* | mingw* | pw32*)
7690       # When not using gcc, we currently assume that we are using
7691       # Microsoft Visual C++.
7692       # hardcode_libdir_flag_spec is actually meaningless, as there is
7693       # no search path for DLLs.
7694       hardcode_libdir_flag_spec=' '
7695       allow_undefined_flag=unsupported
7696       # Tell ltmain to make .lib files, not .a files.
7697       libext=lib
7698       # Tell ltmain to make .dll files, not .so files.
7699       shrext_cmds=".dll"
7700       # FIXME: Setting linknames here is a bad hack.
7701       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7702       # The linker will automatically build a .lib file if we build a DLL.
7703       old_archive_From_new_cmds='true'
7704       # FIXME: Should let the user specify the lib program.
7705       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7706       fix_srcfile_path='`cygpath -w "$srcfile"`'
7707       enable_shared_with_static_runtimes=yes
7708       ;;
7709
7710     darwin* | rhapsody*)
7711       case "$host_os" in
7712         rhapsody* | darwin1.[012])
7713          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7714          ;;
7715        *) # Darwin 1.3 on
7716          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7717            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7718          else
7719            case ${MACOSX_DEPLOYMENT_TARGET} in
7720              10.[012])
7721                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7722                ;;
7723              10.*)
7724                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7725                ;;
7726            esac
7727          fi
7728          ;;
7729       esac
7730       archive_cmds_need_lc=no
7731       hardcode_direct=no
7732       hardcode_automatic=yes
7733       hardcode_shlibpath_var=unsupported
7734       whole_archive_flag_spec=''
7735       link_all_deplibs=yes
7736     if test "$GCC" = yes ; then
7737         output_verbose_link_cmd='echo'
7738         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7739       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7740       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7741       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}'
7742       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}'
7743     else
7744       case $cc_basename in
7745         xlc*)
7746          output_verbose_link_cmd='echo'
7747          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7748          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7749           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7750          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}'
7751           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}'
7752           ;;
7753        *)
7754          ld_shlibs=no
7755           ;;
7756       esac
7757     fi
7758       ;;
7759
7760     dgux*)
7761       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7762       hardcode_libdir_flag_spec='-L$libdir'
7763       hardcode_shlibpath_var=no
7764       ;;
7765
7766     freebsd1*)
7767       ld_shlibs=no
7768       ;;
7769
7770     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7771     # support.  Future versions do this automatically, but an explicit c++rt0.o
7772     # does not break anything, and helps significantly (at the cost of a little
7773     # extra space).
7774     freebsd2.2*)
7775       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7776       hardcode_libdir_flag_spec='-R$libdir'
7777       hardcode_direct=yes
7778       hardcode_shlibpath_var=no
7779       ;;
7780
7781     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7782     freebsd2*)
7783       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7784       hardcode_direct=yes
7785       hardcode_minus_L=yes
7786       hardcode_shlibpath_var=no
7787       ;;
7788
7789     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7790     freebsd* | kfreebsd*-gnu | dragonfly*)
7791       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7792       hardcode_libdir_flag_spec='-R$libdir'
7793       hardcode_direct=yes
7794       hardcode_shlibpath_var=no
7795       ;;
7796
7797     hpux9*)
7798       if test "$GCC" = yes; then
7799         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'
7800       else
7801         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'
7802       fi
7803       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7804       hardcode_libdir_separator=:
7805       hardcode_direct=yes
7806
7807       # hardcode_minus_L: Not really in the search PATH,
7808       # but as the default location of the library.
7809       hardcode_minus_L=yes
7810       export_dynamic_flag_spec='${wl}-E'
7811       ;;
7812
7813     hpux10* | hpux11*)
7814       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7815         case "$host_cpu" in
7816         hppa*64*|ia64*)
7817           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7818           ;;
7819         *)
7820           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7821           ;;
7822         esac
7823       else
7824         case "$host_cpu" in
7825         hppa*64*|ia64*)
7826           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7827           ;;
7828         *)
7829           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7830           ;;
7831         esac
7832       fi
7833       if test "$with_gnu_ld" = no; then
7834         case "$host_cpu" in
7835         hppa*64*)
7836           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7837           hardcode_libdir_flag_spec_ld='+b $libdir'
7838           hardcode_libdir_separator=:
7839           hardcode_direct=no
7840           hardcode_shlibpath_var=no
7841           ;;
7842         ia64*)
7843           hardcode_libdir_flag_spec='-L$libdir'
7844           hardcode_direct=no
7845           hardcode_shlibpath_var=no
7846
7847           # hardcode_minus_L: Not really in the search PATH,
7848           # but as the default location of the library.
7849           hardcode_minus_L=yes
7850           ;;
7851         *)
7852           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7853           hardcode_libdir_separator=:
7854           hardcode_direct=yes
7855           export_dynamic_flag_spec='${wl}-E'
7856
7857           # hardcode_minus_L: Not really in the search PATH,
7858           # but as the default location of the library.
7859           hardcode_minus_L=yes
7860           ;;
7861         esac
7862       fi
7863       ;;
7864
7865     irix5* | irix6* | nonstopux*)
7866       if test "$GCC" = yes; then
7867         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'
7868       else
7869         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'
7870         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7871       fi
7872       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7873       hardcode_libdir_separator=:
7874       link_all_deplibs=yes
7875       ;;
7876
7877     netbsd*)
7878       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7879         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7880       else
7881         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7882       fi
7883       hardcode_libdir_flag_spec='-R$libdir'
7884       hardcode_direct=yes
7885       hardcode_shlibpath_var=no
7886       ;;
7887
7888     newsos6)
7889       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7890       hardcode_direct=yes
7891       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7892       hardcode_libdir_separator=:
7893       hardcode_shlibpath_var=no
7894       ;;
7895
7896     openbsd*)
7897       hardcode_direct=yes
7898       hardcode_shlibpath_var=no
7899       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7900         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7901         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7902         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7903         export_dynamic_flag_spec='${wl}-E'
7904       else
7905        case $host_os in
7906          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7907            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7908            hardcode_libdir_flag_spec='-R$libdir'
7909            ;;
7910          *)
7911            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7912            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7913            ;;
7914        esac
7915       fi
7916       ;;
7917
7918     os2*)
7919       hardcode_libdir_flag_spec='-L$libdir'
7920       hardcode_minus_L=yes
7921       allow_undefined_flag=unsupported
7922       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'
7923       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7924       ;;
7925
7926     osf3*)
7927       if test "$GCC" = yes; then
7928         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7929         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'
7930       else
7931         allow_undefined_flag=' -expect_unresolved \*'
7932         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'
7933       fi
7934       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7935       hardcode_libdir_separator=:
7936       ;;
7937
7938     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7939       if test "$GCC" = yes; then
7940         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7941         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'
7942         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7943       else
7944         allow_undefined_flag=' -expect_unresolved \*'
7945         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'
7946         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7947         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7948
7949         # Both c and cxx compiler support -rpath directly
7950         hardcode_libdir_flag_spec='-rpath $libdir'
7951       fi
7952       hardcode_libdir_separator=:
7953       ;;
7954
7955     sco3.2v5*)
7956       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7957       hardcode_shlibpath_var=no
7958       export_dynamic_flag_spec='${wl}-Bexport'
7959       runpath_var=LD_RUN_PATH
7960       hardcode_runpath_var=yes
7961       ;;
7962
7963     solaris*)
7964       no_undefined_flag=' -z text'
7965       if test "$GCC" = yes; then
7966         wlarc='${wl}'
7967         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7968         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7969           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7970       else
7971         wlarc=''
7972         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7973         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7974         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7975       fi
7976       hardcode_libdir_flag_spec='-R$libdir'
7977       hardcode_shlibpath_var=no
7978       case $host_os in
7979       solaris2.[0-5] | solaris2.[0-5].*) ;;
7980       *)
7981         # The compiler driver will combine linker options so we
7982         # cannot just pass the convience library names through
7983         # without $wl, iff we do not link with $LD.
7984         # Luckily, gcc supports the same syntax we need for Sun Studio.
7985         # Supported since Solaris 2.6 (maybe 2.5.1?)
7986         case $wlarc in
7987         '')
7988           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7989         *)
7990           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7991         esac ;;
7992       esac
7993       link_all_deplibs=yes
7994       ;;
7995
7996     sunos4*)
7997       if test "x$host_vendor" = xsequent; then
7998         # Use $CC to link under sequent, because it throws in some extra .o
7999         # files that make .init and .fini sections work.
8000         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8001       else
8002         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8003       fi
8004       hardcode_libdir_flag_spec='-L$libdir'
8005       hardcode_direct=yes
8006       hardcode_minus_L=yes
8007       hardcode_shlibpath_var=no
8008       ;;
8009
8010     sysv4)
8011       case $host_vendor in
8012         sni)
8013           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8014           hardcode_direct=yes # is this really true???
8015         ;;
8016         siemens)
8017           ## LD is ld it makes a PLAMLIB
8018           ## CC just makes a GrossModule.
8019           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8020           reload_cmds='$CC -r -o $output$reload_objs'
8021           hardcode_direct=no
8022         ;;
8023         motorola)
8024           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8025           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8026         ;;
8027       esac
8028       runpath_var='LD_RUN_PATH'
8029       hardcode_shlibpath_var=no
8030       ;;
8031
8032     sysv4.3*)
8033       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8034       hardcode_shlibpath_var=no
8035       export_dynamic_flag_spec='-Bexport'
8036       ;;
8037
8038     sysv4*MP*)
8039       if test -d /usr/nec; then
8040         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8041         hardcode_shlibpath_var=no
8042         runpath_var=LD_RUN_PATH
8043         hardcode_runpath_var=yes
8044         ld_shlibs=yes
8045       fi
8046       ;;
8047
8048     sysv4.2uw2*)
8049       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8050       hardcode_direct=yes
8051       hardcode_minus_L=no
8052       hardcode_shlibpath_var=no
8053       hardcode_runpath_var=yes
8054       runpath_var=LD_RUN_PATH
8055       ;;
8056
8057    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8058       no_undefined_flag='${wl}-z ${wl}text'
8059       if test "$GCC" = yes; then
8060         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8061       else
8062         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8063       fi
8064       runpath_var='LD_RUN_PATH'
8065       hardcode_shlibpath_var=no
8066       ;;
8067
8068     sysv5*)
8069       no_undefined_flag=' -z text'
8070       # $CC -shared without GNU ld will not create a library from C++
8071       # object files and a static libstdc++, better avoid it by now
8072       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8073       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8074                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8075       hardcode_libdir_flag_spec=
8076       hardcode_shlibpath_var=no
8077       runpath_var='LD_RUN_PATH'
8078       ;;
8079
8080     uts4*)
8081       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8082       hardcode_libdir_flag_spec='-L$libdir'
8083       hardcode_shlibpath_var=no
8084       ;;
8085
8086     *)
8087       ld_shlibs=no
8088       ;;
8089     esac
8090   fi
8091
8092 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8093 echo "${ECHO_T}$ld_shlibs" >&6
8094 test "$ld_shlibs" = no && can_build_shared=no
8095
8096 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8097 if test "$GCC" = yes; then
8098   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8099 fi
8100
8101 #
8102 # Do we need to explicitly link libc?
8103 #
8104 case "x$archive_cmds_need_lc" in
8105 x|xyes)
8106   # Assume -lc should be added
8107   archive_cmds_need_lc=yes
8108
8109   if test "$enable_shared" = yes && test "$GCC" = yes; then
8110     case $archive_cmds in
8111     *'~'*)
8112       # FIXME: we may have to deal with multi-command sequences.
8113       ;;
8114     '$CC '*)
8115       # Test whether the compiler implicitly links with -lc since on some
8116       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8117       # to ld, don't add -lc before -lgcc.
8118       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8119 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8120       $rm conftest*
8121       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8122
8123       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8124   (eval $ac_compile) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } 2>conftest.err; then
8128         soname=conftest
8129         lib=conftest
8130         libobjs=conftest.$ac_objext
8131         deplibs=
8132         wl=$lt_prog_compiler_wl
8133         compiler_flags=-v
8134         linker_flags=-v
8135         verstring=
8136         output_objdir=.
8137         libname=conftest
8138         lt_save_allow_undefined_flag=$allow_undefined_flag
8139         allow_undefined_flag=
8140         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8141   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }
8145         then
8146           archive_cmds_need_lc=no
8147         else
8148           archive_cmds_need_lc=yes
8149         fi
8150         allow_undefined_flag=$lt_save_allow_undefined_flag
8151       else
8152         cat conftest.err 1>&5
8153       fi
8154       $rm conftest*
8155       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8156 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8157       ;;
8158     esac
8159   fi
8160   ;;
8161 esac
8162
8163 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8164 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8165 library_names_spec=
8166 libname_spec='lib$name'
8167 soname_spec=
8168 shrext_cmds=".so"
8169 postinstall_cmds=
8170 postuninstall_cmds=
8171 finish_cmds=
8172 finish_eval=
8173 shlibpath_var=
8174 shlibpath_overrides_runpath=unknown
8175 version_type=none
8176 dynamic_linker="$host_os ld.so"
8177 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8178 if test "$GCC" = yes; then
8179   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8180   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8181     # if the path contains ";" then we assume it to be the separator
8182     # otherwise default to the standard path separator (i.e. ":") - it is
8183     # assumed that no part of a normal pathname contains ";" but that should
8184     # okay in the real world where ";" in dirpaths is itself problematic.
8185     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8186   else
8187     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8188   fi
8189 else
8190   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8191 fi
8192 need_lib_prefix=unknown
8193 hardcode_into_libs=no
8194
8195 # when you set need_version to no, make sure it does not cause -set_version
8196 # flags to be left without arguments
8197 need_version=unknown
8198
8199 case $host_os in
8200 aix3*)
8201   version_type=linux
8202   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8203   shlibpath_var=LIBPATH
8204
8205   # AIX 3 has no versioning support, so we append a major version to the name.
8206   soname_spec='${libname}${release}${shared_ext}$major'
8207   ;;
8208
8209 aix4* | aix5*)
8210   version_type=linux
8211   need_lib_prefix=no
8212   need_version=no
8213   hardcode_into_libs=yes
8214   if test "$host_cpu" = ia64; then
8215     # AIX 5 supports IA64
8216     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8217     shlibpath_var=LD_LIBRARY_PATH
8218   else
8219     # With GCC up to 2.95.x, collect2 would create an import file
8220     # for dependence libraries.  The import file would start with
8221     # the line `#! .'.  This would cause the generated library to
8222     # depend on `.', always an invalid library.  This was fixed in
8223     # development snapshots of GCC prior to 3.0.
8224     case $host_os in
8225       aix4 | aix4.[01] | aix4.[01].*)
8226       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8227            echo ' yes '
8228            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8229         :
8230       else
8231         can_build_shared=no
8232       fi
8233       ;;
8234     esac
8235     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8236     # soname into executable. Probably we can add versioning support to
8237     # collect2, so additional links can be useful in future.
8238     if test "$aix_use_runtimelinking" = yes; then
8239       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8240       # instead of lib<name>.a to let people know that these are not
8241       # typical AIX shared libraries.
8242       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8243     else
8244       # We preserve .a as extension for shared libraries through AIX4.2
8245       # and later when we are not doing run time linking.
8246       library_names_spec='${libname}${release}.a $libname.a'
8247       soname_spec='${libname}${release}${shared_ext}$major'
8248     fi
8249     shlibpath_var=LIBPATH
8250   fi
8251   ;;
8252
8253 amigaos*)
8254   library_names_spec='$libname.ixlibrary $libname.a'
8255   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8256   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'
8257   ;;
8258
8259 beos*)
8260   library_names_spec='${libname}${shared_ext}'
8261   dynamic_linker="$host_os ld.so"
8262   shlibpath_var=LIBRARY_PATH
8263   ;;
8264
8265 bsdi[45]*)
8266   version_type=linux
8267   need_version=no
8268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8269   soname_spec='${libname}${release}${shared_ext}$major'
8270   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8271   shlibpath_var=LD_LIBRARY_PATH
8272   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8273   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8274   # the default ld.so.conf also contains /usr/contrib/lib and
8275   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8276   # libtool to hard-code these into programs
8277   ;;
8278
8279 cygwin* | mingw* | pw32*)
8280   version_type=windows
8281   shrext_cmds=".dll"
8282   need_version=no
8283   need_lib_prefix=no
8284
8285   case $GCC,$host_os in
8286   yes,cygwin* | yes,mingw* | yes,pw32*)
8287     library_names_spec='$libname.dll.a'
8288     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8289     postinstall_cmds='base_file=`basename \${file}`~
8290       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8291       dldir=$destdir/`dirname \$dlpath`~
8292       test -d \$dldir || mkdir -p \$dldir~
8293       $install_prog $dir/$dlname \$dldir/$dlname'
8294     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8295       dlpath=$dir/\$dldll~
8296        $rm \$dlpath'
8297     shlibpath_overrides_runpath=yes
8298
8299     case $host_os in
8300     cygwin*)
8301       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8302       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8303       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8304       ;;
8305     mingw*)
8306       # MinGW DLLs use traditional 'lib' prefix
8307       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8308       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8309       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8310         # It is most probably a Windows format PATH printed by
8311         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8312         # path with ; separators, and with drive letters. We can handle the
8313         # drive letters (cygwin fileutils understands them), so leave them,
8314         # especially as we might pass files found there to a mingw objdump,
8315         # which wouldn't understand a cygwinified path. Ahh.
8316         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8317       else
8318         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8319       fi
8320       ;;
8321     pw32*)
8322       # pw32 DLLs use 'pw' prefix rather than 'lib'
8323       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8324       ;;
8325     esac
8326     ;;
8327
8328   *)
8329     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8330     ;;
8331   esac
8332   dynamic_linker='Win32 ld.exe'
8333   # FIXME: first we should search . and the directory the executable is in
8334   shlibpath_var=PATH
8335   ;;
8336
8337 darwin* | rhapsody*)
8338   dynamic_linker="$host_os dyld"
8339   version_type=darwin
8340   need_lib_prefix=no
8341   need_version=no
8342   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8343   soname_spec='${libname}${release}${major}$shared_ext'
8344   shlibpath_overrides_runpath=yes
8345   shlibpath_var=DYLD_LIBRARY_PATH
8346   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8347   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8348   if test "$GCC" = yes; then
8349     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"`
8350   else
8351     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8352   fi
8353   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8354   ;;
8355
8356 dgux*)
8357   version_type=linux
8358   need_lib_prefix=no
8359   need_version=no
8360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8361   soname_spec='${libname}${release}${shared_ext}$major'
8362   shlibpath_var=LD_LIBRARY_PATH
8363   ;;
8364
8365 freebsd1*)
8366   dynamic_linker=no
8367   ;;
8368
8369 kfreebsd*-gnu)
8370   version_type=linux
8371   need_lib_prefix=no
8372   need_version=no
8373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8374   soname_spec='${libname}${release}${shared_ext}$major'
8375   shlibpath_var=LD_LIBRARY_PATH
8376   shlibpath_overrides_runpath=no
8377   hardcode_into_libs=yes
8378   dynamic_linker='GNU ld.so'
8379   ;;
8380
8381 freebsd* | dragonfly*)
8382   # DragonFly does not have aout.  When/if they implement a new
8383   # versioning mechanism, adjust this.
8384   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8385   version_type=freebsd-$objformat
8386   case $version_type in
8387     freebsd-elf*)
8388       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8389       need_version=no
8390       need_lib_prefix=no
8391       ;;
8392     freebsd-*)
8393       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8394       need_version=yes
8395       ;;
8396   esac
8397   shlibpath_var=LD_LIBRARY_PATH
8398   case $host_os in
8399   freebsd2*)
8400     shlibpath_overrides_runpath=yes
8401     ;;
8402   freebsd3.[01]* | freebsdelf3.[01]*)
8403     shlibpath_overrides_runpath=yes
8404     hardcode_into_libs=yes
8405     ;;
8406   *) # from 3.2 on
8407     shlibpath_overrides_runpath=no
8408     hardcode_into_libs=yes
8409     ;;
8410   esac
8411   ;;
8412
8413 gnu*)
8414   version_type=linux
8415   need_lib_prefix=no
8416   need_version=no
8417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8418   soname_spec='${libname}${release}${shared_ext}$major'
8419   shlibpath_var=LD_LIBRARY_PATH
8420   hardcode_into_libs=yes
8421   ;;
8422
8423 hpux9* | hpux10* | hpux11*)
8424   # Give a soname corresponding to the major version so that dld.sl refuses to
8425   # link against other versions.
8426   version_type=sunos
8427   need_lib_prefix=no
8428   need_version=no
8429   case "$host_cpu" in
8430   ia64*)
8431     shrext_cmds='.so'
8432     hardcode_into_libs=yes
8433     dynamic_linker="$host_os dld.so"
8434     shlibpath_var=LD_LIBRARY_PATH
8435     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8437     soname_spec='${libname}${release}${shared_ext}$major'
8438     if test "X$HPUX_IA64_MODE" = X32; then
8439       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8440     else
8441       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8442     fi
8443     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8444     ;;
8445    hppa*64*)
8446      shrext_cmds='.sl'
8447      hardcode_into_libs=yes
8448      dynamic_linker="$host_os dld.sl"
8449      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8450      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8451      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8452      soname_spec='${libname}${release}${shared_ext}$major'
8453      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8454      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8455      ;;
8456    *)
8457     shrext_cmds='.sl'
8458     dynamic_linker="$host_os dld.sl"
8459     shlibpath_var=SHLIB_PATH
8460     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8461     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8462     soname_spec='${libname}${release}${shared_ext}$major'
8463     ;;
8464   esac
8465   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8466   postinstall_cmds='chmod 555 $lib'
8467   ;;
8468
8469 irix5* | irix6* | nonstopux*)
8470   case $host_os in
8471     nonstopux*) version_type=nonstopux ;;
8472     *)
8473         if test "$lt_cv_prog_gnu_ld" = yes; then
8474                 version_type=linux
8475         else
8476                 version_type=irix
8477         fi ;;
8478   esac
8479   need_lib_prefix=no
8480   need_version=no
8481   soname_spec='${libname}${release}${shared_ext}$major'
8482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8483   case $host_os in
8484   irix5* | nonstopux*)
8485     libsuff= shlibsuff=
8486     ;;
8487   *)
8488     case $LD in # libtool.m4 will add one of these switches to LD
8489     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8490       libsuff= shlibsuff= libmagic=32-bit;;
8491     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8492       libsuff=32 shlibsuff=N32 libmagic=N32;;
8493     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8494       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8495     *) libsuff= shlibsuff= libmagic=never-match;;
8496     esac
8497     ;;
8498   esac
8499   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8500   shlibpath_overrides_runpath=no
8501   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8502   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8503   hardcode_into_libs=yes
8504   ;;
8505
8506 # No shared lib support for Linux oldld, aout, or coff.
8507 linux*oldld* | linux*aout* | linux*coff*)
8508   dynamic_linker=no
8509   ;;
8510
8511 # This must be Linux ELF.
8512 linux*)
8513   version_type=linux
8514   need_lib_prefix=no
8515   need_version=no
8516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8517   soname_spec='${libname}${release}${shared_ext}$major'
8518   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8519   shlibpath_var=LD_LIBRARY_PATH
8520   shlibpath_overrides_runpath=no
8521   # This implies no fast_install, which is unacceptable.
8522   # Some rework will be needed to allow for fast_install
8523   # before this can be enabled.
8524   hardcode_into_libs=yes
8525
8526   # find out which ABI we are using
8527   libsuff=
8528   case "$host_cpu" in
8529   x86_64*|s390x*|powerpc64*)
8530     echo '#line 8530 "configure"' > conftest.$ac_ext
8531     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532   (eval $ac_compile) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; then
8536       case `/usr/bin/file conftest.$ac_objext` in
8537       *64-bit*)
8538         libsuff=64
8539         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8540         ;;
8541       esac
8542     fi
8543     rm -rf conftest*
8544     ;;
8545   esac
8546
8547   # Append ld.so.conf contents to the search path
8548   if test -f /etc/ld.so.conf; then
8549     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8550     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8551   fi
8552
8553   # We used to test for /lib/ld.so.1 and disable shared libraries on
8554   # powerpc, because MkLinux only supported shared libraries with the
8555   # GNU dynamic linker.  Since this was broken with cross compilers,
8556   # most powerpc-linux boxes support dynamic linking these days and
8557   # people can always --disable-shared, the test was removed, and we
8558   # assume the GNU/Linux dynamic linker is in use.
8559   dynamic_linker='GNU/Linux ld.so'
8560   ;;
8561
8562 knetbsd*-gnu)
8563   version_type=linux
8564   need_lib_prefix=no
8565   need_version=no
8566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8567   soname_spec='${libname}${release}${shared_ext}$major'
8568   shlibpath_var=LD_LIBRARY_PATH
8569   shlibpath_overrides_runpath=no
8570   hardcode_into_libs=yes
8571   dynamic_linker='GNU ld.so'
8572   ;;
8573
8574 netbsd*)
8575   version_type=sunos
8576   need_lib_prefix=no
8577   need_version=no
8578   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8579     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8580     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8581     dynamic_linker='NetBSD (a.out) ld.so'
8582   else
8583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8584     soname_spec='${libname}${release}${shared_ext}$major'
8585     dynamic_linker='NetBSD ld.elf_so'
8586   fi
8587   shlibpath_var=LD_LIBRARY_PATH
8588   shlibpath_overrides_runpath=yes
8589   hardcode_into_libs=yes
8590   ;;
8591
8592 newsos6)
8593   version_type=linux
8594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595   shlibpath_var=LD_LIBRARY_PATH
8596   shlibpath_overrides_runpath=yes
8597   ;;
8598
8599 nto-qnx*)
8600   version_type=linux
8601   need_lib_prefix=no
8602   need_version=no
8603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604   soname_spec='${libname}${release}${shared_ext}$major'
8605   shlibpath_var=LD_LIBRARY_PATH
8606   shlibpath_overrides_runpath=yes
8607   ;;
8608
8609 openbsd*)
8610   version_type=sunos
8611   need_lib_prefix=no
8612   need_version=no
8613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8614   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8615   shlibpath_var=LD_LIBRARY_PATH
8616   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8617     case $host_os in
8618       openbsd2.[89] | openbsd2.[89].*)
8619         shlibpath_overrides_runpath=no
8620         ;;
8621       *)
8622         shlibpath_overrides_runpath=yes
8623         ;;
8624       esac
8625   else
8626     shlibpath_overrides_runpath=yes
8627   fi
8628   ;;
8629
8630 os2*)
8631   libname_spec='$name'
8632   shrext_cmds=".dll"
8633   need_lib_prefix=no
8634   library_names_spec='$libname${shared_ext} $libname.a'
8635   dynamic_linker='OS/2 ld.exe'
8636   shlibpath_var=LIBPATH
8637   ;;
8638
8639 osf3* | osf4* | osf5*)
8640   version_type=osf
8641   need_lib_prefix=no
8642   need_version=no
8643   soname_spec='${libname}${release}${shared_ext}$major'
8644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8645   shlibpath_var=LD_LIBRARY_PATH
8646   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8647   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8648   ;;
8649
8650 sco3.2v5*)
8651   version_type=osf
8652   soname_spec='${libname}${release}${shared_ext}$major'
8653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8654   shlibpath_var=LD_LIBRARY_PATH
8655   ;;
8656
8657 solaris*)
8658   version_type=linux
8659   need_lib_prefix=no
8660   need_version=no
8661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8662   soname_spec='${libname}${release}${shared_ext}$major'
8663   shlibpath_var=LD_LIBRARY_PATH
8664   shlibpath_overrides_runpath=yes
8665   hardcode_into_libs=yes
8666   # ldd complains unless libraries are executable
8667   postinstall_cmds='chmod +x $lib'
8668   ;;
8669
8670 sunos4*)
8671   version_type=sunos
8672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8673   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8674   shlibpath_var=LD_LIBRARY_PATH
8675   shlibpath_overrides_runpath=yes
8676   if test "$with_gnu_ld" = yes; then
8677     need_lib_prefix=no
8678   fi
8679   need_version=yes
8680   ;;
8681
8682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8683   version_type=linux
8684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685   soname_spec='${libname}${release}${shared_ext}$major'
8686   shlibpath_var=LD_LIBRARY_PATH
8687   case $host_vendor in
8688     sni)
8689       shlibpath_overrides_runpath=no
8690       need_lib_prefix=no
8691       export_dynamic_flag_spec='${wl}-Blargedynsym'
8692       runpath_var=LD_RUN_PATH
8693       ;;
8694     siemens)
8695       need_lib_prefix=no
8696       ;;
8697     motorola)
8698       need_lib_prefix=no
8699       need_version=no
8700       shlibpath_overrides_runpath=no
8701       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8702       ;;
8703   esac
8704   ;;
8705
8706 sysv4*MP*)
8707   if test -d /usr/nec ;then
8708     version_type=linux
8709     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8710     soname_spec='$libname${shared_ext}.$major'
8711     shlibpath_var=LD_LIBRARY_PATH
8712   fi
8713   ;;
8714
8715 uts4*)
8716   version_type=linux
8717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8718   soname_spec='${libname}${release}${shared_ext}$major'
8719   shlibpath_var=LD_LIBRARY_PATH
8720   ;;
8721
8722 *)
8723   dynamic_linker=no
8724   ;;
8725 esac
8726 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8727 echo "${ECHO_T}$dynamic_linker" >&6
8728 test "$dynamic_linker" = no && can_build_shared=no
8729
8730 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8731 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8732 hardcode_action=
8733 if test -n "$hardcode_libdir_flag_spec" || \
8734    test -n "$runpath_var" || \
8735    test "X$hardcode_automatic" = "Xyes" ; then
8736
8737   # We can hardcode non-existant directories.
8738   if test "$hardcode_direct" != no &&
8739      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8740      # have to relink, otherwise we might link with an installed library
8741      # when we should be linking with a yet-to-be-installed one
8742      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8743      test "$hardcode_minus_L" != no; then
8744     # Linking always hardcodes the temporary library directory.
8745     hardcode_action=relink
8746   else
8747     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8748     hardcode_action=immediate
8749   fi
8750 else
8751   # We cannot hardcode anything, or else we can only hardcode existing
8752   # directories.
8753   hardcode_action=unsupported
8754 fi
8755 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8756 echo "${ECHO_T}$hardcode_action" >&6
8757
8758 if test "$hardcode_action" = relink; then
8759   # Fast installation is not supported
8760   enable_fast_install=no
8761 elif test "$shlibpath_overrides_runpath" = yes ||
8762      test "$enable_shared" = no; then
8763   # Fast installation is not necessary
8764   enable_fast_install=needless
8765 fi
8766
8767 striplib=
8768 old_striplib=
8769 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8770 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8771 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8772   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8773   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8774   echo "$as_me:$LINENO: result: yes" >&5
8775 echo "${ECHO_T}yes" >&6
8776 else
8777 # FIXME - insert some real tests, host_os isn't really good enough
8778   case $host_os in
8779    darwin*)
8780        if test -n "$STRIP" ; then
8781          striplib="$STRIP -x"
8782          echo "$as_me:$LINENO: result: yes" >&5
8783 echo "${ECHO_T}yes" >&6
8784        else
8785   echo "$as_me:$LINENO: result: no" >&5
8786 echo "${ECHO_T}no" >&6
8787 fi
8788        ;;
8789    *)
8790   echo "$as_me:$LINENO: result: no" >&5
8791 echo "${ECHO_T}no" >&6
8792     ;;
8793   esac
8794 fi
8795
8796 if test "x$enable_dlopen" != xyes; then
8797   enable_dlopen=unknown
8798   enable_dlopen_self=unknown
8799   enable_dlopen_self_static=unknown
8800 else
8801   lt_cv_dlopen=no
8802   lt_cv_dlopen_libs=
8803
8804   case $host_os in
8805   beos*)
8806     lt_cv_dlopen="load_add_on"
8807     lt_cv_dlopen_libs=
8808     lt_cv_dlopen_self=yes
8809     ;;
8810
8811   mingw* | pw32*)
8812     lt_cv_dlopen="LoadLibrary"
8813     lt_cv_dlopen_libs=
8814    ;;
8815
8816   cygwin*)
8817     lt_cv_dlopen="dlopen"
8818     lt_cv_dlopen_libs=
8819    ;;
8820
8821   darwin*)
8822   # if libdl is installed we need to link against it
8823     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8824 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8825 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8826   echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828   ac_check_lib_save_LIBS=$LIBS
8829 LIBS="-ldl  $LIBS"
8830 cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h.  */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h.  */
8836
8837 /* Override any gcc2 internal prototype to avoid an error.  */
8838 #ifdef __cplusplus
8839 extern "C"
8840 #endif
8841 /* We use char because int might match the return type of a gcc2
8842    builtin and then its argument prototype would still apply.  */
8843 char dlopen ();
8844 int
8845 main ()
8846 {
8847 dlopen ();
8848   ;
8849   return 0;
8850 }
8851 _ACEOF
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854   (eval $ac_link) 2>conftest.er1
8855   ac_status=$?
8856   grep -v '^ *+' conftest.er1 >conftest.err
8857   rm -f conftest.er1
8858   cat conftest.err >&5
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); } &&
8861          { ac_try='test -z "$ac_c_werror_flag"
8862                          || test ! -s conftest.err'
8863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864   (eval $ac_try) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; } &&
8868          { ac_try='test -s conftest$ac_exeext'
8869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870   (eval $ac_try) 2>&5
8871   ac_status=$?
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); }; }; then
8874   ac_cv_lib_dl_dlopen=yes
8875 else
8876   echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879 ac_cv_lib_dl_dlopen=no
8880 fi
8881 rm -f conftest.err conftest.$ac_objext \
8882       conftest$ac_exeext conftest.$ac_ext
8883 LIBS=$ac_check_lib_save_LIBS
8884 fi
8885 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8886 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8887 if test $ac_cv_lib_dl_dlopen = yes; then
8888   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8889 else
8890
8891     lt_cv_dlopen="dyld"
8892     lt_cv_dlopen_libs=
8893     lt_cv_dlopen_self=yes
8894
8895 fi
8896
8897    ;;
8898
8899   *)
8900     echo "$as_me:$LINENO: checking for shl_load" >&5
8901 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8902 if test "${ac_cv_func_shl_load+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 shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8913 #define shl_load innocuous_shl_load
8914
8915 /* System header to define __stub macros and hopefully few prototypes,
8916     which can conflict with char shl_load (); 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 shl_load
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 shl_load ();
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_shl_load) || defined (__stub___shl_load)
8940 choke me
8941 #else
8942 char (*f) () = shl_load;
8943 #endif
8944 #ifdef __cplusplus
8945 }
8946 #endif
8947
8948 int
8949 main ()
8950 {
8951 return f != shl_load;
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_shl_load=yes
8979 else
8980   echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8982
8983 ac_cv_func_shl_load=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_shl_load" >&5
8989 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8990 if test $ac_cv_func_shl_load = yes; then
8991   lt_cv_dlopen="shl_load"
8992 else
8993   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8994 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8995 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8996   echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998   ac_check_lib_save_LIBS=$LIBS
8999 LIBS="-ldld  $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 shl_load ();
9014 int
9015 main ()
9016 {
9017 shl_load ();
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_dld_shl_load=yes
9045 else
9046   echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049 ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
9056 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9057 if test $ac_cv_lib_dld_shl_load = yes; then
9058   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9059 else
9060   echo "$as_me:$LINENO: checking for dlopen" >&5
9061 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9062 if test "${ac_cv_func_dlopen+set}" = set; then
9063   echo $ECHO_N "(cached) $ECHO_C" >&6
9064 else
9065   cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h.  */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h.  */
9071 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9073 #define dlopen innocuous_dlopen
9074
9075 /* System header to define __stub macros and hopefully few prototypes,
9076     which can conflict with char dlopen (); below.
9077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9078     <limits.h> exists even on freestanding compilers.  */
9079
9080 #ifdef __STDC__
9081 # include <limits.h>
9082 #else
9083 # include <assert.h>
9084 #endif
9085
9086 #undef dlopen
9087
9088 /* Override any gcc2 internal prototype to avoid an error.  */
9089 #ifdef __cplusplus
9090 extern "C"
9091 {
9092 #endif
9093 /* We use char because int might match the return type of a gcc2
9094    builtin and then its argument prototype would still apply.  */
9095 char dlopen ();
9096 /* The GNU C library defines this for functions which it implements
9097     to always fail with ENOSYS.  Some functions are actually named
9098     something starting with __ and the normal name is an alias.  */
9099 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9100 choke me
9101 #else
9102 char (*f) () = dlopen;
9103 #endif
9104 #ifdef __cplusplus
9105 }
9106 #endif
9107
9108 int
9109 main ()
9110 {
9111 return f != dlopen;
9112   ;
9113   return 0;
9114 }
9115 _ACEOF
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9118   (eval $ac_link) 2>conftest.er1
9119   ac_status=$?
9120   grep -v '^ *+' conftest.er1 >conftest.err
9121   rm -f conftest.er1
9122   cat conftest.err >&5
9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); } &&
9125          { ac_try='test -z "$ac_c_werror_flag"
9126                          || test ! -s conftest.err'
9127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128   (eval $ac_try) 2>&5
9129   ac_status=$?
9130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131   (exit $ac_status); }; } &&
9132          { ac_try='test -s conftest$ac_exeext'
9133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134   (eval $ac_try) 2>&5
9135   ac_status=$?
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); }; }; then
9138   ac_cv_func_dlopen=yes
9139 else
9140   echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9142
9143 ac_cv_func_dlopen=no
9144 fi
9145 rm -f conftest.err conftest.$ac_objext \
9146       conftest$ac_exeext conftest.$ac_ext
9147 fi
9148 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9149 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9150 if test $ac_cv_func_dlopen = yes; then
9151   lt_cv_dlopen="dlopen"
9152 else
9153   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9154 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9155 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9156   echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158   ac_check_lib_save_LIBS=$LIBS
9159 LIBS="-ldl  $LIBS"
9160 cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h.  */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h.  */
9166
9167 /* Override any gcc2 internal prototype to avoid an error.  */
9168 #ifdef __cplusplus
9169 extern "C"
9170 #endif
9171 /* We use char because int might match the return type of a gcc2
9172    builtin and then its argument prototype would still apply.  */
9173 char dlopen ();
9174 int
9175 main ()
9176 {
9177 dlopen ();
9178   ;
9179   return 0;
9180 }
9181 _ACEOF
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184   (eval $ac_link) 2>conftest.er1
9185   ac_status=$?
9186   grep -v '^ *+' conftest.er1 >conftest.err
9187   rm -f conftest.er1
9188   cat conftest.err >&5
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); } &&
9191          { ac_try='test -z "$ac_c_werror_flag"
9192                          || test ! -s conftest.err'
9193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194   (eval $ac_try) 2>&5
9195   ac_status=$?
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); }; } &&
9198          { ac_try='test -s conftest$ac_exeext'
9199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200   (eval $ac_try) 2>&5
9201   ac_status=$?
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); }; }; then
9204   ac_cv_lib_dl_dlopen=yes
9205 else
9206   echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9208
9209 ac_cv_lib_dl_dlopen=no
9210 fi
9211 rm -f conftest.err conftest.$ac_objext \
9212       conftest$ac_exeext conftest.$ac_ext
9213 LIBS=$ac_check_lib_save_LIBS
9214 fi
9215 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9216 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9217 if test $ac_cv_lib_dl_dlopen = yes; then
9218   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9219 else
9220   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9221 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9222 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   ac_check_lib_save_LIBS=$LIBS
9226 LIBS="-lsvld  $LIBS"
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h.  */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h.  */
9233
9234 /* Override any gcc2 internal prototype to avoid an error.  */
9235 #ifdef __cplusplus
9236 extern "C"
9237 #endif
9238 /* We use char because int might match the return type of a gcc2
9239    builtin and then its argument prototype would still apply.  */
9240 char dlopen ();
9241 int
9242 main ()
9243 {
9244 dlopen ();
9245   ;
9246   return 0;
9247 }
9248 _ACEOF
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251   (eval $ac_link) 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } &&
9258          { ac_try='test -z "$ac_c_werror_flag"
9259                          || test ! -s conftest.err'
9260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261   (eval $ac_try) 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); }; } &&
9265          { ac_try='test -s conftest$ac_exeext'
9266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267   (eval $ac_try) 2>&5
9268   ac_status=$?
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); }; }; then
9271   ac_cv_lib_svld_dlopen=yes
9272 else
9273   echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9275
9276 ac_cv_lib_svld_dlopen=no
9277 fi
9278 rm -f conftest.err conftest.$ac_objext \
9279       conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9281 fi
9282 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9283 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9284 if test $ac_cv_lib_svld_dlopen = yes; then
9285   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9286 else
9287   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9288 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9289 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9290   echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292   ac_check_lib_save_LIBS=$LIBS
9293 LIBS="-ldld  $LIBS"
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h.  */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h.  */
9300
9301 /* Override any gcc2 internal prototype to avoid an error.  */
9302 #ifdef __cplusplus
9303 extern "C"
9304 #endif
9305 /* We use char because int might match the return type of a gcc2
9306    builtin and then its argument prototype would still apply.  */
9307 char dld_link ();
9308 int
9309 main ()
9310 {
9311 dld_link ();
9312   ;
9313   return 0;
9314 }
9315 _ACEOF
9316 rm -f conftest.$ac_objext conftest$ac_exeext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9318   (eval $ac_link) 2>conftest.er1
9319   ac_status=$?
9320   grep -v '^ *+' conftest.er1 >conftest.err
9321   rm -f conftest.er1
9322   cat conftest.err >&5
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); } &&
9325          { ac_try='test -z "$ac_c_werror_flag"
9326                          || test ! -s conftest.err'
9327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328   (eval $ac_try) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); }; } &&
9332          { ac_try='test -s conftest$ac_exeext'
9333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334   (eval $ac_try) 2>&5
9335   ac_status=$?
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   (exit $ac_status); }; }; then
9338   ac_cv_lib_dld_dld_link=yes
9339 else
9340   echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9342
9343 ac_cv_lib_dld_dld_link=no
9344 fi
9345 rm -f conftest.err conftest.$ac_objext \
9346       conftest$ac_exeext conftest.$ac_ext
9347 LIBS=$ac_check_lib_save_LIBS
9348 fi
9349 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9350 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9351 if test $ac_cv_lib_dld_dld_link = yes; then
9352   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9353 fi
9354
9355
9356 fi
9357
9358
9359 fi
9360
9361
9362 fi
9363
9364
9365 fi
9366
9367
9368 fi
9369
9370     ;;
9371   esac
9372
9373   if test "x$lt_cv_dlopen" != xno; then
9374     enable_dlopen=yes
9375   else
9376     enable_dlopen=no
9377   fi
9378
9379   case $lt_cv_dlopen in
9380   dlopen)
9381     save_CPPFLAGS="$CPPFLAGS"
9382     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9383
9384     save_LDFLAGS="$LDFLAGS"
9385     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9386
9387     save_LIBS="$LIBS"
9388     LIBS="$lt_cv_dlopen_libs $LIBS"
9389
9390     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9391 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9392 if test "${lt_cv_dlopen_self+set}" = set; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395           if test "$cross_compiling" = yes; then :
9396   lt_cv_dlopen_self=cross
9397 else
9398   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9399   lt_status=$lt_dlunknown
9400   cat > conftest.$ac_ext <<EOF
9401 #line 9401 "configure"
9402 #include "confdefs.h"
9403
9404 #if HAVE_DLFCN_H
9405 #include <dlfcn.h>
9406 #endif
9407
9408 #include <stdio.h>
9409
9410 #ifdef RTLD_GLOBAL
9411 #  define LT_DLGLOBAL           RTLD_GLOBAL
9412 #else
9413 #  ifdef DL_GLOBAL
9414 #    define LT_DLGLOBAL         DL_GLOBAL
9415 #  else
9416 #    define LT_DLGLOBAL         0
9417 #  endif
9418 #endif
9419
9420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9421    find out it does not work in some platform. */
9422 #ifndef LT_DLLAZY_OR_NOW
9423 #  ifdef RTLD_LAZY
9424 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9425 #  else
9426 #    ifdef DL_LAZY
9427 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9428 #    else
9429 #      ifdef RTLD_NOW
9430 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9431 #      else
9432 #        ifdef DL_NOW
9433 #          define LT_DLLAZY_OR_NOW      DL_NOW
9434 #        else
9435 #          define LT_DLLAZY_OR_NOW      0
9436 #        endif
9437 #      endif
9438 #    endif
9439 #  endif
9440 #endif
9441
9442 #ifdef __cplusplus
9443 extern "C" void exit (int);
9444 #endif
9445
9446 void fnord() { int i=42;}
9447 int main ()
9448 {
9449   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9450   int status = $lt_dlunknown;
9451
9452   if (self)
9453     {
9454       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9455       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9456       /* dlclose (self); */
9457     }
9458
9459     exit (status);
9460 }
9461 EOF
9462   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9463   (eval $ac_link) 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9467     (./conftest; exit; ) 2>/dev/null
9468     lt_status=$?
9469     case x$lt_status in
9470       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9471       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9472       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9473     esac
9474   else :
9475     # compilation failed
9476     lt_cv_dlopen_self=no
9477   fi
9478 fi
9479 rm -fr conftest*
9480
9481
9482 fi
9483 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9484 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9485
9486     if test "x$lt_cv_dlopen_self" = xyes; then
9487       LDFLAGS="$LDFLAGS $link_static_flag"
9488       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9489 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9490 if test "${lt_cv_dlopen_self_static+set}" = set; then
9491   echo $ECHO_N "(cached) $ECHO_C" >&6
9492 else
9493           if test "$cross_compiling" = yes; then :
9494   lt_cv_dlopen_self_static=cross
9495 else
9496   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9497   lt_status=$lt_dlunknown
9498   cat > conftest.$ac_ext <<EOF
9499 #line 9499 "configure"
9500 #include "confdefs.h"
9501
9502 #if HAVE_DLFCN_H
9503 #include <dlfcn.h>
9504 #endif
9505
9506 #include <stdio.h>
9507
9508 #ifdef RTLD_GLOBAL
9509 #  define LT_DLGLOBAL           RTLD_GLOBAL
9510 #else
9511 #  ifdef DL_GLOBAL
9512 #    define LT_DLGLOBAL         DL_GLOBAL
9513 #  else
9514 #    define LT_DLGLOBAL         0
9515 #  endif
9516 #endif
9517
9518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9519    find out it does not work in some platform. */
9520 #ifndef LT_DLLAZY_OR_NOW
9521 #  ifdef RTLD_LAZY
9522 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9523 #  else
9524 #    ifdef DL_LAZY
9525 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9526 #    else
9527 #      ifdef RTLD_NOW
9528 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9529 #      else
9530 #        ifdef DL_NOW
9531 #          define LT_DLLAZY_OR_NOW      DL_NOW
9532 #        else
9533 #          define LT_DLLAZY_OR_NOW      0
9534 #        endif
9535 #      endif
9536 #    endif
9537 #  endif
9538 #endif
9539
9540 #ifdef __cplusplus
9541 extern "C" void exit (int);
9542 #endif
9543
9544 void fnord() { int i=42;}
9545 int main ()
9546 {
9547   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9548   int status = $lt_dlunknown;
9549
9550   if (self)
9551     {
9552       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9553       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9554       /* dlclose (self); */
9555     }
9556
9557     exit (status);
9558 }
9559 EOF
9560   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9561   (eval $ac_link) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9565     (./conftest; exit; ) 2>/dev/null
9566     lt_status=$?
9567     case x$lt_status in
9568       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9569       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9570       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9571     esac
9572   else :
9573     # compilation failed
9574     lt_cv_dlopen_self_static=no
9575   fi
9576 fi
9577 rm -fr conftest*
9578
9579
9580 fi
9581 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9582 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9583     fi
9584
9585     CPPFLAGS="$save_CPPFLAGS"
9586     LDFLAGS="$save_LDFLAGS"
9587     LIBS="$save_LIBS"
9588     ;;
9589   esac
9590
9591   case $lt_cv_dlopen_self in
9592   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9593   *) enable_dlopen_self=unknown ;;
9594   esac
9595
9596   case $lt_cv_dlopen_self_static in
9597   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9598   *) enable_dlopen_self_static=unknown ;;
9599   esac
9600 fi
9601
9602
9603 # Report which librarie types wil actually be built
9604 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9605 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9606 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9607 echo "${ECHO_T}$can_build_shared" >&6
9608
9609 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9610 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9611 test "$can_build_shared" = "no" && enable_shared=no
9612
9613 # On AIX, shared libraries and static libraries use the same namespace, and
9614 # are all built from PIC.
9615 case "$host_os" in
9616 aix3*)
9617   test "$enable_shared" = yes && enable_static=no
9618   if test -n "$RANLIB"; then
9619     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9620     postinstall_cmds='$RANLIB $lib'
9621   fi
9622   ;;
9623
9624 aix4* | aix5*)
9625   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9626     test "$enable_shared" = yes && enable_static=no
9627   fi
9628     ;;
9629 esac
9630 echo "$as_me:$LINENO: result: $enable_shared" >&5
9631 echo "${ECHO_T}$enable_shared" >&6
9632
9633 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9634 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9635 # Make sure either enable_shared or enable_static is yes.
9636 test "$enable_shared" = yes || enable_static=yes
9637 echo "$as_me:$LINENO: result: $enable_static" >&5
9638 echo "${ECHO_T}$enable_static" >&6
9639
9640 # The else clause should only fire when bootstrapping the
9641 # libtool distribution, otherwise you forgot to ship ltmain.sh
9642 # with your package, and you will get complaints that there are
9643 # no rules to generate ltmain.sh.
9644 if test -f "$ltmain"; then
9645   # See if we are running on zsh, and set the options which allow our commands through
9646   # without removal of \ escapes.
9647   if test -n "${ZSH_VERSION+set}" ; then
9648     setopt NO_GLOB_SUBST
9649   fi
9650   # Now quote all the things that may contain metacharacters while being
9651   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9652   # variables and quote the copies for generation of the libtool script.
9653   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9654     SED SHELL STRIP \
9655     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9656     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9657     deplibs_check_method reload_flag reload_cmds need_locks \
9658     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9659     lt_cv_sys_global_symbol_to_c_name_address \
9660     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9661     old_postinstall_cmds old_postuninstall_cmds \
9662     compiler \
9663     CC \
9664     LD \
9665     lt_prog_compiler_wl \
9666     lt_prog_compiler_pic \
9667     lt_prog_compiler_static \
9668     lt_prog_compiler_no_builtin_flag \
9669     export_dynamic_flag_spec \
9670     thread_safe_flag_spec \
9671     whole_archive_flag_spec \
9672     enable_shared_with_static_runtimes \
9673     old_archive_cmds \
9674     old_archive_from_new_cmds \
9675     predep_objects \
9676     postdep_objects \
9677     predeps \
9678     postdeps \
9679     compiler_lib_search_path \
9680     archive_cmds \
9681     archive_expsym_cmds \
9682     postinstall_cmds \
9683     postuninstall_cmds \
9684     old_archive_from_expsyms_cmds \
9685     allow_undefined_flag \
9686     no_undefined_flag \
9687     export_symbols_cmds \
9688     hardcode_libdir_flag_spec \
9689     hardcode_libdir_flag_spec_ld \
9690     hardcode_libdir_separator \
9691     hardcode_automatic \
9692     module_cmds \
9693     module_expsym_cmds \
9694     lt_cv_prog_compiler_c_o \
9695     exclude_expsyms \
9696     include_expsyms; do
9697
9698     case $var in
9699     old_archive_cmds | \
9700     old_archive_from_new_cmds | \
9701     archive_cmds | \
9702     archive_expsym_cmds | \
9703     module_cmds | \
9704     module_expsym_cmds | \
9705     old_archive_from_expsyms_cmds | \
9706     export_symbols_cmds | \
9707     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9708     postinstall_cmds | postuninstall_cmds | \
9709     old_postinstall_cmds | old_postuninstall_cmds | \
9710     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9711       # Double-quote double-evaled strings.
9712       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9713       ;;
9714     *)
9715       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9716       ;;
9717     esac
9718   done
9719
9720   case $lt_echo in
9721   *'\$0 --fallback-echo"')
9722     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9723     ;;
9724   esac
9725
9726 cfgfile="${ofile}T"
9727   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9728   $rm -f "$cfgfile"
9729   { echo "$as_me:$LINENO: creating $ofile" >&5
9730 echo "$as_me: creating $ofile" >&6;}
9731
9732   cat <<__EOF__ >> "$cfgfile"
9733 #! $SHELL
9734
9735 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9736 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9737 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9738 #
9739 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9740 # Free Software Foundation, Inc.
9741 #
9742 # This file is part of GNU Libtool:
9743 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9744 #
9745 # This program is free software; you can redistribute it and/or modify
9746 # it under the terms of the GNU General Public License as published by
9747 # the Free Software Foundation; either version 2 of the License, or
9748 # (at your option) any later version.
9749 #
9750 # This program is distributed in the hope that it will be useful, but
9751 # WITHOUT ANY WARRANTY; without even the implied warranty of
9752 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9753 # General Public License for more details.
9754 #
9755 # You should have received a copy of the GNU General Public License
9756 # along with this program; if not, write to the Free Software
9757 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9758 #
9759 # As a special exception to the GNU General Public License, if you
9760 # distribute this file as part of a program that contains a
9761 # configuration script generated by Autoconf, you may include it under
9762 # the same distribution terms that you use for the rest of that program.
9763
9764 # A sed program that does not truncate output.
9765 SED=$lt_SED
9766
9767 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9768 Xsed="$SED -e 1s/^X//"
9769
9770 # The HP-UX ksh and POSIX shell print the target directory to stdout
9771 # if CDPATH is set.
9772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9773
9774 # The names of the tagged configurations supported by this script.
9775 available_tags=
9776
9777 # ### BEGIN LIBTOOL CONFIG
9778
9779 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9780
9781 # Shell to use when invoking shell scripts.
9782 SHELL=$lt_SHELL
9783
9784 # Whether or not to build shared libraries.
9785 build_libtool_libs=$enable_shared
9786
9787 # Whether or not to build static libraries.
9788 build_old_libs=$enable_static
9789
9790 # Whether or not to add -lc for building shared libraries.
9791 build_libtool_need_lc=$archive_cmds_need_lc
9792
9793 # Whether or not to disallow shared libs when runtime libs are static
9794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9795
9796 # Whether or not to optimize for fast installation.
9797 fast_install=$enable_fast_install
9798
9799 # The host system.
9800 host_alias=$host_alias
9801 host=$host
9802 host_os=$host_os
9803
9804 # The build system.
9805 build_alias=$build_alias
9806 build=$build
9807 build_os=$build_os
9808
9809 # An echo program that does not interpret backslashes.
9810 echo=$lt_echo
9811
9812 # The archiver.
9813 AR=$lt_AR
9814 AR_FLAGS=$lt_AR_FLAGS
9815
9816 # A C compiler.
9817 LTCC=$lt_LTCC
9818
9819 # A language-specific compiler.
9820 CC=$lt_compiler
9821
9822 # Is the compiler the GNU C compiler?
9823 with_gcc=$GCC
9824
9825 # An ERE matcher.
9826 EGREP=$lt_EGREP
9827
9828 # The linker used to build libraries.
9829 LD=$lt_LD
9830
9831 # Whether we need hard or soft links.
9832 LN_S=$lt_LN_S
9833
9834 # A BSD-compatible nm program.
9835 NM=$lt_NM
9836
9837 # A symbol stripping program
9838 STRIP=$lt_STRIP
9839
9840 # Used to examine libraries when file_magic_cmd begins "file"
9841 MAGIC_CMD=$MAGIC_CMD
9842
9843 # Used on cygwin: DLL creation program.
9844 DLLTOOL="$DLLTOOL"
9845
9846 # Used on cygwin: object dumper.
9847 OBJDUMP="$OBJDUMP"
9848
9849 # Used on cygwin: assembler.
9850 AS="$AS"
9851
9852 # The name of the directory that contains temporary libtool files.
9853 objdir=$objdir
9854
9855 # How to create reloadable object files.
9856 reload_flag=$lt_reload_flag
9857 reload_cmds=$lt_reload_cmds
9858
9859 # How to pass a linker flag through the compiler.
9860 wl=$lt_lt_prog_compiler_wl
9861
9862 # Object file suffix (normally "o").
9863 objext="$ac_objext"
9864
9865 # Old archive suffix (normally "a").
9866 libext="$libext"
9867
9868 # Shared library suffix (normally ".so").
9869 shrext_cmds='$shrext_cmds'
9870
9871 # Executable file suffix (normally "").
9872 exeext="$exeext"
9873
9874 # Additional compiler flags for building library objects.
9875 pic_flag=$lt_lt_prog_compiler_pic
9876 pic_mode=$pic_mode
9877
9878 # What is the maximum length of a command?
9879 max_cmd_len=$lt_cv_sys_max_cmd_len
9880
9881 # Does compiler simultaneously support -c and -o options?
9882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9883
9884 # Must we lock files when doing compilation?
9885 need_locks=$lt_need_locks
9886
9887 # Do we need the lib prefix for modules?
9888 need_lib_prefix=$need_lib_prefix
9889
9890 # Do we need a version for libraries?
9891 need_version=$need_version
9892
9893 # Whether dlopen is supported.
9894 dlopen_support=$enable_dlopen
9895
9896 # Whether dlopen of programs is supported.
9897 dlopen_self=$enable_dlopen_self
9898
9899 # Whether dlopen of statically linked programs is supported.
9900 dlopen_self_static=$enable_dlopen_self_static
9901
9902 # Compiler flag to prevent dynamic linking.
9903 link_static_flag=$lt_lt_prog_compiler_static
9904
9905 # Compiler flag to turn off builtin functions.
9906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9907
9908 # Compiler flag to allow reflexive dlopens.
9909 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9910
9911 # Compiler flag to generate shared objects directly from archives.
9912 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9913
9914 # Compiler flag to generate thread-safe objects.
9915 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9916
9917 # Library versioning type.
9918 version_type=$version_type
9919
9920 # Format of library name prefix.
9921 libname_spec=$lt_libname_spec
9922
9923 # List of archive names.  First name is the real one, the rest are links.
9924 # The last name is the one that the linker finds with -lNAME.
9925 library_names_spec=$lt_library_names_spec
9926
9927 # The coded name of the library, if different from the real name.
9928 soname_spec=$lt_soname_spec
9929
9930 # Commands used to build and install an old-style archive.
9931 RANLIB=$lt_RANLIB
9932 old_archive_cmds=$lt_old_archive_cmds
9933 old_postinstall_cmds=$lt_old_postinstall_cmds
9934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9935
9936 # Create an old-style archive from a shared archive.
9937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9938
9939 # Create a temporary old-style archive to link instead of a shared archive.
9940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9941
9942 # Commands used to build and install a shared archive.
9943 archive_cmds=$lt_archive_cmds
9944 archive_expsym_cmds=$lt_archive_expsym_cmds
9945 postinstall_cmds=$lt_postinstall_cmds
9946 postuninstall_cmds=$lt_postuninstall_cmds
9947
9948 # Commands used to build a loadable module (assumed same as above if empty)
9949 module_cmds=$lt_module_cmds
9950 module_expsym_cmds=$lt_module_expsym_cmds
9951
9952 # Commands to strip libraries.
9953 old_striplib=$lt_old_striplib
9954 striplib=$lt_striplib
9955
9956 # Dependencies to place before the objects being linked to create a
9957 # shared library.
9958 predep_objects=$lt_predep_objects
9959
9960 # Dependencies to place after the objects being linked to create a
9961 # shared library.
9962 postdep_objects=$lt_postdep_objects
9963
9964 # Dependencies to place before the objects being linked to create a
9965 # shared library.
9966 predeps=$lt_predeps
9967
9968 # Dependencies to place after the objects being linked to create a
9969 # shared library.
9970 postdeps=$lt_postdeps
9971
9972 # The library search path used internally by the compiler when linking
9973 # a shared library.
9974 compiler_lib_search_path=$lt_compiler_lib_search_path
9975
9976 # Method to check whether dependent libraries are shared objects.
9977 deplibs_check_method=$lt_deplibs_check_method
9978
9979 # Command to use when deplibs_check_method == file_magic.
9980 file_magic_cmd=$lt_file_magic_cmd
9981
9982 # Flag that allows shared libraries with undefined symbols to be built.
9983 allow_undefined_flag=$lt_allow_undefined_flag
9984
9985 # Flag that forces no undefined symbols.
9986 no_undefined_flag=$lt_no_undefined_flag
9987
9988 # Commands used to finish a libtool library installation in a directory.
9989 finish_cmds=$lt_finish_cmds
9990
9991 # Same as above, but a single script fragment to be evaled but not shown.
9992 finish_eval=$lt_finish_eval
9993
9994 # Take the output of nm and produce a listing of raw symbols and C names.
9995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9996
9997 # Transform the output of nm in a proper C declaration
9998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9999
10000 # Transform the output of nm in a C name address pair
10001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10002
10003 # This is the shared library runtime path variable.
10004 runpath_var=$runpath_var
10005
10006 # This is the shared library path variable.
10007 shlibpath_var=$shlibpath_var
10008
10009 # Is shlibpath searched before the hard-coded library search path?
10010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10011
10012 # How to hardcode a shared library path into an executable.
10013 hardcode_action=$hardcode_action
10014
10015 # Whether we should hardcode library paths into libraries.
10016 hardcode_into_libs=$hardcode_into_libs
10017
10018 # Flag to hardcode \$libdir into a binary during linking.
10019 # This must work even if \$libdir does not exist.
10020 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10021
10022 # If ld is used when linking, flag to hardcode \$libdir into
10023 # a binary during linking. This must work even if \$libdir does
10024 # not exist.
10025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10026
10027 # Whether we need a single -rpath flag with a separated argument.
10028 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10029
10030 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10031 # resulting binary.
10032 hardcode_direct=$hardcode_direct
10033
10034 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10035 # resulting binary.
10036 hardcode_minus_L=$hardcode_minus_L
10037
10038 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10039 # the resulting binary.
10040 hardcode_shlibpath_var=$hardcode_shlibpath_var
10041
10042 # Set to yes if building a shared library automatically hardcodes DIR into the library
10043 # and all subsequent libraries and executables linked against it.
10044 hardcode_automatic=$hardcode_automatic
10045
10046 # Variables whose values should be saved in libtool wrapper scripts and
10047 # restored at relink time.
10048 variables_saved_for_relink="$variables_saved_for_relink"
10049
10050 # Whether libtool must link a program against all its dependency libraries.
10051 link_all_deplibs=$link_all_deplibs
10052
10053 # Compile-time system search path for libraries
10054 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10055
10056 # Run-time system search path for libraries
10057 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10058
10059 # Fix the shell variable \$srcfile for the compiler.
10060 fix_srcfile_path="$fix_srcfile_path"
10061
10062 # Set to yes if exported symbols are required.
10063 always_export_symbols=$always_export_symbols
10064
10065 # The commands to list exported symbols.
10066 export_symbols_cmds=$lt_export_symbols_cmds
10067
10068 # The commands to extract the exported symbol list from a shared archive.
10069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10070
10071 # Symbols that should not be listed in the preloaded symbols.
10072 exclude_expsyms=$lt_exclude_expsyms
10073
10074 # Symbols that must always be exported.
10075 include_expsyms=$lt_include_expsyms
10076
10077 # ### END LIBTOOL CONFIG
10078
10079 __EOF__
10080
10081
10082   case $host_os in
10083   aix3*)
10084     cat <<\EOF >> "$cfgfile"
10085
10086 # AIX sometimes has problems with the GCC collect2 program.  For some
10087 # reason, if we set the COLLECT_NAMES environment variable, the problems
10088 # vanish in a puff of smoke.
10089 if test "X${COLLECT_NAMES+set}" != Xset; then
10090   COLLECT_NAMES=
10091   export COLLECT_NAMES
10092 fi
10093 EOF
10094     ;;
10095   esac
10096
10097   # We use sed instead of cat because bash on DJGPP gets confused if
10098   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10099   # text mode, it properly converts lines to CR/LF.  This bash problem
10100   # is reportedly fixed, but why not run on old versions too?
10101   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10102
10103   mv -f "$cfgfile" "$ofile" || \
10104     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10105   chmod +x "$ofile"
10106
10107 else
10108   # If there is no Makefile yet, we rely on a make rule to execute
10109   # `config.status --recheck' to rerun these tests and create the
10110   # libtool script then.
10111   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10112   if test -f "$ltmain_in"; then
10113     test -f Makefile && make "$ltmain"
10114   fi
10115 fi
10116
10117
10118 ac_ext=c
10119 ac_cpp='$CPP $CPPFLAGS'
10120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10123
10124 CC="$lt_save_CC"
10125
10126
10127 # Check whether --with-tags or --without-tags was given.
10128 if test "${with_tags+set}" = set; then
10129   withval="$with_tags"
10130   tagnames="$withval"
10131 fi;
10132
10133 if test -f "$ltmain" && test -n "$tagnames"; then
10134   if test ! -f "${ofile}"; then
10135     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10136 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10137   fi
10138
10139   if test -z "$LTCC"; then
10140     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10141     if test -z "$LTCC"; then
10142       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10143 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10144     else
10145       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10146 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10147     fi
10148   fi
10149
10150   # Extract list of available tagged configurations in $ofile.
10151   # Note that this assumes the entire list is on one line.
10152   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10153
10154   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10155   for tagname in $tagnames; do
10156     IFS="$lt_save_ifs"
10157     # Check whether tagname contains only valid characters
10158     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10159     "") ;;
10160     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10161 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10162    { (exit 1); exit 1; }; }
10163         ;;
10164     esac
10165
10166     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10167     then
10168       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10169 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10170    { (exit 1); exit 1; }; }
10171     fi
10172
10173     # Update the list of available tags.
10174     if test -n "$tagname"; then
10175       echo appending configuration tag \"$tagname\" to $ofile
10176
10177       case $tagname in
10178       CXX)
10179         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10180             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10181             (test "X$CXX" != "Xg++"))) ; then
10182           ac_ext=cc
10183 ac_cpp='$CXXCPP $CPPFLAGS'
10184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10187
10188
10189
10190
10191 archive_cmds_need_lc_CXX=no
10192 allow_undefined_flag_CXX=
10193 always_export_symbols_CXX=no
10194 archive_expsym_cmds_CXX=
10195 export_dynamic_flag_spec_CXX=
10196 hardcode_direct_CXX=no
10197 hardcode_libdir_flag_spec_CXX=
10198 hardcode_libdir_flag_spec_ld_CXX=
10199 hardcode_libdir_separator_CXX=
10200 hardcode_minus_L_CXX=no
10201 hardcode_automatic_CXX=no
10202 module_cmds_CXX=
10203 module_expsym_cmds_CXX=
10204 link_all_deplibs_CXX=unknown
10205 old_archive_cmds_CXX=$old_archive_cmds
10206 no_undefined_flag_CXX=
10207 whole_archive_flag_spec_CXX=
10208 enable_shared_with_static_runtimes_CXX=no
10209
10210 # Dependencies to place before and after the object being linked:
10211 predep_objects_CXX=
10212 postdep_objects_CXX=
10213 predeps_CXX=
10214 postdeps_CXX=
10215 compiler_lib_search_path_CXX=
10216
10217 # Source file extension for C++ test sources.
10218 ac_ext=cc
10219
10220 # Object file extension for compiled C++ test sources.
10221 objext=o
10222 objext_CXX=$objext
10223
10224 # Code to be used in simple compile tests
10225 lt_simple_compile_test_code="int some_variable = 0;\n"
10226
10227 # Code to be used in simple link tests
10228 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10229
10230 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10231
10232 # If no C compiler was specified, use CC.
10233 LTCC=${LTCC-"$CC"}
10234
10235 # Allow CC to be a program name with arguments.
10236 compiler=$CC
10237
10238
10239 # save warnings/boilerplate of simple test code
10240 ac_outfile=conftest.$ac_objext
10241 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10242 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10243 _lt_compiler_boilerplate=`cat conftest.err`
10244 $rm conftest*
10245
10246 ac_outfile=conftest.$ac_objext
10247 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10248 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10249 _lt_linker_boilerplate=`cat conftest.err`
10250 $rm conftest*
10251
10252
10253 # Allow CC to be a program name with arguments.
10254 lt_save_CC=$CC
10255 lt_save_LD=$LD
10256 lt_save_GCC=$GCC
10257 GCC=$GXX
10258 lt_save_with_gnu_ld=$with_gnu_ld
10259 lt_save_path_LD=$lt_cv_path_LD
10260 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10261   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10262 else
10263   unset lt_cv_prog_gnu_ld
10264 fi
10265 if test -n "${lt_cv_path_LDCXX+set}"; then
10266   lt_cv_path_LD=$lt_cv_path_LDCXX
10267 else
10268   unset lt_cv_path_LD
10269 fi
10270 test -z "${LDCXX+set}" || LD=$LDCXX
10271 CC=${CXX-"c++"}
10272 compiler=$CC
10273 compiler_CXX=$CC
10274 for cc_temp in $compiler""; do
10275   case $cc_temp in
10276     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10277     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10278     \-*) ;;
10279     *) break;;
10280   esac
10281 done
10282 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10283
10284
10285 # We don't want -fno-exception wen compiling C++ code, so set the
10286 # no_builtin_flag separately
10287 if test "$GXX" = yes; then
10288   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10289 else
10290   lt_prog_compiler_no_builtin_flag_CXX=
10291 fi
10292
10293 if test "$GXX" = yes; then
10294   # Set up default GNU C++ configuration
10295
10296
10297 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10298 if test "${with_gnu_ld+set}" = set; then
10299   withval="$with_gnu_ld"
10300   test "$withval" = no || with_gnu_ld=yes
10301 else
10302   with_gnu_ld=no
10303 fi;
10304 ac_prog=ld
10305 if test "$GCC" = yes; then
10306   # Check if gcc -print-prog-name=ld gives a path.
10307   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10308 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10309   case $host in
10310   *-*-mingw*)
10311     # gcc leaves a trailing carriage return which upsets mingw
10312     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10313   *)
10314     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10315   esac
10316   case $ac_prog in
10317     # Accept absolute paths.
10318     [\\/]* | ?:[\\/]*)
10319       re_direlt='/[^/][^/]*/\.\./'
10320       # Canonicalize the pathname of ld
10321       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10322       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10323         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10324       done
10325       test -z "$LD" && LD="$ac_prog"
10326       ;;
10327   "")
10328     # If it fails, then pretend we aren't using GCC.
10329     ac_prog=ld
10330     ;;
10331   *)
10332     # If it is relative, then search for the first ld in PATH.
10333     with_gnu_ld=unknown
10334     ;;
10335   esac
10336 elif test "$with_gnu_ld" = yes; then
10337   echo "$as_me:$LINENO: checking for GNU ld" >&5
10338 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10339 else
10340   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10341 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10342 fi
10343 if test "${lt_cv_path_LD+set}" = set; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346   if test -z "$LD"; then
10347   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10348   for ac_dir in $PATH; do
10349     IFS="$lt_save_ifs"
10350     test -z "$ac_dir" && ac_dir=.
10351     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10352       lt_cv_path_LD="$ac_dir/$ac_prog"
10353       # Check to see if the program is GNU ld.  I'd rather use --version,
10354       # but apparently some GNU ld's only accept -v.
10355       # Break only if it was the GNU/non-GNU ld that we prefer.
10356       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10357       *GNU* | *'with BFD'*)
10358         test "$with_gnu_ld" != no && break
10359         ;;
10360       *)
10361         test "$with_gnu_ld" != yes && break
10362         ;;
10363       esac
10364     fi
10365   done
10366   IFS="$lt_save_ifs"
10367 else
10368   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10369 fi
10370 fi
10371
10372 LD="$lt_cv_path_LD"
10373 if test -n "$LD"; then
10374   echo "$as_me:$LINENO: result: $LD" >&5
10375 echo "${ECHO_T}$LD" >&6
10376 else
10377   echo "$as_me:$LINENO: result: no" >&5
10378 echo "${ECHO_T}no" >&6
10379 fi
10380 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10381 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10382    { (exit 1); exit 1; }; }
10383 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10384 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10385 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10386   echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10389 case `$LD -v 2>&1 </dev/null` in
10390 *GNU* | *'with BFD'*)
10391   lt_cv_prog_gnu_ld=yes
10392   ;;
10393 *)
10394   lt_cv_prog_gnu_ld=no
10395   ;;
10396 esac
10397 fi
10398 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10399 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10400 with_gnu_ld=$lt_cv_prog_gnu_ld
10401
10402
10403
10404   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10405   # archiving commands below assume that GNU ld is being used.
10406   if test "$with_gnu_ld" = yes; then
10407     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10408     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'
10409
10410     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10411     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10412
10413     # If archive_cmds runs LD, not CC, wlarc should be empty
10414     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10415     #     investigate it a little bit more. (MM)
10416     wlarc='${wl}'
10417
10418     # ancient GNU ld didn't support --whole-archive et. al.
10419     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10420         grep 'no-whole-archive' > /dev/null; then
10421       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10422     else
10423       whole_archive_flag_spec_CXX=
10424     fi
10425   else
10426     with_gnu_ld=no
10427     wlarc=
10428
10429     # A generic and very simple default shared library creation
10430     # command for GNU C++ for the case where it uses the native
10431     # linker, instead of GNU ld.  If possible, this setting should
10432     # overridden to take advantage of the native linker features on
10433     # the platform it is being used on.
10434     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10435   fi
10436
10437   # Commands to make compiler produce verbose output that lists
10438   # what "hidden" libraries, object files and flags are used when
10439   # linking a shared library.
10440   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10441
10442 else
10443   GXX=no
10444   with_gnu_ld=no
10445   wlarc=
10446 fi
10447
10448 # PORTME: fill in a description of your system's C++ link characteristics
10449 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10450 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10451 ld_shlibs_CXX=yes
10452 case $host_os in
10453   aix3*)
10454     # FIXME: insert proper C++ library support
10455     ld_shlibs_CXX=no
10456     ;;
10457   aix4* | aix5*)
10458     if test "$host_cpu" = ia64; then
10459       # On IA64, the linker does run time linking by default, so we don't
10460       # have to do anything special.
10461       aix_use_runtimelinking=no
10462       exp_sym_flag='-Bexport'
10463       no_entry_flag=""
10464     else
10465       aix_use_runtimelinking=no
10466
10467       # Test if we are trying to use run time linking or normal
10468       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10469       # need to do runtime linking.
10470       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10471         for ld_flag in $LDFLAGS; do
10472           case $ld_flag in
10473           *-brtl*)
10474             aix_use_runtimelinking=yes
10475             break
10476             ;;
10477           esac
10478         done
10479       esac
10480
10481       exp_sym_flag='-bexport'
10482       no_entry_flag='-bnoentry'
10483     fi
10484
10485     # When large executables or shared objects are built, AIX ld can
10486     # have problems creating the table of contents.  If linking a library
10487     # or program results in "error TOC overflow" add -mminimal-toc to
10488     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10489     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10490
10491     archive_cmds_CXX=''
10492     hardcode_direct_CXX=yes
10493     hardcode_libdir_separator_CXX=':'
10494     link_all_deplibs_CXX=yes
10495
10496     if test "$GXX" = yes; then
10497       case $host_os in aix4.[012]|aix4.[012].*)
10498       # We only want to do this on AIX 4.2 and lower, the check
10499       # below for broken collect2 doesn't work under 4.3+
10500         collect2name=`${CC} -print-prog-name=collect2`
10501         if test -f "$collect2name" && \
10502            strings "$collect2name" | grep resolve_lib_name >/dev/null
10503         then
10504           # We have reworked collect2
10505           hardcode_direct_CXX=yes
10506         else
10507           # We have old collect2
10508           hardcode_direct_CXX=unsupported
10509           # It fails to find uninstalled libraries when the uninstalled
10510           # path is not listed in the libpath.  Setting hardcode_minus_L
10511           # to unsupported forces relinking
10512           hardcode_minus_L_CXX=yes
10513           hardcode_libdir_flag_spec_CXX='-L$libdir'
10514           hardcode_libdir_separator_CXX=
10515         fi
10516       esac
10517       shared_flag='-shared'
10518       if test "$aix_use_runtimelinking" = yes; then
10519         shared_flag="$shared_flag "'${wl}-G'
10520       fi
10521     else
10522       # not using gcc
10523       if test "$host_cpu" = ia64; then
10524         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10525         # chokes on -Wl,-G. The following line is correct:
10526         shared_flag='-G'
10527       else
10528         if test "$aix_use_runtimelinking" = yes; then
10529           shared_flag='${wl}-G'
10530         else
10531           shared_flag='${wl}-bM:SRE'
10532         fi
10533       fi
10534     fi
10535
10536     # It seems that -bexpall does not export symbols beginning with
10537     # underscore (_), so it is better to generate a list of symbols to export.
10538     always_export_symbols_CXX=yes
10539     if test "$aix_use_runtimelinking" = yes; then
10540       # Warning - without using the other runtime loading flags (-brtl),
10541       # -berok will link without error, but may produce a broken library.
10542       allow_undefined_flag_CXX='-berok'
10543       # Determine the default libpath from the value encoded in an empty executable.
10544       cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h.  */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h.  */
10550
10551 int
10552 main ()
10553 {
10554
10555   ;
10556   return 0;
10557 }
10558 _ACEOF
10559 rm -f conftest.$ac_objext conftest$ac_exeext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561   (eval $ac_link) 2>conftest.er1
10562   ac_status=$?
10563   grep -v '^ *+' conftest.er1 >conftest.err
10564   rm -f conftest.er1
10565   cat conftest.err >&5
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); } &&
10568          { ac_try='test -z "$ac_cxx_werror_flag"
10569                          || test ! -s conftest.err'
10570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571   (eval $ac_try) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); }; } &&
10575          { ac_try='test -s conftest$ac_exeext'
10576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; }; then
10581
10582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10583 }'`
10584 # Check for a 64-bit object if we didn't find anything.
10585 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; }
10586 }'`; fi
10587 else
10588   echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591 fi
10592 rm -f conftest.err conftest.$ac_objext \
10593       conftest$ac_exeext conftest.$ac_ext
10594 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10595
10596       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10597
10598       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"
10599      else
10600       if test "$host_cpu" = ia64; then
10601         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10602         allow_undefined_flag_CXX="-z nodefs"
10603         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"
10604       else
10605         # Determine the default libpath from the value encoded in an empty executable.
10606         cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h.  */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h.  */
10612
10613 int
10614 main ()
10615 {
10616
10617   ;
10618   return 0;
10619 }
10620 _ACEOF
10621 rm -f conftest.$ac_objext conftest$ac_exeext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623   (eval $ac_link) 2>conftest.er1
10624   ac_status=$?
10625   grep -v '^ *+' conftest.er1 >conftest.err
10626   rm -f conftest.er1
10627   cat conftest.err >&5
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); } &&
10630          { ac_try='test -z "$ac_cxx_werror_flag"
10631                          || test ! -s conftest.err'
10632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633   (eval $ac_try) 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; } &&
10637          { ac_try='test -s conftest$ac_exeext'
10638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639   (eval $ac_try) 2>&5
10640   ac_status=$?
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); }; }; then
10643
10644 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10645 }'`
10646 # Check for a 64-bit object if we didn't find anything.
10647 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; }
10648 }'`; fi
10649 else
10650   echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 fi
10654 rm -f conftest.err conftest.$ac_objext \
10655       conftest$ac_exeext conftest.$ac_ext
10656 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10657
10658         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10659         # Warning - without using the other run time loading flags,
10660         # -berok will link without error, but may produce a broken library.
10661         no_undefined_flag_CXX=' ${wl}-bernotok'
10662         allow_undefined_flag_CXX=' ${wl}-berok'
10663         # -bexpall does not export symbols beginning with underscore (_)
10664         always_export_symbols_CXX=yes
10665         # Exported symbols can be pulled into shared objects from archives
10666         whole_archive_flag_spec_CXX=' '
10667         archive_cmds_need_lc_CXX=yes
10668         # This is similar to how AIX traditionally builds it's shared libraries.
10669         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'
10670       fi
10671     fi
10672     ;;
10673   chorus*)
10674     case $cc_basename in
10675       *)
10676         # FIXME: insert proper C++ library support
10677         ld_shlibs_CXX=no
10678         ;;
10679     esac
10680     ;;
10681
10682
10683   cygwin* | mingw* | pw32*)
10684     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10685     # as there is no search path for DLLs.
10686     hardcode_libdir_flag_spec_CXX='-L$libdir'
10687     allow_undefined_flag_CXX=unsupported
10688     always_export_symbols_CXX=no
10689     enable_shared_with_static_runtimes_CXX=yes
10690
10691     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10692       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'
10693       # If the export-symbols file already is a .def file (1st line
10694       # is EXPORTS), use it as is; otherwise, prepend...
10695       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10696         cp $export_symbols $output_objdir/$soname.def;
10697       else
10698         echo EXPORTS > $output_objdir/$soname.def;
10699         cat $export_symbols >> $output_objdir/$soname.def;
10700       fi~
10701       $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'
10702     else
10703       ld_shlibs_CXX=no
10704     fi
10705   ;;
10706       darwin* | rhapsody*)
10707         case "$host_os" in
10708         rhapsody* | darwin1.[012])
10709          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10710          ;;
10711        *) # Darwin 1.3 on
10712          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10713            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10714          else
10715            case ${MACOSX_DEPLOYMENT_TARGET} in
10716              10.[012])
10717                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10718                ;;
10719              10.*)
10720                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10721                ;;
10722            esac
10723          fi
10724          ;;
10725         esac
10726       archive_cmds_need_lc_CXX=no
10727       hardcode_direct_CXX=no
10728       hardcode_automatic_CXX=yes
10729       hardcode_shlibpath_var_CXX=unsupported
10730       whole_archive_flag_spec_CXX=''
10731       link_all_deplibs_CXX=yes
10732
10733     if test "$GXX" = yes ; then
10734       lt_int_apple_cc_single_mod=no
10735       output_verbose_link_cmd='echo'
10736       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10737        lt_int_apple_cc_single_mod=yes
10738       fi
10739       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10740        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10741       else
10742           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'
10743         fi
10744         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10745         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10746           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10747             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}'
10748           else
10749             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}'
10750           fi
10751             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}'
10752       else
10753       case $cc_basename in
10754         xlc*)
10755          output_verbose_link_cmd='echo'
10756           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'
10757           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10758           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10759           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}'
10760           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}'
10761           ;;
10762        *)
10763          ld_shlibs_CXX=no
10764           ;;
10765       esac
10766       fi
10767         ;;
10768
10769   dgux*)
10770     case $cc_basename in
10771       ec++*)
10772         # FIXME: insert proper C++ library support
10773         ld_shlibs_CXX=no
10774         ;;
10775       ghcx*)
10776         # Green Hills C++ Compiler
10777         # FIXME: insert proper C++ library support
10778         ld_shlibs_CXX=no
10779         ;;
10780       *)
10781         # FIXME: insert proper C++ library support
10782         ld_shlibs_CXX=no
10783         ;;
10784     esac
10785     ;;
10786   freebsd[12]*)
10787     # C++ shared libraries reported to be fairly broken before switch to ELF
10788     ld_shlibs_CXX=no
10789     ;;
10790   freebsd-elf*)
10791     archive_cmds_need_lc_CXX=no
10792     ;;
10793   freebsd* | kfreebsd*-gnu | dragonfly*)
10794     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10795     # conventions
10796     ld_shlibs_CXX=yes
10797     ;;
10798   gnu*)
10799     ;;
10800   hpux9*)
10801     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10802     hardcode_libdir_separator_CXX=:
10803     export_dynamic_flag_spec_CXX='${wl}-E'
10804     hardcode_direct_CXX=yes
10805     hardcode_minus_L_CXX=yes # Not in the search PATH,
10806                                 # but as the default
10807                                 # location of the library.
10808
10809     case $cc_basename in
10810     CC*)
10811       # FIXME: insert proper C++ library support
10812       ld_shlibs_CXX=no
10813       ;;
10814     aCC*)
10815       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'
10816       # Commands to make compiler produce verbose output that lists
10817       # what "hidden" libraries, object files and flags are used when
10818       # linking a shared library.
10819       #
10820       # There doesn't appear to be a way to prevent this compiler from
10821       # explicitly linking system object files so we need to strip them
10822       # from the output so that they don't get included in the library
10823       # dependencies.
10824       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'
10825       ;;
10826     *)
10827       if test "$GXX" = yes; then
10828         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'
10829       else
10830         # FIXME: insert proper C++ library support
10831         ld_shlibs_CXX=no
10832       fi
10833       ;;
10834     esac
10835     ;;
10836   hpux10*|hpux11*)
10837     if test $with_gnu_ld = no; then
10838       case "$host_cpu" in
10839       hppa*64*)
10840         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10841         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10842         hardcode_libdir_separator_CXX=:
10843         ;;
10844       ia64*)
10845         hardcode_libdir_flag_spec_CXX='-L$libdir'
10846         ;;
10847       *)
10848         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10849         hardcode_libdir_separator_CXX=:
10850         export_dynamic_flag_spec_CXX='${wl}-E'
10851         ;;
10852       esac
10853     fi
10854     case "$host_cpu" in
10855     hppa*64*)
10856       hardcode_direct_CXX=no
10857       hardcode_shlibpath_var_CXX=no
10858       ;;
10859     ia64*)
10860       hardcode_direct_CXX=no
10861       hardcode_shlibpath_var_CXX=no
10862       hardcode_minus_L_CXX=yes # Not in the search PATH,
10863                                               # but as the default
10864                                               # location of the library.
10865       ;;
10866     *)
10867       hardcode_direct_CXX=yes
10868       hardcode_minus_L_CXX=yes # Not in the search PATH,
10869                                               # but as the default
10870                                               # location of the library.
10871       ;;
10872     esac
10873
10874     case $cc_basename in
10875       CC*)
10876         # FIXME: insert proper C++ library support
10877         ld_shlibs_CXX=no
10878         ;;
10879       aCC*)
10880         case "$host_cpu" in
10881         hppa*64*|ia64*)
10882           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10883           ;;
10884         *)
10885           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10886           ;;
10887         esac
10888         # Commands to make compiler produce verbose output that lists
10889         # what "hidden" libraries, object files and flags are used when
10890         # linking a shared library.
10891         #
10892         # There doesn't appear to be a way to prevent this compiler from
10893         # explicitly linking system object files so we need to strip them
10894         # from the output so that they don't get included in the library
10895         # dependencies.
10896         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'
10897         ;;
10898       *)
10899         if test "$GXX" = yes; then
10900           if test $with_gnu_ld = no; then
10901             case "$host_cpu" in
10902             ia64*|hppa*64*)
10903               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10904               ;;
10905             *)
10906               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'
10907               ;;
10908             esac
10909           fi
10910         else
10911           # FIXME: insert proper C++ library support
10912           ld_shlibs_CXX=no
10913         fi
10914         ;;
10915     esac
10916     ;;
10917   irix5* | irix6*)
10918     case $cc_basename in
10919       CC*)
10920         # SGI C++
10921         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10922
10923         # Archives containing C++ object files must be created using
10924         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10925         # necessary to make sure instantiated templates are included
10926         # in the archive.
10927         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10928         ;;
10929       *)
10930         if test "$GXX" = yes; then
10931           if test "$with_gnu_ld" = no; then
10932             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10933           else
10934             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'
10935           fi
10936         fi
10937         link_all_deplibs_CXX=yes
10938         ;;
10939     esac
10940     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10941     hardcode_libdir_separator_CXX=:
10942     ;;
10943   linux*)
10944     case $cc_basename in
10945       KCC*)
10946         # Kuck and Associates, Inc. (KAI) C++ Compiler
10947
10948         # KCC will only create a shared library if the output file
10949         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10950         # to its proper name (with version) after linking.
10951         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'
10952         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'
10953         # Commands to make compiler produce verbose output that lists
10954         # what "hidden" libraries, object files and flags are used when
10955         # linking a shared library.
10956         #
10957         # There doesn't appear to be a way to prevent this compiler from
10958         # explicitly linking system object files so we need to strip them
10959         # from the output so that they don't get included in the library
10960         # dependencies.
10961         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'
10962
10963         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10964         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10965
10966         # Archives containing C++ object files must be created using
10967         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10968         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10969         ;;
10970       icpc*)
10971         # Intel C++
10972         with_gnu_ld=yes
10973         # version 8.0 and above of icpc choke on multiply defined symbols
10974         # if we add $predep_objects and $postdep_objects, however 7.1 and
10975         # earlier do not add the objects themselves.
10976         case `$CC -V 2>&1` in
10977         *"Version 7."*)
10978           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10979           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'
10980           ;;
10981         *)  # Version 8.0 or newer
10982           tmp_idyn=
10983           case $host_cpu in
10984             ia64*) tmp_idyn=' -i_dynamic';;
10985           esac
10986           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10987           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10988           ;;
10989         esac
10990         archive_cmds_need_lc_CXX=no
10991         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10992         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10993         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10994         ;;
10995       pgCC*)
10996         # Portland Group C++ compiler
10997         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10998         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'
10999
11000         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11001         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11002         whole_archive_flag_spec_CXX=''
11003         ;;
11004       cxx*)
11005         # Compaq C++
11006         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11007         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'
11008
11009         runpath_var=LD_RUN_PATH
11010         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11011         hardcode_libdir_separator_CXX=:
11012
11013         # Commands to make compiler produce verbose output that lists
11014         # what "hidden" libraries, object files and flags are used when
11015         # linking a shared library.
11016         #
11017         # There doesn't appear to be a way to prevent this compiler from
11018         # explicitly linking system object files so we need to strip them
11019         # from the output so that they don't get included in the library
11020         # dependencies.
11021         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'
11022         ;;
11023     esac
11024     ;;
11025   lynxos*)
11026     # FIXME: insert proper C++ library support
11027     ld_shlibs_CXX=no
11028     ;;
11029   m88k*)
11030     # FIXME: insert proper C++ library support
11031     ld_shlibs_CXX=no
11032     ;;
11033   mvs*)
11034     case $cc_basename in
11035       cxx*)
11036         # FIXME: insert proper C++ library support
11037         ld_shlibs_CXX=no
11038         ;;
11039       *)
11040         # FIXME: insert proper C++ library support
11041         ld_shlibs_CXX=no
11042         ;;
11043     esac
11044     ;;
11045   netbsd*)
11046     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11047       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11048       wlarc=
11049       hardcode_libdir_flag_spec_CXX='-R$libdir'
11050       hardcode_direct_CXX=yes
11051       hardcode_shlibpath_var_CXX=no
11052     fi
11053     # Workaround some broken pre-1.5 toolchains
11054     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11055     ;;
11056   openbsd2*)
11057     # C++ shared libraries are fairly broken
11058     ld_shlibs_CXX=no
11059     ;;
11060   openbsd*)
11061     hardcode_direct_CXX=yes
11062     hardcode_shlibpath_var_CXX=no
11063     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11064     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11065     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11066       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11067       export_dynamic_flag_spec_CXX='${wl}-E'
11068       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11069     fi
11070     output_verbose_link_cmd='echo'
11071     ;;
11072   osf3*)
11073     case $cc_basename in
11074       KCC*)
11075         # Kuck and Associates, Inc. (KAI) C++ Compiler
11076
11077         # KCC will only create a shared library if the output file
11078         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11079         # to its proper name (with version) after linking.
11080         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'
11081
11082         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11083         hardcode_libdir_separator_CXX=:
11084
11085         # Archives containing C++ object files must be created using
11086         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11087         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11088
11089         ;;
11090       RCC*)
11091         # Rational C++ 2.4.1
11092         # FIXME: insert proper C++ library support
11093         ld_shlibs_CXX=no
11094         ;;
11095       cxx*)
11096         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11097         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11098
11099         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11100         hardcode_libdir_separator_CXX=:
11101
11102         # Commands to make compiler produce verbose output that lists
11103         # what "hidden" libraries, object files and flags are used when
11104         # linking a shared library.
11105         #
11106         # There doesn't appear to be a way to prevent this compiler from
11107         # explicitly linking system object files so we need to strip them
11108         # from the output so that they don't get included in the library
11109         # dependencies.
11110         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'
11111         ;;
11112       *)
11113         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11114           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11115           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11116
11117           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11118           hardcode_libdir_separator_CXX=:
11119
11120           # Commands to make compiler produce verbose output that lists
11121           # what "hidden" libraries, object files and flags are used when
11122           # linking a shared library.
11123           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11124
11125         else
11126           # FIXME: insert proper C++ library support
11127           ld_shlibs_CXX=no
11128         fi
11129         ;;
11130     esac
11131     ;;
11132   osf4* | osf5*)
11133     case $cc_basename in
11134       KCC*)
11135         # Kuck and Associates, Inc. (KAI) C++ Compiler
11136
11137         # KCC will only create a shared library if the output file
11138         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11139         # to its proper name (with version) after linking.
11140         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'
11141
11142         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11143         hardcode_libdir_separator_CXX=:
11144
11145         # Archives containing C++ object files must be created using
11146         # the KAI C++ compiler.
11147         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11148         ;;
11149       RCC*)
11150         # Rational C++ 2.4.1
11151         # FIXME: insert proper C++ library support
11152         ld_shlibs_CXX=no
11153         ;;
11154       cxx*)
11155         allow_undefined_flag_CXX=' -expect_unresolved \*'
11156         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11157         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11158           echo "-hidden">> $lib.exp~
11159           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11160           $rm $lib.exp'
11161
11162         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11163         hardcode_libdir_separator_CXX=:
11164
11165         # Commands to make compiler produce verbose output that lists
11166         # what "hidden" libraries, object files and flags are used when
11167         # linking a shared library.
11168         #
11169         # There doesn't appear to be a way to prevent this compiler from
11170         # explicitly linking system object files so we need to strip them
11171         # from the output so that they don't get included in the library
11172         # dependencies.
11173         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'
11174         ;;
11175       *)
11176         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11177           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11178          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11179
11180           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11181           hardcode_libdir_separator_CXX=:
11182
11183           # Commands to make compiler produce verbose output that lists
11184           # what "hidden" libraries, object files and flags are used when
11185           # linking a shared library.
11186           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11187
11188         else
11189           # FIXME: insert proper C++ library support
11190           ld_shlibs_CXX=no
11191         fi
11192         ;;
11193     esac
11194     ;;
11195   psos*)
11196     # FIXME: insert proper C++ library support
11197     ld_shlibs_CXX=no
11198     ;;
11199   sco*)
11200     archive_cmds_need_lc_CXX=no
11201     case $cc_basename in
11202       CC*)
11203         # FIXME: insert proper C++ library support
11204         ld_shlibs_CXX=no
11205         ;;
11206       *)
11207         # FIXME: insert proper C++ library support
11208         ld_shlibs_CXX=no
11209         ;;
11210     esac
11211     ;;
11212   sunos4*)
11213     case $cc_basename in
11214       CC*)
11215         # Sun C++ 4.x
11216         # FIXME: insert proper C++ library support
11217         ld_shlibs_CXX=no
11218         ;;
11219       lcc*)
11220         # Lucid
11221         # FIXME: insert proper C++ library support
11222         ld_shlibs_CXX=no
11223         ;;
11224       *)
11225         # FIXME: insert proper C++ library support
11226         ld_shlibs_CXX=no
11227         ;;
11228     esac
11229     ;;
11230   solaris*)
11231     case $cc_basename in
11232       CC*)
11233         # Sun C++ 4.2, 5.x and Centerline C++
11234         no_undefined_flag_CXX=' -zdefs'
11235         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11236         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11237         $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'
11238
11239         hardcode_libdir_flag_spec_CXX='-R$libdir'
11240         hardcode_shlibpath_var_CXX=no
11241         case $host_os in
11242           solaris2.[0-5] | solaris2.[0-5].*) ;;
11243           *)
11244             # The C++ compiler is used as linker so we must use $wl
11245             # flag to pass the commands to the underlying system
11246             # linker. We must also pass each convience library through
11247             # to the system linker between allextract/defaultextract.
11248             # The C++ compiler will combine linker options so we
11249             # cannot just pass the convience library names through
11250             # without $wl.
11251             # Supported since Solaris 2.6 (maybe 2.5.1?)
11252             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11253             ;;
11254         esac
11255         link_all_deplibs_CXX=yes
11256
11257         # Commands to make compiler produce verbose output that lists
11258         # what "hidden" libraries, object files and flags are used when
11259         # linking a shared library.
11260         #
11261         # There doesn't appear to be a way to prevent this compiler from
11262         # explicitly linking system object files so we need to strip them
11263         # from the output so that they don't get included in the library
11264         # dependencies.
11265         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'
11266
11267         # Archives containing C++ object files must be created using
11268         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11269         # necessary to make sure instantiated templates are included
11270         # in the archive.
11271         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11272         ;;
11273       gcx*)
11274         # Green Hills C++ Compiler
11275         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11276
11277         # The C++ compiler must be used to create the archive.
11278         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11279         ;;
11280       *)
11281         # GNU C++ compiler with Solaris linker
11282         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11283           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11284           if $CC --version | grep -v '^2\.7' > /dev/null; then
11285             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11286             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11287                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11288
11289             # Commands to make compiler produce verbose output that lists
11290             # what "hidden" libraries, object files and flags are used when
11291             # linking a shared library.
11292             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11293           else
11294             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11295             # platform.
11296             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11297             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11298                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11299
11300             # Commands to make compiler produce verbose output that lists
11301             # what "hidden" libraries, object files and flags are used when
11302             # linking a shared library.
11303             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11304           fi
11305
11306           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11307         fi
11308         ;;
11309     esac
11310     ;;
11311   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11312     archive_cmds_need_lc_CXX=no
11313     ;;
11314   tandem*)
11315     case $cc_basename in
11316       NCC*)
11317         # NonStop-UX NCC 3.20
11318         # FIXME: insert proper C++ library support
11319         ld_shlibs_CXX=no
11320         ;;
11321       *)
11322         # FIXME: insert proper C++ library support
11323         ld_shlibs_CXX=no
11324         ;;
11325     esac
11326     ;;
11327   vxworks*)
11328     # FIXME: insert proper C++ library support
11329     ld_shlibs_CXX=no
11330     ;;
11331   *)
11332     # FIXME: insert proper C++ library support
11333     ld_shlibs_CXX=no
11334     ;;
11335 esac
11336 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11337 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11338 test "$ld_shlibs_CXX" = no && can_build_shared=no
11339
11340 GCC_CXX="$GXX"
11341 LD_CXX="$LD"
11342
11343 ## CAVEAT EMPTOR:
11344 ## There is no encapsulation within the following macros, do not change
11345 ## the running order or otherwise move them around unless you know exactly
11346 ## what you are doing...
11347
11348 cat > conftest.$ac_ext <<EOF
11349 class Foo
11350 {
11351 public:
11352   Foo (void) { a = 0; }
11353 private:
11354   int a;
11355 };
11356 EOF
11357
11358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11359   (eval $ac_compile) 2>&5
11360   ac_status=$?
11361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); }; then
11363   # Parse the compiler output and extract the necessary
11364   # objects, libraries and library flags.
11365
11366   # Sentinel used to keep track of whether or not we are before
11367   # the conftest object file.
11368   pre_test_object_deps_done=no
11369
11370   # The `*' in the case matches for architectures that use `case' in
11371   # $output_verbose_cmd can trigger glob expansion during the loop
11372   # eval without this substitution.
11373   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11374
11375   for p in `eval $output_verbose_link_cmd`; do
11376     case $p in
11377
11378     -L* | -R* | -l*)
11379        # Some compilers place space between "-{L,R}" and the path.
11380        # Remove the space.
11381        if test $p = "-L" \
11382           || test $p = "-R"; then
11383          prev=$p
11384          continue
11385        else
11386          prev=
11387        fi
11388
11389        if test "$pre_test_object_deps_done" = no; then
11390          case $p in
11391          -L* | -R*)
11392            # Internal compiler library paths should come after those
11393            # provided the user.  The postdeps already come after the
11394            # user supplied libs so there is no need to process them.
11395            if test -z "$compiler_lib_search_path_CXX"; then
11396              compiler_lib_search_path_CXX="${prev}${p}"
11397            else
11398              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11399            fi
11400            ;;
11401          # The "-l" case would never come before the object being
11402          # linked, so don't bother handling this case.
11403          esac
11404        else
11405          if test -z "$postdeps_CXX"; then
11406            postdeps_CXX="${prev}${p}"
11407          else
11408            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11409          fi
11410        fi
11411        ;;
11412
11413     *.$objext)
11414        # This assumes that the test object file only shows up
11415        # once in the compiler output.
11416        if test "$p" = "conftest.$objext"; then
11417          pre_test_object_deps_done=yes
11418          continue
11419        fi
11420
11421        if test "$pre_test_object_deps_done" = no; then
11422          if test -z "$predep_objects_CXX"; then
11423            predep_objects_CXX="$p"
11424          else
11425            predep_objects_CXX="$predep_objects_CXX $p"
11426          fi
11427        else
11428          if test -z "$postdep_objects_CXX"; then
11429            postdep_objects_CXX="$p"
11430          else
11431            postdep_objects_CXX="$postdep_objects_CXX $p"
11432          fi
11433        fi
11434        ;;
11435
11436     *) ;; # Ignore the rest.
11437
11438     esac
11439   done
11440
11441   # Clean up.
11442   rm -f a.out a.exe
11443 else
11444   echo "libtool.m4: error: problem compiling CXX test program"
11445 fi
11446
11447 $rm -f confest.$objext
11448
11449 case " $postdeps_CXX " in
11450 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11451 esac
11452
11453 lt_prog_compiler_wl_CXX=
11454 lt_prog_compiler_pic_CXX=
11455 lt_prog_compiler_static_CXX=
11456
11457 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11459
11460   # C++ specific cases for pic, static, wl, etc.
11461   if test "$GXX" = yes; then
11462     lt_prog_compiler_wl_CXX='-Wl,'
11463     lt_prog_compiler_static_CXX='-static'
11464
11465     case $host_os in
11466     aix*)
11467       # All AIX code is PIC.
11468       if test "$host_cpu" = ia64; then
11469         # AIX 5 now supports IA64 processor
11470         lt_prog_compiler_static_CXX='-Bstatic'
11471       fi
11472       ;;
11473     amigaos*)
11474       # FIXME: we need at least 68020 code to build shared libraries, but
11475       # adding the `-m68020' flag to GCC prevents building anything better,
11476       # like `-m68040'.
11477       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11478       ;;
11479     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11480       # PIC is the default for these OSes.
11481       ;;
11482     mingw* | os2* | pw32*)
11483       # This hack is so that the source file can tell whether it is being
11484       # built for inclusion in a dll (and should export symbols for example).
11485       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11486       ;;
11487     darwin* | rhapsody*)
11488       # PIC is the default on this platform
11489       # Common symbols not allowed in MH_DYLIB files
11490       lt_prog_compiler_pic_CXX='-fno-common'
11491       ;;
11492     *djgpp*)
11493       # DJGPP does not support shared libraries at all
11494       lt_prog_compiler_pic_CXX=
11495       ;;
11496     sysv4*MP*)
11497       if test -d /usr/nec; then
11498         lt_prog_compiler_pic_CXX=-Kconform_pic
11499       fi
11500       ;;
11501     hpux*)
11502       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11503       # not for PA HP-UX.
11504       case "$host_cpu" in
11505       hppa*64*|ia64*)
11506         ;;
11507       *)
11508         lt_prog_compiler_pic_CXX='-fPIC'
11509         ;;
11510       esac
11511       ;;
11512     *)
11513       lt_prog_compiler_pic_CXX='-fPIC'
11514       ;;
11515     esac
11516   else
11517     case $host_os in
11518       aix4* | aix5*)
11519         # All AIX code is PIC.
11520         if test "$host_cpu" = ia64; then
11521           # AIX 5 now supports IA64 processor
11522           lt_prog_compiler_static_CXX='-Bstatic'
11523         else
11524           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11525         fi
11526         ;;
11527       chorus*)
11528         case $cc_basename in
11529         cxch68*)
11530           # Green Hills C++ Compiler
11531           # _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"
11532           ;;
11533         esac
11534         ;;
11535        darwin*)
11536          # PIC is the default on this platform
11537          # Common symbols not allowed in MH_DYLIB files
11538          case $cc_basename in
11539            xlc*)
11540            lt_prog_compiler_pic_CXX='-qnocommon'
11541            lt_prog_compiler_wl_CXX='-Wl,'
11542            ;;
11543          esac
11544        ;;
11545       dgux*)
11546         case $cc_basename in
11547           ec++*)
11548             lt_prog_compiler_pic_CXX='-KPIC'
11549             ;;
11550           ghcx*)
11551             # Green Hills C++ Compiler
11552             lt_prog_compiler_pic_CXX='-pic'
11553             ;;
11554           *)
11555             ;;
11556         esac
11557         ;;
11558       freebsd* | kfreebsd*-gnu | dragonfly*)
11559         # FreeBSD uses GNU C++
11560         ;;
11561       hpux9* | hpux10* | hpux11*)
11562         case $cc_basename in
11563           CC*)
11564             lt_prog_compiler_wl_CXX='-Wl,'
11565             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11566             if test "$host_cpu" != ia64; then
11567               lt_prog_compiler_pic_CXX='+Z'
11568             fi
11569             ;;
11570           aCC*)
11571             lt_prog_compiler_wl_CXX='-Wl,'
11572             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11573             case "$host_cpu" in
11574             hppa*64*|ia64*)
11575               # +Z the default
11576               ;;
11577             *)
11578               lt_prog_compiler_pic_CXX='+Z'
11579               ;;
11580             esac
11581             ;;
11582           *)
11583             ;;
11584         esac
11585         ;;
11586       irix5* | irix6* | nonstopux*)
11587         case $cc_basename in
11588           CC*)
11589             lt_prog_compiler_wl_CXX='-Wl,'
11590             lt_prog_compiler_static_CXX='-non_shared'
11591             # CC pic flag -KPIC is the default.
11592             ;;
11593           *)
11594             ;;
11595         esac
11596         ;;
11597       linux*)
11598         case $cc_basename in
11599           KCC*)
11600             # KAI C++ Compiler
11601             lt_prog_compiler_wl_CXX='--backend -Wl,'
11602             lt_prog_compiler_pic_CXX='-fPIC'
11603             ;;
11604           icpc* | ecpc*)
11605             # Intel C++
11606             lt_prog_compiler_wl_CXX='-Wl,'
11607             lt_prog_compiler_pic_CXX='-KPIC'
11608             lt_prog_compiler_static_CXX='-static'
11609             ;;
11610           pgCC*)
11611             # Portland Group C++ compiler.
11612             lt_prog_compiler_wl_CXX='-Wl,'
11613             lt_prog_compiler_pic_CXX='-fpic'
11614             lt_prog_compiler_static_CXX='-static'
11615             ;;
11616           cxx*)
11617             # Compaq C++
11618             # Make sure the PIC flag is empty.  It appears that all Alpha
11619             # Linux and Compaq Tru64 Unix objects are PIC.
11620             lt_prog_compiler_pic_CXX=
11621             lt_prog_compiler_static_CXX='-non_shared'
11622             ;;
11623           *)
11624             ;;
11625         esac
11626         ;;
11627       lynxos*)
11628         ;;
11629       m88k*)
11630         ;;
11631       mvs*)
11632         case $cc_basename in
11633           cxx*)
11634             lt_prog_compiler_pic_CXX='-W c,exportall'
11635             ;;
11636           *)
11637             ;;
11638         esac
11639         ;;
11640       netbsd*)
11641         ;;
11642       osf3* | osf4* | osf5*)
11643         case $cc_basename in
11644           KCC*)
11645             lt_prog_compiler_wl_CXX='--backend -Wl,'
11646             ;;
11647           RCC*)
11648             # Rational C++ 2.4.1
11649             lt_prog_compiler_pic_CXX='-pic'
11650             ;;
11651           cxx*)
11652             # Digital/Compaq C++
11653             lt_prog_compiler_wl_CXX='-Wl,'
11654             # Make sure the PIC flag is empty.  It appears that all Alpha
11655             # Linux and Compaq Tru64 Unix objects are PIC.
11656             lt_prog_compiler_pic_CXX=
11657             lt_prog_compiler_static_CXX='-non_shared'
11658             ;;
11659           *)
11660             ;;
11661         esac
11662         ;;
11663       psos*)
11664         ;;
11665       sco*)
11666         case $cc_basename in
11667           CC*)
11668             lt_prog_compiler_pic_CXX='-fPIC'
11669             ;;
11670           *)
11671             ;;
11672         esac
11673         ;;
11674       solaris*)
11675         case $cc_basename in
11676           CC*)
11677             # Sun C++ 4.2, 5.x and Centerline C++
11678             lt_prog_compiler_pic_CXX='-KPIC'
11679             lt_prog_compiler_static_CXX='-Bstatic'
11680             lt_prog_compiler_wl_CXX='-Qoption ld '
11681             ;;
11682           gcx*)
11683             # Green Hills C++ Compiler
11684             lt_prog_compiler_pic_CXX='-PIC'
11685             ;;
11686           *)
11687             ;;
11688         esac
11689         ;;
11690       sunos4*)
11691         case $cc_basename in
11692           CC*)
11693             # Sun C++ 4.x
11694             lt_prog_compiler_pic_CXX='-pic'
11695             lt_prog_compiler_static_CXX='-Bstatic'
11696             ;;
11697           lcc*)
11698             # Lucid
11699             lt_prog_compiler_pic_CXX='-pic'
11700             ;;
11701           *)
11702             ;;
11703         esac
11704         ;;
11705       tandem*)
11706         case $cc_basename in
11707           NCC*)
11708             # NonStop-UX NCC 3.20
11709             lt_prog_compiler_pic_CXX='-KPIC'
11710             ;;
11711           *)
11712             ;;
11713         esac
11714         ;;
11715       unixware*)
11716         ;;
11717       vxworks*)
11718         ;;
11719       *)
11720         lt_prog_compiler_can_build_shared_CXX=no
11721         ;;
11722     esac
11723   fi
11724
11725 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11726 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11727
11728 #
11729 # Check to make sure the PIC flag actually works.
11730 #
11731 if test -n "$lt_prog_compiler_pic_CXX"; then
11732
11733 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11734 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11735 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11736   echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738   lt_prog_compiler_pic_works_CXX=no
11739   ac_outfile=conftest.$ac_objext
11740    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11741    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11742    # Insert the option either (1) after the last *FLAGS variable, or
11743    # (2) before a word containing "conftest.", or (3) at the end.
11744    # Note that $ac_compile itself does not contain backslashes and begins
11745    # with a dollar sign (not a hyphen), so the echo should work correctly.
11746    # The option is referenced via a variable to avoid confusing sed.
11747    lt_compile=`echo "$ac_compile" | $SED \
11748    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11749    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11750    -e 's:$: $lt_compiler_flag:'`
11751    (eval echo "\"\$as_me:11751: $lt_compile\"" >&5)
11752    (eval "$lt_compile" 2>conftest.err)
11753    ac_status=$?
11754    cat conftest.err >&5
11755    echo "$as_me:11755: \$? = $ac_status" >&5
11756    if (exit $ac_status) && test -s "$ac_outfile"; then
11757      # The compiler can only warn and ignore the option if not recognized
11758      # So say no if there are warnings other than the usual output.
11759      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11760      $SED '/^$/d' conftest.err >conftest.er2
11761      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11762        lt_prog_compiler_pic_works_CXX=yes
11763      fi
11764    fi
11765    $rm conftest*
11766
11767 fi
11768 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11769 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11770
11771 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11772     case $lt_prog_compiler_pic_CXX in
11773      "" | " "*) ;;
11774      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11775      esac
11776 else
11777     lt_prog_compiler_pic_CXX=
11778      lt_prog_compiler_can_build_shared_CXX=no
11779 fi
11780
11781 fi
11782 case "$host_os" in
11783   # For platforms which do not support PIC, -DPIC is meaningless:
11784   *djgpp*)
11785     lt_prog_compiler_pic_CXX=
11786     ;;
11787   *)
11788     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11789     ;;
11790 esac
11791
11792 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11793 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11794 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11795   echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797   lt_cv_prog_compiler_c_o_CXX=no
11798    $rm -r conftest 2>/dev/null
11799    mkdir conftest
11800    cd conftest
11801    mkdir out
11802    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11803
11804    lt_compiler_flag="-o out/conftest2.$ac_objext"
11805    # Insert the option either (1) after the last *FLAGS variable, or
11806    # (2) before a word containing "conftest.", or (3) at the end.
11807    # Note that $ac_compile itself does not contain backslashes and begins
11808    # with a dollar sign (not a hyphen), so the echo should work correctly.
11809    lt_compile=`echo "$ac_compile" | $SED \
11810    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11811    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11812    -e 's:$: $lt_compiler_flag:'`
11813    (eval echo "\"\$as_me:11813: $lt_compile\"" >&5)
11814    (eval "$lt_compile" 2>out/conftest.err)
11815    ac_status=$?
11816    cat out/conftest.err >&5
11817    echo "$as_me:11817: \$? = $ac_status" >&5
11818    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11819    then
11820      # The compiler can only warn and ignore the option if not recognized
11821      # So say no if there are warnings
11822      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11823      $SED '/^$/d' out/conftest.err >out/conftest.er2
11824      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11825        lt_cv_prog_compiler_c_o_CXX=yes
11826      fi
11827    fi
11828    chmod u+w .
11829    $rm conftest*
11830    # SGI C++ compiler will create directory out/ii_files/ for
11831    # template instantiation
11832    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11833    $rm out/* && rmdir out
11834    cd ..
11835    rmdir conftest
11836    $rm conftest*
11837
11838 fi
11839 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11840 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11841
11842
11843 hard_links="nottested"
11844 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11845   # do not overwrite the value of need_locks provided by the user
11846   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11847 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11848   hard_links=yes
11849   $rm conftest*
11850   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11851   touch conftest.a
11852   ln conftest.a conftest.b 2>&5 || hard_links=no
11853   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11854   echo "$as_me:$LINENO: result: $hard_links" >&5
11855 echo "${ECHO_T}$hard_links" >&6
11856   if test "$hard_links" = no; then
11857     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11858 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11859     need_locks=warn
11860   fi
11861 else
11862   need_locks=no
11863 fi
11864
11865 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11866 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11867
11868   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11869   case $host_os in
11870   aix4* | aix5*)
11871     # If we're using GNU nm, then we don't want the "-C" option.
11872     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11873     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11874       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'
11875     else
11876       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'
11877     fi
11878     ;;
11879   pw32*)
11880     export_symbols_cmds_CXX="$ltdll_cmds"
11881   ;;
11882   cygwin* | mingw*)
11883     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11884   ;;
11885   *)
11886     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11887   ;;
11888   esac
11889
11890 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11891 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11892 test "$ld_shlibs_CXX" = no && can_build_shared=no
11893
11894 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11895 if test "$GCC" = yes; then
11896   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11897 fi
11898
11899 #
11900 # Do we need to explicitly link libc?
11901 #
11902 case "x$archive_cmds_need_lc_CXX" in
11903 x|xyes)
11904   # Assume -lc should be added
11905   archive_cmds_need_lc_CXX=yes
11906
11907   if test "$enable_shared" = yes && test "$GCC" = yes; then
11908     case $archive_cmds_CXX in
11909     *'~'*)
11910       # FIXME: we may have to deal with multi-command sequences.
11911       ;;
11912     '$CC '*)
11913       # Test whether the compiler implicitly links with -lc since on some
11914       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11915       # to ld, don't add -lc before -lgcc.
11916       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11917 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11918       $rm conftest*
11919       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11920
11921       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11922   (eval $ac_compile) 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } 2>conftest.err; then
11926         soname=conftest
11927         lib=conftest
11928         libobjs=conftest.$ac_objext
11929         deplibs=
11930         wl=$lt_prog_compiler_wl_CXX
11931         compiler_flags=-v
11932         linker_flags=-v
11933         verstring=
11934         output_objdir=.
11935         libname=conftest
11936         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11937         allow_undefined_flag_CXX=
11938         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11939   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11940   ac_status=$?
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); }
11943         then
11944           archive_cmds_need_lc_CXX=no
11945         else
11946           archive_cmds_need_lc_CXX=yes
11947         fi
11948         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11949       else
11950         cat conftest.err 1>&5
11951       fi
11952       $rm conftest*
11953       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11954 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11955       ;;
11956     esac
11957   fi
11958   ;;
11959 esac
11960
11961 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11962 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11963 library_names_spec=
11964 libname_spec='lib$name'
11965 soname_spec=
11966 shrext_cmds=".so"
11967 postinstall_cmds=
11968 postuninstall_cmds=
11969 finish_cmds=
11970 finish_eval=
11971 shlibpath_var=
11972 shlibpath_overrides_runpath=unknown
11973 version_type=none
11974 dynamic_linker="$host_os ld.so"
11975 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11976 if test "$GCC" = yes; then
11977   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11978   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11979     # if the path contains ";" then we assume it to be the separator
11980     # otherwise default to the standard path separator (i.e. ":") - it is
11981     # assumed that no part of a normal pathname contains ";" but that should
11982     # okay in the real world where ";" in dirpaths is itself problematic.
11983     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11984   else
11985     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11986   fi
11987 else
11988   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11989 fi
11990 need_lib_prefix=unknown
11991 hardcode_into_libs=no
11992
11993 # when you set need_version to no, make sure it does not cause -set_version
11994 # flags to be left without arguments
11995 need_version=unknown
11996
11997 case $host_os in
11998 aix3*)
11999   version_type=linux
12000   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12001   shlibpath_var=LIBPATH
12002
12003   # AIX 3 has no versioning support, so we append a major version to the name.
12004   soname_spec='${libname}${release}${shared_ext}$major'
12005   ;;
12006
12007 aix4* | aix5*)
12008   version_type=linux
12009   need_lib_prefix=no
12010   need_version=no
12011   hardcode_into_libs=yes
12012   if test "$host_cpu" = ia64; then
12013     # AIX 5 supports IA64
12014     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12015     shlibpath_var=LD_LIBRARY_PATH
12016   else
12017     # With GCC up to 2.95.x, collect2 would create an import file
12018     # for dependence libraries.  The import file would start with
12019     # the line `#! .'.  This would cause the generated library to
12020     # depend on `.', always an invalid library.  This was fixed in
12021     # development snapshots of GCC prior to 3.0.
12022     case $host_os in
12023       aix4 | aix4.[01] | aix4.[01].*)
12024       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12025            echo ' yes '
12026            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12027         :
12028       else
12029         can_build_shared=no
12030       fi
12031       ;;
12032     esac
12033     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12034     # soname into executable. Probably we can add versioning support to
12035     # collect2, so additional links can be useful in future.
12036     if test "$aix_use_runtimelinking" = yes; then
12037       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12038       # instead of lib<name>.a to let people know that these are not
12039       # typical AIX shared libraries.
12040       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12041     else
12042       # We preserve .a as extension for shared libraries through AIX4.2
12043       # and later when we are not doing run time linking.
12044       library_names_spec='${libname}${release}.a $libname.a'
12045       soname_spec='${libname}${release}${shared_ext}$major'
12046     fi
12047     shlibpath_var=LIBPATH
12048   fi
12049   ;;
12050
12051 amigaos*)
12052   library_names_spec='$libname.ixlibrary $libname.a'
12053   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12054   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'
12055   ;;
12056
12057 beos*)
12058   library_names_spec='${libname}${shared_ext}'
12059   dynamic_linker="$host_os ld.so"
12060   shlibpath_var=LIBRARY_PATH
12061   ;;
12062
12063 bsdi[45]*)
12064   version_type=linux
12065   need_version=no
12066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067   soname_spec='${libname}${release}${shared_ext}$major'
12068   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12069   shlibpath_var=LD_LIBRARY_PATH
12070   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12071   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12072   # the default ld.so.conf also contains /usr/contrib/lib and
12073   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12074   # libtool to hard-code these into programs
12075   ;;
12076
12077 cygwin* | mingw* | pw32*)
12078   version_type=windows
12079   shrext_cmds=".dll"
12080   need_version=no
12081   need_lib_prefix=no
12082
12083   case $GCC,$host_os in
12084   yes,cygwin* | yes,mingw* | yes,pw32*)
12085     library_names_spec='$libname.dll.a'
12086     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12087     postinstall_cmds='base_file=`basename \${file}`~
12088       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12089       dldir=$destdir/`dirname \$dlpath`~
12090       test -d \$dldir || mkdir -p \$dldir~
12091       $install_prog $dir/$dlname \$dldir/$dlname'
12092     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12093       dlpath=$dir/\$dldll~
12094        $rm \$dlpath'
12095     shlibpath_overrides_runpath=yes
12096
12097     case $host_os in
12098     cygwin*)
12099       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12100       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12101       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12102       ;;
12103     mingw*)
12104       # MinGW DLLs use traditional 'lib' prefix
12105       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12106       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12107       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12108         # It is most probably a Windows format PATH printed by
12109         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12110         # path with ; separators, and with drive letters. We can handle the
12111         # drive letters (cygwin fileutils understands them), so leave them,
12112         # especially as we might pass files found there to a mingw objdump,
12113         # which wouldn't understand a cygwinified path. Ahh.
12114         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12115       else
12116         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12117       fi
12118       ;;
12119     pw32*)
12120       # pw32 DLLs use 'pw' prefix rather than 'lib'
12121       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12122       ;;
12123     esac
12124     ;;
12125
12126   *)
12127     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12128     ;;
12129   esac
12130   dynamic_linker='Win32 ld.exe'
12131   # FIXME: first we should search . and the directory the executable is in
12132   shlibpath_var=PATH
12133   ;;
12134
12135 darwin* | rhapsody*)
12136   dynamic_linker="$host_os dyld"
12137   version_type=darwin
12138   need_lib_prefix=no
12139   need_version=no
12140   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12141   soname_spec='${libname}${release}${major}$shared_ext'
12142   shlibpath_overrides_runpath=yes
12143   shlibpath_var=DYLD_LIBRARY_PATH
12144   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12145   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12146   if test "$GCC" = yes; then
12147     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"`
12148   else
12149     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12150   fi
12151   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12152   ;;
12153
12154 dgux*)
12155   version_type=linux
12156   need_lib_prefix=no
12157   need_version=no
12158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12159   soname_spec='${libname}${release}${shared_ext}$major'
12160   shlibpath_var=LD_LIBRARY_PATH
12161   ;;
12162
12163 freebsd1*)
12164   dynamic_linker=no
12165   ;;
12166
12167 kfreebsd*-gnu)
12168   version_type=linux
12169   need_lib_prefix=no
12170   need_version=no
12171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12172   soname_spec='${libname}${release}${shared_ext}$major'
12173   shlibpath_var=LD_LIBRARY_PATH
12174   shlibpath_overrides_runpath=no
12175   hardcode_into_libs=yes
12176   dynamic_linker='GNU ld.so'
12177   ;;
12178
12179 freebsd* | dragonfly*)
12180   # DragonFly does not have aout.  When/if they implement a new
12181   # versioning mechanism, adjust this.
12182   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12183   version_type=freebsd-$objformat
12184   case $version_type in
12185     freebsd-elf*)
12186       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12187       need_version=no
12188       need_lib_prefix=no
12189       ;;
12190     freebsd-*)
12191       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12192       need_version=yes
12193       ;;
12194   esac
12195   shlibpath_var=LD_LIBRARY_PATH
12196   case $host_os in
12197   freebsd2*)
12198     shlibpath_overrides_runpath=yes
12199     ;;
12200   freebsd3.[01]* | freebsdelf3.[01]*)
12201     shlibpath_overrides_runpath=yes
12202     hardcode_into_libs=yes
12203     ;;
12204   *) # from 3.2 on
12205     shlibpath_overrides_runpath=no
12206     hardcode_into_libs=yes
12207     ;;
12208   esac
12209   ;;
12210
12211 gnu*)
12212   version_type=linux
12213   need_lib_prefix=no
12214   need_version=no
12215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12216   soname_spec='${libname}${release}${shared_ext}$major'
12217   shlibpath_var=LD_LIBRARY_PATH
12218   hardcode_into_libs=yes
12219   ;;
12220
12221 hpux9* | hpux10* | hpux11*)
12222   # Give a soname corresponding to the major version so that dld.sl refuses to
12223   # link against other versions.
12224   version_type=sunos
12225   need_lib_prefix=no
12226   need_version=no
12227   case "$host_cpu" in
12228   ia64*)
12229     shrext_cmds='.so'
12230     hardcode_into_libs=yes
12231     dynamic_linker="$host_os dld.so"
12232     shlibpath_var=LD_LIBRARY_PATH
12233     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235     soname_spec='${libname}${release}${shared_ext}$major'
12236     if test "X$HPUX_IA64_MODE" = X32; then
12237       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12238     else
12239       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12240     fi
12241     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12242     ;;
12243    hppa*64*)
12244      shrext_cmds='.sl'
12245      hardcode_into_libs=yes
12246      dynamic_linker="$host_os dld.sl"
12247      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12248      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12250      soname_spec='${libname}${release}${shared_ext}$major'
12251      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12252      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12253      ;;
12254    *)
12255     shrext_cmds='.sl'
12256     dynamic_linker="$host_os dld.sl"
12257     shlibpath_var=SHLIB_PATH
12258     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260     soname_spec='${libname}${release}${shared_ext}$major'
12261     ;;
12262   esac
12263   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12264   postinstall_cmds='chmod 555 $lib'
12265   ;;
12266
12267 irix5* | irix6* | nonstopux*)
12268   case $host_os in
12269     nonstopux*) version_type=nonstopux ;;
12270     *)
12271         if test "$lt_cv_prog_gnu_ld" = yes; then
12272                 version_type=linux
12273         else
12274                 version_type=irix
12275         fi ;;
12276   esac
12277   need_lib_prefix=no
12278   need_version=no
12279   soname_spec='${libname}${release}${shared_ext}$major'
12280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12281   case $host_os in
12282   irix5* | nonstopux*)
12283     libsuff= shlibsuff=
12284     ;;
12285   *)
12286     case $LD in # libtool.m4 will add one of these switches to LD
12287     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12288       libsuff= shlibsuff= libmagic=32-bit;;
12289     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12290       libsuff=32 shlibsuff=N32 libmagic=N32;;
12291     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12292       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12293     *) libsuff= shlibsuff= libmagic=never-match;;
12294     esac
12295     ;;
12296   esac
12297   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12298   shlibpath_overrides_runpath=no
12299   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12300   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12301   hardcode_into_libs=yes
12302   ;;
12303
12304 # No shared lib support for Linux oldld, aout, or coff.
12305 linux*oldld* | linux*aout* | linux*coff*)
12306   dynamic_linker=no
12307   ;;
12308
12309 # This must be Linux ELF.
12310 linux*)
12311   version_type=linux
12312   need_lib_prefix=no
12313   need_version=no
12314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315   soname_spec='${libname}${release}${shared_ext}$major'
12316   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12317   shlibpath_var=LD_LIBRARY_PATH
12318   shlibpath_overrides_runpath=no
12319   # This implies no fast_install, which is unacceptable.
12320   # Some rework will be needed to allow for fast_install
12321   # before this can be enabled.
12322   hardcode_into_libs=yes
12323
12324   # find out which ABI we are using
12325   libsuff=
12326   case "$host_cpu" in
12327   x86_64*|s390x*|powerpc64*)
12328     echo '#line 12328 "configure"' > conftest.$ac_ext
12329     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12330   (eval $ac_compile) 2>&5
12331   ac_status=$?
12332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); }; then
12334       case `/usr/bin/file conftest.$ac_objext` in
12335       *64-bit*)
12336         libsuff=64
12337         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12338         ;;
12339       esac
12340     fi
12341     rm -rf conftest*
12342     ;;
12343   esac
12344
12345   # Append ld.so.conf contents to the search path
12346   if test -f /etc/ld.so.conf; then
12347     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12348     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12349   fi
12350
12351   # We used to test for /lib/ld.so.1 and disable shared libraries on
12352   # powerpc, because MkLinux only supported shared libraries with the
12353   # GNU dynamic linker.  Since this was broken with cross compilers,
12354   # most powerpc-linux boxes support dynamic linking these days and
12355   # people can always --disable-shared, the test was removed, and we
12356   # assume the GNU/Linux dynamic linker is in use.
12357   dynamic_linker='GNU/Linux ld.so'
12358   ;;
12359
12360 knetbsd*-gnu)
12361   version_type=linux
12362   need_lib_prefix=no
12363   need_version=no
12364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12365   soname_spec='${libname}${release}${shared_ext}$major'
12366   shlibpath_var=LD_LIBRARY_PATH
12367   shlibpath_overrides_runpath=no
12368   hardcode_into_libs=yes
12369   dynamic_linker='GNU ld.so'
12370   ;;
12371
12372 netbsd*)
12373   version_type=sunos
12374   need_lib_prefix=no
12375   need_version=no
12376   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12378     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12379     dynamic_linker='NetBSD (a.out) ld.so'
12380   else
12381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12382     soname_spec='${libname}${release}${shared_ext}$major'
12383     dynamic_linker='NetBSD ld.elf_so'
12384   fi
12385   shlibpath_var=LD_LIBRARY_PATH
12386   shlibpath_overrides_runpath=yes
12387   hardcode_into_libs=yes
12388   ;;
12389
12390 newsos6)
12391   version_type=linux
12392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12393   shlibpath_var=LD_LIBRARY_PATH
12394   shlibpath_overrides_runpath=yes
12395   ;;
12396
12397 nto-qnx*)
12398   version_type=linux
12399   need_lib_prefix=no
12400   need_version=no
12401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12402   soname_spec='${libname}${release}${shared_ext}$major'
12403   shlibpath_var=LD_LIBRARY_PATH
12404   shlibpath_overrides_runpath=yes
12405   ;;
12406
12407 openbsd*)
12408   version_type=sunos
12409   need_lib_prefix=no
12410   need_version=no
12411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12412   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12413   shlibpath_var=LD_LIBRARY_PATH
12414   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12415     case $host_os in
12416       openbsd2.[89] | openbsd2.[89].*)
12417         shlibpath_overrides_runpath=no
12418         ;;
12419       *)
12420         shlibpath_overrides_runpath=yes
12421         ;;
12422       esac
12423   else
12424     shlibpath_overrides_runpath=yes
12425   fi
12426   ;;
12427
12428 os2*)
12429   libname_spec='$name'
12430   shrext_cmds=".dll"
12431   need_lib_prefix=no
12432   library_names_spec='$libname${shared_ext} $libname.a'
12433   dynamic_linker='OS/2 ld.exe'
12434   shlibpath_var=LIBPATH
12435   ;;
12436
12437 osf3* | osf4* | osf5*)
12438   version_type=osf
12439   need_lib_prefix=no
12440   need_version=no
12441   soname_spec='${libname}${release}${shared_ext}$major'
12442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443   shlibpath_var=LD_LIBRARY_PATH
12444   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12445   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12446   ;;
12447
12448 sco3.2v5*)
12449   version_type=osf
12450   soname_spec='${libname}${release}${shared_ext}$major'
12451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452   shlibpath_var=LD_LIBRARY_PATH
12453   ;;
12454
12455 solaris*)
12456   version_type=linux
12457   need_lib_prefix=no
12458   need_version=no
12459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12460   soname_spec='${libname}${release}${shared_ext}$major'
12461   shlibpath_var=LD_LIBRARY_PATH
12462   shlibpath_overrides_runpath=yes
12463   hardcode_into_libs=yes
12464   # ldd complains unless libraries are executable
12465   postinstall_cmds='chmod +x $lib'
12466   ;;
12467
12468 sunos4*)
12469   version_type=sunos
12470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12471   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12472   shlibpath_var=LD_LIBRARY_PATH
12473   shlibpath_overrides_runpath=yes
12474   if test "$with_gnu_ld" = yes; then
12475     need_lib_prefix=no
12476   fi
12477   need_version=yes
12478   ;;
12479
12480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12481   version_type=linux
12482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12483   soname_spec='${libname}${release}${shared_ext}$major'
12484   shlibpath_var=LD_LIBRARY_PATH
12485   case $host_vendor in
12486     sni)
12487       shlibpath_overrides_runpath=no
12488       need_lib_prefix=no
12489       export_dynamic_flag_spec='${wl}-Blargedynsym'
12490       runpath_var=LD_RUN_PATH
12491       ;;
12492     siemens)
12493       need_lib_prefix=no
12494       ;;
12495     motorola)
12496       need_lib_prefix=no
12497       need_version=no
12498       shlibpath_overrides_runpath=no
12499       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12500       ;;
12501   esac
12502   ;;
12503
12504 sysv4*MP*)
12505   if test -d /usr/nec ;then
12506     version_type=linux
12507     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12508     soname_spec='$libname${shared_ext}.$major'
12509     shlibpath_var=LD_LIBRARY_PATH
12510   fi
12511   ;;
12512
12513 uts4*)
12514   version_type=linux
12515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12516   soname_spec='${libname}${release}${shared_ext}$major'
12517   shlibpath_var=LD_LIBRARY_PATH
12518   ;;
12519
12520 *)
12521   dynamic_linker=no
12522   ;;
12523 esac
12524 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12525 echo "${ECHO_T}$dynamic_linker" >&6
12526 test "$dynamic_linker" = no && can_build_shared=no
12527
12528 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12529 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12530 hardcode_action_CXX=
12531 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12532    test -n "$runpath_var_CXX" || \
12533    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12534
12535   # We can hardcode non-existant directories.
12536   if test "$hardcode_direct_CXX" != no &&
12537      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12538      # have to relink, otherwise we might link with an installed library
12539      # when we should be linking with a yet-to-be-installed one
12540      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12541      test "$hardcode_minus_L_CXX" != no; then
12542     # Linking always hardcodes the temporary library directory.
12543     hardcode_action_CXX=relink
12544   else
12545     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12546     hardcode_action_CXX=immediate
12547   fi
12548 else
12549   # We cannot hardcode anything, or else we can only hardcode existing
12550   # directories.
12551   hardcode_action_CXX=unsupported
12552 fi
12553 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12554 echo "${ECHO_T}$hardcode_action_CXX" >&6
12555
12556 if test "$hardcode_action_CXX" = relink; then
12557   # Fast installation is not supported
12558   enable_fast_install=no
12559 elif test "$shlibpath_overrides_runpath" = yes ||
12560      test "$enable_shared" = no; then
12561   # Fast installation is not necessary
12562   enable_fast_install=needless
12563 fi
12564
12565 striplib=
12566 old_striplib=
12567 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12568 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12569 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12570   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12571   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12572   echo "$as_me:$LINENO: result: yes" >&5
12573 echo "${ECHO_T}yes" >&6
12574 else
12575 # FIXME - insert some real tests, host_os isn't really good enough
12576   case $host_os in
12577    darwin*)
12578        if test -n "$STRIP" ; then
12579          striplib="$STRIP -x"
12580          echo "$as_me:$LINENO: result: yes" >&5
12581 echo "${ECHO_T}yes" >&6
12582        else
12583   echo "$as_me:$LINENO: result: no" >&5
12584 echo "${ECHO_T}no" >&6
12585 fi
12586        ;;
12587    *)
12588   echo "$as_me:$LINENO: result: no" >&5
12589 echo "${ECHO_T}no" >&6
12590     ;;
12591   esac
12592 fi
12593
12594 if test "x$enable_dlopen" != xyes; then
12595   enable_dlopen=unknown
12596   enable_dlopen_self=unknown
12597   enable_dlopen_self_static=unknown
12598 else
12599   lt_cv_dlopen=no
12600   lt_cv_dlopen_libs=
12601
12602   case $host_os in
12603   beos*)
12604     lt_cv_dlopen="load_add_on"
12605     lt_cv_dlopen_libs=
12606     lt_cv_dlopen_self=yes
12607     ;;
12608
12609   mingw* | pw32*)
12610     lt_cv_dlopen="LoadLibrary"
12611     lt_cv_dlopen_libs=
12612    ;;
12613
12614   cygwin*)
12615     lt_cv_dlopen="dlopen"
12616     lt_cv_dlopen_libs=
12617    ;;
12618
12619   darwin*)
12620   # if libdl is installed we need to link against it
12621     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12622 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12623 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12624   echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626   ac_check_lib_save_LIBS=$LIBS
12627 LIBS="-ldl  $LIBS"
12628 cat >conftest.$ac_ext <<_ACEOF
12629 /* confdefs.h.  */
12630 _ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h.  */
12634
12635 /* Override any gcc2 internal prototype to avoid an error.  */
12636 #ifdef __cplusplus
12637 extern "C"
12638 #endif
12639 /* We use char because int might match the return type of a gcc2
12640    builtin and then its argument prototype would still apply.  */
12641 char dlopen ();
12642 int
12643 main ()
12644 {
12645 dlopen ();
12646   ;
12647   return 0;
12648 }
12649 _ACEOF
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652   (eval $ac_link) 2>conftest.er1
12653   ac_status=$?
12654   grep -v '^ *+' conftest.er1 >conftest.err
12655   rm -f conftest.er1
12656   cat conftest.err >&5
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); } &&
12659          { ac_try='test -z "$ac_cxx_werror_flag"
12660                          || test ! -s conftest.err'
12661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662   (eval $ac_try) 2>&5
12663   ac_status=$?
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); }; } &&
12666          { ac_try='test -s conftest$ac_exeext'
12667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668   (eval $ac_try) 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); }; }; then
12672   ac_cv_lib_dl_dlopen=yes
12673 else
12674   echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 ac_cv_lib_dl_dlopen=no
12678 fi
12679 rm -f conftest.err conftest.$ac_objext \
12680       conftest$ac_exeext conftest.$ac_ext
12681 LIBS=$ac_check_lib_save_LIBS
12682 fi
12683 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12684 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12685 if test $ac_cv_lib_dl_dlopen = yes; then
12686   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12687 else
12688
12689     lt_cv_dlopen="dyld"
12690     lt_cv_dlopen_libs=
12691     lt_cv_dlopen_self=yes
12692
12693 fi
12694
12695    ;;
12696
12697   *)
12698     echo "$as_me:$LINENO: checking for shl_load" >&5
12699 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12700 if test "${ac_cv_func_shl_load+set}" = set; then
12701   echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703   cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h.  */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h.  */
12709 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12711 #define shl_load innocuous_shl_load
12712
12713 /* System header to define __stub macros and hopefully few prototypes,
12714     which can conflict with char shl_load (); below.
12715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12716     <limits.h> exists even on freestanding compilers.  */
12717
12718 #ifdef __STDC__
12719 # include <limits.h>
12720 #else
12721 # include <assert.h>
12722 #endif
12723
12724 #undef shl_load
12725
12726 /* Override any gcc2 internal prototype to avoid an error.  */
12727 #ifdef __cplusplus
12728 extern "C"
12729 {
12730 #endif
12731 /* We use char because int might match the return type of a gcc2
12732    builtin and then its argument prototype would still apply.  */
12733 char shl_load ();
12734 /* The GNU C library defines this for functions which it implements
12735     to always fail with ENOSYS.  Some functions are actually named
12736     something starting with __ and the normal name is an alias.  */
12737 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12738 choke me
12739 #else
12740 char (*f) () = shl_load;
12741 #endif
12742 #ifdef __cplusplus
12743 }
12744 #endif
12745
12746 int
12747 main ()
12748 {
12749 return f != shl_load;
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756   (eval $ac_link) 2>conftest.er1
12757   ac_status=$?
12758   grep -v '^ *+' conftest.er1 >conftest.err
12759   rm -f conftest.er1
12760   cat conftest.err >&5
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); } &&
12763          { ac_try='test -z "$ac_cxx_werror_flag"
12764                          || test ! -s conftest.err'
12765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766   (eval $ac_try) 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; } &&
12770          { ac_try='test -s conftest$ac_exeext'
12771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772   (eval $ac_try) 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); }; }; then
12776   ac_cv_func_shl_load=yes
12777 else
12778   echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12780
12781 ac_cv_func_shl_load=no
12782 fi
12783 rm -f conftest.err conftest.$ac_objext \
12784       conftest$ac_exeext conftest.$ac_ext
12785 fi
12786 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12787 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12788 if test $ac_cv_func_shl_load = yes; then
12789   lt_cv_dlopen="shl_load"
12790 else
12791   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12792 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12793 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12794   echo $ECHO_N "(cached) $ECHO_C" >&6
12795 else
12796   ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-ldld  $LIBS"
12798 cat >conftest.$ac_ext <<_ACEOF
12799 /* confdefs.h.  */
12800 _ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h.  */
12804
12805 /* Override any gcc2 internal prototype to avoid an error.  */
12806 #ifdef __cplusplus
12807 extern "C"
12808 #endif
12809 /* We use char because int might match the return type of a gcc2
12810    builtin and then its argument prototype would still apply.  */
12811 char shl_load ();
12812 int
12813 main ()
12814 {
12815 shl_load ();
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12822   (eval $ac_link) 2>conftest.er1
12823   ac_status=$?
12824   grep -v '^ *+' conftest.er1 >conftest.err
12825   rm -f conftest.er1
12826   cat conftest.err >&5
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); } &&
12829          { ac_try='test -z "$ac_cxx_werror_flag"
12830                          || test ! -s conftest.err'
12831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832   (eval $ac_try) 2>&5
12833   ac_status=$?
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); }; } &&
12836          { ac_try='test -s conftest$ac_exeext'
12837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838   (eval $ac_try) 2>&5
12839   ac_status=$?
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); }; }; then
12842   ac_cv_lib_dld_shl_load=yes
12843 else
12844   echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.$ac_ext >&5
12846
12847 ac_cv_lib_dld_shl_load=no
12848 fi
12849 rm -f conftest.err conftest.$ac_objext \
12850       conftest$ac_exeext conftest.$ac_ext
12851 LIBS=$ac_check_lib_save_LIBS
12852 fi
12853 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12854 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12855 if test $ac_cv_lib_dld_shl_load = yes; then
12856   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12857 else
12858   echo "$as_me:$LINENO: checking for dlopen" >&5
12859 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12860 if test "${ac_cv_func_dlopen+set}" = set; then
12861   echo $ECHO_N "(cached) $ECHO_C" >&6
12862 else
12863   cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h.  */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h.  */
12869 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12871 #define dlopen innocuous_dlopen
12872
12873 /* System header to define __stub macros and hopefully few prototypes,
12874     which can conflict with char dlopen (); below.
12875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12876     <limits.h> exists even on freestanding compilers.  */
12877
12878 #ifdef __STDC__
12879 # include <limits.h>
12880 #else
12881 # include <assert.h>
12882 #endif
12883
12884 #undef dlopen
12885
12886 /* Override any gcc2 internal prototype to avoid an error.  */
12887 #ifdef __cplusplus
12888 extern "C"
12889 {
12890 #endif
12891 /* We use char because int might match the return type of a gcc2
12892    builtin and then its argument prototype would still apply.  */
12893 char dlopen ();
12894 /* The GNU C library defines this for functions which it implements
12895     to always fail with ENOSYS.  Some functions are actually named
12896     something starting with __ and the normal name is an alias.  */
12897 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12898 choke me
12899 #else
12900 char (*f) () = dlopen;
12901 #endif
12902 #ifdef __cplusplus
12903 }
12904 #endif
12905
12906 int
12907 main ()
12908 {
12909 return f != dlopen;
12910   ;
12911   return 0;
12912 }
12913 _ACEOF
12914 rm -f conftest.$ac_objext conftest$ac_exeext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916   (eval $ac_link) 2>conftest.er1
12917   ac_status=$?
12918   grep -v '^ *+' conftest.er1 >conftest.err
12919   rm -f conftest.er1
12920   cat conftest.err >&5
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); } &&
12923          { ac_try='test -z "$ac_cxx_werror_flag"
12924                          || test ! -s conftest.err'
12925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926   (eval $ac_try) 2>&5
12927   ac_status=$?
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }; } &&
12930          { ac_try='test -s conftest$ac_exeext'
12931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932   (eval $ac_try) 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); }; }; then
12936   ac_cv_func_dlopen=yes
12937 else
12938   echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 ac_cv_func_dlopen=no
12942 fi
12943 rm -f conftest.err conftest.$ac_objext \
12944       conftest$ac_exeext conftest.$ac_ext
12945 fi
12946 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12947 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12948 if test $ac_cv_func_dlopen = yes; then
12949   lt_cv_dlopen="dlopen"
12950 else
12951   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12952 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12954   echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956   ac_check_lib_save_LIBS=$LIBS
12957 LIBS="-ldl  $LIBS"
12958 cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h.  */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h.  */
12964
12965 /* Override any gcc2 internal prototype to avoid an error.  */
12966 #ifdef __cplusplus
12967 extern "C"
12968 #endif
12969 /* We use char because int might match the return type of a gcc2
12970    builtin and then its argument prototype would still apply.  */
12971 char dlopen ();
12972 int
12973 main ()
12974 {
12975 dlopen ();
12976   ;
12977   return 0;
12978 }
12979 _ACEOF
12980 rm -f conftest.$ac_objext conftest$ac_exeext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12982   (eval $ac_link) 2>conftest.er1
12983   ac_status=$?
12984   grep -v '^ *+' conftest.er1 >conftest.err
12985   rm -f conftest.er1
12986   cat conftest.err >&5
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); } &&
12989          { ac_try='test -z "$ac_cxx_werror_flag"
12990                          || test ! -s conftest.err'
12991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992   (eval $ac_try) 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; } &&
12996          { ac_try='test -s conftest$ac_exeext'
12997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998   (eval $ac_try) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); }; }; then
13002   ac_cv_lib_dl_dlopen=yes
13003 else
13004   echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13006
13007 ac_cv_lib_dl_dlopen=no
13008 fi
13009 rm -f conftest.err conftest.$ac_objext \
13010       conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_lib_save_LIBS
13012 fi
13013 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13014 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13015 if test $ac_cv_lib_dl_dlopen = yes; then
13016   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13017 else
13018   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13019 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13020 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13021   echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023   ac_check_lib_save_LIBS=$LIBS
13024 LIBS="-lsvld  $LIBS"
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h.  */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h.  */
13031
13032 /* Override any gcc2 internal prototype to avoid an error.  */
13033 #ifdef __cplusplus
13034 extern "C"
13035 #endif
13036 /* We use char because int might match the return type of a gcc2
13037    builtin and then its argument prototype would still apply.  */
13038 char dlopen ();
13039 int
13040 main ()
13041 {
13042 dlopen ();
13043   ;
13044   return 0;
13045 }
13046 _ACEOF
13047 rm -f conftest.$ac_objext conftest$ac_exeext
13048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13049   (eval $ac_link) 2>conftest.er1
13050   ac_status=$?
13051   grep -v '^ *+' conftest.er1 >conftest.err
13052   rm -f conftest.er1
13053   cat conftest.err >&5
13054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055   (exit $ac_status); } &&
13056          { ac_try='test -z "$ac_cxx_werror_flag"
13057                          || test ! -s conftest.err'
13058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059   (eval $ac_try) 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }; } &&
13063          { ac_try='test -s conftest$ac_exeext'
13064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065   (eval $ac_try) 2>&5
13066   ac_status=$?
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); }; }; then
13069   ac_cv_lib_svld_dlopen=yes
13070 else
13071   echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074 ac_cv_lib_svld_dlopen=no
13075 fi
13076 rm -f conftest.err conftest.$ac_objext \
13077       conftest$ac_exeext conftest.$ac_ext
13078 LIBS=$ac_check_lib_save_LIBS
13079 fi
13080 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13081 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13082 if test $ac_cv_lib_svld_dlopen = yes; then
13083   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13084 else
13085   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13086 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13087 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-ldld  $LIBS"
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h.  */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h.  */
13098
13099 /* Override any gcc2 internal prototype to avoid an error.  */
13100 #ifdef __cplusplus
13101 extern "C"
13102 #endif
13103 /* We use char because int might match the return type of a gcc2
13104    builtin and then its argument prototype would still apply.  */
13105 char dld_link ();
13106 int
13107 main ()
13108 {
13109 dld_link ();
13110   ;
13111   return 0;
13112 }
13113 _ACEOF
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13116   (eval $ac_link) 2>conftest.er1
13117   ac_status=$?
13118   grep -v '^ *+' conftest.er1 >conftest.err
13119   rm -f conftest.er1
13120   cat conftest.err >&5
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); } &&
13123          { ac_try='test -z "$ac_cxx_werror_flag"
13124                          || test ! -s conftest.err'
13125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126   (eval $ac_try) 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }; } &&
13130          { ac_try='test -s conftest$ac_exeext'
13131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132   (eval $ac_try) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; }; then
13136   ac_cv_lib_dld_dld_link=yes
13137 else
13138   echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141 ac_cv_lib_dld_dld_link=no
13142 fi
13143 rm -f conftest.err conftest.$ac_objext \
13144       conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13146 fi
13147 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13148 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13149 if test $ac_cv_lib_dld_dld_link = yes; then
13150   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13151 fi
13152
13153
13154 fi
13155
13156
13157 fi
13158
13159
13160 fi
13161
13162
13163 fi
13164
13165
13166 fi
13167
13168     ;;
13169   esac
13170
13171   if test "x$lt_cv_dlopen" != xno; then
13172     enable_dlopen=yes
13173   else
13174     enable_dlopen=no
13175   fi
13176
13177   case $lt_cv_dlopen in
13178   dlopen)
13179     save_CPPFLAGS="$CPPFLAGS"
13180     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13181
13182     save_LDFLAGS="$LDFLAGS"
13183     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13184
13185     save_LIBS="$LIBS"
13186     LIBS="$lt_cv_dlopen_libs $LIBS"
13187
13188     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13189 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13190 if test "${lt_cv_dlopen_self+set}" = set; then
13191   echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193           if test "$cross_compiling" = yes; then :
13194   lt_cv_dlopen_self=cross
13195 else
13196   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13197   lt_status=$lt_dlunknown
13198   cat > conftest.$ac_ext <<EOF
13199 #line 13199 "configure"
13200 #include "confdefs.h"
13201
13202 #if HAVE_DLFCN_H
13203 #include <dlfcn.h>
13204 #endif
13205
13206 #include <stdio.h>
13207
13208 #ifdef RTLD_GLOBAL
13209 #  define LT_DLGLOBAL           RTLD_GLOBAL
13210 #else
13211 #  ifdef DL_GLOBAL
13212 #    define LT_DLGLOBAL         DL_GLOBAL
13213 #  else
13214 #    define LT_DLGLOBAL         0
13215 #  endif
13216 #endif
13217
13218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13219    find out it does not work in some platform. */
13220 #ifndef LT_DLLAZY_OR_NOW
13221 #  ifdef RTLD_LAZY
13222 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13223 #  else
13224 #    ifdef DL_LAZY
13225 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13226 #    else
13227 #      ifdef RTLD_NOW
13228 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13229 #      else
13230 #        ifdef DL_NOW
13231 #          define LT_DLLAZY_OR_NOW      DL_NOW
13232 #        else
13233 #          define LT_DLLAZY_OR_NOW      0
13234 #        endif
13235 #      endif
13236 #    endif
13237 #  endif
13238 #endif
13239
13240 #ifdef __cplusplus
13241 extern "C" void exit (int);
13242 #endif
13243
13244 void fnord() { int i=42;}
13245 int main ()
13246 {
13247   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13248   int status = $lt_dlunknown;
13249
13250   if (self)
13251     {
13252       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13253       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13254       /* dlclose (self); */
13255     }
13256
13257     exit (status);
13258 }
13259 EOF
13260   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13261   (eval $ac_link) 2>&5
13262   ac_status=$?
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13265     (./conftest; exit; ) 2>/dev/null
13266     lt_status=$?
13267     case x$lt_status in
13268       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13269       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13270       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13271     esac
13272   else :
13273     # compilation failed
13274     lt_cv_dlopen_self=no
13275   fi
13276 fi
13277 rm -fr conftest*
13278
13279
13280 fi
13281 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13282 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13283
13284     if test "x$lt_cv_dlopen_self" = xyes; then
13285       LDFLAGS="$LDFLAGS $link_static_flag"
13286       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13287 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13288 if test "${lt_cv_dlopen_self_static+set}" = set; then
13289   echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291           if test "$cross_compiling" = yes; then :
13292   lt_cv_dlopen_self_static=cross
13293 else
13294   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13295   lt_status=$lt_dlunknown
13296   cat > conftest.$ac_ext <<EOF
13297 #line 13297 "configure"
13298 #include "confdefs.h"
13299
13300 #if HAVE_DLFCN_H
13301 #include <dlfcn.h>
13302 #endif
13303
13304 #include <stdio.h>
13305
13306 #ifdef RTLD_GLOBAL
13307 #  define LT_DLGLOBAL           RTLD_GLOBAL
13308 #else
13309 #  ifdef DL_GLOBAL
13310 #    define LT_DLGLOBAL         DL_GLOBAL
13311 #  else
13312 #    define LT_DLGLOBAL         0
13313 #  endif
13314 #endif
13315
13316 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13317    find out it does not work in some platform. */
13318 #ifndef LT_DLLAZY_OR_NOW
13319 #  ifdef RTLD_LAZY
13320 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13321 #  else
13322 #    ifdef DL_LAZY
13323 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13324 #    else
13325 #      ifdef RTLD_NOW
13326 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13327 #      else
13328 #        ifdef DL_NOW
13329 #          define LT_DLLAZY_OR_NOW      DL_NOW
13330 #        else
13331 #          define LT_DLLAZY_OR_NOW      0
13332 #        endif
13333 #      endif
13334 #    endif
13335 #  endif
13336 #endif
13337
13338 #ifdef __cplusplus
13339 extern "C" void exit (int);
13340 #endif
13341
13342 void fnord() { int i=42;}
13343 int main ()
13344 {
13345   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13346   int status = $lt_dlunknown;
13347
13348   if (self)
13349     {
13350       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13351       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13352       /* dlclose (self); */
13353     }
13354
13355     exit (status);
13356 }
13357 EOF
13358   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13359   (eval $ac_link) 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13363     (./conftest; exit; ) 2>/dev/null
13364     lt_status=$?
13365     case x$lt_status in
13366       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13367       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13368       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13369     esac
13370   else :
13371     # compilation failed
13372     lt_cv_dlopen_self_static=no
13373   fi
13374 fi
13375 rm -fr conftest*
13376
13377
13378 fi
13379 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13380 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13381     fi
13382
13383     CPPFLAGS="$save_CPPFLAGS"
13384     LDFLAGS="$save_LDFLAGS"
13385     LIBS="$save_LIBS"
13386     ;;
13387   esac
13388
13389   case $lt_cv_dlopen_self in
13390   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13391   *) enable_dlopen_self=unknown ;;
13392   esac
13393
13394   case $lt_cv_dlopen_self_static in
13395   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13396   *) enable_dlopen_self_static=unknown ;;
13397   esac
13398 fi
13399
13400
13401 # The else clause should only fire when bootstrapping the
13402 # libtool distribution, otherwise you forgot to ship ltmain.sh
13403 # with your package, and you will get complaints that there are
13404 # no rules to generate ltmain.sh.
13405 if test -f "$ltmain"; then
13406   # See if we are running on zsh, and set the options which allow our commands through
13407   # without removal of \ escapes.
13408   if test -n "${ZSH_VERSION+set}" ; then
13409     setopt NO_GLOB_SUBST
13410   fi
13411   # Now quote all the things that may contain metacharacters while being
13412   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13413   # variables and quote the copies for generation of the libtool script.
13414   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13415     SED SHELL STRIP \
13416     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13417     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13418     deplibs_check_method reload_flag reload_cmds need_locks \
13419     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13420     lt_cv_sys_global_symbol_to_c_name_address \
13421     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13422     old_postinstall_cmds old_postuninstall_cmds \
13423     compiler_CXX \
13424     CC_CXX \
13425     LD_CXX \
13426     lt_prog_compiler_wl_CXX \
13427     lt_prog_compiler_pic_CXX \
13428     lt_prog_compiler_static_CXX \
13429     lt_prog_compiler_no_builtin_flag_CXX \
13430     export_dynamic_flag_spec_CXX \
13431     thread_safe_flag_spec_CXX \
13432     whole_archive_flag_spec_CXX \
13433     enable_shared_with_static_runtimes_CXX \
13434     old_archive_cmds_CXX \
13435     old_archive_from_new_cmds_CXX \
13436     predep_objects_CXX \
13437     postdep_objects_CXX \
13438     predeps_CXX \
13439     postdeps_CXX \
13440     compiler_lib_search_path_CXX \
13441     archive_cmds_CXX \
13442     archive_expsym_cmds_CXX \
13443     postinstall_cmds_CXX \
13444     postuninstall_cmds_CXX \
13445     old_archive_from_expsyms_cmds_CXX \
13446     allow_undefined_flag_CXX \
13447     no_undefined_flag_CXX \
13448     export_symbols_cmds_CXX \
13449     hardcode_libdir_flag_spec_CXX \
13450     hardcode_libdir_flag_spec_ld_CXX \
13451     hardcode_libdir_separator_CXX \
13452     hardcode_automatic_CXX \
13453     module_cmds_CXX \
13454     module_expsym_cmds_CXX \
13455     lt_cv_prog_compiler_c_o_CXX \
13456     exclude_expsyms_CXX \
13457     include_expsyms_CXX; do
13458
13459     case $var in
13460     old_archive_cmds_CXX | \
13461     old_archive_from_new_cmds_CXX | \
13462     archive_cmds_CXX | \
13463     archive_expsym_cmds_CXX | \
13464     module_cmds_CXX | \
13465     module_expsym_cmds_CXX | \
13466     old_archive_from_expsyms_cmds_CXX | \
13467     export_symbols_cmds_CXX | \
13468     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13469     postinstall_cmds | postuninstall_cmds | \
13470     old_postinstall_cmds | old_postuninstall_cmds | \
13471     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13472       # Double-quote double-evaled strings.
13473       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13474       ;;
13475     *)
13476       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13477       ;;
13478     esac
13479   done
13480
13481   case $lt_echo in
13482   *'\$0 --fallback-echo"')
13483     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13484     ;;
13485   esac
13486
13487 cfgfile="$ofile"
13488
13489   cat <<__EOF__ >> "$cfgfile"
13490 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13491
13492 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13493
13494 # Shell to use when invoking shell scripts.
13495 SHELL=$lt_SHELL
13496
13497 # Whether or not to build shared libraries.
13498 build_libtool_libs=$enable_shared
13499
13500 # Whether or not to build static libraries.
13501 build_old_libs=$enable_static
13502
13503 # Whether or not to add -lc for building shared libraries.
13504 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13505
13506 # Whether or not to disallow shared libs when runtime libs are static
13507 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13508
13509 # Whether or not to optimize for fast installation.
13510 fast_install=$enable_fast_install
13511
13512 # The host system.
13513 host_alias=$host_alias
13514 host=$host
13515 host_os=$host_os
13516
13517 # The build system.
13518 build_alias=$build_alias
13519 build=$build
13520 build_os=$build_os
13521
13522 # An echo program that does not interpret backslashes.
13523 echo=$lt_echo
13524
13525 # The archiver.
13526 AR=$lt_AR
13527 AR_FLAGS=$lt_AR_FLAGS
13528
13529 # A C compiler.
13530 LTCC=$lt_LTCC
13531
13532 # A language-specific compiler.
13533 CC=$lt_compiler_CXX
13534
13535 # Is the compiler the GNU C compiler?
13536 with_gcc=$GCC_CXX
13537
13538 # An ERE matcher.
13539 EGREP=$lt_EGREP
13540
13541 # The linker used to build libraries.
13542 LD=$lt_LD_CXX
13543
13544 # Whether we need hard or soft links.
13545 LN_S=$lt_LN_S
13546
13547 # A BSD-compatible nm program.
13548 NM=$lt_NM
13549
13550 # A symbol stripping program
13551 STRIP=$lt_STRIP
13552
13553 # Used to examine libraries when file_magic_cmd begins "file"
13554 MAGIC_CMD=$MAGIC_CMD
13555
13556 # Used on cygwin: DLL creation program.
13557 DLLTOOL="$DLLTOOL"
13558
13559 # Used on cygwin: object dumper.
13560 OBJDUMP="$OBJDUMP"
13561
13562 # Used on cygwin: assembler.
13563 AS="$AS"
13564
13565 # The name of the directory that contains temporary libtool files.
13566 objdir=$objdir
13567
13568 # How to create reloadable object files.
13569 reload_flag=$lt_reload_flag
13570 reload_cmds=$lt_reload_cmds
13571
13572 # How to pass a linker flag through the compiler.
13573 wl=$lt_lt_prog_compiler_wl_CXX
13574
13575 # Object file suffix (normally "o").
13576 objext="$ac_objext"
13577
13578 # Old archive suffix (normally "a").
13579 libext="$libext"
13580
13581 # Shared library suffix (normally ".so").
13582 shrext_cmds='$shrext_cmds'
13583
13584 # Executable file suffix (normally "").
13585 exeext="$exeext"
13586
13587 # Additional compiler flags for building library objects.
13588 pic_flag=$lt_lt_prog_compiler_pic_CXX
13589 pic_mode=$pic_mode
13590
13591 # What is the maximum length of a command?
13592 max_cmd_len=$lt_cv_sys_max_cmd_len
13593
13594 # Does compiler simultaneously support -c and -o options?
13595 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13596
13597 # Must we lock files when doing compilation?
13598 need_locks=$lt_need_locks
13599
13600 # Do we need the lib prefix for modules?
13601 need_lib_prefix=$need_lib_prefix
13602
13603 # Do we need a version for libraries?
13604 need_version=$need_version
13605
13606 # Whether dlopen is supported.
13607 dlopen_support=$enable_dlopen
13608
13609 # Whether dlopen of programs is supported.
13610 dlopen_self=$enable_dlopen_self
13611
13612 # Whether dlopen of statically linked programs is supported.
13613 dlopen_self_static=$enable_dlopen_self_static
13614
13615 # Compiler flag to prevent dynamic linking.
13616 link_static_flag=$lt_lt_prog_compiler_static_CXX
13617
13618 # Compiler flag to turn off builtin functions.
13619 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13620
13621 # Compiler flag to allow reflexive dlopens.
13622 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13623
13624 # Compiler flag to generate shared objects directly from archives.
13625 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13626
13627 # Compiler flag to generate thread-safe objects.
13628 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13629
13630 # Library versioning type.
13631 version_type=$version_type
13632
13633 # Format of library name prefix.
13634 libname_spec=$lt_libname_spec
13635
13636 # List of archive names.  First name is the real one, the rest are links.
13637 # The last name is the one that the linker finds with -lNAME.
13638 library_names_spec=$lt_library_names_spec
13639
13640 # The coded name of the library, if different from the real name.
13641 soname_spec=$lt_soname_spec
13642
13643 # Commands used to build and install an old-style archive.
13644 RANLIB=$lt_RANLIB
13645 old_archive_cmds=$lt_old_archive_cmds_CXX
13646 old_postinstall_cmds=$lt_old_postinstall_cmds
13647 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13648
13649 # Create an old-style archive from a shared archive.
13650 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13651
13652 # Create a temporary old-style archive to link instead of a shared archive.
13653 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13654
13655 # Commands used to build and install a shared archive.
13656 archive_cmds=$lt_archive_cmds_CXX
13657 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13658 postinstall_cmds=$lt_postinstall_cmds
13659 postuninstall_cmds=$lt_postuninstall_cmds
13660
13661 # Commands used to build a loadable module (assumed same as above if empty)
13662 module_cmds=$lt_module_cmds_CXX
13663 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13664
13665 # Commands to strip libraries.
13666 old_striplib=$lt_old_striplib
13667 striplib=$lt_striplib
13668
13669 # Dependencies to place before the objects being linked to create a
13670 # shared library.
13671 predep_objects=$lt_predep_objects_CXX
13672
13673 # Dependencies to place after the objects being linked to create a
13674 # shared library.
13675 postdep_objects=$lt_postdep_objects_CXX
13676
13677 # Dependencies to place before the objects being linked to create a
13678 # shared library.
13679 predeps=$lt_predeps_CXX
13680
13681 # Dependencies to place after the objects being linked to create a
13682 # shared library.
13683 postdeps=$lt_postdeps_CXX
13684
13685 # The library search path used internally by the compiler when linking
13686 # a shared library.
13687 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13688
13689 # Method to check whether dependent libraries are shared objects.
13690 deplibs_check_method=$lt_deplibs_check_method
13691
13692 # Command to use when deplibs_check_method == file_magic.
13693 file_magic_cmd=$lt_file_magic_cmd
13694
13695 # Flag that allows shared libraries with undefined symbols to be built.
13696 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13697
13698 # Flag that forces no undefined symbols.
13699 no_undefined_flag=$lt_no_undefined_flag_CXX
13700
13701 # Commands used to finish a libtool library installation in a directory.
13702 finish_cmds=$lt_finish_cmds
13703
13704 # Same as above, but a single script fragment to be evaled but not shown.
13705 finish_eval=$lt_finish_eval
13706
13707 # Take the output of nm and produce a listing of raw symbols and C names.
13708 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13709
13710 # Transform the output of nm in a proper C declaration
13711 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13712
13713 # Transform the output of nm in a C name address pair
13714 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13715
13716 # This is the shared library runtime path variable.
13717 runpath_var=$runpath_var
13718
13719 # This is the shared library path variable.
13720 shlibpath_var=$shlibpath_var
13721
13722 # Is shlibpath searched before the hard-coded library search path?
13723 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13724
13725 # How to hardcode a shared library path into an executable.
13726 hardcode_action=$hardcode_action_CXX
13727
13728 # Whether we should hardcode library paths into libraries.
13729 hardcode_into_libs=$hardcode_into_libs
13730
13731 # Flag to hardcode \$libdir into a binary during linking.
13732 # This must work even if \$libdir does not exist.
13733 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13734
13735 # If ld is used when linking, flag to hardcode \$libdir into
13736 # a binary during linking. This must work even if \$libdir does
13737 # not exist.
13738 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13739
13740 # Whether we need a single -rpath flag with a separated argument.
13741 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13742
13743 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13744 # resulting binary.
13745 hardcode_direct=$hardcode_direct_CXX
13746
13747 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13748 # resulting binary.
13749 hardcode_minus_L=$hardcode_minus_L_CXX
13750
13751 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13752 # the resulting binary.
13753 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13754
13755 # Set to yes if building a shared library automatically hardcodes DIR into the library
13756 # and all subsequent libraries and executables linked against it.
13757 hardcode_automatic=$hardcode_automatic_CXX
13758
13759 # Variables whose values should be saved in libtool wrapper scripts and
13760 # restored at relink time.
13761 variables_saved_for_relink="$variables_saved_for_relink"
13762
13763 # Whether libtool must link a program against all its dependency libraries.
13764 link_all_deplibs=$link_all_deplibs_CXX
13765
13766 # Compile-time system search path for libraries
13767 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13768
13769 # Run-time system search path for libraries
13770 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13771
13772 # Fix the shell variable \$srcfile for the compiler.
13773 fix_srcfile_path="$fix_srcfile_path_CXX"
13774
13775 # Set to yes if exported symbols are required.
13776 always_export_symbols=$always_export_symbols_CXX
13777
13778 # The commands to list exported symbols.
13779 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13780
13781 # The commands to extract the exported symbol list from a shared archive.
13782 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13783
13784 # Symbols that should not be listed in the preloaded symbols.
13785 exclude_expsyms=$lt_exclude_expsyms_CXX
13786
13787 # Symbols that must always be exported.
13788 include_expsyms=$lt_include_expsyms_CXX
13789
13790 # ### END LIBTOOL TAG CONFIG: $tagname
13791
13792 __EOF__
13793
13794
13795 else
13796   # If there is no Makefile yet, we rely on a make rule to execute
13797   # `config.status --recheck' to rerun these tests and create the
13798   # libtool script then.
13799   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13800   if test -f "$ltmain_in"; then
13801     test -f Makefile && make "$ltmain"
13802   fi
13803 fi
13804
13805
13806 ac_ext=c
13807 ac_cpp='$CPP $CPPFLAGS'
13808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13811
13812 CC=$lt_save_CC
13813 LDCXX=$LD
13814 LD=$lt_save_LD
13815 GCC=$lt_save_GCC
13816 with_gnu_ldcxx=$with_gnu_ld
13817 with_gnu_ld=$lt_save_with_gnu_ld
13818 lt_cv_path_LDCXX=$lt_cv_path_LD
13819 lt_cv_path_LD=$lt_save_path_LD
13820 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13821 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13822
13823         else
13824           tagname=""
13825         fi
13826         ;;
13827
13828       F77)
13829         if test -n "$F77" && test "X$F77" != "Xno"; then
13830
13831 ac_ext=f
13832 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13833 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13834 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13835
13836
13837 archive_cmds_need_lc_F77=no
13838 allow_undefined_flag_F77=
13839 always_export_symbols_F77=no
13840 archive_expsym_cmds_F77=
13841 export_dynamic_flag_spec_F77=
13842 hardcode_direct_F77=no
13843 hardcode_libdir_flag_spec_F77=
13844 hardcode_libdir_flag_spec_ld_F77=
13845 hardcode_libdir_separator_F77=
13846 hardcode_minus_L_F77=no
13847 hardcode_automatic_F77=no
13848 module_cmds_F77=
13849 module_expsym_cmds_F77=
13850 link_all_deplibs_F77=unknown
13851 old_archive_cmds_F77=$old_archive_cmds
13852 no_undefined_flag_F77=
13853 whole_archive_flag_spec_F77=
13854 enable_shared_with_static_runtimes_F77=no
13855
13856 # Source file extension for f77 test sources.
13857 ac_ext=f
13858
13859 # Object file extension for compiled f77 test sources.
13860 objext=o
13861 objext_F77=$objext
13862
13863 # Code to be used in simple compile tests
13864 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13865
13866 # Code to be used in simple link tests
13867 lt_simple_link_test_code="      program t\n      end\n"
13868
13869 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13870
13871 # If no C compiler was specified, use CC.
13872 LTCC=${LTCC-"$CC"}
13873
13874 # Allow CC to be a program name with arguments.
13875 compiler=$CC
13876
13877
13878 # save warnings/boilerplate of simple test code
13879 ac_outfile=conftest.$ac_objext
13880 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13882 _lt_compiler_boilerplate=`cat conftest.err`
13883 $rm conftest*
13884
13885 ac_outfile=conftest.$ac_objext
13886 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13888 _lt_linker_boilerplate=`cat conftest.err`
13889 $rm conftest*
13890
13891
13892 # Allow CC to be a program name with arguments.
13893 lt_save_CC="$CC"
13894 CC=${F77-"f77"}
13895 compiler=$CC
13896 compiler_F77=$CC
13897 for cc_temp in $compiler""; do
13898   case $cc_temp in
13899     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13900     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13901     \-*) ;;
13902     *) break;;
13903   esac
13904 done
13905 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13906
13907
13908 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13909 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13910 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13911 echo "${ECHO_T}$can_build_shared" >&6
13912
13913 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13914 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13915 test "$can_build_shared" = "no" && enable_shared=no
13916
13917 # On AIX, shared libraries and static libraries use the same namespace, and
13918 # are all built from PIC.
13919 case "$host_os" in
13920 aix3*)
13921   test "$enable_shared" = yes && enable_static=no
13922   if test -n "$RANLIB"; then
13923     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13924     postinstall_cmds='$RANLIB $lib'
13925   fi
13926   ;;
13927 aix4* | aix5*)
13928   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13929     test "$enable_shared" = yes && enable_static=no
13930   fi
13931   ;;
13932 esac
13933 echo "$as_me:$LINENO: result: $enable_shared" >&5
13934 echo "${ECHO_T}$enable_shared" >&6
13935
13936 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13937 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13938 # Make sure either enable_shared or enable_static is yes.
13939 test "$enable_shared" = yes || enable_static=yes
13940 echo "$as_me:$LINENO: result: $enable_static" >&5
13941 echo "${ECHO_T}$enable_static" >&6
13942
13943 test "$ld_shlibs_F77" = no && can_build_shared=no
13944
13945 GCC_F77="$G77"
13946 LD_F77="$LD"
13947
13948 lt_prog_compiler_wl_F77=
13949 lt_prog_compiler_pic_F77=
13950 lt_prog_compiler_static_F77=
13951
13952 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13953 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13954
13955   if test "$GCC" = yes; then
13956     lt_prog_compiler_wl_F77='-Wl,'
13957     lt_prog_compiler_static_F77='-static'
13958
13959     case $host_os in
13960       aix*)
13961       # All AIX code is PIC.
13962       if test "$host_cpu" = ia64; then
13963         # AIX 5 now supports IA64 processor
13964         lt_prog_compiler_static_F77='-Bstatic'
13965       fi
13966       ;;
13967
13968     amigaos*)
13969       # FIXME: we need at least 68020 code to build shared libraries, but
13970       # adding the `-m68020' flag to GCC prevents building anything better,
13971       # like `-m68040'.
13972       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13973       ;;
13974
13975     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13976       # PIC is the default for these OSes.
13977       ;;
13978
13979     mingw* | pw32* | os2*)
13980       # This hack is so that the source file can tell whether it is being
13981       # built for inclusion in a dll (and should export symbols for example).
13982       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13983       ;;
13984
13985     darwin* | rhapsody*)
13986       # PIC is the default on this platform
13987       # Common symbols not allowed in MH_DYLIB files
13988       lt_prog_compiler_pic_F77='-fno-common'
13989       ;;
13990
13991     msdosdjgpp*)
13992       # Just because we use GCC doesn't mean we suddenly get shared libraries
13993       # on systems that don't support them.
13994       lt_prog_compiler_can_build_shared_F77=no
13995       enable_shared=no
13996       ;;
13997
13998     sysv4*MP*)
13999       if test -d /usr/nec; then
14000         lt_prog_compiler_pic_F77=-Kconform_pic
14001       fi
14002       ;;
14003
14004     hpux*)
14005       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14006       # not for PA HP-UX.
14007       case "$host_cpu" in
14008       hppa*64*|ia64*)
14009         # +Z the default
14010         ;;
14011       *)
14012         lt_prog_compiler_pic_F77='-fPIC'
14013         ;;
14014       esac
14015       ;;
14016
14017     *)
14018       lt_prog_compiler_pic_F77='-fPIC'
14019       ;;
14020     esac
14021   else
14022     # PORTME Check for flag to pass linker flags through the system compiler.
14023     case $host_os in
14024     aix*)
14025       lt_prog_compiler_wl_F77='-Wl,'
14026       if test "$host_cpu" = ia64; then
14027         # AIX 5 now supports IA64 processor
14028         lt_prog_compiler_static_F77='-Bstatic'
14029       else
14030         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14031       fi
14032       ;;
14033       darwin*)
14034         # PIC is the default on this platform
14035         # Common symbols not allowed in MH_DYLIB files
14036        case $cc_basename in
14037          xlc*)
14038          lt_prog_compiler_pic_F77='-qnocommon'
14039          lt_prog_compiler_wl_F77='-Wl,'
14040          ;;
14041        esac
14042        ;;
14043
14044     mingw* | pw32* | os2*)
14045       # This hack is so that the source file can tell whether it is being
14046       # built for inclusion in a dll (and should export symbols for example).
14047       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14048       ;;
14049
14050     hpux9* | hpux10* | hpux11*)
14051       lt_prog_compiler_wl_F77='-Wl,'
14052       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14053       # not for PA HP-UX.
14054       case "$host_cpu" in
14055       hppa*64*|ia64*)
14056         # +Z the default
14057         ;;
14058       *)
14059         lt_prog_compiler_pic_F77='+Z'
14060         ;;
14061       esac
14062       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14063       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14064       ;;
14065
14066     irix5* | irix6* | nonstopux*)
14067       lt_prog_compiler_wl_F77='-Wl,'
14068       # PIC (with -KPIC) is the default.
14069       lt_prog_compiler_static_F77='-non_shared'
14070       ;;
14071
14072     newsos6)
14073       lt_prog_compiler_pic_F77='-KPIC'
14074       lt_prog_compiler_static_F77='-Bstatic'
14075       ;;
14076
14077     linux*)
14078       case $cc_basename in
14079       icc* | ecc*)
14080         lt_prog_compiler_wl_F77='-Wl,'
14081         lt_prog_compiler_pic_F77='-KPIC'
14082         lt_prog_compiler_static_F77='-static'
14083         ;;
14084       pgcc* | pgf77* | pgf90*)
14085         # Portland Group compilers (*not* the Pentium gcc compiler,
14086         # which looks to be a dead project)
14087         lt_prog_compiler_wl_F77='-Wl,'
14088         lt_prog_compiler_pic_F77='-fpic'
14089         lt_prog_compiler_static_F77='-static'
14090         ;;
14091       ccc*)
14092         lt_prog_compiler_wl_F77='-Wl,'
14093         # All Alpha code is PIC.
14094         lt_prog_compiler_static_F77='-non_shared'
14095         ;;
14096       esac
14097       ;;
14098
14099     osf3* | osf4* | osf5*)
14100       lt_prog_compiler_wl_F77='-Wl,'
14101       # All OSF/1 code is PIC.
14102       lt_prog_compiler_static_F77='-non_shared'
14103       ;;
14104
14105     sco3.2v5*)
14106       lt_prog_compiler_pic_F77='-Kpic'
14107       lt_prog_compiler_static_F77='-dn'
14108       ;;
14109
14110     solaris*)
14111       lt_prog_compiler_pic_F77='-KPIC'
14112       lt_prog_compiler_static_F77='-Bstatic'
14113       case $cc_basename in
14114       f77* | f90* | f95*)
14115         lt_prog_compiler_wl_F77='-Qoption ld ';;
14116       *)
14117         lt_prog_compiler_wl_F77='-Wl,';;
14118       esac
14119       ;;
14120
14121     sunos4*)
14122       lt_prog_compiler_wl_F77='-Qoption ld '
14123       lt_prog_compiler_pic_F77='-PIC'
14124       lt_prog_compiler_static_F77='-Bstatic'
14125       ;;
14126
14127     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14128       lt_prog_compiler_wl_F77='-Wl,'
14129       lt_prog_compiler_pic_F77='-KPIC'
14130       lt_prog_compiler_static_F77='-Bstatic'
14131       ;;
14132
14133     sysv4*MP*)
14134       if test -d /usr/nec ;then
14135         lt_prog_compiler_pic_F77='-Kconform_pic'
14136         lt_prog_compiler_static_F77='-Bstatic'
14137       fi
14138       ;;
14139
14140     unicos*)
14141       lt_prog_compiler_wl_F77='-Wl,'
14142       lt_prog_compiler_can_build_shared_F77=no
14143       ;;
14144
14145     uts4*)
14146       lt_prog_compiler_pic_F77='-pic'
14147       lt_prog_compiler_static_F77='-Bstatic'
14148       ;;
14149
14150     *)
14151       lt_prog_compiler_can_build_shared_F77=no
14152       ;;
14153     esac
14154   fi
14155
14156 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14157 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14158
14159 #
14160 # Check to make sure the PIC flag actually works.
14161 #
14162 if test -n "$lt_prog_compiler_pic_F77"; then
14163
14164 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14165 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14166 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14167   echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169   lt_prog_compiler_pic_works_F77=no
14170   ac_outfile=conftest.$ac_objext
14171    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14172    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14173    # Insert the option either (1) after the last *FLAGS variable, or
14174    # (2) before a word containing "conftest.", or (3) at the end.
14175    # Note that $ac_compile itself does not contain backslashes and begins
14176    # with a dollar sign (not a hyphen), so the echo should work correctly.
14177    # The option is referenced via a variable to avoid confusing sed.
14178    lt_compile=`echo "$ac_compile" | $SED \
14179    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14180    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14181    -e 's:$: $lt_compiler_flag:'`
14182    (eval echo "\"\$as_me:14182: $lt_compile\"" >&5)
14183    (eval "$lt_compile" 2>conftest.err)
14184    ac_status=$?
14185    cat conftest.err >&5
14186    echo "$as_me:14186: \$? = $ac_status" >&5
14187    if (exit $ac_status) && test -s "$ac_outfile"; then
14188      # The compiler can only warn and ignore the option if not recognized
14189      # So say no if there are warnings other than the usual output.
14190      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14191      $SED '/^$/d' conftest.err >conftest.er2
14192      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14193        lt_prog_compiler_pic_works_F77=yes
14194      fi
14195    fi
14196    $rm conftest*
14197
14198 fi
14199 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14200 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14201
14202 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14203     case $lt_prog_compiler_pic_F77 in
14204      "" | " "*) ;;
14205      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14206      esac
14207 else
14208     lt_prog_compiler_pic_F77=
14209      lt_prog_compiler_can_build_shared_F77=no
14210 fi
14211
14212 fi
14213 case "$host_os" in
14214   # For platforms which do not support PIC, -DPIC is meaningless:
14215   *djgpp*)
14216     lt_prog_compiler_pic_F77=
14217     ;;
14218   *)
14219     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14220     ;;
14221 esac
14222
14223 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14224 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14225 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14226   echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228   lt_cv_prog_compiler_c_o_F77=no
14229    $rm -r conftest 2>/dev/null
14230    mkdir conftest
14231    cd conftest
14232    mkdir out
14233    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14234
14235    lt_compiler_flag="-o out/conftest2.$ac_objext"
14236    # Insert the option either (1) after the last *FLAGS variable, or
14237    # (2) before a word containing "conftest.", or (3) at the end.
14238    # Note that $ac_compile itself does not contain backslashes and begins
14239    # with a dollar sign (not a hyphen), so the echo should work correctly.
14240    lt_compile=`echo "$ac_compile" | $SED \
14241    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14242    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14243    -e 's:$: $lt_compiler_flag:'`
14244    (eval echo "\"\$as_me:14244: $lt_compile\"" >&5)
14245    (eval "$lt_compile" 2>out/conftest.err)
14246    ac_status=$?
14247    cat out/conftest.err >&5
14248    echo "$as_me:14248: \$? = $ac_status" >&5
14249    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14250    then
14251      # The compiler can only warn and ignore the option if not recognized
14252      # So say no if there are warnings
14253      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14254      $SED '/^$/d' out/conftest.err >out/conftest.er2
14255      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14256        lt_cv_prog_compiler_c_o_F77=yes
14257      fi
14258    fi
14259    chmod u+w .
14260    $rm conftest*
14261    # SGI C++ compiler will create directory out/ii_files/ for
14262    # template instantiation
14263    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14264    $rm out/* && rmdir out
14265    cd ..
14266    rmdir conftest
14267    $rm conftest*
14268
14269 fi
14270 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14271 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14272
14273
14274 hard_links="nottested"
14275 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14276   # do not overwrite the value of need_locks provided by the user
14277   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14278 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14279   hard_links=yes
14280   $rm conftest*
14281   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14282   touch conftest.a
14283   ln conftest.a conftest.b 2>&5 || hard_links=no
14284   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14285   echo "$as_me:$LINENO: result: $hard_links" >&5
14286 echo "${ECHO_T}$hard_links" >&6
14287   if test "$hard_links" = no; then
14288     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14289 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14290     need_locks=warn
14291   fi
14292 else
14293   need_locks=no
14294 fi
14295
14296 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14297 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14298
14299   runpath_var=
14300   allow_undefined_flag_F77=
14301   enable_shared_with_static_runtimes_F77=no
14302   archive_cmds_F77=
14303   archive_expsym_cmds_F77=
14304   old_archive_From_new_cmds_F77=
14305   old_archive_from_expsyms_cmds_F77=
14306   export_dynamic_flag_spec_F77=
14307   whole_archive_flag_spec_F77=
14308   thread_safe_flag_spec_F77=
14309   hardcode_libdir_flag_spec_F77=
14310   hardcode_libdir_flag_spec_ld_F77=
14311   hardcode_libdir_separator_F77=
14312   hardcode_direct_F77=no
14313   hardcode_minus_L_F77=no
14314   hardcode_shlibpath_var_F77=unsupported
14315   link_all_deplibs_F77=unknown
14316   hardcode_automatic_F77=no
14317   module_cmds_F77=
14318   module_expsym_cmds_F77=
14319   always_export_symbols_F77=no
14320   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14321   # include_expsyms should be a list of space-separated symbols to be *always*
14322   # included in the symbol list
14323   include_expsyms_F77=
14324   # exclude_expsyms can be an extended regexp of symbols to exclude
14325   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14326   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14327   # as well as any symbol that contains `d'.
14328   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14329   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14330   # platforms (ab)use it in PIC code, but their linkers get confused if
14331   # the symbol is explicitly referenced.  Since portable code cannot
14332   # rely on this symbol name, it's probably fine to never include it in
14333   # preloaded symbol tables.
14334   extract_expsyms_cmds=
14335   # Just being paranoid about ensuring that cc_basename is set.
14336   for cc_temp in $compiler""; do
14337   case $cc_temp in
14338     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14339     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14340     \-*) ;;
14341     *) break;;
14342   esac
14343 done
14344 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14345
14346   case $host_os in
14347   cygwin* | mingw* | pw32*)
14348     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14349     # When not using gcc, we currently assume that we are using
14350     # Microsoft Visual C++.
14351     if test "$GCC" != yes; then
14352       with_gnu_ld=no
14353     fi
14354     ;;
14355   openbsd*)
14356     with_gnu_ld=no
14357     ;;
14358   esac
14359
14360   ld_shlibs_F77=yes
14361   if test "$with_gnu_ld" = yes; then
14362     # If archive_cmds runs LD, not CC, wlarc should be empty
14363     wlarc='${wl}'
14364
14365     # Set some defaults for GNU ld with shared library support. These
14366     # are reset later if shared libraries are not supported. Putting them
14367     # here allows them to be overridden if necessary.
14368     runpath_var=LD_RUN_PATH
14369     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14370     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14371     # ancient GNU ld didn't support --whole-archive et. al.
14372     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14373         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14374       else
14375         whole_archive_flag_spec_F77=
14376     fi
14377     supports_anon_versioning=no
14378     case `$LD -v 2>/dev/null` in
14379       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14380       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14381       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14382       *\ 2.11.*) ;; # other 2.11 versions
14383       *) supports_anon_versioning=yes ;;
14384     esac
14385
14386     # See if GNU ld supports shared libraries.
14387     case $host_os in
14388     aix3* | aix4* | aix5*)
14389       # On AIX/PPC, the GNU linker is very broken
14390       if test "$host_cpu" != ia64; then
14391         ld_shlibs_F77=no
14392         cat <<EOF 1>&2
14393
14394 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14395 *** to be unable to reliably create shared libraries on AIX.
14396 *** Therefore, libtool is disabling shared libraries support.  If you
14397 *** really care for shared libraries, you may want to modify your PATH
14398 *** so that a non-GNU linker is found, and then restart.
14399
14400 EOF
14401       fi
14402       ;;
14403
14404     amigaos*)
14405       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)'
14406       hardcode_libdir_flag_spec_F77='-L$libdir'
14407       hardcode_minus_L_F77=yes
14408
14409       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14410       # that the semantics of dynamic libraries on AmigaOS, at least up
14411       # to version 4, is to share data among multiple programs linked
14412       # with the same dynamic library.  Since this doesn't match the
14413       # behavior of shared libraries on other platforms, we can't use
14414       # them.
14415       ld_shlibs_F77=no
14416       ;;
14417
14418     beos*)
14419       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14420         allow_undefined_flag_F77=unsupported
14421         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14422         # support --undefined.  This deserves some investigation.  FIXME
14423         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14424       else
14425         ld_shlibs_F77=no
14426       fi
14427       ;;
14428
14429     cygwin* | mingw* | pw32*)
14430       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14431       # as there is no search path for DLLs.
14432       hardcode_libdir_flag_spec_F77='-L$libdir'
14433       allow_undefined_flag_F77=unsupported
14434       always_export_symbols_F77=no
14435       enable_shared_with_static_runtimes_F77=yes
14436       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14437
14438       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14439         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14440         # If the export-symbols file already is a .def file (1st line
14441         # is EXPORTS), use it as is; otherwise, prepend...
14442         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14443           cp $export_symbols $output_objdir/$soname.def;
14444         else
14445           echo EXPORTS > $output_objdir/$soname.def;
14446           cat $export_symbols >> $output_objdir/$soname.def;
14447         fi~
14448         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14449       else
14450         ld_shlibs_F77=no
14451       fi
14452       ;;
14453
14454     linux*)
14455       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14456         tmp_addflag=
14457         case $cc_basename,$host_cpu in
14458         pgcc*)                          # Portland Group C compiler
14459           whole_archive_flag_spec_F77=
14460           ;;
14461         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
14462           whole_archive_flag_spec_F77=
14463           tmp_addflag=' -fpic -Mnomain' ;;
14464         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14465           tmp_addflag=' -i_dynamic' ;;
14466         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14467           tmp_addflag=' -i_dynamic -nofor_main' ;;
14468         ifc* | ifort*)                  # Intel Fortran compiler
14469           tmp_addflag=' -nofor_main' ;;
14470         esac
14471         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14472
14473         if test $supports_anon_versioning = yes; then
14474           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14475   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14476   $echo "local: *; };" >> $output_objdir/$libname.ver~
14477           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14478         fi
14479       else
14480         ld_shlibs_F77=no
14481       fi
14482       ;;
14483
14484     netbsd*)
14485       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14486         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14487         wlarc=
14488       else
14489         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14490         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14491       fi
14492       ;;
14493
14494     solaris* | sysv5*)
14495       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14496         ld_shlibs_F77=no
14497         cat <<EOF 1>&2
14498
14499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14500 *** create shared libraries on Solaris systems.  Therefore, libtool
14501 *** is disabling shared libraries support.  We urge you to upgrade GNU
14502 *** binutils to release 2.9.1 or newer.  Another option is to modify
14503 *** your PATH or compiler configuration so that the native linker is
14504 *** used, and then restart.
14505
14506 EOF
14507       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14508         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14509         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14510       else
14511         ld_shlibs_F77=no
14512       fi
14513       ;;
14514
14515     sunos4*)
14516       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14517       wlarc=
14518       hardcode_direct_F77=yes
14519       hardcode_shlibpath_var_F77=no
14520       ;;
14521
14522     *)
14523       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14524         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14525         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14526       else
14527         ld_shlibs_F77=no
14528       fi
14529       ;;
14530     esac
14531
14532     if test "$ld_shlibs_F77" = no; then
14533       runpath_var=
14534       hardcode_libdir_flag_spec_F77=
14535       export_dynamic_flag_spec_F77=
14536       whole_archive_flag_spec_F77=
14537     fi
14538   else
14539     # PORTME fill in a description of your system's linker (not GNU ld)
14540     case $host_os in
14541     aix3*)
14542       allow_undefined_flag_F77=unsupported
14543       always_export_symbols_F77=yes
14544       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'
14545       # Note: this linker hardcodes the directories in LIBPATH if there
14546       # are no directories specified by -L.
14547       hardcode_minus_L_F77=yes
14548       if test "$GCC" = yes && test -z "$link_static_flag"; then
14549         # Neither direct hardcoding nor static linking is supported with a
14550         # broken collect2.
14551         hardcode_direct_F77=unsupported
14552       fi
14553       ;;
14554
14555     aix4* | aix5*)
14556       if test "$host_cpu" = ia64; then
14557         # On IA64, the linker does run time linking by default, so we don't
14558         # have to do anything special.
14559         aix_use_runtimelinking=no
14560         exp_sym_flag='-Bexport'
14561         no_entry_flag=""
14562       else
14563         # If we're using GNU nm, then we don't want the "-C" option.
14564         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14565         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14566           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'
14567         else
14568           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'
14569         fi
14570         aix_use_runtimelinking=no
14571
14572         # Test if we are trying to use run time linking or normal
14573         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14574         # need to do runtime linking.
14575         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14576           for ld_flag in $LDFLAGS; do
14577           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14578             aix_use_runtimelinking=yes
14579             break
14580           fi
14581           done
14582         esac
14583
14584         exp_sym_flag='-bexport'
14585         no_entry_flag='-bnoentry'
14586       fi
14587
14588       # When large executables or shared objects are built, AIX ld can
14589       # have problems creating the table of contents.  If linking a library
14590       # or program results in "error TOC overflow" add -mminimal-toc to
14591       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14592       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14593
14594       archive_cmds_F77=''
14595       hardcode_direct_F77=yes
14596       hardcode_libdir_separator_F77=':'
14597       link_all_deplibs_F77=yes
14598
14599       if test "$GCC" = yes; then
14600         case $host_os in aix4.[012]|aix4.[012].*)
14601         # We only want to do this on AIX 4.2 and lower, the check
14602         # below for broken collect2 doesn't work under 4.3+
14603           collect2name=`${CC} -print-prog-name=collect2`
14604           if test -f "$collect2name" && \
14605            strings "$collect2name" | grep resolve_lib_name >/dev/null
14606           then
14607           # We have reworked collect2
14608           hardcode_direct_F77=yes
14609           else
14610           # We have old collect2
14611           hardcode_direct_F77=unsupported
14612           # It fails to find uninstalled libraries when the uninstalled
14613           # path is not listed in the libpath.  Setting hardcode_minus_L
14614           # to unsupported forces relinking
14615           hardcode_minus_L_F77=yes
14616           hardcode_libdir_flag_spec_F77='-L$libdir'
14617           hardcode_libdir_separator_F77=
14618           fi
14619         esac
14620         shared_flag='-shared'
14621         if test "$aix_use_runtimelinking" = yes; then
14622           shared_flag="$shared_flag "'${wl}-G'
14623         fi
14624       else
14625         # not using gcc
14626         if test "$host_cpu" = ia64; then
14627         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14628         # chokes on -Wl,-G. The following line is correct:
14629           shared_flag='-G'
14630         else
14631         if test "$aix_use_runtimelinking" = yes; then
14632             shared_flag='${wl}-G'
14633           else
14634             shared_flag='${wl}-bM:SRE'
14635         fi
14636         fi
14637       fi
14638
14639       # It seems that -bexpall does not export symbols beginning with
14640       # underscore (_), so it is better to generate a list of symbols to export.
14641       always_export_symbols_F77=yes
14642       if test "$aix_use_runtimelinking" = yes; then
14643         # Warning - without using the other runtime loading flags (-brtl),
14644         # -berok will link without error, but may produce a broken library.
14645         allow_undefined_flag_F77='-berok'
14646        # Determine the default libpath from the value encoded in an empty executable.
14647        cat >conftest.$ac_ext <<_ACEOF
14648       program main
14649
14650       end
14651 _ACEOF
14652 rm -f conftest.$ac_objext conftest$ac_exeext
14653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14654   (eval $ac_link) 2>conftest.er1
14655   ac_status=$?
14656   grep -v '^ *+' conftest.er1 >conftest.err
14657   rm -f conftest.er1
14658   cat conftest.err >&5
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); } &&
14661          { ac_try='test -z "$ac_f77_werror_flag"
14662                          || test ! -s conftest.err'
14663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664   (eval $ac_try) 2>&5
14665   ac_status=$?
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); }; } &&
14668          { ac_try='test -s conftest$ac_exeext'
14669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670   (eval $ac_try) 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); }; }; then
14674
14675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14676 }'`
14677 # Check for a 64-bit object if we didn't find anything.
14678 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; }
14679 }'`; fi
14680 else
14681   echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14683
14684 fi
14685 rm -f conftest.err conftest.$ac_objext \
14686       conftest$ac_exeext conftest.$ac_ext
14687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14688
14689        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14690         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"
14691        else
14692         if test "$host_cpu" = ia64; then
14693           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14694           allow_undefined_flag_F77="-z nodefs"
14695           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"
14696         else
14697          # Determine the default libpath from the value encoded in an empty executable.
14698          cat >conftest.$ac_ext <<_ACEOF
14699       program main
14700
14701       end
14702 _ACEOF
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14705   (eval $ac_link) 2>conftest.er1
14706   ac_status=$?
14707   grep -v '^ *+' conftest.er1 >conftest.err
14708   rm -f conftest.er1
14709   cat conftest.err >&5
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); } &&
14712          { ac_try='test -z "$ac_f77_werror_flag"
14713                          || test ! -s conftest.err'
14714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715   (eval $ac_try) 2>&5
14716   ac_status=$?
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); }; } &&
14719          { ac_try='test -s conftest$ac_exeext'
14720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721   (eval $ac_try) 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); }; }; then
14725
14726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14727 }'`
14728 # Check for a 64-bit object if we didn't find anything.
14729 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; }
14730 }'`; fi
14731 else
14732   echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14734
14735 fi
14736 rm -f conftest.err conftest.$ac_objext \
14737       conftest$ac_exeext conftest.$ac_ext
14738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14739
14740          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14741           # Warning - without using the other run time loading flags,
14742           # -berok will link without error, but may produce a broken library.
14743           no_undefined_flag_F77=' ${wl}-bernotok'
14744           allow_undefined_flag_F77=' ${wl}-berok'
14745           # -bexpall does not export symbols beginning with underscore (_)
14746           always_export_symbols_F77=yes
14747           # Exported symbols can be pulled into shared objects from archives
14748           whole_archive_flag_spec_F77=' '
14749           archive_cmds_need_lc_F77=yes
14750           # This is similar to how AIX traditionally builds it's shared libraries.
14751           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'
14752         fi
14753       fi
14754       ;;
14755
14756     amigaos*)
14757       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)'
14758       hardcode_libdir_flag_spec_F77='-L$libdir'
14759       hardcode_minus_L_F77=yes
14760       # see comment about different semantics on the GNU ld section
14761       ld_shlibs_F77=no
14762       ;;
14763
14764     bsdi[45]*)
14765       export_dynamic_flag_spec_F77=-rdynamic
14766       ;;
14767
14768     cygwin* | mingw* | pw32*)
14769       # When not using gcc, we currently assume that we are using
14770       # Microsoft Visual C++.
14771       # hardcode_libdir_flag_spec is actually meaningless, as there is
14772       # no search path for DLLs.
14773       hardcode_libdir_flag_spec_F77=' '
14774       allow_undefined_flag_F77=unsupported
14775       # Tell ltmain to make .lib files, not .a files.
14776       libext=lib
14777       # Tell ltmain to make .dll files, not .so files.
14778       shrext_cmds=".dll"
14779       # FIXME: Setting linknames here is a bad hack.
14780       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14781       # The linker will automatically build a .lib file if we build a DLL.
14782       old_archive_From_new_cmds_F77='true'
14783       # FIXME: Should let the user specify the lib program.
14784       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14785       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14786       enable_shared_with_static_runtimes_F77=yes
14787       ;;
14788
14789     darwin* | rhapsody*)
14790       case "$host_os" in
14791         rhapsody* | darwin1.[012])
14792          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14793          ;;
14794        *) # Darwin 1.3 on
14795          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14796            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14797          else
14798            case ${MACOSX_DEPLOYMENT_TARGET} in
14799              10.[012])
14800                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14801                ;;
14802              10.*)
14803                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14804                ;;
14805            esac
14806          fi
14807          ;;
14808       esac
14809       archive_cmds_need_lc_F77=no
14810       hardcode_direct_F77=no
14811       hardcode_automatic_F77=yes
14812       hardcode_shlibpath_var_F77=unsupported
14813       whole_archive_flag_spec_F77=''
14814       link_all_deplibs_F77=yes
14815     if test "$GCC" = yes ; then
14816         output_verbose_link_cmd='echo'
14817         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14818       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14819       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14820       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}'
14821       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}'
14822     else
14823       case $cc_basename in
14824         xlc*)
14825          output_verbose_link_cmd='echo'
14826          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14827          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14828           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14829          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}'
14830           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}'
14831           ;;
14832        *)
14833          ld_shlibs_F77=no
14834           ;;
14835       esac
14836     fi
14837       ;;
14838
14839     dgux*)
14840       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14841       hardcode_libdir_flag_spec_F77='-L$libdir'
14842       hardcode_shlibpath_var_F77=no
14843       ;;
14844
14845     freebsd1*)
14846       ld_shlibs_F77=no
14847       ;;
14848
14849     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14850     # support.  Future versions do this automatically, but an explicit c++rt0.o
14851     # does not break anything, and helps significantly (at the cost of a little
14852     # extra space).
14853     freebsd2.2*)
14854       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14855       hardcode_libdir_flag_spec_F77='-R$libdir'
14856       hardcode_direct_F77=yes
14857       hardcode_shlibpath_var_F77=no
14858       ;;
14859
14860     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14861     freebsd2*)
14862       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14863       hardcode_direct_F77=yes
14864       hardcode_minus_L_F77=yes
14865       hardcode_shlibpath_var_F77=no
14866       ;;
14867
14868     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14869     freebsd* | kfreebsd*-gnu | dragonfly*)
14870       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14871       hardcode_libdir_flag_spec_F77='-R$libdir'
14872       hardcode_direct_F77=yes
14873       hardcode_shlibpath_var_F77=no
14874       ;;
14875
14876     hpux9*)
14877       if test "$GCC" = yes; then
14878         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'
14879       else
14880         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'
14881       fi
14882       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14883       hardcode_libdir_separator_F77=:
14884       hardcode_direct_F77=yes
14885
14886       # hardcode_minus_L: Not really in the search PATH,
14887       # but as the default location of the library.
14888       hardcode_minus_L_F77=yes
14889       export_dynamic_flag_spec_F77='${wl}-E'
14890       ;;
14891
14892     hpux10* | hpux11*)
14893       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14894         case "$host_cpu" in
14895         hppa*64*|ia64*)
14896           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14897           ;;
14898         *)
14899           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14900           ;;
14901         esac
14902       else
14903         case "$host_cpu" in
14904         hppa*64*|ia64*)
14905           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14906           ;;
14907         *)
14908           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14909           ;;
14910         esac
14911       fi
14912       if test "$with_gnu_ld" = no; then
14913         case "$host_cpu" in
14914         hppa*64*)
14915           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14916           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14917           hardcode_libdir_separator_F77=:
14918           hardcode_direct_F77=no
14919           hardcode_shlibpath_var_F77=no
14920           ;;
14921         ia64*)
14922           hardcode_libdir_flag_spec_F77='-L$libdir'
14923           hardcode_direct_F77=no
14924           hardcode_shlibpath_var_F77=no
14925
14926           # hardcode_minus_L: Not really in the search PATH,
14927           # but as the default location of the library.
14928           hardcode_minus_L_F77=yes
14929           ;;
14930         *)
14931           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14932           hardcode_libdir_separator_F77=:
14933           hardcode_direct_F77=yes
14934           export_dynamic_flag_spec_F77='${wl}-E'
14935
14936           # hardcode_minus_L: Not really in the search PATH,
14937           # but as the default location of the library.
14938           hardcode_minus_L_F77=yes
14939           ;;
14940         esac
14941       fi
14942       ;;
14943
14944     irix5* | irix6* | nonstopux*)
14945       if test "$GCC" = yes; then
14946         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'
14947       else
14948         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'
14949         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14950       fi
14951       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14952       hardcode_libdir_separator_F77=:
14953       link_all_deplibs_F77=yes
14954       ;;
14955
14956     netbsd*)
14957       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14958         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14959       else
14960         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14961       fi
14962       hardcode_libdir_flag_spec_F77='-R$libdir'
14963       hardcode_direct_F77=yes
14964       hardcode_shlibpath_var_F77=no
14965       ;;
14966
14967     newsos6)
14968       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14969       hardcode_direct_F77=yes
14970       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14971       hardcode_libdir_separator_F77=:
14972       hardcode_shlibpath_var_F77=no
14973       ;;
14974
14975     openbsd*)
14976       hardcode_direct_F77=yes
14977       hardcode_shlibpath_var_F77=no
14978       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14979         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14980         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14981         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14982         export_dynamic_flag_spec_F77='${wl}-E'
14983       else
14984        case $host_os in
14985          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14986            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14987            hardcode_libdir_flag_spec_F77='-R$libdir'
14988            ;;
14989          *)
14990            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14991            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14992            ;;
14993        esac
14994       fi
14995       ;;
14996
14997     os2*)
14998       hardcode_libdir_flag_spec_F77='-L$libdir'
14999       hardcode_minus_L_F77=yes
15000       allow_undefined_flag_F77=unsupported
15001       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'
15002       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15003       ;;
15004
15005     osf3*)
15006       if test "$GCC" = yes; then
15007         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15008         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'
15009       else
15010         allow_undefined_flag_F77=' -expect_unresolved \*'
15011         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'
15012       fi
15013       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15014       hardcode_libdir_separator_F77=:
15015       ;;
15016
15017     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15018       if test "$GCC" = yes; then
15019         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15020         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'
15021         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15022       else
15023         allow_undefined_flag_F77=' -expect_unresolved \*'
15024         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'
15025         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~
15026         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15027
15028         # Both c and cxx compiler support -rpath directly
15029         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15030       fi
15031       hardcode_libdir_separator_F77=:
15032       ;;
15033
15034     sco3.2v5*)
15035       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15036       hardcode_shlibpath_var_F77=no
15037       export_dynamic_flag_spec_F77='${wl}-Bexport'
15038       runpath_var=LD_RUN_PATH
15039       hardcode_runpath_var=yes
15040       ;;
15041
15042     solaris*)
15043       no_undefined_flag_F77=' -z text'
15044       if test "$GCC" = yes; then
15045         wlarc='${wl}'
15046         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15047         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15048           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15049       else
15050         wlarc=''
15051         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15052         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15053         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15054       fi
15055       hardcode_libdir_flag_spec_F77='-R$libdir'
15056       hardcode_shlibpath_var_F77=no
15057       case $host_os in
15058       solaris2.[0-5] | solaris2.[0-5].*) ;;
15059       *)
15060         # The compiler driver will combine linker options so we
15061         # cannot just pass the convience library names through
15062         # without $wl, iff we do not link with $LD.
15063         # Luckily, gcc supports the same syntax we need for Sun Studio.
15064         # Supported since Solaris 2.6 (maybe 2.5.1?)
15065         case $wlarc in
15066         '')
15067           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15068         *)
15069           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15070         esac ;;
15071       esac
15072       link_all_deplibs_F77=yes
15073       ;;
15074
15075     sunos4*)
15076       if test "x$host_vendor" = xsequent; then
15077         # Use $CC to link under sequent, because it throws in some extra .o
15078         # files that make .init and .fini sections work.
15079         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15080       else
15081         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15082       fi
15083       hardcode_libdir_flag_spec_F77='-L$libdir'
15084       hardcode_direct_F77=yes
15085       hardcode_minus_L_F77=yes
15086       hardcode_shlibpath_var_F77=no
15087       ;;
15088
15089     sysv4)
15090       case $host_vendor in
15091         sni)
15092           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15093           hardcode_direct_F77=yes # is this really true???
15094         ;;
15095         siemens)
15096           ## LD is ld it makes a PLAMLIB
15097           ## CC just makes a GrossModule.
15098           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15099           reload_cmds_F77='$CC -r -o $output$reload_objs'
15100           hardcode_direct_F77=no
15101         ;;
15102         motorola)
15103           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15105         ;;
15106       esac
15107       runpath_var='LD_RUN_PATH'
15108       hardcode_shlibpath_var_F77=no
15109       ;;
15110
15111     sysv4.3*)
15112       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15113       hardcode_shlibpath_var_F77=no
15114       export_dynamic_flag_spec_F77='-Bexport'
15115       ;;
15116
15117     sysv4*MP*)
15118       if test -d /usr/nec; then
15119         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15120         hardcode_shlibpath_var_F77=no
15121         runpath_var=LD_RUN_PATH
15122         hardcode_runpath_var=yes
15123         ld_shlibs_F77=yes
15124       fi
15125       ;;
15126
15127     sysv4.2uw2*)
15128       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15129       hardcode_direct_F77=yes
15130       hardcode_minus_L_F77=no
15131       hardcode_shlibpath_var_F77=no
15132       hardcode_runpath_var=yes
15133       runpath_var=LD_RUN_PATH
15134       ;;
15135
15136    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15137       no_undefined_flag_F77='${wl}-z ${wl}text'
15138       if test "$GCC" = yes; then
15139         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15140       else
15141         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15142       fi
15143       runpath_var='LD_RUN_PATH'
15144       hardcode_shlibpath_var_F77=no
15145       ;;
15146
15147     sysv5*)
15148       no_undefined_flag_F77=' -z text'
15149       # $CC -shared without GNU ld will not create a library from C++
15150       # object files and a static libstdc++, better avoid it by now
15151       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15152       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15153                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15154       hardcode_libdir_flag_spec_F77=
15155       hardcode_shlibpath_var_F77=no
15156       runpath_var='LD_RUN_PATH'
15157       ;;
15158
15159     uts4*)
15160       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15161       hardcode_libdir_flag_spec_F77='-L$libdir'
15162       hardcode_shlibpath_var_F77=no
15163       ;;
15164
15165     *)
15166       ld_shlibs_F77=no
15167       ;;
15168     esac
15169   fi
15170
15171 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15172 echo "${ECHO_T}$ld_shlibs_F77" >&6
15173 test "$ld_shlibs_F77" = no && can_build_shared=no
15174
15175 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15176 if test "$GCC" = yes; then
15177   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15178 fi
15179
15180 #
15181 # Do we need to explicitly link libc?
15182 #
15183 case "x$archive_cmds_need_lc_F77" in
15184 x|xyes)
15185   # Assume -lc should be added
15186   archive_cmds_need_lc_F77=yes
15187
15188   if test "$enable_shared" = yes && test "$GCC" = yes; then
15189     case $archive_cmds_F77 in
15190     *'~'*)
15191       # FIXME: we may have to deal with multi-command sequences.
15192       ;;
15193     '$CC '*)
15194       # Test whether the compiler implicitly links with -lc since on some
15195       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15196       # to ld, don't add -lc before -lgcc.
15197       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15198 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15199       $rm conftest*
15200       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15201
15202       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15203   (eval $ac_compile) 2>&5
15204   ac_status=$?
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); } 2>conftest.err; then
15207         soname=conftest
15208         lib=conftest
15209         libobjs=conftest.$ac_objext
15210         deplibs=
15211         wl=$lt_prog_compiler_wl_F77
15212         compiler_flags=-v
15213         linker_flags=-v
15214         verstring=
15215         output_objdir=.
15216         libname=conftest
15217         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15218         allow_undefined_flag_F77=
15219         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15220   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); }
15224         then
15225           archive_cmds_need_lc_F77=no
15226         else
15227           archive_cmds_need_lc_F77=yes
15228         fi
15229         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15230       else
15231         cat conftest.err 1>&5
15232       fi
15233       $rm conftest*
15234       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15235 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15236       ;;
15237     esac
15238   fi
15239   ;;
15240 esac
15241
15242 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15243 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15244 library_names_spec=
15245 libname_spec='lib$name'
15246 soname_spec=
15247 shrext_cmds=".so"
15248 postinstall_cmds=
15249 postuninstall_cmds=
15250 finish_cmds=
15251 finish_eval=
15252 shlibpath_var=
15253 shlibpath_overrides_runpath=unknown
15254 version_type=none
15255 dynamic_linker="$host_os ld.so"
15256 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15257 if test "$GCC" = yes; then
15258   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15259   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15260     # if the path contains ";" then we assume it to be the separator
15261     # otherwise default to the standard path separator (i.e. ":") - it is
15262     # assumed that no part of a normal pathname contains ";" but that should
15263     # okay in the real world where ";" in dirpaths is itself problematic.
15264     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15265   else
15266     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15267   fi
15268 else
15269   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15270 fi
15271 need_lib_prefix=unknown
15272 hardcode_into_libs=no
15273
15274 # when you set need_version to no, make sure it does not cause -set_version
15275 # flags to be left without arguments
15276 need_version=unknown
15277
15278 case $host_os in
15279 aix3*)
15280   version_type=linux
15281   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15282   shlibpath_var=LIBPATH
15283
15284   # AIX 3 has no versioning support, so we append a major version to the name.
15285   soname_spec='${libname}${release}${shared_ext}$major'
15286   ;;
15287
15288 aix4* | aix5*)
15289   version_type=linux
15290   need_lib_prefix=no
15291   need_version=no
15292   hardcode_into_libs=yes
15293   if test "$host_cpu" = ia64; then
15294     # AIX 5 supports IA64
15295     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15296     shlibpath_var=LD_LIBRARY_PATH
15297   else
15298     # With GCC up to 2.95.x, collect2 would create an import file
15299     # for dependence libraries.  The import file would start with
15300     # the line `#! .'.  This would cause the generated library to
15301     # depend on `.', always an invalid library.  This was fixed in
15302     # development snapshots of GCC prior to 3.0.
15303     case $host_os in
15304       aix4 | aix4.[01] | aix4.[01].*)
15305       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15306            echo ' yes '
15307            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15308         :
15309       else
15310         can_build_shared=no
15311       fi
15312       ;;
15313     esac
15314     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15315     # soname into executable. Probably we can add versioning support to
15316     # collect2, so additional links can be useful in future.
15317     if test "$aix_use_runtimelinking" = yes; then
15318       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15319       # instead of lib<name>.a to let people know that these are not
15320       # typical AIX shared libraries.
15321       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15322     else
15323       # We preserve .a as extension for shared libraries through AIX4.2
15324       # and later when we are not doing run time linking.
15325       library_names_spec='${libname}${release}.a $libname.a'
15326       soname_spec='${libname}${release}${shared_ext}$major'
15327     fi
15328     shlibpath_var=LIBPATH
15329   fi
15330   ;;
15331
15332 amigaos*)
15333   library_names_spec='$libname.ixlibrary $libname.a'
15334   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15335   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'
15336   ;;
15337
15338 beos*)
15339   library_names_spec='${libname}${shared_ext}'
15340   dynamic_linker="$host_os ld.so"
15341   shlibpath_var=LIBRARY_PATH
15342   ;;
15343
15344 bsdi[45]*)
15345   version_type=linux
15346   need_version=no
15347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348   soname_spec='${libname}${release}${shared_ext}$major'
15349   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15350   shlibpath_var=LD_LIBRARY_PATH
15351   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15352   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15353   # the default ld.so.conf also contains /usr/contrib/lib and
15354   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15355   # libtool to hard-code these into programs
15356   ;;
15357
15358 cygwin* | mingw* | pw32*)
15359   version_type=windows
15360   shrext_cmds=".dll"
15361   need_version=no
15362   need_lib_prefix=no
15363
15364   case $GCC,$host_os in
15365   yes,cygwin* | yes,mingw* | yes,pw32*)
15366     library_names_spec='$libname.dll.a'
15367     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15368     postinstall_cmds='base_file=`basename \${file}`~
15369       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15370       dldir=$destdir/`dirname \$dlpath`~
15371       test -d \$dldir || mkdir -p \$dldir~
15372       $install_prog $dir/$dlname \$dldir/$dlname'
15373     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15374       dlpath=$dir/\$dldll~
15375        $rm \$dlpath'
15376     shlibpath_overrides_runpath=yes
15377
15378     case $host_os in
15379     cygwin*)
15380       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15381       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15382       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15383       ;;
15384     mingw*)
15385       # MinGW DLLs use traditional 'lib' prefix
15386       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15387       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15388       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15389         # It is most probably a Windows format PATH printed by
15390         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15391         # path with ; separators, and with drive letters. We can handle the
15392         # drive letters (cygwin fileutils understands them), so leave them,
15393         # especially as we might pass files found there to a mingw objdump,
15394         # which wouldn't understand a cygwinified path. Ahh.
15395         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15396       else
15397         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15398       fi
15399       ;;
15400     pw32*)
15401       # pw32 DLLs use 'pw' prefix rather than 'lib'
15402       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15403       ;;
15404     esac
15405     ;;
15406
15407   *)
15408     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15409     ;;
15410   esac
15411   dynamic_linker='Win32 ld.exe'
15412   # FIXME: first we should search . and the directory the executable is in
15413   shlibpath_var=PATH
15414   ;;
15415
15416 darwin* | rhapsody*)
15417   dynamic_linker="$host_os dyld"
15418   version_type=darwin
15419   need_lib_prefix=no
15420   need_version=no
15421   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15422   soname_spec='${libname}${release}${major}$shared_ext'
15423   shlibpath_overrides_runpath=yes
15424   shlibpath_var=DYLD_LIBRARY_PATH
15425   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15426   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15427   if test "$GCC" = yes; then
15428     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"`
15429   else
15430     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15431   fi
15432   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15433   ;;
15434
15435 dgux*)
15436   version_type=linux
15437   need_lib_prefix=no
15438   need_version=no
15439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15440   soname_spec='${libname}${release}${shared_ext}$major'
15441   shlibpath_var=LD_LIBRARY_PATH
15442   ;;
15443
15444 freebsd1*)
15445   dynamic_linker=no
15446   ;;
15447
15448 kfreebsd*-gnu)
15449   version_type=linux
15450   need_lib_prefix=no
15451   need_version=no
15452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15453   soname_spec='${libname}${release}${shared_ext}$major'
15454   shlibpath_var=LD_LIBRARY_PATH
15455   shlibpath_overrides_runpath=no
15456   hardcode_into_libs=yes
15457   dynamic_linker='GNU ld.so'
15458   ;;
15459
15460 freebsd* | dragonfly*)
15461   # DragonFly does not have aout.  When/if they implement a new
15462   # versioning mechanism, adjust this.
15463   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15464   version_type=freebsd-$objformat
15465   case $version_type in
15466     freebsd-elf*)
15467       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15468       need_version=no
15469       need_lib_prefix=no
15470       ;;
15471     freebsd-*)
15472       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15473       need_version=yes
15474       ;;
15475   esac
15476   shlibpath_var=LD_LIBRARY_PATH
15477   case $host_os in
15478   freebsd2*)
15479     shlibpath_overrides_runpath=yes
15480     ;;
15481   freebsd3.[01]* | freebsdelf3.[01]*)
15482     shlibpath_overrides_runpath=yes
15483     hardcode_into_libs=yes
15484     ;;
15485   *) # from 3.2 on
15486     shlibpath_overrides_runpath=no
15487     hardcode_into_libs=yes
15488     ;;
15489   esac
15490   ;;
15491
15492 gnu*)
15493   version_type=linux
15494   need_lib_prefix=no
15495   need_version=no
15496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15497   soname_spec='${libname}${release}${shared_ext}$major'
15498   shlibpath_var=LD_LIBRARY_PATH
15499   hardcode_into_libs=yes
15500   ;;
15501
15502 hpux9* | hpux10* | hpux11*)
15503   # Give a soname corresponding to the major version so that dld.sl refuses to
15504   # link against other versions.
15505   version_type=sunos
15506   need_lib_prefix=no
15507   need_version=no
15508   case "$host_cpu" in
15509   ia64*)
15510     shrext_cmds='.so'
15511     hardcode_into_libs=yes
15512     dynamic_linker="$host_os dld.so"
15513     shlibpath_var=LD_LIBRARY_PATH
15514     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15515     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516     soname_spec='${libname}${release}${shared_ext}$major'
15517     if test "X$HPUX_IA64_MODE" = X32; then
15518       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15519     else
15520       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15521     fi
15522     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15523     ;;
15524    hppa*64*)
15525      shrext_cmds='.sl'
15526      hardcode_into_libs=yes
15527      dynamic_linker="$host_os dld.sl"
15528      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15529      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15530      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531      soname_spec='${libname}${release}${shared_ext}$major'
15532      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15533      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15534      ;;
15535    *)
15536     shrext_cmds='.sl'
15537     dynamic_linker="$host_os dld.sl"
15538     shlibpath_var=SHLIB_PATH
15539     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15541     soname_spec='${libname}${release}${shared_ext}$major'
15542     ;;
15543   esac
15544   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15545   postinstall_cmds='chmod 555 $lib'
15546   ;;
15547
15548 irix5* | irix6* | nonstopux*)
15549   case $host_os in
15550     nonstopux*) version_type=nonstopux ;;
15551     *)
15552         if test "$lt_cv_prog_gnu_ld" = yes; then
15553                 version_type=linux
15554         else
15555                 version_type=irix
15556         fi ;;
15557   esac
15558   need_lib_prefix=no
15559   need_version=no
15560   soname_spec='${libname}${release}${shared_ext}$major'
15561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15562   case $host_os in
15563   irix5* | nonstopux*)
15564     libsuff= shlibsuff=
15565     ;;
15566   *)
15567     case $LD in # libtool.m4 will add one of these switches to LD
15568     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15569       libsuff= shlibsuff= libmagic=32-bit;;
15570     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15571       libsuff=32 shlibsuff=N32 libmagic=N32;;
15572     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15573       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15574     *) libsuff= shlibsuff= libmagic=never-match;;
15575     esac
15576     ;;
15577   esac
15578   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15579   shlibpath_overrides_runpath=no
15580   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15581   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15582   hardcode_into_libs=yes
15583   ;;
15584
15585 # No shared lib support for Linux oldld, aout, or coff.
15586 linux*oldld* | linux*aout* | linux*coff*)
15587   dynamic_linker=no
15588   ;;
15589
15590 # This must be Linux ELF.
15591 linux*)
15592   version_type=linux
15593   need_lib_prefix=no
15594   need_version=no
15595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596   soname_spec='${libname}${release}${shared_ext}$major'
15597   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15598   shlibpath_var=LD_LIBRARY_PATH
15599   shlibpath_overrides_runpath=no
15600   # This implies no fast_install, which is unacceptable.
15601   # Some rework will be needed to allow for fast_install
15602   # before this can be enabled.
15603   hardcode_into_libs=yes
15604
15605   # find out which ABI we are using
15606   libsuff=
15607   case "$host_cpu" in
15608   x86_64*|s390x*|powerpc64*)
15609     echo '#line 15609 "configure"' > conftest.$ac_ext
15610     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15611   (eval $ac_compile) 2>&5
15612   ac_status=$?
15613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); }; then
15615       case `/usr/bin/file conftest.$ac_objext` in
15616       *64-bit*)
15617         libsuff=64
15618         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15619         ;;
15620       esac
15621     fi
15622     rm -rf conftest*
15623     ;;
15624   esac
15625
15626   # Append ld.so.conf contents to the search path
15627   if test -f /etc/ld.so.conf; then
15628     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15629     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15630   fi
15631
15632   # We used to test for /lib/ld.so.1 and disable shared libraries on
15633   # powerpc, because MkLinux only supported shared libraries with the
15634   # GNU dynamic linker.  Since this was broken with cross compilers,
15635   # most powerpc-linux boxes support dynamic linking these days and
15636   # people can always --disable-shared, the test was removed, and we
15637   # assume the GNU/Linux dynamic linker is in use.
15638   dynamic_linker='GNU/Linux ld.so'
15639   ;;
15640
15641 knetbsd*-gnu)
15642   version_type=linux
15643   need_lib_prefix=no
15644   need_version=no
15645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15646   soname_spec='${libname}${release}${shared_ext}$major'
15647   shlibpath_var=LD_LIBRARY_PATH
15648   shlibpath_overrides_runpath=no
15649   hardcode_into_libs=yes
15650   dynamic_linker='GNU ld.so'
15651   ;;
15652
15653 netbsd*)
15654   version_type=sunos
15655   need_lib_prefix=no
15656   need_version=no
15657   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15660     dynamic_linker='NetBSD (a.out) ld.so'
15661   else
15662     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15663     soname_spec='${libname}${release}${shared_ext}$major'
15664     dynamic_linker='NetBSD ld.elf_so'
15665   fi
15666   shlibpath_var=LD_LIBRARY_PATH
15667   shlibpath_overrides_runpath=yes
15668   hardcode_into_libs=yes
15669   ;;
15670
15671 newsos6)
15672   version_type=linux
15673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674   shlibpath_var=LD_LIBRARY_PATH
15675   shlibpath_overrides_runpath=yes
15676   ;;
15677
15678 nto-qnx*)
15679   version_type=linux
15680   need_lib_prefix=no
15681   need_version=no
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683   soname_spec='${libname}${release}${shared_ext}$major'
15684   shlibpath_var=LD_LIBRARY_PATH
15685   shlibpath_overrides_runpath=yes
15686   ;;
15687
15688 openbsd*)
15689   version_type=sunos
15690   need_lib_prefix=no
15691   need_version=no
15692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15693   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15694   shlibpath_var=LD_LIBRARY_PATH
15695   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15696     case $host_os in
15697       openbsd2.[89] | openbsd2.[89].*)
15698         shlibpath_overrides_runpath=no
15699         ;;
15700       *)
15701         shlibpath_overrides_runpath=yes
15702         ;;
15703       esac
15704   else
15705     shlibpath_overrides_runpath=yes
15706   fi
15707   ;;
15708
15709 os2*)
15710   libname_spec='$name'
15711   shrext_cmds=".dll"
15712   need_lib_prefix=no
15713   library_names_spec='$libname${shared_ext} $libname.a'
15714   dynamic_linker='OS/2 ld.exe'
15715   shlibpath_var=LIBPATH
15716   ;;
15717
15718 osf3* | osf4* | osf5*)
15719   version_type=osf
15720   need_lib_prefix=no
15721   need_version=no
15722   soname_spec='${libname}${release}${shared_ext}$major'
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15726   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15727   ;;
15728
15729 sco3.2v5*)
15730   version_type=osf
15731   soname_spec='${libname}${release}${shared_ext}$major'
15732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15733   shlibpath_var=LD_LIBRARY_PATH
15734   ;;
15735
15736 solaris*)
15737   version_type=linux
15738   need_lib_prefix=no
15739   need_version=no
15740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15741   soname_spec='${libname}${release}${shared_ext}$major'
15742   shlibpath_var=LD_LIBRARY_PATH
15743   shlibpath_overrides_runpath=yes
15744   hardcode_into_libs=yes
15745   # ldd complains unless libraries are executable
15746   postinstall_cmds='chmod +x $lib'
15747   ;;
15748
15749 sunos4*)
15750   version_type=sunos
15751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15752   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15753   shlibpath_var=LD_LIBRARY_PATH
15754   shlibpath_overrides_runpath=yes
15755   if test "$with_gnu_ld" = yes; then
15756     need_lib_prefix=no
15757   fi
15758   need_version=yes
15759   ;;
15760
15761 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15762   version_type=linux
15763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764   soname_spec='${libname}${release}${shared_ext}$major'
15765   shlibpath_var=LD_LIBRARY_PATH
15766   case $host_vendor in
15767     sni)
15768       shlibpath_overrides_runpath=no
15769       need_lib_prefix=no
15770       export_dynamic_flag_spec='${wl}-Blargedynsym'
15771       runpath_var=LD_RUN_PATH
15772       ;;
15773     siemens)
15774       need_lib_prefix=no
15775       ;;
15776     motorola)
15777       need_lib_prefix=no
15778       need_version=no
15779       shlibpath_overrides_runpath=no
15780       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15781       ;;
15782   esac
15783   ;;
15784
15785 sysv4*MP*)
15786   if test -d /usr/nec ;then
15787     version_type=linux
15788     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15789     soname_spec='$libname${shared_ext}.$major'
15790     shlibpath_var=LD_LIBRARY_PATH
15791   fi
15792   ;;
15793
15794 uts4*)
15795   version_type=linux
15796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15797   soname_spec='${libname}${release}${shared_ext}$major'
15798   shlibpath_var=LD_LIBRARY_PATH
15799   ;;
15800
15801 *)
15802   dynamic_linker=no
15803   ;;
15804 esac
15805 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15806 echo "${ECHO_T}$dynamic_linker" >&6
15807 test "$dynamic_linker" = no && can_build_shared=no
15808
15809 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15810 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15811 hardcode_action_F77=
15812 if test -n "$hardcode_libdir_flag_spec_F77" || \
15813    test -n "$runpath_var_F77" || \
15814    test "X$hardcode_automatic_F77" = "Xyes" ; then
15815
15816   # We can hardcode non-existant directories.
15817   if test "$hardcode_direct_F77" != no &&
15818      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15819      # have to relink, otherwise we might link with an installed library
15820      # when we should be linking with a yet-to-be-installed one
15821      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15822      test "$hardcode_minus_L_F77" != no; then
15823     # Linking always hardcodes the temporary library directory.
15824     hardcode_action_F77=relink
15825   else
15826     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15827     hardcode_action_F77=immediate
15828   fi
15829 else
15830   # We cannot hardcode anything, or else we can only hardcode existing
15831   # directories.
15832   hardcode_action_F77=unsupported
15833 fi
15834 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15835 echo "${ECHO_T}$hardcode_action_F77" >&6
15836
15837 if test "$hardcode_action_F77" = relink; then
15838   # Fast installation is not supported
15839   enable_fast_install=no
15840 elif test "$shlibpath_overrides_runpath" = yes ||
15841      test "$enable_shared" = no; then
15842   # Fast installation is not necessary
15843   enable_fast_install=needless
15844 fi
15845
15846 striplib=
15847 old_striplib=
15848 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15849 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15850 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15851   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15852   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15853   echo "$as_me:$LINENO: result: yes" >&5
15854 echo "${ECHO_T}yes" >&6
15855 else
15856 # FIXME - insert some real tests, host_os isn't really good enough
15857   case $host_os in
15858    darwin*)
15859        if test -n "$STRIP" ; then
15860          striplib="$STRIP -x"
15861          echo "$as_me:$LINENO: result: yes" >&5
15862 echo "${ECHO_T}yes" >&6
15863        else
15864   echo "$as_me:$LINENO: result: no" >&5
15865 echo "${ECHO_T}no" >&6
15866 fi
15867        ;;
15868    *)
15869   echo "$as_me:$LINENO: result: no" >&5
15870 echo "${ECHO_T}no" >&6
15871     ;;
15872   esac
15873 fi
15874
15875
15876
15877 # The else clause should only fire when bootstrapping the
15878 # libtool distribution, otherwise you forgot to ship ltmain.sh
15879 # with your package, and you will get complaints that there are
15880 # no rules to generate ltmain.sh.
15881 if test -f "$ltmain"; then
15882   # See if we are running on zsh, and set the options which allow our commands through
15883   # without removal of \ escapes.
15884   if test -n "${ZSH_VERSION+set}" ; then
15885     setopt NO_GLOB_SUBST
15886   fi
15887   # Now quote all the things that may contain metacharacters while being
15888   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15889   # variables and quote the copies for generation of the libtool script.
15890   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15891     SED SHELL STRIP \
15892     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15893     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15894     deplibs_check_method reload_flag reload_cmds need_locks \
15895     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15896     lt_cv_sys_global_symbol_to_c_name_address \
15897     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15898     old_postinstall_cmds old_postuninstall_cmds \
15899     compiler_F77 \
15900     CC_F77 \
15901     LD_F77 \
15902     lt_prog_compiler_wl_F77 \
15903     lt_prog_compiler_pic_F77 \
15904     lt_prog_compiler_static_F77 \
15905     lt_prog_compiler_no_builtin_flag_F77 \
15906     export_dynamic_flag_spec_F77 \
15907     thread_safe_flag_spec_F77 \
15908     whole_archive_flag_spec_F77 \
15909     enable_shared_with_static_runtimes_F77 \
15910     old_archive_cmds_F77 \
15911     old_archive_from_new_cmds_F77 \
15912     predep_objects_F77 \
15913     postdep_objects_F77 \
15914     predeps_F77 \
15915     postdeps_F77 \
15916     compiler_lib_search_path_F77 \
15917     archive_cmds_F77 \
15918     archive_expsym_cmds_F77 \
15919     postinstall_cmds_F77 \
15920     postuninstall_cmds_F77 \
15921     old_archive_from_expsyms_cmds_F77 \
15922     allow_undefined_flag_F77 \
15923     no_undefined_flag_F77 \
15924     export_symbols_cmds_F77 \
15925     hardcode_libdir_flag_spec_F77 \
15926     hardcode_libdir_flag_spec_ld_F77 \
15927     hardcode_libdir_separator_F77 \
15928     hardcode_automatic_F77 \
15929     module_cmds_F77 \
15930     module_expsym_cmds_F77 \
15931     lt_cv_prog_compiler_c_o_F77 \
15932     exclude_expsyms_F77 \
15933     include_expsyms_F77; do
15934
15935     case $var in
15936     old_archive_cmds_F77 | \
15937     old_archive_from_new_cmds_F77 | \
15938     archive_cmds_F77 | \
15939     archive_expsym_cmds_F77 | \
15940     module_cmds_F77 | \
15941     module_expsym_cmds_F77 | \
15942     old_archive_from_expsyms_cmds_F77 | \
15943     export_symbols_cmds_F77 | \
15944     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15945     postinstall_cmds | postuninstall_cmds | \
15946     old_postinstall_cmds | old_postuninstall_cmds | \
15947     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15948       # Double-quote double-evaled strings.
15949       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15950       ;;
15951     *)
15952       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15953       ;;
15954     esac
15955   done
15956
15957   case $lt_echo in
15958   *'\$0 --fallback-echo"')
15959     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15960     ;;
15961   esac
15962
15963 cfgfile="$ofile"
15964
15965   cat <<__EOF__ >> "$cfgfile"
15966 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15967
15968 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15969
15970 # Shell to use when invoking shell scripts.
15971 SHELL=$lt_SHELL
15972
15973 # Whether or not to build shared libraries.
15974 build_libtool_libs=$enable_shared
15975
15976 # Whether or not to build static libraries.
15977 build_old_libs=$enable_static
15978
15979 # Whether or not to add -lc for building shared libraries.
15980 build_libtool_need_lc=$archive_cmds_need_lc_F77
15981
15982 # Whether or not to disallow shared libs when runtime libs are static
15983 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15984
15985 # Whether or not to optimize for fast installation.
15986 fast_install=$enable_fast_install
15987
15988 # The host system.
15989 host_alias=$host_alias
15990 host=$host
15991 host_os=$host_os
15992
15993 # The build system.
15994 build_alias=$build_alias
15995 build=$build
15996 build_os=$build_os
15997
15998 # An echo program that does not interpret backslashes.
15999 echo=$lt_echo
16000
16001 # The archiver.
16002 AR=$lt_AR
16003 AR_FLAGS=$lt_AR_FLAGS
16004
16005 # A C compiler.
16006 LTCC=$lt_LTCC
16007
16008 # A language-specific compiler.
16009 CC=$lt_compiler_F77
16010
16011 # Is the compiler the GNU C compiler?
16012 with_gcc=$GCC_F77
16013
16014 # An ERE matcher.
16015 EGREP=$lt_EGREP
16016
16017 # The linker used to build libraries.
16018 LD=$lt_LD_F77
16019
16020 # Whether we need hard or soft links.
16021 LN_S=$lt_LN_S
16022
16023 # A BSD-compatible nm program.
16024 NM=$lt_NM
16025
16026 # A symbol stripping program
16027 STRIP=$lt_STRIP
16028
16029 # Used to examine libraries when file_magic_cmd begins "file"
16030 MAGIC_CMD=$MAGIC_CMD
16031
16032 # Used on cygwin: DLL creation program.
16033 DLLTOOL="$DLLTOOL"
16034
16035 # Used on cygwin: object dumper.
16036 OBJDUMP="$OBJDUMP"
16037
16038 # Used on cygwin: assembler.
16039 AS="$AS"
16040
16041 # The name of the directory that contains temporary libtool files.
16042 objdir=$objdir
16043
16044 # How to create reloadable object files.
16045 reload_flag=$lt_reload_flag
16046 reload_cmds=$lt_reload_cmds
16047
16048 # How to pass a linker flag through the compiler.
16049 wl=$lt_lt_prog_compiler_wl_F77
16050
16051 # Object file suffix (normally "o").
16052 objext="$ac_objext"
16053
16054 # Old archive suffix (normally "a").
16055 libext="$libext"
16056
16057 # Shared library suffix (normally ".so").
16058 shrext_cmds='$shrext_cmds'
16059
16060 # Executable file suffix (normally "").
16061 exeext="$exeext"
16062
16063 # Additional compiler flags for building library objects.
16064 pic_flag=$lt_lt_prog_compiler_pic_F77
16065 pic_mode=$pic_mode
16066
16067 # What is the maximum length of a command?
16068 max_cmd_len=$lt_cv_sys_max_cmd_len
16069
16070 # Does compiler simultaneously support -c and -o options?
16071 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16072
16073 # Must we lock files when doing compilation?
16074 need_locks=$lt_need_locks
16075
16076 # Do we need the lib prefix for modules?
16077 need_lib_prefix=$need_lib_prefix
16078
16079 # Do we need a version for libraries?
16080 need_version=$need_version
16081
16082 # Whether dlopen is supported.
16083 dlopen_support=$enable_dlopen
16084
16085 # Whether dlopen of programs is supported.
16086 dlopen_self=$enable_dlopen_self
16087
16088 # Whether dlopen of statically linked programs is supported.
16089 dlopen_self_static=$enable_dlopen_self_static
16090
16091 # Compiler flag to prevent dynamic linking.
16092 link_static_flag=$lt_lt_prog_compiler_static_F77
16093
16094 # Compiler flag to turn off builtin functions.
16095 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16096
16097 # Compiler flag to allow reflexive dlopens.
16098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16099
16100 # Compiler flag to generate shared objects directly from archives.
16101 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16102
16103 # Compiler flag to generate thread-safe objects.
16104 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16105
16106 # Library versioning type.
16107 version_type=$version_type
16108
16109 # Format of library name prefix.
16110 libname_spec=$lt_libname_spec
16111
16112 # List of archive names.  First name is the real one, the rest are links.
16113 # The last name is the one that the linker finds with -lNAME.
16114 library_names_spec=$lt_library_names_spec
16115
16116 # The coded name of the library, if different from the real name.
16117 soname_spec=$lt_soname_spec
16118
16119 # Commands used to build and install an old-style archive.
16120 RANLIB=$lt_RANLIB
16121 old_archive_cmds=$lt_old_archive_cmds_F77
16122 old_postinstall_cmds=$lt_old_postinstall_cmds
16123 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16124
16125 # Create an old-style archive from a shared archive.
16126 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16127
16128 # Create a temporary old-style archive to link instead of a shared archive.
16129 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16130
16131 # Commands used to build and install a shared archive.
16132 archive_cmds=$lt_archive_cmds_F77
16133 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16134 postinstall_cmds=$lt_postinstall_cmds
16135 postuninstall_cmds=$lt_postuninstall_cmds
16136
16137 # Commands used to build a loadable module (assumed same as above if empty)
16138 module_cmds=$lt_module_cmds_F77
16139 module_expsym_cmds=$lt_module_expsym_cmds_F77
16140
16141 # Commands to strip libraries.
16142 old_striplib=$lt_old_striplib
16143 striplib=$lt_striplib
16144
16145 # Dependencies to place before the objects being linked to create a
16146 # shared library.
16147 predep_objects=$lt_predep_objects_F77
16148
16149 # Dependencies to place after the objects being linked to create a
16150 # shared library.
16151 postdep_objects=$lt_postdep_objects_F77
16152
16153 # Dependencies to place before the objects being linked to create a
16154 # shared library.
16155 predeps=$lt_predeps_F77
16156
16157 # Dependencies to place after the objects being linked to create a
16158 # shared library.
16159 postdeps=$lt_postdeps_F77
16160
16161 # The library search path used internally by the compiler when linking
16162 # a shared library.
16163 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16164
16165 # Method to check whether dependent libraries are shared objects.
16166 deplibs_check_method=$lt_deplibs_check_method
16167
16168 # Command to use when deplibs_check_method == file_magic.
16169 file_magic_cmd=$lt_file_magic_cmd
16170
16171 # Flag that allows shared libraries with undefined symbols to be built.
16172 allow_undefined_flag=$lt_allow_undefined_flag_F77
16173
16174 # Flag that forces no undefined symbols.
16175 no_undefined_flag=$lt_no_undefined_flag_F77
16176
16177 # Commands used to finish a libtool library installation in a directory.
16178 finish_cmds=$lt_finish_cmds
16179
16180 # Same as above, but a single script fragment to be evaled but not shown.
16181 finish_eval=$lt_finish_eval
16182
16183 # Take the output of nm and produce a listing of raw symbols and C names.
16184 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16185
16186 # Transform the output of nm in a proper C declaration
16187 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16188
16189 # Transform the output of nm in a C name address pair
16190 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16191
16192 # This is the shared library runtime path variable.
16193 runpath_var=$runpath_var
16194
16195 # This is the shared library path variable.
16196 shlibpath_var=$shlibpath_var
16197
16198 # Is shlibpath searched before the hard-coded library search path?
16199 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16200
16201 # How to hardcode a shared library path into an executable.
16202 hardcode_action=$hardcode_action_F77
16203
16204 # Whether we should hardcode library paths into libraries.
16205 hardcode_into_libs=$hardcode_into_libs
16206
16207 # Flag to hardcode \$libdir into a binary during linking.
16208 # This must work even if \$libdir does not exist.
16209 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16210
16211 # If ld is used when linking, flag to hardcode \$libdir into
16212 # a binary during linking. This must work even if \$libdir does
16213 # not exist.
16214 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16215
16216 # Whether we need a single -rpath flag with a separated argument.
16217 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16218
16219 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16220 # resulting binary.
16221 hardcode_direct=$hardcode_direct_F77
16222
16223 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16224 # resulting binary.
16225 hardcode_minus_L=$hardcode_minus_L_F77
16226
16227 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16228 # the resulting binary.
16229 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16230
16231 # Set to yes if building a shared library automatically hardcodes DIR into the library
16232 # and all subsequent libraries and executables linked against it.
16233 hardcode_automatic=$hardcode_automatic_F77
16234
16235 # Variables whose values should be saved in libtool wrapper scripts and
16236 # restored at relink time.
16237 variables_saved_for_relink="$variables_saved_for_relink"
16238
16239 # Whether libtool must link a program against all its dependency libraries.
16240 link_all_deplibs=$link_all_deplibs_F77
16241
16242 # Compile-time system search path for libraries
16243 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16244
16245 # Run-time system search path for libraries
16246 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16247
16248 # Fix the shell variable \$srcfile for the compiler.
16249 fix_srcfile_path="$fix_srcfile_path_F77"
16250
16251 # Set to yes if exported symbols are required.
16252 always_export_symbols=$always_export_symbols_F77
16253
16254 # The commands to list exported symbols.
16255 export_symbols_cmds=$lt_export_symbols_cmds_F77
16256
16257 # The commands to extract the exported symbol list from a shared archive.
16258 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16259
16260 # Symbols that should not be listed in the preloaded symbols.
16261 exclude_expsyms=$lt_exclude_expsyms_F77
16262
16263 # Symbols that must always be exported.
16264 include_expsyms=$lt_include_expsyms_F77
16265
16266 # ### END LIBTOOL TAG CONFIG: $tagname
16267
16268 __EOF__
16269
16270
16271 else
16272   # If there is no Makefile yet, we rely on a make rule to execute
16273   # `config.status --recheck' to rerun these tests and create the
16274   # libtool script then.
16275   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16276   if test -f "$ltmain_in"; then
16277     test -f Makefile && make "$ltmain"
16278   fi
16279 fi
16280
16281
16282 ac_ext=c
16283 ac_cpp='$CPP $CPPFLAGS'
16284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16287
16288 CC="$lt_save_CC"
16289
16290         else
16291           tagname=""
16292         fi
16293         ;;
16294
16295       GCJ)
16296         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16297
16298
16299
16300 # Source file extension for Java test sources.
16301 ac_ext=java
16302
16303 # Object file extension for compiled Java test sources.
16304 objext=o
16305 objext_GCJ=$objext
16306
16307 # Code to be used in simple compile tests
16308 lt_simple_compile_test_code="class foo {}\n"
16309
16310 # Code to be used in simple link tests
16311 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16312
16313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16314
16315 # If no C compiler was specified, use CC.
16316 LTCC=${LTCC-"$CC"}
16317
16318 # Allow CC to be a program name with arguments.
16319 compiler=$CC
16320
16321
16322 # save warnings/boilerplate of simple test code
16323 ac_outfile=conftest.$ac_objext
16324 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16325 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16326 _lt_compiler_boilerplate=`cat conftest.err`
16327 $rm conftest*
16328
16329 ac_outfile=conftest.$ac_objext
16330 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16331 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16332 _lt_linker_boilerplate=`cat conftest.err`
16333 $rm conftest*
16334
16335
16336 # Allow CC to be a program name with arguments.
16337 lt_save_CC="$CC"
16338 CC=${GCJ-"gcj"}
16339 compiler=$CC
16340 compiler_GCJ=$CC
16341 for cc_temp in $compiler""; do
16342   case $cc_temp in
16343     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16344     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16345     \-*) ;;
16346     *) break;;
16347   esac
16348 done
16349 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16350
16351
16352 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16353 archive_cmds_need_lc_GCJ=no
16354
16355 old_archive_cmds_GCJ=$old_archive_cmds
16356
16357 ## CAVEAT EMPTOR:
16358 ## There is no encapsulation within the following macros, do not change
16359 ## the running order or otherwise move them around unless you know exactly
16360 ## what you are doing...
16361
16362 lt_prog_compiler_no_builtin_flag_GCJ=
16363
16364 if test "$GCC" = yes; then
16365   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16366
16367
16368 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16369 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16370 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16371   echo $ECHO_N "(cached) $ECHO_C" >&6
16372 else
16373   lt_cv_prog_compiler_rtti_exceptions=no
16374   ac_outfile=conftest.$ac_objext
16375    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16376    lt_compiler_flag="-fno-rtti -fno-exceptions"
16377    # Insert the option either (1) after the last *FLAGS variable, or
16378    # (2) before a word containing "conftest.", or (3) at the end.
16379    # Note that $ac_compile itself does not contain backslashes and begins
16380    # with a dollar sign (not a hyphen), so the echo should work correctly.
16381    # The option is referenced via a variable to avoid confusing sed.
16382    lt_compile=`echo "$ac_compile" | $SED \
16383    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16384    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16385    -e 's:$: $lt_compiler_flag:'`
16386    (eval echo "\"\$as_me:16386: $lt_compile\"" >&5)
16387    (eval "$lt_compile" 2>conftest.err)
16388    ac_status=$?
16389    cat conftest.err >&5
16390    echo "$as_me:16390: \$? = $ac_status" >&5
16391    if (exit $ac_status) && test -s "$ac_outfile"; then
16392      # The compiler can only warn and ignore the option if not recognized
16393      # So say no if there are warnings other than the usual output.
16394      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16395      $SED '/^$/d' conftest.err >conftest.er2
16396      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16397        lt_cv_prog_compiler_rtti_exceptions=yes
16398      fi
16399    fi
16400    $rm conftest*
16401
16402 fi
16403 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16404 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16405
16406 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16407     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16408 else
16409     :
16410 fi
16411
16412 fi
16413
16414 lt_prog_compiler_wl_GCJ=
16415 lt_prog_compiler_pic_GCJ=
16416 lt_prog_compiler_static_GCJ=
16417
16418 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16419 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16420
16421   if test "$GCC" = yes; then
16422     lt_prog_compiler_wl_GCJ='-Wl,'
16423     lt_prog_compiler_static_GCJ='-static'
16424
16425     case $host_os in
16426       aix*)
16427       # All AIX code is PIC.
16428       if test "$host_cpu" = ia64; then
16429         # AIX 5 now supports IA64 processor
16430         lt_prog_compiler_static_GCJ='-Bstatic'
16431       fi
16432       ;;
16433
16434     amigaos*)
16435       # FIXME: we need at least 68020 code to build shared libraries, but
16436       # adding the `-m68020' flag to GCC prevents building anything better,
16437       # like `-m68040'.
16438       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16439       ;;
16440
16441     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16442       # PIC is the default for these OSes.
16443       ;;
16444
16445     mingw* | pw32* | os2*)
16446       # This hack is so that the source file can tell whether it is being
16447       # built for inclusion in a dll (and should export symbols for example).
16448       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16449       ;;
16450
16451     darwin* | rhapsody*)
16452       # PIC is the default on this platform
16453       # Common symbols not allowed in MH_DYLIB files
16454       lt_prog_compiler_pic_GCJ='-fno-common'
16455       ;;
16456
16457     msdosdjgpp*)
16458       # Just because we use GCC doesn't mean we suddenly get shared libraries
16459       # on systems that don't support them.
16460       lt_prog_compiler_can_build_shared_GCJ=no
16461       enable_shared=no
16462       ;;
16463
16464     sysv4*MP*)
16465       if test -d /usr/nec; then
16466         lt_prog_compiler_pic_GCJ=-Kconform_pic
16467       fi
16468       ;;
16469
16470     hpux*)
16471       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16472       # not for PA HP-UX.
16473       case "$host_cpu" in
16474       hppa*64*|ia64*)
16475         # +Z the default
16476         ;;
16477       *)
16478         lt_prog_compiler_pic_GCJ='-fPIC'
16479         ;;
16480       esac
16481       ;;
16482
16483     *)
16484       lt_prog_compiler_pic_GCJ='-fPIC'
16485       ;;
16486     esac
16487   else
16488     # PORTME Check for flag to pass linker flags through the system compiler.
16489     case $host_os in
16490     aix*)
16491       lt_prog_compiler_wl_GCJ='-Wl,'
16492       if test "$host_cpu" = ia64; then
16493         # AIX 5 now supports IA64 processor
16494         lt_prog_compiler_static_GCJ='-Bstatic'
16495       else
16496         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16497       fi
16498       ;;
16499       darwin*)
16500         # PIC is the default on this platform
16501         # Common symbols not allowed in MH_DYLIB files
16502        case $cc_basename in
16503          xlc*)
16504          lt_prog_compiler_pic_GCJ='-qnocommon'
16505          lt_prog_compiler_wl_GCJ='-Wl,'
16506          ;;
16507        esac
16508        ;;
16509
16510     mingw* | pw32* | os2*)
16511       # This hack is so that the source file can tell whether it is being
16512       # built for inclusion in a dll (and should export symbols for example).
16513       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16514       ;;
16515
16516     hpux9* | hpux10* | hpux11*)
16517       lt_prog_compiler_wl_GCJ='-Wl,'
16518       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16519       # not for PA HP-UX.
16520       case "$host_cpu" in
16521       hppa*64*|ia64*)
16522         # +Z the default
16523         ;;
16524       *)
16525         lt_prog_compiler_pic_GCJ='+Z'
16526         ;;
16527       esac
16528       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16529       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16530       ;;
16531
16532     irix5* | irix6* | nonstopux*)
16533       lt_prog_compiler_wl_GCJ='-Wl,'
16534       # PIC (with -KPIC) is the default.
16535       lt_prog_compiler_static_GCJ='-non_shared'
16536       ;;
16537
16538     newsos6)
16539       lt_prog_compiler_pic_GCJ='-KPIC'
16540       lt_prog_compiler_static_GCJ='-Bstatic'
16541       ;;
16542
16543     linux*)
16544       case $cc_basename in
16545       icc* | ecc*)
16546         lt_prog_compiler_wl_GCJ='-Wl,'
16547         lt_prog_compiler_pic_GCJ='-KPIC'
16548         lt_prog_compiler_static_GCJ='-static'
16549         ;;
16550       pgcc* | pgf77* | pgf90*)
16551         # Portland Group compilers (*not* the Pentium gcc compiler,
16552         # which looks to be a dead project)
16553         lt_prog_compiler_wl_GCJ='-Wl,'
16554         lt_prog_compiler_pic_GCJ='-fpic'
16555         lt_prog_compiler_static_GCJ='-static'
16556         ;;
16557       ccc*)
16558         lt_prog_compiler_wl_GCJ='-Wl,'
16559         # All Alpha code is PIC.
16560         lt_prog_compiler_static_GCJ='-non_shared'
16561         ;;
16562       esac
16563       ;;
16564
16565     osf3* | osf4* | osf5*)
16566       lt_prog_compiler_wl_GCJ='-Wl,'
16567       # All OSF/1 code is PIC.
16568       lt_prog_compiler_static_GCJ='-non_shared'
16569       ;;
16570
16571     sco3.2v5*)
16572       lt_prog_compiler_pic_GCJ='-Kpic'
16573       lt_prog_compiler_static_GCJ='-dn'
16574       ;;
16575
16576     solaris*)
16577       lt_prog_compiler_pic_GCJ='-KPIC'
16578       lt_prog_compiler_static_GCJ='-Bstatic'
16579       case $cc_basename in
16580       f77* | f90* | f95*)
16581         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16582       *)
16583         lt_prog_compiler_wl_GCJ='-Wl,';;
16584       esac
16585       ;;
16586
16587     sunos4*)
16588       lt_prog_compiler_wl_GCJ='-Qoption ld '
16589       lt_prog_compiler_pic_GCJ='-PIC'
16590       lt_prog_compiler_static_GCJ='-Bstatic'
16591       ;;
16592
16593     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16594       lt_prog_compiler_wl_GCJ='-Wl,'
16595       lt_prog_compiler_pic_GCJ='-KPIC'
16596       lt_prog_compiler_static_GCJ='-Bstatic'
16597       ;;
16598
16599     sysv4*MP*)
16600       if test -d /usr/nec ;then
16601         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16602         lt_prog_compiler_static_GCJ='-Bstatic'
16603       fi
16604       ;;
16605
16606     unicos*)
16607       lt_prog_compiler_wl_GCJ='-Wl,'
16608       lt_prog_compiler_can_build_shared_GCJ=no
16609       ;;
16610
16611     uts4*)
16612       lt_prog_compiler_pic_GCJ='-pic'
16613       lt_prog_compiler_static_GCJ='-Bstatic'
16614       ;;
16615
16616     *)
16617       lt_prog_compiler_can_build_shared_GCJ=no
16618       ;;
16619     esac
16620   fi
16621
16622 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16623 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16624
16625 #
16626 # Check to make sure the PIC flag actually works.
16627 #
16628 if test -n "$lt_prog_compiler_pic_GCJ"; then
16629
16630 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16631 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16632 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16633   echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635   lt_prog_compiler_pic_works_GCJ=no
16636   ac_outfile=conftest.$ac_objext
16637    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16638    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16639    # Insert the option either (1) after the last *FLAGS variable, or
16640    # (2) before a word containing "conftest.", or (3) at the end.
16641    # Note that $ac_compile itself does not contain backslashes and begins
16642    # with a dollar sign (not a hyphen), so the echo should work correctly.
16643    # The option is referenced via a variable to avoid confusing sed.
16644    lt_compile=`echo "$ac_compile" | $SED \
16645    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16646    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16647    -e 's:$: $lt_compiler_flag:'`
16648    (eval echo "\"\$as_me:16648: $lt_compile\"" >&5)
16649    (eval "$lt_compile" 2>conftest.err)
16650    ac_status=$?
16651    cat conftest.err >&5
16652    echo "$as_me:16652: \$? = $ac_status" >&5
16653    if (exit $ac_status) && test -s "$ac_outfile"; then
16654      # The compiler can only warn and ignore the option if not recognized
16655      # So say no if there are warnings other than the usual output.
16656      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16657      $SED '/^$/d' conftest.err >conftest.er2
16658      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16659        lt_prog_compiler_pic_works_GCJ=yes
16660      fi
16661    fi
16662    $rm conftest*
16663
16664 fi
16665 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16666 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16667
16668 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16669     case $lt_prog_compiler_pic_GCJ in
16670      "" | " "*) ;;
16671      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16672      esac
16673 else
16674     lt_prog_compiler_pic_GCJ=
16675      lt_prog_compiler_can_build_shared_GCJ=no
16676 fi
16677
16678 fi
16679 case "$host_os" in
16680   # For platforms which do not support PIC, -DPIC is meaningless:
16681   *djgpp*)
16682     lt_prog_compiler_pic_GCJ=
16683     ;;
16684   *)
16685     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16686     ;;
16687 esac
16688
16689 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16690 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16691 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16692   echo $ECHO_N "(cached) $ECHO_C" >&6
16693 else
16694   lt_cv_prog_compiler_c_o_GCJ=no
16695    $rm -r conftest 2>/dev/null
16696    mkdir conftest
16697    cd conftest
16698    mkdir out
16699    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16700
16701    lt_compiler_flag="-o out/conftest2.$ac_objext"
16702    # Insert the option either (1) after the last *FLAGS variable, or
16703    # (2) before a word containing "conftest.", or (3) at the end.
16704    # Note that $ac_compile itself does not contain backslashes and begins
16705    # with a dollar sign (not a hyphen), so the echo should work correctly.
16706    lt_compile=`echo "$ac_compile" | $SED \
16707    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16709    -e 's:$: $lt_compiler_flag:'`
16710    (eval echo "\"\$as_me:16710: $lt_compile\"" >&5)
16711    (eval "$lt_compile" 2>out/conftest.err)
16712    ac_status=$?
16713    cat out/conftest.err >&5
16714    echo "$as_me:16714: \$? = $ac_status" >&5
16715    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16716    then
16717      # The compiler can only warn and ignore the option if not recognized
16718      # So say no if there are warnings
16719      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16720      $SED '/^$/d' out/conftest.err >out/conftest.er2
16721      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16722        lt_cv_prog_compiler_c_o_GCJ=yes
16723      fi
16724    fi
16725    chmod u+w .
16726    $rm conftest*
16727    # SGI C++ compiler will create directory out/ii_files/ for
16728    # template instantiation
16729    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16730    $rm out/* && rmdir out
16731    cd ..
16732    rmdir conftest
16733    $rm conftest*
16734
16735 fi
16736 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16737 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16738
16739
16740 hard_links="nottested"
16741 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16742   # do not overwrite the value of need_locks provided by the user
16743   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16744 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16745   hard_links=yes
16746   $rm conftest*
16747   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16748   touch conftest.a
16749   ln conftest.a conftest.b 2>&5 || hard_links=no
16750   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16751   echo "$as_me:$LINENO: result: $hard_links" >&5
16752 echo "${ECHO_T}$hard_links" >&6
16753   if test "$hard_links" = no; then
16754     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16755 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16756     need_locks=warn
16757   fi
16758 else
16759   need_locks=no
16760 fi
16761
16762 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16763 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16764
16765   runpath_var=
16766   allow_undefined_flag_GCJ=
16767   enable_shared_with_static_runtimes_GCJ=no
16768   archive_cmds_GCJ=
16769   archive_expsym_cmds_GCJ=
16770   old_archive_From_new_cmds_GCJ=
16771   old_archive_from_expsyms_cmds_GCJ=
16772   export_dynamic_flag_spec_GCJ=
16773   whole_archive_flag_spec_GCJ=
16774   thread_safe_flag_spec_GCJ=
16775   hardcode_libdir_flag_spec_GCJ=
16776   hardcode_libdir_flag_spec_ld_GCJ=
16777   hardcode_libdir_separator_GCJ=
16778   hardcode_direct_GCJ=no
16779   hardcode_minus_L_GCJ=no
16780   hardcode_shlibpath_var_GCJ=unsupported
16781   link_all_deplibs_GCJ=unknown
16782   hardcode_automatic_GCJ=no
16783   module_cmds_GCJ=
16784   module_expsym_cmds_GCJ=
16785   always_export_symbols_GCJ=no
16786   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16787   # include_expsyms should be a list of space-separated symbols to be *always*
16788   # included in the symbol list
16789   include_expsyms_GCJ=
16790   # exclude_expsyms can be an extended regexp of symbols to exclude
16791   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16792   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16793   # as well as any symbol that contains `d'.
16794   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16795   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16796   # platforms (ab)use it in PIC code, but their linkers get confused if
16797   # the symbol is explicitly referenced.  Since portable code cannot
16798   # rely on this symbol name, it's probably fine to never include it in
16799   # preloaded symbol tables.
16800   extract_expsyms_cmds=
16801   # Just being paranoid about ensuring that cc_basename is set.
16802   for cc_temp in $compiler""; do
16803   case $cc_temp in
16804     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16805     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16806     \-*) ;;
16807     *) break;;
16808   esac
16809 done
16810 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16811
16812   case $host_os in
16813   cygwin* | mingw* | pw32*)
16814     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16815     # When not using gcc, we currently assume that we are using
16816     # Microsoft Visual C++.
16817     if test "$GCC" != yes; then
16818       with_gnu_ld=no
16819     fi
16820     ;;
16821   openbsd*)
16822     with_gnu_ld=no
16823     ;;
16824   esac
16825
16826   ld_shlibs_GCJ=yes
16827   if test "$with_gnu_ld" = yes; then
16828     # If archive_cmds runs LD, not CC, wlarc should be empty
16829     wlarc='${wl}'
16830
16831     # Set some defaults for GNU ld with shared library support. These
16832     # are reset later if shared libraries are not supported. Putting them
16833     # here allows them to be overridden if necessary.
16834     runpath_var=LD_RUN_PATH
16835     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16836     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16837     # ancient GNU ld didn't support --whole-archive et. al.
16838     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16839         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16840       else
16841         whole_archive_flag_spec_GCJ=
16842     fi
16843     supports_anon_versioning=no
16844     case `$LD -v 2>/dev/null` in
16845       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16846       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16847       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16848       *\ 2.11.*) ;; # other 2.11 versions
16849       *) supports_anon_versioning=yes ;;
16850     esac
16851
16852     # See if GNU ld supports shared libraries.
16853     case $host_os in
16854     aix3* | aix4* | aix5*)
16855       # On AIX/PPC, the GNU linker is very broken
16856       if test "$host_cpu" != ia64; then
16857         ld_shlibs_GCJ=no
16858         cat <<EOF 1>&2
16859
16860 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16861 *** to be unable to reliably create shared libraries on AIX.
16862 *** Therefore, libtool is disabling shared libraries support.  If you
16863 *** really care for shared libraries, you may want to modify your PATH
16864 *** so that a non-GNU linker is found, and then restart.
16865
16866 EOF
16867       fi
16868       ;;
16869
16870     amigaos*)
16871       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)'
16872       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16873       hardcode_minus_L_GCJ=yes
16874
16875       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16876       # that the semantics of dynamic libraries on AmigaOS, at least up
16877       # to version 4, is to share data among multiple programs linked
16878       # with the same dynamic library.  Since this doesn't match the
16879       # behavior of shared libraries on other platforms, we can't use
16880       # them.
16881       ld_shlibs_GCJ=no
16882       ;;
16883
16884     beos*)
16885       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16886         allow_undefined_flag_GCJ=unsupported
16887         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16888         # support --undefined.  This deserves some investigation.  FIXME
16889         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16890       else
16891         ld_shlibs_GCJ=no
16892       fi
16893       ;;
16894
16895     cygwin* | mingw* | pw32*)
16896       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16897       # as there is no search path for DLLs.
16898       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16899       allow_undefined_flag_GCJ=unsupported
16900       always_export_symbols_GCJ=no
16901       enable_shared_with_static_runtimes_GCJ=yes
16902       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16903
16904       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16905         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16906         # If the export-symbols file already is a .def file (1st line
16907         # is EXPORTS), use it as is; otherwise, prepend...
16908         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16909           cp $export_symbols $output_objdir/$soname.def;
16910         else
16911           echo EXPORTS > $output_objdir/$soname.def;
16912           cat $export_symbols >> $output_objdir/$soname.def;
16913         fi~
16914         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16915       else
16916         ld_shlibs_GCJ=no
16917       fi
16918       ;;
16919
16920     linux*)
16921       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16922         tmp_addflag=
16923         case $cc_basename,$host_cpu in
16924         pgcc*)                          # Portland Group C compiler
16925           whole_archive_flag_spec_GCJ=
16926           ;;
16927         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16928           whole_archive_flag_spec_GCJ=
16929           tmp_addflag=' -fpic -Mnomain' ;;
16930         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16931           tmp_addflag=' -i_dynamic' ;;
16932         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16933           tmp_addflag=' -i_dynamic -nofor_main' ;;
16934         ifc* | ifort*)                  # Intel Fortran compiler
16935           tmp_addflag=' -nofor_main' ;;
16936         esac
16937         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16938
16939         if test $supports_anon_versioning = yes; then
16940           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16941   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16942   $echo "local: *; };" >> $output_objdir/$libname.ver~
16943           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16944         fi
16945       else
16946         ld_shlibs_GCJ=no
16947       fi
16948       ;;
16949
16950     netbsd*)
16951       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16952         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16953         wlarc=
16954       else
16955         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16956         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16957       fi
16958       ;;
16959
16960     solaris* | sysv5*)
16961       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16962         ld_shlibs_GCJ=no
16963         cat <<EOF 1>&2
16964
16965 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16966 *** create shared libraries on Solaris systems.  Therefore, libtool
16967 *** is disabling shared libraries support.  We urge you to upgrade GNU
16968 *** binutils to release 2.9.1 or newer.  Another option is to modify
16969 *** your PATH or compiler configuration so that the native linker is
16970 *** used, and then restart.
16971
16972 EOF
16973       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16974         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16975         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16976       else
16977         ld_shlibs_GCJ=no
16978       fi
16979       ;;
16980
16981     sunos4*)
16982       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16983       wlarc=
16984       hardcode_direct_GCJ=yes
16985       hardcode_shlibpath_var_GCJ=no
16986       ;;
16987
16988     *)
16989       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16990         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16991         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16992       else
16993         ld_shlibs_GCJ=no
16994       fi
16995       ;;
16996     esac
16997
16998     if test "$ld_shlibs_GCJ" = no; then
16999       runpath_var=
17000       hardcode_libdir_flag_spec_GCJ=
17001       export_dynamic_flag_spec_GCJ=
17002       whole_archive_flag_spec_GCJ=
17003     fi
17004   else
17005     # PORTME fill in a description of your system's linker (not GNU ld)
17006     case $host_os in
17007     aix3*)
17008       allow_undefined_flag_GCJ=unsupported
17009       always_export_symbols_GCJ=yes
17010       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'
17011       # Note: this linker hardcodes the directories in LIBPATH if there
17012       # are no directories specified by -L.
17013       hardcode_minus_L_GCJ=yes
17014       if test "$GCC" = yes && test -z "$link_static_flag"; then
17015         # Neither direct hardcoding nor static linking is supported with a
17016         # broken collect2.
17017         hardcode_direct_GCJ=unsupported
17018       fi
17019       ;;
17020
17021     aix4* | aix5*)
17022       if test "$host_cpu" = ia64; then
17023         # On IA64, the linker does run time linking by default, so we don't
17024         # have to do anything special.
17025         aix_use_runtimelinking=no
17026         exp_sym_flag='-Bexport'
17027         no_entry_flag=""
17028       else
17029         # If we're using GNU nm, then we don't want the "-C" option.
17030         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17031         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17032           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'
17033         else
17034           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'
17035         fi
17036         aix_use_runtimelinking=no
17037
17038         # Test if we are trying to use run time linking or normal
17039         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17040         # need to do runtime linking.
17041         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17042           for ld_flag in $LDFLAGS; do
17043           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17044             aix_use_runtimelinking=yes
17045             break
17046           fi
17047           done
17048         esac
17049
17050         exp_sym_flag='-bexport'
17051         no_entry_flag='-bnoentry'
17052       fi
17053
17054       # When large executables or shared objects are built, AIX ld can
17055       # have problems creating the table of contents.  If linking a library
17056       # or program results in "error TOC overflow" add -mminimal-toc to
17057       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17058       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17059
17060       archive_cmds_GCJ=''
17061       hardcode_direct_GCJ=yes
17062       hardcode_libdir_separator_GCJ=':'
17063       link_all_deplibs_GCJ=yes
17064
17065       if test "$GCC" = yes; then
17066         case $host_os in aix4.[012]|aix4.[012].*)
17067         # We only want to do this on AIX 4.2 and lower, the check
17068         # below for broken collect2 doesn't work under 4.3+
17069           collect2name=`${CC} -print-prog-name=collect2`
17070           if test -f "$collect2name" && \
17071            strings "$collect2name" | grep resolve_lib_name >/dev/null
17072           then
17073           # We have reworked collect2
17074           hardcode_direct_GCJ=yes
17075           else
17076           # We have old collect2
17077           hardcode_direct_GCJ=unsupported
17078           # It fails to find uninstalled libraries when the uninstalled
17079           # path is not listed in the libpath.  Setting hardcode_minus_L
17080           # to unsupported forces relinking
17081           hardcode_minus_L_GCJ=yes
17082           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17083           hardcode_libdir_separator_GCJ=
17084           fi
17085         esac
17086         shared_flag='-shared'
17087         if test "$aix_use_runtimelinking" = yes; then
17088           shared_flag="$shared_flag "'${wl}-G'
17089         fi
17090       else
17091         # not using gcc
17092         if test "$host_cpu" = ia64; then
17093         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17094         # chokes on -Wl,-G. The following line is correct:
17095           shared_flag='-G'
17096         else
17097         if test "$aix_use_runtimelinking" = yes; then
17098             shared_flag='${wl}-G'
17099           else
17100             shared_flag='${wl}-bM:SRE'
17101         fi
17102         fi
17103       fi
17104
17105       # It seems that -bexpall does not export symbols beginning with
17106       # underscore (_), so it is better to generate a list of symbols to export.
17107       always_export_symbols_GCJ=yes
17108       if test "$aix_use_runtimelinking" = yes; then
17109         # Warning - without using the other runtime loading flags (-brtl),
17110         # -berok will link without error, but may produce a broken library.
17111         allow_undefined_flag_GCJ='-berok'
17112        # Determine the default libpath from the value encoded in an empty executable.
17113        cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h.  */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h.  */
17119
17120 int
17121 main ()
17122 {
17123
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext conftest$ac_exeext
17129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17130   (eval $ac_link) 2>conftest.er1
17131   ac_status=$?
17132   grep -v '^ *+' conftest.er1 >conftest.err
17133   rm -f conftest.er1
17134   cat conftest.err >&5
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); } &&
17137          { ac_try='test -z "$ac_c_werror_flag"
17138                          || test ! -s conftest.err'
17139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140   (eval $ac_try) 2>&5
17141   ac_status=$?
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); }; } &&
17144          { ac_try='test -s conftest$ac_exeext'
17145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146   (eval $ac_try) 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); }; }; then
17150
17151 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17152 }'`
17153 # Check for a 64-bit object if we didn't find anything.
17154 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; }
17155 }'`; fi
17156 else
17157   echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17159
17160 fi
17161 rm -f conftest.err conftest.$ac_objext \
17162       conftest$ac_exeext conftest.$ac_ext
17163 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17164
17165        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17166         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"
17167        else
17168         if test "$host_cpu" = ia64; then
17169           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17170           allow_undefined_flag_GCJ="-z nodefs"
17171           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"
17172         else
17173          # Determine the default libpath from the value encoded in an empty executable.
17174          cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h.  */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h.  */
17180
17181 int
17182 main ()
17183 {
17184
17185   ;
17186   return 0;
17187 }
17188 _ACEOF
17189 rm -f conftest.$ac_objext conftest$ac_exeext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17191   (eval $ac_link) 2>conftest.er1
17192   ac_status=$?
17193   grep -v '^ *+' conftest.er1 >conftest.err
17194   rm -f conftest.er1
17195   cat conftest.err >&5
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); } &&
17198          { ac_try='test -z "$ac_c_werror_flag"
17199                          || test ! -s conftest.err'
17200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201   (eval $ac_try) 2>&5
17202   ac_status=$?
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); }; } &&
17205          { ac_try='test -s conftest$ac_exeext'
17206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207   (eval $ac_try) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; }; then
17211
17212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17213 }'`
17214 # Check for a 64-bit object if we didn't find anything.
17215 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; }
17216 }'`; fi
17217 else
17218   echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17220
17221 fi
17222 rm -f conftest.err conftest.$ac_objext \
17223       conftest$ac_exeext conftest.$ac_ext
17224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17225
17226          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17227           # Warning - without using the other run time loading flags,
17228           # -berok will link without error, but may produce a broken library.
17229           no_undefined_flag_GCJ=' ${wl}-bernotok'
17230           allow_undefined_flag_GCJ=' ${wl}-berok'
17231           # -bexpall does not export symbols beginning with underscore (_)
17232           always_export_symbols_GCJ=yes
17233           # Exported symbols can be pulled into shared objects from archives
17234           whole_archive_flag_spec_GCJ=' '
17235           archive_cmds_need_lc_GCJ=yes
17236           # This is similar to how AIX traditionally builds it's shared libraries.
17237           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'
17238         fi
17239       fi
17240       ;;
17241
17242     amigaos*)
17243       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)'
17244       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17245       hardcode_minus_L_GCJ=yes
17246       # see comment about different semantics on the GNU ld section
17247       ld_shlibs_GCJ=no
17248       ;;
17249
17250     bsdi[45]*)
17251       export_dynamic_flag_spec_GCJ=-rdynamic
17252       ;;
17253
17254     cygwin* | mingw* | pw32*)
17255       # When not using gcc, we currently assume that we are using
17256       # Microsoft Visual C++.
17257       # hardcode_libdir_flag_spec is actually meaningless, as there is
17258       # no search path for DLLs.
17259       hardcode_libdir_flag_spec_GCJ=' '
17260       allow_undefined_flag_GCJ=unsupported
17261       # Tell ltmain to make .lib files, not .a files.
17262       libext=lib
17263       # Tell ltmain to make .dll files, not .so files.
17264       shrext_cmds=".dll"
17265       # FIXME: Setting linknames here is a bad hack.
17266       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17267       # The linker will automatically build a .lib file if we build a DLL.
17268       old_archive_From_new_cmds_GCJ='true'
17269       # FIXME: Should let the user specify the lib program.
17270       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17271       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17272       enable_shared_with_static_runtimes_GCJ=yes
17273       ;;
17274
17275     darwin* | rhapsody*)
17276       case "$host_os" in
17277         rhapsody* | darwin1.[012])
17278          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17279          ;;
17280        *) # Darwin 1.3 on
17281          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17282            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17283          else
17284            case ${MACOSX_DEPLOYMENT_TARGET} in
17285              10.[012])
17286                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17287                ;;
17288              10.*)
17289                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17290                ;;
17291            esac
17292          fi
17293          ;;
17294       esac
17295       archive_cmds_need_lc_GCJ=no
17296       hardcode_direct_GCJ=no
17297       hardcode_automatic_GCJ=yes
17298       hardcode_shlibpath_var_GCJ=unsupported
17299       whole_archive_flag_spec_GCJ=''
17300       link_all_deplibs_GCJ=yes
17301     if test "$GCC" = yes ; then
17302         output_verbose_link_cmd='echo'
17303         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17304       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17305       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17306       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}'
17307       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}'
17308     else
17309       case $cc_basename in
17310         xlc*)
17311          output_verbose_link_cmd='echo'
17312          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17313          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17314           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17315          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}'
17316           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}'
17317           ;;
17318        *)
17319          ld_shlibs_GCJ=no
17320           ;;
17321       esac
17322     fi
17323       ;;
17324
17325     dgux*)
17326       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17327       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17328       hardcode_shlibpath_var_GCJ=no
17329       ;;
17330
17331     freebsd1*)
17332       ld_shlibs_GCJ=no
17333       ;;
17334
17335     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17336     # support.  Future versions do this automatically, but an explicit c++rt0.o
17337     # does not break anything, and helps significantly (at the cost of a little
17338     # extra space).
17339     freebsd2.2*)
17340       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17341       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17342       hardcode_direct_GCJ=yes
17343       hardcode_shlibpath_var_GCJ=no
17344       ;;
17345
17346     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17347     freebsd2*)
17348       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17349       hardcode_direct_GCJ=yes
17350       hardcode_minus_L_GCJ=yes
17351       hardcode_shlibpath_var_GCJ=no
17352       ;;
17353
17354     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17355     freebsd* | kfreebsd*-gnu | dragonfly*)
17356       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17357       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17358       hardcode_direct_GCJ=yes
17359       hardcode_shlibpath_var_GCJ=no
17360       ;;
17361
17362     hpux9*)
17363       if test "$GCC" = yes; then
17364         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'
17365       else
17366         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'
17367       fi
17368       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17369       hardcode_libdir_separator_GCJ=:
17370       hardcode_direct_GCJ=yes
17371
17372       # hardcode_minus_L: Not really in the search PATH,
17373       # but as the default location of the library.
17374       hardcode_minus_L_GCJ=yes
17375       export_dynamic_flag_spec_GCJ='${wl}-E'
17376       ;;
17377
17378     hpux10* | hpux11*)
17379       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17380         case "$host_cpu" in
17381         hppa*64*|ia64*)
17382           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17383           ;;
17384         *)
17385           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17386           ;;
17387         esac
17388       else
17389         case "$host_cpu" in
17390         hppa*64*|ia64*)
17391           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17392           ;;
17393         *)
17394           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17395           ;;
17396         esac
17397       fi
17398       if test "$with_gnu_ld" = no; then
17399         case "$host_cpu" in
17400         hppa*64*)
17401           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17402           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17403           hardcode_libdir_separator_GCJ=:
17404           hardcode_direct_GCJ=no
17405           hardcode_shlibpath_var_GCJ=no
17406           ;;
17407         ia64*)
17408           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17409           hardcode_direct_GCJ=no
17410           hardcode_shlibpath_var_GCJ=no
17411
17412           # hardcode_minus_L: Not really in the search PATH,
17413           # but as the default location of the library.
17414           hardcode_minus_L_GCJ=yes
17415           ;;
17416         *)
17417           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17418           hardcode_libdir_separator_GCJ=:
17419           hardcode_direct_GCJ=yes
17420           export_dynamic_flag_spec_GCJ='${wl}-E'
17421
17422           # hardcode_minus_L: Not really in the search PATH,
17423           # but as the default location of the library.
17424           hardcode_minus_L_GCJ=yes
17425           ;;
17426         esac
17427       fi
17428       ;;
17429
17430     irix5* | irix6* | nonstopux*)
17431       if test "$GCC" = yes; then
17432         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'
17433       else
17434         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'
17435         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17436       fi
17437       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17438       hardcode_libdir_separator_GCJ=:
17439       link_all_deplibs_GCJ=yes
17440       ;;
17441
17442     netbsd*)
17443       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17444         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17445       else
17446         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17447       fi
17448       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17449       hardcode_direct_GCJ=yes
17450       hardcode_shlibpath_var_GCJ=no
17451       ;;
17452
17453     newsos6)
17454       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17455       hardcode_direct_GCJ=yes
17456       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17457       hardcode_libdir_separator_GCJ=:
17458       hardcode_shlibpath_var_GCJ=no
17459       ;;
17460
17461     openbsd*)
17462       hardcode_direct_GCJ=yes
17463       hardcode_shlibpath_var_GCJ=no
17464       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17465         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17466         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17467         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17468         export_dynamic_flag_spec_GCJ='${wl}-E'
17469       else
17470        case $host_os in
17471          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17472            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17473            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17474            ;;
17475          *)
17476            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17477            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17478            ;;
17479        esac
17480       fi
17481       ;;
17482
17483     os2*)
17484       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17485       hardcode_minus_L_GCJ=yes
17486       allow_undefined_flag_GCJ=unsupported
17487       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'
17488       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17489       ;;
17490
17491     osf3*)
17492       if test "$GCC" = yes; then
17493         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17494         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'
17495       else
17496         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17497         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'
17498       fi
17499       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17500       hardcode_libdir_separator_GCJ=:
17501       ;;
17502
17503     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17504       if test "$GCC" = yes; then
17505         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17506         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'
17507         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17508       else
17509         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17510         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'
17511         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~
17512         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17513
17514         # Both c and cxx compiler support -rpath directly
17515         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17516       fi
17517       hardcode_libdir_separator_GCJ=:
17518       ;;
17519
17520     sco3.2v5*)
17521       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17522       hardcode_shlibpath_var_GCJ=no
17523       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17524       runpath_var=LD_RUN_PATH
17525       hardcode_runpath_var=yes
17526       ;;
17527
17528     solaris*)
17529       no_undefined_flag_GCJ=' -z text'
17530       if test "$GCC" = yes; then
17531         wlarc='${wl}'
17532         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17533         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17534           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17535       else
17536         wlarc=''
17537         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17538         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17539         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17540       fi
17541       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17542       hardcode_shlibpath_var_GCJ=no
17543       case $host_os in
17544       solaris2.[0-5] | solaris2.[0-5].*) ;;
17545       *)
17546         # The compiler driver will combine linker options so we
17547         # cannot just pass the convience library names through
17548         # without $wl, iff we do not link with $LD.
17549         # Luckily, gcc supports the same syntax we need for Sun Studio.
17550         # Supported since Solaris 2.6 (maybe 2.5.1?)
17551         case $wlarc in
17552         '')
17553           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17554         *)
17555           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17556         esac ;;
17557       esac
17558       link_all_deplibs_GCJ=yes
17559       ;;
17560
17561     sunos4*)
17562       if test "x$host_vendor" = xsequent; then
17563         # Use $CC to link under sequent, because it throws in some extra .o
17564         # files that make .init and .fini sections work.
17565         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17566       else
17567         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17568       fi
17569       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17570       hardcode_direct_GCJ=yes
17571       hardcode_minus_L_GCJ=yes
17572       hardcode_shlibpath_var_GCJ=no
17573       ;;
17574
17575     sysv4)
17576       case $host_vendor in
17577         sni)
17578           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17579           hardcode_direct_GCJ=yes # is this really true???
17580         ;;
17581         siemens)
17582           ## LD is ld it makes a PLAMLIB
17583           ## CC just makes a GrossModule.
17584           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17585           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17586           hardcode_direct_GCJ=no
17587         ;;
17588         motorola)
17589           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17590           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17591         ;;
17592       esac
17593       runpath_var='LD_RUN_PATH'
17594       hardcode_shlibpath_var_GCJ=no
17595       ;;
17596
17597     sysv4.3*)
17598       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599       hardcode_shlibpath_var_GCJ=no
17600       export_dynamic_flag_spec_GCJ='-Bexport'
17601       ;;
17602
17603     sysv4*MP*)
17604       if test -d /usr/nec; then
17605         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606         hardcode_shlibpath_var_GCJ=no
17607         runpath_var=LD_RUN_PATH
17608         hardcode_runpath_var=yes
17609         ld_shlibs_GCJ=yes
17610       fi
17611       ;;
17612
17613     sysv4.2uw2*)
17614       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17615       hardcode_direct_GCJ=yes
17616       hardcode_minus_L_GCJ=no
17617       hardcode_shlibpath_var_GCJ=no
17618       hardcode_runpath_var=yes
17619       runpath_var=LD_RUN_PATH
17620       ;;
17621
17622    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17623       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17624       if test "$GCC" = yes; then
17625         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17626       else
17627         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17628       fi
17629       runpath_var='LD_RUN_PATH'
17630       hardcode_shlibpath_var_GCJ=no
17631       ;;
17632
17633     sysv5*)
17634       no_undefined_flag_GCJ=' -z text'
17635       # $CC -shared without GNU ld will not create a library from C++
17636       # object files and a static libstdc++, better avoid it by now
17637       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17638       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17639                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17640       hardcode_libdir_flag_spec_GCJ=
17641       hardcode_shlibpath_var_GCJ=no
17642       runpath_var='LD_RUN_PATH'
17643       ;;
17644
17645     uts4*)
17646       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17647       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17648       hardcode_shlibpath_var_GCJ=no
17649       ;;
17650
17651     *)
17652       ld_shlibs_GCJ=no
17653       ;;
17654     esac
17655   fi
17656
17657 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17658 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17659 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17660
17661 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17662 if test "$GCC" = yes; then
17663   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17664 fi
17665
17666 #
17667 # Do we need to explicitly link libc?
17668 #
17669 case "x$archive_cmds_need_lc_GCJ" in
17670 x|xyes)
17671   # Assume -lc should be added
17672   archive_cmds_need_lc_GCJ=yes
17673
17674   if test "$enable_shared" = yes && test "$GCC" = yes; then
17675     case $archive_cmds_GCJ in
17676     *'~'*)
17677       # FIXME: we may have to deal with multi-command sequences.
17678       ;;
17679     '$CC '*)
17680       # Test whether the compiler implicitly links with -lc since on some
17681       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17682       # to ld, don't add -lc before -lgcc.
17683       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17684 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17685       $rm conftest*
17686       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17687
17688       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17689   (eval $ac_compile) 2>&5
17690   ac_status=$?
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); } 2>conftest.err; then
17693         soname=conftest
17694         lib=conftest
17695         libobjs=conftest.$ac_objext
17696         deplibs=
17697         wl=$lt_prog_compiler_wl_GCJ
17698         compiler_flags=-v
17699         linker_flags=-v
17700         verstring=
17701         output_objdir=.
17702         libname=conftest
17703         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17704         allow_undefined_flag_GCJ=
17705         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17706   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17707   ac_status=$?
17708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709   (exit $ac_status); }
17710         then
17711           archive_cmds_need_lc_GCJ=no
17712         else
17713           archive_cmds_need_lc_GCJ=yes
17714         fi
17715         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17716       else
17717         cat conftest.err 1>&5
17718       fi
17719       $rm conftest*
17720       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17721 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17722       ;;
17723     esac
17724   fi
17725   ;;
17726 esac
17727
17728 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17729 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17730 library_names_spec=
17731 libname_spec='lib$name'
17732 soname_spec=
17733 shrext_cmds=".so"
17734 postinstall_cmds=
17735 postuninstall_cmds=
17736 finish_cmds=
17737 finish_eval=
17738 shlibpath_var=
17739 shlibpath_overrides_runpath=unknown
17740 version_type=none
17741 dynamic_linker="$host_os ld.so"
17742 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17743 if test "$GCC" = yes; then
17744   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17745   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17746     # if the path contains ";" then we assume it to be the separator
17747     # otherwise default to the standard path separator (i.e. ":") - it is
17748     # assumed that no part of a normal pathname contains ";" but that should
17749     # okay in the real world where ";" in dirpaths is itself problematic.
17750     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17751   else
17752     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17753   fi
17754 else
17755   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17756 fi
17757 need_lib_prefix=unknown
17758 hardcode_into_libs=no
17759
17760 # when you set need_version to no, make sure it does not cause -set_version
17761 # flags to be left without arguments
17762 need_version=unknown
17763
17764 case $host_os in
17765 aix3*)
17766   version_type=linux
17767   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17768   shlibpath_var=LIBPATH
17769
17770   # AIX 3 has no versioning support, so we append a major version to the name.
17771   soname_spec='${libname}${release}${shared_ext}$major'
17772   ;;
17773
17774 aix4* | aix5*)
17775   version_type=linux
17776   need_lib_prefix=no
17777   need_version=no
17778   hardcode_into_libs=yes
17779   if test "$host_cpu" = ia64; then
17780     # AIX 5 supports IA64
17781     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17782     shlibpath_var=LD_LIBRARY_PATH
17783   else
17784     # With GCC up to 2.95.x, collect2 would create an import file
17785     # for dependence libraries.  The import file would start with
17786     # the line `#! .'.  This would cause the generated library to
17787     # depend on `.', always an invalid library.  This was fixed in
17788     # development snapshots of GCC prior to 3.0.
17789     case $host_os in
17790       aix4 | aix4.[01] | aix4.[01].*)
17791       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17792            echo ' yes '
17793            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17794         :
17795       else
17796         can_build_shared=no
17797       fi
17798       ;;
17799     esac
17800     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17801     # soname into executable. Probably we can add versioning support to
17802     # collect2, so additional links can be useful in future.
17803     if test "$aix_use_runtimelinking" = yes; then
17804       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17805       # instead of lib<name>.a to let people know that these are not
17806       # typical AIX shared libraries.
17807       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808     else
17809       # We preserve .a as extension for shared libraries through AIX4.2
17810       # and later when we are not doing run time linking.
17811       library_names_spec='${libname}${release}.a $libname.a'
17812       soname_spec='${libname}${release}${shared_ext}$major'
17813     fi
17814     shlibpath_var=LIBPATH
17815   fi
17816   ;;
17817
17818 amigaos*)
17819   library_names_spec='$libname.ixlibrary $libname.a'
17820   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17821   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'
17822   ;;
17823
17824 beos*)
17825   library_names_spec='${libname}${shared_ext}'
17826   dynamic_linker="$host_os ld.so"
17827   shlibpath_var=LIBRARY_PATH
17828   ;;
17829
17830 bsdi[45]*)
17831   version_type=linux
17832   need_version=no
17833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834   soname_spec='${libname}${release}${shared_ext}$major'
17835   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17836   shlibpath_var=LD_LIBRARY_PATH
17837   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17838   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17839   # the default ld.so.conf also contains /usr/contrib/lib and
17840   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17841   # libtool to hard-code these into programs
17842   ;;
17843
17844 cygwin* | mingw* | pw32*)
17845   version_type=windows
17846   shrext_cmds=".dll"
17847   need_version=no
17848   need_lib_prefix=no
17849
17850   case $GCC,$host_os in
17851   yes,cygwin* | yes,mingw* | yes,pw32*)
17852     library_names_spec='$libname.dll.a'
17853     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17854     postinstall_cmds='base_file=`basename \${file}`~
17855       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17856       dldir=$destdir/`dirname \$dlpath`~
17857       test -d \$dldir || mkdir -p \$dldir~
17858       $install_prog $dir/$dlname \$dldir/$dlname'
17859     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17860       dlpath=$dir/\$dldll~
17861        $rm \$dlpath'
17862     shlibpath_overrides_runpath=yes
17863
17864     case $host_os in
17865     cygwin*)
17866       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17867       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17868       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17869       ;;
17870     mingw*)
17871       # MinGW DLLs use traditional 'lib' prefix
17872       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17873       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17874       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17875         # It is most probably a Windows format PATH printed by
17876         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17877         # path with ; separators, and with drive letters. We can handle the
17878         # drive letters (cygwin fileutils understands them), so leave them,
17879         # especially as we might pass files found there to a mingw objdump,
17880         # which wouldn't understand a cygwinified path. Ahh.
17881         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17882       else
17883         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17884       fi
17885       ;;
17886     pw32*)
17887       # pw32 DLLs use 'pw' prefix rather than 'lib'
17888       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17889       ;;
17890     esac
17891     ;;
17892
17893   *)
17894     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17895     ;;
17896   esac
17897   dynamic_linker='Win32 ld.exe'
17898   # FIXME: first we should search . and the directory the executable is in
17899   shlibpath_var=PATH
17900   ;;
17901
17902 darwin* | rhapsody*)
17903   dynamic_linker="$host_os dyld"
17904   version_type=darwin
17905   need_lib_prefix=no
17906   need_version=no
17907   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17908   soname_spec='${libname}${release}${major}$shared_ext'
17909   shlibpath_overrides_runpath=yes
17910   shlibpath_var=DYLD_LIBRARY_PATH
17911   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17912   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17913   if test "$GCC" = yes; then
17914     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"`
17915   else
17916     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17917   fi
17918   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17919   ;;
17920
17921 dgux*)
17922   version_type=linux
17923   need_lib_prefix=no
17924   need_version=no
17925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17926   soname_spec='${libname}${release}${shared_ext}$major'
17927   shlibpath_var=LD_LIBRARY_PATH
17928   ;;
17929
17930 freebsd1*)
17931   dynamic_linker=no
17932   ;;
17933
17934 kfreebsd*-gnu)
17935   version_type=linux
17936   need_lib_prefix=no
17937   need_version=no
17938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17939   soname_spec='${libname}${release}${shared_ext}$major'
17940   shlibpath_var=LD_LIBRARY_PATH
17941   shlibpath_overrides_runpath=no
17942   hardcode_into_libs=yes
17943   dynamic_linker='GNU ld.so'
17944   ;;
17945
17946 freebsd* | dragonfly*)
17947   # DragonFly does not have aout.  When/if they implement a new
17948   # versioning mechanism, adjust this.
17949   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17950   version_type=freebsd-$objformat
17951   case $version_type in
17952     freebsd-elf*)
17953       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17954       need_version=no
17955       need_lib_prefix=no
17956       ;;
17957     freebsd-*)
17958       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17959       need_version=yes
17960       ;;
17961   esac
17962   shlibpath_var=LD_LIBRARY_PATH
17963   case $host_os in
17964   freebsd2*)
17965     shlibpath_overrides_runpath=yes
17966     ;;
17967   freebsd3.[01]* | freebsdelf3.[01]*)
17968     shlibpath_overrides_runpath=yes
17969     hardcode_into_libs=yes
17970     ;;
17971   *) # from 3.2 on
17972     shlibpath_overrides_runpath=no
17973     hardcode_into_libs=yes
17974     ;;
17975   esac
17976   ;;
17977
17978 gnu*)
17979   version_type=linux
17980   need_lib_prefix=no
17981   need_version=no
17982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17983   soname_spec='${libname}${release}${shared_ext}$major'
17984   shlibpath_var=LD_LIBRARY_PATH
17985   hardcode_into_libs=yes
17986   ;;
17987
17988 hpux9* | hpux10* | hpux11*)
17989   # Give a soname corresponding to the major version so that dld.sl refuses to
17990   # link against other versions.
17991   version_type=sunos
17992   need_lib_prefix=no
17993   need_version=no
17994   case "$host_cpu" in
17995   ia64*)
17996     shrext_cmds='.so'
17997     hardcode_into_libs=yes
17998     dynamic_linker="$host_os dld.so"
17999     shlibpath_var=LD_LIBRARY_PATH
18000     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002     soname_spec='${libname}${release}${shared_ext}$major'
18003     if test "X$HPUX_IA64_MODE" = X32; then
18004       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18005     else
18006       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18007     fi
18008     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18009     ;;
18010    hppa*64*)
18011      shrext_cmds='.sl'
18012      hardcode_into_libs=yes
18013      dynamic_linker="$host_os dld.sl"
18014      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18015      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18016      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18017      soname_spec='${libname}${release}${shared_ext}$major'
18018      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18019      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18020      ;;
18021    *)
18022     shrext_cmds='.sl'
18023     dynamic_linker="$host_os dld.sl"
18024     shlibpath_var=SHLIB_PATH
18025     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18027     soname_spec='${libname}${release}${shared_ext}$major'
18028     ;;
18029   esac
18030   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18031   postinstall_cmds='chmod 555 $lib'
18032   ;;
18033
18034 irix5* | irix6* | nonstopux*)
18035   case $host_os in
18036     nonstopux*) version_type=nonstopux ;;
18037     *)
18038         if test "$lt_cv_prog_gnu_ld" = yes; then
18039                 version_type=linux
18040         else
18041                 version_type=irix
18042         fi ;;
18043   esac
18044   need_lib_prefix=no
18045   need_version=no
18046   soname_spec='${libname}${release}${shared_ext}$major'
18047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18048   case $host_os in
18049   irix5* | nonstopux*)
18050     libsuff= shlibsuff=
18051     ;;
18052   *)
18053     case $LD in # libtool.m4 will add one of these switches to LD
18054     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18055       libsuff= shlibsuff= libmagic=32-bit;;
18056     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18057       libsuff=32 shlibsuff=N32 libmagic=N32;;
18058     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18059       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18060     *) libsuff= shlibsuff= libmagic=never-match;;
18061     esac
18062     ;;
18063   esac
18064   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18065   shlibpath_overrides_runpath=no
18066   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18067   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18068   hardcode_into_libs=yes
18069   ;;
18070
18071 # No shared lib support for Linux oldld, aout, or coff.
18072 linux*oldld* | linux*aout* | linux*coff*)
18073   dynamic_linker=no
18074   ;;
18075
18076 # This must be Linux ELF.
18077 linux*)
18078   version_type=linux
18079   need_lib_prefix=no
18080   need_version=no
18081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082   soname_spec='${libname}${release}${shared_ext}$major'
18083   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18084   shlibpath_var=LD_LIBRARY_PATH
18085   shlibpath_overrides_runpath=no
18086   # This implies no fast_install, which is unacceptable.
18087   # Some rework will be needed to allow for fast_install
18088   # before this can be enabled.
18089   hardcode_into_libs=yes
18090
18091   # find out which ABI we are using
18092   libsuff=
18093   case "$host_cpu" in
18094   x86_64*|s390x*|powerpc64*)
18095     echo '#line 18095 "configure"' > conftest.$ac_ext
18096     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18097   (eval $ac_compile) 2>&5
18098   ac_status=$?
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); }; then
18101       case `/usr/bin/file conftest.$ac_objext` in
18102       *64-bit*)
18103         libsuff=64
18104         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18105         ;;
18106       esac
18107     fi
18108     rm -rf conftest*
18109     ;;
18110   esac
18111
18112   # Append ld.so.conf contents to the search path
18113   if test -f /etc/ld.so.conf; then
18114     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18115     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18116   fi
18117
18118   # We used to test for /lib/ld.so.1 and disable shared libraries on
18119   # powerpc, because MkLinux only supported shared libraries with the
18120   # GNU dynamic linker.  Since this was broken with cross compilers,
18121   # most powerpc-linux boxes support dynamic linking these days and
18122   # people can always --disable-shared, the test was removed, and we
18123   # assume the GNU/Linux dynamic linker is in use.
18124   dynamic_linker='GNU/Linux ld.so'
18125   ;;
18126
18127 knetbsd*-gnu)
18128   version_type=linux
18129   need_lib_prefix=no
18130   need_version=no
18131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18132   soname_spec='${libname}${release}${shared_ext}$major'
18133   shlibpath_var=LD_LIBRARY_PATH
18134   shlibpath_overrides_runpath=no
18135   hardcode_into_libs=yes
18136   dynamic_linker='GNU ld.so'
18137   ;;
18138
18139 netbsd*)
18140   version_type=sunos
18141   need_lib_prefix=no
18142   need_version=no
18143   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18144     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18145     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18146     dynamic_linker='NetBSD (a.out) ld.so'
18147   else
18148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18149     soname_spec='${libname}${release}${shared_ext}$major'
18150     dynamic_linker='NetBSD ld.elf_so'
18151   fi
18152   shlibpath_var=LD_LIBRARY_PATH
18153   shlibpath_overrides_runpath=yes
18154   hardcode_into_libs=yes
18155   ;;
18156
18157 newsos6)
18158   version_type=linux
18159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160   shlibpath_var=LD_LIBRARY_PATH
18161   shlibpath_overrides_runpath=yes
18162   ;;
18163
18164 nto-qnx*)
18165   version_type=linux
18166   need_lib_prefix=no
18167   need_version=no
18168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18169   soname_spec='${libname}${release}${shared_ext}$major'
18170   shlibpath_var=LD_LIBRARY_PATH
18171   shlibpath_overrides_runpath=yes
18172   ;;
18173
18174 openbsd*)
18175   version_type=sunos
18176   need_lib_prefix=no
18177   need_version=no
18178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18179   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18180   shlibpath_var=LD_LIBRARY_PATH
18181   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18182     case $host_os in
18183       openbsd2.[89] | openbsd2.[89].*)
18184         shlibpath_overrides_runpath=no
18185         ;;
18186       *)
18187         shlibpath_overrides_runpath=yes
18188         ;;
18189       esac
18190   else
18191     shlibpath_overrides_runpath=yes
18192   fi
18193   ;;
18194
18195 os2*)
18196   libname_spec='$name'
18197   shrext_cmds=".dll"
18198   need_lib_prefix=no
18199   library_names_spec='$libname${shared_ext} $libname.a'
18200   dynamic_linker='OS/2 ld.exe'
18201   shlibpath_var=LIBPATH
18202   ;;
18203
18204 osf3* | osf4* | osf5*)
18205   version_type=osf
18206   need_lib_prefix=no
18207   need_version=no
18208   soname_spec='${libname}${release}${shared_ext}$major'
18209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18210   shlibpath_var=LD_LIBRARY_PATH
18211   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18212   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18213   ;;
18214
18215 sco3.2v5*)
18216   version_type=osf
18217   soname_spec='${libname}${release}${shared_ext}$major'
18218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219   shlibpath_var=LD_LIBRARY_PATH
18220   ;;
18221
18222 solaris*)
18223   version_type=linux
18224   need_lib_prefix=no
18225   need_version=no
18226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227   soname_spec='${libname}${release}${shared_ext}$major'
18228   shlibpath_var=LD_LIBRARY_PATH
18229   shlibpath_overrides_runpath=yes
18230   hardcode_into_libs=yes
18231   # ldd complains unless libraries are executable
18232   postinstall_cmds='chmod +x $lib'
18233   ;;
18234
18235 sunos4*)
18236   version_type=sunos
18237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18238   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18239   shlibpath_var=LD_LIBRARY_PATH
18240   shlibpath_overrides_runpath=yes
18241   if test "$with_gnu_ld" = yes; then
18242     need_lib_prefix=no
18243   fi
18244   need_version=yes
18245   ;;
18246
18247 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18248   version_type=linux
18249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250   soname_spec='${libname}${release}${shared_ext}$major'
18251   shlibpath_var=LD_LIBRARY_PATH
18252   case $host_vendor in
18253     sni)
18254       shlibpath_overrides_runpath=no
18255       need_lib_prefix=no
18256       export_dynamic_flag_spec='${wl}-Blargedynsym'
18257       runpath_var=LD_RUN_PATH
18258       ;;
18259     siemens)
18260       need_lib_prefix=no
18261       ;;
18262     motorola)
18263       need_lib_prefix=no
18264       need_version=no
18265       shlibpath_overrides_runpath=no
18266       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18267       ;;
18268   esac
18269   ;;
18270
18271 sysv4*MP*)
18272   if test -d /usr/nec ;then
18273     version_type=linux
18274     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18275     soname_spec='$libname${shared_ext}.$major'
18276     shlibpath_var=LD_LIBRARY_PATH
18277   fi
18278   ;;
18279
18280 uts4*)
18281   version_type=linux
18282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18283   soname_spec='${libname}${release}${shared_ext}$major'
18284   shlibpath_var=LD_LIBRARY_PATH
18285   ;;
18286
18287 *)
18288   dynamic_linker=no
18289   ;;
18290 esac
18291 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18292 echo "${ECHO_T}$dynamic_linker" >&6
18293 test "$dynamic_linker" = no && can_build_shared=no
18294
18295 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18296 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18297 hardcode_action_GCJ=
18298 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18299    test -n "$runpath_var_GCJ" || \
18300    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18301
18302   # We can hardcode non-existant directories.
18303   if test "$hardcode_direct_GCJ" != no &&
18304      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18305      # have to relink, otherwise we might link with an installed library
18306      # when we should be linking with a yet-to-be-installed one
18307      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18308      test "$hardcode_minus_L_GCJ" != no; then
18309     # Linking always hardcodes the temporary library directory.
18310     hardcode_action_GCJ=relink
18311   else
18312     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18313     hardcode_action_GCJ=immediate
18314   fi
18315 else
18316   # We cannot hardcode anything, or else we can only hardcode existing
18317   # directories.
18318   hardcode_action_GCJ=unsupported
18319 fi
18320 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18321 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18322
18323 if test "$hardcode_action_GCJ" = relink; then
18324   # Fast installation is not supported
18325   enable_fast_install=no
18326 elif test "$shlibpath_overrides_runpath" = yes ||
18327      test "$enable_shared" = no; then
18328   # Fast installation is not necessary
18329   enable_fast_install=needless
18330 fi
18331
18332 striplib=
18333 old_striplib=
18334 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18335 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18336 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18337   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18338   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18339   echo "$as_me:$LINENO: result: yes" >&5
18340 echo "${ECHO_T}yes" >&6
18341 else
18342 # FIXME - insert some real tests, host_os isn't really good enough
18343   case $host_os in
18344    darwin*)
18345        if test -n "$STRIP" ; then
18346          striplib="$STRIP -x"
18347          echo "$as_me:$LINENO: result: yes" >&5
18348 echo "${ECHO_T}yes" >&6
18349        else
18350   echo "$as_me:$LINENO: result: no" >&5
18351 echo "${ECHO_T}no" >&6
18352 fi
18353        ;;
18354    *)
18355   echo "$as_me:$LINENO: result: no" >&5
18356 echo "${ECHO_T}no" >&6
18357     ;;
18358   esac
18359 fi
18360
18361 if test "x$enable_dlopen" != xyes; then
18362   enable_dlopen=unknown
18363   enable_dlopen_self=unknown
18364   enable_dlopen_self_static=unknown
18365 else
18366   lt_cv_dlopen=no
18367   lt_cv_dlopen_libs=
18368
18369   case $host_os in
18370   beos*)
18371     lt_cv_dlopen="load_add_on"
18372     lt_cv_dlopen_libs=
18373     lt_cv_dlopen_self=yes
18374     ;;
18375
18376   mingw* | pw32*)
18377     lt_cv_dlopen="LoadLibrary"
18378     lt_cv_dlopen_libs=
18379    ;;
18380
18381   cygwin*)
18382     lt_cv_dlopen="dlopen"
18383     lt_cv_dlopen_libs=
18384    ;;
18385
18386   darwin*)
18387   # if libdl is installed we need to link against it
18388     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18389 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18390 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18391   echo $ECHO_N "(cached) $ECHO_C" >&6
18392 else
18393   ac_check_lib_save_LIBS=$LIBS
18394 LIBS="-ldl  $LIBS"
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h.  */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h.  */
18401
18402 /* Override any gcc2 internal prototype to avoid an error.  */
18403 #ifdef __cplusplus
18404 extern "C"
18405 #endif
18406 /* We use char because int might match the return type of a gcc2
18407    builtin and then its argument prototype would still apply.  */
18408 char dlopen ();
18409 int
18410 main ()
18411 {
18412 dlopen ();
18413   ;
18414   return 0;
18415 }
18416 _ACEOF
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18419   (eval $ac_link) 2>conftest.er1
18420   ac_status=$?
18421   grep -v '^ *+' conftest.er1 >conftest.err
18422   rm -f conftest.er1
18423   cat conftest.err >&5
18424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); } &&
18426          { ac_try='test -z "$ac_c_werror_flag"
18427                          || test ! -s conftest.err'
18428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429   (eval $ac_try) 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); }; } &&
18433          { ac_try='test -s conftest$ac_exeext'
18434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435   (eval $ac_try) 2>&5
18436   ac_status=$?
18437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438   (exit $ac_status); }; }; then
18439   ac_cv_lib_dl_dlopen=yes
18440 else
18441   echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18443
18444 ac_cv_lib_dl_dlopen=no
18445 fi
18446 rm -f conftest.err conftest.$ac_objext \
18447       conftest$ac_exeext conftest.$ac_ext
18448 LIBS=$ac_check_lib_save_LIBS
18449 fi
18450 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18451 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18452 if test $ac_cv_lib_dl_dlopen = yes; then
18453   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18454 else
18455
18456     lt_cv_dlopen="dyld"
18457     lt_cv_dlopen_libs=
18458     lt_cv_dlopen_self=yes
18459
18460 fi
18461
18462    ;;
18463
18464   *)
18465     echo "$as_me:$LINENO: checking for shl_load" >&5
18466 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18467 if test "${ac_cv_func_shl_load+set}" = set; then
18468   echo $ECHO_N "(cached) $ECHO_C" >&6
18469 else
18470   cat >conftest.$ac_ext <<_ACEOF
18471 /* confdefs.h.  */
18472 _ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h.  */
18476 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18478 #define shl_load innocuous_shl_load
18479
18480 /* System header to define __stub macros and hopefully few prototypes,
18481     which can conflict with char shl_load (); below.
18482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18483     <limits.h> exists even on freestanding compilers.  */
18484
18485 #ifdef __STDC__
18486 # include <limits.h>
18487 #else
18488 # include <assert.h>
18489 #endif
18490
18491 #undef shl_load
18492
18493 /* Override any gcc2 internal prototype to avoid an error.  */
18494 #ifdef __cplusplus
18495 extern "C"
18496 {
18497 #endif
18498 /* We use char because int might match the return type of a gcc2
18499    builtin and then its argument prototype would still apply.  */
18500 char shl_load ();
18501 /* The GNU C library defines this for functions which it implements
18502     to always fail with ENOSYS.  Some functions are actually named
18503     something starting with __ and the normal name is an alias.  */
18504 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18505 choke me
18506 #else
18507 char (*f) () = shl_load;
18508 #endif
18509 #ifdef __cplusplus
18510 }
18511 #endif
18512
18513 int
18514 main ()
18515 {
18516 return f != shl_load;
18517   ;
18518   return 0;
18519 }
18520 _ACEOF
18521 rm -f conftest.$ac_objext conftest$ac_exeext
18522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18523   (eval $ac_link) 2>conftest.er1
18524   ac_status=$?
18525   grep -v '^ *+' conftest.er1 >conftest.err
18526   rm -f conftest.er1
18527   cat conftest.err >&5
18528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529   (exit $ac_status); } &&
18530          { ac_try='test -z "$ac_c_werror_flag"
18531                          || test ! -s conftest.err'
18532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533   (eval $ac_try) 2>&5
18534   ac_status=$?
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); }; } &&
18537          { ac_try='test -s conftest$ac_exeext'
18538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539   (eval $ac_try) 2>&5
18540   ac_status=$?
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); }; }; then
18543   ac_cv_func_shl_load=yes
18544 else
18545   echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18547
18548 ac_cv_func_shl_load=no
18549 fi
18550 rm -f conftest.err conftest.$ac_objext \
18551       conftest$ac_exeext conftest.$ac_ext
18552 fi
18553 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18554 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18555 if test $ac_cv_func_shl_load = yes; then
18556   lt_cv_dlopen="shl_load"
18557 else
18558   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18559 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18560 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18561   echo $ECHO_N "(cached) $ECHO_C" >&6
18562 else
18563   ac_check_lib_save_LIBS=$LIBS
18564 LIBS="-ldld  $LIBS"
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h.  */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h.  */
18571
18572 /* Override any gcc2 internal prototype to avoid an error.  */
18573 #ifdef __cplusplus
18574 extern "C"
18575 #endif
18576 /* We use char because int might match the return type of a gcc2
18577    builtin and then its argument prototype would still apply.  */
18578 char shl_load ();
18579 int
18580 main ()
18581 {
18582 shl_load ();
18583   ;
18584   return 0;
18585 }
18586 _ACEOF
18587 rm -f conftest.$ac_objext conftest$ac_exeext
18588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18589   (eval $ac_link) 2>conftest.er1
18590   ac_status=$?
18591   grep -v '^ *+' conftest.er1 >conftest.err
18592   rm -f conftest.er1
18593   cat conftest.err >&5
18594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595   (exit $ac_status); } &&
18596          { ac_try='test -z "$ac_c_werror_flag"
18597                          || test ! -s conftest.err'
18598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599   (eval $ac_try) 2>&5
18600   ac_status=$?
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); }; } &&
18603          { ac_try='test -s conftest$ac_exeext'
18604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605   (eval $ac_try) 2>&5
18606   ac_status=$?
18607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); }; }; then
18609   ac_cv_lib_dld_shl_load=yes
18610 else
18611   echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18613
18614 ac_cv_lib_dld_shl_load=no
18615 fi
18616 rm -f conftest.err conftest.$ac_objext \
18617       conftest$ac_exeext conftest.$ac_ext
18618 LIBS=$ac_check_lib_save_LIBS
18619 fi
18620 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18621 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18622 if test $ac_cv_lib_dld_shl_load = yes; then
18623   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18624 else
18625   echo "$as_me:$LINENO: checking for dlopen" >&5
18626 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18627 if test "${ac_cv_func_dlopen+set}" = set; then
18628   echo $ECHO_N "(cached) $ECHO_C" >&6
18629 else
18630   cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h.  */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h.  */
18636 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18638 #define dlopen innocuous_dlopen
18639
18640 /* System header to define __stub macros and hopefully few prototypes,
18641     which can conflict with char dlopen (); below.
18642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18643     <limits.h> exists even on freestanding compilers.  */
18644
18645 #ifdef __STDC__
18646 # include <limits.h>
18647 #else
18648 # include <assert.h>
18649 #endif
18650
18651 #undef dlopen
18652
18653 /* Override any gcc2 internal prototype to avoid an error.  */
18654 #ifdef __cplusplus
18655 extern "C"
18656 {
18657 #endif
18658 /* We use char because int might match the return type of a gcc2
18659    builtin and then its argument prototype would still apply.  */
18660 char dlopen ();
18661 /* The GNU C library defines this for functions which it implements
18662     to always fail with ENOSYS.  Some functions are actually named
18663     something starting with __ and the normal name is an alias.  */
18664 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18665 choke me
18666 #else
18667 char (*f) () = dlopen;
18668 #endif
18669 #ifdef __cplusplus
18670 }
18671 #endif
18672
18673 int
18674 main ()
18675 {
18676 return f != dlopen;
18677   ;
18678   return 0;
18679 }
18680 _ACEOF
18681 rm -f conftest.$ac_objext conftest$ac_exeext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18683   (eval $ac_link) 2>conftest.er1
18684   ac_status=$?
18685   grep -v '^ *+' conftest.er1 >conftest.err
18686   rm -f conftest.er1
18687   cat conftest.err >&5
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); } &&
18690          { ac_try='test -z "$ac_c_werror_flag"
18691                          || test ! -s conftest.err'
18692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693   (eval $ac_try) 2>&5
18694   ac_status=$?
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); }; } &&
18697          { ac_try='test -s conftest$ac_exeext'
18698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699   (eval $ac_try) 2>&5
18700   ac_status=$?
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); }; }; then
18703   ac_cv_func_dlopen=yes
18704 else
18705   echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 ac_cv_func_dlopen=no
18709 fi
18710 rm -f conftest.err conftest.$ac_objext \
18711       conftest$ac_exeext conftest.$ac_ext
18712 fi
18713 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18714 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18715 if test $ac_cv_func_dlopen = yes; then
18716   lt_cv_dlopen="dlopen"
18717 else
18718   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18719 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18720 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18721   echo $ECHO_N "(cached) $ECHO_C" >&6
18722 else
18723   ac_check_lib_save_LIBS=$LIBS
18724 LIBS="-ldl  $LIBS"
18725 cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h.  */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h.  */
18731
18732 /* Override any gcc2 internal prototype to avoid an error.  */
18733 #ifdef __cplusplus
18734 extern "C"
18735 #endif
18736 /* We use char because int might match the return type of a gcc2
18737    builtin and then its argument prototype would still apply.  */
18738 char dlopen ();
18739 int
18740 main ()
18741 {
18742 dlopen ();
18743   ;
18744   return 0;
18745 }
18746 _ACEOF
18747 rm -f conftest.$ac_objext conftest$ac_exeext
18748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18749   (eval $ac_link) 2>conftest.er1
18750   ac_status=$?
18751   grep -v '^ *+' conftest.er1 >conftest.err
18752   rm -f conftest.er1
18753   cat conftest.err >&5
18754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); } &&
18756          { ac_try='test -z "$ac_c_werror_flag"
18757                          || test ! -s conftest.err'
18758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759   (eval $ac_try) 2>&5
18760   ac_status=$?
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); }; } &&
18763          { ac_try='test -s conftest$ac_exeext'
18764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765   (eval $ac_try) 2>&5
18766   ac_status=$?
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); }; }; then
18769   ac_cv_lib_dl_dlopen=yes
18770 else
18771   echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18773
18774 ac_cv_lib_dl_dlopen=no
18775 fi
18776 rm -f conftest.err conftest.$ac_objext \
18777       conftest$ac_exeext conftest.$ac_ext
18778 LIBS=$ac_check_lib_save_LIBS
18779 fi
18780 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18781 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18782 if test $ac_cv_lib_dl_dlopen = yes; then
18783   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18784 else
18785   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18786 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18787 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18788   echo $ECHO_N "(cached) $ECHO_C" >&6
18789 else
18790   ac_check_lib_save_LIBS=$LIBS
18791 LIBS="-lsvld  $LIBS"
18792 cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h.  */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h.  */
18798
18799 /* Override any gcc2 internal prototype to avoid an error.  */
18800 #ifdef __cplusplus
18801 extern "C"
18802 #endif
18803 /* We use char because int might match the return type of a gcc2
18804    builtin and then its argument prototype would still apply.  */
18805 char dlopen ();
18806 int
18807 main ()
18808 {
18809 dlopen ();
18810   ;
18811   return 0;
18812 }
18813 _ACEOF
18814 rm -f conftest.$ac_objext conftest$ac_exeext
18815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18816   (eval $ac_link) 2>conftest.er1
18817   ac_status=$?
18818   grep -v '^ *+' conftest.er1 >conftest.err
18819   rm -f conftest.er1
18820   cat conftest.err >&5
18821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822   (exit $ac_status); } &&
18823          { ac_try='test -z "$ac_c_werror_flag"
18824                          || test ! -s conftest.err'
18825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826   (eval $ac_try) 2>&5
18827   ac_status=$?
18828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829   (exit $ac_status); }; } &&
18830          { ac_try='test -s conftest$ac_exeext'
18831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832   (eval $ac_try) 2>&5
18833   ac_status=$?
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); }; }; then
18836   ac_cv_lib_svld_dlopen=yes
18837 else
18838   echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18840
18841 ac_cv_lib_svld_dlopen=no
18842 fi
18843 rm -f conftest.err conftest.$ac_objext \
18844       conftest$ac_exeext conftest.$ac_ext
18845 LIBS=$ac_check_lib_save_LIBS
18846 fi
18847 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18848 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18849 if test $ac_cv_lib_svld_dlopen = yes; then
18850   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18851 else
18852   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18853 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18854 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18855   echo $ECHO_N "(cached) $ECHO_C" >&6
18856 else
18857   ac_check_lib_save_LIBS=$LIBS
18858 LIBS="-ldld  $LIBS"
18859 cat >conftest.$ac_ext <<_ACEOF
18860 /* confdefs.h.  */
18861 _ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h.  */
18865
18866 /* Override any gcc2 internal prototype to avoid an error.  */
18867 #ifdef __cplusplus
18868 extern "C"
18869 #endif
18870 /* We use char because int might match the return type of a gcc2
18871    builtin and then its argument prototype would still apply.  */
18872 char dld_link ();
18873 int
18874 main ()
18875 {
18876 dld_link ();
18877   ;
18878   return 0;
18879 }
18880 _ACEOF
18881 rm -f conftest.$ac_objext conftest$ac_exeext
18882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18883   (eval $ac_link) 2>conftest.er1
18884   ac_status=$?
18885   grep -v '^ *+' conftest.er1 >conftest.err
18886   rm -f conftest.er1
18887   cat conftest.err >&5
18888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889   (exit $ac_status); } &&
18890          { ac_try='test -z "$ac_c_werror_flag"
18891                          || test ! -s conftest.err'
18892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893   (eval $ac_try) 2>&5
18894   ac_status=$?
18895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896   (exit $ac_status); }; } &&
18897          { ac_try='test -s conftest$ac_exeext'
18898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18899   (eval $ac_try) 2>&5
18900   ac_status=$?
18901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902   (exit $ac_status); }; }; then
18903   ac_cv_lib_dld_dld_link=yes
18904 else
18905   echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18907
18908 ac_cv_lib_dld_dld_link=no
18909 fi
18910 rm -f conftest.err conftest.$ac_objext \
18911       conftest$ac_exeext conftest.$ac_ext
18912 LIBS=$ac_check_lib_save_LIBS
18913 fi
18914 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18915 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18916 if test $ac_cv_lib_dld_dld_link = yes; then
18917   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18918 fi
18919
18920
18921 fi
18922
18923
18924 fi
18925
18926
18927 fi
18928
18929
18930 fi
18931
18932
18933 fi
18934
18935     ;;
18936   esac
18937
18938   if test "x$lt_cv_dlopen" != xno; then
18939     enable_dlopen=yes
18940   else
18941     enable_dlopen=no
18942   fi
18943
18944   case $lt_cv_dlopen in
18945   dlopen)
18946     save_CPPFLAGS="$CPPFLAGS"
18947     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18948
18949     save_LDFLAGS="$LDFLAGS"
18950     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18951
18952     save_LIBS="$LIBS"
18953     LIBS="$lt_cv_dlopen_libs $LIBS"
18954
18955     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18956 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18957 if test "${lt_cv_dlopen_self+set}" = set; then
18958   echo $ECHO_N "(cached) $ECHO_C" >&6
18959 else
18960           if test "$cross_compiling" = yes; then :
18961   lt_cv_dlopen_self=cross
18962 else
18963   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18964   lt_status=$lt_dlunknown
18965   cat > conftest.$ac_ext <<EOF
18966 #line 18966 "configure"
18967 #include "confdefs.h"
18968
18969 #if HAVE_DLFCN_H
18970 #include <dlfcn.h>
18971 #endif
18972
18973 #include <stdio.h>
18974
18975 #ifdef RTLD_GLOBAL
18976 #  define LT_DLGLOBAL           RTLD_GLOBAL
18977 #else
18978 #  ifdef DL_GLOBAL
18979 #    define LT_DLGLOBAL         DL_GLOBAL
18980 #  else
18981 #    define LT_DLGLOBAL         0
18982 #  endif
18983 #endif
18984
18985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18986    find out it does not work in some platform. */
18987 #ifndef LT_DLLAZY_OR_NOW
18988 #  ifdef RTLD_LAZY
18989 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18990 #  else
18991 #    ifdef DL_LAZY
18992 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18993 #    else
18994 #      ifdef RTLD_NOW
18995 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18996 #      else
18997 #        ifdef DL_NOW
18998 #          define LT_DLLAZY_OR_NOW      DL_NOW
18999 #        else
19000 #          define LT_DLLAZY_OR_NOW      0
19001 #        endif
19002 #      endif
19003 #    endif
19004 #  endif
19005 #endif
19006
19007 #ifdef __cplusplus
19008 extern "C" void exit (int);
19009 #endif
19010
19011 void fnord() { int i=42;}
19012 int main ()
19013 {
19014   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19015   int status = $lt_dlunknown;
19016
19017   if (self)
19018     {
19019       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19020       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19021       /* dlclose (self); */
19022     }
19023
19024     exit (status);
19025 }
19026 EOF
19027   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19028   (eval $ac_link) 2>&5
19029   ac_status=$?
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19032     (./conftest; exit; ) 2>/dev/null
19033     lt_status=$?
19034     case x$lt_status in
19035       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19036       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19037       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19038     esac
19039   else :
19040     # compilation failed
19041     lt_cv_dlopen_self=no
19042   fi
19043 fi
19044 rm -fr conftest*
19045
19046
19047 fi
19048 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19049 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19050
19051     if test "x$lt_cv_dlopen_self" = xyes; then
19052       LDFLAGS="$LDFLAGS $link_static_flag"
19053       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19054 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19055 if test "${lt_cv_dlopen_self_static+set}" = set; then
19056   echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058           if test "$cross_compiling" = yes; then :
19059   lt_cv_dlopen_self_static=cross
19060 else
19061   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19062   lt_status=$lt_dlunknown
19063   cat > conftest.$ac_ext <<EOF
19064 #line 19064 "configure"
19065 #include "confdefs.h"
19066
19067 #if HAVE_DLFCN_H
19068 #include <dlfcn.h>
19069 #endif
19070
19071 #include <stdio.h>
19072
19073 #ifdef RTLD_GLOBAL
19074 #  define LT_DLGLOBAL           RTLD_GLOBAL
19075 #else
19076 #  ifdef DL_GLOBAL
19077 #    define LT_DLGLOBAL         DL_GLOBAL
19078 #  else
19079 #    define LT_DLGLOBAL         0
19080 #  endif
19081 #endif
19082
19083 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19084    find out it does not work in some platform. */
19085 #ifndef LT_DLLAZY_OR_NOW
19086 #  ifdef RTLD_LAZY
19087 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19088 #  else
19089 #    ifdef DL_LAZY
19090 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19091 #    else
19092 #      ifdef RTLD_NOW
19093 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19094 #      else
19095 #        ifdef DL_NOW
19096 #          define LT_DLLAZY_OR_NOW      DL_NOW
19097 #        else
19098 #          define LT_DLLAZY_OR_NOW      0
19099 #        endif
19100 #      endif
19101 #    endif
19102 #  endif
19103 #endif
19104
19105 #ifdef __cplusplus
19106 extern "C" void exit (int);
19107 #endif
19108
19109 void fnord() { int i=42;}
19110 int main ()
19111 {
19112   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19113   int status = $lt_dlunknown;
19114
19115   if (self)
19116     {
19117       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19118       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19119       /* dlclose (self); */
19120     }
19121
19122     exit (status);
19123 }
19124 EOF
19125   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19126   (eval $ac_link) 2>&5
19127   ac_status=$?
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19130     (./conftest; exit; ) 2>/dev/null
19131     lt_status=$?
19132     case x$lt_status in
19133       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19134       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19135       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19136     esac
19137   else :
19138     # compilation failed
19139     lt_cv_dlopen_self_static=no
19140   fi
19141 fi
19142 rm -fr conftest*
19143
19144
19145 fi
19146 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19147 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19148     fi
19149
19150     CPPFLAGS="$save_CPPFLAGS"
19151     LDFLAGS="$save_LDFLAGS"
19152     LIBS="$save_LIBS"
19153     ;;
19154   esac
19155
19156   case $lt_cv_dlopen_self in
19157   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19158   *) enable_dlopen_self=unknown ;;
19159   esac
19160
19161   case $lt_cv_dlopen_self_static in
19162   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19163   *) enable_dlopen_self_static=unknown ;;
19164   esac
19165 fi
19166
19167
19168 # The else clause should only fire when bootstrapping the
19169 # libtool distribution, otherwise you forgot to ship ltmain.sh
19170 # with your package, and you will get complaints that there are
19171 # no rules to generate ltmain.sh.
19172 if test -f "$ltmain"; then
19173   # See if we are running on zsh, and set the options which allow our commands through
19174   # without removal of \ escapes.
19175   if test -n "${ZSH_VERSION+set}" ; then
19176     setopt NO_GLOB_SUBST
19177   fi
19178   # Now quote all the things that may contain metacharacters while being
19179   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19180   # variables and quote the copies for generation of the libtool script.
19181   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19182     SED SHELL STRIP \
19183     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19184     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19185     deplibs_check_method reload_flag reload_cmds need_locks \
19186     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19187     lt_cv_sys_global_symbol_to_c_name_address \
19188     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19189     old_postinstall_cmds old_postuninstall_cmds \
19190     compiler_GCJ \
19191     CC_GCJ \
19192     LD_GCJ \
19193     lt_prog_compiler_wl_GCJ \
19194     lt_prog_compiler_pic_GCJ \
19195     lt_prog_compiler_static_GCJ \
19196     lt_prog_compiler_no_builtin_flag_GCJ \
19197     export_dynamic_flag_spec_GCJ \
19198     thread_safe_flag_spec_GCJ \
19199     whole_archive_flag_spec_GCJ \
19200     enable_shared_with_static_runtimes_GCJ \
19201     old_archive_cmds_GCJ \
19202     old_archive_from_new_cmds_GCJ \
19203     predep_objects_GCJ \
19204     postdep_objects_GCJ \
19205     predeps_GCJ \
19206     postdeps_GCJ \
19207     compiler_lib_search_path_GCJ \
19208     archive_cmds_GCJ \
19209     archive_expsym_cmds_GCJ \
19210     postinstall_cmds_GCJ \
19211     postuninstall_cmds_GCJ \
19212     old_archive_from_expsyms_cmds_GCJ \
19213     allow_undefined_flag_GCJ \
19214     no_undefined_flag_GCJ \
19215     export_symbols_cmds_GCJ \
19216     hardcode_libdir_flag_spec_GCJ \
19217     hardcode_libdir_flag_spec_ld_GCJ \
19218     hardcode_libdir_separator_GCJ \
19219     hardcode_automatic_GCJ \
19220     module_cmds_GCJ \
19221     module_expsym_cmds_GCJ \
19222     lt_cv_prog_compiler_c_o_GCJ \
19223     exclude_expsyms_GCJ \
19224     include_expsyms_GCJ; do
19225
19226     case $var in
19227     old_archive_cmds_GCJ | \
19228     old_archive_from_new_cmds_GCJ | \
19229     archive_cmds_GCJ | \
19230     archive_expsym_cmds_GCJ | \
19231     module_cmds_GCJ | \
19232     module_expsym_cmds_GCJ | \
19233     old_archive_from_expsyms_cmds_GCJ | \
19234     export_symbols_cmds_GCJ | \
19235     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19236     postinstall_cmds | postuninstall_cmds | \
19237     old_postinstall_cmds | old_postuninstall_cmds | \
19238     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19239       # Double-quote double-evaled strings.
19240       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19241       ;;
19242     *)
19243       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19244       ;;
19245     esac
19246   done
19247
19248   case $lt_echo in
19249   *'\$0 --fallback-echo"')
19250     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19251     ;;
19252   esac
19253
19254 cfgfile="$ofile"
19255
19256   cat <<__EOF__ >> "$cfgfile"
19257 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19258
19259 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19260
19261 # Shell to use when invoking shell scripts.
19262 SHELL=$lt_SHELL
19263
19264 # Whether or not to build shared libraries.
19265 build_libtool_libs=$enable_shared
19266
19267 # Whether or not to build static libraries.
19268 build_old_libs=$enable_static
19269
19270 # Whether or not to add -lc for building shared libraries.
19271 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19272
19273 # Whether or not to disallow shared libs when runtime libs are static
19274 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19275
19276 # Whether or not to optimize for fast installation.
19277 fast_install=$enable_fast_install
19278
19279 # The host system.
19280 host_alias=$host_alias
19281 host=$host
19282 host_os=$host_os
19283
19284 # The build system.
19285 build_alias=$build_alias
19286 build=$build
19287 build_os=$build_os
19288
19289 # An echo program that does not interpret backslashes.
19290 echo=$lt_echo
19291
19292 # The archiver.
19293 AR=$lt_AR
19294 AR_FLAGS=$lt_AR_FLAGS
19295
19296 # A C compiler.
19297 LTCC=$lt_LTCC
19298
19299 # A language-specific compiler.
19300 CC=$lt_compiler_GCJ
19301
19302 # Is the compiler the GNU C compiler?
19303 with_gcc=$GCC_GCJ
19304
19305 # An ERE matcher.
19306 EGREP=$lt_EGREP
19307
19308 # The linker used to build libraries.
19309 LD=$lt_LD_GCJ
19310
19311 # Whether we need hard or soft links.
19312 LN_S=$lt_LN_S
19313
19314 # A BSD-compatible nm program.
19315 NM=$lt_NM
19316
19317 # A symbol stripping program
19318 STRIP=$lt_STRIP
19319
19320 # Used to examine libraries when file_magic_cmd begins "file"
19321 MAGIC_CMD=$MAGIC_CMD
19322
19323 # Used on cygwin: DLL creation program.
19324 DLLTOOL="$DLLTOOL"
19325
19326 # Used on cygwin: object dumper.
19327 OBJDUMP="$OBJDUMP"
19328
19329 # Used on cygwin: assembler.
19330 AS="$AS"
19331
19332 # The name of the directory that contains temporary libtool files.
19333 objdir=$objdir
19334
19335 # How to create reloadable object files.
19336 reload_flag=$lt_reload_flag
19337 reload_cmds=$lt_reload_cmds
19338
19339 # How to pass a linker flag through the compiler.
19340 wl=$lt_lt_prog_compiler_wl_GCJ
19341
19342 # Object file suffix (normally "o").
19343 objext="$ac_objext"
19344
19345 # Old archive suffix (normally "a").
19346 libext="$libext"
19347
19348 # Shared library suffix (normally ".so").
19349 shrext_cmds='$shrext_cmds'
19350
19351 # Executable file suffix (normally "").
19352 exeext="$exeext"
19353
19354 # Additional compiler flags for building library objects.
19355 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19356 pic_mode=$pic_mode
19357
19358 # What is the maximum length of a command?
19359 max_cmd_len=$lt_cv_sys_max_cmd_len
19360
19361 # Does compiler simultaneously support -c and -o options?
19362 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19363
19364 # Must we lock files when doing compilation?
19365 need_locks=$lt_need_locks
19366
19367 # Do we need the lib prefix for modules?
19368 need_lib_prefix=$need_lib_prefix
19369
19370 # Do we need a version for libraries?
19371 need_version=$need_version
19372
19373 # Whether dlopen is supported.
19374 dlopen_support=$enable_dlopen
19375
19376 # Whether dlopen of programs is supported.
19377 dlopen_self=$enable_dlopen_self
19378
19379 # Whether dlopen of statically linked programs is supported.
19380 dlopen_self_static=$enable_dlopen_self_static
19381
19382 # Compiler flag to prevent dynamic linking.
19383 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19384
19385 # Compiler flag to turn off builtin functions.
19386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19387
19388 # Compiler flag to allow reflexive dlopens.
19389 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19390
19391 # Compiler flag to generate shared objects directly from archives.
19392 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19393
19394 # Compiler flag to generate thread-safe objects.
19395 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19396
19397 # Library versioning type.
19398 version_type=$version_type
19399
19400 # Format of library name prefix.
19401 libname_spec=$lt_libname_spec
19402
19403 # List of archive names.  First name is the real one, the rest are links.
19404 # The last name is the one that the linker finds with -lNAME.
19405 library_names_spec=$lt_library_names_spec
19406
19407 # The coded name of the library, if different from the real name.
19408 soname_spec=$lt_soname_spec
19409
19410 # Commands used to build and install an old-style archive.
19411 RANLIB=$lt_RANLIB
19412 old_archive_cmds=$lt_old_archive_cmds_GCJ
19413 old_postinstall_cmds=$lt_old_postinstall_cmds
19414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19415
19416 # Create an old-style archive from a shared archive.
19417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19418
19419 # Create a temporary old-style archive to link instead of a shared archive.
19420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19421
19422 # Commands used to build and install a shared archive.
19423 archive_cmds=$lt_archive_cmds_GCJ
19424 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19425 postinstall_cmds=$lt_postinstall_cmds
19426 postuninstall_cmds=$lt_postuninstall_cmds
19427
19428 # Commands used to build a loadable module (assumed same as above if empty)
19429 module_cmds=$lt_module_cmds_GCJ
19430 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19431
19432 # Commands to strip libraries.
19433 old_striplib=$lt_old_striplib
19434 striplib=$lt_striplib
19435
19436 # Dependencies to place before the objects being linked to create a
19437 # shared library.
19438 predep_objects=$lt_predep_objects_GCJ
19439
19440 # Dependencies to place after the objects being linked to create a
19441 # shared library.
19442 postdep_objects=$lt_postdep_objects_GCJ
19443
19444 # Dependencies to place before the objects being linked to create a
19445 # shared library.
19446 predeps=$lt_predeps_GCJ
19447
19448 # Dependencies to place after the objects being linked to create a
19449 # shared library.
19450 postdeps=$lt_postdeps_GCJ
19451
19452 # The library search path used internally by the compiler when linking
19453 # a shared library.
19454 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19455
19456 # Method to check whether dependent libraries are shared objects.
19457 deplibs_check_method=$lt_deplibs_check_method
19458
19459 # Command to use when deplibs_check_method == file_magic.
19460 file_magic_cmd=$lt_file_magic_cmd
19461
19462 # Flag that allows shared libraries with undefined symbols to be built.
19463 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19464
19465 # Flag that forces no undefined symbols.
19466 no_undefined_flag=$lt_no_undefined_flag_GCJ
19467
19468 # Commands used to finish a libtool library installation in a directory.
19469 finish_cmds=$lt_finish_cmds
19470
19471 # Same as above, but a single script fragment to be evaled but not shown.
19472 finish_eval=$lt_finish_eval
19473
19474 # Take the output of nm and produce a listing of raw symbols and C names.
19475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19476
19477 # Transform the output of nm in a proper C declaration
19478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19479
19480 # Transform the output of nm in a C name address pair
19481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19482
19483 # This is the shared library runtime path variable.
19484 runpath_var=$runpath_var
19485
19486 # This is the shared library path variable.
19487 shlibpath_var=$shlibpath_var
19488
19489 # Is shlibpath searched before the hard-coded library search path?
19490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19491
19492 # How to hardcode a shared library path into an executable.
19493 hardcode_action=$hardcode_action_GCJ
19494
19495 # Whether we should hardcode library paths into libraries.
19496 hardcode_into_libs=$hardcode_into_libs
19497
19498 # Flag to hardcode \$libdir into a binary during linking.
19499 # This must work even if \$libdir does not exist.
19500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19501
19502 # If ld is used when linking, flag to hardcode \$libdir into
19503 # a binary during linking. This must work even if \$libdir does
19504 # not exist.
19505 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19506
19507 # Whether we need a single -rpath flag with a separated argument.
19508 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19509
19510 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19511 # resulting binary.
19512 hardcode_direct=$hardcode_direct_GCJ
19513
19514 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19515 # resulting binary.
19516 hardcode_minus_L=$hardcode_minus_L_GCJ
19517
19518 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19519 # the resulting binary.
19520 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19521
19522 # Set to yes if building a shared library automatically hardcodes DIR into the library
19523 # and all subsequent libraries and executables linked against it.
19524 hardcode_automatic=$hardcode_automatic_GCJ
19525
19526 # Variables whose values should be saved in libtool wrapper scripts and
19527 # restored at relink time.
19528 variables_saved_for_relink="$variables_saved_for_relink"
19529
19530 # Whether libtool must link a program against all its dependency libraries.
19531 link_all_deplibs=$link_all_deplibs_GCJ
19532
19533 # Compile-time system search path for libraries
19534 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19535
19536 # Run-time system search path for libraries
19537 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19538
19539 # Fix the shell variable \$srcfile for the compiler.
19540 fix_srcfile_path="$fix_srcfile_path_GCJ"
19541
19542 # Set to yes if exported symbols are required.
19543 always_export_symbols=$always_export_symbols_GCJ
19544
19545 # The commands to list exported symbols.
19546 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19547
19548 # The commands to extract the exported symbol list from a shared archive.
19549 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19550
19551 # Symbols that should not be listed in the preloaded symbols.
19552 exclude_expsyms=$lt_exclude_expsyms_GCJ
19553
19554 # Symbols that must always be exported.
19555 include_expsyms=$lt_include_expsyms_GCJ
19556
19557 # ### END LIBTOOL TAG CONFIG: $tagname
19558
19559 __EOF__
19560
19561
19562 else
19563   # If there is no Makefile yet, we rely on a make rule to execute
19564   # `config.status --recheck' to rerun these tests and create the
19565   # libtool script then.
19566   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19567   if test -f "$ltmain_in"; then
19568     test -f Makefile && make "$ltmain"
19569   fi
19570 fi
19571
19572
19573 ac_ext=c
19574 ac_cpp='$CPP $CPPFLAGS'
19575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19578
19579 CC="$lt_save_CC"
19580
19581         else
19582           tagname=""
19583         fi
19584         ;;
19585
19586       RC)
19587
19588
19589
19590 # Source file extension for RC test sources.
19591 ac_ext=rc
19592
19593 # Object file extension for compiled RC test sources.
19594 objext=o
19595 objext_RC=$objext
19596
19597 # Code to be used in simple compile tests
19598 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19599
19600 # Code to be used in simple link tests
19601 lt_simple_link_test_code="$lt_simple_compile_test_code"
19602
19603 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19604
19605 # If no C compiler was specified, use CC.
19606 LTCC=${LTCC-"$CC"}
19607
19608 # Allow CC to be a program name with arguments.
19609 compiler=$CC
19610
19611
19612 # save warnings/boilerplate of simple test code
19613 ac_outfile=conftest.$ac_objext
19614 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19615 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19616 _lt_compiler_boilerplate=`cat conftest.err`
19617 $rm conftest*
19618
19619 ac_outfile=conftest.$ac_objext
19620 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19621 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19622 _lt_linker_boilerplate=`cat conftest.err`
19623 $rm conftest*
19624
19625
19626 # Allow CC to be a program name with arguments.
19627 lt_save_CC="$CC"
19628 CC=${RC-"windres"}
19629 compiler=$CC
19630 compiler_RC=$CC
19631 for cc_temp in $compiler""; do
19632   case $cc_temp in
19633     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19634     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19635     \-*) ;;
19636     *) break;;
19637   esac
19638 done
19639 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19640
19641 lt_cv_prog_compiler_c_o_RC=yes
19642
19643 # The else clause should only fire when bootstrapping the
19644 # libtool distribution, otherwise you forgot to ship ltmain.sh
19645 # with your package, and you will get complaints that there are
19646 # no rules to generate ltmain.sh.
19647 if test -f "$ltmain"; then
19648   # See if we are running on zsh, and set the options which allow our commands through
19649   # without removal of \ escapes.
19650   if test -n "${ZSH_VERSION+set}" ; then
19651     setopt NO_GLOB_SUBST
19652   fi
19653   # Now quote all the things that may contain metacharacters while being
19654   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19655   # variables and quote the copies for generation of the libtool script.
19656   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19657     SED SHELL STRIP \
19658     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19659     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19660     deplibs_check_method reload_flag reload_cmds need_locks \
19661     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19662     lt_cv_sys_global_symbol_to_c_name_address \
19663     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19664     old_postinstall_cmds old_postuninstall_cmds \
19665     compiler_RC \
19666     CC_RC \
19667     LD_RC \
19668     lt_prog_compiler_wl_RC \
19669     lt_prog_compiler_pic_RC \
19670     lt_prog_compiler_static_RC \
19671     lt_prog_compiler_no_builtin_flag_RC \
19672     export_dynamic_flag_spec_RC \
19673     thread_safe_flag_spec_RC \
19674     whole_archive_flag_spec_RC \
19675     enable_shared_with_static_runtimes_RC \
19676     old_archive_cmds_RC \
19677     old_archive_from_new_cmds_RC \
19678     predep_objects_RC \
19679     postdep_objects_RC \
19680     predeps_RC \
19681     postdeps_RC \
19682     compiler_lib_search_path_RC \
19683     archive_cmds_RC \
19684     archive_expsym_cmds_RC \
19685     postinstall_cmds_RC \
19686     postuninstall_cmds_RC \
19687     old_archive_from_expsyms_cmds_RC \
19688     allow_undefined_flag_RC \
19689     no_undefined_flag_RC \
19690     export_symbols_cmds_RC \
19691     hardcode_libdir_flag_spec_RC \
19692     hardcode_libdir_flag_spec_ld_RC \
19693     hardcode_libdir_separator_RC \
19694     hardcode_automatic_RC \
19695     module_cmds_RC \
19696     module_expsym_cmds_RC \
19697     lt_cv_prog_compiler_c_o_RC \
19698     exclude_expsyms_RC \
19699     include_expsyms_RC; do
19700
19701     case $var in
19702     old_archive_cmds_RC | \
19703     old_archive_from_new_cmds_RC | \
19704     archive_cmds_RC | \
19705     archive_expsym_cmds_RC | \
19706     module_cmds_RC | \
19707     module_expsym_cmds_RC | \
19708     old_archive_from_expsyms_cmds_RC | \
19709     export_symbols_cmds_RC | \
19710     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19711     postinstall_cmds | postuninstall_cmds | \
19712     old_postinstall_cmds | old_postuninstall_cmds | \
19713     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19714       # Double-quote double-evaled strings.
19715       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19716       ;;
19717     *)
19718       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19719       ;;
19720     esac
19721   done
19722
19723   case $lt_echo in
19724   *'\$0 --fallback-echo"')
19725     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19726     ;;
19727   esac
19728
19729 cfgfile="$ofile"
19730
19731   cat <<__EOF__ >> "$cfgfile"
19732 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19733
19734 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19735
19736 # Shell to use when invoking shell scripts.
19737 SHELL=$lt_SHELL
19738
19739 # Whether or not to build shared libraries.
19740 build_libtool_libs=$enable_shared
19741
19742 # Whether or not to build static libraries.
19743 build_old_libs=$enable_static
19744
19745 # Whether or not to add -lc for building shared libraries.
19746 build_libtool_need_lc=$archive_cmds_need_lc_RC
19747
19748 # Whether or not to disallow shared libs when runtime libs are static
19749 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19750
19751 # Whether or not to optimize for fast installation.
19752 fast_install=$enable_fast_install
19753
19754 # The host system.
19755 host_alias=$host_alias
19756 host=$host
19757 host_os=$host_os
19758
19759 # The build system.
19760 build_alias=$build_alias
19761 build=$build
19762 build_os=$build_os
19763
19764 # An echo program that does not interpret backslashes.
19765 echo=$lt_echo
19766
19767 # The archiver.
19768 AR=$lt_AR
19769 AR_FLAGS=$lt_AR_FLAGS
19770
19771 # A C compiler.
19772 LTCC=$lt_LTCC
19773
19774 # A language-specific compiler.
19775 CC=$lt_compiler_RC
19776
19777 # Is the compiler the GNU C compiler?
19778 with_gcc=$GCC_RC
19779
19780 # An ERE matcher.
19781 EGREP=$lt_EGREP
19782
19783 # The linker used to build libraries.
19784 LD=$lt_LD_RC
19785
19786 # Whether we need hard or soft links.
19787 LN_S=$lt_LN_S
19788
19789 # A BSD-compatible nm program.
19790 NM=$lt_NM
19791
19792 # A symbol stripping program
19793 STRIP=$lt_STRIP
19794
19795 # Used to examine libraries when file_magic_cmd begins "file"
19796 MAGIC_CMD=$MAGIC_CMD
19797
19798 # Used on cygwin: DLL creation program.
19799 DLLTOOL="$DLLTOOL"
19800
19801 # Used on cygwin: object dumper.
19802 OBJDUMP="$OBJDUMP"
19803
19804 # Used on cygwin: assembler.
19805 AS="$AS"
19806
19807 # The name of the directory that contains temporary libtool files.
19808 objdir=$objdir
19809
19810 # How to create reloadable object files.
19811 reload_flag=$lt_reload_flag
19812 reload_cmds=$lt_reload_cmds
19813
19814 # How to pass a linker flag through the compiler.
19815 wl=$lt_lt_prog_compiler_wl_RC
19816
19817 # Object file suffix (normally "o").
19818 objext="$ac_objext"
19819
19820 # Old archive suffix (normally "a").
19821 libext="$libext"
19822
19823 # Shared library suffix (normally ".so").
19824 shrext_cmds='$shrext_cmds'
19825
19826 # Executable file suffix (normally "").
19827 exeext="$exeext"
19828
19829 # Additional compiler flags for building library objects.
19830 pic_flag=$lt_lt_prog_compiler_pic_RC
19831 pic_mode=$pic_mode
19832
19833 # What is the maximum length of a command?
19834 max_cmd_len=$lt_cv_sys_max_cmd_len
19835
19836 # Does compiler simultaneously support -c and -o options?
19837 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19838
19839 # Must we lock files when doing compilation?
19840 need_locks=$lt_need_locks
19841
19842 # Do we need the lib prefix for modules?
19843 need_lib_prefix=$need_lib_prefix
19844
19845 # Do we need a version for libraries?
19846 need_version=$need_version
19847
19848 # Whether dlopen is supported.
19849 dlopen_support=$enable_dlopen
19850
19851 # Whether dlopen of programs is supported.
19852 dlopen_self=$enable_dlopen_self
19853
19854 # Whether dlopen of statically linked programs is supported.
19855 dlopen_self_static=$enable_dlopen_self_static
19856
19857 # Compiler flag to prevent dynamic linking.
19858 link_static_flag=$lt_lt_prog_compiler_static_RC
19859
19860 # Compiler flag to turn off builtin functions.
19861 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19862
19863 # Compiler flag to allow reflexive dlopens.
19864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19865
19866 # Compiler flag to generate shared objects directly from archives.
19867 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19868
19869 # Compiler flag to generate thread-safe objects.
19870 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19871
19872 # Library versioning type.
19873 version_type=$version_type
19874
19875 # Format of library name prefix.
19876 libname_spec=$lt_libname_spec
19877
19878 # List of archive names.  First name is the real one, the rest are links.
19879 # The last name is the one that the linker finds with -lNAME.
19880 library_names_spec=$lt_library_names_spec
19881
19882 # The coded name of the library, if different from the real name.
19883 soname_spec=$lt_soname_spec
19884
19885 # Commands used to build and install an old-style archive.
19886 RANLIB=$lt_RANLIB
19887 old_archive_cmds=$lt_old_archive_cmds_RC
19888 old_postinstall_cmds=$lt_old_postinstall_cmds
19889 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19890
19891 # Create an old-style archive from a shared archive.
19892 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19893
19894 # Create a temporary old-style archive to link instead of a shared archive.
19895 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19896
19897 # Commands used to build and install a shared archive.
19898 archive_cmds=$lt_archive_cmds_RC
19899 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19900 postinstall_cmds=$lt_postinstall_cmds
19901 postuninstall_cmds=$lt_postuninstall_cmds
19902
19903 # Commands used to build a loadable module (assumed same as above if empty)
19904 module_cmds=$lt_module_cmds_RC
19905 module_expsym_cmds=$lt_module_expsym_cmds_RC
19906
19907 # Commands to strip libraries.
19908 old_striplib=$lt_old_striplib
19909 striplib=$lt_striplib
19910
19911 # Dependencies to place before the objects being linked to create a
19912 # shared library.
19913 predep_objects=$lt_predep_objects_RC
19914
19915 # Dependencies to place after the objects being linked to create a
19916 # shared library.
19917 postdep_objects=$lt_postdep_objects_RC
19918
19919 # Dependencies to place before the objects being linked to create a
19920 # shared library.
19921 predeps=$lt_predeps_RC
19922
19923 # Dependencies to place after the objects being linked to create a
19924 # shared library.
19925 postdeps=$lt_postdeps_RC
19926
19927 # The library search path used internally by the compiler when linking
19928 # a shared library.
19929 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19930
19931 # Method to check whether dependent libraries are shared objects.
19932 deplibs_check_method=$lt_deplibs_check_method
19933
19934 # Command to use when deplibs_check_method == file_magic.
19935 file_magic_cmd=$lt_file_magic_cmd
19936
19937 # Flag that allows shared libraries with undefined symbols to be built.
19938 allow_undefined_flag=$lt_allow_undefined_flag_RC
19939
19940 # Flag that forces no undefined symbols.
19941 no_undefined_flag=$lt_no_undefined_flag_RC
19942
19943 # Commands used to finish a libtool library installation in a directory.
19944 finish_cmds=$lt_finish_cmds
19945
19946 # Same as above, but a single script fragment to be evaled but not shown.
19947 finish_eval=$lt_finish_eval
19948
19949 # Take the output of nm and produce a listing of raw symbols and C names.
19950 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19951
19952 # Transform the output of nm in a proper C declaration
19953 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19954
19955 # Transform the output of nm in a C name address pair
19956 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19957
19958 # This is the shared library runtime path variable.
19959 runpath_var=$runpath_var
19960
19961 # This is the shared library path variable.
19962 shlibpath_var=$shlibpath_var
19963
19964 # Is shlibpath searched before the hard-coded library search path?
19965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19966
19967 # How to hardcode a shared library path into an executable.
19968 hardcode_action=$hardcode_action_RC
19969
19970 # Whether we should hardcode library paths into libraries.
19971 hardcode_into_libs=$hardcode_into_libs
19972
19973 # Flag to hardcode \$libdir into a binary during linking.
19974 # This must work even if \$libdir does not exist.
19975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19976
19977 # If ld is used when linking, flag to hardcode \$libdir into
19978 # a binary during linking. This must work even if \$libdir does
19979 # not exist.
19980 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19981
19982 # Whether we need a single -rpath flag with a separated argument.
19983 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19984
19985 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19986 # resulting binary.
19987 hardcode_direct=$hardcode_direct_RC
19988
19989 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19990 # resulting binary.
19991 hardcode_minus_L=$hardcode_minus_L_RC
19992
19993 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19994 # the resulting binary.
19995 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19996
19997 # Set to yes if building a shared library automatically hardcodes DIR into the library
19998 # and all subsequent libraries and executables linked against it.
19999 hardcode_automatic=$hardcode_automatic_RC
20000
20001 # Variables whose values should be saved in libtool wrapper scripts and
20002 # restored at relink time.
20003 variables_saved_for_relink="$variables_saved_for_relink"
20004
20005 # Whether libtool must link a program against all its dependency libraries.
20006 link_all_deplibs=$link_all_deplibs_RC
20007
20008 # Compile-time system search path for libraries
20009 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20010
20011 # Run-time system search path for libraries
20012 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20013
20014 # Fix the shell variable \$srcfile for the compiler.
20015 fix_srcfile_path="$fix_srcfile_path_RC"
20016
20017 # Set to yes if exported symbols are required.
20018 always_export_symbols=$always_export_symbols_RC
20019
20020 # The commands to list exported symbols.
20021 export_symbols_cmds=$lt_export_symbols_cmds_RC
20022
20023 # The commands to extract the exported symbol list from a shared archive.
20024 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20025
20026 # Symbols that should not be listed in the preloaded symbols.
20027 exclude_expsyms=$lt_exclude_expsyms_RC
20028
20029 # Symbols that must always be exported.
20030 include_expsyms=$lt_include_expsyms_RC
20031
20032 # ### END LIBTOOL TAG CONFIG: $tagname
20033
20034 __EOF__
20035
20036
20037 else
20038   # If there is no Makefile yet, we rely on a make rule to execute
20039   # `config.status --recheck' to rerun these tests and create the
20040   # libtool script then.
20041   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20042   if test -f "$ltmain_in"; then
20043     test -f Makefile && make "$ltmain"
20044   fi
20045 fi
20046
20047
20048 ac_ext=c
20049 ac_cpp='$CPP $CPPFLAGS'
20050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20053
20054 CC="$lt_save_CC"
20055
20056         ;;
20057
20058       *)
20059         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20060 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20061    { (exit 1); exit 1; }; }
20062         ;;
20063       esac
20064
20065       # Append the new tag name to the list of available tags.
20066       if test -n "$tagname" ; then
20067       available_tags="$available_tags $tagname"
20068     fi
20069     fi
20070   done
20071   IFS="$lt_save_ifs"
20072
20073   # Now substitute the updated list of available tags.
20074   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20075     mv "${ofile}T" "$ofile"
20076     chmod +x "$ofile"
20077   else
20078     rm -f "${ofile}T"
20079     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20080 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20081    { (exit 1); exit 1; }; }
20082   fi
20083 fi
20084
20085
20086
20087 # This can be used to rebuild libtool when needed
20088 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20089
20090 # Always use our own libtool.
20091 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20092
20093 # Prevent multiple expansion
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121 ac_header_dirent=no
20122 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20123   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20124 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20125 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20127   echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129   cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 #include <sys/types.h>
20136 #include <$ac_hdr>
20137
20138 int
20139 main ()
20140 {
20141 if ((DIR *) 0)
20142 return 0;
20143   ;
20144   return 0;
20145 }
20146 _ACEOF
20147 rm -f conftest.$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149   (eval $ac_compile) 2>conftest.er1
20150   ac_status=$?
20151   grep -v '^ *+' conftest.er1 >conftest.err
20152   rm -f conftest.er1
20153   cat conftest.err >&5
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); } &&
20156          { ac_try='test -z "$ac_c_werror_flag"
20157                          || test ! -s conftest.err'
20158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159   (eval $ac_try) 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); }; } &&
20163          { ac_try='test -s conftest.$ac_objext'
20164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165   (eval $ac_try) 2>&5
20166   ac_status=$?
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); }; }; then
20169   eval "$as_ac_Header=yes"
20170 else
20171   echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20173
20174 eval "$as_ac_Header=no"
20175 fi
20176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20177 fi
20178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20181   cat >>confdefs.h <<_ACEOF
20182 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20183 _ACEOF
20184
20185 ac_header_dirent=$ac_hdr; break
20186 fi
20187
20188 done
20189 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20190 if test $ac_header_dirent = dirent.h; then
20191   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20192 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20193 if test "${ac_cv_search_opendir+set}" = set; then
20194   echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196   ac_func_search_save_LIBS=$LIBS
20197 ac_cv_search_opendir=no
20198 cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h.  */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h.  */
20204
20205 /* Override any gcc2 internal prototype to avoid an error.  */
20206 #ifdef __cplusplus
20207 extern "C"
20208 #endif
20209 /* We use char because int might match the return type of a gcc2
20210    builtin and then its argument prototype would still apply.  */
20211 char opendir ();
20212 int
20213 main ()
20214 {
20215 opendir ();
20216   ;
20217   return 0;
20218 }
20219 _ACEOF
20220 rm -f conftest.$ac_objext conftest$ac_exeext
20221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20222   (eval $ac_link) 2>conftest.er1
20223   ac_status=$?
20224   grep -v '^ *+' conftest.er1 >conftest.err
20225   rm -f conftest.er1
20226   cat conftest.err >&5
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); } &&
20229          { ac_try='test -z "$ac_c_werror_flag"
20230                          || test ! -s conftest.err'
20231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232   (eval $ac_try) 2>&5
20233   ac_status=$?
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); }; } &&
20236          { ac_try='test -s conftest$ac_exeext'
20237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238   (eval $ac_try) 2>&5
20239   ac_status=$?
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); }; }; then
20242   ac_cv_search_opendir="none required"
20243 else
20244   echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20246
20247 fi
20248 rm -f conftest.err conftest.$ac_objext \
20249       conftest$ac_exeext conftest.$ac_ext
20250 if test "$ac_cv_search_opendir" = no; then
20251   for ac_lib in dir; do
20252     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20253     cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h.  */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h.  */
20259
20260 /* Override any gcc2 internal prototype to avoid an error.  */
20261 #ifdef __cplusplus
20262 extern "C"
20263 #endif
20264 /* We use char because int might match the return type of a gcc2
20265    builtin and then its argument prototype would still apply.  */
20266 char opendir ();
20267 int
20268 main ()
20269 {
20270 opendir ();
20271   ;
20272   return 0;
20273 }
20274 _ACEOF
20275 rm -f conftest.$ac_objext conftest$ac_exeext
20276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20277   (eval $ac_link) 2>conftest.er1
20278   ac_status=$?
20279   grep -v '^ *+' conftest.er1 >conftest.err
20280   rm -f conftest.er1
20281   cat conftest.err >&5
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); } &&
20284          { ac_try='test -z "$ac_c_werror_flag"
20285                          || test ! -s conftest.err'
20286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287   (eval $ac_try) 2>&5
20288   ac_status=$?
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); }; } &&
20291          { ac_try='test -s conftest$ac_exeext'
20292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293   (eval $ac_try) 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; }; then
20297   ac_cv_search_opendir="-l$ac_lib"
20298 break
20299 else
20300   echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20302
20303 fi
20304 rm -f conftest.err conftest.$ac_objext \
20305       conftest$ac_exeext conftest.$ac_ext
20306   done
20307 fi
20308 LIBS=$ac_func_search_save_LIBS
20309 fi
20310 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20311 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20312 if test "$ac_cv_search_opendir" != no; then
20313   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20314
20315 fi
20316
20317 else
20318   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20319 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20320 if test "${ac_cv_search_opendir+set}" = set; then
20321   echo $ECHO_N "(cached) $ECHO_C" >&6
20322 else
20323   ac_func_search_save_LIBS=$LIBS
20324 ac_cv_search_opendir=no
20325 cat >conftest.$ac_ext <<_ACEOF
20326 /* confdefs.h.  */
20327 _ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h.  */
20331
20332 /* Override any gcc2 internal prototype to avoid an error.  */
20333 #ifdef __cplusplus
20334 extern "C"
20335 #endif
20336 /* We use char because int might match the return type of a gcc2
20337    builtin and then its argument prototype would still apply.  */
20338 char opendir ();
20339 int
20340 main ()
20341 {
20342 opendir ();
20343   ;
20344   return 0;
20345 }
20346 _ACEOF
20347 rm -f conftest.$ac_objext conftest$ac_exeext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20349   (eval $ac_link) 2>conftest.er1
20350   ac_status=$?
20351   grep -v '^ *+' conftest.er1 >conftest.err
20352   rm -f conftest.er1
20353   cat conftest.err >&5
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); } &&
20356          { ac_try='test -z "$ac_c_werror_flag"
20357                          || test ! -s conftest.err'
20358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359   (eval $ac_try) 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); }; } &&
20363          { ac_try='test -s conftest$ac_exeext'
20364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365   (eval $ac_try) 2>&5
20366   ac_status=$?
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); }; }; then
20369   ac_cv_search_opendir="none required"
20370 else
20371   echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20373
20374 fi
20375 rm -f conftest.err conftest.$ac_objext \
20376       conftest$ac_exeext conftest.$ac_ext
20377 if test "$ac_cv_search_opendir" = no; then
20378   for ac_lib in x; do
20379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20380     cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386
20387 /* Override any gcc2 internal prototype to avoid an error.  */
20388 #ifdef __cplusplus
20389 extern "C"
20390 #endif
20391 /* We use char because int might match the return type of a gcc2
20392    builtin and then its argument prototype would still apply.  */
20393 char opendir ();
20394 int
20395 main ()
20396 {
20397 opendir ();
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20404   (eval $ac_link) 2>conftest.er1
20405   ac_status=$?
20406   grep -v '^ *+' conftest.er1 >conftest.err
20407   rm -f conftest.er1
20408   cat conftest.err >&5
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); } &&
20411          { ac_try='test -z "$ac_c_werror_flag"
20412                          || test ! -s conftest.err'
20413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414   (eval $ac_try) 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); }; } &&
20418          { ac_try='test -s conftest$ac_exeext'
20419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420   (eval $ac_try) 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); }; }; then
20424   ac_cv_search_opendir="-l$ac_lib"
20425 break
20426 else
20427   echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430 fi
20431 rm -f conftest.err conftest.$ac_objext \
20432       conftest$ac_exeext conftest.$ac_ext
20433   done
20434 fi
20435 LIBS=$ac_func_search_save_LIBS
20436 fi
20437 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20438 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20439 if test "$ac_cv_search_opendir" != no; then
20440   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20441
20442 fi
20443
20444 fi
20445
20446 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
20447 if test "${enable_ltdl_install+set}" = set; then
20448   enableval="$enable_ltdl_install"
20449
20450 fi;
20451
20452
20453
20454 if test x"${enable_ltdl_install-no}" != xno; then
20455   INSTALL_LTDL_TRUE=
20456   INSTALL_LTDL_FALSE='#'
20457 else
20458   INSTALL_LTDL_TRUE='#'
20459   INSTALL_LTDL_FALSE=
20460 fi
20461
20462
20463
20464 if test x"${enable_ltdl_convenience-no}" != xno; then
20465   CONVENIENCE_LTDL_TRUE=
20466   CONVENIENCE_LTDL_FALSE='#'
20467 else
20468   CONVENIENCE_LTDL_TRUE='#'
20469   CONVENIENCE_LTDL_FALSE=
20470 fi
20471
20472
20473
20474 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20475 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
20476 if test "${libltdl_cv_shlibext+set}" = set; then
20477   echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20479
20480 ## GCJ LOCAL: gcj specific stuff. Please keep it.
20481 # Here in libltdl for libgcj we don't build modules for darwin.
20482 # So we say no. Then the extension gets .dylib which is the right
20483 # thing for shared libraries on darwin. Please keep me next time you
20484 # import libltdl.
20485 case "$host_os" in
20486 darwin*)
20487         module=no
20488         ;;
20489 *)
20490         module=yes
20491         ;;
20492 esac
20493 eval libltdl_cv_shlibext=$shrext_cmds
20494
20495 fi
20496 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20497 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
20498 if test -n "$libltdl_cv_shlibext"; then
20499
20500 cat >>confdefs.h <<_ACEOF
20501 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20502 _ACEOF
20503
20504 fi
20505
20506
20507 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20508 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
20509 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20510   echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20512   libltdl_cv_shlibpath_var="$shlibpath_var"
20513 fi
20514 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20515 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
20516 if test -n "$libltdl_cv_shlibpath_var"; then
20517
20518 cat >>confdefs.h <<_ACEOF
20519 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20520 _ACEOF
20521
20522 fi
20523
20524
20525 echo "$as_me:$LINENO: checking for the default library search path" >&5
20526 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
20527 if test "${libltdl_cv_sys_search_path+set}" = set; then
20528   echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20531 fi
20532 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20533 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
20534 if test -n "$libltdl_cv_sys_search_path"; then
20535   sys_search_path=
20536   for dir in $libltdl_cv_sys_search_path; do
20537     if test -z "$sys_search_path"; then
20538       sys_search_path="$dir"
20539     else
20540       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20541     fi
20542   done
20543
20544 cat >>confdefs.h <<_ACEOF
20545 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20546 _ACEOF
20547
20548 fi
20549
20550 echo "$as_me:$LINENO: checking for objdir" >&5
20551 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
20552 if test "${libltdl_cv_objdir+set}" = set; then
20553   echo $ECHO_N "(cached) $ECHO_C" >&6
20554 else
20555   libltdl_cv_objdir="$objdir"
20556   if test -n "$objdir"; then
20557     :
20558   else
20559     rm -f .libs 2>/dev/null
20560     mkdir .libs 2>/dev/null
20561     if test -d .libs; then
20562       libltdl_cv_objdir=.libs
20563     else
20564       # MS-DOS does not allow filenames that begin with a dot.
20565       libltdl_cv_objdir=_libs
20566     fi
20567   rmdir .libs 2>/dev/null
20568   fi
20569
20570 fi
20571 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20572 echo "${ECHO_T}$libltdl_cv_objdir" >&6
20573
20574 cat >>confdefs.h <<_ACEOF
20575 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20576 _ACEOF
20577
20578
20579
20580 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20581 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
20582 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20583   echo $ECHO_N "(cached) $ECHO_C" >&6
20584 else
20585   if test -n "$lt_cv_sys_global_symbol_pipe"; then
20586     libltdl_cv_preloaded_symbols=yes
20587   else
20588     libltdl_cv_preloaded_symbols=no
20589   fi
20590
20591 fi
20592 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20593 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
20594 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20595
20596 cat >>confdefs.h <<\_ACEOF
20597 #define HAVE_PRELOADED_SYMBOLS 1
20598 _ACEOF
20599
20600 fi
20601
20602 LIBADD_DL=
20603
20604 ac_ext=c
20605 ac_cpp='$CPP $CPPFLAGS'
20606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20609
20610
20611 echo "$as_me:$LINENO: checking for shl_load" >&5
20612 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20613 if test "${ac_cv_func_shl_load+set}" = set; then
20614   echo $ECHO_N "(cached) $ECHO_C" >&6
20615 else
20616   cat >conftest.$ac_ext <<_ACEOF
20617 /* confdefs.h.  */
20618 _ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h.  */
20622 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20624 #define shl_load innocuous_shl_load
20625
20626 /* System header to define __stub macros and hopefully few prototypes,
20627     which can conflict with char shl_load (); below.
20628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20629     <limits.h> exists even on freestanding compilers.  */
20630
20631 #ifdef __STDC__
20632 # include <limits.h>
20633 #else
20634 # include <assert.h>
20635 #endif
20636
20637 #undef shl_load
20638
20639 /* Override any gcc2 internal prototype to avoid an error.  */
20640 #ifdef __cplusplus
20641 extern "C"
20642 {
20643 #endif
20644 /* We use char because int might match the return type of a gcc2
20645    builtin and then its argument prototype would still apply.  */
20646 char shl_load ();
20647 /* The GNU C library defines this for functions which it implements
20648     to always fail with ENOSYS.  Some functions are actually named
20649     something starting with __ and the normal name is an alias.  */
20650 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20651 choke me
20652 #else
20653 char (*f) () = shl_load;
20654 #endif
20655 #ifdef __cplusplus
20656 }
20657 #endif
20658
20659 int
20660 main ()
20661 {
20662 return f != shl_load;
20663   ;
20664   return 0;
20665 }
20666 _ACEOF
20667 rm -f conftest.$ac_objext conftest$ac_exeext
20668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20669   (eval $ac_link) 2>conftest.er1
20670   ac_status=$?
20671   grep -v '^ *+' conftest.er1 >conftest.err
20672   rm -f conftest.er1
20673   cat conftest.err >&5
20674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675   (exit $ac_status); } &&
20676          { ac_try='test -z "$ac_c_werror_flag"
20677                          || test ! -s conftest.err'
20678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679   (eval $ac_try) 2>&5
20680   ac_status=$?
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); }; } &&
20683          { ac_try='test -s conftest$ac_exeext'
20684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685   (eval $ac_try) 2>&5
20686   ac_status=$?
20687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   (exit $ac_status); }; }; then
20689   ac_cv_func_shl_load=yes
20690 else
20691   echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20693
20694 ac_cv_func_shl_load=no
20695 fi
20696 rm -f conftest.err conftest.$ac_objext \
20697       conftest$ac_exeext conftest.$ac_ext
20698 fi
20699 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20700 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20701 if test $ac_cv_func_shl_load = yes; then
20702
20703 cat >>confdefs.h <<\_ACEOF
20704 #define HAVE_SHL_LOAD 1
20705 _ACEOF
20706
20707 else
20708   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20709 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20710 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20711   echo $ECHO_N "(cached) $ECHO_C" >&6
20712 else
20713   ac_check_lib_save_LIBS=$LIBS
20714 LIBS="-ldld  $LIBS"
20715 cat >conftest.$ac_ext <<_ACEOF
20716 /* confdefs.h.  */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h.  */
20721
20722 /* Override any gcc2 internal prototype to avoid an error.  */
20723 #ifdef __cplusplus
20724 extern "C"
20725 #endif
20726 /* We use char because int might match the return type of a gcc2
20727    builtin and then its argument prototype would still apply.  */
20728 char shl_load ();
20729 int
20730 main ()
20731 {
20732 shl_load ();
20733   ;
20734   return 0;
20735 }
20736 _ACEOF
20737 rm -f conftest.$ac_objext conftest$ac_exeext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20739   (eval $ac_link) 2>conftest.er1
20740   ac_status=$?
20741   grep -v '^ *+' conftest.er1 >conftest.err
20742   rm -f conftest.er1
20743   cat conftest.err >&5
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); } &&
20746          { ac_try='test -z "$ac_c_werror_flag"
20747                          || test ! -s conftest.err'
20748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749   (eval $ac_try) 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); }; } &&
20753          { ac_try='test -s conftest$ac_exeext'
20754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755   (eval $ac_try) 2>&5
20756   ac_status=$?
20757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); }; }; then
20759   ac_cv_lib_dld_shl_load=yes
20760 else
20761   echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20763
20764 ac_cv_lib_dld_shl_load=no
20765 fi
20766 rm -f conftest.err conftest.$ac_objext \
20767       conftest$ac_exeext conftest.$ac_ext
20768 LIBS=$ac_check_lib_save_LIBS
20769 fi
20770 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20771 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20772 if test $ac_cv_lib_dld_shl_load = yes; then
20773
20774 cat >>confdefs.h <<\_ACEOF
20775 #define HAVE_SHL_LOAD 1
20776 _ACEOF
20777
20778         LIBADD_DL="$LIBADD_DL -ldld"
20779 else
20780   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20781 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20782 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20783   echo $ECHO_N "(cached) $ECHO_C" >&6
20784 else
20785   ac_check_lib_save_LIBS=$LIBS
20786 LIBS="-ldl  $LIBS"
20787 cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793
20794 /* Override any gcc2 internal prototype to avoid an error.  */
20795 #ifdef __cplusplus
20796 extern "C"
20797 #endif
20798 /* We use char because int might match the return type of a gcc2
20799    builtin and then its argument prototype would still apply.  */
20800 char dlopen ();
20801 int
20802 main ()
20803 {
20804 dlopen ();
20805   ;
20806   return 0;
20807 }
20808 _ACEOF
20809 rm -f conftest.$ac_objext conftest$ac_exeext
20810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20811   (eval $ac_link) 2>conftest.er1
20812   ac_status=$?
20813   grep -v '^ *+' conftest.er1 >conftest.err
20814   rm -f conftest.er1
20815   cat conftest.err >&5
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); } &&
20818          { ac_try='test -z "$ac_c_werror_flag"
20819                          || test ! -s conftest.err'
20820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821   (eval $ac_try) 2>&5
20822   ac_status=$?
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); }; } &&
20825          { ac_try='test -s conftest$ac_exeext'
20826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827   (eval $ac_try) 2>&5
20828   ac_status=$?
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); }; }; then
20831   ac_cv_lib_dl_dlopen=yes
20832 else
20833   echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20835
20836 ac_cv_lib_dl_dlopen=no
20837 fi
20838 rm -f conftest.err conftest.$ac_objext \
20839       conftest$ac_exeext conftest.$ac_ext
20840 LIBS=$ac_check_lib_save_LIBS
20841 fi
20842 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20843 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20844 if test $ac_cv_lib_dl_dlopen = yes; then
20845
20846 cat >>confdefs.h <<\_ACEOF
20847 #define HAVE_LIBDL 1
20848 _ACEOF
20849
20850                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20851 else
20852   cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h.  */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h.  */
20858 #if HAVE_DLFCN_H
20859 #  include <dlfcn.h>
20860 #endif
20861
20862 int
20863 main ()
20864 {
20865 dlopen(0, 0);
20866   ;
20867   return 0;
20868 }
20869 _ACEOF
20870 rm -f conftest.$ac_objext conftest$ac_exeext
20871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20872   (eval $ac_link) 2>conftest.er1
20873   ac_status=$?
20874   grep -v '^ *+' conftest.er1 >conftest.err
20875   rm -f conftest.er1
20876   cat conftest.err >&5
20877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878   (exit $ac_status); } &&
20879          { ac_try='test -z "$ac_c_werror_flag"
20880                          || test ! -s conftest.err'
20881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882   (eval $ac_try) 2>&5
20883   ac_status=$?
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); }; } &&
20886          { ac_try='test -s conftest$ac_exeext'
20887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888   (eval $ac_try) 2>&5
20889   ac_status=$?
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); }; }; then
20892
20893 cat >>confdefs.h <<\_ACEOF
20894 #define HAVE_LIBDL 1
20895 _ACEOF
20896  libltdl_cv_func_dlopen="yes"
20897 else
20898   echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20900
20901 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20902 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20903 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20904   echo $ECHO_N "(cached) $ECHO_C" >&6
20905 else
20906   ac_check_lib_save_LIBS=$LIBS
20907 LIBS="-lsvld  $LIBS"
20908 cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h.  */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h.  */
20914
20915 /* Override any gcc2 internal prototype to avoid an error.  */
20916 #ifdef __cplusplus
20917 extern "C"
20918 #endif
20919 /* We use char because int might match the return type of a gcc2
20920    builtin and then its argument prototype would still apply.  */
20921 char dlopen ();
20922 int
20923 main ()
20924 {
20925 dlopen ();
20926   ;
20927   return 0;
20928 }
20929 _ACEOF
20930 rm -f conftest.$ac_objext conftest$ac_exeext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20932   (eval $ac_link) 2>conftest.er1
20933   ac_status=$?
20934   grep -v '^ *+' conftest.er1 >conftest.err
20935   rm -f conftest.er1
20936   cat conftest.err >&5
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); } &&
20939          { ac_try='test -z "$ac_c_werror_flag"
20940                          || test ! -s conftest.err'
20941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942   (eval $ac_try) 2>&5
20943   ac_status=$?
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); }; } &&
20946          { ac_try='test -s conftest$ac_exeext'
20947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948   (eval $ac_try) 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; }; then
20952   ac_cv_lib_svld_dlopen=yes
20953 else
20954   echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957 ac_cv_lib_svld_dlopen=no
20958 fi
20959 rm -f conftest.err conftest.$ac_objext \
20960       conftest$ac_exeext conftest.$ac_ext
20961 LIBS=$ac_check_lib_save_LIBS
20962 fi
20963 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20964 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20965 if test $ac_cv_lib_svld_dlopen = yes; then
20966
20967 cat >>confdefs.h <<\_ACEOF
20968 #define HAVE_LIBDL 1
20969 _ACEOF
20970
20971                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20972 else
20973   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20974 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20975 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20976   echo $ECHO_N "(cached) $ECHO_C" >&6
20977 else
20978   ac_check_lib_save_LIBS=$LIBS
20979 LIBS="-ldld  $LIBS"
20980 cat >conftest.$ac_ext <<_ACEOF
20981 /* confdefs.h.  */
20982 _ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h.  */
20986
20987 /* Override any gcc2 internal prototype to avoid an error.  */
20988 #ifdef __cplusplus
20989 extern "C"
20990 #endif
20991 /* We use char because int might match the return type of a gcc2
20992    builtin and then its argument prototype would still apply.  */
20993 char dld_link ();
20994 int
20995 main ()
20996 {
20997 dld_link ();
20998   ;
20999   return 0;
21000 }
21001 _ACEOF
21002 rm -f conftest.$ac_objext conftest$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004   (eval $ac_link) 2>conftest.er1
21005   ac_status=$?
21006   grep -v '^ *+' conftest.er1 >conftest.err
21007   rm -f conftest.er1
21008   cat conftest.err >&5
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); } &&
21011          { ac_try='test -z "$ac_c_werror_flag"
21012                          || test ! -s conftest.err'
21013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014   (eval $ac_try) 2>&5
21015   ac_status=$?
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); }; } &&
21018          { ac_try='test -s conftest$ac_exeext'
21019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020   (eval $ac_try) 2>&5
21021   ac_status=$?
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); }; }; then
21024   ac_cv_lib_dld_dld_link=yes
21025 else
21026   echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029 ac_cv_lib_dld_dld_link=no
21030 fi
21031 rm -f conftest.err conftest.$ac_objext \
21032       conftest$ac_exeext conftest.$ac_ext
21033 LIBS=$ac_check_lib_save_LIBS
21034 fi
21035 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21036 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21037 if test $ac_cv_lib_dld_dld_link = yes; then
21038
21039 cat >>confdefs.h <<\_ACEOF
21040 #define HAVE_DLD 1
21041 _ACEOF
21042
21043                 LIBADD_DL="$LIBADD_DL -ldld"
21044 else
21045   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
21046 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
21047 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21048   echo $ECHO_N "(cached) $ECHO_C" >&6
21049 else
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 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21058 #define _dyld_func_lookup innocuous__dyld_func_lookup
21059
21060 /* System header to define __stub macros and hopefully few prototypes,
21061     which can conflict with char _dyld_func_lookup (); below.
21062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21063     <limits.h> exists even on freestanding compilers.  */
21064
21065 #ifdef __STDC__
21066 # include <limits.h>
21067 #else
21068 # include <assert.h>
21069 #endif
21070
21071 #undef _dyld_func_lookup
21072
21073 /* Override any gcc2 internal prototype to avoid an error.  */
21074 #ifdef __cplusplus
21075 extern "C"
21076 {
21077 #endif
21078 /* We use char because int might match the return type of a gcc2
21079    builtin and then its argument prototype would still apply.  */
21080 char _dyld_func_lookup ();
21081 /* The GNU C library defines this for functions which it implements
21082     to always fail with ENOSYS.  Some functions are actually named
21083     something starting with __ and the normal name is an alias.  */
21084 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
21085 choke me
21086 #else
21087 char (*f) () = _dyld_func_lookup;
21088 #endif
21089 #ifdef __cplusplus
21090 }
21091 #endif
21092
21093 int
21094 main ()
21095 {
21096 return f != _dyld_func_lookup;
21097   ;
21098   return 0;
21099 }
21100 _ACEOF
21101 rm -f conftest.$ac_objext conftest$ac_exeext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21103   (eval $ac_link) 2>conftest.er1
21104   ac_status=$?
21105   grep -v '^ *+' conftest.er1 >conftest.err
21106   rm -f conftest.er1
21107   cat conftest.err >&5
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); } &&
21110          { ac_try='test -z "$ac_c_werror_flag"
21111                          || test ! -s conftest.err'
21112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113   (eval $ac_try) 2>&5
21114   ac_status=$?
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); }; } &&
21117          { ac_try='test -s conftest$ac_exeext'
21118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119   (eval $ac_try) 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); }; }; then
21123   ac_cv_func__dyld_func_lookup=yes
21124 else
21125   echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 ac_cv_func__dyld_func_lookup=no
21129 fi
21130 rm -f conftest.err conftest.$ac_objext \
21131       conftest$ac_exeext conftest.$ac_ext
21132 fi
21133 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
21134 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
21135 if test $ac_cv_func__dyld_func_lookup = yes; then
21136
21137 cat >>confdefs.h <<\_ACEOF
21138 #define HAVE_DYLD 1
21139 _ACEOF
21140
21141 fi
21142
21143
21144 fi
21145
21146
21147 fi
21148
21149
21150 fi
21151 rm -f conftest.err conftest.$ac_objext \
21152       conftest$ac_exeext conftest.$ac_ext
21153
21154 fi
21155
21156
21157 fi
21158
21159
21160 fi
21161
21162
21163 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21164 then
21165   lt_save_LIBS="$LIBS"
21166   LIBS="$LIBS $LIBADD_DL"
21167
21168 for ac_func in dlerror
21169 do
21170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21171 echo "$as_me:$LINENO: checking for $ac_func" >&5
21172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21173 if eval "test \"\${$as_ac_var+set}\" = set"; then
21174   echo $ECHO_N "(cached) $ECHO_C" >&6
21175 else
21176   cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h.  */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h.  */
21182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21184 #define $ac_func innocuous_$ac_func
21185
21186 /* System header to define __stub macros and hopefully few prototypes,
21187     which can conflict with char $ac_func (); below.
21188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21189     <limits.h> exists even on freestanding compilers.  */
21190
21191 #ifdef __STDC__
21192 # include <limits.h>
21193 #else
21194 # include <assert.h>
21195 #endif
21196
21197 #undef $ac_func
21198
21199 /* Override any gcc2 internal prototype to avoid an error.  */
21200 #ifdef __cplusplus
21201 extern "C"
21202 {
21203 #endif
21204 /* We use char because int might match the return type of a gcc2
21205    builtin and then its argument prototype would still apply.  */
21206 char $ac_func ();
21207 /* The GNU C library defines this for functions which it implements
21208     to always fail with ENOSYS.  Some functions are actually named
21209     something starting with __ and the normal name is an alias.  */
21210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21211 choke me
21212 #else
21213 char (*f) () = $ac_func;
21214 #endif
21215 #ifdef __cplusplus
21216 }
21217 #endif
21218
21219 int
21220 main ()
21221 {
21222 return f != $ac_func;
21223   ;
21224   return 0;
21225 }
21226 _ACEOF
21227 rm -f conftest.$ac_objext conftest$ac_exeext
21228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21229   (eval $ac_link) 2>conftest.er1
21230   ac_status=$?
21231   grep -v '^ *+' conftest.er1 >conftest.err
21232   rm -f conftest.er1
21233   cat conftest.err >&5
21234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235   (exit $ac_status); } &&
21236          { ac_try='test -z "$ac_c_werror_flag"
21237                          || test ! -s conftest.err'
21238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239   (eval $ac_try) 2>&5
21240   ac_status=$?
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); }; } &&
21243          { ac_try='test -s conftest$ac_exeext'
21244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245   (eval $ac_try) 2>&5
21246   ac_status=$?
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); }; }; then
21249   eval "$as_ac_var=yes"
21250 else
21251   echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253
21254 eval "$as_ac_var=no"
21255 fi
21256 rm -f conftest.err conftest.$ac_objext \
21257       conftest$ac_exeext conftest.$ac_ext
21258 fi
21259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21261 if test `eval echo '${'$as_ac_var'}'` = yes; then
21262   cat >>confdefs.h <<_ACEOF
21263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21264 _ACEOF
21265
21266 fi
21267 done
21268
21269   LIBS="$lt_save_LIBS"
21270 fi
21271 ac_ext=c
21272 ac_cpp='$CPP $CPPFLAGS'
21273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21276
21277
21278
21279 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21280 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
21281 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21282   echo $ECHO_N "(cached) $ECHO_C" >&6
21283 else
21284   ac_cv_sys_symbol_underscore=no
21285   cat > conftest.$ac_ext <<EOF
21286 void nm_test_func(){}
21287 int main(){nm_test_func;return 0;}
21288 EOF
21289   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21290   (eval $ac_compile) 2>&5
21291   ac_status=$?
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); }; then
21294     # Now try to grab the symbols.
21295     ac_nlist=conftest.nm
21296     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21297   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21298   ac_status=$?
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); } && test -s "$ac_nlist"; then
21301       # See whether the symbols have a leading underscore.
21302       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21303         ac_cv_sys_symbol_underscore=yes
21304       else
21305         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21306           :
21307         else
21308           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21309         fi
21310       fi
21311     else
21312       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21313     fi
21314   else
21315     echo "configure: failed program was:" >&5
21316     cat conftest.c >&5
21317   fi
21318   rm -rf conftest*
21319
21320 fi
21321 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21322 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
21323
21324
21325 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21326   if test x"$libltdl_cv_func_dlopen" = xyes ||
21327      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21328         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21329 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
21330 if test "${libltdl_cv_need_uscore+set}" = set; then
21331   echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333   libltdl_cv_need_uscore=unknown
21334           save_LIBS="$LIBS"
21335           LIBS="$LIBS $LIBADD_DL"
21336           if test "$cross_compiling" = yes; then :
21337   libltdl_cv_need_uscore=cross
21338 else
21339   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21340   lt_status=$lt_dlunknown
21341   cat > conftest.$ac_ext <<EOF
21342 #line 21342 "configure"
21343 #include "confdefs.h"
21344
21345 #if HAVE_DLFCN_H
21346 #include <dlfcn.h>
21347 #endif
21348
21349 #include <stdio.h>
21350
21351 #ifdef RTLD_GLOBAL
21352 #  define LT_DLGLOBAL           RTLD_GLOBAL
21353 #else
21354 #  ifdef DL_GLOBAL
21355 #    define LT_DLGLOBAL         DL_GLOBAL
21356 #  else
21357 #    define LT_DLGLOBAL         0
21358 #  endif
21359 #endif
21360
21361 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21362    find out it does not work in some platform. */
21363 #ifndef LT_DLLAZY_OR_NOW
21364 #  ifdef RTLD_LAZY
21365 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21366 #  else
21367 #    ifdef DL_LAZY
21368 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21369 #    else
21370 #      ifdef RTLD_NOW
21371 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21372 #      else
21373 #        ifdef DL_NOW
21374 #          define LT_DLLAZY_OR_NOW      DL_NOW
21375 #        else
21376 #          define LT_DLLAZY_OR_NOW      0
21377 #        endif
21378 #      endif
21379 #    endif
21380 #  endif
21381 #endif
21382
21383 #ifdef __cplusplus
21384 extern "C" void exit (int);
21385 #endif
21386
21387 void fnord() { int i=42;}
21388 int main ()
21389 {
21390   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21391   int status = $lt_dlunknown;
21392
21393   if (self)
21394     {
21395       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21396       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21397       /* dlclose (self); */
21398     }
21399
21400     exit (status);
21401 }
21402 EOF
21403   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21404   (eval $ac_link) 2>&5
21405   ac_status=$?
21406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21408     (./conftest; exit; ) 2>/dev/null
21409     lt_status=$?
21410     case x$lt_status in
21411       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21412       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21413       x$lt_unknown|x*)  ;;
21414     esac
21415   else :
21416     # compilation failed
21417
21418   fi
21419 fi
21420 rm -fr conftest*
21421
21422           LIBS="$save_LIBS"
21423
21424 fi
21425 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21426 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
21427   fi
21428 fi
21429
21430 if test x"$libltdl_cv_need_uscore" = xyes; then
21431
21432 cat >>confdefs.h <<\_ACEOF
21433 #define NEED_USCORE 1
21434 _ACEOF
21435
21436 fi
21437
21438
21439 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21440 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
21441 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21442   echo $ECHO_N "(cached) $ECHO_C" >&6
21443 else
21444   # PORTME does your system automatically load deplibs for dlopen?
21445   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21446   # For now, we just catch OSes we know something about -- in the
21447   # future, we'll try test this programmatically.
21448   libltdl_cv_sys_dlopen_deplibs=unknown
21449   case "$host_os" in
21450   aix3*|aix4.1.*|aix4.2.*)
21451     # Unknown whether this is true for these versions of AIX, but
21452     # we want this `case' here to explicitly catch those versions.
21453     libltdl_cv_sys_dlopen_deplibs=unknown
21454     ;;
21455   aix[45]*)
21456     libltdl_cv_sys_dlopen_deplibs=yes
21457     ;;
21458   darwin*)
21459     # Assuming the user has installed a libdl from somewhere, this is true
21460     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21461     libltdl_cv_sys_dlopen_deplibs=yes
21462     ;;
21463   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21464     # GNU and its variants, using gnu ld.so (Glibc)
21465     libltdl_cv_sys_dlopen_deplibs=yes
21466     ;;
21467   hpux10*|hpux11*)
21468     libltdl_cv_sys_dlopen_deplibs=yes
21469     ;;
21470   irix[12345]*|irix6.[01]*)
21471     # Catch all versions of IRIX before 6.2, and indicate that we don't
21472     # know how it worked for any of those versions.
21473     libltdl_cv_sys_dlopen_deplibs=unknown
21474     ;;
21475   irix*)
21476     # The case above catches anything before 6.2, and it's known that
21477     # at 6.2 and later dlopen does load deplibs.
21478     libltdl_cv_sys_dlopen_deplibs=yes
21479     ;;
21480   netbsd*)
21481     libltdl_cv_sys_dlopen_deplibs=yes
21482     ;;
21483   openbsd*)
21484     libltdl_cv_sys_dlopen_deplibs=yes
21485     ;;
21486   osf[1234]*)
21487     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21488     # it did *not* use an RPATH in a shared library to find objects the
21489     # library depends on, so we explictly say `no'.
21490     libltdl_cv_sys_dlopen_deplibs=no
21491     ;;
21492   osf5.0|osf5.0a|osf5.1)
21493     # dlopen *does* load deplibs and with the right loader patch applied
21494     # it even uses RPATH in a shared library to search for shared objects
21495     # that the library depends on, but there's no easy way to know if that
21496     # patch is installed.  Since this is the case, all we can really
21497     # say is unknown -- it depends on the patch being installed.  If
21498     # it is, this changes to `yes'.  Without it, it would be `no'.
21499     libltdl_cv_sys_dlopen_deplibs=unknown
21500     ;;
21501   osf*)
21502     # the two cases above should catch all versions of osf <= 5.1.  Read
21503     # the comments above for what we know about them.
21504     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21505     # is used to find them so we can finally say `yes'.
21506     libltdl_cv_sys_dlopen_deplibs=yes
21507     ;;
21508   solaris*)
21509     libltdl_cv_sys_dlopen_deplibs=yes
21510     ;;
21511   esac
21512
21513 fi
21514 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21515 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
21516 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21517
21518 cat >>confdefs.h <<\_ACEOF
21519 #define LTDL_DLOPEN_DEPLIBS 1
21520 _ACEOF
21521
21522 fi
21523
21524
21525 for ac_header in argz.h
21526 do
21527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21529   echo "$as_me:$LINENO: checking for $ac_header" >&5
21530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21532   echo $ECHO_N "(cached) $ECHO_C" >&6
21533 fi
21534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21536 else
21537   # Is the header compilable?
21538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21540 cat >conftest.$ac_ext <<_ACEOF
21541 /* confdefs.h.  */
21542 _ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h.  */
21546 $ac_includes_default
21547 #include <$ac_header>
21548 _ACEOF
21549 rm -f conftest.$ac_objext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21551   (eval $ac_compile) 2>conftest.er1
21552   ac_status=$?
21553   grep -v '^ *+' conftest.er1 >conftest.err
21554   rm -f conftest.er1
21555   cat conftest.err >&5
21556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557   (exit $ac_status); } &&
21558          { ac_try='test -z "$ac_c_werror_flag"
21559                          || test ! -s conftest.err'
21560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561   (eval $ac_try) 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); }; } &&
21565          { ac_try='test -s conftest.$ac_objext'
21566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567   (eval $ac_try) 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; }; then
21571   ac_header_compiler=yes
21572 else
21573   echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21575
21576 ac_header_compiler=no
21577 fi
21578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21580 echo "${ECHO_T}$ac_header_compiler" >&6
21581
21582 # Is the header present?
21583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21585 cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h.  */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h.  */
21591 #include <$ac_header>
21592 _ACEOF
21593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21595   ac_status=$?
21596   grep -v '^ *+' conftest.er1 >conftest.err
21597   rm -f conftest.er1
21598   cat conftest.err >&5
21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); } >/dev/null; then
21601   if test -s conftest.err; then
21602     ac_cpp_err=$ac_c_preproc_warn_flag
21603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21604   else
21605     ac_cpp_err=
21606   fi
21607 else
21608   ac_cpp_err=yes
21609 fi
21610 if test -z "$ac_cpp_err"; then
21611   ac_header_preproc=yes
21612 else
21613   echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616   ac_header_preproc=no
21617 fi
21618 rm -f conftest.err conftest.$ac_ext
21619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21620 echo "${ECHO_T}$ac_header_preproc" >&6
21621
21622 # So?  What about this header?
21623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21624   yes:no: )
21625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21629     ac_header_preproc=yes
21630     ;;
21631   no:yes:* )
21632     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21634     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21635 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21636     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21638     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21639 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21642     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21644     (
21645       cat <<\_ASBOX
21646 ## ---------------------------------- ##
21647 ## Report this to bug-libtool@gnu.org ##
21648 ## ---------------------------------- ##
21649 _ASBOX
21650     ) |
21651       sed "s/^/$as_me: WARNING:     /" >&2
21652     ;;
21653 esac
21654 echo "$as_me:$LINENO: checking for $ac_header" >&5
21655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21657   echo $ECHO_N "(cached) $ECHO_C" >&6
21658 else
21659   eval "$as_ac_Header=\$ac_header_preproc"
21660 fi
21661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21663
21664 fi
21665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21666   cat >>confdefs.h <<_ACEOF
21667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21668 _ACEOF
21669
21670 fi
21671
21672 done
21673
21674
21675 echo "$as_me:$LINENO: checking for error_t" >&5
21676 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
21677 if test "${ac_cv_type_error_t+set}" = set; then
21678   echo $ECHO_N "(cached) $ECHO_C" >&6
21679 else
21680   cat >conftest.$ac_ext <<_ACEOF
21681 /* confdefs.h.  */
21682 _ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h.  */
21686 #if HAVE_ARGZ_H
21687 #  include <argz.h>
21688 #endif
21689
21690 int
21691 main ()
21692 {
21693 if ((error_t *) 0)
21694   return 0;
21695 if (sizeof (error_t))
21696   return 0;
21697   ;
21698   return 0;
21699 }
21700 _ACEOF
21701 rm -f conftest.$ac_objext
21702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703   (eval $ac_compile) 2>conftest.er1
21704   ac_status=$?
21705   grep -v '^ *+' conftest.er1 >conftest.err
21706   rm -f conftest.er1
21707   cat conftest.err >&5
21708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709   (exit $ac_status); } &&
21710          { ac_try='test -z "$ac_c_werror_flag"
21711                          || test ! -s conftest.err'
21712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713   (eval $ac_try) 2>&5
21714   ac_status=$?
21715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716   (exit $ac_status); }; } &&
21717          { ac_try='test -s conftest.$ac_objext'
21718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719   (eval $ac_try) 2>&5
21720   ac_status=$?
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); }; }; then
21723   ac_cv_type_error_t=yes
21724 else
21725   echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21727
21728 ac_cv_type_error_t=no
21729 fi
21730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21731 fi
21732 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21733 echo "${ECHO_T}$ac_cv_type_error_t" >&6
21734 if test $ac_cv_type_error_t = yes; then
21735
21736 cat >>confdefs.h <<_ACEOF
21737 #define HAVE_ERROR_T 1
21738 _ACEOF
21739
21740
21741 else
21742
21743 cat >>confdefs.h <<\_ACEOF
21744 #define error_t int
21745 _ACEOF
21746
21747 fi
21748
21749
21750
21751
21752
21753
21754
21755 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21756 do
21757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21758 echo "$as_me:$LINENO: checking for $ac_func" >&5
21759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21760 if eval "test \"\${$as_ac_var+set}\" = set"; then
21761   echo $ECHO_N "(cached) $ECHO_C" >&6
21762 else
21763   cat >conftest.$ac_ext <<_ACEOF
21764 /* confdefs.h.  */
21765 _ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h.  */
21769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21771 #define $ac_func innocuous_$ac_func
21772
21773 /* System header to define __stub macros and hopefully few prototypes,
21774     which can conflict with char $ac_func (); below.
21775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21776     <limits.h> exists even on freestanding compilers.  */
21777
21778 #ifdef __STDC__
21779 # include <limits.h>
21780 #else
21781 # include <assert.h>
21782 #endif
21783
21784 #undef $ac_func
21785
21786 /* Override any gcc2 internal prototype to avoid an error.  */
21787 #ifdef __cplusplus
21788 extern "C"
21789 {
21790 #endif
21791 /* We use char because int might match the return type of a gcc2
21792    builtin and then its argument prototype would still apply.  */
21793 char $ac_func ();
21794 /* The GNU C library defines this for functions which it implements
21795     to always fail with ENOSYS.  Some functions are actually named
21796     something starting with __ and the normal name is an alias.  */
21797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21798 choke me
21799 #else
21800 char (*f) () = $ac_func;
21801 #endif
21802 #ifdef __cplusplus
21803 }
21804 #endif
21805
21806 int
21807 main ()
21808 {
21809 return f != $ac_func;
21810   ;
21811   return 0;
21812 }
21813 _ACEOF
21814 rm -f conftest.$ac_objext conftest$ac_exeext
21815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21816   (eval $ac_link) 2>conftest.er1
21817   ac_status=$?
21818   grep -v '^ *+' conftest.er1 >conftest.err
21819   rm -f conftest.er1
21820   cat conftest.err >&5
21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); } &&
21823          { ac_try='test -z "$ac_c_werror_flag"
21824                          || test ! -s conftest.err'
21825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826   (eval $ac_try) 2>&5
21827   ac_status=$?
21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829   (exit $ac_status); }; } &&
21830          { ac_try='test -s conftest$ac_exeext'
21831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832   (eval $ac_try) 2>&5
21833   ac_status=$?
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); }; }; then
21836   eval "$as_ac_var=yes"
21837 else
21838   echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21840
21841 eval "$as_ac_var=no"
21842 fi
21843 rm -f conftest.err conftest.$ac_objext \
21844       conftest$ac_exeext conftest.$ac_ext
21845 fi
21846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21848 if test `eval echo '${'$as_ac_var'}'` = yes; then
21849   cat >>confdefs.h <<_ACEOF
21850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21851 _ACEOF
21852
21853 fi
21854 done
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21884                   stdio.h unistd.h
21885 do
21886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21888   echo "$as_me:$LINENO: checking for $ac_header" >&5
21889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21891   echo $ECHO_N "(cached) $ECHO_C" >&6
21892 fi
21893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21895 else
21896   # Is the header compilable?
21897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21899 cat >conftest.$ac_ext <<_ACEOF
21900 /* confdefs.h.  */
21901 _ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h.  */
21905 $ac_includes_default
21906 #include <$ac_header>
21907 _ACEOF
21908 rm -f conftest.$ac_objext
21909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21910   (eval $ac_compile) 2>conftest.er1
21911   ac_status=$?
21912   grep -v '^ *+' conftest.er1 >conftest.err
21913   rm -f conftest.er1
21914   cat conftest.err >&5
21915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916   (exit $ac_status); } &&
21917          { ac_try='test -z "$ac_c_werror_flag"
21918                          || test ! -s conftest.err'
21919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920   (eval $ac_try) 2>&5
21921   ac_status=$?
21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); }; } &&
21924          { ac_try='test -s conftest.$ac_objext'
21925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926   (eval $ac_try) 2>&5
21927   ac_status=$?
21928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929   (exit $ac_status); }; }; then
21930   ac_header_compiler=yes
21931 else
21932   echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21934
21935 ac_header_compiler=no
21936 fi
21937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21939 echo "${ECHO_T}$ac_header_compiler" >&6
21940
21941 # Is the header present?
21942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21944 cat >conftest.$ac_ext <<_ACEOF
21945 /* confdefs.h.  */
21946 _ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h.  */
21950 #include <$ac_header>
21951 _ACEOF
21952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21954   ac_status=$?
21955   grep -v '^ *+' conftest.er1 >conftest.err
21956   rm -f conftest.er1
21957   cat conftest.err >&5
21958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959   (exit $ac_status); } >/dev/null; then
21960   if test -s conftest.err; then
21961     ac_cpp_err=$ac_c_preproc_warn_flag
21962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21963   else
21964     ac_cpp_err=
21965   fi
21966 else
21967   ac_cpp_err=yes
21968 fi
21969 if test -z "$ac_cpp_err"; then
21970   ac_header_preproc=yes
21971 else
21972   echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21974
21975   ac_header_preproc=no
21976 fi
21977 rm -f conftest.err conftest.$ac_ext
21978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21979 echo "${ECHO_T}$ac_header_preproc" >&6
21980
21981 # So?  What about this header?
21982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21983   yes:no: )
21984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21988     ac_header_preproc=yes
21989     ;;
21990   no:yes:* )
21991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21993     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21994 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21995     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21997     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21998 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22001     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22003     (
22004       cat <<\_ASBOX
22005 ## ---------------------------------- ##
22006 ## Report this to bug-libtool@gnu.org ##
22007 ## ---------------------------------- ##
22008 _ASBOX
22009     ) |
22010       sed "s/^/$as_me: WARNING:     /" >&2
22011     ;;
22012 esac
22013 echo "$as_me:$LINENO: checking for $ac_header" >&5
22014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22016   echo $ECHO_N "(cached) $ECHO_C" >&6
22017 else
22018   eval "$as_ac_Header=\$ac_header_preproc"
22019 fi
22020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22022
22023 fi
22024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22025   cat >>confdefs.h <<_ACEOF
22026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22027 _ACEOF
22028
22029 fi
22030
22031 done
22032
22033
22034
22035
22036
22037 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
22038 do
22039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22041   echo "$as_me:$LINENO: checking for $ac_header" >&5
22042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22044   echo $ECHO_N "(cached) $ECHO_C" >&6
22045 fi
22046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22048 else
22049   # Is the header compilable?
22050 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22052 cat >conftest.$ac_ext <<_ACEOF
22053 /* confdefs.h.  */
22054 _ACEOF
22055 cat confdefs.h >>conftest.$ac_ext
22056 cat >>conftest.$ac_ext <<_ACEOF
22057 /* end confdefs.h.  */
22058 $ac_includes_default
22059 #include <$ac_header>
22060 _ACEOF
22061 rm -f conftest.$ac_objext
22062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22063   (eval $ac_compile) 2>conftest.er1
22064   ac_status=$?
22065   grep -v '^ *+' conftest.er1 >conftest.err
22066   rm -f conftest.er1
22067   cat conftest.err >&5
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); } &&
22070          { ac_try='test -z "$ac_c_werror_flag"
22071                          || test ! -s conftest.err'
22072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073   (eval $ac_try) 2>&5
22074   ac_status=$?
22075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); }; } &&
22077          { ac_try='test -s conftest.$ac_objext'
22078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079   (eval $ac_try) 2>&5
22080   ac_status=$?
22081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082   (exit $ac_status); }; }; then
22083   ac_header_compiler=yes
22084 else
22085   echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22087
22088 ac_header_compiler=no
22089 fi
22090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22092 echo "${ECHO_T}$ac_header_compiler" >&6
22093
22094 # Is the header present?
22095 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h.  */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h.  */
22103 #include <$ac_header>
22104 _ACEOF
22105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22107   ac_status=$?
22108   grep -v '^ *+' conftest.er1 >conftest.err
22109   rm -f conftest.er1
22110   cat conftest.err >&5
22111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); } >/dev/null; then
22113   if test -s conftest.err; then
22114     ac_cpp_err=$ac_c_preproc_warn_flag
22115     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22116   else
22117     ac_cpp_err=
22118   fi
22119 else
22120   ac_cpp_err=yes
22121 fi
22122 if test -z "$ac_cpp_err"; then
22123   ac_header_preproc=yes
22124 else
22125   echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22127
22128   ac_header_preproc=no
22129 fi
22130 rm -f conftest.err conftest.$ac_ext
22131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22132 echo "${ECHO_T}$ac_header_preproc" >&6
22133
22134 # So?  What about this header?
22135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22136   yes:no: )
22137     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22138 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22141     ac_header_preproc=yes
22142     ;;
22143   no:yes:* )
22144     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22145 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22146     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22147 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22148     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22149 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22150     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22151 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22154     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22155 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22156     (
22157       cat <<\_ASBOX
22158 ## ---------------------------------- ##
22159 ## Report this to bug-libtool@gnu.org ##
22160 ## ---------------------------------- ##
22161 _ASBOX
22162     ) |
22163       sed "s/^/$as_me: WARNING:     /" >&2
22164     ;;
22165 esac
22166 echo "$as_me:$LINENO: checking for $ac_header" >&5
22167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22169   echo $ECHO_N "(cached) $ECHO_C" >&6
22170 else
22171   eval "$as_ac_Header=\$ac_header_preproc"
22172 fi
22173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22175
22176 fi
22177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22178   cat >>confdefs.h <<_ACEOF
22179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22180 _ACEOF
22181
22182 fi
22183
22184 done
22185
22186
22187
22188 for ac_header in string.h strings.h
22189 do
22190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22192   echo "$as_me:$LINENO: checking for $ac_header" >&5
22193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22195   echo $ECHO_N "(cached) $ECHO_C" >&6
22196 fi
22197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22199 else
22200   # Is the header compilable?
22201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22203 cat >conftest.$ac_ext <<_ACEOF
22204 /* confdefs.h.  */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h.  */
22209 $ac_includes_default
22210 #include <$ac_header>
22211 _ACEOF
22212 rm -f conftest.$ac_objext
22213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22214   (eval $ac_compile) 2>conftest.er1
22215   ac_status=$?
22216   grep -v '^ *+' conftest.er1 >conftest.err
22217   rm -f conftest.er1
22218   cat conftest.err >&5
22219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220   (exit $ac_status); } &&
22221          { ac_try='test -z "$ac_c_werror_flag"
22222                          || test ! -s conftest.err'
22223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224   (eval $ac_try) 2>&5
22225   ac_status=$?
22226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227   (exit $ac_status); }; } &&
22228          { ac_try='test -s conftest.$ac_objext'
22229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230   (eval $ac_try) 2>&5
22231   ac_status=$?
22232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233   (exit $ac_status); }; }; then
22234   ac_header_compiler=yes
22235 else
22236   echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22238
22239 ac_header_compiler=no
22240 fi
22241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22243 echo "${ECHO_T}$ac_header_compiler" >&6
22244
22245 # Is the header present?
22246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22248 cat >conftest.$ac_ext <<_ACEOF
22249 /* confdefs.h.  */
22250 _ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h.  */
22254 #include <$ac_header>
22255 _ACEOF
22256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22258   ac_status=$?
22259   grep -v '^ *+' conftest.er1 >conftest.err
22260   rm -f conftest.er1
22261   cat conftest.err >&5
22262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263   (exit $ac_status); } >/dev/null; then
22264   if test -s conftest.err; then
22265     ac_cpp_err=$ac_c_preproc_warn_flag
22266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22267   else
22268     ac_cpp_err=
22269   fi
22270 else
22271   ac_cpp_err=yes
22272 fi
22273 if test -z "$ac_cpp_err"; then
22274   ac_header_preproc=yes
22275 else
22276   echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22278
22279   ac_header_preproc=no
22280 fi
22281 rm -f conftest.err conftest.$ac_ext
22282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22283 echo "${ECHO_T}$ac_header_preproc" >&6
22284
22285 # So?  What about this header?
22286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22287   yes:no: )
22288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22292     ac_header_preproc=yes
22293     ;;
22294   no:yes:* )
22295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22307     (
22308       cat <<\_ASBOX
22309 ## ---------------------------------- ##
22310 ## Report this to bug-libtool@gnu.org ##
22311 ## ---------------------------------- ##
22312 _ASBOX
22313     ) |
22314       sed "s/^/$as_me: WARNING:     /" >&2
22315     ;;
22316 esac
22317 echo "$as_me:$LINENO: checking for $ac_header" >&5
22318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22320   echo $ECHO_N "(cached) $ECHO_C" >&6
22321 else
22322   eval "$as_ac_Header=\$ac_header_preproc"
22323 fi
22324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22326
22327 fi
22328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22329   cat >>confdefs.h <<_ACEOF
22330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22331 _ACEOF
22332  break
22333 fi
22334
22335 done
22336
22337
22338
22339
22340 for ac_func in strchr index
22341 do
22342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22343 echo "$as_me:$LINENO: checking for $ac_func" >&5
22344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22345 if eval "test \"\${$as_ac_var+set}\" = set"; then
22346   echo $ECHO_N "(cached) $ECHO_C" >&6
22347 else
22348   cat >conftest.$ac_ext <<_ACEOF
22349 /* confdefs.h.  */
22350 _ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h.  */
22354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22356 #define $ac_func innocuous_$ac_func
22357
22358 /* System header to define __stub macros and hopefully few prototypes,
22359     which can conflict with char $ac_func (); below.
22360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22361     <limits.h> exists even on freestanding compilers.  */
22362
22363 #ifdef __STDC__
22364 # include <limits.h>
22365 #else
22366 # include <assert.h>
22367 #endif
22368
22369 #undef $ac_func
22370
22371 /* Override any gcc2 internal prototype to avoid an error.  */
22372 #ifdef __cplusplus
22373 extern "C"
22374 {
22375 #endif
22376 /* We use char because int might match the return type of a gcc2
22377    builtin and then its argument prototype would still apply.  */
22378 char $ac_func ();
22379 /* The GNU C library defines this for functions which it implements
22380     to always fail with ENOSYS.  Some functions are actually named
22381     something starting with __ and the normal name is an alias.  */
22382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22383 choke me
22384 #else
22385 char (*f) () = $ac_func;
22386 #endif
22387 #ifdef __cplusplus
22388 }
22389 #endif
22390
22391 int
22392 main ()
22393 {
22394 return f != $ac_func;
22395   ;
22396   return 0;
22397 }
22398 _ACEOF
22399 rm -f conftest.$ac_objext conftest$ac_exeext
22400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22401   (eval $ac_link) 2>conftest.er1
22402   ac_status=$?
22403   grep -v '^ *+' conftest.er1 >conftest.err
22404   rm -f conftest.er1
22405   cat conftest.err >&5
22406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407   (exit $ac_status); } &&
22408          { ac_try='test -z "$ac_c_werror_flag"
22409                          || test ! -s conftest.err'
22410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411   (eval $ac_try) 2>&5
22412   ac_status=$?
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); }; } &&
22415          { ac_try='test -s conftest$ac_exeext'
22416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417   (eval $ac_try) 2>&5
22418   ac_status=$?
22419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420   (exit $ac_status); }; }; then
22421   eval "$as_ac_var=yes"
22422 else
22423   echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22425
22426 eval "$as_ac_var=no"
22427 fi
22428 rm -f conftest.err conftest.$ac_objext \
22429       conftest$ac_exeext conftest.$ac_ext
22430 fi
22431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22433 if test `eval echo '${'$as_ac_var'}'` = yes; then
22434   cat >>confdefs.h <<_ACEOF
22435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22436 _ACEOF
22437  break
22438 fi
22439 done
22440
22441
22442
22443 for ac_func in strrchr rindex
22444 do
22445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22446 echo "$as_me:$LINENO: checking for $ac_func" >&5
22447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22448 if eval "test \"\${$as_ac_var+set}\" = set"; then
22449   echo $ECHO_N "(cached) $ECHO_C" >&6
22450 else
22451   cat >conftest.$ac_ext <<_ACEOF
22452 /* confdefs.h.  */
22453 _ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h.  */
22457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22459 #define $ac_func innocuous_$ac_func
22460
22461 /* System header to define __stub macros and hopefully few prototypes,
22462     which can conflict with char $ac_func (); below.
22463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22464     <limits.h> exists even on freestanding compilers.  */
22465
22466 #ifdef __STDC__
22467 # include <limits.h>
22468 #else
22469 # include <assert.h>
22470 #endif
22471
22472 #undef $ac_func
22473
22474 /* Override any gcc2 internal prototype to avoid an error.  */
22475 #ifdef __cplusplus
22476 extern "C"
22477 {
22478 #endif
22479 /* We use char because int might match the return type of a gcc2
22480    builtin and then its argument prototype would still apply.  */
22481 char $ac_func ();
22482 /* The GNU C library defines this for functions which it implements
22483     to always fail with ENOSYS.  Some functions are actually named
22484     something starting with __ and the normal name is an alias.  */
22485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22486 choke me
22487 #else
22488 char (*f) () = $ac_func;
22489 #endif
22490 #ifdef __cplusplus
22491 }
22492 #endif
22493
22494 int
22495 main ()
22496 {
22497 return f != $ac_func;
22498   ;
22499   return 0;
22500 }
22501 _ACEOF
22502 rm -f conftest.$ac_objext conftest$ac_exeext
22503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22504   (eval $ac_link) 2>conftest.er1
22505   ac_status=$?
22506   grep -v '^ *+' conftest.er1 >conftest.err
22507   rm -f conftest.er1
22508   cat conftest.err >&5
22509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510   (exit $ac_status); } &&
22511          { ac_try='test -z "$ac_c_werror_flag"
22512                          || test ! -s conftest.err'
22513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514   (eval $ac_try) 2>&5
22515   ac_status=$?
22516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); }; } &&
22518          { ac_try='test -s conftest$ac_exeext'
22519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520   (eval $ac_try) 2>&5
22521   ac_status=$?
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); }; }; then
22524   eval "$as_ac_var=yes"
22525 else
22526   echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529 eval "$as_ac_var=no"
22530 fi
22531 rm -f conftest.err conftest.$ac_objext \
22532       conftest$ac_exeext conftest.$ac_ext
22533 fi
22534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22536 if test `eval echo '${'$as_ac_var'}'` = yes; then
22537   cat >>confdefs.h <<_ACEOF
22538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22539 _ACEOF
22540  break
22541 fi
22542 done
22543
22544
22545
22546 for ac_func in memcpy bcopy
22547 do
22548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22549 echo "$as_me:$LINENO: checking for $ac_func" >&5
22550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22551 if eval "test \"\${$as_ac_var+set}\" = set"; then
22552   echo $ECHO_N "(cached) $ECHO_C" >&6
22553 else
22554   cat >conftest.$ac_ext <<_ACEOF
22555 /* confdefs.h.  */
22556 _ACEOF
22557 cat confdefs.h >>conftest.$ac_ext
22558 cat >>conftest.$ac_ext <<_ACEOF
22559 /* end confdefs.h.  */
22560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22562 #define $ac_func innocuous_$ac_func
22563
22564 /* System header to define __stub macros and hopefully few prototypes,
22565     which can conflict with char $ac_func (); below.
22566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22567     <limits.h> exists even on freestanding compilers.  */
22568
22569 #ifdef __STDC__
22570 # include <limits.h>
22571 #else
22572 # include <assert.h>
22573 #endif
22574
22575 #undef $ac_func
22576
22577 /* Override any gcc2 internal prototype to avoid an error.  */
22578 #ifdef __cplusplus
22579 extern "C"
22580 {
22581 #endif
22582 /* We use char because int might match the return type of a gcc2
22583    builtin and then its argument prototype would still apply.  */
22584 char $ac_func ();
22585 /* The GNU C library defines this for functions which it implements
22586     to always fail with ENOSYS.  Some functions are actually named
22587     something starting with __ and the normal name is an alias.  */
22588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22589 choke me
22590 #else
22591 char (*f) () = $ac_func;
22592 #endif
22593 #ifdef __cplusplus
22594 }
22595 #endif
22596
22597 int
22598 main ()
22599 {
22600 return f != $ac_func;
22601   ;
22602   return 0;
22603 }
22604 _ACEOF
22605 rm -f conftest.$ac_objext conftest$ac_exeext
22606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22607   (eval $ac_link) 2>conftest.er1
22608   ac_status=$?
22609   grep -v '^ *+' conftest.er1 >conftest.err
22610   rm -f conftest.er1
22611   cat conftest.err >&5
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); } &&
22614          { ac_try='test -z "$ac_c_werror_flag"
22615                          || test ! -s conftest.err'
22616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22617   (eval $ac_try) 2>&5
22618   ac_status=$?
22619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620   (exit $ac_status); }; } &&
22621          { ac_try='test -s conftest$ac_exeext'
22622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623   (eval $ac_try) 2>&5
22624   ac_status=$?
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); }; }; then
22627   eval "$as_ac_var=yes"
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632 eval "$as_ac_var=no"
22633 fi
22634 rm -f conftest.err conftest.$ac_objext \
22635       conftest$ac_exeext conftest.$ac_ext
22636 fi
22637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22639 if test `eval echo '${'$as_ac_var'}'` = yes; then
22640   cat >>confdefs.h <<_ACEOF
22641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22642 _ACEOF
22643  break
22644 fi
22645 done
22646
22647
22648
22649 for ac_func in memmove strcmp
22650 do
22651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22652 echo "$as_me:$LINENO: checking for $ac_func" >&5
22653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22654 if eval "test \"\${$as_ac_var+set}\" = set"; then
22655   echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22657   cat >conftest.$ac_ext <<_ACEOF
22658 /* confdefs.h.  */
22659 _ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h.  */
22663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22665 #define $ac_func innocuous_$ac_func
22666
22667 /* System header to define __stub macros and hopefully few prototypes,
22668     which can conflict with char $ac_func (); below.
22669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22670     <limits.h> exists even on freestanding compilers.  */
22671
22672 #ifdef __STDC__
22673 # include <limits.h>
22674 #else
22675 # include <assert.h>
22676 #endif
22677
22678 #undef $ac_func
22679
22680 /* Override any gcc2 internal prototype to avoid an error.  */
22681 #ifdef __cplusplus
22682 extern "C"
22683 {
22684 #endif
22685 /* We use char because int might match the return type of a gcc2
22686    builtin and then its argument prototype would still apply.  */
22687 char $ac_func ();
22688 /* The GNU C library defines this for functions which it implements
22689     to always fail with ENOSYS.  Some functions are actually named
22690     something starting with __ and the normal name is an alias.  */
22691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22692 choke me
22693 #else
22694 char (*f) () = $ac_func;
22695 #endif
22696 #ifdef __cplusplus
22697 }
22698 #endif
22699
22700 int
22701 main ()
22702 {
22703 return f != $ac_func;
22704   ;
22705   return 0;
22706 }
22707 _ACEOF
22708 rm -f conftest.$ac_objext conftest$ac_exeext
22709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22710   (eval $ac_link) 2>conftest.er1
22711   ac_status=$?
22712   grep -v '^ *+' conftest.er1 >conftest.err
22713   rm -f conftest.er1
22714   cat conftest.err >&5
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); } &&
22717          { ac_try='test -z "$ac_c_werror_flag"
22718                          || test ! -s conftest.err'
22719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720   (eval $ac_try) 2>&5
22721   ac_status=$?
22722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723   (exit $ac_status); }; } &&
22724          { ac_try='test -s conftest$ac_exeext'
22725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726   (eval $ac_try) 2>&5
22727   ac_status=$?
22728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729   (exit $ac_status); }; }; then
22730   eval "$as_ac_var=yes"
22731 else
22732   echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22734
22735 eval "$as_ac_var=no"
22736 fi
22737 rm -f conftest.err conftest.$ac_objext \
22738       conftest$ac_exeext conftest.$ac_ext
22739 fi
22740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22742 if test `eval echo '${'$as_ac_var'}'` = yes; then
22743   cat >>confdefs.h <<_ACEOF
22744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22745 _ACEOF
22746
22747 fi
22748 done
22749
22750
22751
22752
22753 for ac_func in closedir opendir readdir
22754 do
22755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22756 echo "$as_me:$LINENO: checking for $ac_func" >&5
22757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22758 if eval "test \"\${$as_ac_var+set}\" = set"; then
22759   echo $ECHO_N "(cached) $ECHO_C" >&6
22760 else
22761   cat >conftest.$ac_ext <<_ACEOF
22762 /* confdefs.h.  */
22763 _ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h.  */
22767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22769 #define $ac_func innocuous_$ac_func
22770
22771 /* System header to define __stub macros and hopefully few prototypes,
22772     which can conflict with char $ac_func (); below.
22773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22774     <limits.h> exists even on freestanding compilers.  */
22775
22776 #ifdef __STDC__
22777 # include <limits.h>
22778 #else
22779 # include <assert.h>
22780 #endif
22781
22782 #undef $ac_func
22783
22784 /* Override any gcc2 internal prototype to avoid an error.  */
22785 #ifdef __cplusplus
22786 extern "C"
22787 {
22788 #endif
22789 /* We use char because int might match the return type of a gcc2
22790    builtin and then its argument prototype would still apply.  */
22791 char $ac_func ();
22792 /* The GNU C library defines this for functions which it implements
22793     to always fail with ENOSYS.  Some functions are actually named
22794     something starting with __ and the normal name is an alias.  */
22795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22796 choke me
22797 #else
22798 char (*f) () = $ac_func;
22799 #endif
22800 #ifdef __cplusplus
22801 }
22802 #endif
22803
22804 int
22805 main ()
22806 {
22807 return f != $ac_func;
22808   ;
22809   return 0;
22810 }
22811 _ACEOF
22812 rm -f conftest.$ac_objext conftest$ac_exeext
22813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22814   (eval $ac_link) 2>conftest.er1
22815   ac_status=$?
22816   grep -v '^ *+' conftest.er1 >conftest.err
22817   rm -f conftest.er1
22818   cat conftest.err >&5
22819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820   (exit $ac_status); } &&
22821          { ac_try='test -z "$ac_c_werror_flag"
22822                          || test ! -s conftest.err'
22823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824   (eval $ac_try) 2>&5
22825   ac_status=$?
22826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827   (exit $ac_status); }; } &&
22828          { ac_try='test -s conftest$ac_exeext'
22829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830   (eval $ac_try) 2>&5
22831   ac_status=$?
22832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833   (exit $ac_status); }; }; then
22834   eval "$as_ac_var=yes"
22835 else
22836   echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.$ac_ext >&5
22838
22839 eval "$as_ac_var=no"
22840 fi
22841 rm -f conftest.err conftest.$ac_objext \
22842       conftest$ac_exeext conftest.$ac_ext
22843 fi
22844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22846 if test `eval echo '${'$as_ac_var'}'` = yes; then
22847   cat >>confdefs.h <<_ACEOF
22848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22849 _ACEOF
22850
22851 fi
22852 done
22853
22854
22855
22856
22857 ## -------- ##
22858 ## Outputs. ##
22859 ## -------- ##
22860           ac_config_files="$ac_config_files Makefile"
22861
22862 cat >confcache <<\_ACEOF
22863 # This file is a shell script that caches the results of configure
22864 # tests run on this system so they can be shared between configure
22865 # scripts and configure runs, see configure's option --config-cache.
22866 # It is not useful on other systems.  If it contains results you don't
22867 # want to keep, you may remove or edit it.
22868 #
22869 # config.status only pays attention to the cache file if you give it
22870 # the --recheck option to rerun configure.
22871 #
22872 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22873 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22874 # following values.
22875
22876 _ACEOF
22877
22878 # The following way of writing the cache mishandles newlines in values,
22879 # but we know of no workaround that is simple, portable, and efficient.
22880 # So, don't put newlines in cache variables' values.
22881 # Ultrix sh set writes to stderr and can't be redirected directly,
22882 # and sets the high bit in the cache file unless we assign to the vars.
22883 {
22884   (set) 2>&1 |
22885     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22886     *ac_space=\ *)
22887       # `set' does not quote correctly, so add quotes (double-quote
22888       # substitution turns \\\\ into \\, and sed turns \\ into \).
22889       sed -n \
22890         "s/'/'\\\\''/g;
22891           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22892       ;;
22893     *)
22894       # `set' quotes correctly as required by POSIX, so do not add quotes.
22895       sed -n \
22896         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22897       ;;
22898     esac;
22899 } |
22900   sed '
22901      t clear
22902      : clear
22903      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22904      t end
22905      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22906      : end' >>confcache
22907 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22908   if test -w $cache_file; then
22909     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22910     cat confcache >$cache_file
22911   else
22912     echo "not updating unwritable cache $cache_file"
22913   fi
22914 fi
22915 rm -f confcache
22916
22917 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22918 # Let make expand exec_prefix.
22919 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22920
22921 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22922 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22923 # trailing colons and then remove the whole line if VPATH becomes empty
22924 # (actually we leave an empty line to preserve line numbers).
22925 if test "x$srcdir" = x.; then
22926   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22927 s/:*\$(srcdir):*/:/;
22928 s/:*\${srcdir}:*/:/;
22929 s/:*@srcdir@:*/:/;
22930 s/^\([^=]*=[     ]*\):*/\1/;
22931 s/:*$//;
22932 s/^[^=]*=[       ]*$//;
22933 }'
22934 fi
22935
22936 DEFS=-DHAVE_CONFIG_H
22937
22938 ac_libobjs=
22939 ac_ltlibobjs=
22940 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22941   # 1. Remove the extension, and $U if already installed.
22942   ac_i=`echo "$ac_i" |
22943          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22944   # 2. Add them.
22945   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22946   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22947 done
22948 LIBOBJS=$ac_libobjs
22949
22950 LTLIBOBJS=$ac_ltlibobjs
22951
22952
22953 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22954   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22955 Usually this means the macro was only invoked conditionally." >&5
22956 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22957 Usually this means the macro was only invoked conditionally." >&2;}
22958    { (exit 1); exit 1; }; }
22959 fi
22960 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22961   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22962 Usually this means the macro was only invoked conditionally." >&5
22963 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22964 Usually this means the macro was only invoked conditionally." >&2;}
22965    { (exit 1); exit 1; }; }
22966 fi
22967 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22968   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22969 Usually this means the macro was only invoked conditionally." >&5
22970 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22971 Usually this means the macro was only invoked conditionally." >&2;}
22972    { (exit 1); exit 1; }; }
22973 fi
22974 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22975   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22976 Usually this means the macro was only invoked conditionally." >&5
22977 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22978 Usually this means the macro was only invoked conditionally." >&2;}
22979    { (exit 1); exit 1; }; }
22980 fi
22981 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22982   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22983 Usually this means the macro was only invoked conditionally." >&5
22984 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22985 Usually this means the macro was only invoked conditionally." >&2;}
22986    { (exit 1); exit 1; }; }
22987 fi
22988 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22989   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22990 Usually this means the macro was only invoked conditionally." >&5
22991 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22992 Usually this means the macro was only invoked conditionally." >&2;}
22993    { (exit 1); exit 1; }; }
22994 fi
22995
22996 : ${CONFIG_STATUS=./config.status}
22997 ac_clean_files_save=$ac_clean_files
22998 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22999 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23000 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23001 cat >$CONFIG_STATUS <<_ACEOF
23002 #! $SHELL
23003 # Generated by $as_me.
23004 # Run this file to recreate the current configuration.
23005 # Compiler output produced by configure, useful for debugging
23006 # configure, is in config.log if it exists.
23007
23008 debug=false
23009 ac_cs_recheck=false
23010 ac_cs_silent=false
23011 SHELL=\${CONFIG_SHELL-$SHELL}
23012 _ACEOF
23013
23014 cat >>$CONFIG_STATUS <<\_ACEOF
23015 ## --------------------- ##
23016 ## M4sh Initialization.  ##
23017 ## --------------------- ##
23018
23019 # Be Bourne compatible
23020 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23021   emulate sh
23022   NULLCMD=:
23023   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23024   # is contrary to our usage.  Disable this feature.
23025   alias -g '${1+"$@"}'='"$@"'
23026 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23027   set -o posix
23028 fi
23029 DUALCASE=1; export DUALCASE # for MKS sh
23030
23031 # Support unset when possible.
23032 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23033   as_unset=unset
23034 else
23035   as_unset=false
23036 fi
23037
23038
23039 # Work around bugs in pre-3.0 UWIN ksh.
23040 $as_unset ENV MAIL MAILPATH
23041 PS1='$ '
23042 PS2='> '
23043 PS4='+ '
23044
23045 # NLS nuisances.
23046 for as_var in \
23047   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23048   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23049   LC_TELEPHONE LC_TIME
23050 do
23051   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23052     eval $as_var=C; export $as_var
23053   else
23054     $as_unset $as_var
23055   fi
23056 done
23057
23058 # Required to use basename.
23059 if expr a : '\(a\)' >/dev/null 2>&1; then
23060   as_expr=expr
23061 else
23062   as_expr=false
23063 fi
23064
23065 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23066   as_basename=basename
23067 else
23068   as_basename=false
23069 fi
23070
23071
23072 # Name of the executable.
23073 as_me=`$as_basename "$0" ||
23074 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23075          X"$0" : 'X\(//\)$' \| \
23076          X"$0" : 'X\(/\)$' \| \
23077          .     : '\(.\)' 2>/dev/null ||
23078 echo X/"$0" |
23079     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23080           /^X\/\(\/\/\)$/{ s//\1/; q; }
23081           /^X\/\(\/\).*/{ s//\1/; q; }
23082           s/.*/./; q'`
23083
23084
23085 # PATH needs CR, and LINENO needs CR and PATH.
23086 # Avoid depending upon Character Ranges.
23087 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23088 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23089 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23090 as_cr_digits='0123456789'
23091 as_cr_alnum=$as_cr_Letters$as_cr_digits
23092
23093 # The user is always right.
23094 if test "${PATH_SEPARATOR+set}" != set; then
23095   echo "#! /bin/sh" >conf$$.sh
23096   echo  "exit 0"   >>conf$$.sh
23097   chmod +x conf$$.sh
23098   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23099     PATH_SEPARATOR=';'
23100   else
23101     PATH_SEPARATOR=:
23102   fi
23103   rm -f conf$$.sh
23104 fi
23105
23106
23107   as_lineno_1=$LINENO
23108   as_lineno_2=$LINENO
23109   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23110   test "x$as_lineno_1" != "x$as_lineno_2" &&
23111   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23112   # Find who we are.  Look in the path if we contain no path at all
23113   # relative or not.
23114   case $0 in
23115     *[\\/]* ) as_myself=$0 ;;
23116     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23117 for as_dir in $PATH
23118 do
23119   IFS=$as_save_IFS
23120   test -z "$as_dir" && as_dir=.
23121   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23122 done
23123
23124        ;;
23125   esac
23126   # We did not find ourselves, most probably we were run as `sh COMMAND'
23127   # in which case we are not to be found in the path.
23128   if test "x$as_myself" = x; then
23129     as_myself=$0
23130   fi
23131   if test ! -f "$as_myself"; then
23132     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23133 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23134    { (exit 1); exit 1; }; }
23135   fi
23136   case $CONFIG_SHELL in
23137   '')
23138     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23139 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23140 do
23141   IFS=$as_save_IFS
23142   test -z "$as_dir" && as_dir=.
23143   for as_base in sh bash ksh sh5; do
23144          case $as_dir in
23145          /*)
23146            if ("$as_dir/$as_base" -c '
23147   as_lineno_1=$LINENO
23148   as_lineno_2=$LINENO
23149   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23150   test "x$as_lineno_1" != "x$as_lineno_2" &&
23151   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23152              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23153              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23154              CONFIG_SHELL=$as_dir/$as_base
23155              export CONFIG_SHELL
23156              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23157            fi;;
23158          esac
23159        done
23160 done
23161 ;;
23162   esac
23163
23164   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23165   # uniformly replaced by the line number.  The first 'sed' inserts a
23166   # line-number line before each line; the second 'sed' does the real
23167   # work.  The second script uses 'N' to pair each line-number line
23168   # with the numbered line, and appends trailing '-' during
23169   # substitution so that $LINENO is not a special case at line end.
23170   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23171   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23172   sed '=' <$as_myself |
23173     sed '
23174       N
23175       s,$,-,
23176       : loop
23177       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23178       t loop
23179       s,-$,,
23180       s,^['$as_cr_digits']*\n,,
23181     ' >$as_me.lineno &&
23182   chmod +x $as_me.lineno ||
23183     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23184 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23185    { (exit 1); exit 1; }; }
23186
23187   # Don't try to exec as it changes $[0], causing all sort of problems
23188   # (the dirname of $[0] is not the place where we might find the
23189   # original and so on.  Autoconf is especially sensible to this).
23190   . ./$as_me.lineno
23191   # Exit status is that of the last command.
23192   exit
23193 }
23194
23195
23196 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23197   *c*,-n*) ECHO_N= ECHO_C='
23198 ' ECHO_T='      ' ;;
23199   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23200   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23201 esac
23202
23203 if expr a : '\(a\)' >/dev/null 2>&1; then
23204   as_expr=expr
23205 else
23206   as_expr=false
23207 fi
23208
23209 rm -f conf$$ conf$$.exe conf$$.file
23210 echo >conf$$.file
23211 if ln -s conf$$.file conf$$ 2>/dev/null; then
23212   # We could just check for DJGPP; but this test a) works b) is more generic
23213   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23214   if test -f conf$$.exe; then
23215     # Don't use ln at all; we don't have any links
23216     as_ln_s='cp -p'
23217   else
23218     as_ln_s='ln -s'
23219   fi
23220 elif ln conf$$.file conf$$ 2>/dev/null; then
23221   as_ln_s=ln
23222 else
23223   as_ln_s='cp -p'
23224 fi
23225 rm -f conf$$ conf$$.exe conf$$.file
23226
23227 if mkdir -p . 2>/dev/null; then
23228   as_mkdir_p=:
23229 else
23230   test -d ./-p && rmdir ./-p
23231   as_mkdir_p=false
23232 fi
23233
23234 as_executable_p="test -f"
23235
23236 # Sed expression to map a string onto a valid CPP name.
23237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23238
23239 # Sed expression to map a string onto a valid variable name.
23240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23241
23242
23243 # IFS
23244 # We need space, tab and new line, in precisely that order.
23245 as_nl='
23246 '
23247 IFS="   $as_nl"
23248
23249 # CDPATH.
23250 $as_unset CDPATH
23251
23252 exec 6>&1
23253
23254 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23255 # report actual input values of CONFIG_FILES etc. instead of their
23256 # values after options handling.  Logging --version etc. is OK.
23257 exec 5>>config.log
23258 {
23259   echo
23260   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23261 ## Running $as_me. ##
23262 _ASBOX
23263 } >&5
23264 cat >&5 <<_CSEOF
23265
23266 This file was extended by libltdl $as_me 1.2, which was
23267 generated by GNU Autoconf 2.59.  Invocation command line was
23268
23269   CONFIG_FILES    = $CONFIG_FILES
23270   CONFIG_HEADERS  = $CONFIG_HEADERS
23271   CONFIG_LINKS    = $CONFIG_LINKS
23272   CONFIG_COMMANDS = $CONFIG_COMMANDS
23273   $ $0 $@
23274
23275 _CSEOF
23276 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23277 echo >&5
23278 _ACEOF
23279
23280 # Files that config.status was made for.
23281 if test -n "$ac_config_files"; then
23282   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23283 fi
23284
23285 if test -n "$ac_config_headers"; then
23286   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23287 fi
23288
23289 if test -n "$ac_config_links"; then
23290   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23291 fi
23292
23293 if test -n "$ac_config_commands"; then
23294   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23295 fi
23296
23297 cat >>$CONFIG_STATUS <<\_ACEOF
23298
23299 ac_cs_usage="\
23300 \`$as_me' instantiates files from templates according to the
23301 current configuration.
23302
23303 Usage: $0 [OPTIONS] [FILE]...
23304
23305   -h, --help       print this help, then exit
23306   -V, --version    print version number, then exit
23307   -q, --quiet      do not print progress messages
23308   -d, --debug      don't remove temporary files
23309       --recheck    update $as_me by reconfiguring in the same conditions
23310   --file=FILE[:TEMPLATE]
23311                    instantiate the configuration file FILE
23312   --header=FILE[:TEMPLATE]
23313                    instantiate the configuration header FILE
23314
23315 Configuration files:
23316 $config_files
23317
23318 Configuration headers:
23319 $config_headers
23320
23321 Configuration commands:
23322 $config_commands
23323
23324 Report bugs to <bug-autoconf@gnu.org>."
23325 _ACEOF
23326
23327 cat >>$CONFIG_STATUS <<_ACEOF
23328 ac_cs_version="\\
23329 libltdl config.status 1.2
23330 configured by $0, generated by GNU Autoconf 2.59,
23331   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23332
23333 Copyright (C) 2003 Free Software Foundation, Inc.
23334 This config.status script is free software; the Free Software Foundation
23335 gives unlimited permission to copy, distribute and modify it."
23336 srcdir=$srcdir
23337 INSTALL="$INSTALL"
23338 _ACEOF
23339
23340 cat >>$CONFIG_STATUS <<\_ACEOF
23341 # If no file are specified by the user, then we need to provide default
23342 # value.  By we need to know if files were specified by the user.
23343 ac_need_defaults=:
23344 while test $# != 0
23345 do
23346   case $1 in
23347   --*=*)
23348     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23349     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23350     ac_shift=:
23351     ;;
23352   -*)
23353     ac_option=$1
23354     ac_optarg=$2
23355     ac_shift=shift
23356     ;;
23357   *) # This is not an option, so the user has probably given explicit
23358      # arguments.
23359      ac_option=$1
23360      ac_need_defaults=false;;
23361   esac
23362
23363   case $ac_option in
23364   # Handling of the options.
23365 _ACEOF
23366 cat >>$CONFIG_STATUS <<\_ACEOF
23367   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23368     ac_cs_recheck=: ;;
23369   --version | --vers* | -V )
23370     echo "$ac_cs_version"; exit 0 ;;
23371   --he | --h)
23372     # Conflict between --help and --header
23373     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23374 Try \`$0 --help' for more information." >&5
23375 echo "$as_me: error: ambiguous option: $1
23376 Try \`$0 --help' for more information." >&2;}
23377    { (exit 1); exit 1; }; };;
23378   --help | --hel | -h )
23379     echo "$ac_cs_usage"; exit 0 ;;
23380   --debug | --d* | -d )
23381     debug=: ;;
23382   --file | --fil | --fi | --f )
23383     $ac_shift
23384     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23385     ac_need_defaults=false;;
23386   --header | --heade | --head | --hea )
23387     $ac_shift
23388     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23389     ac_need_defaults=false;;
23390   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23391   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23392     ac_cs_silent=: ;;
23393
23394   # This is an error.
23395   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23396 Try \`$0 --help' for more information." >&5
23397 echo "$as_me: error: unrecognized option: $1
23398 Try \`$0 --help' for more information." >&2;}
23399    { (exit 1); exit 1; }; } ;;
23400
23401   *) ac_config_targets="$ac_config_targets $1" ;;
23402
23403   esac
23404   shift
23405 done
23406
23407 ac_configure_extra_args=
23408
23409 if $ac_cs_silent; then
23410   exec 6>/dev/null
23411   ac_configure_extra_args="$ac_configure_extra_args --silent"
23412 fi
23413
23414 _ACEOF
23415 cat >>$CONFIG_STATUS <<_ACEOF
23416 if \$ac_cs_recheck; then
23417   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23418   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23419 fi
23420
23421 _ACEOF
23422
23423 cat >>$CONFIG_STATUS <<_ACEOF
23424 #
23425 # INIT-COMMANDS section.
23426 #
23427
23428 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23429
23430 _ACEOF
23431
23432
23433
23434 cat >>$CONFIG_STATUS <<\_ACEOF
23435 for ac_config_target in $ac_config_targets
23436 do
23437   case "$ac_config_target" in
23438   # Handling of arguments.
23439   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23440   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23441   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
23442   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23443 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23444    { (exit 1); exit 1; }; };;
23445   esac
23446 done
23447
23448 # If the user did not use the arguments to specify the items to instantiate,
23449 # then the envvar interface is used.  Set only those that are not.
23450 # We use the long form for the default assignment because of an extremely
23451 # bizarre bug on SunOS 4.1.3.
23452 if $ac_need_defaults; then
23453   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23454   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23455   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23456 fi
23457
23458 # Have a temporary directory for convenience.  Make it in the build tree
23459 # simply because there is no reason to put it here, and in addition,
23460 # creating and moving files from /tmp can sometimes cause problems.
23461 # Create a temporary directory, and hook for its removal unless debugging.
23462 $debug ||
23463 {
23464   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23465   trap '{ (exit 1); exit 1; }' 1 2 13 15
23466 }
23467
23468 # Create a (secure) tmp directory for tmp files.
23469
23470 {
23471   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23472   test -n "$tmp" && test -d "$tmp"
23473 }  ||
23474 {
23475   tmp=./confstat$$-$RANDOM
23476   (umask 077 && mkdir $tmp)
23477 } ||
23478 {
23479    echo "$me: cannot create a temporary directory in ." >&2
23480    { (exit 1); exit 1; }
23481 }
23482
23483 _ACEOF
23484
23485 cat >>$CONFIG_STATUS <<_ACEOF
23486
23487 #
23488 # CONFIG_FILES section.
23489 #
23490
23491 # No need to generate the scripts if there are no CONFIG_FILES.
23492 # This happens for instance when ./config.status config.h
23493 if test -n "\$CONFIG_FILES"; then
23494   # Protect against being on the right side of a sed subst in config.status.
23495   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23496    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23497 s,@SHELL@,$SHELL,;t t
23498 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23499 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23500 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23501 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23502 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23503 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23504 s,@exec_prefix@,$exec_prefix,;t t
23505 s,@prefix@,$prefix,;t t
23506 s,@program_transform_name@,$program_transform_name,;t t
23507 s,@bindir@,$bindir,;t t
23508 s,@sbindir@,$sbindir,;t t
23509 s,@libexecdir@,$libexecdir,;t t
23510 s,@datadir@,$datadir,;t t
23511 s,@sysconfdir@,$sysconfdir,;t t
23512 s,@sharedstatedir@,$sharedstatedir,;t t
23513 s,@localstatedir@,$localstatedir,;t t
23514 s,@libdir@,$libdir,;t t
23515 s,@includedir@,$includedir,;t t
23516 s,@oldincludedir@,$oldincludedir,;t t
23517 s,@infodir@,$infodir,;t t
23518 s,@mandir@,$mandir,;t t
23519 s,@build_alias@,$build_alias,;t t
23520 s,@host_alias@,$host_alias,;t t
23521 s,@target_alias@,$target_alias,;t t
23522 s,@DEFS@,$DEFS,;t t
23523 s,@ECHO_C@,$ECHO_C,;t t
23524 s,@ECHO_N@,$ECHO_N,;t t
23525 s,@ECHO_T@,$ECHO_T,;t t
23526 s,@LIBS@,$LIBS,;t t
23527 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23528 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23529 s,@MAINT@,$MAINT,;t t
23530 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23531 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23532 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23533 s,@CYGPATH_W@,$CYGPATH_W,;t t
23534 s,@PACKAGE@,$PACKAGE,;t t
23535 s,@VERSION@,$VERSION,;t t
23536 s,@ACLOCAL@,$ACLOCAL,;t t
23537 s,@AUTOCONF@,$AUTOCONF,;t t
23538 s,@AUTOMAKE@,$AUTOMAKE,;t t
23539 s,@AUTOHEADER@,$AUTOHEADER,;t t
23540 s,@MAKEINFO@,$MAKEINFO,;t t
23541 s,@install_sh@,$install_sh,;t t
23542 s,@STRIP@,$STRIP,;t t
23543 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23544 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23545 s,@mkdir_p@,$mkdir_p,;t t
23546 s,@AWK@,$AWK,;t t
23547 s,@SET_MAKE@,$SET_MAKE,;t t
23548 s,@am__leading_dot@,$am__leading_dot,;t t
23549 s,@AMTAR@,$AMTAR,;t t
23550 s,@am__tar@,$am__tar,;t t
23551 s,@am__untar@,$am__untar,;t t
23552 s,@CC@,$CC,;t t
23553 s,@CFLAGS@,$CFLAGS,;t t
23554 s,@LDFLAGS@,$LDFLAGS,;t t
23555 s,@CPPFLAGS@,$CPPFLAGS,;t t
23556 s,@ac_ct_CC@,$ac_ct_CC,;t t
23557 s,@EXEEXT@,$EXEEXT,;t t
23558 s,@OBJEXT@,$OBJEXT,;t t
23559 s,@DEPDIR@,$DEPDIR,;t t
23560 s,@am__include@,$am__include,;t t
23561 s,@am__quote@,$am__quote,;t t
23562 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23563 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23564 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23565 s,@CCDEPMODE@,$CCDEPMODE,;t t
23566 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23567 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23568 s,@build@,$build,;t t
23569 s,@build_cpu@,$build_cpu,;t t
23570 s,@build_vendor@,$build_vendor,;t t
23571 s,@build_os@,$build_os,;t t
23572 s,@host@,$host,;t t
23573 s,@host_cpu@,$host_cpu,;t t
23574 s,@host_vendor@,$host_vendor,;t t
23575 s,@host_os@,$host_os,;t t
23576 s,@EGREP@,$EGREP,;t t
23577 s,@LN_S@,$LN_S,;t t
23578 s,@ECHO@,$ECHO,;t t
23579 s,@AR@,$AR,;t t
23580 s,@ac_ct_AR@,$ac_ct_AR,;t t
23581 s,@RANLIB@,$RANLIB,;t t
23582 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23583 s,@DLLTOOL@,$DLLTOOL,;t t
23584 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23585 s,@AS@,$AS,;t t
23586 s,@ac_ct_AS@,$ac_ct_AS,;t t
23587 s,@OBJDUMP@,$OBJDUMP,;t t
23588 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23589 s,@CPP@,$CPP,;t t
23590 s,@CXX@,$CXX,;t t
23591 s,@CXXFLAGS@,$CXXFLAGS,;t t
23592 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23593 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23594 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23595 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23596 s,@CXXCPP@,$CXXCPP,;t t
23597 s,@F77@,$F77,;t t
23598 s,@FFLAGS@,$FFLAGS,;t t
23599 s,@ac_ct_F77@,$ac_ct_F77,;t t
23600 s,@LIBTOOL@,$LIBTOOL,;t t
23601 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
23602 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
23603 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
23604 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
23605 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
23606 s,@LIBADD_DL@,$LIBADD_DL,;t t
23607 s,@LIBOBJS@,$LIBOBJS,;t t
23608 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23609 CEOF
23610
23611 _ACEOF
23612
23613   cat >>$CONFIG_STATUS <<\_ACEOF
23614   # Split the substitutions into bite-sized pieces for seds with
23615   # small command number limits, like on Digital OSF/1 and HP-UX.
23616   ac_max_sed_lines=48
23617   ac_sed_frag=1 # Number of current file.
23618   ac_beg=1 # First line for current file.
23619   ac_end=$ac_max_sed_lines # Line after last line for current file.
23620   ac_more_lines=:
23621   ac_sed_cmds=
23622   while $ac_more_lines; do
23623     if test $ac_beg -gt 1; then
23624       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23625     else
23626       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23627     fi
23628     if test ! -s $tmp/subs.frag; then
23629       ac_more_lines=false
23630     else
23631       # The purpose of the label and of the branching condition is to
23632       # speed up the sed processing (if there are no `@' at all, there
23633       # is no need to browse any of the substitutions).
23634       # These are the two extra sed commands mentioned above.
23635       (echo ':t
23636   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23637       if test -z "$ac_sed_cmds"; then
23638         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23639       else
23640         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23641       fi
23642       ac_sed_frag=`expr $ac_sed_frag + 1`
23643       ac_beg=$ac_end
23644       ac_end=`expr $ac_end + $ac_max_sed_lines`
23645     fi
23646   done
23647   if test -z "$ac_sed_cmds"; then
23648     ac_sed_cmds=cat
23649   fi
23650 fi # test -n "$CONFIG_FILES"
23651
23652 _ACEOF
23653 cat >>$CONFIG_STATUS <<\_ACEOF
23654 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23655   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23656   case $ac_file in
23657   - | *:- | *:-:* ) # input from stdin
23658         cat >$tmp/stdin
23659         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23660         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23661   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23662         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23663   * )   ac_file_in=$ac_file.in ;;
23664   esac
23665
23666   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23667   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23669          X"$ac_file" : 'X\(//\)[^/]' \| \
23670          X"$ac_file" : 'X\(//\)$' \| \
23671          X"$ac_file" : 'X\(/\)' \| \
23672          .     : '\(.\)' 2>/dev/null ||
23673 echo X"$ac_file" |
23674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23675           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23676           /^X\(\/\/\)$/{ s//\1/; q; }
23677           /^X\(\/\).*/{ s//\1/; q; }
23678           s/.*/./; q'`
23679   { if $as_mkdir_p; then
23680     mkdir -p "$ac_dir"
23681   else
23682     as_dir="$ac_dir"
23683     as_dirs=
23684     while test ! -d "$as_dir"; do
23685       as_dirs="$as_dir $as_dirs"
23686       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23688          X"$as_dir" : 'X\(//\)[^/]' \| \
23689          X"$as_dir" : 'X\(//\)$' \| \
23690          X"$as_dir" : 'X\(/\)' \| \
23691          .     : '\(.\)' 2>/dev/null ||
23692 echo X"$as_dir" |
23693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23694           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23695           /^X\(\/\/\)$/{ s//\1/; q; }
23696           /^X\(\/\).*/{ s//\1/; q; }
23697           s/.*/./; q'`
23698     done
23699     test ! -n "$as_dirs" || mkdir $as_dirs
23700   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23701 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23702    { (exit 1); exit 1; }; }; }
23703
23704   ac_builddir=.
23705
23706 if test "$ac_dir" != .; then
23707   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23708   # A "../" for each directory in $ac_dir_suffix.
23709   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23710 else
23711   ac_dir_suffix= ac_top_builddir=
23712 fi
23713
23714 case $srcdir in
23715   .)  # No --srcdir option.  We are building in place.
23716     ac_srcdir=.
23717     if test -z "$ac_top_builddir"; then
23718        ac_top_srcdir=.
23719     else
23720        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23721     fi ;;
23722   [\\/]* | ?:[\\/]* )  # Absolute path.
23723     ac_srcdir=$srcdir$ac_dir_suffix;
23724     ac_top_srcdir=$srcdir ;;
23725   *) # Relative path.
23726     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23727     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23728 esac
23729
23730 # Do not use `cd foo && pwd` to compute absolute paths, because
23731 # the directories may not exist.
23732 case `pwd` in
23733 .) ac_abs_builddir="$ac_dir";;
23734 *)
23735   case "$ac_dir" in
23736   .) ac_abs_builddir=`pwd`;;
23737   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23738   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23739   esac;;
23740 esac
23741 case $ac_abs_builddir in
23742 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23743 *)
23744   case ${ac_top_builddir}. in
23745   .) ac_abs_top_builddir=$ac_abs_builddir;;
23746   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23747   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23748   esac;;
23749 esac
23750 case $ac_abs_builddir in
23751 .) ac_abs_srcdir=$ac_srcdir;;
23752 *)
23753   case $ac_srcdir in
23754   .) ac_abs_srcdir=$ac_abs_builddir;;
23755   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23756   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23757   esac;;
23758 esac
23759 case $ac_abs_builddir in
23760 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23761 *)
23762   case $ac_top_srcdir in
23763   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23764   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23765   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23766   esac;;
23767 esac
23768
23769
23770   case $INSTALL in
23771   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23772   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23773   esac
23774
23775   if test x"$ac_file" != x-; then
23776     { echo "$as_me:$LINENO: creating $ac_file" >&5
23777 echo "$as_me: creating $ac_file" >&6;}
23778     rm -f "$ac_file"
23779   fi
23780   # Let's still pretend it is `configure' which instantiates (i.e., don't
23781   # use $as_me), people would be surprised to read:
23782   #    /* config.h.  Generated by config.status.  */
23783   if test x"$ac_file" = x-; then
23784     configure_input=
23785   else
23786     configure_input="$ac_file.  "
23787   fi
23788   configure_input=$configure_input"Generated from `echo $ac_file_in |
23789                                      sed 's,.*/,,'` by configure."
23790
23791   # First look for the input files in the build tree, otherwise in the
23792   # src tree.
23793   ac_file_inputs=`IFS=:
23794     for f in $ac_file_in; do
23795       case $f in
23796       -) echo $tmp/stdin ;;
23797       [\\/$]*)
23798          # Absolute (can't be DOS-style, as IFS=:)
23799          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23800 echo "$as_me: error: cannot find input file: $f" >&2;}
23801    { (exit 1); exit 1; }; }
23802          echo "$f";;
23803       *) # Relative
23804          if test -f "$f"; then
23805            # Build tree
23806            echo "$f"
23807          elif test -f "$srcdir/$f"; then
23808            # Source tree
23809            echo "$srcdir/$f"
23810          else
23811            # /dev/null tree
23812            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23813 echo "$as_me: error: cannot find input file: $f" >&2;}
23814    { (exit 1); exit 1; }; }
23815          fi;;
23816       esac
23817     done` || { (exit 1); exit 1; }
23818 _ACEOF
23819 cat >>$CONFIG_STATUS <<_ACEOF
23820   sed "$ac_vpsub
23821 $extrasub
23822 _ACEOF
23823 cat >>$CONFIG_STATUS <<\_ACEOF
23824 :t
23825 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23826 s,@configure_input@,$configure_input,;t t
23827 s,@srcdir@,$ac_srcdir,;t t
23828 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23829 s,@top_srcdir@,$ac_top_srcdir,;t t
23830 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23831 s,@builddir@,$ac_builddir,;t t
23832 s,@abs_builddir@,$ac_abs_builddir,;t t
23833 s,@top_builddir@,$ac_top_builddir,;t t
23834 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23835 s,@INSTALL@,$ac_INSTALL,;t t
23836 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23837   rm -f $tmp/stdin
23838   if test x"$ac_file" != x-; then
23839     mv $tmp/out $ac_file
23840   else
23841     cat $tmp/out
23842     rm -f $tmp/out
23843   fi
23844
23845 done
23846 _ACEOF
23847 cat >>$CONFIG_STATUS <<\_ACEOF
23848
23849 #
23850 # CONFIG_HEADER section.
23851 #
23852
23853 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23854 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23855 #
23856 # ac_d sets the value in "#define NAME VALUE" lines.
23857 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23858 ac_dB='[         ].*$,\1#\2'
23859 ac_dC=' '
23860 ac_dD=',;t'
23861 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23862 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23863 ac_uB='$,\1#\2define\3'
23864 ac_uC=' '
23865 ac_uD=',;t'
23866
23867 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23868   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23869   case $ac_file in
23870   - | *:- | *:-:* ) # input from stdin
23871         cat >$tmp/stdin
23872         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23873         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23874   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23875         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23876   * )   ac_file_in=$ac_file.in ;;
23877   esac
23878
23879   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23880 echo "$as_me: creating $ac_file" >&6;}
23881
23882   # First look for the input files in the build tree, otherwise in the
23883   # src tree.
23884   ac_file_inputs=`IFS=:
23885     for f in $ac_file_in; do
23886       case $f in
23887       -) echo $tmp/stdin ;;
23888       [\\/$]*)
23889          # Absolute (can't be DOS-style, as IFS=:)
23890          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23891 echo "$as_me: error: cannot find input file: $f" >&2;}
23892    { (exit 1); exit 1; }; }
23893          # Do quote $f, to prevent DOS paths from being IFS'd.
23894          echo "$f";;
23895       *) # Relative
23896          if test -f "$f"; then
23897            # Build tree
23898            echo "$f"
23899          elif test -f "$srcdir/$f"; then
23900            # Source tree
23901            echo "$srcdir/$f"
23902          else
23903            # /dev/null tree
23904            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23905 echo "$as_me: error: cannot find input file: $f" >&2;}
23906    { (exit 1); exit 1; }; }
23907          fi;;
23908       esac
23909     done` || { (exit 1); exit 1; }
23910   # Remove the trailing spaces.
23911   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23912
23913 _ACEOF
23914
23915 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23916 # `conftest.undefs', that substitutes the proper values into
23917 # config.h.in to produce config.h.  The first handles `#define'
23918 # templates, and the second `#undef' templates.
23919 # And first: Protect against being on the right side of a sed subst in
23920 # config.status.  Protect against being in an unquoted here document
23921 # in config.status.
23922 rm -f conftest.defines conftest.undefs
23923 # Using a here document instead of a string reduces the quoting nightmare.
23924 # Putting comments in sed scripts is not portable.
23925 #
23926 # `end' is used to avoid that the second main sed command (meant for
23927 # 0-ary CPP macros) applies to n-ary macro definitions.
23928 # See the Autoconf documentation for `clear'.
23929 cat >confdef2sed.sed <<\_ACEOF
23930 s/[\\&,]/\\&/g
23931 s,[\\$`],\\&,g
23932 t clear
23933 : clear
23934 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23935 t end
23936 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23937 : end
23938 _ACEOF
23939 # If some macros were called several times there might be several times
23940 # the same #defines, which is useless.  Nevertheless, we may not want to
23941 # sort them, since we want the *last* AC-DEFINE to be honored.
23942 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23943 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23944 rm -f confdef2sed.sed
23945
23946 # This sed command replaces #undef with comments.  This is necessary, for
23947 # example, in the case of _POSIX_SOURCE, which is predefined and required
23948 # on some systems where configure will not decide to define it.
23949 cat >>conftest.undefs <<\_ACEOF
23950 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23951 _ACEOF
23952
23953 # Break up conftest.defines because some shells have a limit on the size
23954 # of here documents, and old seds have small limits too (100 cmds).
23955 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23956 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23957 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23958 echo '  :' >>$CONFIG_STATUS
23959 rm -f conftest.tail
23960 while grep . conftest.defines >/dev/null
23961 do
23962   # Write a limited-size here document to $tmp/defines.sed.
23963   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23964   # Speed up: don't consider the non `#define' lines.
23965   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23966   # Work around the forget-to-reset-the-flag bug.
23967   echo 't clr' >>$CONFIG_STATUS
23968   echo ': clr' >>$CONFIG_STATUS
23969   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23970   echo 'CEOF
23971   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23972   rm -f $tmp/in
23973   mv $tmp/out $tmp/in
23974 ' >>$CONFIG_STATUS
23975   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23976   rm -f conftest.defines
23977   mv conftest.tail conftest.defines
23978 done
23979 rm -f conftest.defines
23980 echo '  fi # grep' >>$CONFIG_STATUS
23981 echo >>$CONFIG_STATUS
23982
23983 # Break up conftest.undefs because some shells have a limit on the size
23984 # of here documents, and old seds have small limits too (100 cmds).
23985 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23986 rm -f conftest.tail
23987 while grep . conftest.undefs >/dev/null
23988 do
23989   # Write a limited-size here document to $tmp/undefs.sed.
23990   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23991   # Speed up: don't consider the non `#undef'
23992   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23993   # Work around the forget-to-reset-the-flag bug.
23994   echo 't clr' >>$CONFIG_STATUS
23995   echo ': clr' >>$CONFIG_STATUS
23996   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23997   echo 'CEOF
23998   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23999   rm -f $tmp/in
24000   mv $tmp/out $tmp/in
24001 ' >>$CONFIG_STATUS
24002   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24003   rm -f conftest.undefs
24004   mv conftest.tail conftest.undefs
24005 done
24006 rm -f conftest.undefs
24007
24008 cat >>$CONFIG_STATUS <<\_ACEOF
24009   # Let's still pretend it is `configure' which instantiates (i.e., don't
24010   # use $as_me), people would be surprised to read:
24011   #    /* config.h.  Generated by config.status.  */
24012   if test x"$ac_file" = x-; then
24013     echo "/* Generated by configure.  */" >$tmp/config.h
24014   else
24015     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24016   fi
24017   cat $tmp/in >>$tmp/config.h
24018   rm -f $tmp/in
24019   if test x"$ac_file" != x-; then
24020     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24021       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24022 echo "$as_me: $ac_file is unchanged" >&6;}
24023     else
24024       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24026          X"$ac_file" : 'X\(//\)[^/]' \| \
24027          X"$ac_file" : 'X\(//\)$' \| \
24028          X"$ac_file" : 'X\(/\)' \| \
24029          .     : '\(.\)' 2>/dev/null ||
24030 echo X"$ac_file" |
24031     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24032           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24033           /^X\(\/\/\)$/{ s//\1/; q; }
24034           /^X\(\/\).*/{ s//\1/; q; }
24035           s/.*/./; q'`
24036       { if $as_mkdir_p; then
24037     mkdir -p "$ac_dir"
24038   else
24039     as_dir="$ac_dir"
24040     as_dirs=
24041     while test ! -d "$as_dir"; do
24042       as_dirs="$as_dir $as_dirs"
24043       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24045          X"$as_dir" : 'X\(//\)[^/]' \| \
24046          X"$as_dir" : 'X\(//\)$' \| \
24047          X"$as_dir" : 'X\(/\)' \| \
24048          .     : '\(.\)' 2>/dev/null ||
24049 echo X"$as_dir" |
24050     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24051           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24052           /^X\(\/\/\)$/{ s//\1/; q; }
24053           /^X\(\/\).*/{ s//\1/; q; }
24054           s/.*/./; q'`
24055     done
24056     test ! -n "$as_dirs" || mkdir $as_dirs
24057   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24058 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24059    { (exit 1); exit 1; }; }; }
24060
24061       rm -f $ac_file
24062       mv $tmp/config.h $ac_file
24063     fi
24064   else
24065     cat $tmp/config.h
24066     rm -f $tmp/config.h
24067   fi
24068 # Compute $ac_file's index in $config_headers.
24069 _am_stamp_count=1
24070 for _am_header in $config_headers :; do
24071   case $_am_header in
24072     $ac_file | $ac_file:* )
24073       break ;;
24074     * )
24075       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24076   esac
24077 done
24078 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24079 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24080          X$ac_file : 'X\(//\)[^/]' \| \
24081          X$ac_file : 'X\(//\)$' \| \
24082          X$ac_file : 'X\(/\)' \| \
24083          .     : '\(.\)' 2>/dev/null ||
24084 echo X$ac_file |
24085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24087           /^X\(\/\/\)$/{ s//\1/; q; }
24088           /^X\(\/\).*/{ s//\1/; q; }
24089           s/.*/./; q'`/stamp-h$_am_stamp_count
24090 done
24091 _ACEOF
24092 cat >>$CONFIG_STATUS <<\_ACEOF
24093
24094 #
24095 # CONFIG_COMMANDS section.
24096 #
24097 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24098   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24099   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24100   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24101 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24102          X"$ac_dest" : 'X\(//\)[^/]' \| \
24103          X"$ac_dest" : 'X\(//\)$' \| \
24104          X"$ac_dest" : 'X\(/\)' \| \
24105          .     : '\(.\)' 2>/dev/null ||
24106 echo X"$ac_dest" |
24107     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24108           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24109           /^X\(\/\/\)$/{ s//\1/; q; }
24110           /^X\(\/\).*/{ s//\1/; q; }
24111           s/.*/./; q'`
24112   { if $as_mkdir_p; then
24113     mkdir -p "$ac_dir"
24114   else
24115     as_dir="$ac_dir"
24116     as_dirs=
24117     while test ! -d "$as_dir"; do
24118       as_dirs="$as_dir $as_dirs"
24119       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24120 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24121          X"$as_dir" : 'X\(//\)[^/]' \| \
24122          X"$as_dir" : 'X\(//\)$' \| \
24123          X"$as_dir" : 'X\(/\)' \| \
24124          .     : '\(.\)' 2>/dev/null ||
24125 echo X"$as_dir" |
24126     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24127           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24128           /^X\(\/\/\)$/{ s//\1/; q; }
24129           /^X\(\/\).*/{ s//\1/; q; }
24130           s/.*/./; q'`
24131     done
24132     test ! -n "$as_dirs" || mkdir $as_dirs
24133   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24134 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24135    { (exit 1); exit 1; }; }; }
24136
24137   ac_builddir=.
24138
24139 if test "$ac_dir" != .; then
24140   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24141   # A "../" for each directory in $ac_dir_suffix.
24142   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24143 else
24144   ac_dir_suffix= ac_top_builddir=
24145 fi
24146
24147 case $srcdir in
24148   .)  # No --srcdir option.  We are building in place.
24149     ac_srcdir=.
24150     if test -z "$ac_top_builddir"; then
24151        ac_top_srcdir=.
24152     else
24153        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24154     fi ;;
24155   [\\/]* | ?:[\\/]* )  # Absolute path.
24156     ac_srcdir=$srcdir$ac_dir_suffix;
24157     ac_top_srcdir=$srcdir ;;
24158   *) # Relative path.
24159     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24160     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24161 esac
24162
24163 # Do not use `cd foo && pwd` to compute absolute paths, because
24164 # the directories may not exist.
24165 case `pwd` in
24166 .) ac_abs_builddir="$ac_dir";;
24167 *)
24168   case "$ac_dir" in
24169   .) ac_abs_builddir=`pwd`;;
24170   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24171   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24172   esac;;
24173 esac
24174 case $ac_abs_builddir in
24175 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24176 *)
24177   case ${ac_top_builddir}. in
24178   .) ac_abs_top_builddir=$ac_abs_builddir;;
24179   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24180   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24181   esac;;
24182 esac
24183 case $ac_abs_builddir in
24184 .) ac_abs_srcdir=$ac_srcdir;;
24185 *)
24186   case $ac_srcdir in
24187   .) ac_abs_srcdir=$ac_abs_builddir;;
24188   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24189   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24190   esac;;
24191 esac
24192 case $ac_abs_builddir in
24193 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24194 *)
24195   case $ac_top_srcdir in
24196   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24197   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24198   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24199   esac;;
24200 esac
24201
24202
24203   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24204 echo "$as_me: executing $ac_dest commands" >&6;}
24205   case $ac_dest in
24206     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24207   # Strip MF so we end up with the name of the file.
24208   mf=`echo "$mf" | sed -e 's/:.*$//'`
24209   # Check whether this is an Automake generated Makefile or not.
24210   # We used to match only the files named `Makefile.in', but
24211   # some people rename them; so instead we look at the file content.
24212   # Grep'ing the first line is not enough: some people post-process
24213   # each Makefile.in and add a new line on top of each file to say so.
24214   # So let's grep whole file.
24215   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24216     dirpart=`(dirname "$mf") 2>/dev/null ||
24217 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24218          X"$mf" : 'X\(//\)[^/]' \| \
24219          X"$mf" : 'X\(//\)$' \| \
24220          X"$mf" : 'X\(/\)' \| \
24221          .     : '\(.\)' 2>/dev/null ||
24222 echo X"$mf" |
24223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24224           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24225           /^X\(\/\/\)$/{ s//\1/; q; }
24226           /^X\(\/\).*/{ s//\1/; q; }
24227           s/.*/./; q'`
24228   else
24229     continue
24230   fi
24231   # Extract the definition of DEPDIR, am__include, and am__quote
24232   # from the Makefile without running `make'.
24233   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24234   test -z "$DEPDIR" && continue
24235   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24236   test -z "am__include" && continue
24237   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24238   # When using ansi2knr, U may be empty or an underscore; expand it
24239   U=`sed -n 's/^U = //p' < "$mf"`
24240   # Find all dependency output files, they are included files with
24241   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24242   # simplest approach to changing $(DEPDIR) to its actual value in the
24243   # expansion.
24244   for file in `sed -n "
24245     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24246        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24247     # Make sure the directory exists.
24248     test -f "$dirpart/$file" && continue
24249     fdir=`(dirname "$file") 2>/dev/null ||
24250 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24251          X"$file" : 'X\(//\)[^/]' \| \
24252          X"$file" : 'X\(//\)$' \| \
24253          X"$file" : 'X\(/\)' \| \
24254          .     : '\(.\)' 2>/dev/null ||
24255 echo X"$file" |
24256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24257           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24258           /^X\(\/\/\)$/{ s//\1/; q; }
24259           /^X\(\/\).*/{ s//\1/; q; }
24260           s/.*/./; q'`
24261     { if $as_mkdir_p; then
24262     mkdir -p $dirpart/$fdir
24263   else
24264     as_dir=$dirpart/$fdir
24265     as_dirs=
24266     while test ! -d "$as_dir"; do
24267       as_dirs="$as_dir $as_dirs"
24268       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24270          X"$as_dir" : 'X\(//\)[^/]' \| \
24271          X"$as_dir" : 'X\(//\)$' \| \
24272          X"$as_dir" : 'X\(/\)' \| \
24273          .     : '\(.\)' 2>/dev/null ||
24274 echo X"$as_dir" |
24275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24276           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24277           /^X\(\/\/\)$/{ s//\1/; q; }
24278           /^X\(\/\).*/{ s//\1/; q; }
24279           s/.*/./; q'`
24280     done
24281     test ! -n "$as_dirs" || mkdir $as_dirs
24282   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24283 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24284    { (exit 1); exit 1; }; }; }
24285
24286     # echo "creating $dirpart/$file"
24287     echo '# dummy' > "$dirpart/$file"
24288   done
24289 done
24290  ;;
24291   esac
24292 done
24293 _ACEOF
24294
24295 cat >>$CONFIG_STATUS <<\_ACEOF
24296
24297 { (exit 0); exit 0; }
24298 _ACEOF
24299 chmod +x $CONFIG_STATUS
24300 ac_clean_files=$ac_clean_files_save
24301
24302
24303 # configure is writing to config.log, and then calls config.status.
24304 # config.status does its own redirection, appending to config.log.
24305 # Unfortunately, on DOS this fails, as config.log is still kept open
24306 # by configure, so config.status won't be able to write to it; its
24307 # output is simply discarded.  So we exec the FD to /dev/null,
24308 # effectively closing config.log, so it can be properly (re)opened and
24309 # appended to by config.status.  When coming back to configure, we
24310 # need to make the FD available again.
24311 if test "$no_create" != yes; then
24312   ac_cs_success=:
24313   ac_config_status_args=
24314   test "$silent" = yes &&
24315     ac_config_status_args="$ac_config_status_args --quiet"
24316   exec 5>/dev/null
24317   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24318   exec 5>>config.log
24319   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24320   # would make configure fail if this is the last instruction.
24321   $ac_cs_success || { (exit 1); exit 1; }
24322 fi
24323