[svn-inject] Applying Debian modifications to trunk
[manu/libnss-mysql-bg.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.54 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=${tagnames+${tagnames},}CXX
396
397 tagnames=${tagnames+${tagnames},}F77
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME=
424 PACKAGE_TARNAME=
425 PACKAGE_VERSION=
426 PACKAGE_STRING=
427 PACKAGE_BUGREPORT=
428
429 ac_unique_file="src/nss_main.c"
430 ac_default_prefix=
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RENAME_TRUE RENAME_FALSE LIBVER OS 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 this package 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   --target=TARGET   configure for building compilers for TARGET [HOST]
1019 _ACEOF
1020 fi
1021
1022 if test -n "$ac_init_help"; then
1023
1024   cat <<\_ACEOF
1025
1026 Optional Features:
1027   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1028   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1029   --enable-maintainer-mode enable make rules and dependencies not useful
1030                           (and sometimes confusing) to the casual installer
1031   --disable-dependency-tracking Speeds up one-time builds
1032   --enable-dependency-tracking  Do not reject slow dependency extractors
1033   --enable-static[=PKGS]
1034                           build static libraries [default=no]
1035   --enable-shared[=PKGS]
1036                           build shared libraries [default=yes]
1037   --enable-fast-install[=PKGS]
1038                           optimize for fast installation [default=yes]
1039   --disable-libtool-lock  avoid locking (might break parallel builds)
1040   --enable-debug          Enable debug (see DEBUGGING)
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-mysql=DIR        Location of your MySQL installation
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 _ACEOF
1070 fi
1071
1072 if test "$ac_init_help" = "recursive"; then
1073   # If there are subdirs, report their specific --help.
1074   ac_popdir=`pwd`
1075   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076     test -d $ac_dir || continue
1077     ac_builddir=.
1078
1079 if test "$ac_dir" != .; then
1080   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081   # A "../" for each directory in $ac_dir_suffix.
1082   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083 else
1084   ac_dir_suffix= ac_top_builddir=
1085 fi
1086
1087 case $srcdir in
1088   .)  # No --srcdir option.  We are building in place.
1089     ac_srcdir=.
1090     if test -z "$ac_top_builddir"; then
1091        ac_top_srcdir=.
1092     else
1093        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094     fi ;;
1095   [\\/]* | ?:[\\/]* )  # Absolute path.
1096     ac_srcdir=$srcdir$ac_dir_suffix;
1097     ac_top_srcdir=$srcdir ;;
1098   *) # Relative path.
1099     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101 esac
1102
1103 # Do not use `cd foo && pwd` to compute absolute paths, because
1104 # the directories may not exist.
1105 case `pwd` in
1106 .) ac_abs_builddir="$ac_dir";;
1107 *)
1108   case "$ac_dir" in
1109   .) ac_abs_builddir=`pwd`;;
1110   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112   esac;;
1113 esac
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 *)
1117   case ${ac_top_builddir}. in
1118   .) ac_abs_top_builddir=$ac_abs_builddir;;
1119   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121   esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_srcdir=$ac_srcdir;;
1125 *)
1126   case $ac_srcdir in
1127   .) ac_abs_srcdir=$ac_abs_builddir;;
1128   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130   esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 *)
1135   case $ac_top_srcdir in
1136   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139   esac;;
1140 esac
1141
1142     cd $ac_dir
1143     # Check for guested configure; otherwise get Cygnus style configure.
1144     if test -f $ac_srcdir/configure.gnu; then
1145       echo
1146       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1147     elif test -f $ac_srcdir/configure; then
1148       echo
1149       $SHELL $ac_srcdir/configure  --help=recursive
1150     elif test -f $ac_srcdir/configure.ac ||
1151            test -f $ac_srcdir/configure.in; then
1152       echo
1153       $ac_configure --help
1154     else
1155       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156     fi
1157     cd $ac_popdir
1158   done
1159 fi
1160
1161 test -n "$ac_init_help" && exit 0
1162 if $ac_init_version; then
1163   cat <<\_ACEOF
1164
1165 Copyright (C) 2003 Free Software Foundation, Inc.
1166 This configure script is free software; the Free Software Foundation
1167 gives unlimited permission to copy, distribute and modify it.
1168 _ACEOF
1169   exit 0
1170 fi
1171 exec 5>config.log
1172 cat >&5 <<_ACEOF
1173 This file contains any messages produced by compilers while
1174 running configure, to aid debugging if configure makes a mistake.
1175
1176 It was created by $as_me, which was
1177 generated by GNU Autoconf 2.59.  Invocation command line was
1178
1179   $ $0 $@
1180
1181 _ACEOF
1182 {
1183 cat <<_ASUNAME
1184 ## --------- ##
1185 ## Platform. ##
1186 ## --------- ##
1187
1188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
1194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1196
1197 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1198 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1201 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1202 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1203 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1204
1205 _ASUNAME
1206
1207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 for as_dir in $PATH
1209 do
1210   IFS=$as_save_IFS
1211   test -z "$as_dir" && as_dir=.
1212   echo "PATH: $as_dir"
1213 done
1214
1215 } >&5
1216
1217 cat >&5 <<_ACEOF
1218
1219
1220 ## ----------- ##
1221 ## Core tests. ##
1222 ## ----------- ##
1223
1224 _ACEOF
1225
1226
1227 # Keep a trace of the command line.
1228 # Strip out --no-create and --no-recursion so they do not pile up.
1229 # Strip out --silent because we don't want to record it for future runs.
1230 # Also quote any args containing shell meta-characters.
1231 # Make two passes to allow for proper duplicate-argument suppression.
1232 ac_configure_args=
1233 ac_configure_args0=
1234 ac_configure_args1=
1235 ac_sep=
1236 ac_must_keep_next=false
1237 for ac_pass in 1 2
1238 do
1239   for ac_arg
1240   do
1241     case $ac_arg in
1242     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244     | -silent | --silent | --silen | --sile | --sil)
1245       continue ;;
1246     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248     esac
1249     case $ac_pass in
1250     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251     2)
1252       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253       if test $ac_must_keep_next = true; then
1254         ac_must_keep_next=false # Got value, back to normal.
1255       else
1256         case $ac_arg in
1257           *=* | --config-cache | -C | -disable-* | --disable-* \
1258           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260           | -with-* | --with-* | -without-* | --without-* | --x)
1261             case "$ac_configure_args0 " in
1262               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263             esac
1264             ;;
1265           -* ) ac_must_keep_next=true ;;
1266         esac
1267       fi
1268       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269       # Get rid of the leading space.
1270       ac_sep=" "
1271       ;;
1272     esac
1273   done
1274 done
1275 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
1278 # When interrupted or exit'd, cleanup temporary files, and complete
1279 # config.log.  We remove comments because anyway the quotes in there
1280 # would cause problems or look ugly.
1281 # WARNING: Be sure not to use single quotes in there, as some shells,
1282 # such as our DU 5.0 friend, will then `close' the trap.
1283 trap 'exit_status=$?
1284   # Save into config.log some information that might help in debugging.
1285   {
1286     echo
1287
1288     cat <<\_ASBOX
1289 ## ---------------- ##
1290 ## Cache variables. ##
1291 ## ---------------- ##
1292 _ASBOX
1293     echo
1294     # The following way of writing the cache mishandles newlines in values,
1295 {
1296   (set) 2>&1 |
1297     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298     *ac_space=\ *)
1299       sed -n \
1300         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302       ;;
1303     *)
1304       sed -n \
1305         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306       ;;
1307     esac;
1308 }
1309     echo
1310
1311     cat <<\_ASBOX
1312 ## ----------------- ##
1313 ## Output variables. ##
1314 ## ----------------- ##
1315 _ASBOX
1316     echo
1317     for ac_var in $ac_subst_vars
1318     do
1319       eval ac_val=$`echo $ac_var`
1320       echo "$ac_var='"'"'$ac_val'"'"'"
1321     done | sort
1322     echo
1323
1324     if test -n "$ac_subst_files"; then
1325       cat <<\_ASBOX
1326 ## ------------- ##
1327 ## Output files. ##
1328 ## ------------- ##
1329 _ASBOX
1330       echo
1331       for ac_var in $ac_subst_files
1332       do
1333         eval ac_val=$`echo $ac_var`
1334         echo "$ac_var='"'"'$ac_val'"'"'"
1335       done | sort
1336       echo
1337     fi
1338
1339     if test -s confdefs.h; then
1340       cat <<\_ASBOX
1341 ## ----------- ##
1342 ## confdefs.h. ##
1343 ## ----------- ##
1344 _ASBOX
1345       echo
1346       sed "/^$/d" confdefs.h | sort
1347       echo
1348     fi
1349     test "$ac_signal" != 0 &&
1350       echo "$as_me: caught signal $ac_signal"
1351     echo "$as_me: exit $exit_status"
1352   } >&5
1353   rm -f core *.core &&
1354   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355     exit $exit_status
1356      ' 0
1357 for ac_signal in 1 2 13 15; do
1358   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 done
1360 ac_signal=0
1361
1362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1363 rm -rf conftest* confdefs.h
1364 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365 echo >confdefs.h
1366
1367 # Predefined preprocessor variables.
1368
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 _ACEOF
1372
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 _ACEOF
1392
1393
1394 # Let the site file select an alternate cache file if it wants to.
1395 # Prefer explicitly selected file to automatically selected ones.
1396 if test -z "$CONFIG_SITE"; then
1397   if test "x$prefix" != xNONE; then
1398     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399   else
1400     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401   fi
1402 fi
1403 for ac_site_file in $CONFIG_SITE; do
1404   if test -r "$ac_site_file"; then
1405     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406 echo "$as_me: loading site script $ac_site_file" >&6;}
1407     sed 's/^/| /' "$ac_site_file" >&5
1408     . "$ac_site_file"
1409   fi
1410 done
1411
1412 if test -r "$cache_file"; then
1413   # Some versions of bash will fail to source /dev/null (special
1414   # files actually), so we avoid doing that.
1415   if test -f "$cache_file"; then
1416     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417 echo "$as_me: loading cache $cache_file" >&6;}
1418     case $cache_file in
1419       [\\/]* | ?:[\\/]* ) . $cache_file;;
1420       *)                      . ./$cache_file;;
1421     esac
1422   fi
1423 else
1424   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425 echo "$as_me: creating cache $cache_file" >&6;}
1426   >$cache_file
1427 fi
1428
1429 # Check that the precious variables saved in the cache have kept the same
1430 # value.
1431 ac_cache_corrupted=false
1432 for ac_var in `(set) 2>&1 |
1433                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435   eval ac_new_set=\$ac_env_${ac_var}_set
1436   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437   eval ac_new_val="\$ac_env_${ac_var}_value"
1438   case $ac_old_set,$ac_new_set in
1439     set,)
1440       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442       ac_cache_corrupted=: ;;
1443     ,set)
1444       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446       ac_cache_corrupted=: ;;
1447     ,);;
1448     *)
1449       if test "x$ac_old_val" != "x$ac_new_val"; then
1450         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1453 echo "$as_me:   former value:  $ac_old_val" >&2;}
1454         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1455 echo "$as_me:   current value: $ac_new_val" >&2;}
1456         ac_cache_corrupted=:
1457       fi;;
1458   esac
1459   # Pass precious variables to config.status.
1460   if test "$ac_new_set" = set; then
1461     case $ac_new_val in
1462     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464     *) ac_arg=$ac_var=$ac_new_val ;;
1465     esac
1466     case " $ac_configure_args " in
1467       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1468       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469     esac
1470   fi
1471 done
1472 if $ac_cache_corrupted; then
1473   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477    { (exit 1); exit 1; }; }
1478 fi
1479
1480 ac_ext=c
1481 ac_cpp='$CPP $CPPFLAGS'
1482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504 ac_aux_dir=
1505 for ac_dir in aux $srcdir/aux; do
1506   if test -f $ac_dir/install-sh; then
1507     ac_aux_dir=$ac_dir
1508     ac_install_sh="$ac_aux_dir/install-sh -c"
1509     break
1510   elif test -f $ac_dir/install.sh; then
1511     ac_aux_dir=$ac_dir
1512     ac_install_sh="$ac_aux_dir/install.sh -c"
1513     break
1514   elif test -f $ac_dir/shtool; then
1515     ac_aux_dir=$ac_dir
1516     ac_install_sh="$ac_aux_dir/shtool install -c"
1517     break
1518   fi
1519 done
1520 if test -z "$ac_aux_dir"; then
1521   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5
1522 echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;}
1523    { (exit 1); exit 1; }; }
1524 fi
1525 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1526 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1527 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1528
1529
1530
1531 # Make sure we can run config.sub.
1532 $ac_config_sub sun4 >/dev/null 2>&1 ||
1533   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1534 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1535    { (exit 1); exit 1; }; }
1536
1537 echo "$as_me:$LINENO: checking build system type" >&5
1538 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1539 if test "${ac_cv_build+set}" = set; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   ac_cv_build_alias=$build_alias
1543 test -z "$ac_cv_build_alias" &&
1544   ac_cv_build_alias=`$ac_config_guess`
1545 test -z "$ac_cv_build_alias" &&
1546   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1547 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1548    { (exit 1); exit 1; }; }
1549 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1550   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1551 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1552    { (exit 1); exit 1; }; }
1553
1554 fi
1555 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1556 echo "${ECHO_T}$ac_cv_build" >&6
1557 build=$ac_cv_build
1558 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561
1562
1563 echo "$as_me:$LINENO: checking host system type" >&5
1564 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1565 if test "${ac_cv_host+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   ac_cv_host_alias=$host_alias
1569 test -z "$ac_cv_host_alias" &&
1570   ac_cv_host_alias=$ac_cv_build_alias
1571 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1572   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1574    { (exit 1); exit 1; }; }
1575
1576 fi
1577 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1578 echo "${ECHO_T}$ac_cv_host" >&6
1579 host=$ac_cv_host
1580 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
1584
1585 echo "$as_me:$LINENO: checking target system type" >&5
1586 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1587 if test "${ac_cv_target+set}" = set; then
1588   echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590   ac_cv_target_alias=$target_alias
1591 test "x$ac_cv_target_alias" = "x" &&
1592   ac_cv_target_alias=$ac_cv_host_alias
1593 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1594   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1595 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1596    { (exit 1); exit 1; }; }
1597
1598 fi
1599 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1600 echo "${ECHO_T}$ac_cv_target" >&6
1601 target=$ac_cv_target
1602 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1605
1606
1607 # The aliases save the names the user supplied, while $host etc.
1608 # will get canonicalized.
1609 test -n "$target_alias" &&
1610   test "$program_prefix$program_suffix$program_transform_name" = \
1611     NONENONEs,x,x, &&
1612   program_prefix=${target_alias}-
1613
1614 am__api_version="1.6"
1615 # Find a good install program.  We prefer a C program (faster),
1616 # so one script is as good as another.  But avoid the broken or
1617 # incompatible versions:
1618 # SysV /etc/install, /usr/sbin/install
1619 # SunOS /usr/etc/install
1620 # IRIX /sbin/install
1621 # AIX /bin/install
1622 # AmigaOS /C/install, which installs bootblocks on floppy discs
1623 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1624 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1625 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1626 # OS/2's system install, which has a completely different semantic
1627 # ./install, which can be erroneously created by make from ./install.sh.
1628 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1629 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1630 if test -z "$INSTALL"; then
1631 if test "${ac_cv_path_install+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637   IFS=$as_save_IFS
1638   test -z "$as_dir" && as_dir=.
1639   # Account for people who put trailing slashes in PATH elements.
1640 case $as_dir/ in
1641   ./ | .// | /cC/* | \
1642   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1643   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1644   /usr/ucb/* ) ;;
1645   *)
1646     # OSF1 and SCO ODT 3.0 have their own names for install.
1647     # Don't use installbsd from OSF since it installs stuff as root
1648     # by default.
1649     for ac_prog in ginstall scoinst install; do
1650       for ac_exec_ext in '' $ac_executable_extensions; do
1651         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1652           if test $ac_prog = install &&
1653             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1654             # AIX install.  It has an incompatible calling convention.
1655             :
1656           elif test $ac_prog = install &&
1657             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1658             # program-specific install script used by HP pwplus--don't use.
1659             :
1660           else
1661             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1662             break 3
1663           fi
1664         fi
1665       done
1666     done
1667     ;;
1668 esac
1669 done
1670
1671
1672 fi
1673   if test "${ac_cv_path_install+set}" = set; then
1674     INSTALL=$ac_cv_path_install
1675   else
1676     # As a last resort, use the slow shell script.  We don't cache a
1677     # path for INSTALL within a source directory, because that will
1678     # break other packages using the cache if that directory is
1679     # removed, or if the path is relative.
1680     INSTALL=$ac_install_sh
1681   fi
1682 fi
1683 echo "$as_me:$LINENO: result: $INSTALL" >&5
1684 echo "${ECHO_T}$INSTALL" >&6
1685
1686 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1687 # It thinks the first close brace ends the variable substitution.
1688 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1689
1690 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1691
1692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1693
1694 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1695 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1696 # Just in case
1697 sleep 1
1698 echo timestamp > conftest.file
1699 # Do `set' in a subshell so we don't clobber the current shell's
1700 # arguments.  Must try -L first in case configure is actually a
1701 # symlink; some systems play weird games with the mod time of symlinks
1702 # (eg FreeBSD returns the mod time of the symlink's containing
1703 # directory).
1704 if (
1705    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1706    if test "$*" = "X"; then
1707       # -L didn't work.
1708       set X `ls -t $srcdir/configure conftest.file`
1709    fi
1710    rm -f conftest.file
1711    if test "$*" != "X $srcdir/configure conftest.file" \
1712       && test "$*" != "X conftest.file $srcdir/configure"; then
1713
1714       # If neither matched, then we have a broken ls.  This can happen
1715       # if, for instance, CONFIG_SHELL is bash and it inherits a
1716       # broken ls alias from the environment.  This has actually
1717       # happened.  Such a system could not be considered "sane".
1718       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1719 alias in your environment" >&5
1720 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1721 alias in your environment" >&2;}
1722    { (exit 1); exit 1; }; }
1723    fi
1724
1725    test "$2" = conftest.file
1726    )
1727 then
1728    # Ok.
1729    :
1730 else
1731    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1732 Check your system clock" >&5
1733 echo "$as_me: error: newly created file is older than distributed files!
1734 Check your system clock" >&2;}
1735    { (exit 1); exit 1; }; }
1736 fi
1737 echo "$as_me:$LINENO: result: yes" >&5
1738 echo "${ECHO_T}yes" >&6
1739 test "$program_prefix" != NONE &&
1740   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1741 # Use a double $ so make ignores it.
1742 test "$program_suffix" != NONE &&
1743   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1744 # Double any \ or $.  echo might interpret backslashes.
1745 # By default was `s,x,x', remove it if useless.
1746 cat <<\_ACEOF >conftest.sed
1747 s/[\\$]/&&/g;s/;s,x,x,$//
1748 _ACEOF
1749 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1750 rm conftest.sed
1751
1752
1753 # expand $ac_aux_dir to an absolute path
1754 am_aux_dir=`cd $ac_aux_dir && pwd`
1755
1756 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1757 # Use eval to expand $SHELL
1758 if eval "$MISSING --run true"; then
1759   am_missing_run="$MISSING --run "
1760 else
1761   am_missing_run=
1762   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1763 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1764 fi
1765
1766 for ac_prog in gawk mawk nawk awk
1767 do
1768   # Extract the first word of "$ac_prog", so it can be a program name with args.
1769 set dummy $ac_prog; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_AWK+set}" = set; then
1773   echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775   if test -n "$AWK"; then
1776   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1777 else
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1780 do
1781   IFS=$as_save_IFS
1782   test -z "$as_dir" && as_dir=.
1783   for ac_exec_ext in '' $ac_executable_extensions; do
1784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785     ac_cv_prog_AWK="$ac_prog"
1786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787     break 2
1788   fi
1789 done
1790 done
1791
1792 fi
1793 fi
1794 AWK=$ac_cv_prog_AWK
1795 if test -n "$AWK"; then
1796   echo "$as_me:$LINENO: result: $AWK" >&5
1797 echo "${ECHO_T}$AWK" >&6
1798 else
1799   echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1801 fi
1802
1803   test -n "$AWK" && break
1804 done
1805
1806 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1807 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1808 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1809 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1810   echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812   cat >conftest.make <<\_ACEOF
1813 all:
1814         @echo 'ac_maketemp="$(MAKE)"'
1815 _ACEOF
1816 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1817 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1818 if test -n "$ac_maketemp"; then
1819   eval ac_cv_prog_make_${ac_make}_set=yes
1820 else
1821   eval ac_cv_prog_make_${ac_make}_set=no
1822 fi
1823 rm -f conftest.make
1824 fi
1825 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1826   echo "$as_me:$LINENO: result: yes" >&5
1827 echo "${ECHO_T}yes" >&6
1828   SET_MAKE=
1829 else
1830   echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1832   SET_MAKE="MAKE=${MAKE-make}"
1833 fi
1834
1835  # test to see if srcdir already configured
1836 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1837    test -f $srcdir/config.status; then
1838   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1839 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1840    { (exit 1); exit 1; }; }
1841 fi
1842
1843 # Define the identity of the package.
1844  PACKAGE=libnss-mysql
1845  VERSION=1.3
1846
1847
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE "$PACKAGE"
1850 _ACEOF
1851
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define VERSION "$VERSION"
1855 _ACEOF
1856
1857 # Some tools Automake needs.
1858
1859 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1860
1861
1862 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1863
1864
1865 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1866
1867
1868 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1869
1870
1871 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1872
1873
1874 AMTAR=${AMTAR-"${am_missing_run}tar"}
1875
1876 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1877
1878 # Installed binaries are usually stripped using `strip' when the user
1879 # run `make install-strip'.  However `strip' might not be the right
1880 # tool to use in cross-compilation environments, therefore Automake
1881 # will honor the `STRIP' environment variable to overrule this program.
1882 if test "$cross_compiling" != no; then
1883   if test -n "$ac_tool_prefix"; then
1884   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1885 set dummy ${ac_tool_prefix}strip; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_STRIP+set}" = set; then
1889   echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891   if test -n "$STRIP"; then
1892   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897   IFS=$as_save_IFS
1898   test -z "$as_dir" && as_dir=.
1899   for ac_exec_ext in '' $ac_executable_extensions; do
1900   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903     break 2
1904   fi
1905 done
1906 done
1907
1908 fi
1909 fi
1910 STRIP=$ac_cv_prog_STRIP
1911 if test -n "$STRIP"; then
1912   echo "$as_me:$LINENO: result: $STRIP" >&5
1913 echo "${ECHO_T}$STRIP" >&6
1914 else
1915   echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919 fi
1920 if test -z "$ac_cv_prog_STRIP"; then
1921   ac_ct_STRIP=$STRIP
1922   # Extract the first word of "strip", so it can be a program name with args.
1923 set dummy strip; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   if test -n "$ac_ct_STRIP"; then
1930   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1934 do
1935   IFS=$as_save_IFS
1936   test -z "$as_dir" && as_dir=.
1937   for ac_exec_ext in '' $ac_executable_extensions; do
1938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939     ac_cv_prog_ac_ct_STRIP="strip"
1940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941     break 2
1942   fi
1943 done
1944 done
1945
1946   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1947 fi
1948 fi
1949 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1950 if test -n "$ac_ct_STRIP"; then
1951   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1952 echo "${ECHO_T}$ac_ct_STRIP" >&6
1953 else
1954   echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1956 fi
1957
1958   STRIP=$ac_ct_STRIP
1959 else
1960   STRIP="$ac_cv_prog_STRIP"
1961 fi
1962
1963 fi
1964 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1965
1966 # We need awk for the "check" target.  The system "awk" is bad on
1967 # some platforms.
1968
1969
1970
1971 # Add the stamp file to the list of files AC keeps track of,
1972 # along with our hook.
1973           ac_config_headers="$ac_config_headers config.h"
1974
1975
1976
1977 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1978 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1979     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1980 if test "${enable_maintainer_mode+set}" = set; then
1981   enableval="$enable_maintainer_mode"
1982   USE_MAINTAINER_MODE=$enableval
1983 else
1984   USE_MAINTAINER_MODE=no
1985 fi;
1986   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1987 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1988
1989
1990 if test $USE_MAINTAINER_MODE = yes; then
1991   MAINTAINER_MODE_TRUE=
1992   MAINTAINER_MODE_FALSE='#'
1993 else
1994   MAINTAINER_MODE_TRUE='#'
1995   MAINTAINER_MODE_FALSE=
1996 fi
1997
1998   MAINT=$MAINTAINER_MODE_TRUE
1999
2000
2001
2002 ac_ext=c
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007 if test -n "$ac_tool_prefix"; then
2008   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   if test -n "$CC"; then
2016   ac_cv_prog_CC="$CC" # Let the user override the test.
2017 else
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027     break 2
2028   fi
2029 done
2030 done
2031
2032 fi
2033 fi
2034 CC=$ac_cv_prog_CC
2035 if test -n "$CC"; then
2036   echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6
2038 else
2039   echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2041 fi
2042
2043 fi
2044 if test -z "$ac_cv_prog_CC"; then
2045   ac_ct_CC=$CC
2046   # Extract the first word of "gcc", so it can be a program name with args.
2047 set dummy gcc; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051   echo $ECHO_N "(cached) $ECHO_C" >&6
2052 else
2053   if test -n "$ac_ct_CC"; then
2054   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   for ac_exec_ext in '' $ac_executable_extensions; do
2062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063     ac_cv_prog_ac_ct_CC="gcc"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069
2070 fi
2071 fi
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6
2076 else
2077   echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2079 fi
2080
2081   CC=$ac_ct_CC
2082 else
2083   CC="$ac_cv_prog_CC"
2084 fi
2085
2086 if test -z "$CC"; then
2087   if test -n "$ac_tool_prefix"; then
2088   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2089 set dummy ${ac_tool_prefix}cc; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_CC+set}" = set; then
2093   echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095   if test -n "$CC"; then
2096   ac_cv_prog_CC="$CC" # Let the user override the test.
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101   IFS=$as_save_IFS
2102   test -z "$as_dir" && as_dir=.
2103   for ac_exec_ext in '' $ac_executable_extensions; do
2104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105     ac_cv_prog_CC="${ac_tool_prefix}cc"
2106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107     break 2
2108   fi
2109 done
2110 done
2111
2112 fi
2113 fi
2114 CC=$ac_cv_prog_CC
2115 if test -n "$CC"; then
2116   echo "$as_me:$LINENO: result: $CC" >&5
2117 echo "${ECHO_T}$CC" >&6
2118 else
2119   echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2121 fi
2122
2123 fi
2124 if test -z "$ac_cv_prog_CC"; then
2125   ac_ct_CC=$CC
2126   # Extract the first word of "cc", so it can be a program name with args.
2127 set dummy cc; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test -n "$ac_ct_CC"; then
2134   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143     ac_cv_prog_ac_ct_CC="cc"
2144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145     break 2
2146   fi
2147 done
2148 done
2149
2150 fi
2151 fi
2152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2153 if test -n "$ac_ct_CC"; then
2154   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2155 echo "${ECHO_T}$ac_ct_CC" >&6
2156 else
2157   echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2159 fi
2160
2161   CC=$ac_ct_CC
2162 else
2163   CC="$ac_cv_prog_CC"
2164 fi
2165
2166 fi
2167 if test -z "$CC"; then
2168   # Extract the first word of "cc", so it can be a program name with args.
2169 set dummy cc; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_CC+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   if test -n "$CC"; then
2176   ac_cv_prog_CC="$CC" # Let the user override the test.
2177 else
2178   ac_prog_rejected=no
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2181 do
2182   IFS=$as_save_IFS
2183   test -z "$as_dir" && as_dir=.
2184   for ac_exec_ext in '' $ac_executable_extensions; do
2185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2187        ac_prog_rejected=yes
2188        continue
2189      fi
2190     ac_cv_prog_CC="cc"
2191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192     break 2
2193   fi
2194 done
2195 done
2196
2197 if test $ac_prog_rejected = yes; then
2198   # We found a bogon in the path, so make sure we never use it.
2199   set dummy $ac_cv_prog_CC
2200   shift
2201   if test $# != 0; then
2202     # We chose a different compiler from the bogus one.
2203     # However, it has the same basename, so the bogon will be chosen
2204     # first if we set CC to just the basename; use the full file name.
2205     shift
2206     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2207   fi
2208 fi
2209 fi
2210 fi
2211 CC=$ac_cv_prog_CC
2212 if test -n "$CC"; then
2213   echo "$as_me:$LINENO: result: $CC" >&5
2214 echo "${ECHO_T}$CC" >&6
2215 else
2216   echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6
2218 fi
2219
2220 fi
2221 if test -z "$CC"; then
2222   if test -n "$ac_tool_prefix"; then
2223   for ac_prog in cl
2224   do
2225     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2227 echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   if test -n "$CC"; then
2233   ac_cv_prog_CC="$CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238   IFS=$as_save_IFS
2239   test -z "$as_dir" && as_dir=.
2240   for ac_exec_ext in '' $ac_executable_extensions; do
2241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244     break 2
2245   fi
2246 done
2247 done
2248
2249 fi
2250 fi
2251 CC=$ac_cv_prog_CC
2252 if test -n "$CC"; then
2253   echo "$as_me:$LINENO: result: $CC" >&5
2254 echo "${ECHO_T}$CC" >&6
2255 else
2256   echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6
2258 fi
2259
2260     test -n "$CC" && break
2261   done
2262 fi
2263 if test -z "$CC"; then
2264   ac_ct_CC=$CC
2265   for ac_prog in cl
2266 do
2267   # Extract the first word of "$ac_prog", so it can be a program name with args.
2268 set dummy $ac_prog; ac_word=$2
2269 echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   if test -n "$ac_ct_CC"; then
2275   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282   for ac_exec_ext in '' $ac_executable_extensions; do
2283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284     ac_cv_prog_ac_ct_CC="$ac_prog"
2285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289 done
2290
2291 fi
2292 fi
2293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2294 if test -n "$ac_ct_CC"; then
2295   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2296 echo "${ECHO_T}$ac_ct_CC" >&6
2297 else
2298   echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2300 fi
2301
2302   test -n "$ac_ct_CC" && break
2303 done
2304
2305   CC=$ac_ct_CC
2306 fi
2307
2308 fi
2309
2310
2311 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&5
2313 echo "$as_me: error: no acceptable C compiler found in \$PATH
2314 See \`config.log' for more details." >&2;}
2315    { (exit 1); exit 1; }; }
2316
2317 # Provide some information about the compiler.
2318 echo "$as_me:$LINENO:" \
2319      "checking for C compiler version" >&5
2320 ac_compiler=`set X $ac_compile; echo $2`
2321 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2322   (eval $ac_compiler --version </dev/null >&5) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }
2326 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2327   (eval $ac_compiler -v </dev/null >&5) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }
2331 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2332   (eval $ac_compiler -V </dev/null >&5) 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); }
2336
2337 cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h.  */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h.  */
2343
2344 int
2345 main ()
2346 {
2347
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 ac_clean_files_save=$ac_clean_files
2353 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2354 # Try to create an executable without -o first, disregard a.out.
2355 # It will help us diagnose broken compilers, and finding out an intuition
2356 # of exeext.
2357 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2358 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2359 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2360 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2361   (eval $ac_link_default) 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); }; then
2365   # Find the output, starting from the most likely.  This scheme is
2366 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2367 # resort.
2368
2369 # Be careful to initialize this variable, since it used to be cached.
2370 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2371 ac_cv_exeext=
2372 # b.out is created by i960 compilers.
2373 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2374 do
2375   test -f "$ac_file" || continue
2376   case $ac_file in
2377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2378         ;;
2379     conftest.$ac_ext )
2380         # This is the source file.
2381         ;;
2382     [ab].out )
2383         # We found the default executable, but exeext='' is most
2384         # certainly right.
2385         break;;
2386     *.* )
2387         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2388         # FIXME: I believe we export ac_cv_exeext for Libtool,
2389         # but it would be cool to find out if it's true.  Does anybody
2390         # maintain Libtool? --akim.
2391         export ac_cv_exeext
2392         break;;
2393     * )
2394         break;;
2395   esac
2396 done
2397 else
2398   echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2400
2401 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2402 See \`config.log' for more details." >&5
2403 echo "$as_me: error: C compiler cannot create executables
2404 See \`config.log' for more details." >&2;}
2405    { (exit 77); exit 77; }; }
2406 fi
2407
2408 ac_exeext=$ac_cv_exeext
2409 echo "$as_me:$LINENO: result: $ac_file" >&5
2410 echo "${ECHO_T}$ac_file" >&6
2411
2412 # Check the compiler produces executables we can run.  If not, either
2413 # the compiler is broken, or we cross compile.
2414 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2415 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2416 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2417 # If not cross compiling, check that we can run a simple program.
2418 if test "$cross_compiling" != yes; then
2419   if { ac_try='./$ac_file'
2420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421   (eval $ac_try) 2>&5
2422   ac_status=$?
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); }; }; then
2425     cross_compiling=no
2426   else
2427     if test "$cross_compiling" = maybe; then
2428         cross_compiling=yes
2429     else
2430         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2431 If you meant to cross compile, use \`--host'.
2432 See \`config.log' for more details." >&5
2433 echo "$as_me: error: cannot run C compiled programs.
2434 If you meant to cross compile, use \`--host'.
2435 See \`config.log' for more details." >&2;}
2436    { (exit 1); exit 1; }; }
2437     fi
2438   fi
2439 fi
2440 echo "$as_me:$LINENO: result: yes" >&5
2441 echo "${ECHO_T}yes" >&6
2442
2443 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2444 ac_clean_files=$ac_clean_files_save
2445 # Check the compiler produces executables we can run.  If not, either
2446 # the compiler is broken, or we cross compile.
2447 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2448 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2449 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2450 echo "${ECHO_T}$cross_compiling" >&6
2451
2452 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2453 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2455   (eval $ac_link) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; then
2459   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2460 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2461 # work properly (i.e., refer to `conftest.exe'), while it won't with
2462 # `rm'.
2463 for ac_file in conftest.exe conftest conftest.*; do
2464   test -f "$ac_file" || continue
2465   case $ac_file in
2466     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2467     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2468           export ac_cv_exeext
2469           break;;
2470     * ) break;;
2471   esac
2472 done
2473 else
2474   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2475 See \`config.log' for more details." >&5
2476 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2477 See \`config.log' for more details." >&2;}
2478    { (exit 1); exit 1; }; }
2479 fi
2480
2481 rm -f conftest$ac_cv_exeext
2482 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2483 echo "${ECHO_T}$ac_cv_exeext" >&6
2484
2485 rm -f conftest.$ac_ext
2486 EXEEXT=$ac_cv_exeext
2487 ac_exeext=$EXEEXT
2488 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2489 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2490 if test "${ac_cv_objext+set}" = set; then
2491   echo $ECHO_N "(cached) $ECHO_C" >&6
2492 else
2493   cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h.  */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h.  */
2499
2500 int
2501 main ()
2502 {
2503
2504   ;
2505   return 0;
2506 }
2507 _ACEOF
2508 rm -f conftest.o conftest.obj
2509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510   (eval $ac_compile) 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; then
2514   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2515   case $ac_file in
2516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2517     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2518        break;;
2519   esac
2520 done
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&2;}
2529    { (exit 1); exit 1; }; }
2530 fi
2531
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2533 fi
2534 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6
2536 OBJEXT=$ac_cv_objext
2537 ac_objext=$OBJEXT
2538 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549
2550 int
2551 main ()
2552 {
2553 #ifndef __GNUC__
2554        choke me
2555 #endif
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563   (eval $ac_compile) 2>conftest.er1
2564   ac_status=$?
2565   grep -v '^ *+' conftest.er1 >conftest.err
2566   rm -f conftest.er1
2567   cat conftest.err >&5
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); } &&
2570          { ac_try='test -z "$ac_c_werror_flag"
2571                          || test ! -s conftest.err'
2572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573   (eval $ac_try) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; } &&
2577          { ac_try='test -s conftest.$ac_objext'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583   ac_compiler_gnu=yes
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 ac_compiler_gnu=no
2589 fi
2590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2591 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2592
2593 fi
2594 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2595 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2596 GCC=`test $ac_compiler_gnu = yes && echo yes`
2597 ac_test_CFLAGS=${CFLAGS+set}
2598 ac_save_CFLAGS=$CFLAGS
2599 CFLAGS="-g"
2600 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2601 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2602 if test "${ac_cv_prog_cc_g+set}" = set; then
2603   echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605   cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h.  */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h.  */
2611
2612 int
2613 main ()
2614 {
2615
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622   (eval $ac_compile) 2>conftest.er1
2623   ac_status=$?
2624   grep -v '^ *+' conftest.er1 >conftest.err
2625   rm -f conftest.er1
2626   cat conftest.err >&5
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -z "$ac_c_werror_flag"
2630                          || test ! -s conftest.err'
2631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; } &&
2636          { ac_try='test -s conftest.$ac_objext'
2637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638   (eval $ac_try) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; }; then
2642   ac_cv_prog_cc_g=yes
2643 else
2644   echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2646
2647 ac_cv_prog_cc_g=no
2648 fi
2649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2650 fi
2651 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2653 if test "$ac_test_CFLAGS" = set; then
2654   CFLAGS=$ac_save_CFLAGS
2655 elif test $ac_cv_prog_cc_g = yes; then
2656   if test "$GCC" = yes; then
2657     CFLAGS="-g -O2"
2658   else
2659     CFLAGS="-g"
2660   fi
2661 else
2662   if test "$GCC" = yes; then
2663     CFLAGS="-O2"
2664   else
2665     CFLAGS=
2666   fi
2667 fi
2668 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2669 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2670 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   ac_cv_prog_cc_stdc=no
2674 ac_save_CC=$CC
2675 cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h.  */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h.  */
2681 #include <stdarg.h>
2682 #include <stdio.h>
2683 #include <sys/types.h>
2684 #include <sys/stat.h>
2685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2686 struct buf { int x; };
2687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2688 static char *e (p, i)
2689      char **p;
2690      int i;
2691 {
2692   return p[i];
2693 }
2694 static char *f (char * (*g) (char **, int), char **p, ...)
2695 {
2696   char *s;
2697   va_list v;
2698   va_start (v,p);
2699   s = g (p, va_arg (v,int));
2700   va_end (v);
2701   return s;
2702 }
2703
2704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2705    function prototypes and stuff, but not '\xHH' hex character constants.
2706    These don't provoke an error unfortunately, instead are silently treated
2707    as 'x'.  The following induces an error, until -std1 is added to get
2708    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2709    array size at least.  It's necessary to write '\x00'==0 to get something
2710    that's true only with -std1.  */
2711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2712
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2717 int argc;
2718 char **argv;
2719 int
2720 main ()
2721 {
2722 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 # Don't try gcc -ansi; that turns off useful extensions and
2728 # breaks some systems' header files.
2729 # AIX                   -qlanglvl=ansi
2730 # Ultrix and OSF/1      -std1
2731 # HP-UX 10.20 and later -Ae
2732 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2733 # SVR4                  -Xc -D__EXTENSIONS__
2734 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2735 do
2736   CC="$ac_save_CC $ac_arg"
2737   rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739   (eval $ac_compile) 2>conftest.er1
2740   ac_status=$?
2741   grep -v '^ *+' conftest.er1 >conftest.err
2742   rm -f conftest.er1
2743   cat conftest.err >&5
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } &&
2746          { ac_try='test -z "$ac_c_werror_flag"
2747                          || test ! -s conftest.err'
2748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; } &&
2753          { ac_try='test -s conftest.$ac_objext'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; }; then
2759   ac_cv_prog_cc_stdc=$ac_arg
2760 break
2761 else
2762   echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2764
2765 fi
2766 rm -f conftest.err conftest.$ac_objext
2767 done
2768 rm -f conftest.$ac_ext conftest.$ac_objext
2769 CC=$ac_save_CC
2770
2771 fi
2772
2773 case "x$ac_cv_prog_cc_stdc" in
2774   x|xno)
2775     echo "$as_me:$LINENO: result: none needed" >&5
2776 echo "${ECHO_T}none needed" >&6 ;;
2777   *)
2778     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2779 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2780     CC="$CC $ac_cv_prog_cc_stdc" ;;
2781 esac
2782
2783 # Some people use a C++ compiler to compile C.  Since we use `exit',
2784 # in C++ we need to declare it.  In case someone uses the same compiler
2785 # for both compiling C and C++ we need to have the C++ compiler decide
2786 # the declaration of exit, since it's the most demanding environment.
2787 cat >conftest.$ac_ext <<_ACEOF
2788 #ifndef __cplusplus
2789   choke me
2790 #endif
2791 _ACEOF
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794   (eval $ac_compile) 2>conftest.er1
2795   ac_status=$?
2796   grep -v '^ *+' conftest.er1 >conftest.err
2797   rm -f conftest.er1
2798   cat conftest.err >&5
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); } &&
2801          { ac_try='test -z "$ac_c_werror_flag"
2802                          || test ! -s conftest.err'
2803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; } &&
2808          { ac_try='test -s conftest.$ac_objext'
2809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); }; }; then
2814   for ac_declaration in \
2815    '' \
2816    'extern "C" void std::exit (int) throw (); using std::exit;' \
2817    'extern "C" void std::exit (int); using std::exit;' \
2818    'extern "C" void exit (int) throw ();' \
2819    'extern "C" void exit (int);' \
2820    'void exit (int);'
2821 do
2822   cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828 $ac_declaration
2829 #include <stdlib.h>
2830 int
2831 main ()
2832 {
2833 exit (42);
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840   (eval $ac_compile) 2>conftest.er1
2841   ac_status=$?
2842   grep -v '^ *+' conftest.er1 >conftest.err
2843   rm -f conftest.er1
2844   cat conftest.err >&5
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); } &&
2847          { ac_try='test -z "$ac_c_werror_flag"
2848                          || test ! -s conftest.err'
2849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; } &&
2854          { ac_try='test -s conftest.$ac_objext'
2855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; }; then
2860   :
2861 else
2862   echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2864
2865 continue
2866 fi
2867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868   cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h.  */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h.  */
2874 $ac_declaration
2875 int
2876 main ()
2877 {
2878 exit (42);
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 rm -f conftest.$ac_objext
2884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2885   (eval $ac_compile) 2>conftest.er1
2886   ac_status=$?
2887   grep -v '^ *+' conftest.er1 >conftest.err
2888   rm -f conftest.er1
2889   cat conftest.err >&5
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); } &&
2892          { ac_try='test -z "$ac_c_werror_flag"
2893                          || test ! -s conftest.err'
2894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895   (eval $ac_try) 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; } &&
2899          { ac_try='test -s conftest.$ac_objext'
2900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901   (eval $ac_try) 2>&5
2902   ac_status=$?
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); }; }; then
2905   break
2906 else
2907   echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2909
2910 fi
2911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2912 done
2913 rm -f conftest*
2914 if test -n "$ac_declaration"; then
2915   echo '#ifdef __cplusplus' >>confdefs.h
2916   echo $ac_declaration      >>confdefs.h
2917   echo '#endif'             >>confdefs.h
2918 fi
2919
2920 else
2921   echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924 fi
2925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926 ac_ext=c
2927 ac_cpp='$CPP $CPPFLAGS'
2928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 rm -f .deps 2>/dev/null
2932 mkdir .deps 2>/dev/null
2933 if test -d .deps; then
2934   DEPDIR=.deps
2935 else
2936   # MS-DOS does not allow filenames that begin with a dot.
2937   DEPDIR=_deps
2938 fi
2939 rmdir .deps 2>/dev/null
2940
2941
2942           ac_config_commands="$ac_config_commands depfiles"
2943
2944
2945 am_make=${MAKE-make}
2946 cat > confinc << 'END'
2947 doit:
2948         @echo done
2949 END
2950 # If we don't find an include directive, just comment out the code.
2951 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2952 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2953 am__include="#"
2954 am__quote=
2955 _am_result=none
2956 # First try GNU make style include.
2957 echo "include confinc" > confmf
2958 # We grep out `Entering directory' and `Leaving directory'
2959 # messages which can occur if `w' ends up in MAKEFLAGS.
2960 # In particular we don't look at `^make:' because GNU make might
2961 # be invoked under some other name (usually "gmake"), in which
2962 # case it prints its new name instead of `make'.
2963 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2964    am__include=include
2965    am__quote=
2966    _am_result=GNU
2967 fi
2968 # Now try BSD make style include.
2969 if test "$am__include" = "#"; then
2970    echo '.include "confinc"' > confmf
2971    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2972       am__include=.include
2973       am__quote="\""
2974       _am_result=BSD
2975    fi
2976 fi
2977
2978
2979 echo "$as_me:$LINENO: result: $_am_result" >&5
2980 echo "${ECHO_T}$_am_result" >&6
2981 rm -f confinc confmf
2982
2983 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2984 if test "${enable_dependency_tracking+set}" = set; then
2985   enableval="$enable_dependency_tracking"
2986
2987 fi;
2988 if test "x$enable_dependency_tracking" != xno; then
2989   am_depcomp="$ac_aux_dir/depcomp"
2990   AMDEPBACKSLASH='\'
2991 fi
2992
2993
2994 if test "x$enable_dependency_tracking" != xno; then
2995   AMDEP_TRUE=
2996   AMDEP_FALSE='#'
2997 else
2998   AMDEP_TRUE='#'
2999   AMDEP_FALSE=
3000 fi
3001
3002
3003
3004
3005 depcc="$CC"   am_compiler_list=
3006
3007 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3008 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3009 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3013   # We make a subdir and do the tests there.  Otherwise we can end up
3014   # making bogus files that we don't know about and never remove.  For
3015   # instance it was reported that on HP-UX the gcc test will end up
3016   # making a dummy file named `D' -- because `-MD' means `put the output
3017   # in D'.
3018   mkdir conftest.dir
3019   # Copy depcomp to subdir because otherwise we won't find it if we're
3020   # using a relative directory.
3021   cp "$am_depcomp" conftest.dir
3022   cd conftest.dir
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     # We need to recreate these files for each test, as the compiler may
3030     # overwrite some of them when testing with obscure command lines.
3031     # This happens at least with the AIX C compiler.
3032     echo '#include "conftest.h"' > conftest.c
3033     echo 'int i;' > conftest.h
3034     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3035
3036     case $depmode in
3037     nosideeffect)
3038       # after this tag, mechanisms are not by side-effect, so they'll
3039       # only be used when explicitly requested
3040       if test "x$enable_dependency_tracking" = xyes; then
3041         continue
3042       else
3043         break
3044       fi
3045       ;;
3046     none) break ;;
3047     esac
3048     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3049     # mode.  It turns out that the SunPro C++ compiler does not properly
3050     # handle `-M -o', and we need to detect this.
3051     if depmode=$depmode \
3052        source=conftest.c object=conftest.o \
3053        depfile=conftest.Po tmpdepfile=conftest.TPo \
3054        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3055        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3056        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3057       am_cv_CC_dependencies_compiler_type=$depmode
3058       break
3059     fi
3060   done
3061
3062   cd ..
3063   rm -rf conftest.dir
3064 else
3065   am_cv_CC_dependencies_compiler_type=none
3066 fi
3067
3068 fi
3069 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3070 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3071 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3072
3073
3074
3075 # Check whether --enable-static or --disable-static was given.
3076 if test "${enable_static+set}" = set; then
3077   enableval="$enable_static"
3078   p=${PACKAGE-default}
3079     case $enableval in
3080     yes) enable_static=yes ;;
3081     no) enable_static=no ;;
3082     *)
3083      enable_static=no
3084       # Look at the argument we got.  We use all the common list separators.
3085       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3086       for pkg in $enableval; do
3087         IFS="$lt_save_ifs"
3088         if test "X$pkg" = "X$p"; then
3089           enable_static=yes
3090         fi
3091       done
3092       IFS="$lt_save_ifs"
3093       ;;
3094     esac
3095 else
3096   enable_static=no
3097 fi;
3098
3099
3100 # Check whether --enable-shared or --disable-shared was given.
3101 if test "${enable_shared+set}" = set; then
3102   enableval="$enable_shared"
3103   p=${PACKAGE-default}
3104     case $enableval in
3105     yes) enable_shared=yes ;;
3106     no) enable_shared=no ;;
3107     *)
3108       enable_shared=no
3109       # Look at the argument we got.  We use all the common list separators.
3110       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3111       for pkg in $enableval; do
3112         IFS="$lt_save_ifs"
3113         if test "X$pkg" = "X$p"; then
3114           enable_shared=yes
3115         fi
3116       done
3117       IFS="$lt_save_ifs"
3118       ;;
3119     esac
3120 else
3121   enable_shared=yes
3122 fi;
3123
3124 # Check whether --enable-fast-install or --disable-fast-install was given.
3125 if test "${enable_fast_install+set}" = set; then
3126   enableval="$enable_fast_install"
3127   p=${PACKAGE-default}
3128     case $enableval in
3129     yes) enable_fast_install=yes ;;
3130     no) enable_fast_install=no ;;
3131     *)
3132       enable_fast_install=no
3133       # Look at the argument we got.  We use all the common list separators.
3134       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3135       for pkg in $enableval; do
3136         IFS="$lt_save_ifs"
3137         if test "X$pkg" = "X$p"; then
3138           enable_fast_install=yes
3139         fi
3140       done
3141       IFS="$lt_save_ifs"
3142       ;;
3143     esac
3144 else
3145   enable_fast_install=yes
3146 fi;
3147
3148 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3149 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3150 if test "${lt_cv_path_SED+set}" = set; then
3151   echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153   # Loop through the user's path and test for sed and gsed.
3154 # Then use that list of sed's as ones to test for truncation.
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158   IFS=$as_save_IFS
3159   test -z "$as_dir" && as_dir=.
3160   for lt_ac_prog in sed gsed; do
3161     for ac_exec_ext in '' $ac_executable_extensions; do
3162       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3163         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3164       fi
3165     done
3166   done
3167 done
3168 lt_ac_max=0
3169 lt_ac_count=0
3170 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3171 # along with /bin/sed that truncates output.
3172 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3173   test ! -f $lt_ac_sed && break
3174   cat /dev/null > conftest.in
3175   lt_ac_count=0
3176   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3177   # Check for GNU sed and select it if it is found.
3178   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3179     lt_cv_path_SED=$lt_ac_sed
3180     break
3181   fi
3182   while true; do
3183     cat conftest.in conftest.in >conftest.tmp
3184     mv conftest.tmp conftest.in
3185     cp conftest.in conftest.nl
3186     echo >>conftest.nl
3187     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3188     cmp -s conftest.out conftest.nl || break
3189     # 10000 chars as input seems more than enough
3190     test $lt_ac_count -gt 10 && break
3191     lt_ac_count=`expr $lt_ac_count + 1`
3192     if test $lt_ac_count -gt $lt_ac_max; then
3193       lt_ac_max=$lt_ac_count
3194       lt_cv_path_SED=$lt_ac_sed
3195     fi
3196   done
3197 done
3198 SED=$lt_cv_path_SED
3199
3200 fi
3201
3202 echo "$as_me:$LINENO: result: $SED" >&5
3203 echo "${ECHO_T}$SED" >&6
3204
3205 echo "$as_me:$LINENO: checking for egrep" >&5
3206 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3207 if test "${ac_cv_prog_egrep+set}" = set; then
3208   echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3211     then ac_cv_prog_egrep='grep -E'
3212     else ac_cv_prog_egrep='egrep'
3213     fi
3214 fi
3215 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3216 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3217  EGREP=$ac_cv_prog_egrep
3218
3219
3220
3221 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3222 if test "${with_gnu_ld+set}" = set; then
3223   withval="$with_gnu_ld"
3224   test "$withval" = no || with_gnu_ld=yes
3225 else
3226   with_gnu_ld=no
3227 fi;
3228 ac_prog=ld
3229 if test "$GCC" = yes; then
3230   # Check if gcc -print-prog-name=ld gives a path.
3231   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3232 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3233   case $host in
3234   *-*-mingw*)
3235     # gcc leaves a trailing carriage return which upsets mingw
3236     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3237   *)
3238     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3239   esac
3240   case $ac_prog in
3241     # Accept absolute paths.
3242     [\\/]* | ?:[\\/]*)
3243       re_direlt='/[^/][^/]*/\.\./'
3244       # Canonicalize the pathname of ld
3245       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3246       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3247         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3248       done
3249       test -z "$LD" && LD="$ac_prog"
3250       ;;
3251   "")
3252     # If it fails, then pretend we aren't using GCC.
3253     ac_prog=ld
3254     ;;
3255   *)
3256     # If it is relative, then search for the first ld in PATH.
3257     with_gnu_ld=unknown
3258     ;;
3259   esac
3260 elif test "$with_gnu_ld" = yes; then
3261   echo "$as_me:$LINENO: checking for GNU ld" >&5
3262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3263 else
3264   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3266 fi
3267 if test "${lt_cv_path_LD+set}" = set; then
3268   echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270   if test -z "$LD"; then
3271   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3272   for ac_dir in $PATH; do
3273     IFS="$lt_save_ifs"
3274     test -z "$ac_dir" && ac_dir=.
3275     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3276       lt_cv_path_LD="$ac_dir/$ac_prog"
3277       # Check to see if the program is GNU ld.  I'd rather use --version,
3278       # but apparently some GNU ld's only accept -v.
3279       # Break only if it was the GNU/non-GNU ld that we prefer.
3280       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3281       *GNU* | *'with BFD'*)
3282         test "$with_gnu_ld" != no && break
3283         ;;
3284       *)
3285         test "$with_gnu_ld" != yes && break
3286         ;;
3287       esac
3288     fi
3289   done
3290   IFS="$lt_save_ifs"
3291 else
3292   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3293 fi
3294 fi
3295
3296 LD="$lt_cv_path_LD"
3297 if test -n "$LD"; then
3298   echo "$as_me:$LINENO: result: $LD" >&5
3299 echo "${ECHO_T}$LD" >&6
3300 else
3301   echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3303 fi
3304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3306    { (exit 1); exit 1; }; }
3307 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3309 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3310   echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3313 case `$LD -v 2>&1 </dev/null` in
3314 *GNU* | *'with BFD'*)
3315   lt_cv_prog_gnu_ld=yes
3316   ;;
3317 *)
3318   lt_cv_prog_gnu_ld=no
3319   ;;
3320 esac
3321 fi
3322 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3323 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3324 with_gnu_ld=$lt_cv_prog_gnu_ld
3325
3326
3327 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3328 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3329 if test "${lt_cv_ld_reload_flag+set}" = set; then
3330   echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332   lt_cv_ld_reload_flag='-r'
3333 fi
3334 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3335 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3336 reload_flag=$lt_cv_ld_reload_flag
3337 case $reload_flag in
3338 "" | " "*) ;;
3339 *) reload_flag=" $reload_flag" ;;
3340 esac
3341 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3342
3343 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3344 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3345 if test "${lt_cv_path_NM+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   if test -n "$NM"; then
3349   # Let the user override the test.
3350   lt_cv_path_NM="$NM"
3351 else
3352   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3353   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3354     IFS="$lt_save_ifs"
3355     test -z "$ac_dir" && ac_dir=.
3356     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3357     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3358       # Check to see if the nm accepts a BSD-compat flag.
3359       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3360       #   nm: unknown option "B" ignored
3361       # Tru64's nm complains that /dev/null is an invalid object file
3362       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3363       */dev/null* | *'Invalid file or object type'*)
3364         lt_cv_path_NM="$tmp_nm -B"
3365         break
3366         ;;
3367       *)
3368         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3369         */dev/null*)
3370           lt_cv_path_NM="$tmp_nm -p"
3371           break
3372           ;;
3373         *)
3374           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3375           continue # so that we can try to find one that supports BSD flags
3376           ;;
3377         esac
3378       esac
3379     fi
3380   done
3381   IFS="$lt_save_ifs"
3382   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3383 fi
3384 fi
3385 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3386 echo "${ECHO_T}$lt_cv_path_NM" >&6
3387 NM="$lt_cv_path_NM"
3388
3389 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3390 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3391 LN_S=$as_ln_s
3392 if test "$LN_S" = "ln -s"; then
3393   echo "$as_me:$LINENO: result: yes" >&5
3394 echo "${ECHO_T}yes" >&6
3395 else
3396   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3397 echo "${ECHO_T}no, using $LN_S" >&6
3398 fi
3399
3400 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3401 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3402 if test "${lt_cv_deplibs_check_method+set}" = set; then
3403   echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405   lt_cv_file_magic_cmd='$MAGIC_CMD'
3406 lt_cv_file_magic_test_file=
3407 lt_cv_deplibs_check_method='unknown'
3408 # Need to set the preceding variable on all platforms that support
3409 # interlibrary dependencies.
3410 # 'none' -- dependencies not supported.
3411 # `unknown' -- same as none, but documents that we really don't know.
3412 # 'pass_all' -- all dependencies passed with no checks.
3413 # 'test_compile' -- check by making test program.
3414 # 'file_magic [[regex]]' -- check by looking for files in library path
3415 # which responds to the $file_magic_cmd with a given extended regex.
3416 # If you have `file' or equivalent on your system and you're not sure
3417 # whether `pass_all' will *always* work, you probably want this one.
3418
3419 case $host_os in
3420 aix4* | aix5*)
3421   lt_cv_deplibs_check_method=pass_all
3422   ;;
3423
3424 beos*)
3425   lt_cv_deplibs_check_method=pass_all
3426   ;;
3427
3428 bsdi4*)
3429   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3430   lt_cv_file_magic_cmd='/usr/bin/file -L'
3431   lt_cv_file_magic_test_file=/shlib/libc.so
3432   ;;
3433
3434 cygwin*)
3435   # win32_libid is a shell function defined in ltmain.sh
3436   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3437   lt_cv_file_magic_cmd='win32_libid'
3438   ;;
3439
3440 mingw* | pw32*)
3441   # Base MSYS/MinGW do not provide the 'file' command needed by
3442   # win32_libid shell function, so use a weaker test based on 'objdump'.
3443   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3444   lt_cv_file_magic_cmd='$OBJDUMP -f'
3445   ;;
3446
3447 darwin* | rhapsody*)
3448   lt_cv_deplibs_check_method=pass_all
3449   ;;
3450
3451 freebsd* | kfreebsd*-gnu)
3452   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3453     case $host_cpu in
3454     i*86 )
3455       # Not sure whether the presence of OpenBSD here was a mistake.
3456       # Let's accept both of them until this is cleared up.
3457       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3458       lt_cv_file_magic_cmd=/usr/bin/file
3459       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3460       ;;
3461     esac
3462   else
3463     lt_cv_deplibs_check_method=pass_all
3464   fi
3465   ;;
3466
3467 gnu*)
3468   lt_cv_deplibs_check_method=pass_all
3469   ;;
3470
3471 hpux10.20* | hpux11*)
3472   lt_cv_file_magic_cmd=/usr/bin/file
3473   case "$host_cpu" in
3474   ia64*)
3475     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3476     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3477     ;;
3478   hppa*64*)
3479     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]'
3480     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3481     ;;
3482   *)
3483     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3484     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3485     ;;
3486   esac
3487   ;;
3488
3489 irix5* | irix6* | nonstopux*)
3490   case $LD in
3491   *-32|*"-32 ") libmagic=32-bit;;
3492   *-n32|*"-n32 ") libmagic=N32;;
3493   *-64|*"-64 ") libmagic=64-bit;;
3494   *) libmagic=never-match;;
3495   esac
3496   lt_cv_deplibs_check_method=pass_all
3497   ;;
3498
3499 # This must be Linux ELF.
3500 linux*)
3501   case $host_cpu in
3502   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3503     lt_cv_deplibs_check_method=pass_all ;;
3504   *)
3505     # glibc up to 2.1.1 does not perform some relocations on ARM
3506     # this will be overridden with pass_all, but let us keep it just in case
3507     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3508   esac
3509   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3510   lt_cv_deplibs_check_method=pass_all
3511   ;;
3512
3513 netbsd*)
3514   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3515     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3516   else
3517     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3518   fi
3519   ;;
3520
3521 newos6*)
3522   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3523   lt_cv_file_magic_cmd=/usr/bin/file
3524   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3525   ;;
3526
3527 nto-qnx*)
3528   lt_cv_deplibs_check_method=unknown
3529   ;;
3530
3531 openbsd*)
3532   lt_cv_file_magic_cmd=/usr/bin/file
3533   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3534   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3535     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3536   else
3537     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3538   fi
3539   ;;
3540
3541 osf3* | osf4* | osf5*)
3542   lt_cv_deplibs_check_method=pass_all
3543   ;;
3544
3545 sco3.2v5*)
3546   lt_cv_deplibs_check_method=pass_all
3547   ;;
3548
3549 solaris*)
3550   lt_cv_deplibs_check_method=pass_all
3551   ;;
3552
3553 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3554   case $host_vendor in
3555   motorola)
3556     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]'
3557     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3558     ;;
3559   ncr)
3560     lt_cv_deplibs_check_method=pass_all
3561     ;;
3562   sequent)
3563     lt_cv_file_magic_cmd='/bin/file'
3564     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3565     ;;
3566   sni)
3567     lt_cv_file_magic_cmd='/bin/file'
3568     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3569     lt_cv_file_magic_test_file=/lib/libc.so
3570     ;;
3571   siemens)
3572     lt_cv_deplibs_check_method=pass_all
3573     ;;
3574   esac
3575   ;;
3576
3577 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3578   lt_cv_deplibs_check_method=pass_all
3579   ;;
3580 esac
3581
3582 fi
3583 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3584 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3585 file_magic_cmd=$lt_cv_file_magic_cmd
3586 deplibs_check_method=$lt_cv_deplibs_check_method
3587 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3588
3589
3590
3591
3592 # If no C compiler was specified, use CC.
3593 LTCC=${LTCC-"$CC"}
3594
3595 # Allow CC to be a program name with arguments.
3596 compiler=$CC
3597
3598
3599 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3600 if test "${enable_libtool_lock+set}" = set; then
3601   enableval="$enable_libtool_lock"
3602
3603 fi;
3604 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3605
3606 # Some flags need to be propagated to the compiler or linker for good
3607 # libtool support.
3608 case $host in
3609 ia64-*-hpux*)
3610   # Find out which ABI we are using.
3611   echo 'int i;' > conftest.$ac_ext
3612   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613   (eval $ac_compile) 2>&5
3614   ac_status=$?
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); }; then
3617     case `/usr/bin/file conftest.$ac_objext` in
3618     *ELF-32*)
3619       HPUX_IA64_MODE="32"
3620       ;;
3621     *ELF-64*)
3622       HPUX_IA64_MODE="64"
3623       ;;
3624     esac
3625   fi
3626   rm -rf conftest*
3627   ;;
3628 *-*-irix6*)
3629   # Find out which ABI we are using.
3630   echo '#line 3630 "configure"' > conftest.$ac_ext
3631   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632   (eval $ac_compile) 2>&5
3633   ac_status=$?
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); }; then
3636    if test "$lt_cv_prog_gnu_ld" = yes; then
3637     case `/usr/bin/file conftest.$ac_objext` in
3638     *32-bit*)
3639       LD="${LD-ld} -melf32bsmip"
3640       ;;
3641     *N32*)
3642       LD="${LD-ld} -melf32bmipn32"
3643       ;;
3644     *64-bit*)
3645       LD="${LD-ld} -melf64bmip"
3646       ;;
3647     esac
3648    else
3649     case `/usr/bin/file conftest.$ac_objext` in
3650     *32-bit*)
3651       LD="${LD-ld} -32"
3652       ;;
3653     *N32*)
3654       LD="${LD-ld} -n32"
3655       ;;
3656     *64-bit*)
3657       LD="${LD-ld} -64"
3658       ;;
3659     esac
3660    fi
3661   fi
3662   rm -rf conftest*
3663   ;;
3664
3665 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3666   # Find out which ABI we are using.
3667   echo 'int i;' > conftest.$ac_ext
3668   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3669   (eval $ac_compile) 2>&5
3670   ac_status=$?
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); }; then
3673     case "`/usr/bin/file conftest.o`" in
3674     *32-bit*)
3675       case $host in
3676         x86_64-*linux*)
3677           LD="${LD-ld} -m elf_i386"
3678           ;;
3679         ppc64-*linux*|powerpc64-*linux*)
3680           LD="${LD-ld} -m elf32ppclinux"
3681           ;;
3682         s390x-*linux*)
3683           LD="${LD-ld} -m elf_s390"
3684           ;;
3685         sparc64-*linux*)
3686           LD="${LD-ld} -m elf32_sparc"
3687           ;;
3688       esac
3689       ;;
3690     *64-bit*)
3691       case $host in
3692         x86_64-*linux*)
3693           LD="${LD-ld} -m elf_x86_64"
3694           ;;
3695         ppc*-*linux*|powerpc*-*linux*)
3696           LD="${LD-ld} -m elf64ppc"
3697           ;;
3698         s390*-*linux*)
3699           LD="${LD-ld} -m elf64_s390"
3700           ;;
3701         sparc*-*linux*)
3702           LD="${LD-ld} -m elf64_sparc"
3703           ;;
3704       esac
3705       ;;
3706     esac
3707   fi
3708   rm -rf conftest*
3709   ;;
3710
3711 *-*-sco3.2v5*)
3712   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3713   SAVE_CFLAGS="$CFLAGS"
3714   CFLAGS="$CFLAGS -belf"
3715   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3716 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3717 if test "${lt_cv_cc_needs_belf+set}" = set; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720   ac_ext=c
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725
3726      cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h.  */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h.  */
3732
3733 int
3734 main ()
3735 {
3736
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 rm -f conftest.$ac_objext conftest$ac_exeext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3743   (eval $ac_link) 2>conftest.er1
3744   ac_status=$?
3745   grep -v '^ *+' conftest.er1 >conftest.err
3746   rm -f conftest.er1
3747   cat conftest.err >&5
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); } &&
3750          { ac_try='test -z "$ac_c_werror_flag"
3751                          || test ! -s conftest.err'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; } &&
3757          { ac_try='test -s conftest$ac_exeext'
3758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759   (eval $ac_try) 2>&5
3760   ac_status=$?
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); }; }; then
3763   lt_cv_cc_needs_belf=yes
3764 else
3765   echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3767
3768 lt_cv_cc_needs_belf=no
3769 fi
3770 rm -f conftest.err conftest.$ac_objext \
3771       conftest$ac_exeext conftest.$ac_ext
3772      ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777
3778 fi
3779 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3780 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3781   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3782     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3783     CFLAGS="$SAVE_CFLAGS"
3784   fi
3785   ;;
3786
3787 esac
3788
3789 need_locks="$enable_libtool_lock"
3790
3791
3792 ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3798 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3799 # On Suns, sometimes $CPP names a directory.
3800 if test -n "$CPP" && test -d "$CPP"; then
3801   CPP=
3802 fi
3803 if test -z "$CPP"; then
3804   if test "${ac_cv_prog_CPP+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807       # Double quotes because CPP needs to be expanded
3808     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3809     do
3810       ac_preproc_ok=false
3811 for ac_c_preproc_warn_flag in '' yes
3812 do
3813   # Use a header file that comes with gcc, so configuring glibc
3814   # with a fresh cross-compiler works.
3815   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3816   # <limits.h> exists even on freestanding compilers.
3817   # On the NeXT, cc -E runs the code through the compiler's parser,
3818   # not just through cpp. "Syntax error" is here to catch this case.
3819   cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h.  */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h.  */
3825 #ifdef __STDC__
3826 # include <limits.h>
3827 #else
3828 # include <assert.h>
3829 #endif
3830                      Syntax error
3831 _ACEOF
3832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3834   ac_status=$?
3835   grep -v '^ *+' conftest.er1 >conftest.err
3836   rm -f conftest.er1
3837   cat conftest.err >&5
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } >/dev/null; then
3840   if test -s conftest.err; then
3841     ac_cpp_err=$ac_c_preproc_warn_flag
3842     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3843   else
3844     ac_cpp_err=
3845   fi
3846 else
3847   ac_cpp_err=yes
3848 fi
3849 if test -z "$ac_cpp_err"; then
3850   :
3851 else
3852   echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855   # Broken: fails on valid input.
3856 continue
3857 fi
3858 rm -f conftest.err conftest.$ac_ext
3859
3860   # OK, works on sane cases.  Now check whether non-existent headers
3861   # can be detected and how.
3862   cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h.  */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h.  */
3868 #include <ac_nonexistent.h>
3869 _ACEOF
3870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3872   ac_status=$?
3873   grep -v '^ *+' conftest.er1 >conftest.err
3874   rm -f conftest.er1
3875   cat conftest.err >&5
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); } >/dev/null; then
3878   if test -s conftest.err; then
3879     ac_cpp_err=$ac_c_preproc_warn_flag
3880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3881   else
3882     ac_cpp_err=
3883   fi
3884 else
3885   ac_cpp_err=yes
3886 fi
3887 if test -z "$ac_cpp_err"; then
3888   # Broken: success on invalid input.
3889 continue
3890 else
3891   echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894   # Passes both tests.
3895 ac_preproc_ok=:
3896 break
3897 fi
3898 rm -f conftest.err conftest.$ac_ext
3899
3900 done
3901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3902 rm -f conftest.err conftest.$ac_ext
3903 if $ac_preproc_ok; then
3904   break
3905 fi
3906
3907     done
3908     ac_cv_prog_CPP=$CPP
3909
3910 fi
3911   CPP=$ac_cv_prog_CPP
3912 else
3913   ac_cv_prog_CPP=$CPP
3914 fi
3915 echo "$as_me:$LINENO: result: $CPP" >&5
3916 echo "${ECHO_T}$CPP" >&6
3917 ac_preproc_ok=false
3918 for ac_c_preproc_warn_flag in '' yes
3919 do
3920   # Use a header file that comes with gcc, so configuring glibc
3921   # with a fresh cross-compiler works.
3922   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3923   # <limits.h> exists even on freestanding compilers.
3924   # On the NeXT, cc -E runs the code through the compiler's parser,
3925   # not just through cpp. "Syntax error" is here to catch this case.
3926   cat >conftest.$ac_ext <<_ACEOF
3927 /* confdefs.h.  */
3928 _ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h.  */
3932 #ifdef __STDC__
3933 # include <limits.h>
3934 #else
3935 # include <assert.h>
3936 #endif
3937                      Syntax error
3938 _ACEOF
3939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3941   ac_status=$?
3942   grep -v '^ *+' conftest.er1 >conftest.err
3943   rm -f conftest.er1
3944   cat conftest.err >&5
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); } >/dev/null; then
3947   if test -s conftest.err; then
3948     ac_cpp_err=$ac_c_preproc_warn_flag
3949     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3950   else
3951     ac_cpp_err=
3952   fi
3953 else
3954   ac_cpp_err=yes
3955 fi
3956 if test -z "$ac_cpp_err"; then
3957   :
3958 else
3959   echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3961
3962   # Broken: fails on valid input.
3963 continue
3964 fi
3965 rm -f conftest.err conftest.$ac_ext
3966
3967   # OK, works on sane cases.  Now check whether non-existent headers
3968   # can be detected and how.
3969   cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h.  */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h.  */
3975 #include <ac_nonexistent.h>
3976 _ACEOF
3977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3979   ac_status=$?
3980   grep -v '^ *+' conftest.er1 >conftest.err
3981   rm -f conftest.er1
3982   cat conftest.err >&5
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); } >/dev/null; then
3985   if test -s conftest.err; then
3986     ac_cpp_err=$ac_c_preproc_warn_flag
3987     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3988   else
3989     ac_cpp_err=
3990   fi
3991 else
3992   ac_cpp_err=yes
3993 fi
3994 if test -z "$ac_cpp_err"; then
3995   # Broken: success on invalid input.
3996 continue
3997 else
3998   echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001   # Passes both tests.
4002 ac_preproc_ok=:
4003 break
4004 fi
4005 rm -f conftest.err conftest.$ac_ext
4006
4007 done
4008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009 rm -f conftest.err conftest.$ac_ext
4010 if $ac_preproc_ok; then
4011   :
4012 else
4013   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4014 See \`config.log' for more details." >&5
4015 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4016 See \`config.log' for more details." >&2;}
4017    { (exit 1); exit 1; }; }
4018 fi
4019
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025
4026
4027 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4028 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4029 if test "${ac_cv_header_stdc+set}" = set; then
4030   echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032   cat >conftest.$ac_ext <<_ACEOF
4033 /* confdefs.h.  */
4034 _ACEOF
4035 cat confdefs.h >>conftest.$ac_ext
4036 cat >>conftest.$ac_ext <<_ACEOF
4037 /* end confdefs.h.  */
4038 #include <stdlib.h>
4039 #include <stdarg.h>
4040 #include <string.h>
4041 #include <float.h>
4042
4043 int
4044 main ()
4045 {
4046
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053   (eval $ac_compile) 2>conftest.er1
4054   ac_status=$?
4055   grep -v '^ *+' conftest.er1 >conftest.err
4056   rm -f conftest.er1
4057   cat conftest.err >&5
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); } &&
4060          { ac_try='test -z "$ac_c_werror_flag"
4061                          || test ! -s conftest.err'
4062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063   (eval $ac_try) 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }; } &&
4067          { ac_try='test -s conftest.$ac_objext'
4068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069   (eval $ac_try) 2>&5
4070   ac_status=$?
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); }; }; then
4073   ac_cv_header_stdc=yes
4074 else
4075   echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4077
4078 ac_cv_header_stdc=no
4079 fi
4080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4081
4082 if test $ac_cv_header_stdc = yes; then
4083   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4084   cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h.  */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h.  */
4090 #include <string.h>
4091
4092 _ACEOF
4093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4094   $EGREP "memchr" >/dev/null 2>&1; then
4095   :
4096 else
4097   ac_cv_header_stdc=no
4098 fi
4099 rm -f conftest*
4100
4101 fi
4102
4103 if test $ac_cv_header_stdc = yes; then
4104   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4105   cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h.  */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h.  */
4111 #include <stdlib.h>
4112
4113 _ACEOF
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115   $EGREP "free" >/dev/null 2>&1; then
4116   :
4117 else
4118   ac_cv_header_stdc=no
4119 fi
4120 rm -f conftest*
4121
4122 fi
4123
4124 if test $ac_cv_header_stdc = yes; then
4125   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4126   if test "$cross_compiling" = yes; then
4127   :
4128 else
4129   cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135 #include <ctype.h>
4136 #if ((' ' & 0x0FF) == 0x020)
4137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4139 #else
4140 # define ISLOWER(c) \
4141                    (('a' <= (c) && (c) <= 'i') \
4142                      || ('j' <= (c) && (c) <= 'r') \
4143                      || ('s' <= (c) && (c) <= 'z'))
4144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4145 #endif
4146
4147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4148 int
4149 main ()
4150 {
4151   int i;
4152   for (i = 0; i < 256; i++)
4153     if (XOR (islower (i), ISLOWER (i))
4154         || toupper (i) != TOUPPER (i))
4155       exit(2);
4156   exit (0);
4157 }
4158 _ACEOF
4159 rm -f conftest$ac_exeext
4160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4161   (eval $ac_link) 2>&5
4162   ac_status=$?
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166   (eval $ac_try) 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }; }; then
4170   :
4171 else
4172   echo "$as_me: program exited with status $ac_status" >&5
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4175
4176 ( exit $ac_status )
4177 ac_cv_header_stdc=no
4178 fi
4179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4180 fi
4181 fi
4182 fi
4183 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4184 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4185 if test $ac_cv_header_stdc = yes; then
4186
4187 cat >>confdefs.h <<\_ACEOF
4188 #define STDC_HEADERS 1
4189 _ACEOF
4190
4191 fi
4192
4193 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4204                   inttypes.h stdint.h unistd.h
4205 do
4206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4207 echo "$as_me:$LINENO: checking for $ac_header" >&5
4208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218 $ac_includes_default
4219
4220 #include <$ac_header>
4221 _ACEOF
4222 rm -f conftest.$ac_objext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4224   (eval $ac_compile) 2>conftest.er1
4225   ac_status=$?
4226   grep -v '^ *+' conftest.er1 >conftest.err
4227   rm -f conftest.er1
4228   cat conftest.err >&5
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); } &&
4231          { ac_try='test -z "$ac_c_werror_flag"
4232                          || test ! -s conftest.err'
4233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234   (eval $ac_try) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; } &&
4238          { ac_try='test -s conftest.$ac_objext'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; }; then
4244   eval "$as_ac_Header=yes"
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249 eval "$as_ac_Header=no"
4250 fi
4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4252 fi
4253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4256   cat >>confdefs.h <<_ACEOF
4257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4258 _ACEOF
4259
4260 fi
4261
4262 done
4263
4264
4265
4266 for ac_header in dlfcn.h
4267 do
4268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4270   echo "$as_me:$LINENO: checking for $ac_header" >&5
4271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4273   echo $ECHO_N "(cached) $ECHO_C" >&6
4274 fi
4275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4277 else
4278   # Is the header compilable?
4279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4281 cat >conftest.$ac_ext <<_ACEOF
4282 /* confdefs.h.  */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h.  */
4287 $ac_includes_default
4288 #include <$ac_header>
4289 _ACEOF
4290 rm -f conftest.$ac_objext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292   (eval $ac_compile) 2>conftest.er1
4293   ac_status=$?
4294   grep -v '^ *+' conftest.er1 >conftest.err
4295   rm -f conftest.er1
4296   cat conftest.err >&5
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } &&
4299          { ac_try='test -z "$ac_c_werror_flag"
4300                          || test ! -s conftest.err'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; } &&
4306          { ac_try='test -s conftest.$ac_objext'
4307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308   (eval $ac_try) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; }; then
4312   ac_header_compiler=yes
4313 else
4314   echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 ac_header_compiler=no
4318 fi
4319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4321 echo "${ECHO_T}$ac_header_compiler" >&6
4322
4323 # Is the header present?
4324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h.  */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h.  */
4332 #include <$ac_header>
4333 _ACEOF
4334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4336   ac_status=$?
4337   grep -v '^ *+' conftest.er1 >conftest.err
4338   rm -f conftest.er1
4339   cat conftest.err >&5
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); } >/dev/null; then
4342   if test -s conftest.err; then
4343     ac_cpp_err=$ac_c_preproc_warn_flag
4344     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4345   else
4346     ac_cpp_err=
4347   fi
4348 else
4349   ac_cpp_err=yes
4350 fi
4351 if test -z "$ac_cpp_err"; then
4352   ac_header_preproc=yes
4353 else
4354   echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4356
4357   ac_header_preproc=no
4358 fi
4359 rm -f conftest.err conftest.$ac_ext
4360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4361 echo "${ECHO_T}$ac_header_preproc" >&6
4362
4363 # So?  What about this header?
4364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4365   yes:no: )
4366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4370     ac_header_preproc=yes
4371     ;;
4372   no:yes:* )
4373     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4375     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4376 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4377     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4379     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4380 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4383     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4385     (
4386       cat <<\_ASBOX
4387 ## ------------------------------------------ ##
4388 ## Report this to the AC_PACKAGE_NAME lists.  ##
4389 ## ------------------------------------------ ##
4390 _ASBOX
4391     ) |
4392       sed "s/^/$as_me: WARNING:     /" >&2
4393     ;;
4394 esac
4395 echo "$as_me:$LINENO: checking for $ac_header" >&5
4396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   eval "$as_ac_Header=\$ac_header_preproc"
4401 fi
4402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4404
4405 fi
4406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4407   cat >>confdefs.h <<_ACEOF
4408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4409 _ACEOF
4410
4411 fi
4412
4413 done
4414
4415 ac_ext=cc
4416 ac_cpp='$CXXCPP $CPPFLAGS'
4417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4420 if test -n "$ac_tool_prefix"; then
4421   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4422   do
4423     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4425 echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427 if test "${ac_cv_prog_CXX+set}" = set; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430   if test -n "$CXX"; then
4431   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   test -z "$as_dir" && as_dir=.
4438   for ac_exec_ext in '' $ac_executable_extensions; do
4439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442     break 2
4443   fi
4444 done
4445 done
4446
4447 fi
4448 fi
4449 CXX=$ac_cv_prog_CXX
4450 if test -n "$CXX"; then
4451   echo "$as_me:$LINENO: result: $CXX" >&5
4452 echo "${ECHO_T}$CXX" >&6
4453 else
4454   echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456 fi
4457
4458     test -n "$CXX" && break
4459   done
4460 fi
4461 if test -z "$CXX"; then
4462   ac_ct_CXX=$CXX
4463   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4464 do
4465   # Extract the first word of "$ac_prog", so it can be a program name with args.
4466 set dummy $ac_prog; ac_word=$2
4467 echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4469 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   if test -n "$ac_ct_CXX"; then
4473   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480   for ac_exec_ext in '' $ac_executable_extensions; do
4481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482     ac_cv_prog_ac_ct_CXX="$ac_prog"
4483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487 done
4488
4489 fi
4490 fi
4491 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4492 if test -n "$ac_ct_CXX"; then
4493   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4494 echo "${ECHO_T}$ac_ct_CXX" >&6
4495 else
4496   echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6
4498 fi
4499
4500   test -n "$ac_ct_CXX" && break
4501 done
4502 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4503
4504   CXX=$ac_ct_CXX
4505 fi
4506
4507
4508 # Provide some information about the compiler.
4509 echo "$as_me:$LINENO:" \
4510      "checking for C++ compiler version" >&5
4511 ac_compiler=`set X $ac_compile; echo $2`
4512 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4513   (eval $ac_compiler --version </dev/null >&5) 2>&5
4514   ac_status=$?
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); }
4517 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4518   (eval $ac_compiler -v </dev/null >&5) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); }
4522 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4523   (eval $ac_compiler -V </dev/null >&5) 2>&5
4524   ac_status=$?
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); }
4527
4528 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4529 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4530 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h.  */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h.  */
4539
4540 int
4541 main ()
4542 {
4543 #ifndef __GNUC__
4544        choke me
4545 #endif
4546
4547   ;
4548   return 0;
4549 }
4550 _ACEOF
4551 rm -f conftest.$ac_objext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553   (eval $ac_compile) 2>conftest.er1
4554   ac_status=$?
4555   grep -v '^ *+' conftest.er1 >conftest.err
4556   rm -f conftest.er1
4557   cat conftest.err >&5
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); } &&
4560          { ac_try='test -z "$ac_cxx_werror_flag"
4561                          || test ! -s conftest.err'
4562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563   (eval $ac_try) 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; } &&
4567          { ac_try='test -s conftest.$ac_objext'
4568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569   (eval $ac_try) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; }; then
4573   ac_compiler_gnu=yes
4574 else
4575   echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578 ac_compiler_gnu=no
4579 fi
4580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4582
4583 fi
4584 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4585 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4586 GXX=`test $ac_compiler_gnu = yes && echo yes`
4587 ac_test_CXXFLAGS=${CXXFLAGS+set}
4588 ac_save_CXXFLAGS=$CXXFLAGS
4589 CXXFLAGS="-g"
4590 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4591 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4592 if test "${ac_cv_prog_cxx_g+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h.  */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h.  */
4601
4602 int
4603 main ()
4604 {
4605
4606   ;
4607   return 0;
4608 }
4609 _ACEOF
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612   (eval $ac_compile) 2>conftest.er1
4613   ac_status=$?
4614   grep -v '^ *+' conftest.er1 >conftest.err
4615   rm -f conftest.er1
4616   cat conftest.err >&5
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); } &&
4619          { ac_try='test -z "$ac_cxx_werror_flag"
4620                          || test ! -s conftest.err'
4621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622   (eval $ac_try) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; } &&
4626          { ac_try='test -s conftest.$ac_objext'
4627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628   (eval $ac_try) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; }; then
4632   ac_cv_prog_cxx_g=yes
4633 else
4634   echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637 ac_cv_prog_cxx_g=no
4638 fi
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 fi
4641 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4642 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4643 if test "$ac_test_CXXFLAGS" = set; then
4644   CXXFLAGS=$ac_save_CXXFLAGS
4645 elif test $ac_cv_prog_cxx_g = yes; then
4646   if test "$GXX" = yes; then
4647     CXXFLAGS="-g -O2"
4648   else
4649     CXXFLAGS="-g"
4650   fi
4651 else
4652   if test "$GXX" = yes; then
4653     CXXFLAGS="-O2"
4654   else
4655     CXXFLAGS=
4656   fi
4657 fi
4658 for ac_declaration in \
4659    '' \
4660    'extern "C" void std::exit (int) throw (); using std::exit;' \
4661    'extern "C" void std::exit (int); using std::exit;' \
4662    'extern "C" void exit (int) throw ();' \
4663    'extern "C" void exit (int);' \
4664    'void exit (int);'
4665 do
4666   cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h.  */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h.  */
4672 $ac_declaration
4673 #include <stdlib.h>
4674 int
4675 main ()
4676 {
4677 exit (42);
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684   (eval $ac_compile) 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } &&
4691          { ac_try='test -z "$ac_cxx_werror_flag"
4692                          || test ! -s conftest.err'
4693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694   (eval $ac_try) 2>&5
4695   ac_status=$?
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); }; } &&
4698          { ac_try='test -s conftest.$ac_objext'
4699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700   (eval $ac_try) 2>&5
4701   ac_status=$?
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); }; }; then
4704   :
4705 else
4706   echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4708
4709 continue
4710 fi
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712   cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h.  */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h.  */
4718 $ac_declaration
4719 int
4720 main ()
4721 {
4722 exit (42);
4723   ;
4724   return 0;
4725 }
4726 _ACEOF
4727 rm -f conftest.$ac_objext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729   (eval $ac_compile) 2>conftest.er1
4730   ac_status=$?
4731   grep -v '^ *+' conftest.er1 >conftest.err
4732   rm -f conftest.er1
4733   cat conftest.err >&5
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); } &&
4736          { ac_try='test -z "$ac_cxx_werror_flag"
4737                          || test ! -s conftest.err'
4738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739   (eval $ac_try) 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); }; } &&
4743          { ac_try='test -s conftest.$ac_objext'
4744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745   (eval $ac_try) 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }; }; then
4749   break
4750 else
4751   echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 fi
4755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4756 done
4757 rm -f conftest*
4758 if test -n "$ac_declaration"; then
4759   echo '#ifdef __cplusplus' >>confdefs.h
4760   echo $ac_declaration      >>confdefs.h
4761   echo '#endif'             >>confdefs.h
4762 fi
4763
4764 ac_ext=cc
4765 ac_cpp='$CXXCPP $CPPFLAGS'
4766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4769
4770 depcc="$CXX"  am_compiler_list=
4771
4772 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4773 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4774 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4775   echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4778   # We make a subdir and do the tests there.  Otherwise we can end up
4779   # making bogus files that we don't know about and never remove.  For
4780   # instance it was reported that on HP-UX the gcc test will end up
4781   # making a dummy file named `D' -- because `-MD' means `put the output
4782   # in D'.
4783   mkdir conftest.dir
4784   # Copy depcomp to subdir because otherwise we won't find it if we're
4785   # using a relative directory.
4786   cp "$am_depcomp" conftest.dir
4787   cd conftest.dir
4788
4789   am_cv_CXX_dependencies_compiler_type=none
4790   if test "$am_compiler_list" = ""; then
4791      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4792   fi
4793   for depmode in $am_compiler_list; do
4794     # We need to recreate these files for each test, as the compiler may
4795     # overwrite some of them when testing with obscure command lines.
4796     # This happens at least with the AIX C compiler.
4797     echo '#include "conftest.h"' > conftest.c
4798     echo 'int i;' > conftest.h
4799     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
4800
4801     case $depmode in
4802     nosideeffect)
4803       # after this tag, mechanisms are not by side-effect, so they'll
4804       # only be used when explicitly requested
4805       if test "x$enable_dependency_tracking" = xyes; then
4806         continue
4807       else
4808         break
4809       fi
4810       ;;
4811     none) break ;;
4812     esac
4813     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4814     # mode.  It turns out that the SunPro C++ compiler does not properly
4815     # handle `-M -o', and we need to detect this.
4816     if depmode=$depmode \
4817        source=conftest.c object=conftest.o \
4818        depfile=conftest.Po tmpdepfile=conftest.TPo \
4819        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
4820        grep conftest.h conftest.Po > /dev/null 2>&1 &&
4821        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4822       am_cv_CXX_dependencies_compiler_type=$depmode
4823       break
4824     fi
4825   done
4826
4827   cd ..
4828   rm -rf conftest.dir
4829 else
4830   am_cv_CXX_dependencies_compiler_type=none
4831 fi
4832
4833 fi
4834 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4835 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4836 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4837
4838
4839 ac_ext=cc
4840 ac_cpp='$CXXCPP $CPPFLAGS'
4841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4844 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4845 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4846 if test -z "$CXXCPP"; then
4847   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4848   echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850       # Double quotes because CXXCPP needs to be expanded
4851     for CXXCPP in "$CXX -E" "/lib/cpp"
4852     do
4853       ac_preproc_ok=false
4854 for ac_cxx_preproc_warn_flag in '' yes
4855 do
4856   # Use a header file that comes with gcc, so configuring glibc
4857   # with a fresh cross-compiler works.
4858   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859   # <limits.h> exists even on freestanding compilers.
4860   # On the NeXT, cc -E runs the code through the compiler's parser,
4861   # not just through cpp. "Syntax error" is here to catch this case.
4862   cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h.  */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h.  */
4868 #ifdef __STDC__
4869 # include <limits.h>
4870 #else
4871 # include <assert.h>
4872 #endif
4873                      Syntax error
4874 _ACEOF
4875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4877   ac_status=$?
4878   grep -v '^ *+' conftest.er1 >conftest.err
4879   rm -f conftest.er1
4880   cat conftest.err >&5
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); } >/dev/null; then
4883   if test -s conftest.err; then
4884     ac_cpp_err=$ac_cxx_preproc_warn_flag
4885     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4886   else
4887     ac_cpp_err=
4888   fi
4889 else
4890   ac_cpp_err=yes
4891 fi
4892 if test -z "$ac_cpp_err"; then
4893   :
4894 else
4895   echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4897
4898   # Broken: fails on valid input.
4899 continue
4900 fi
4901 rm -f conftest.err conftest.$ac_ext
4902
4903   # OK, works on sane cases.  Now check whether non-existent headers
4904   # can be detected and how.
4905   cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h.  */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h.  */
4911 #include <ac_nonexistent.h>
4912 _ACEOF
4913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4915   ac_status=$?
4916   grep -v '^ *+' conftest.er1 >conftest.err
4917   rm -f conftest.er1
4918   cat conftest.err >&5
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); } >/dev/null; then
4921   if test -s conftest.err; then
4922     ac_cpp_err=$ac_cxx_preproc_warn_flag
4923     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4924   else
4925     ac_cpp_err=
4926   fi
4927 else
4928   ac_cpp_err=yes
4929 fi
4930 if test -z "$ac_cpp_err"; then
4931   # Broken: success on invalid input.
4932 continue
4933 else
4934   echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4936
4937   # Passes both tests.
4938 ac_preproc_ok=:
4939 break
4940 fi
4941 rm -f conftest.err conftest.$ac_ext
4942
4943 done
4944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4945 rm -f conftest.err conftest.$ac_ext
4946 if $ac_preproc_ok; then
4947   break
4948 fi
4949
4950     done
4951     ac_cv_prog_CXXCPP=$CXXCPP
4952
4953 fi
4954   CXXCPP=$ac_cv_prog_CXXCPP
4955 else
4956   ac_cv_prog_CXXCPP=$CXXCPP
4957 fi
4958 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4959 echo "${ECHO_T}$CXXCPP" >&6
4960 ac_preproc_ok=false
4961 for ac_cxx_preproc_warn_flag in '' yes
4962 do
4963   # Use a header file that comes with gcc, so configuring glibc
4964   # with a fresh cross-compiler works.
4965   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4966   # <limits.h> exists even on freestanding compilers.
4967   # On the NeXT, cc -E runs the code through the compiler's parser,
4968   # not just through cpp. "Syntax error" is here to catch this case.
4969   cat >conftest.$ac_ext <<_ACEOF
4970 /* confdefs.h.  */
4971 _ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h.  */
4975 #ifdef __STDC__
4976 # include <limits.h>
4977 #else
4978 # include <assert.h>
4979 #endif
4980                      Syntax error
4981 _ACEOF
4982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4984   ac_status=$?
4985   grep -v '^ *+' conftest.er1 >conftest.err
4986   rm -f conftest.er1
4987   cat conftest.err >&5
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); } >/dev/null; then
4990   if test -s conftest.err; then
4991     ac_cpp_err=$ac_cxx_preproc_warn_flag
4992     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4993   else
4994     ac_cpp_err=
4995   fi
4996 else
4997   ac_cpp_err=yes
4998 fi
4999 if test -z "$ac_cpp_err"; then
5000   :
5001 else
5002   echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005   # Broken: fails on valid input.
5006 continue
5007 fi
5008 rm -f conftest.err conftest.$ac_ext
5009
5010   # OK, works on sane cases.  Now check whether non-existent headers
5011   # can be detected and how.
5012   cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h.  */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h.  */
5018 #include <ac_nonexistent.h>
5019 _ACEOF
5020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5022   ac_status=$?
5023   grep -v '^ *+' conftest.er1 >conftest.err
5024   rm -f conftest.er1
5025   cat conftest.err >&5
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); } >/dev/null; then
5028   if test -s conftest.err; then
5029     ac_cpp_err=$ac_cxx_preproc_warn_flag
5030     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5031   else
5032     ac_cpp_err=
5033   fi
5034 else
5035   ac_cpp_err=yes
5036 fi
5037 if test -z "$ac_cpp_err"; then
5038   # Broken: success on invalid input.
5039 continue
5040 else
5041   echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5043
5044   # Passes both tests.
5045 ac_preproc_ok=:
5046 break
5047 fi
5048 rm -f conftest.err conftest.$ac_ext
5049
5050 done
5051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5052 rm -f conftest.err conftest.$ac_ext
5053 if $ac_preproc_ok; then
5054   :
5055 else
5056   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5057 See \`config.log' for more details." >&5
5058 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5059 See \`config.log' for more details." >&2;}
5060    { (exit 1); exit 1; }; }
5061 fi
5062
5063 ac_ext=cc
5064 ac_cpp='$CXXCPP $CPPFLAGS'
5065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5068
5069
5070 ac_ext=f
5071 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5072 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5074 if test -n "$ac_tool_prefix"; then
5075   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5076   do
5077     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5079 echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5081 if test "${ac_cv_prog_F77+set}" = set; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   if test -n "$F77"; then
5085   ac_cv_prog_F77="$F77" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5089 do
5090   IFS=$as_save_IFS
5091   test -z "$as_dir" && as_dir=.
5092   for ac_exec_ext in '' $ac_executable_extensions; do
5093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096     break 2
5097   fi
5098 done
5099 done
5100
5101 fi
5102 fi
5103 F77=$ac_cv_prog_F77
5104 if test -n "$F77"; then
5105   echo "$as_me:$LINENO: result: $F77" >&5
5106 echo "${ECHO_T}$F77" >&6
5107 else
5108   echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6
5110 fi
5111
5112     test -n "$F77" && break
5113   done
5114 fi
5115 if test -z "$F77"; then
5116   ac_ct_F77=$F77
5117   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5118 do
5119   # Extract the first word of "$ac_prog", so it can be a program name with args.
5120 set dummy $ac_prog; ac_word=$2
5121 echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5123 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5124   echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126   if test -n "$ac_ct_F77"; then
5127   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134   for ac_exec_ext in '' $ac_executable_extensions; do
5135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136     ac_cv_prog_ac_ct_F77="$ac_prog"
5137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138     break 2
5139   fi
5140 done
5141 done
5142
5143 fi
5144 fi
5145 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5146 if test -n "$ac_ct_F77"; then
5147   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5148 echo "${ECHO_T}$ac_ct_F77" >&6
5149 else
5150   echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6
5152 fi
5153
5154   test -n "$ac_ct_F77" && break
5155 done
5156
5157   F77=$ac_ct_F77
5158 fi
5159
5160
5161 # Provide some information about the compiler.
5162 echo "$as_me:5162:" \
5163      "checking for Fortran 77 compiler version" >&5
5164 ac_compiler=`set X $ac_compile; echo $2`
5165 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5166   (eval $ac_compiler --version </dev/null >&5) 2>&5
5167   ac_status=$?
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); }
5170 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5171   (eval $ac_compiler -v </dev/null >&5) 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); }
5175 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5176   (eval $ac_compiler -V </dev/null >&5) 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }
5180 rm -f a.out
5181
5182 # If we don't use `.F' as extension, the preprocessor is not run on the
5183 # input file.  (Note that this only needs to work for GNU compilers.)
5184 ac_save_ext=$ac_ext
5185 ac_ext=F
5186 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5187 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5188 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5189   echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191   cat >conftest.$ac_ext <<_ACEOF
5192       program main
5193 #ifndef __GNUC__
5194        choke me
5195 #endif
5196
5197       end
5198 _ACEOF
5199 rm -f conftest.$ac_objext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201   (eval $ac_compile) 2>conftest.er1
5202   ac_status=$?
5203   grep -v '^ *+' conftest.er1 >conftest.err
5204   rm -f conftest.er1
5205   cat conftest.err >&5
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); } &&
5208          { ac_try='test -z "$ac_f77_werror_flag"
5209                          || test ! -s conftest.err'
5210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211   (eval $ac_try) 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); }; } &&
5215          { ac_try='test -s conftest.$ac_objext'
5216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217   (eval $ac_try) 2>&5
5218   ac_status=$?
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); }; }; then
5221   ac_compiler_gnu=yes
5222 else
5223   echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226 ac_compiler_gnu=no
5227 fi
5228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5229 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5230
5231 fi
5232 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5233 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5234 ac_ext=$ac_save_ext
5235 ac_test_FFLAGS=${FFLAGS+set}
5236 ac_save_FFLAGS=$FFLAGS
5237 FFLAGS=
5238 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5239 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5240 if test "${ac_cv_prog_f77_g+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   FFLAGS=-g
5244 cat >conftest.$ac_ext <<_ACEOF
5245       program main
5246
5247       end
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251   (eval $ac_compile) 2>conftest.er1
5252   ac_status=$?
5253   grep -v '^ *+' conftest.er1 >conftest.err
5254   rm -f conftest.er1
5255   cat conftest.err >&5
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); } &&
5258          { ac_try='test -z "$ac_f77_werror_flag"
5259                          || test ! -s conftest.err'
5260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261   (eval $ac_try) 2>&5
5262   ac_status=$?
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); }; } &&
5265          { ac_try='test -s conftest.$ac_objext'
5266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267   (eval $ac_try) 2>&5
5268   ac_status=$?
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); }; }; then
5271   ac_cv_prog_f77_g=yes
5272 else
5273   echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5275
5276 ac_cv_prog_f77_g=no
5277 fi
5278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5279
5280 fi
5281 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5282 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5283 if test "$ac_test_FFLAGS" = set; then
5284   FFLAGS=$ac_save_FFLAGS
5285 elif test $ac_cv_prog_f77_g = yes; then
5286   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5287     FFLAGS="-g -O2"
5288   else
5289     FFLAGS="-g"
5290   fi
5291 else
5292   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5293     FFLAGS="-O2"
5294   else
5295     FFLAGS=
5296   fi
5297 fi
5298
5299 G77=`test $ac_compiler_gnu = yes && echo yes`
5300 ac_ext=c
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305
5306
5307
5308 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5309
5310 # find the maximum length of command line arguments
5311 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5312 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5313 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316     i=0
5317   testring="ABCD"
5318
5319   case $build_os in
5320   msdosdjgpp*)
5321     # On DJGPP, this test can blow up pretty badly due to problems in libc
5322     # (any single argument exceeding 2000 bytes causes a buffer overrun
5323     # during glob expansion).  Even if it were fixed, the result of this
5324     # check would be larger than it should be.
5325     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5326     ;;
5327
5328   gnu*)
5329     # Under GNU Hurd, this test is not required because there is
5330     # no limit to the length of command line arguments.
5331     # Libtool will interpret -1 as no limit whatsoever
5332     lt_cv_sys_max_cmd_len=-1;
5333     ;;
5334
5335   cygwin* | mingw*)
5336     # On Win9x/ME, this test blows up -- it succeeds, but takes
5337     # about 5 minutes as the teststring grows exponentially.
5338     # Worse, since 9x/ME are not pre-emptively multitasking,
5339     # you end up with a "frozen" computer, even though with patience
5340     # the test eventually succeeds (with a max line length of 256k).
5341     # Instead, let's just punt: use the minimum linelength reported by
5342     # all of the supported platforms: 8192 (on NT/2K/XP).
5343     lt_cv_sys_max_cmd_len=8192;
5344     ;;
5345
5346   amigaos*)
5347     # On AmigaOS with pdksh, this test takes hours, literally.
5348     # So we just punt and use a minimum line length of 8192.
5349     lt_cv_sys_max_cmd_len=8192;
5350     ;;
5351
5352  *)
5353     # If test is not a shell built-in, we'll probably end up computing a
5354     # maximum length that is only half of the actual maximum length, but
5355     # we can't tell.
5356     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5357                = "XX$testring") >/dev/null 2>&1 &&
5358             new_result=`expr "X$testring" : ".*" 2>&1` &&
5359             lt_cv_sys_max_cmd_len=$new_result &&
5360             test $i != 17 # 1/2 MB should be enough
5361     do
5362       i=`expr $i + 1`
5363       testring=$testring$testring
5364     done
5365     testring=
5366     # Add a significant safety factor because C++ compilers can tack on massive
5367     # amounts of additional arguments before passing them to the linker.
5368     # It appears as though 1/2 is a usable value.
5369     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5370     ;;
5371   esac
5372
5373 fi
5374
5375 if test -n $lt_cv_sys_max_cmd_len ; then
5376   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5377 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5378 else
5379   echo "$as_me:$LINENO: result: none" >&5
5380 echo "${ECHO_T}none" >&6
5381 fi
5382
5383
5384
5385
5386 # Check for command to grab the raw symbol name followed by C symbol from nm.
5387 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5388 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5389 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392
5393 # These are sane defaults that work on at least a few old systems.
5394 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5395
5396 # Character class describing NM global symbol codes.
5397 symcode='[BCDEGRST]'
5398
5399 # Regexp to match symbols that can be accessed directly from C.
5400 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5401
5402 # Transform the above into a raw symbol and a C symbol.
5403 symxfrm='\1 \2\3 \3'
5404
5405 # Transform an extracted symbol line into a proper C declaration
5406 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5407
5408 # Transform an extracted symbol line into symbol name and symbol address
5409 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'"
5410
5411 # Define system-specific variables.
5412 case $host_os in
5413 aix*)
5414   symcode='[BCDT]'
5415   ;;
5416 cygwin* | mingw* | pw32*)
5417   symcode='[ABCDGISTW]'
5418   ;;
5419 hpux*) # Its linker distinguishes data from code symbols
5420   if test "$host_cpu" = ia64; then
5421     symcode='[ABCDEGRST]'
5422   fi
5423   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5424   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'"
5425   ;;
5426 irix* | nonstopux*)
5427   symcode='[BCDEGRST]'
5428   ;;
5429 osf*)
5430   symcode='[BCDEGQRST]'
5431   ;;
5432 solaris* | sysv5*)
5433   symcode='[BDRT]'
5434   ;;
5435 sysv4)
5436   symcode='[DFNSTU]'
5437   ;;
5438 esac
5439
5440 # Handle CRLF in mingw tool chain
5441 opt_cr=
5442 case $build_os in
5443 mingw*)
5444   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5445   ;;
5446 esac
5447
5448 # If we're using GNU nm, then use its standard symbol codes.
5449 case `$NM -V 2>&1` in
5450 *GNU* | *'with BFD'*)
5451   symcode='[ABCDGIRSTW]' ;;
5452 esac
5453
5454 # Try without a prefix undercore, then with it.
5455 for ac_symprfx in "" "_"; do
5456
5457   # Write the raw and C identifiers.
5458   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5459
5460   # Check to see that the pipe works correctly.
5461   pipe_works=no
5462
5463   rm -f conftest*
5464   cat > conftest.$ac_ext <<EOF
5465 #ifdef __cplusplus
5466 extern "C" {
5467 #endif
5468 char nm_test_var;
5469 void nm_test_func(){}
5470 #ifdef __cplusplus
5471 }
5472 #endif
5473 int main(){nm_test_var='a';nm_test_func();return(0);}
5474 EOF
5475
5476   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477   (eval $ac_compile) 2>&5
5478   ac_status=$?
5479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480   (exit $ac_status); }; then
5481     # Now try to grab the symbols.
5482     nlist=conftest.nm
5483     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5484   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5485   ac_status=$?
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); } && test -s "$nlist"; then
5488       # Try sorting and uniquifying the output.
5489       if sort "$nlist" | uniq > "$nlist"T; then
5490         mv -f "$nlist"T "$nlist"
5491       else
5492         rm -f "$nlist"T
5493       fi
5494
5495       # Make sure that we snagged all the symbols we need.
5496       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5497         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5498           cat <<EOF > conftest.$ac_ext
5499 #ifdef __cplusplus
5500 extern "C" {
5501 #endif
5502
5503 EOF
5504           # Now generate the symbol file.
5505           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5506
5507           cat <<EOF >> conftest.$ac_ext
5508 #if defined (__STDC__) && __STDC__
5509 # define lt_ptr_t void *
5510 #else
5511 # define lt_ptr_t char *
5512 # define const
5513 #endif
5514
5515 /* The mapping between symbol names and symbols. */
5516 const struct {
5517   const char *name;
5518   lt_ptr_t address;
5519 }
5520 lt_preloaded_symbols[] =
5521 {
5522 EOF
5523           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5524           cat <<\EOF >> conftest.$ac_ext
5525   {0, (lt_ptr_t) 0}
5526 };
5527
5528 #ifdef __cplusplus
5529 }
5530 #endif
5531 EOF
5532           # Now try linking the two files.
5533           mv conftest.$ac_objext conftstm.$ac_objext
5534           lt_save_LIBS="$LIBS"
5535           lt_save_CFLAGS="$CFLAGS"
5536           LIBS="conftstm.$ac_objext"
5537           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5538           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539   (eval $ac_link) 2>&5
5540   ac_status=$?
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5543             pipe_works=yes
5544           fi
5545           LIBS="$lt_save_LIBS"
5546           CFLAGS="$lt_save_CFLAGS"
5547         else
5548           echo "cannot find nm_test_func in $nlist" >&5
5549         fi
5550       else
5551         echo "cannot find nm_test_var in $nlist" >&5
5552       fi
5553     else
5554       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5555     fi
5556   else
5557     echo "$progname: failed program was:" >&5
5558     cat conftest.$ac_ext >&5
5559   fi
5560   rm -f conftest* conftst*
5561
5562   # Do not use the global_symbol_pipe unless it works.
5563   if test "$pipe_works" = yes; then
5564     break
5565   else
5566     lt_cv_sys_global_symbol_pipe=
5567   fi
5568 done
5569
5570 fi
5571
5572 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5573   lt_cv_sys_global_symbol_to_cdecl=
5574 fi
5575 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5576   echo "$as_me:$LINENO: result: failed" >&5
5577 echo "${ECHO_T}failed" >&6
5578 else
5579   echo "$as_me:$LINENO: result: ok" >&5
5580 echo "${ECHO_T}ok" >&6
5581 fi
5582
5583 echo "$as_me:$LINENO: checking for objdir" >&5
5584 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5585 if test "${lt_cv_objdir+set}" = set; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   rm -f .libs 2>/dev/null
5589 mkdir .libs 2>/dev/null
5590 if test -d .libs; then
5591   lt_cv_objdir=.libs
5592 else
5593   # MS-DOS does not allow filenames that begin with a dot.
5594   lt_cv_objdir=_libs
5595 fi
5596 rmdir .libs 2>/dev/null
5597 fi
5598 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5599 echo "${ECHO_T}$lt_cv_objdir" >&6
5600 objdir=$lt_cv_objdir
5601
5602
5603
5604
5605
5606 case $host_os in
5607 aix3*)
5608   # AIX sometimes has problems with the GCC collect2 program.  For some
5609   # reason, if we set the COLLECT_NAMES environment variable, the problems
5610   # vanish in a puff of smoke.
5611   if test "X${COLLECT_NAMES+set}" != Xset; then
5612     COLLECT_NAMES=
5613     export COLLECT_NAMES
5614   fi
5615   ;;
5616 esac
5617
5618 # Sed substitution that helps us do robust quoting.  It backslashifies
5619 # metacharacters that are still active within double-quoted strings.
5620 Xsed='sed -e s/^X//'
5621 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5622
5623 # Same as above, but do not quote variable references.
5624 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5625
5626 # Sed substitution to delay expansion of an escaped shell variable in a
5627 # double_quote_subst'ed string.
5628 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5629
5630 # Sed substitution to avoid accidental globbing in evaled expressions
5631 no_glob_subst='s/\*/\\\*/g'
5632
5633 # Constants:
5634 rm="rm -f"
5635
5636 # Global variables:
5637 default_ofile=libtool
5638 can_build_shared=yes
5639
5640 # All known linkers require a `.a' archive for static linking (except M$VC,
5641 # which needs '.lib').
5642 libext=a
5643 ltmain="$ac_aux_dir/ltmain.sh"
5644 ofile="$default_ofile"
5645 with_gnu_ld="$lt_cv_prog_gnu_ld"
5646
5647 if test -n "$ac_tool_prefix"; then
5648   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5649 set dummy ${ac_tool_prefix}ar; ac_word=$2
5650 echo "$as_me:$LINENO: checking for $ac_word" >&5
5651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5652 if test "${ac_cv_prog_AR+set}" = set; then
5653   echo $ECHO_N "(cached) $ECHO_C" >&6
5654 else
5655   if test -n "$AR"; then
5656   ac_cv_prog_AR="$AR" # Let the user override the test.
5657 else
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5660 do
5661   IFS=$as_save_IFS
5662   test -z "$as_dir" && as_dir=.
5663   for ac_exec_ext in '' $ac_executable_extensions; do
5664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665     ac_cv_prog_AR="${ac_tool_prefix}ar"
5666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5667     break 2
5668   fi
5669 done
5670 done
5671
5672 fi
5673 fi
5674 AR=$ac_cv_prog_AR
5675 if test -n "$AR"; then
5676   echo "$as_me:$LINENO: result: $AR" >&5
5677 echo "${ECHO_T}$AR" >&6
5678 else
5679   echo "$as_me:$LINENO: result: no" >&5
5680 echo "${ECHO_T}no" >&6
5681 fi
5682
5683 fi
5684 if test -z "$ac_cv_prog_AR"; then
5685   ac_ct_AR=$AR
5686   # Extract the first word of "ar", so it can be a program name with args.
5687 set dummy ar; ac_word=$2
5688 echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5690 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   if test -n "$ac_ct_AR"; then
5694   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699   IFS=$as_save_IFS
5700   test -z "$as_dir" && as_dir=.
5701   for ac_exec_ext in '' $ac_executable_extensions; do
5702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703     ac_cv_prog_ac_ct_AR="ar"
5704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705     break 2
5706   fi
5707 done
5708 done
5709
5710   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5711 fi
5712 fi
5713 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5714 if test -n "$ac_ct_AR"; then
5715   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5716 echo "${ECHO_T}$ac_ct_AR" >&6
5717 else
5718   echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6
5720 fi
5721
5722   AR=$ac_ct_AR
5723 else
5724   AR="$ac_cv_prog_AR"
5725 fi
5726
5727 if test -n "$ac_tool_prefix"; then
5728   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5730 echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732 if test "${ac_cv_prog_RANLIB+set}" = set; then
5733   echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735   if test -n "$RANLIB"; then
5736   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743   for ac_exec_ext in '' $ac_executable_extensions; do
5744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750 done
5751
5752 fi
5753 fi
5754 RANLIB=$ac_cv_prog_RANLIB
5755 if test -n "$RANLIB"; then
5756   echo "$as_me:$LINENO: result: $RANLIB" >&5
5757 echo "${ECHO_T}$RANLIB" >&6
5758 else
5759   echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6
5761 fi
5762
5763 fi
5764 if test -z "$ac_cv_prog_RANLIB"; then
5765   ac_ct_RANLIB=$RANLIB
5766   # Extract the first word of "ranlib", so it can be a program name with args.
5767 set dummy ranlib; ac_word=$2
5768 echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   if test -n "$ac_ct_RANLIB"; then
5774   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781   for ac_exec_ext in '' $ac_executable_extensions; do
5782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783     ac_cv_prog_ac_ct_RANLIB="ranlib"
5784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788 done
5789
5790   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5791 fi
5792 fi
5793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5794 if test -n "$ac_ct_RANLIB"; then
5795   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5796 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5797 else
5798   echo "$as_me:$LINENO: result: no" >&5
5799 echo "${ECHO_T}no" >&6
5800 fi
5801
5802   RANLIB=$ac_ct_RANLIB
5803 else
5804   RANLIB="$ac_cv_prog_RANLIB"
5805 fi
5806
5807 if test -n "$ac_tool_prefix"; then
5808   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}strip; ac_word=$2
5810 echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812 if test "${ac_cv_prog_STRIP+set}" = set; then
5813   echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815   if test -n "$STRIP"; then
5816   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823   for ac_exec_ext in '' $ac_executable_extensions; do
5824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830 done
5831
5832 fi
5833 fi
5834 STRIP=$ac_cv_prog_STRIP
5835 if test -n "$STRIP"; then
5836   echo "$as_me:$LINENO: result: $STRIP" >&5
5837 echo "${ECHO_T}$STRIP" >&6
5838 else
5839   echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6
5841 fi
5842
5843 fi
5844 if test -z "$ac_cv_prog_STRIP"; then
5845   ac_ct_STRIP=$STRIP
5846   # Extract the first word of "strip", so it can be a program name with args.
5847 set dummy strip; ac_word=$2
5848 echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   if test -n "$ac_ct_STRIP"; then
5854   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861   for ac_exec_ext in '' $ac_executable_extensions; do
5862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863     ac_cv_prog_ac_ct_STRIP="strip"
5864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865     break 2
5866   fi
5867 done
5868 done
5869
5870   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5871 fi
5872 fi
5873 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5874 if test -n "$ac_ct_STRIP"; then
5875   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5876 echo "${ECHO_T}$ac_ct_STRIP" >&6
5877 else
5878   echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5880 fi
5881
5882   STRIP=$ac_ct_STRIP
5883 else
5884   STRIP="$ac_cv_prog_STRIP"
5885 fi
5886
5887
5888 old_CC="$CC"
5889 old_CFLAGS="$CFLAGS"
5890
5891 # Set sane defaults for various variables
5892 test -z "$AR" && AR=ar
5893 test -z "$AR_FLAGS" && AR_FLAGS=cru
5894 test -z "$AS" && AS=as
5895 test -z "$CC" && CC=cc
5896 test -z "$LTCC" && LTCC=$CC
5897 test -z "$DLLTOOL" && DLLTOOL=dlltool
5898 test -z "$LD" && LD=ld
5899 test -z "$LN_S" && LN_S="ln -s"
5900 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5901 test -z "$NM" && NM=nm
5902 test -z "$SED" && SED=sed
5903 test -z "$OBJDUMP" && OBJDUMP=objdump
5904 test -z "$RANLIB" && RANLIB=:
5905 test -z "$STRIP" && STRIP=:
5906 test -z "$ac_objext" && ac_objext=o
5907
5908 # Determine commands to create old-style static archives.
5909 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5910 old_postinstall_cmds='chmod 644 $oldlib'
5911 old_postuninstall_cmds=
5912
5913 if test -n "$RANLIB"; then
5914   case $host_os in
5915   openbsd*)
5916     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5917     ;;
5918   *)
5919     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5920     ;;
5921   esac
5922   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5923 fi
5924
5925 # Only perform the check for file, if the check method requires it
5926 case $deplibs_check_method in
5927 file_magic*)
5928   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5929     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5930 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5931 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   case $MAGIC_CMD in
5935 [\\/*] |  ?:[\\/]*)
5936   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5937   ;;
5938 *)
5939   lt_save_MAGIC_CMD="$MAGIC_CMD"
5940   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5941   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5942   for ac_dir in $ac_dummy; do
5943     IFS="$lt_save_ifs"
5944     test -z "$ac_dir" && ac_dir=.
5945     if test -f $ac_dir/${ac_tool_prefix}file; then
5946       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5947       if test -n "$file_magic_test_file"; then
5948         case $deplibs_check_method in
5949         "file_magic "*)
5950           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5951           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5952           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5953             $EGREP "$file_magic_regex" > /dev/null; then
5954             :
5955           else
5956             cat <<EOF 1>&2
5957
5958 *** Warning: the command libtool uses to detect shared libraries,
5959 *** $file_magic_cmd, produces output that libtool cannot recognize.
5960 *** The result is that libtool may fail to recognize shared libraries
5961 *** as such.  This will affect the creation of libtool libraries that
5962 *** depend on shared libraries, but programs linked with such libtool
5963 *** libraries will work regardless of this problem.  Nevertheless, you
5964 *** may want to report the problem to your system manager and/or to
5965 *** bug-libtool@gnu.org
5966
5967 EOF
5968           fi ;;
5969         esac
5970       fi
5971       break
5972     fi
5973   done
5974   IFS="$lt_save_ifs"
5975   MAGIC_CMD="$lt_save_MAGIC_CMD"
5976   ;;
5977 esac
5978 fi
5979
5980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5981 if test -n "$MAGIC_CMD"; then
5982   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5983 echo "${ECHO_T}$MAGIC_CMD" >&6
5984 else
5985   echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5987 fi
5988
5989 if test -z "$lt_cv_path_MAGIC_CMD"; then
5990   if test -n "$ac_tool_prefix"; then
5991     echo "$as_me:$LINENO: checking for file" >&5
5992 echo $ECHO_N "checking for file... $ECHO_C" >&6
5993 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   case $MAGIC_CMD in
5997 [\\/*] |  ?:[\\/]*)
5998   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5999   ;;
6000 *)
6001   lt_save_MAGIC_CMD="$MAGIC_CMD"
6002   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6003   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6004   for ac_dir in $ac_dummy; do
6005     IFS="$lt_save_ifs"
6006     test -z "$ac_dir" && ac_dir=.
6007     if test -f $ac_dir/file; then
6008       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6009       if test -n "$file_magic_test_file"; then
6010         case $deplibs_check_method in
6011         "file_magic "*)
6012           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6013           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6014           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6015             $EGREP "$file_magic_regex" > /dev/null; then
6016             :
6017           else
6018             cat <<EOF 1>&2
6019
6020 *** Warning: the command libtool uses to detect shared libraries,
6021 *** $file_magic_cmd, produces output that libtool cannot recognize.
6022 *** The result is that libtool may fail to recognize shared libraries
6023 *** as such.  This will affect the creation of libtool libraries that
6024 *** depend on shared libraries, but programs linked with such libtool
6025 *** libraries will work regardless of this problem.  Nevertheless, you
6026 *** may want to report the problem to your system manager and/or to
6027 *** bug-libtool@gnu.org
6028
6029 EOF
6030           fi ;;
6031         esac
6032       fi
6033       break
6034     fi
6035   done
6036   IFS="$lt_save_ifs"
6037   MAGIC_CMD="$lt_save_MAGIC_CMD"
6038   ;;
6039 esac
6040 fi
6041
6042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6043 if test -n "$MAGIC_CMD"; then
6044   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6045 echo "${ECHO_T}$MAGIC_CMD" >&6
6046 else
6047   echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6
6049 fi
6050
6051   else
6052     MAGIC_CMD=:
6053   fi
6054 fi
6055
6056   fi
6057   ;;
6058 esac
6059
6060 enable_dlopen=no
6061 enable_win32_dll=no
6062
6063 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6064 if test "${enable_libtool_lock+set}" = set; then
6065   enableval="$enable_libtool_lock"
6066
6067 fi;
6068 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6069
6070
6071 # Check whether --with-pic or --without-pic was given.
6072 if test "${with_pic+set}" = set; then
6073   withval="$with_pic"
6074   pic_mode="$withval"
6075 else
6076   pic_mode=default
6077 fi;
6078 test -z "$pic_mode" && pic_mode=default
6079
6080 # Use C for the default configuration in the libtool script
6081 tagname=
6082 lt_save_CC="$CC"
6083 ac_ext=c
6084 ac_cpp='$CPP $CPPFLAGS'
6085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6088
6089
6090 # Source file extension for C test sources.
6091 ac_ext=c
6092
6093 # Object file extension for compiled C test sources.
6094 objext=o
6095 objext=$objext
6096
6097 # Code to be used in simple compile tests
6098 lt_simple_compile_test_code="int some_variable = 0;\n"
6099
6100 # Code to be used in simple link tests
6101 lt_simple_link_test_code='int main(){return(0);}\n'
6102
6103
6104 # If no C compiler was specified, use CC.
6105 LTCC=${LTCC-"$CC"}
6106
6107 # Allow CC to be a program name with arguments.
6108 compiler=$CC
6109
6110
6111 #
6112 # Check for any special shared library compilation flags.
6113 #
6114 lt_prog_cc_shlib=
6115 if test "$GCC" = no; then
6116   case $host_os in
6117   sco3.2v5*)
6118     lt_prog_cc_shlib='-belf'
6119     ;;
6120   esac
6121 fi
6122 if test -n "$lt_prog_cc_shlib"; then
6123   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6124 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6125   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6126   else
6127     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6128 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6129     lt_cv_prog_cc_can_build_shared=no
6130   fi
6131 fi
6132
6133
6134 #
6135 # Check to make sure the static flag actually works.
6136 #
6137 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6138 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6139 if test "${lt_prog_compiler_static_works+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   lt_prog_compiler_static_works=no
6143    save_LDFLAGS="$LDFLAGS"
6144    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6145    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6146    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6147      # The compiler can only warn and ignore the option if not recognized
6148      # So say no if there are warnings
6149      if test -s conftest.err; then
6150        # Append any errors to the config.log.
6151        cat conftest.err 1>&5
6152      else
6153        lt_prog_compiler_static_works=yes
6154      fi
6155    fi
6156    $rm conftest*
6157    LDFLAGS="$save_LDFLAGS"
6158
6159 fi
6160 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6161 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6162
6163 if test x"$lt_prog_compiler_static_works" = xyes; then
6164     :
6165 else
6166     lt_prog_compiler_static=
6167 fi
6168
6169
6170
6171
6172 lt_prog_compiler_no_builtin_flag=
6173
6174 if test "$GCC" = yes; then
6175   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6176
6177
6178 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6179 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6180 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6181   echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183   lt_cv_prog_compiler_rtti_exceptions=no
6184   ac_outfile=conftest.$ac_objext
6185    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6186    lt_compiler_flag="-fno-rtti -fno-exceptions"
6187    # Insert the option either (1) after the last *FLAGS variable, or
6188    # (2) before a word containing "conftest.", or (3) at the end.
6189    # Note that $ac_compile itself does not contain backslashes and begins
6190    # with a dollar sign (not a hyphen), so the echo should work correctly.
6191    # The option is referenced via a variable to avoid confusing sed.
6192    lt_compile=`echo "$ac_compile" | $SED \
6193    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6194    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6195    -e 's:$: $lt_compiler_flag:'`
6196    (eval echo "\"\$as_me:6196: $lt_compile\"" >&5)
6197    (eval "$lt_compile" 2>conftest.err)
6198    ac_status=$?
6199    cat conftest.err >&5
6200    echo "$as_me:6200: \$? = $ac_status" >&5
6201    if (exit $ac_status) && test -s "$ac_outfile"; then
6202      # The compiler can only warn and ignore the option if not recognized
6203      # So say no if there are warnings
6204      if test ! -s conftest.err; then
6205        lt_cv_prog_compiler_rtti_exceptions=yes
6206      fi
6207    fi
6208    $rm conftest*
6209
6210 fi
6211 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6212 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6213
6214 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6215     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6216 else
6217     :
6218 fi
6219
6220 fi
6221
6222 lt_prog_compiler_wl=
6223 lt_prog_compiler_pic=
6224 lt_prog_compiler_static=
6225
6226 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6227 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6228
6229   if test "$GCC" = yes; then
6230     lt_prog_compiler_wl='-Wl,'
6231     lt_prog_compiler_static='-static'
6232
6233     case $host_os in
6234       aix*)
6235       # All AIX code is PIC.
6236       if test "$host_cpu" = ia64; then
6237         # AIX 5 now supports IA64 processor
6238         lt_prog_compiler_static='-Bstatic'
6239       fi
6240       ;;
6241
6242     amigaos*)
6243       # FIXME: we need at least 68020 code to build shared libraries, but
6244       # adding the `-m68020' flag to GCC prevents building anything better,
6245       # like `-m68040'.
6246       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6247       ;;
6248
6249     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6250       # PIC is the default for these OSes.
6251       ;;
6252
6253     mingw* | pw32* | os2*)
6254       # This hack is so that the source file can tell whether it is being
6255       # built for inclusion in a dll (and should export symbols for example).
6256       lt_prog_compiler_pic='-DDLL_EXPORT'
6257       ;;
6258
6259     darwin* | rhapsody*)
6260       # PIC is the default on this platform
6261       # Common symbols not allowed in MH_DYLIB files
6262       lt_prog_compiler_pic='-fno-common'
6263       ;;
6264
6265     msdosdjgpp*)
6266       # Just because we use GCC doesn't mean we suddenly get shared libraries
6267       # on systems that don't support them.
6268       lt_prog_compiler_can_build_shared=no
6269       enable_shared=no
6270       ;;
6271
6272     sysv4*MP*)
6273       if test -d /usr/nec; then
6274         lt_prog_compiler_pic=-Kconform_pic
6275       fi
6276       ;;
6277
6278     hpux*)
6279       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6280       # not for PA HP-UX.
6281       case "$host_cpu" in
6282       hppa*64*|ia64*)
6283         # +Z the default
6284         ;;
6285       *)
6286         lt_prog_compiler_pic='-fPIC'
6287         ;;
6288       esac
6289       ;;
6290
6291     *)
6292       lt_prog_compiler_pic='-fPIC'
6293       ;;
6294     esac
6295   else
6296     # PORTME Check for flag to pass linker flags through the system compiler.
6297     case $host_os in
6298     aix*)
6299       lt_prog_compiler_wl='-Wl,'
6300       if test "$host_cpu" = ia64; then
6301         # AIX 5 now supports IA64 processor
6302         lt_prog_compiler_static='-Bstatic'
6303       else
6304         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6305       fi
6306       ;;
6307
6308     mingw* | pw32* | os2*)
6309       # This hack is so that the source file can tell whether it is being
6310       # built for inclusion in a dll (and should export symbols for example).
6311       lt_prog_compiler_pic='-DDLL_EXPORT'
6312       ;;
6313
6314     hpux9* | hpux10* | hpux11*)
6315       lt_prog_compiler_wl='-Wl,'
6316       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6317       # not for PA HP-UX.
6318       case "$host_cpu" in
6319       hppa*64*|ia64*)
6320         # +Z the default
6321         ;;
6322       *)
6323         lt_prog_compiler_pic='+Z'
6324         ;;
6325       esac
6326       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6327       lt_prog_compiler_static='${wl}-a ${wl}archive'
6328       ;;
6329
6330     irix5* | irix6* | nonstopux*)
6331       lt_prog_compiler_wl='-Wl,'
6332       # PIC (with -KPIC) is the default.
6333       lt_prog_compiler_static='-non_shared'
6334       ;;
6335
6336     newsos6)
6337       lt_prog_compiler_pic='-KPIC'
6338       lt_prog_compiler_static='-Bstatic'
6339       ;;
6340
6341     linux*)
6342       case $CC in
6343       icc* | ecc*)
6344         lt_prog_compiler_wl='-Wl,'
6345         lt_prog_compiler_pic='-KPIC'
6346         lt_prog_compiler_static='-static'
6347         ;;
6348       ccc*)
6349         lt_prog_compiler_wl='-Wl,'
6350         # All Alpha code is PIC.
6351         lt_prog_compiler_static='-non_shared'
6352         ;;
6353       esac
6354       ;;
6355
6356     osf3* | osf4* | osf5*)
6357       lt_prog_compiler_wl='-Wl,'
6358       # All OSF/1 code is PIC.
6359       lt_prog_compiler_static='-non_shared'
6360       ;;
6361
6362     sco3.2v5*)
6363       lt_prog_compiler_pic='-Kpic'
6364       lt_prog_compiler_static='-dn'
6365       ;;
6366
6367     solaris*)
6368       lt_prog_compiler_wl='-Wl,'
6369       lt_prog_compiler_pic='-KPIC'
6370       lt_prog_compiler_static='-Bstatic'
6371       ;;
6372
6373     sunos4*)
6374       lt_prog_compiler_wl='-Qoption ld '
6375       lt_prog_compiler_pic='-PIC'
6376       lt_prog_compiler_static='-Bstatic'
6377       ;;
6378
6379     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6380       lt_prog_compiler_wl='-Wl,'
6381       lt_prog_compiler_pic='-KPIC'
6382       lt_prog_compiler_static='-Bstatic'
6383       ;;
6384
6385     sysv4*MP*)
6386       if test -d /usr/nec ;then
6387         lt_prog_compiler_pic='-Kconform_pic'
6388         lt_prog_compiler_static='-Bstatic'
6389       fi
6390       ;;
6391
6392     uts4*)
6393       lt_prog_compiler_pic='-pic'
6394       lt_prog_compiler_static='-Bstatic'
6395       ;;
6396
6397     *)
6398       lt_prog_compiler_can_build_shared=no
6399       ;;
6400     esac
6401   fi
6402
6403 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6404 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6405
6406 #
6407 # Check to make sure the PIC flag actually works.
6408 #
6409 if test -n "$lt_prog_compiler_pic"; then
6410
6411 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6412 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6413 if test "${lt_prog_compiler_pic_works+set}" = set; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416   lt_prog_compiler_pic_works=no
6417   ac_outfile=conftest.$ac_objext
6418    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6419    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6420    # Insert the option either (1) after the last *FLAGS variable, or
6421    # (2) before a word containing "conftest.", or (3) at the end.
6422    # Note that $ac_compile itself does not contain backslashes and begins
6423    # with a dollar sign (not a hyphen), so the echo should work correctly.
6424    # The option is referenced via a variable to avoid confusing sed.
6425    lt_compile=`echo "$ac_compile" | $SED \
6426    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6427    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6428    -e 's:$: $lt_compiler_flag:'`
6429    (eval echo "\"\$as_me:6429: $lt_compile\"" >&5)
6430    (eval "$lt_compile" 2>conftest.err)
6431    ac_status=$?
6432    cat conftest.err >&5
6433    echo "$as_me:6433: \$? = $ac_status" >&5
6434    if (exit $ac_status) && test -s "$ac_outfile"; then
6435      # The compiler can only warn and ignore the option if not recognized
6436      # So say no if there are warnings
6437      if test ! -s conftest.err; then
6438        lt_prog_compiler_pic_works=yes
6439      fi
6440    fi
6441    $rm conftest*
6442
6443 fi
6444 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6445 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6446
6447 if test x"$lt_prog_compiler_pic_works" = xyes; then
6448     case $lt_prog_compiler_pic in
6449      "" | " "*) ;;
6450      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6451      esac
6452 else
6453     lt_prog_compiler_pic=
6454      lt_prog_compiler_can_build_shared=no
6455 fi
6456
6457 fi
6458 case "$host_os" in
6459   # For platforms which do not support PIC, -DPIC is meaningless:
6460   *djgpp*)
6461     lt_prog_compiler_pic=
6462     ;;
6463   *)
6464     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6465     ;;
6466 esac
6467
6468 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6469 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6470 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473   lt_cv_prog_compiler_c_o=no
6474    $rm -r conftest 2>/dev/null
6475    mkdir conftest
6476    cd conftest
6477    mkdir out
6478    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6479
6480    lt_compiler_flag="-o out/conftest2.$ac_objext"
6481    # Insert the option either (1) after the last *FLAGS variable, or
6482    # (2) before a word containing "conftest.", or (3) at the end.
6483    # Note that $ac_compile itself does not contain backslashes and begins
6484    # with a dollar sign (not a hyphen), so the echo should work correctly.
6485    lt_compile=`echo "$ac_compile" | $SED \
6486    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6487    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6488    -e 's:$: $lt_compiler_flag:'`
6489    (eval echo "\"\$as_me:6489: $lt_compile\"" >&5)
6490    (eval "$lt_compile" 2>out/conftest.err)
6491    ac_status=$?
6492    cat out/conftest.err >&5
6493    echo "$as_me:6493: \$? = $ac_status" >&5
6494    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6495    then
6496      # The compiler can only warn and ignore the option if not recognized
6497      # So say no if there are warnings
6498      if test ! -s out/conftest.err; then
6499        lt_cv_prog_compiler_c_o=yes
6500      fi
6501    fi
6502    chmod u+w .
6503    $rm conftest*
6504    # SGI C++ compiler will create directory out/ii_files/ for
6505    # template instantiation
6506    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6507    $rm out/* && rmdir out
6508    cd ..
6509    rmdir conftest
6510    $rm conftest*
6511
6512 fi
6513 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6514 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6515
6516
6517 hard_links="nottested"
6518 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6519   # do not overwrite the value of need_locks provided by the user
6520   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6521 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6522   hard_links=yes
6523   $rm conftest*
6524   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6525   touch conftest.a
6526   ln conftest.a conftest.b 2>&5 || hard_links=no
6527   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6528   echo "$as_me:$LINENO: result: $hard_links" >&5
6529 echo "${ECHO_T}$hard_links" >&6
6530   if test "$hard_links" = no; then
6531     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6532 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6533     need_locks=warn
6534   fi
6535 else
6536   need_locks=no
6537 fi
6538
6539 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6540 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6541
6542   runpath_var=
6543   allow_undefined_flag=
6544   enable_shared_with_static_runtimes=no
6545   archive_cmds=
6546   archive_expsym_cmds=
6547   old_archive_From_new_cmds=
6548   old_archive_from_expsyms_cmds=
6549   export_dynamic_flag_spec=
6550   whole_archive_flag_spec=
6551   thread_safe_flag_spec=
6552   hardcode_libdir_flag_spec=
6553   hardcode_libdir_flag_spec_ld=
6554   hardcode_libdir_separator=
6555   hardcode_direct=no
6556   hardcode_minus_L=no
6557   hardcode_shlibpath_var=unsupported
6558   link_all_deplibs=unknown
6559   hardcode_automatic=no
6560   module_cmds=
6561   module_expsym_cmds=
6562   always_export_symbols=no
6563   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6564   # include_expsyms should be a list of space-separated symbols to be *always*
6565   # included in the symbol list
6566   include_expsyms=
6567   # exclude_expsyms can be an extended regexp of symbols to exclude
6568   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6569   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6570   # as well as any symbol that contains `d'.
6571   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6572   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6573   # platforms (ab)use it in PIC code, but their linkers get confused if
6574   # the symbol is explicitly referenced.  Since portable code cannot
6575   # rely on this symbol name, it's probably fine to never include it in
6576   # preloaded symbol tables.
6577   extract_expsyms_cmds=
6578
6579   case $host_os in
6580   cygwin* | mingw* | pw32*)
6581     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6582     # When not using gcc, we currently assume that we are using
6583     # Microsoft Visual C++.
6584     if test "$GCC" != yes; then
6585       with_gnu_ld=no
6586     fi
6587     ;;
6588   openbsd*)
6589     with_gnu_ld=no
6590     ;;
6591   esac
6592
6593   ld_shlibs=yes
6594   if test "$with_gnu_ld" = yes; then
6595     # If archive_cmds runs LD, not CC, wlarc should be empty
6596     wlarc='${wl}'
6597
6598     # See if GNU ld supports shared libraries.
6599     case $host_os in
6600     aix3* | aix4* | aix5*)
6601       # On AIX/PPC, the GNU linker is very broken
6602       if test "$host_cpu" != ia64; then
6603         ld_shlibs=no
6604         cat <<EOF 1>&2
6605
6606 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6607 *** to be unable to reliably create shared libraries on AIX.
6608 *** Therefore, libtool is disabling shared libraries support.  If you
6609 *** really care for shared libraries, you may want to modify your PATH
6610 *** so that a non-GNU linker is found, and then restart.
6611
6612 EOF
6613       fi
6614       ;;
6615
6616     amigaos*)
6617       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)'
6618       hardcode_libdir_flag_spec='-L$libdir'
6619       hardcode_minus_L=yes
6620
6621       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6622       # that the semantics of dynamic libraries on AmigaOS, at least up
6623       # to version 4, is to share data among multiple programs linked
6624       # with the same dynamic library.  Since this doesn't match the
6625       # behavior of shared libraries on other platforms, we can't use
6626       # them.
6627       ld_shlibs=no
6628       ;;
6629
6630     beos*)
6631       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6632         allow_undefined_flag=unsupported
6633         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6634         # support --undefined.  This deserves some investigation.  FIXME
6635         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6636       else
6637         ld_shlibs=no
6638       fi
6639       ;;
6640
6641     cygwin* | mingw* | pw32*)
6642       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6643       # as there is no search path for DLLs.
6644       hardcode_libdir_flag_spec='-L$libdir'
6645       allow_undefined_flag=unsupported
6646       always_export_symbols=no
6647       enable_shared_with_static_runtimes=yes
6648       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6649
6650       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6651         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6652         # If the export-symbols file already is a .def file (1st line
6653         # is EXPORTS), use it as is; otherwise, prepend...
6654         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6655           cp $export_symbols $output_objdir/$soname.def;
6656         else
6657           echo EXPORTS > $output_objdir/$soname.def;
6658           cat $export_symbols >> $output_objdir/$soname.def;
6659         fi~
6660         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6661       else
6662         ld_shlibs=no
6663       fi
6664       ;;
6665
6666     netbsd*)
6667       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6668         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6669         wlarc=
6670       else
6671         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6672         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6673       fi
6674       ;;
6675
6676     solaris* | sysv5*)
6677       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6678         ld_shlibs=no
6679         cat <<EOF 1>&2
6680
6681 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6682 *** create shared libraries on Solaris systems.  Therefore, libtool
6683 *** is disabling shared libraries support.  We urge you to upgrade GNU
6684 *** binutils to release 2.9.1 or newer.  Another option is to modify
6685 *** your PATH or compiler configuration so that the native linker is
6686 *** used, and then restart.
6687
6688 EOF
6689       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6690         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6691         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6692       else
6693         ld_shlibs=no
6694       fi
6695       ;;
6696
6697     sunos4*)
6698       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6699       wlarc=
6700       hardcode_direct=yes
6701       hardcode_shlibpath_var=no
6702       ;;
6703
6704   linux*)
6705     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6706         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6707         archive_cmds="$tmp_archive_cmds"
6708       supports_anon_versioning=no
6709       case `$LD -v 2>/dev/null` in
6710         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6711         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6712         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6713         *\ 2.11.*) ;; # other 2.11 versions
6714         *) supports_anon_versioning=yes ;;
6715       esac
6716       if test $supports_anon_versioning = yes; then
6717         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6718 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6719 $echo "local: *; };" >> $output_objdir/$libname.ver~
6720         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6721       else
6722         archive_expsym_cmds="$tmp_archive_cmds"
6723       fi
6724     else
6725       ld_shlibs=no
6726     fi
6727     ;;
6728
6729     *)
6730       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6731         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6732         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6733       else
6734         ld_shlibs=no
6735       fi
6736       ;;
6737     esac
6738
6739     if test "$ld_shlibs" = yes; then
6740       runpath_var=LD_RUN_PATH
6741       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6742       export_dynamic_flag_spec='${wl}--export-dynamic'
6743       # ancient GNU ld didn't support --whole-archive et. al.
6744       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6745         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6746       else
6747         whole_archive_flag_spec=
6748       fi
6749     fi
6750   else
6751     # PORTME fill in a description of your system's linker (not GNU ld)
6752     case $host_os in
6753     aix3*)
6754       allow_undefined_flag=unsupported
6755       always_export_symbols=yes
6756       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'
6757       # Note: this linker hardcodes the directories in LIBPATH if there
6758       # are no directories specified by -L.
6759       hardcode_minus_L=yes
6760       if test "$GCC" = yes && test -z "$link_static_flag"; then
6761         # Neither direct hardcoding nor static linking is supported with a
6762         # broken collect2.
6763         hardcode_direct=unsupported
6764       fi
6765       ;;
6766
6767     aix4* | aix5*)
6768       if test "$host_cpu" = ia64; then
6769         # On IA64, the linker does run time linking by default, so we don't
6770         # have to do anything special.
6771         aix_use_runtimelinking=no
6772         exp_sym_flag='-Bexport'
6773         no_entry_flag=""
6774       else
6775         # If we're using GNU nm, then we don't want the "-C" option.
6776         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6777         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6778           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'
6779         else
6780           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'
6781         fi
6782         aix_use_runtimelinking=no
6783
6784         # Test if we are trying to use run time linking or normal
6785         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6786         # need to do runtime linking.
6787         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6788           for ld_flag in $LDFLAGS; do
6789           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6790             aix_use_runtimelinking=yes
6791             break
6792           fi
6793           done
6794         esac
6795
6796         exp_sym_flag='-bexport'
6797         no_entry_flag='-bnoentry'
6798       fi
6799
6800       # When large executables or shared objects are built, AIX ld can
6801       # have problems creating the table of contents.  If linking a library
6802       # or program results in "error TOC overflow" add -mminimal-toc to
6803       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6804       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6805
6806       archive_cmds=''
6807       hardcode_direct=yes
6808       hardcode_libdir_separator=':'
6809       link_all_deplibs=yes
6810
6811       if test "$GCC" = yes; then
6812         case $host_os in aix4.012|aix4.012.*)
6813         # We only want to do this on AIX 4.2 and lower, the check
6814         # below for broken collect2 doesn't work under 4.3+
6815           collect2name=`${CC} -print-prog-name=collect2`
6816           if test -f "$collect2name" && \
6817            strings "$collect2name" | grep resolve_lib_name >/dev/null
6818           then
6819           # We have reworked collect2
6820           hardcode_direct=yes
6821           else
6822           # We have old collect2
6823           hardcode_direct=unsupported
6824           # It fails to find uninstalled libraries when the uninstalled
6825           # path is not listed in the libpath.  Setting hardcode_minus_L
6826           # to unsupported forces relinking
6827           hardcode_minus_L=yes
6828           hardcode_libdir_flag_spec='-L$libdir'
6829           hardcode_libdir_separator=
6830           fi
6831         esac
6832         shared_flag='-shared'
6833       else
6834         # not using gcc
6835         if test "$host_cpu" = ia64; then
6836         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6837         # chokes on -Wl,-G. The following line is correct:
6838           shared_flag='-G'
6839         else
6840         if test "$aix_use_runtimelinking" = yes; then
6841             shared_flag='${wl}-G'
6842           else
6843             shared_flag='${wl}-bM:SRE'
6844         fi
6845         fi
6846       fi
6847
6848       # It seems that -bexpall does not export symbols beginning with
6849       # underscore (_), so it is better to generate a list of symbols to export.
6850       always_export_symbols=yes
6851       if test "$aix_use_runtimelinking" = yes; then
6852         # Warning - without using the other runtime loading flags (-brtl),
6853         # -berok will link without error, but may produce a broken library.
6854         allow_undefined_flag='-berok'
6855        # Determine the default libpath from the value encoded in an empty executable.
6856        cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h.  */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h.  */
6862
6863 int
6864 main ()
6865 {
6866
6867   ;
6868   return 0;
6869 }
6870 _ACEOF
6871 rm -f conftest.$ac_objext conftest$ac_exeext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6873   (eval $ac_link) 2>conftest.er1
6874   ac_status=$?
6875   grep -v '^ *+' conftest.er1 >conftest.err
6876   rm -f conftest.er1
6877   cat conftest.err >&5
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); } &&
6880          { ac_try='test -z "$ac_c_werror_flag"
6881                          || test ! -s conftest.err'
6882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883   (eval $ac_try) 2>&5
6884   ac_status=$?
6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); }; } &&
6887          { ac_try='test -s conftest$ac_exeext'
6888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889   (eval $ac_try) 2>&5
6890   ac_status=$?
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); }; }; then
6893
6894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6895 }'`
6896 # Check for a 64-bit object if we didn't find anything.
6897 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; }
6898 }'`; fi
6899 else
6900   echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6902
6903 fi
6904 rm -f conftest.err conftest.$ac_objext \
6905       conftest$ac_exeext conftest.$ac_ext
6906 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6907
6908        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6909         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"
6910        else
6911         if test "$host_cpu" = ia64; then
6912           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6913           allow_undefined_flag="-z nodefs"
6914           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"
6915         else
6916          # Determine the default libpath from the value encoded in an empty executable.
6917          cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h.  */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h.  */
6923
6924 int
6925 main ()
6926 {
6927
6928   ;
6929   return 0;
6930 }
6931 _ACEOF
6932 rm -f conftest.$ac_objext conftest$ac_exeext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6934   (eval $ac_link) 2>conftest.er1
6935   ac_status=$?
6936   grep -v '^ *+' conftest.er1 >conftest.err
6937   rm -f conftest.er1
6938   cat conftest.err >&5
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); } &&
6941          { ac_try='test -z "$ac_c_werror_flag"
6942                          || test ! -s conftest.err'
6943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944   (eval $ac_try) 2>&5
6945   ac_status=$?
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); }; } &&
6948          { ac_try='test -s conftest$ac_exeext'
6949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950   (eval $ac_try) 2>&5
6951   ac_status=$?
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); }; }; then
6954
6955 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6956 }'`
6957 # Check for a 64-bit object if we didn't find anything.
6958 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; }
6959 }'`; fi
6960 else
6961   echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6963
6964 fi
6965 rm -f conftest.err conftest.$ac_objext \
6966       conftest$ac_exeext conftest.$ac_ext
6967 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6968
6969          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6970           # Warning - without using the other run time loading flags,
6971           # -berok will link without error, but may produce a broken library.
6972           no_undefined_flag=' ${wl}-bernotok'
6973           allow_undefined_flag=' ${wl}-berok'
6974           # -bexpall does not export symbols beginning with underscore (_)
6975           always_export_symbols=yes
6976           # Exported symbols can be pulled into shared objects from archives
6977           whole_archive_flag_spec=' '
6978           archive_cmds_need_lc=yes
6979           # This is similar to how AIX traditionally builds it's shared libraries.
6980           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'
6981         fi
6982       fi
6983       ;;
6984
6985     amigaos*)
6986       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)'
6987       hardcode_libdir_flag_spec='-L$libdir'
6988       hardcode_minus_L=yes
6989       # see comment about different semantics on the GNU ld section
6990       ld_shlibs=no
6991       ;;
6992
6993     bsdi4*)
6994       export_dynamic_flag_spec=-rdynamic
6995       ;;
6996
6997     cygwin* | mingw* | pw32*)
6998       # When not using gcc, we currently assume that we are using
6999       # Microsoft Visual C++.
7000       # hardcode_libdir_flag_spec is actually meaningless, as there is
7001       # no search path for DLLs.
7002       hardcode_libdir_flag_spec=' '
7003       allow_undefined_flag=unsupported
7004       # Tell ltmain to make .lib files, not .a files.
7005       libext=lib
7006       # Tell ltmain to make .dll files, not .so files.
7007       shrext=".dll"
7008       # FIXME: Setting linknames here is a bad hack.
7009       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7010       # The linker will automatically build a .lib file if we build a DLL.
7011       old_archive_From_new_cmds='true'
7012       # FIXME: Should let the user specify the lib program.
7013       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7014       fix_srcfile_path='`cygpath -w "$srcfile"`'
7015       enable_shared_with_static_runtimes=yes
7016       ;;
7017
7018     darwin* | rhapsody*)
7019     if test "$GXX" = yes ; then
7020       archive_cmds_need_lc=no
7021       case "$host_os" in
7022       rhapsody* | darwin1.[012])
7023         allow_undefined_flag='-undefined suppress'
7024         ;;
7025       *) # Darwin 1.3 on
7026       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7027         allow_undefined_flag='-flat_namespace -undefined suppress'
7028       else
7029         case ${MACOSX_DEPLOYMENT_TARGET} in
7030           10.[012])
7031             allow_undefined_flag='-flat_namespace -undefined suppress'
7032             ;;
7033           10.*)
7034             allow_undefined_flag='-undefined dynamic_lookup'
7035             ;;
7036         esac
7037       fi
7038         ;;
7039       esac
7040         lt_int_apple_cc_single_mod=no
7041         output_verbose_link_cmd='echo'
7042         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7043           lt_int_apple_cc_single_mod=yes
7044         fi
7045         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7046           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7047         else
7048         archive_cmds='$CC -r ${wl}-bind_at_load -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'
7049       fi
7050       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7051       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7052         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7053           archive_expsym_cmds='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}'
7054         else
7055           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7056         fi
7057           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}'
7058       hardcode_direct=no
7059       hardcode_automatic=yes
7060       hardcode_shlibpath_var=unsupported
7061       whole_archive_flag_spec='-all_load $convenience'
7062       link_all_deplibs=yes
7063     else
7064       ld_shlibs=no
7065     fi
7066       ;;
7067
7068     dgux*)
7069       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7070       hardcode_libdir_flag_spec='-L$libdir'
7071       hardcode_shlibpath_var=no
7072       ;;
7073
7074     freebsd1*)
7075       ld_shlibs=no
7076       ;;
7077
7078     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7079     # support.  Future versions do this automatically, but an explicit c++rt0.o
7080     # does not break anything, and helps significantly (at the cost of a little
7081     # extra space).
7082     freebsd2.2*)
7083       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7084       hardcode_libdir_flag_spec='-R$libdir'
7085       hardcode_direct=yes
7086       hardcode_shlibpath_var=no
7087       ;;
7088
7089     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7090     freebsd2*)
7091       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7092       hardcode_direct=yes
7093       hardcode_minus_L=yes
7094       hardcode_shlibpath_var=no
7095       ;;
7096
7097     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7098     freebsd* | kfreebsd*-gnu)
7099       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7100       hardcode_libdir_flag_spec='-R$libdir'
7101       hardcode_direct=yes
7102       hardcode_shlibpath_var=no
7103       ;;
7104
7105     hpux9*)
7106       if test "$GCC" = yes; then
7107         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'
7108       else
7109         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'
7110       fi
7111       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7112       hardcode_libdir_separator=:
7113       hardcode_direct=yes
7114
7115       # hardcode_minus_L: Not really in the search PATH,
7116       # but as the default location of the library.
7117       hardcode_minus_L=yes
7118       export_dynamic_flag_spec='${wl}-E'
7119       ;;
7120
7121     hpux10* | hpux11*)
7122       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7123         case "$host_cpu" in
7124         hppa*64*|ia64*)
7125           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7126           ;;
7127         *)
7128           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7129           ;;
7130         esac
7131       else
7132         case "$host_cpu" in
7133         hppa*64*|ia64*)
7134           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7135           ;;
7136         *)
7137           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7138           ;;
7139         esac
7140       fi
7141       if test "$with_gnu_ld" = no; then
7142         case "$host_cpu" in
7143         hppa*64*)
7144           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7145           hardcode_libdir_flag_spec_ld='+b $libdir'
7146           hardcode_libdir_separator=:
7147           hardcode_direct=no
7148           hardcode_shlibpath_var=no
7149           ;;
7150         ia64*)
7151           hardcode_libdir_flag_spec='-L$libdir'
7152           hardcode_direct=no
7153           hardcode_shlibpath_var=no
7154
7155           # hardcode_minus_L: Not really in the search PATH,
7156           # but as the default location of the library.
7157           hardcode_minus_L=yes
7158           ;;
7159         *)
7160           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7161           hardcode_libdir_separator=:
7162           hardcode_direct=yes
7163           export_dynamic_flag_spec='${wl}-E'
7164
7165           # hardcode_minus_L: Not really in the search PATH,
7166           # but as the default location of the library.
7167           hardcode_minus_L=yes
7168           ;;
7169         esac
7170       fi
7171       ;;
7172
7173     irix5* | irix6* | nonstopux*)
7174       if test "$GCC" = yes; then
7175         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'
7176       else
7177         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'
7178         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7179       fi
7180       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7181       hardcode_libdir_separator=:
7182       link_all_deplibs=yes
7183       ;;
7184
7185     netbsd*)
7186       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7187         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7188       else
7189         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7190       fi
7191       hardcode_libdir_flag_spec='-R$libdir'
7192       hardcode_direct=yes
7193       hardcode_shlibpath_var=no
7194       ;;
7195
7196     newsos6)
7197       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7198       hardcode_direct=yes
7199       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7200       hardcode_libdir_separator=:
7201       hardcode_shlibpath_var=no
7202       ;;
7203
7204     openbsd*)
7205       hardcode_direct=yes
7206       hardcode_shlibpath_var=no
7207       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7208         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7209         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7210         export_dynamic_flag_spec='${wl}-E'
7211       else
7212        case $host_os in
7213          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7214            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7215            hardcode_libdir_flag_spec='-R$libdir'
7216            ;;
7217          *)
7218            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7219            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7220            ;;
7221        esac
7222       fi
7223       ;;
7224
7225     os2*)
7226       hardcode_libdir_flag_spec='-L$libdir'
7227       hardcode_minus_L=yes
7228       allow_undefined_flag=unsupported
7229       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'
7230       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7231       ;;
7232
7233     osf3*)
7234       if test "$GCC" = yes; then
7235         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7236         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'
7237       else
7238         allow_undefined_flag=' -expect_unresolved \*'
7239         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'
7240       fi
7241       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7242       hardcode_libdir_separator=:
7243       ;;
7244
7245     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7246       if test "$GCC" = yes; then
7247         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7248         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'
7249         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7250       else
7251         allow_undefined_flag=' -expect_unresolved \*'
7252         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'
7253         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7254         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7255
7256         # Both c and cxx compiler support -rpath directly
7257         hardcode_libdir_flag_spec='-rpath $libdir'
7258       fi
7259       hardcode_libdir_separator=:
7260       ;;
7261
7262     sco3.2v5*)
7263       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7264       hardcode_shlibpath_var=no
7265       export_dynamic_flag_spec='${wl}-Bexport'
7266       runpath_var=LD_RUN_PATH
7267       hardcode_runpath_var=yes
7268       ;;
7269
7270     solaris*)
7271       no_undefined_flag=' -z text'
7272       if test "$GCC" = yes; then
7273         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7274         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7275           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7276       else
7277         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7278         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7279         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7280       fi
7281       hardcode_libdir_flag_spec='-R$libdir'
7282       hardcode_shlibpath_var=no
7283       case $host_os in
7284       solaris2.[0-5] | solaris2.[0-5].*) ;;
7285       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7286         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7287       esac
7288       link_all_deplibs=yes
7289       ;;
7290
7291     sunos4*)
7292       if test "x$host_vendor" = xsequent; then
7293         # Use $CC to link under sequent, because it throws in some extra .o
7294         # files that make .init and .fini sections work.
7295         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7296       else
7297         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7298       fi
7299       hardcode_libdir_flag_spec='-L$libdir'
7300       hardcode_direct=yes
7301       hardcode_minus_L=yes
7302       hardcode_shlibpath_var=no
7303       ;;
7304
7305     sysv4)
7306       case $host_vendor in
7307         sni)
7308           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309           hardcode_direct=yes # is this really true???
7310         ;;
7311         siemens)
7312           ## LD is ld it makes a PLAMLIB
7313           ## CC just makes a GrossModule.
7314           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7315           reload_cmds='$CC -r -o $output$reload_objs'
7316           hardcode_direct=no
7317         ;;
7318         motorola)
7319           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7320           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7321         ;;
7322       esac
7323       runpath_var='LD_RUN_PATH'
7324       hardcode_shlibpath_var=no
7325       ;;
7326
7327     sysv4.3*)
7328       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7329       hardcode_shlibpath_var=no
7330       export_dynamic_flag_spec='-Bexport'
7331       ;;
7332
7333     sysv4*MP*)
7334       if test -d /usr/nec; then
7335         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336         hardcode_shlibpath_var=no
7337         runpath_var=LD_RUN_PATH
7338         hardcode_runpath_var=yes
7339         ld_shlibs=yes
7340       fi
7341       ;;
7342
7343     sysv4.2uw2*)
7344       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7345       hardcode_direct=yes
7346       hardcode_minus_L=no
7347       hardcode_shlibpath_var=no
7348       hardcode_runpath_var=yes
7349       runpath_var=LD_RUN_PATH
7350       ;;
7351
7352    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7353       no_undefined_flag='${wl}-z ${wl}text'
7354       if test "$GCC" = yes; then
7355         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7356       else
7357         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7358       fi
7359       runpath_var='LD_RUN_PATH'
7360       hardcode_shlibpath_var=no
7361       ;;
7362
7363     sysv5*)
7364       no_undefined_flag=' -z text'
7365       # $CC -shared without GNU ld will not create a library from C++
7366       # object files and a static libstdc++, better avoid it by now
7367       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7368       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7369                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7370       hardcode_libdir_flag_spec=
7371       hardcode_shlibpath_var=no
7372       runpath_var='LD_RUN_PATH'
7373       ;;
7374
7375     uts4*)
7376       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7377       hardcode_libdir_flag_spec='-L$libdir'
7378       hardcode_shlibpath_var=no
7379       ;;
7380
7381     *)
7382       ld_shlibs=no
7383       ;;
7384     esac
7385   fi
7386
7387 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7388 echo "${ECHO_T}$ld_shlibs" >&6
7389 test "$ld_shlibs" = no && can_build_shared=no
7390
7391 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7392 if test "$GCC" = yes; then
7393   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7394 fi
7395
7396 #
7397 # Do we need to explicitly link libc?
7398 #
7399 case "x$archive_cmds_need_lc" in
7400 x|xyes)
7401   # Assume -lc should be added
7402   archive_cmds_need_lc=yes
7403
7404   if test "$enable_shared" = yes && test "$GCC" = yes; then
7405     case $archive_cmds in
7406     *'~'*)
7407       # FIXME: we may have to deal with multi-command sequences.
7408       ;;
7409     '$CC '*)
7410       # Test whether the compiler implicitly links with -lc since on some
7411       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7412       # to ld, don't add -lc before -lgcc.
7413       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7414 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7415       $rm conftest*
7416       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7417
7418       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7419   (eval $ac_compile) 2>&5
7420   ac_status=$?
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); } 2>conftest.err; then
7423         soname=conftest
7424         lib=conftest
7425         libobjs=conftest.$ac_objext
7426         deplibs=
7427         wl=$lt_prog_compiler_wl
7428         compiler_flags=-v
7429         linker_flags=-v
7430         verstring=
7431         output_objdir=.
7432         libname=conftest
7433         lt_save_allow_undefined_flag=$allow_undefined_flag
7434         allow_undefined_flag=
7435         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7436   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7437   ac_status=$?
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); }
7440         then
7441           archive_cmds_need_lc=no
7442         else
7443           archive_cmds_need_lc=yes
7444         fi
7445         allow_undefined_flag=$lt_save_allow_undefined_flag
7446       else
7447         cat conftest.err 1>&5
7448       fi
7449       $rm conftest*
7450       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7451 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7452       ;;
7453     esac
7454   fi
7455   ;;
7456 esac
7457
7458 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7459 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7460 library_names_spec=
7461 libname_spec='lib$name'
7462 soname_spec=
7463 shrext=".so"
7464 postinstall_cmds=
7465 postuninstall_cmds=
7466 finish_cmds=
7467 finish_eval=
7468 shlibpath_var=
7469 shlibpath_overrides_runpath=unknown
7470 version_type=none
7471 dynamic_linker="$host_os ld.so"
7472 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7473 if test "$GCC" = yes; then
7474   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7475   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7476     # if the path contains ";" then we assume it to be the separator
7477     # otherwise default to the standard path separator (i.e. ":") - it is
7478     # assumed that no part of a normal pathname contains ";" but that should
7479     # okay in the real world where ";" in dirpaths is itself problematic.
7480     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7481   else
7482     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7483   fi
7484 else
7485   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7486 fi
7487 need_lib_prefix=unknown
7488 hardcode_into_libs=no
7489
7490 # when you set need_version to no, make sure it does not cause -set_version
7491 # flags to be left without arguments
7492 need_version=unknown
7493
7494 case $host_os in
7495 aix3*)
7496   version_type=linux
7497   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7498   shlibpath_var=LIBPATH
7499
7500   # AIX 3 has no versioning support, so we append a major version to the name.
7501   soname_spec='${libname}${release}${shared_ext}$major'
7502   ;;
7503
7504 aix4* | aix5*)
7505   version_type=linux
7506   need_lib_prefix=no
7507   need_version=no
7508   hardcode_into_libs=yes
7509   if test "$host_cpu" = ia64; then
7510     # AIX 5 supports IA64
7511     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7512     shlibpath_var=LD_LIBRARY_PATH
7513   else
7514     # With GCC up to 2.95.x, collect2 would create an import file
7515     # for dependence libraries.  The import file would start with
7516     # the line `#! .'.  This would cause the generated library to
7517     # depend on `.', always an invalid library.  This was fixed in
7518     # development snapshots of GCC prior to 3.0.
7519     case $host_os in
7520       aix4 | aix4.[01] | aix4.[01].*)
7521       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7522            echo ' yes '
7523            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7524         :
7525       else
7526         can_build_shared=no
7527       fi
7528       ;;
7529     esac
7530     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7531     # soname into executable. Probably we can add versioning support to
7532     # collect2, so additional links can be useful in future.
7533     if test "$aix_use_runtimelinking" = yes; then
7534       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7535       # instead of lib<name>.a to let people know that these are not
7536       # typical AIX shared libraries.
7537       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7538     else
7539       # We preserve .a as extension for shared libraries through AIX4.2
7540       # and later when we are not doing run time linking.
7541       library_names_spec='${libname}${release}.a $libname.a'
7542       soname_spec='${libname}${release}${shared_ext}$major'
7543     fi
7544     shlibpath_var=LIBPATH
7545   fi
7546   ;;
7547
7548 amigaos*)
7549   library_names_spec='$libname.ixlibrary $libname.a'
7550   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7551   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'
7552   ;;
7553
7554 beos*)
7555   library_names_spec='${libname}${shared_ext}'
7556   dynamic_linker="$host_os ld.so"
7557   shlibpath_var=LIBRARY_PATH
7558   ;;
7559
7560 bsdi4*)
7561   version_type=linux
7562   need_version=no
7563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7564   soname_spec='${libname}${release}${shared_ext}$major'
7565   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7566   shlibpath_var=LD_LIBRARY_PATH
7567   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7568   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7569   # the default ld.so.conf also contains /usr/contrib/lib and
7570   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7571   # libtool to hard-code these into programs
7572   ;;
7573
7574 cygwin* | mingw* | pw32*)
7575   version_type=windows
7576   shrext=".dll"
7577   need_version=no
7578   need_lib_prefix=no
7579
7580   case $GCC,$host_os in
7581   yes,cygwin* | yes,mingw* | yes,pw32*)
7582     library_names_spec='$libname.dll.a'
7583     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7584     postinstall_cmds='base_file=`basename \${file}`~
7585       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7586       dldir=$destdir/`dirname \$dlpath`~
7587       test -d \$dldir || mkdir -p \$dldir~
7588       $install_prog $dir/$dlname \$dldir/$dlname'
7589     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7590       dlpath=$dir/\$dldll~
7591        $rm \$dlpath'
7592     shlibpath_overrides_runpath=yes
7593
7594     case $host_os in
7595     cygwin*)
7596       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7597       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7598       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7599       ;;
7600     mingw*)
7601       # MinGW DLLs use traditional 'lib' prefix
7602       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7603       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7604       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7605         # It is most probably a Windows format PATH printed by
7606         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7607         # path with ; separators, and with drive letters. We can handle the
7608         # drive letters (cygwin fileutils understands them), so leave them,
7609         # especially as we might pass files found there to a mingw objdump,
7610         # which wouldn't understand a cygwinified path. Ahh.
7611         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7612       else
7613         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7614       fi
7615       ;;
7616     pw32*)
7617       # pw32 DLLs use 'pw' prefix rather than 'lib'
7618       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7619       ;;
7620     esac
7621     ;;
7622
7623   *)
7624     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7625     ;;
7626   esac
7627   dynamic_linker='Win32 ld.exe'
7628   # FIXME: first we should search . and the directory the executable is in
7629   shlibpath_var=PATH
7630   ;;
7631
7632 darwin* | rhapsody*)
7633   dynamic_linker="$host_os dyld"
7634   version_type=darwin
7635   need_lib_prefix=no
7636   need_version=no
7637   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7638   soname_spec='${libname}${release}${major}$shared_ext'
7639   shlibpath_overrides_runpath=yes
7640   shlibpath_var=DYLD_LIBRARY_PATH
7641   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7642   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7643   if test "$GCC" = yes; then
7644     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"`
7645   else
7646     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7647   fi
7648   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7649   ;;
7650
7651 dgux*)
7652   version_type=linux
7653   need_lib_prefix=no
7654   need_version=no
7655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7656   soname_spec='${libname}${release}${shared_ext}$major'
7657   shlibpath_var=LD_LIBRARY_PATH
7658   ;;
7659
7660 freebsd1*)
7661   dynamic_linker=no
7662   ;;
7663
7664 kfreebsd*-gnu)
7665   version_type=linux
7666   need_lib_prefix=no
7667   need_version=no
7668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7669   soname_spec='${libname}${release}${shared_ext}$major'
7670   shlibpath_var=LD_LIBRARY_PATH
7671   shlibpath_overrides_runpath=no
7672   hardcode_into_libs=yes
7673   dynamic_linker='GNU ld.so'
7674   ;;
7675
7676 freebsd*)
7677   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7678   version_type=freebsd-$objformat
7679   case $version_type in
7680     freebsd-elf*)
7681       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7682       need_version=no
7683       need_lib_prefix=no
7684       ;;
7685     freebsd-*)
7686       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7687       need_version=yes
7688       ;;
7689   esac
7690   shlibpath_var=LD_LIBRARY_PATH
7691   case $host_os in
7692   freebsd2*)
7693     shlibpath_overrides_runpath=yes
7694     ;;
7695   freebsd3.01* | freebsdelf3.01*)
7696     shlibpath_overrides_runpath=yes
7697     hardcode_into_libs=yes
7698     ;;
7699   *) # from 3.2 on
7700     shlibpath_overrides_runpath=no
7701     hardcode_into_libs=yes
7702     ;;
7703   esac
7704   ;;
7705
7706 gnu*)
7707   version_type=linux
7708   need_lib_prefix=no
7709   need_version=no
7710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7711   soname_spec='${libname}${release}${shared_ext}$major'
7712   shlibpath_var=LD_LIBRARY_PATH
7713   hardcode_into_libs=yes
7714   ;;
7715
7716 hpux9* | hpux10* | hpux11*)
7717   # Give a soname corresponding to the major version so that dld.sl refuses to
7718   # link against other versions.
7719   version_type=sunos
7720   need_lib_prefix=no
7721   need_version=no
7722   case "$host_cpu" in
7723   ia64*)
7724     shrext='.so'
7725     hardcode_into_libs=yes
7726     dynamic_linker="$host_os dld.so"
7727     shlibpath_var=LD_LIBRARY_PATH
7728     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7730     soname_spec='${libname}${release}${shared_ext}$major'
7731     if test "X$HPUX_IA64_MODE" = X32; then
7732       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7733     else
7734       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7735     fi
7736     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7737     ;;
7738    hppa*64*)
7739      shrext='.sl'
7740      hardcode_into_libs=yes
7741      dynamic_linker="$host_os dld.sl"
7742      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7743      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7744      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7745      soname_spec='${libname}${release}${shared_ext}$major'
7746      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7747      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7748      ;;
7749    *)
7750     shrext='.sl'
7751     dynamic_linker="$host_os dld.sl"
7752     shlibpath_var=SHLIB_PATH
7753     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7755     soname_spec='${libname}${release}${shared_ext}$major'
7756     ;;
7757   esac
7758   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7759   postinstall_cmds='chmod 555 $lib'
7760   ;;
7761
7762 irix5* | irix6* | nonstopux*)
7763   case $host_os in
7764     nonstopux*) version_type=nonstopux ;;
7765     *)
7766         if test "$lt_cv_prog_gnu_ld" = yes; then
7767                 version_type=linux
7768         else
7769                 version_type=irix
7770         fi ;;
7771   esac
7772   need_lib_prefix=no
7773   need_version=no
7774   soname_spec='${libname}${release}${shared_ext}$major'
7775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7776   case $host_os in
7777   irix5* | nonstopux*)
7778     libsuff= shlibsuff=
7779     ;;
7780   *)
7781     case $LD in # libtool.m4 will add one of these switches to LD
7782     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7783       libsuff= shlibsuff= libmagic=32-bit;;
7784     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7785       libsuff=32 shlibsuff=N32 libmagic=N32;;
7786     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7787       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7788     *) libsuff= shlibsuff= libmagic=never-match;;
7789     esac
7790     ;;
7791   esac
7792   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7793   shlibpath_overrides_runpath=no
7794   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7795   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7796   hardcode_into_libs=yes
7797   ;;
7798
7799 # No shared lib support for Linux oldld, aout, or coff.
7800 linux*oldld* | linux*aout* | linux*coff*)
7801   dynamic_linker=no
7802   ;;
7803
7804 # This must be Linux ELF.
7805 linux*)
7806   version_type=linux
7807   need_lib_prefix=no
7808   need_version=no
7809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7810   soname_spec='${libname}${release}${shared_ext}$major'
7811   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7812   shlibpath_var=LD_LIBRARY_PATH
7813   shlibpath_overrides_runpath=no
7814   # This implies no fast_install, which is unacceptable.
7815   # Some rework will be needed to allow for fast_install
7816   # before this can be enabled.
7817   hardcode_into_libs=yes
7818
7819   # Append ld.so.conf contents to the search path
7820   if test -f /etc/ld.so.conf; then
7821     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7822     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7823   fi
7824
7825   # We used to test for /lib/ld.so.1 and disable shared libraries on
7826   # powerpc, because MkLinux only supported shared libraries with the
7827   # GNU dynamic linker.  Since this was broken with cross compilers,
7828   # most powerpc-linux boxes support dynamic linking these days and
7829   # people can always --disable-shared, the test was removed, and we
7830   # assume the GNU/Linux dynamic linker is in use.
7831   dynamic_linker='GNU/Linux ld.so'
7832   ;;
7833
7834 knetbsd*-gnu)
7835   version_type=linux
7836   need_lib_prefix=no
7837   need_version=no
7838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7839   soname_spec='${libname}${release}${shared_ext}$major'
7840   shlibpath_var=LD_LIBRARY_PATH
7841   shlibpath_overrides_runpath=no
7842   hardcode_into_libs=yes
7843   dynamic_linker='GNU ld.so'
7844   ;;
7845
7846 netbsd*)
7847   version_type=sunos
7848   need_lib_prefix=no
7849   need_version=no
7850   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7851     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7852     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7853     dynamic_linker='NetBSD (a.out) ld.so'
7854   else
7855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7856     soname_spec='${libname}${release}${shared_ext}$major'
7857     dynamic_linker='NetBSD ld.elf_so'
7858   fi
7859   shlibpath_var=LD_LIBRARY_PATH
7860   shlibpath_overrides_runpath=yes
7861   hardcode_into_libs=yes
7862   ;;
7863
7864 newsos6)
7865   version_type=linux
7866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7867   shlibpath_var=LD_LIBRARY_PATH
7868   shlibpath_overrides_runpath=yes
7869   ;;
7870
7871 nto-qnx*)
7872   version_type=linux
7873   need_lib_prefix=no
7874   need_version=no
7875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7876   soname_spec='${libname}${release}${shared_ext}$major'
7877   shlibpath_var=LD_LIBRARY_PATH
7878   shlibpath_overrides_runpath=yes
7879   ;;
7880
7881 openbsd*)
7882   version_type=sunos
7883   need_lib_prefix=no
7884   need_version=yes
7885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7886   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7887   shlibpath_var=LD_LIBRARY_PATH
7888   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7889     case $host_os in
7890       openbsd2.[89] | openbsd2.[89].*)
7891         shlibpath_overrides_runpath=no
7892         ;;
7893       *)
7894         shlibpath_overrides_runpath=yes
7895         ;;
7896       esac
7897   else
7898     shlibpath_overrides_runpath=yes
7899   fi
7900   ;;
7901
7902 os2*)
7903   libname_spec='$name'
7904   shrext=".dll"
7905   need_lib_prefix=no
7906   library_names_spec='$libname${shared_ext} $libname.a'
7907   dynamic_linker='OS/2 ld.exe'
7908   shlibpath_var=LIBPATH
7909   ;;
7910
7911 osf3* | osf4* | osf5*)
7912   version_type=osf
7913   need_lib_prefix=no
7914   need_version=no
7915   soname_spec='${libname}${release}${shared_ext}$major'
7916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7917   shlibpath_var=LD_LIBRARY_PATH
7918   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7919   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7920   ;;
7921
7922 sco3.2v5*)
7923   version_type=osf
7924   soname_spec='${libname}${release}${shared_ext}$major'
7925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7926   shlibpath_var=LD_LIBRARY_PATH
7927   ;;
7928
7929 solaris*)
7930   version_type=linux
7931   need_lib_prefix=no
7932   need_version=no
7933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7934   soname_spec='${libname}${release}${shared_ext}$major'
7935   shlibpath_var=LD_LIBRARY_PATH
7936   shlibpath_overrides_runpath=yes
7937   hardcode_into_libs=yes
7938   # ldd complains unless libraries are executable
7939   postinstall_cmds='chmod +x $lib'
7940   ;;
7941
7942 sunos4*)
7943   version_type=sunos
7944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7945   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7946   shlibpath_var=LD_LIBRARY_PATH
7947   shlibpath_overrides_runpath=yes
7948   if test "$with_gnu_ld" = yes; then
7949     need_lib_prefix=no
7950   fi
7951   need_version=yes
7952   ;;
7953
7954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7955   version_type=linux
7956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7957   soname_spec='${libname}${release}${shared_ext}$major'
7958   shlibpath_var=LD_LIBRARY_PATH
7959   case $host_vendor in
7960     sni)
7961       shlibpath_overrides_runpath=no
7962       need_lib_prefix=no
7963       export_dynamic_flag_spec='${wl}-Blargedynsym'
7964       runpath_var=LD_RUN_PATH
7965       ;;
7966     siemens)
7967       need_lib_prefix=no
7968       ;;
7969     motorola)
7970       need_lib_prefix=no
7971       need_version=no
7972       shlibpath_overrides_runpath=no
7973       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7974       ;;
7975   esac
7976   ;;
7977
7978 sysv4*MP*)
7979   if test -d /usr/nec ;then
7980     version_type=linux
7981     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7982     soname_spec='$libname${shared_ext}.$major'
7983     shlibpath_var=LD_LIBRARY_PATH
7984   fi
7985   ;;
7986
7987 uts4*)
7988   version_type=linux
7989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990   soname_spec='${libname}${release}${shared_ext}$major'
7991   shlibpath_var=LD_LIBRARY_PATH
7992   ;;
7993
7994 *)
7995   dynamic_linker=no
7996   ;;
7997 esac
7998 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7999 echo "${ECHO_T}$dynamic_linker" >&6
8000 test "$dynamic_linker" = no && can_build_shared=no
8001
8002 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8003 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8004 hardcode_action=
8005 if test -n "$hardcode_libdir_flag_spec" || \
8006    test -n "$runpath_var " || \
8007    test "X$hardcode_automatic"="Xyes" ; then
8008
8009   # We can hardcode non-existant directories.
8010   if test "$hardcode_direct" != no &&
8011      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8012      # have to relink, otherwise we might link with an installed library
8013      # when we should be linking with a yet-to-be-installed one
8014      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8015      test "$hardcode_minus_L" != no; then
8016     # Linking always hardcodes the temporary library directory.
8017     hardcode_action=relink
8018   else
8019     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8020     hardcode_action=immediate
8021   fi
8022 else
8023   # We cannot hardcode anything, or else we can only hardcode existing
8024   # directories.
8025   hardcode_action=unsupported
8026 fi
8027 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8028 echo "${ECHO_T}$hardcode_action" >&6
8029
8030 if test "$hardcode_action" = relink; then
8031   # Fast installation is not supported
8032   enable_fast_install=no
8033 elif test "$shlibpath_overrides_runpath" = yes ||
8034      test "$enable_shared" = no; then
8035   # Fast installation is not necessary
8036   enable_fast_install=needless
8037 fi
8038
8039 striplib=
8040 old_striplib=
8041 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8042 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8043 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8044   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8045   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8046   echo "$as_me:$LINENO: result: yes" >&5
8047 echo "${ECHO_T}yes" >&6
8048 else
8049 # FIXME - insert some real tests, host_os isn't really good enough
8050   case $host_os in
8051    darwin*)
8052        if test -n "$STRIP" ; then
8053          striplib="$STRIP -x"
8054          echo "$as_me:$LINENO: result: yes" >&5
8055 echo "${ECHO_T}yes" >&6
8056        else
8057   echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6
8059 fi
8060        ;;
8061    *)
8062   echo "$as_me:$LINENO: result: no" >&5
8063 echo "${ECHO_T}no" >&6
8064     ;;
8065   esac
8066 fi
8067
8068 if test "x$enable_dlopen" != xyes; then
8069   enable_dlopen=unknown
8070   enable_dlopen_self=unknown
8071   enable_dlopen_self_static=unknown
8072 else
8073   lt_cv_dlopen=no
8074   lt_cv_dlopen_libs=
8075
8076   case $host_os in
8077   beos*)
8078     lt_cv_dlopen="load_add_on"
8079     lt_cv_dlopen_libs=
8080     lt_cv_dlopen_self=yes
8081     ;;
8082
8083   mingw* | pw32*)
8084     lt_cv_dlopen="LoadLibrary"
8085     lt_cv_dlopen_libs=
8086    ;;
8087
8088   cygwin*)
8089     lt_cv_dlopen="dlopen"
8090     lt_cv_dlopen_libs=
8091    ;;
8092
8093   darwin*)
8094   # if libdl is installed we need to link against it
8095     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8096 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8097 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   ac_check_lib_save_LIBS=$LIBS
8101 LIBS="-ldl  $LIBS"
8102 cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h.  */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h.  */
8108
8109 /* Override any gcc2 internal prototype to avoid an error.  */
8110 #ifdef __cplusplus
8111 extern "C"
8112 #endif
8113 /* We use char because int might match the return type of a gcc2
8114    builtin and then its argument prototype would still apply.  */
8115 char dlopen ();
8116 int
8117 main ()
8118 {
8119 dlopen ();
8120   ;
8121   return 0;
8122 }
8123 _ACEOF
8124 rm -f conftest.$ac_objext conftest$ac_exeext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8126   (eval $ac_link) 2>conftest.er1
8127   ac_status=$?
8128   grep -v '^ *+' conftest.er1 >conftest.err
8129   rm -f conftest.er1
8130   cat conftest.err >&5
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } &&
8133          { ac_try='test -z "$ac_c_werror_flag"
8134                          || test ! -s conftest.err'
8135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136   (eval $ac_try) 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; } &&
8140          { ac_try='test -s conftest$ac_exeext'
8141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142   (eval $ac_try) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); }; }; then
8146   ac_cv_lib_dl_dlopen=yes
8147 else
8148   echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 ac_cv_lib_dl_dlopen=no
8152 fi
8153 rm -f conftest.err conftest.$ac_objext \
8154       conftest$ac_exeext conftest.$ac_ext
8155 LIBS=$ac_check_lib_save_LIBS
8156 fi
8157 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8158 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8159 if test $ac_cv_lib_dl_dlopen = yes; then
8160   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8161 else
8162
8163     lt_cv_dlopen="dyld"
8164     lt_cv_dlopen_libs=
8165     lt_cv_dlopen_self=yes
8166
8167 fi
8168
8169    ;;
8170
8171   *)
8172     echo "$as_me:$LINENO: checking for shl_load" >&5
8173 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8174 if test "${ac_cv_func_shl_load+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h.  */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h.  */
8183 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8185 #define shl_load innocuous_shl_load
8186
8187 /* System header to define __stub macros and hopefully few prototypes,
8188     which can conflict with char shl_load (); below.
8189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8190     <limits.h> exists even on freestanding compilers.  */
8191
8192 #ifdef __STDC__
8193 # include <limits.h>
8194 #else
8195 # include <assert.h>
8196 #endif
8197
8198 #undef shl_load
8199
8200 /* Override any gcc2 internal prototype to avoid an error.  */
8201 #ifdef __cplusplus
8202 extern "C"
8203 {
8204 #endif
8205 /* We use char because int might match the return type of a gcc2
8206    builtin and then its argument prototype would still apply.  */
8207 char shl_load ();
8208 /* The GNU C library defines this for functions which it implements
8209     to always fail with ENOSYS.  Some functions are actually named
8210     something starting with __ and the normal name is an alias.  */
8211 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8212 choke me
8213 #else
8214 char (*f) () = shl_load;
8215 #endif
8216 #ifdef __cplusplus
8217 }
8218 #endif
8219
8220 int
8221 main ()
8222 {
8223 return f != shl_load;
8224   ;
8225   return 0;
8226 }
8227 _ACEOF
8228 rm -f conftest.$ac_objext conftest$ac_exeext
8229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8230   (eval $ac_link) 2>conftest.er1
8231   ac_status=$?
8232   grep -v '^ *+' conftest.er1 >conftest.err
8233   rm -f conftest.er1
8234   cat conftest.err >&5
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); } &&
8237          { ac_try='test -z "$ac_c_werror_flag"
8238                          || test ! -s conftest.err'
8239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240   (eval $ac_try) 2>&5
8241   ac_status=$?
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); }; } &&
8244          { ac_try='test -s conftest$ac_exeext'
8245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246   (eval $ac_try) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; }; then
8250   ac_cv_func_shl_load=yes
8251 else
8252   echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 ac_cv_func_shl_load=no
8256 fi
8257 rm -f conftest.err conftest.$ac_objext \
8258       conftest$ac_exeext conftest.$ac_ext
8259 fi
8260 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8261 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8262 if test $ac_cv_func_shl_load = yes; then
8263   lt_cv_dlopen="shl_load"
8264 else
8265   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8266 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8267 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8268   echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270   ac_check_lib_save_LIBS=$LIBS
8271 LIBS="-ldld  $LIBS"
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278
8279 /* Override any gcc2 internal prototype to avoid an error.  */
8280 #ifdef __cplusplus
8281 extern "C"
8282 #endif
8283 /* We use char because int might match the return type of a gcc2
8284    builtin and then its argument prototype would still apply.  */
8285 char shl_load ();
8286 int
8287 main ()
8288 {
8289 shl_load ();
8290   ;
8291   return 0;
8292 }
8293 _ACEOF
8294 rm -f conftest.$ac_objext conftest$ac_exeext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8296   (eval $ac_link) 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } &&
8303          { ac_try='test -z "$ac_c_werror_flag"
8304                          || test ! -s conftest.err'
8305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306   (eval $ac_try) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; } &&
8310          { ac_try='test -s conftest$ac_exeext'
8311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312   (eval $ac_try) 2>&5
8313   ac_status=$?
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); }; }; then
8316   ac_cv_lib_dld_shl_load=yes
8317 else
8318   echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8320
8321 ac_cv_lib_dld_shl_load=no
8322 fi
8323 rm -f conftest.err conftest.$ac_objext \
8324       conftest$ac_exeext conftest.$ac_ext
8325 LIBS=$ac_check_lib_save_LIBS
8326 fi
8327 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8328 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8329 if test $ac_cv_lib_dld_shl_load = yes; then
8330   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8331 else
8332   echo "$as_me:$LINENO: checking for dlopen" >&5
8333 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8334 if test "${ac_cv_func_dlopen+set}" = set; then
8335   echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337   cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h.  */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h.  */
8343 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8345 #define dlopen innocuous_dlopen
8346
8347 /* System header to define __stub macros and hopefully few prototypes,
8348     which can conflict with char dlopen (); below.
8349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8350     <limits.h> exists even on freestanding compilers.  */
8351
8352 #ifdef __STDC__
8353 # include <limits.h>
8354 #else
8355 # include <assert.h>
8356 #endif
8357
8358 #undef dlopen
8359
8360 /* Override any gcc2 internal prototype to avoid an error.  */
8361 #ifdef __cplusplus
8362 extern "C"
8363 {
8364 #endif
8365 /* We use char because int might match the return type of a gcc2
8366    builtin and then its argument prototype would still apply.  */
8367 char dlopen ();
8368 /* The GNU C library defines this for functions which it implements
8369     to always fail with ENOSYS.  Some functions are actually named
8370     something starting with __ and the normal name is an alias.  */
8371 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8372 choke me
8373 #else
8374 char (*f) () = dlopen;
8375 #endif
8376 #ifdef __cplusplus
8377 }
8378 #endif
8379
8380 int
8381 main ()
8382 {
8383 return f != dlopen;
8384   ;
8385   return 0;
8386 }
8387 _ACEOF
8388 rm -f conftest.$ac_objext conftest$ac_exeext
8389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8390   (eval $ac_link) 2>conftest.er1
8391   ac_status=$?
8392   grep -v '^ *+' conftest.er1 >conftest.err
8393   rm -f conftest.er1
8394   cat conftest.err >&5
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); } &&
8397          { ac_try='test -z "$ac_c_werror_flag"
8398                          || test ! -s conftest.err'
8399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400   (eval $ac_try) 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); }; } &&
8404          { ac_try='test -s conftest$ac_exeext'
8405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406   (eval $ac_try) 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }; }; then
8410   ac_cv_func_dlopen=yes
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415 ac_cv_func_dlopen=no
8416 fi
8417 rm -f conftest.err conftest.$ac_objext \
8418       conftest$ac_exeext conftest.$ac_ext
8419 fi
8420 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8421 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8422 if test $ac_cv_func_dlopen = yes; then
8423   lt_cv_dlopen="dlopen"
8424 else
8425   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8426 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8427 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8428   echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430   ac_check_lib_save_LIBS=$LIBS
8431 LIBS="-ldl  $LIBS"
8432 cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h.  */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h.  */
8438
8439 /* Override any gcc2 internal prototype to avoid an error.  */
8440 #ifdef __cplusplus
8441 extern "C"
8442 #endif
8443 /* We use char because int might match the return type of a gcc2
8444    builtin and then its argument prototype would still apply.  */
8445 char dlopen ();
8446 int
8447 main ()
8448 {
8449 dlopen ();
8450   ;
8451   return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456   (eval $ac_link) 2>conftest.er1
8457   ac_status=$?
8458   grep -v '^ *+' conftest.er1 >conftest.err
8459   rm -f conftest.er1
8460   cat conftest.err >&5
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); } &&
8463          { ac_try='test -z "$ac_c_werror_flag"
8464                          || test ! -s conftest.err'
8465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466   (eval $ac_try) 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; } &&
8470          { ac_try='test -s conftest$ac_exeext'
8471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472   (eval $ac_try) 2>&5
8473   ac_status=$?
8474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); }; }; then
8476   ac_cv_lib_dl_dlopen=yes
8477 else
8478   echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481 ac_cv_lib_dl_dlopen=no
8482 fi
8483 rm -f conftest.err conftest.$ac_objext \
8484       conftest$ac_exeext conftest.$ac_ext
8485 LIBS=$ac_check_lib_save_LIBS
8486 fi
8487 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8488 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8489 if test $ac_cv_lib_dl_dlopen = yes; then
8490   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8491 else
8492   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8493 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8494 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8495   echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497   ac_check_lib_save_LIBS=$LIBS
8498 LIBS="-lsvld  $LIBS"
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h.  */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h.  */
8505
8506 /* Override any gcc2 internal prototype to avoid an error.  */
8507 #ifdef __cplusplus
8508 extern "C"
8509 #endif
8510 /* We use char because int might match the return type of a gcc2
8511    builtin and then its argument prototype would still apply.  */
8512 char dlopen ();
8513 int
8514 main ()
8515 {
8516 dlopen ();
8517   ;
8518   return 0;
8519 }
8520 _ACEOF
8521 rm -f conftest.$ac_objext conftest$ac_exeext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8523   (eval $ac_link) 2>conftest.er1
8524   ac_status=$?
8525   grep -v '^ *+' conftest.er1 >conftest.err
8526   rm -f conftest.er1
8527   cat conftest.err >&5
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); } &&
8530          { ac_try='test -z "$ac_c_werror_flag"
8531                          || test ! -s conftest.err'
8532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533   (eval $ac_try) 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; } &&
8537          { ac_try='test -s conftest$ac_exeext'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; }; then
8543   ac_cv_lib_svld_dlopen=yes
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548 ac_cv_lib_svld_dlopen=no
8549 fi
8550 rm -f conftest.err conftest.$ac_objext \
8551       conftest$ac_exeext conftest.$ac_ext
8552 LIBS=$ac_check_lib_save_LIBS
8553 fi
8554 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8555 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8556 if test $ac_cv_lib_svld_dlopen = yes; then
8557   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8558 else
8559   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8560 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8561 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8562   echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564   ac_check_lib_save_LIBS=$LIBS
8565 LIBS="-ldld  $LIBS"
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h.  */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h.  */
8572
8573 /* Override any gcc2 internal prototype to avoid an error.  */
8574 #ifdef __cplusplus
8575 extern "C"
8576 #endif
8577 /* We use char because int might match the return type of a gcc2
8578    builtin and then its argument prototype would still apply.  */
8579 char dld_link ();
8580 int
8581 main ()
8582 {
8583 dld_link ();
8584   ;
8585   return 0;
8586 }
8587 _ACEOF
8588 rm -f conftest.$ac_objext conftest$ac_exeext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8590   (eval $ac_link) 2>conftest.er1
8591   ac_status=$?
8592   grep -v '^ *+' conftest.er1 >conftest.err
8593   rm -f conftest.er1
8594   cat conftest.err >&5
8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596   (exit $ac_status); } &&
8597          { ac_try='test -z "$ac_c_werror_flag"
8598                          || test ! -s conftest.err'
8599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600   (eval $ac_try) 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }; } &&
8604          { ac_try='test -s conftest$ac_exeext'
8605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606   (eval $ac_try) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); }; }; then
8610   ac_cv_lib_dld_dld_link=yes
8611 else
8612   echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8614
8615 ac_cv_lib_dld_dld_link=no
8616 fi
8617 rm -f conftest.err conftest.$ac_objext \
8618       conftest$ac_exeext conftest.$ac_ext
8619 LIBS=$ac_check_lib_save_LIBS
8620 fi
8621 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8622 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8623 if test $ac_cv_lib_dld_dld_link = yes; then
8624   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8625 fi
8626
8627
8628 fi
8629
8630
8631 fi
8632
8633
8634 fi
8635
8636
8637 fi
8638
8639
8640 fi
8641
8642     ;;
8643   esac
8644
8645   if test "x$lt_cv_dlopen" != xno; then
8646     enable_dlopen=yes
8647   else
8648     enable_dlopen=no
8649   fi
8650
8651   case $lt_cv_dlopen in
8652   dlopen)
8653     save_CPPFLAGS="$CPPFLAGS"
8654     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8655
8656     save_LDFLAGS="$LDFLAGS"
8657     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8658
8659     save_LIBS="$LIBS"
8660     LIBS="$lt_cv_dlopen_libs $LIBS"
8661
8662     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8663 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8664 if test "${lt_cv_dlopen_self+set}" = set; then
8665   echo $ECHO_N "(cached) $ECHO_C" >&6
8666 else
8667           if test "$cross_compiling" = yes; then :
8668   lt_cv_dlopen_self=cross
8669 else
8670   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8671   lt_status=$lt_dlunknown
8672   cat > conftest.$ac_ext <<EOF
8673 #line 8673 "configure"
8674 #include "confdefs.h"
8675
8676 #if HAVE_DLFCN_H
8677 #include <dlfcn.h>
8678 #endif
8679
8680 #include <stdio.h>
8681
8682 #ifdef RTLD_GLOBAL
8683 #  define LT_DLGLOBAL           RTLD_GLOBAL
8684 #else
8685 #  ifdef DL_GLOBAL
8686 #    define LT_DLGLOBAL         DL_GLOBAL
8687 #  else
8688 #    define LT_DLGLOBAL         0
8689 #  endif
8690 #endif
8691
8692 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8693    find out it does not work in some platform. */
8694 #ifndef LT_DLLAZY_OR_NOW
8695 #  ifdef RTLD_LAZY
8696 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8697 #  else
8698 #    ifdef DL_LAZY
8699 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8700 #    else
8701 #      ifdef RTLD_NOW
8702 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8703 #      else
8704 #        ifdef DL_NOW
8705 #          define LT_DLLAZY_OR_NOW      DL_NOW
8706 #        else
8707 #          define LT_DLLAZY_OR_NOW      0
8708 #        endif
8709 #      endif
8710 #    endif
8711 #  endif
8712 #endif
8713
8714 #ifdef __cplusplus
8715 extern "C" void exit (int);
8716 #endif
8717
8718 void fnord() { int i=42;}
8719 int main ()
8720 {
8721   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8722   int status = $lt_dlunknown;
8723
8724   if (self)
8725     {
8726       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8727       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8728       /* dlclose (self); */
8729     }
8730
8731     exit (status);
8732 }
8733 EOF
8734   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8735   (eval $ac_link) 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8739     (./conftest; exit; ) 2>/dev/null
8740     lt_status=$?
8741     case x$lt_status in
8742       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8743       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8744       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8745     esac
8746   else :
8747     # compilation failed
8748     lt_cv_dlopen_self=no
8749   fi
8750 fi
8751 rm -fr conftest*
8752
8753
8754 fi
8755 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8756 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8757
8758     if test "x$lt_cv_dlopen_self" = xyes; then
8759       LDFLAGS="$LDFLAGS $link_static_flag"
8760       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8761 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8762 if test "${lt_cv_dlopen_self_static+set}" = set; then
8763   echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765           if test "$cross_compiling" = yes; then :
8766   lt_cv_dlopen_self_static=cross
8767 else
8768   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8769   lt_status=$lt_dlunknown
8770   cat > conftest.$ac_ext <<EOF
8771 #line 8771 "configure"
8772 #include "confdefs.h"
8773
8774 #if HAVE_DLFCN_H
8775 #include <dlfcn.h>
8776 #endif
8777
8778 #include <stdio.h>
8779
8780 #ifdef RTLD_GLOBAL
8781 #  define LT_DLGLOBAL           RTLD_GLOBAL
8782 #else
8783 #  ifdef DL_GLOBAL
8784 #    define LT_DLGLOBAL         DL_GLOBAL
8785 #  else
8786 #    define LT_DLGLOBAL         0
8787 #  endif
8788 #endif
8789
8790 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8791    find out it does not work in some platform. */
8792 #ifndef LT_DLLAZY_OR_NOW
8793 #  ifdef RTLD_LAZY
8794 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8795 #  else
8796 #    ifdef DL_LAZY
8797 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8798 #    else
8799 #      ifdef RTLD_NOW
8800 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8801 #      else
8802 #        ifdef DL_NOW
8803 #          define LT_DLLAZY_OR_NOW      DL_NOW
8804 #        else
8805 #          define LT_DLLAZY_OR_NOW      0
8806 #        endif
8807 #      endif
8808 #    endif
8809 #  endif
8810 #endif
8811
8812 #ifdef __cplusplus
8813 extern "C" void exit (int);
8814 #endif
8815
8816 void fnord() { int i=42;}
8817 int main ()
8818 {
8819   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8820   int status = $lt_dlunknown;
8821
8822   if (self)
8823     {
8824       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8825       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8826       /* dlclose (self); */
8827     }
8828
8829     exit (status);
8830 }
8831 EOF
8832   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8833   (eval $ac_link) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8837     (./conftest; exit; ) 2>/dev/null
8838     lt_status=$?
8839     case x$lt_status in
8840       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8841       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8842       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8843     esac
8844   else :
8845     # compilation failed
8846     lt_cv_dlopen_self_static=no
8847   fi
8848 fi
8849 rm -fr conftest*
8850
8851
8852 fi
8853 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8854 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8855     fi
8856
8857     CPPFLAGS="$save_CPPFLAGS"
8858     LDFLAGS="$save_LDFLAGS"
8859     LIBS="$save_LIBS"
8860     ;;
8861   esac
8862
8863   case $lt_cv_dlopen_self in
8864   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8865   *) enable_dlopen_self=unknown ;;
8866   esac
8867
8868   case $lt_cv_dlopen_self_static in
8869   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8870   *) enable_dlopen_self_static=unknown ;;
8871   esac
8872 fi
8873
8874
8875 # Report which librarie types wil actually be built
8876 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8877 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8878 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8879 echo "${ECHO_T}$can_build_shared" >&6
8880
8881 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8882 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8883 test "$can_build_shared" = "no" && enable_shared=no
8884
8885 # On AIX, shared libraries and static libraries use the same namespace, and
8886 # are all built from PIC.
8887 case "$host_os" in
8888 aix3*)
8889   test "$enable_shared" = yes && enable_static=no
8890   if test -n "$RANLIB"; then
8891     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8892     postinstall_cmds='$RANLIB $lib'
8893   fi
8894   ;;
8895
8896 aix4*)
8897   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8898     test "$enable_shared" = yes && enable_static=no
8899   fi
8900   ;;
8901   darwin* | rhapsody*)
8902   if test "$GCC" = yes; then
8903     archive_cmds_need_lc=no
8904     case "$host_os" in
8905     rhapsody* | darwin1.[012])
8906       allow_undefined_flag='-undefined suppress'
8907       ;;
8908     *) # Darwin 1.3 on
8909       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8910         allow_undefined_flag='-flat_namespace -undefined suppress'
8911       else
8912         case ${MACOSX_DEPLOYMENT_TARGET} in
8913           10.[012])
8914             allow_undefined_flag='-flat_namespace -undefined suppress'
8915             ;;
8916           10.*)
8917             allow_undefined_flag='-undefined dynamic_lookup'
8918             ;;
8919         esac
8920       fi
8921       ;;
8922     esac
8923     output_verbose_link_cmd='echo'
8924     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8925     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8926     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8927     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}'
8928     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}'
8929     hardcode_direct=no
8930     hardcode_automatic=yes
8931     hardcode_shlibpath_var=unsupported
8932     whole_archive_flag_spec='-all_load $convenience'
8933     link_all_deplibs=yes
8934   else
8935     ld_shlibs=no
8936   fi
8937     ;;
8938 esac
8939 echo "$as_me:$LINENO: result: $enable_shared" >&5
8940 echo "${ECHO_T}$enable_shared" >&6
8941
8942 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8943 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8944 # Make sure either enable_shared or enable_static is yes.
8945 test "$enable_shared" = yes || enable_static=yes
8946 echo "$as_me:$LINENO: result: $enable_static" >&5
8947 echo "${ECHO_T}$enable_static" >&6
8948
8949 # The else clause should only fire when bootstrapping the
8950 # libtool distribution, otherwise you forgot to ship ltmain.sh
8951 # with your package, and you will get complaints that there are
8952 # no rules to generate ltmain.sh.
8953 if test -f "$ltmain"; then
8954   # See if we are running on zsh, and set the options which allow our commands through
8955   # without removal of \ escapes.
8956   if test -n "${ZSH_VERSION+set}" ; then
8957     setopt NO_GLOB_SUBST
8958   fi
8959   # Now quote all the things that may contain metacharacters while being
8960   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8961   # variables and quote the copies for generation of the libtool script.
8962   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8963     SED SHELL STRIP \
8964     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8965     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8966     deplibs_check_method reload_flag reload_cmds need_locks \
8967     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8968     lt_cv_sys_global_symbol_to_c_name_address \
8969     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8970     old_postinstall_cmds old_postuninstall_cmds \
8971     compiler \
8972     CC \
8973     LD \
8974     lt_prog_compiler_wl \
8975     lt_prog_compiler_pic \
8976     lt_prog_compiler_static \
8977     lt_prog_compiler_no_builtin_flag \
8978     export_dynamic_flag_spec \
8979     thread_safe_flag_spec \
8980     whole_archive_flag_spec \
8981     enable_shared_with_static_runtimes \
8982     old_archive_cmds \
8983     old_archive_from_new_cmds \
8984     predep_objects \
8985     postdep_objects \
8986     predeps \
8987     postdeps \
8988     compiler_lib_search_path \
8989     archive_cmds \
8990     archive_expsym_cmds \
8991     postinstall_cmds \
8992     postuninstall_cmds \
8993     old_archive_from_expsyms_cmds \
8994     allow_undefined_flag \
8995     no_undefined_flag \
8996     export_symbols_cmds \
8997     hardcode_libdir_flag_spec \
8998     hardcode_libdir_flag_spec_ld \
8999     hardcode_libdir_separator \
9000     hardcode_automatic \
9001     module_cmds \
9002     module_expsym_cmds \
9003     lt_cv_prog_compiler_c_o \
9004     exclude_expsyms \
9005     include_expsyms; do
9006
9007     case $var in
9008     old_archive_cmds | \
9009     old_archive_from_new_cmds | \
9010     archive_cmds | \
9011     archive_expsym_cmds | \
9012     module_cmds | \
9013     module_expsym_cmds | \
9014     old_archive_from_expsyms_cmds | \
9015     export_symbols_cmds | \
9016     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9017     postinstall_cmds | postuninstall_cmds | \
9018     old_postinstall_cmds | old_postuninstall_cmds | \
9019     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9020       # Double-quote double-evaled strings.
9021       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9022       ;;
9023     *)
9024       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9025       ;;
9026     esac
9027   done
9028
9029   case $lt_echo in
9030   *'\$0 --fallback-echo"')
9031     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9032     ;;
9033   esac
9034
9035 cfgfile="${ofile}T"
9036   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9037   $rm -f "$cfgfile"
9038   { echo "$as_me:$LINENO: creating $ofile" >&5
9039 echo "$as_me: creating $ofile" >&6;}
9040
9041   cat <<__EOF__ >> "$cfgfile"
9042 #! $SHELL
9043
9044 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9045 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9046 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9047 #
9048 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9049 # Free Software Foundation, Inc.
9050 #
9051 # This file is part of GNU Libtool:
9052 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9053 #
9054 # This program is free software; you can redistribute it and/or modify
9055 # it under the terms of the GNU General Public License as published by
9056 # the Free Software Foundation; either version 2 of the License, or
9057 # (at your option) any later version.
9058 #
9059 # This program is distributed in the hope that it will be useful, but
9060 # WITHOUT ANY WARRANTY; without even the implied warranty of
9061 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9062 # General Public License for more details.
9063 #
9064 # You should have received a copy of the GNU General Public License
9065 # along with this program; if not, write to the Free Software
9066 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9067 #
9068 # As a special exception to the GNU General Public License, if you
9069 # distribute this file as part of a program that contains a
9070 # configuration script generated by Autoconf, you may include it under
9071 # the same distribution terms that you use for the rest of that program.
9072
9073 # A sed program that does not truncate output.
9074 SED=$lt_SED
9075
9076 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9077 Xsed="$SED -e s/^X//"
9078
9079 # The HP-UX ksh and POSIX shell print the target directory to stdout
9080 # if CDPATH is set.
9081 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9082
9083 # The names of the tagged configurations supported by this script.
9084 available_tags=
9085
9086 # ### BEGIN LIBTOOL CONFIG
9087
9088 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9089
9090 # Shell to use when invoking shell scripts.
9091 SHELL=$lt_SHELL
9092
9093 # Whether or not to build shared libraries.
9094 build_libtool_libs=$enable_shared
9095
9096 # Whether or not to build static libraries.
9097 build_old_libs=$enable_static
9098
9099 # Whether or not to add -lc for building shared libraries.
9100 build_libtool_need_lc=$archive_cmds_need_lc
9101
9102 # Whether or not to disallow shared libs when runtime libs are static
9103 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9104
9105 # Whether or not to optimize for fast installation.
9106 fast_install=$enable_fast_install
9107
9108 # The host system.
9109 host_alias=$host_alias
9110 host=$host
9111
9112 # An echo program that does not interpret backslashes.
9113 echo=$lt_echo
9114
9115 # The archiver.
9116 AR=$lt_AR
9117 AR_FLAGS=$lt_AR_FLAGS
9118
9119 # A C compiler.
9120 LTCC=$lt_LTCC
9121
9122 # A language-specific compiler.
9123 CC=$lt_compiler
9124
9125 # Is the compiler the GNU C compiler?
9126 with_gcc=$GCC
9127
9128 # An ERE matcher.
9129 EGREP=$lt_EGREP
9130
9131 # The linker used to build libraries.
9132 LD=$lt_LD
9133
9134 # Whether we need hard or soft links.
9135 LN_S=$lt_LN_S
9136
9137 # A BSD-compatible nm program.
9138 NM=$lt_NM
9139
9140 # A symbol stripping program
9141 STRIP=$lt_STRIP
9142
9143 # Used to examine libraries when file_magic_cmd begins "file"
9144 MAGIC_CMD=$MAGIC_CMD
9145
9146 # Used on cygwin: DLL creation program.
9147 DLLTOOL="$DLLTOOL"
9148
9149 # Used on cygwin: object dumper.
9150 OBJDUMP="$OBJDUMP"
9151
9152 # Used on cygwin: assembler.
9153 AS="$AS"
9154
9155 # The name of the directory that contains temporary libtool files.
9156 objdir=$objdir
9157
9158 # How to create reloadable object files.
9159 reload_flag=$lt_reload_flag
9160 reload_cmds=$lt_reload_cmds
9161
9162 # How to pass a linker flag through the compiler.
9163 wl=$lt_lt_prog_compiler_wl
9164
9165 # Object file suffix (normally "o").
9166 objext="$ac_objext"
9167
9168 # Old archive suffix (normally "a").
9169 libext="$libext"
9170
9171 # Shared library suffix (normally ".so").
9172 shrext='$shrext'
9173
9174 # Executable file suffix (normally "").
9175 exeext="$exeext"
9176
9177 # Additional compiler flags for building library objects.
9178 pic_flag=$lt_lt_prog_compiler_pic
9179 pic_mode=$pic_mode
9180
9181 # What is the maximum length of a command?
9182 max_cmd_len=$lt_cv_sys_max_cmd_len
9183
9184 # Does compiler simultaneously support -c and -o options?
9185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9186
9187 # Must we lock files when doing compilation ?
9188 need_locks=$lt_need_locks
9189
9190 # Do we need the lib prefix for modules?
9191 need_lib_prefix=$need_lib_prefix
9192
9193 # Do we need a version for libraries?
9194 need_version=$need_version
9195
9196 # Whether dlopen is supported.
9197 dlopen_support=$enable_dlopen
9198
9199 # Whether dlopen of programs is supported.
9200 dlopen_self=$enable_dlopen_self
9201
9202 # Whether dlopen of statically linked programs is supported.
9203 dlopen_self_static=$enable_dlopen_self_static
9204
9205 # Compiler flag to prevent dynamic linking.
9206 link_static_flag=$lt_lt_prog_compiler_static
9207
9208 # Compiler flag to turn off builtin functions.
9209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9210
9211 # Compiler flag to allow reflexive dlopens.
9212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9213
9214 # Compiler flag to generate shared objects directly from archives.
9215 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9216
9217 # Compiler flag to generate thread-safe objects.
9218 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9219
9220 # Library versioning type.
9221 version_type=$version_type
9222
9223 # Format of library name prefix.
9224 libname_spec=$lt_libname_spec
9225
9226 # List of archive names.  First name is the real one, the rest are links.
9227 # The last name is the one that the linker finds with -lNAME.
9228 library_names_spec=$lt_library_names_spec
9229
9230 # The coded name of the library, if different from the real name.
9231 soname_spec=$lt_soname_spec
9232
9233 # Commands used to build and install an old-style archive.
9234 RANLIB=$lt_RANLIB
9235 old_archive_cmds=$lt_old_archive_cmds
9236 old_postinstall_cmds=$lt_old_postinstall_cmds
9237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9238
9239 # Create an old-style archive from a shared archive.
9240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9241
9242 # Create a temporary old-style archive to link instead of a shared archive.
9243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9244
9245 # Commands used to build and install a shared archive.
9246 archive_cmds=$lt_archive_cmds
9247 archive_expsym_cmds=$lt_archive_expsym_cmds
9248 postinstall_cmds=$lt_postinstall_cmds
9249 postuninstall_cmds=$lt_postuninstall_cmds
9250
9251 # Commands used to build a loadable module (assumed same as above if empty)
9252 module_cmds=$lt_module_cmds
9253 module_expsym_cmds=$lt_module_expsym_cmds
9254
9255 # Commands to strip libraries.
9256 old_striplib=$lt_old_striplib
9257 striplib=$lt_striplib
9258
9259 # Dependencies to place before the objects being linked to create a
9260 # shared library.
9261 predep_objects=$lt_predep_objects
9262
9263 # Dependencies to place after the objects being linked to create a
9264 # shared library.
9265 postdep_objects=$lt_postdep_objects
9266
9267 # Dependencies to place before the objects being linked to create a
9268 # shared library.
9269 predeps=$lt_predeps
9270
9271 # Dependencies to place after the objects being linked to create a
9272 # shared library.
9273 postdeps=$lt_postdeps
9274
9275 # The library search path used internally by the compiler when linking
9276 # a shared library.
9277 compiler_lib_search_path=$lt_compiler_lib_search_path
9278
9279 # Method to check whether dependent libraries are shared objects.
9280 deplibs_check_method=$lt_deplibs_check_method
9281
9282 # Command to use when deplibs_check_method == file_magic.
9283 file_magic_cmd=$lt_file_magic_cmd
9284
9285 # Flag that allows shared libraries with undefined symbols to be built.
9286 allow_undefined_flag=$lt_allow_undefined_flag
9287
9288 # Flag that forces no undefined symbols.
9289 no_undefined_flag=$lt_no_undefined_flag
9290
9291 # Commands used to finish a libtool library installation in a directory.
9292 finish_cmds=$lt_finish_cmds
9293
9294 # Same as above, but a single script fragment to be evaled but not shown.
9295 finish_eval=$lt_finish_eval
9296
9297 # Take the output of nm and produce a listing of raw symbols and C names.
9298 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9299
9300 # Transform the output of nm in a proper C declaration
9301 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9302
9303 # Transform the output of nm in a C name address pair
9304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9305
9306 # This is the shared library runtime path variable.
9307 runpath_var=$runpath_var
9308
9309 # This is the shared library path variable.
9310 shlibpath_var=$shlibpath_var
9311
9312 # Is shlibpath searched before the hard-coded library search path?
9313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9314
9315 # How to hardcode a shared library path into an executable.
9316 hardcode_action=$hardcode_action
9317
9318 # Whether we should hardcode library paths into libraries.
9319 hardcode_into_libs=$hardcode_into_libs
9320
9321 # Flag to hardcode \$libdir into a binary during linking.
9322 # This must work even if \$libdir does not exist.
9323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9324
9325 # If ld is used when linking, flag to hardcode \$libdir into
9326 # a binary during linking. This must work even if \$libdir does
9327 # not exist.
9328 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9329
9330 # Whether we need a single -rpath flag with a separated argument.
9331 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9332
9333 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9334 # resulting binary.
9335 hardcode_direct=$hardcode_direct
9336
9337 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9338 # resulting binary.
9339 hardcode_minus_L=$hardcode_minus_L
9340
9341 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9342 # the resulting binary.
9343 hardcode_shlibpath_var=$hardcode_shlibpath_var
9344
9345 # Set to yes if building a shared library automatically hardcodes DIR into the library
9346 # and all subsequent libraries and executables linked against it.
9347 hardcode_automatic=$hardcode_automatic
9348
9349 # Variables whose values should be saved in libtool wrapper scripts and
9350 # restored at relink time.
9351 variables_saved_for_relink="$variables_saved_for_relink"
9352
9353 # Whether libtool must link a program against all its dependency libraries.
9354 link_all_deplibs=$link_all_deplibs
9355
9356 # Compile-time system search path for libraries
9357 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9358
9359 # Run-time system search path for libraries
9360 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9361
9362 # Fix the shell variable \$srcfile for the compiler.
9363 fix_srcfile_path="$fix_srcfile_path"
9364
9365 # Set to yes if exported symbols are required.
9366 always_export_symbols=$always_export_symbols
9367
9368 # The commands to list exported symbols.
9369 export_symbols_cmds=$lt_export_symbols_cmds
9370
9371 # The commands to extract the exported symbol list from a shared archive.
9372 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9373
9374 # Symbols that should not be listed in the preloaded symbols.
9375 exclude_expsyms=$lt_exclude_expsyms
9376
9377 # Symbols that must always be exported.
9378 include_expsyms=$lt_include_expsyms
9379
9380 # ### END LIBTOOL CONFIG
9381
9382 __EOF__
9383
9384
9385   case $host_os in
9386   aix3*)
9387     cat <<\EOF >> "$cfgfile"
9388
9389 # AIX sometimes has problems with the GCC collect2 program.  For some
9390 # reason, if we set the COLLECT_NAMES environment variable, the problems
9391 # vanish in a puff of smoke.
9392 if test "X${COLLECT_NAMES+set}" != Xset; then
9393   COLLECT_NAMES=
9394   export COLLECT_NAMES
9395 fi
9396 EOF
9397     ;;
9398   esac
9399
9400   # We use sed instead of cat because bash on DJGPP gets confused if
9401   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9402   # text mode, it properly converts lines to CR/LF.  This bash problem
9403   # is reportedly fixed, but why not run on old versions too?
9404   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9405
9406   mv -f "$cfgfile" "$ofile" || \
9407     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9408   chmod +x "$ofile"
9409
9410 else
9411   # If there is no Makefile yet, we rely on a make rule to execute
9412   # `config.status --recheck' to rerun these tests and create the
9413   # libtool script then.
9414   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9415   if test -f "$ltmain_in"; then
9416     test -f Makefile && make "$ltmain"
9417   fi
9418 fi
9419
9420
9421 ac_ext=c
9422 ac_cpp='$CPP $CPPFLAGS'
9423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9426
9427 CC="$lt_save_CC"
9428
9429
9430 # Check whether --with-tags or --without-tags was given.
9431 if test "${with_tags+set}" = set; then
9432   withval="$with_tags"
9433   tagnames="$withval"
9434 fi;
9435
9436 if test -f "$ltmain" && test -n "$tagnames"; then
9437   if test ! -f "${ofile}"; then
9438     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9439 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9440   fi
9441
9442   if test -z "$LTCC"; then
9443     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9444     if test -z "$LTCC"; then
9445       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9446 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9447     else
9448       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9449 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9450     fi
9451   fi
9452
9453   # Extract list of available tagged configurations in $ofile.
9454   # Note that this assumes the entire list is on one line.
9455   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9456
9457   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9458   for tagname in $tagnames; do
9459     IFS="$lt_save_ifs"
9460     # Check whether tagname contains only valid characters
9461     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9462     "") ;;
9463     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9464 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9465    { (exit 1); exit 1; }; }
9466         ;;
9467     esac
9468
9469     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9470     then
9471       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9472 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9473    { (exit 1); exit 1; }; }
9474     fi
9475
9476     # Update the list of available tags.
9477     if test -n "$tagname"; then
9478       echo appending configuration tag \"$tagname\" to $ofile
9479
9480       case $tagname in
9481       CXX)
9482         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9483           ac_ext=cc
9484 ac_cpp='$CXXCPP $CPPFLAGS'
9485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9488
9489
9490
9491
9492 archive_cmds_need_lc_CXX=no
9493 allow_undefined_flag_CXX=
9494 always_export_symbols_CXX=no
9495 archive_expsym_cmds_CXX=
9496 export_dynamic_flag_spec_CXX=
9497 hardcode_direct_CXX=no
9498 hardcode_libdir_flag_spec_CXX=
9499 hardcode_libdir_flag_spec_ld_CXX=
9500 hardcode_libdir_separator_CXX=
9501 hardcode_minus_L_CXX=no
9502 hardcode_automatic_CXX=no
9503 module_cmds_CXX=
9504 module_expsym_cmds_CXX=
9505 link_all_deplibs_CXX=unknown
9506 old_archive_cmds_CXX=$old_archive_cmds
9507 no_undefined_flag_CXX=
9508 whole_archive_flag_spec_CXX=
9509 enable_shared_with_static_runtimes_CXX=no
9510
9511 # Dependencies to place before and after the object being linked:
9512 predep_objects_CXX=
9513 postdep_objects_CXX=
9514 predeps_CXX=
9515 postdeps_CXX=
9516 compiler_lib_search_path_CXX=
9517
9518 # Source file extension for C++ test sources.
9519 ac_ext=cc
9520
9521 # Object file extension for compiled C++ test sources.
9522 objext=o
9523 objext_CXX=$objext
9524
9525 # Code to be used in simple compile tests
9526 lt_simple_compile_test_code="int some_variable = 0;\n"
9527
9528 # Code to be used in simple link tests
9529 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9530
9531 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9532
9533 # If no C compiler was specified, use CC.
9534 LTCC=${LTCC-"$CC"}
9535
9536 # Allow CC to be a program name with arguments.
9537 compiler=$CC
9538
9539
9540 # Allow CC to be a program name with arguments.
9541 lt_save_CC=$CC
9542 lt_save_LD=$LD
9543 lt_save_GCC=$GCC
9544 GCC=$GXX
9545 lt_save_with_gnu_ld=$with_gnu_ld
9546 lt_save_path_LD=$lt_cv_path_LD
9547 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9548   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9549 else
9550   unset lt_cv_prog_gnu_ld
9551 fi
9552 if test -n "${lt_cv_path_LDCXX+set}"; then
9553   lt_cv_path_LD=$lt_cv_path_LDCXX
9554 else
9555   unset lt_cv_path_LD
9556 fi
9557 test -z "${LDCXX+set}" || LD=$LDCXX
9558 CC=${CXX-"c++"}
9559 compiler=$CC
9560 compiler_CXX=$CC
9561 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9562
9563 # We don't want -fno-exception wen compiling C++ code, so set the
9564 # no_builtin_flag separately
9565 if test "$GXX" = yes; then
9566   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9567 else
9568   lt_prog_compiler_no_builtin_flag_CXX=
9569 fi
9570
9571 if test "$GXX" = yes; then
9572   # Set up default GNU C++ configuration
9573
9574
9575 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9576 if test "${with_gnu_ld+set}" = set; then
9577   withval="$with_gnu_ld"
9578   test "$withval" = no || with_gnu_ld=yes
9579 else
9580   with_gnu_ld=no
9581 fi;
9582 ac_prog=ld
9583 if test "$GCC" = yes; then
9584   # Check if gcc -print-prog-name=ld gives a path.
9585   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9586 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9587   case $host in
9588   *-*-mingw*)
9589     # gcc leaves a trailing carriage return which upsets mingw
9590     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9591   *)
9592     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9593   esac
9594   case $ac_prog in
9595     # Accept absolute paths.
9596     [\\/]* | ?:[\\/]*)
9597       re_direlt='/[^/][^/]*/\.\./'
9598       # Canonicalize the pathname of ld
9599       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9600       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9601         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9602       done
9603       test -z "$LD" && LD="$ac_prog"
9604       ;;
9605   "")
9606     # If it fails, then pretend we aren't using GCC.
9607     ac_prog=ld
9608     ;;
9609   *)
9610     # If it is relative, then search for the first ld in PATH.
9611     with_gnu_ld=unknown
9612     ;;
9613   esac
9614 elif test "$with_gnu_ld" = yes; then
9615   echo "$as_me:$LINENO: checking for GNU ld" >&5
9616 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9617 else
9618   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9619 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9620 fi
9621 if test "${lt_cv_path_LD+set}" = set; then
9622   echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624   if test -z "$LD"; then
9625   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9626   for ac_dir in $PATH; do
9627     IFS="$lt_save_ifs"
9628     test -z "$ac_dir" && ac_dir=.
9629     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9630       lt_cv_path_LD="$ac_dir/$ac_prog"
9631       # Check to see if the program is GNU ld.  I'd rather use --version,
9632       # but apparently some GNU ld's only accept -v.
9633       # Break only if it was the GNU/non-GNU ld that we prefer.
9634       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9635       *GNU* | *'with BFD'*)
9636         test "$with_gnu_ld" != no && break
9637         ;;
9638       *)
9639         test "$with_gnu_ld" != yes && break
9640         ;;
9641       esac
9642     fi
9643   done
9644   IFS="$lt_save_ifs"
9645 else
9646   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9647 fi
9648 fi
9649
9650 LD="$lt_cv_path_LD"
9651 if test -n "$LD"; then
9652   echo "$as_me:$LINENO: result: $LD" >&5
9653 echo "${ECHO_T}$LD" >&6
9654 else
9655   echo "$as_me:$LINENO: result: no" >&5
9656 echo "${ECHO_T}no" >&6
9657 fi
9658 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9659 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9660    { (exit 1); exit 1; }; }
9661 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9662 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9663 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9664   echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9667 case `$LD -v 2>&1 </dev/null` in
9668 *GNU* | *'with BFD'*)
9669   lt_cv_prog_gnu_ld=yes
9670   ;;
9671 *)
9672   lt_cv_prog_gnu_ld=no
9673   ;;
9674 esac
9675 fi
9676 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9677 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9678 with_gnu_ld=$lt_cv_prog_gnu_ld
9679
9680
9681
9682   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9683   # archiving commands below assume that GNU ld is being used.
9684   if test "$with_gnu_ld" = yes; then
9685     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9686     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'
9687
9688     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9689     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9690
9691     # If archive_cmds runs LD, not CC, wlarc should be empty
9692     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9693     #     investigate it a little bit more. (MM)
9694     wlarc='${wl}'
9695
9696     # ancient GNU ld didn't support --whole-archive et. al.
9697     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9698         grep 'no-whole-archive' > /dev/null; then
9699       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9700     else
9701       whole_archive_flag_spec_CXX=
9702     fi
9703   else
9704     with_gnu_ld=no
9705     wlarc=
9706
9707     # A generic and very simple default shared library creation
9708     # command for GNU C++ for the case where it uses the native
9709     # linker, instead of GNU ld.  If possible, this setting should
9710     # overridden to take advantage of the native linker features on
9711     # the platform it is being used on.
9712     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9713   fi
9714
9715   # Commands to make compiler produce verbose output that lists
9716   # what "hidden" libraries, object files and flags are used when
9717   # linking a shared library.
9718   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9719
9720 else
9721   GXX=no
9722   with_gnu_ld=no
9723   wlarc=
9724 fi
9725
9726 # PORTME: fill in a description of your system's C++ link characteristics
9727 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9728 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9729 ld_shlibs_CXX=yes
9730 case $host_os in
9731   aix3*)
9732     # FIXME: insert proper C++ library support
9733     ld_shlibs_CXX=no
9734     ;;
9735   aix4* | aix5*)
9736     if test "$host_cpu" = ia64; then
9737       # On IA64, the linker does run time linking by default, so we don't
9738       # have to do anything special.
9739       aix_use_runtimelinking=no
9740       exp_sym_flag='-Bexport'
9741       no_entry_flag=""
9742     else
9743       aix_use_runtimelinking=no
9744
9745       # Test if we are trying to use run time linking or normal
9746       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9747       # need to do runtime linking.
9748       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9749         for ld_flag in $LDFLAGS; do
9750           case $ld_flag in
9751           *-brtl*)
9752             aix_use_runtimelinking=yes
9753             break
9754             ;;
9755           esac
9756         done
9757       esac
9758
9759       exp_sym_flag='-bexport'
9760       no_entry_flag='-bnoentry'
9761     fi
9762
9763     # When large executables or shared objects are built, AIX ld can
9764     # have problems creating the table of contents.  If linking a library
9765     # or program results in "error TOC overflow" add -mminimal-toc to
9766     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9767     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9768
9769     archive_cmds_CXX=''
9770     hardcode_direct_CXX=yes
9771     hardcode_libdir_separator_CXX=':'
9772     link_all_deplibs_CXX=yes
9773
9774     if test "$GXX" = yes; then
9775       case $host_os in aix4.012|aix4.012.*)
9776       # We only want to do this on AIX 4.2 and lower, the check
9777       # below for broken collect2 doesn't work under 4.3+
9778         collect2name=`${CC} -print-prog-name=collect2`
9779         if test -f "$collect2name" && \
9780            strings "$collect2name" | grep resolve_lib_name >/dev/null
9781         then
9782           # We have reworked collect2
9783           hardcode_direct_CXX=yes
9784         else
9785           # We have old collect2
9786           hardcode_direct_CXX=unsupported
9787           # It fails to find uninstalled libraries when the uninstalled
9788           # path is not listed in the libpath.  Setting hardcode_minus_L
9789           # to unsupported forces relinking
9790           hardcode_minus_L_CXX=yes
9791           hardcode_libdir_flag_spec_CXX='-L$libdir'
9792           hardcode_libdir_separator_CXX=
9793         fi
9794       esac
9795       shared_flag='-shared'
9796     else
9797       # not using gcc
9798       if test "$host_cpu" = ia64; then
9799         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9800         # chokes on -Wl,-G. The following line is correct:
9801         shared_flag='-G'
9802       else
9803         if test "$aix_use_runtimelinking" = yes; then
9804           shared_flag='${wl}-G'
9805         else
9806           shared_flag='${wl}-bM:SRE'
9807         fi
9808       fi
9809     fi
9810
9811     # It seems that -bexpall does not export symbols beginning with
9812     # underscore (_), so it is better to generate a list of symbols to export.
9813     always_export_symbols_CXX=yes
9814     if test "$aix_use_runtimelinking" = yes; then
9815       # Warning - without using the other runtime loading flags (-brtl),
9816       # -berok will link without error, but may produce a broken library.
9817       allow_undefined_flag_CXX='-berok'
9818       # Determine the default libpath from the value encoded in an empty executable.
9819       cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h.  */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h.  */
9825
9826 int
9827 main ()
9828 {
9829
9830   ;
9831   return 0;
9832 }
9833 _ACEOF
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836   (eval $ac_link) 2>conftest.er1
9837   ac_status=$?
9838   grep -v '^ *+' conftest.er1 >conftest.err
9839   rm -f conftest.er1
9840   cat conftest.err >&5
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); } &&
9843          { ac_try='test -z "$ac_cxx_werror_flag"
9844                          || test ! -s conftest.err'
9845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846   (eval $ac_try) 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); }; } &&
9850          { ac_try='test -s conftest$ac_exeext'
9851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852   (eval $ac_try) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; }; then
9856
9857 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9858 }'`
9859 # Check for a 64-bit object if we didn't find anything.
9860 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; }
9861 }'`; fi
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 fi
9867 rm -f conftest.err conftest.$ac_objext \
9868       conftest$ac_exeext conftest.$ac_ext
9869 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9870
9871       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9872
9873       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"
9874      else
9875       if test "$host_cpu" = ia64; then
9876         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9877         allow_undefined_flag_CXX="-z nodefs"
9878         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"
9879       else
9880         # Determine the default libpath from the value encoded in an empty executable.
9881         cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887
9888 int
9889 main ()
9890 {
9891
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9898   (eval $ac_link) 2>conftest.er1
9899   ac_status=$?
9900   grep -v '^ *+' conftest.er1 >conftest.err
9901   rm -f conftest.er1
9902   cat conftest.err >&5
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); } &&
9905          { ac_try='test -z "$ac_cxx_werror_flag"
9906                          || test ! -s conftest.err'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; } &&
9912          { ac_try='test -s conftest$ac_exeext'
9913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914   (eval $ac_try) 2>&5
9915   ac_status=$?
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); }; }; then
9918
9919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9920 }'`
9921 # Check for a 64-bit object if we didn't find anything.
9922 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; }
9923 }'`; fi
9924 else
9925   echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9927
9928 fi
9929 rm -f conftest.err conftest.$ac_objext \
9930       conftest$ac_exeext conftest.$ac_ext
9931 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9932
9933         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9934         # Warning - without using the other run time loading flags,
9935         # -berok will link without error, but may produce a broken library.
9936         no_undefined_flag_CXX=' ${wl}-bernotok'
9937         allow_undefined_flag_CXX=' ${wl}-berok'
9938         # -bexpall does not export symbols beginning with underscore (_)
9939         always_export_symbols_CXX=yes
9940         # Exported symbols can be pulled into shared objects from archives
9941         whole_archive_flag_spec_CXX=' '
9942         archive_cmds_need_lc_CXX=yes
9943         # This is similar to how AIX traditionally builds it's shared libraries.
9944         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'
9945       fi
9946     fi
9947     ;;
9948   chorus*)
9949     case $cc_basename in
9950       *)
9951         # FIXME: insert proper C++ library support
9952         ld_shlibs_CXX=no
9953         ;;
9954     esac
9955     ;;
9956
9957   cygwin* | mingw* | pw32*)
9958     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9959     # as there is no search path for DLLs.
9960     hardcode_libdir_flag_spec_CXX='-L$libdir'
9961     allow_undefined_flag_CXX=unsupported
9962     always_export_symbols_CXX=no
9963     enable_shared_with_static_runtimes_CXX=yes
9964
9965     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9966       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'
9967       # If the export-symbols file already is a .def file (1st line
9968       # is EXPORTS), use it as is; otherwise, prepend...
9969       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9970         cp $export_symbols $output_objdir/$soname.def;
9971       else
9972         echo EXPORTS > $output_objdir/$soname.def;
9973         cat $export_symbols >> $output_objdir/$soname.def;
9974       fi~
9975       $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'
9976     else
9977       ld_shlibs_CXX=no
9978     fi
9979   ;;
9980
9981   darwin* | rhapsody*)
9982   if test "$GXX" = yes; then
9983     archive_cmds_need_lc_CXX=no
9984     case "$host_os" in
9985     rhapsody* | darwin1.[012])
9986       allow_undefined_flag_CXX='-undefined suppress'
9987       ;;
9988     *) # Darwin 1.3 on
9989       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9990         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9991       else
9992         case ${MACOSX_DEPLOYMENT_TARGET} in
9993           10.[012])
9994             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9995             ;;
9996           10.*)
9997             allow_undefined_flag_CXX='-undefined dynamic_lookup'
9998             ;;
9999         esac
10000       fi
10001       ;;
10002     esac
10003     lt_int_apple_cc_single_mod=no
10004     output_verbose_link_cmd='echo'
10005     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10006       lt_int_apple_cc_single_mod=yes
10007     fi
10008     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10009       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10010     else
10011       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10012     fi
10013     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10014
10015     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10016     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10017       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}'
10018     else
10019       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10020     fi
10021     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}'
10022     hardcode_direct_CXX=no
10023     hardcode_automatic_CXX=yes
10024     hardcode_shlibpath_var_CXX=unsupported
10025     whole_archive_flag_spec_CXX='-all_load $convenience'
10026     link_all_deplibs_CXX=yes
10027   else
10028     ld_shlibs_CXX=no
10029   fi
10030     ;;
10031
10032   dgux*)
10033     case $cc_basename in
10034       ec++)
10035         # FIXME: insert proper C++ library support
10036         ld_shlibs_CXX=no
10037         ;;
10038       ghcx)
10039         # Green Hills C++ Compiler
10040         # FIXME: insert proper C++ library support
10041         ld_shlibs_CXX=no
10042         ;;
10043       *)
10044         # FIXME: insert proper C++ library support
10045         ld_shlibs_CXX=no
10046         ;;
10047     esac
10048     ;;
10049   freebsd12*)
10050     # C++ shared libraries reported to be fairly broken before switch to ELF
10051     ld_shlibs_CXX=no
10052     ;;
10053   freebsd-elf*)
10054     archive_cmds_need_lc_CXX=no
10055     ;;
10056   freebsd* | kfreebsd*-gnu)
10057     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10058     # conventions
10059     ld_shlibs_CXX=yes
10060     ;;
10061   gnu*)
10062     ;;
10063   hpux9*)
10064     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10065     hardcode_libdir_separator_CXX=:
10066     export_dynamic_flag_spec_CXX='${wl}-E'
10067     hardcode_direct_CXX=yes
10068     hardcode_minus_L_CXX=yes # Not in the search PATH,
10069                                 # but as the default
10070                                 # location of the library.
10071
10072     case $cc_basename in
10073     CC)
10074       # FIXME: insert proper C++ library support
10075       ld_shlibs_CXX=no
10076       ;;
10077     aCC)
10078       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'
10079       # Commands to make compiler produce verbose output that lists
10080       # what "hidden" libraries, object files and flags are used when
10081       # linking a shared library.
10082       #
10083       # There doesn't appear to be a way to prevent this compiler from
10084       # explicitly linking system object files so we need to strip them
10085       # from the output so that they don't get included in the library
10086       # dependencies.
10087       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10088       ;;
10089     *)
10090       if test "$GXX" = yes; then
10091         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'
10092       else
10093         # FIXME: insert proper C++ library support
10094         ld_shlibs_CXX=no
10095       fi
10096       ;;
10097     esac
10098     ;;
10099   hpux10*|hpux11*)
10100     if test $with_gnu_ld = no; then
10101       case "$host_cpu" in
10102       hppa*64*)
10103         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10104         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10105         hardcode_libdir_separator_CXX=:
10106         ;;
10107       ia64*)
10108         hardcode_libdir_flag_spec_CXX='-L$libdir'
10109         ;;
10110       *)
10111         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10112         hardcode_libdir_separator_CXX=:
10113         export_dynamic_flag_spec_CXX='${wl}-E'
10114         ;;
10115       esac
10116     fi
10117     case "$host_cpu" in
10118     hppa*64*)
10119       hardcode_direct_CXX=no
10120       hardcode_shlibpath_var_CXX=no
10121       ;;
10122     ia64*)
10123       hardcode_direct_CXX=no
10124       hardcode_shlibpath_var_CXX=no
10125       hardcode_minus_L_CXX=yes # Not in the search PATH,
10126                                               # but as the default
10127                                               # location of the library.
10128       ;;
10129     *)
10130       hardcode_direct_CXX=yes
10131       hardcode_minus_L_CXX=yes # Not in the search PATH,
10132                                               # but as the default
10133                                               # location of the library.
10134       ;;
10135     esac
10136
10137     case $cc_basename in
10138       CC)
10139         # FIXME: insert proper C++ library support
10140         ld_shlibs_CXX=no
10141         ;;
10142       aCC)
10143         case "$host_cpu" in
10144         hppa*64*|ia64*)
10145           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10146           ;;
10147         *)
10148           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10149           ;;
10150         esac
10151         # Commands to make compiler produce verbose output that lists
10152         # what "hidden" libraries, object files and flags are used when
10153         # linking a shared library.
10154         #
10155         # There doesn't appear to be a way to prevent this compiler from
10156         # explicitly linking system object files so we need to strip them
10157         # from the output so that they don't get included in the library
10158         # dependencies.
10159         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'
10160         ;;
10161       *)
10162         if test "$GXX" = yes; then
10163           if test $with_gnu_ld = no; then
10164             case "$host_cpu" in
10165             ia64*|hppa*64*)
10166               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10167               ;;
10168             *)
10169               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'
10170               ;;
10171             esac
10172           fi
10173         else
10174           # FIXME: insert proper C++ library support
10175           ld_shlibs_CXX=no
10176         fi
10177         ;;
10178     esac
10179     ;;
10180   irix5* | irix6*)
10181     case $cc_basename in
10182       CC)
10183         # SGI C++
10184         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10185
10186         # Archives containing C++ object files must be created using
10187         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10188         # necessary to make sure instantiated templates are included
10189         # in the archive.
10190         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10191         ;;
10192       *)
10193         if test "$GXX" = yes; then
10194           if test "$with_gnu_ld" = no; then
10195             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10196           else
10197             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'
10198           fi
10199         fi
10200         link_all_deplibs_CXX=yes
10201         ;;
10202     esac
10203     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10204     hardcode_libdir_separator_CXX=:
10205     ;;
10206   linux*)
10207     case $cc_basename in
10208       KCC)
10209         # Kuck and Associates, Inc. (KAI) C++ Compiler
10210
10211         # KCC will only create a shared library if the output file
10212         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10213         # to its proper name (with version) after linking.
10214         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'
10215         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'
10216         # Commands to make compiler produce verbose output that lists
10217         # what "hidden" libraries, object files and flags are used when
10218         # linking a shared library.
10219         #
10220         # There doesn't appear to be a way to prevent this compiler from
10221         # explicitly linking system object files so we need to strip them
10222         # from the output so that they don't get included in the library
10223         # dependencies.
10224         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'
10225
10226         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10227         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10228
10229         # Archives containing C++ object files must be created using
10230         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10231         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10232         ;;
10233       icpc)
10234         # Intel C++
10235         with_gnu_ld=yes
10236         archive_cmds_need_lc_CXX=no
10237         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10238         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'
10239         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10240         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10241         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10242         ;;
10243       cxx)
10244         # Compaq C++
10245         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10246         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'
10247
10248         runpath_var=LD_RUN_PATH
10249         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10250         hardcode_libdir_separator_CXX=:
10251
10252         # Commands to make compiler produce verbose output that lists
10253         # what "hidden" libraries, object files and flags are used when
10254         # linking a shared library.
10255         #
10256         # There doesn't appear to be a way to prevent this compiler from
10257         # explicitly linking system object files so we need to strip them
10258         # from the output so that they don't get included in the library
10259         # dependencies.
10260         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'
10261         ;;
10262     esac
10263     ;;
10264   lynxos*)
10265     # FIXME: insert proper C++ library support
10266     ld_shlibs_CXX=no
10267     ;;
10268   m88k*)
10269     # FIXME: insert proper C++ library support
10270     ld_shlibs_CXX=no
10271     ;;
10272   mvs*)
10273     case $cc_basename in
10274       cxx)
10275         # FIXME: insert proper C++ library support
10276         ld_shlibs_CXX=no
10277         ;;
10278       *)
10279         # FIXME: insert proper C++ library support
10280         ld_shlibs_CXX=no
10281         ;;
10282     esac
10283     ;;
10284   netbsd*)
10285     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10286       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10287       wlarc=
10288       hardcode_libdir_flag_spec_CXX='-R$libdir'
10289       hardcode_direct_CXX=yes
10290       hardcode_shlibpath_var_CXX=no
10291     fi
10292     # Workaround some broken pre-1.5 toolchains
10293     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10294     ;;
10295   osf3*)
10296     case $cc_basename in
10297       KCC)
10298         # Kuck and Associates, Inc. (KAI) C++ Compiler
10299
10300         # KCC will only create a shared library if the output file
10301         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10302         # to its proper name (with version) after linking.
10303         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'
10304
10305         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10306         hardcode_libdir_separator_CXX=:
10307
10308         # Archives containing C++ object files must be created using
10309         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10310         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10311
10312         ;;
10313       RCC)
10314         # Rational C++ 2.4.1
10315         # FIXME: insert proper C++ library support
10316         ld_shlibs_CXX=no
10317         ;;
10318       cxx)
10319         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10320         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10321
10322         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10323         hardcode_libdir_separator_CXX=:
10324
10325         # Commands to make compiler produce verbose output that lists
10326         # what "hidden" libraries, object files and flags are used when
10327         # linking a shared library.
10328         #
10329         # There doesn't appear to be a way to prevent this compiler from
10330         # explicitly linking system object files so we need to strip them
10331         # from the output so that they don't get included in the library
10332         # dependencies.
10333         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'
10334         ;;
10335       *)
10336         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10337           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10338           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10339
10340           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10341           hardcode_libdir_separator_CXX=:
10342
10343           # Commands to make compiler produce verbose output that lists
10344           # what "hidden" libraries, object files and flags are used when
10345           # linking a shared library.
10346           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10347
10348         else
10349           # FIXME: insert proper C++ library support
10350           ld_shlibs_CXX=no
10351         fi
10352         ;;
10353     esac
10354     ;;
10355   osf4* | osf5*)
10356     case $cc_basename in
10357       KCC)
10358         # Kuck and Associates, Inc. (KAI) C++ Compiler
10359
10360         # KCC will only create a shared library if the output file
10361         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10362         # to its proper name (with version) after linking.
10363         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'
10364
10365         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10366         hardcode_libdir_separator_CXX=:
10367
10368         # Archives containing C++ object files must be created using
10369         # the KAI C++ compiler.
10370         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10371         ;;
10372       RCC)
10373         # Rational C++ 2.4.1
10374         # FIXME: insert proper C++ library support
10375         ld_shlibs_CXX=no
10376         ;;
10377       cxx)
10378         allow_undefined_flag_CXX=' -expect_unresolved \*'
10379         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10380         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10381           echo "-hidden">> $lib.exp~
10382           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10383           $rm $lib.exp'
10384
10385         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10386         hardcode_libdir_separator_CXX=:
10387
10388         # Commands to make compiler produce verbose output that lists
10389         # what "hidden" libraries, object files and flags are used when
10390         # linking a shared library.
10391         #
10392         # There doesn't appear to be a way to prevent this compiler from
10393         # explicitly linking system object files so we need to strip them
10394         # from the output so that they don't get included in the library
10395         # dependencies.
10396         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'
10397         ;;
10398       *)
10399         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10400           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10401          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10402
10403           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10404           hardcode_libdir_separator_CXX=:
10405
10406           # Commands to make compiler produce verbose output that lists
10407           # what "hidden" libraries, object files and flags are used when
10408           # linking a shared library.
10409           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10410
10411         else
10412           # FIXME: insert proper C++ library support
10413           ld_shlibs_CXX=no
10414         fi
10415         ;;
10416     esac
10417     ;;
10418   psos*)
10419     # FIXME: insert proper C++ library support
10420     ld_shlibs_CXX=no
10421     ;;
10422   sco*)
10423     archive_cmds_need_lc_CXX=no
10424     case $cc_basename in
10425       CC)
10426         # FIXME: insert proper C++ library support
10427         ld_shlibs_CXX=no
10428         ;;
10429       *)
10430         # FIXME: insert proper C++ library support
10431         ld_shlibs_CXX=no
10432         ;;
10433     esac
10434     ;;
10435   sunos4*)
10436     case $cc_basename in
10437       CC)
10438         # Sun C++ 4.x
10439         # FIXME: insert proper C++ library support
10440         ld_shlibs_CXX=no
10441         ;;
10442       lcc)
10443         # Lucid
10444         # FIXME: insert proper C++ library support
10445         ld_shlibs_CXX=no
10446         ;;
10447       *)
10448         # FIXME: insert proper C++ library support
10449         ld_shlibs_CXX=no
10450         ;;
10451     esac
10452     ;;
10453   solaris*)
10454     case $cc_basename in
10455       CC)
10456         # Sun C++ 4.2, 5.x and Centerline C++
10457         no_undefined_flag_CXX=' -zdefs'
10458         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10459         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10460         $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'
10461
10462         hardcode_libdir_flag_spec_CXX='-R$libdir'
10463         hardcode_shlibpath_var_CXX=no
10464         case $host_os in
10465           solaris2.0-5 | solaris2.0-5.*) ;;
10466           *)
10467             # The C++ compiler is used as linker so we must use $wl
10468             # flag to pass the commands to the underlying system
10469             # linker.
10470             # Supported since Solaris 2.6 (maybe 2.5.1?)
10471             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10472             ;;
10473         esac
10474         link_all_deplibs_CXX=yes
10475
10476         # Commands to make compiler produce verbose output that lists
10477         # what "hidden" libraries, object files and flags are used when
10478         # linking a shared library.
10479         #
10480         # There doesn't appear to be a way to prevent this compiler from
10481         # explicitly linking system object files so we need to strip them
10482         # from the output so that they don't get included in the library
10483         # dependencies.
10484         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'
10485
10486         # Archives containing C++ object files must be created using
10487         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10488         # necessary to make sure instantiated templates are included
10489         # in the archive.
10490         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10491         ;;
10492       gcx)
10493         # Green Hills C++ Compiler
10494         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10495
10496         # The C++ compiler must be used to create the archive.
10497         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10498         ;;
10499       *)
10500         # GNU C++ compiler with Solaris linker
10501         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10502           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10503           if $CC --version | grep -v '^2\.7' > /dev/null; then
10504             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10505             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10506                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10507
10508             # Commands to make compiler produce verbose output that lists
10509             # what "hidden" libraries, object files and flags are used when
10510             # linking a shared library.
10511             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10512           else
10513             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10514             # platform.
10515             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10516             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10517                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10518
10519             # Commands to make compiler produce verbose output that lists
10520             # what "hidden" libraries, object files and flags are used when
10521             # linking a shared library.
10522             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10523           fi
10524
10525           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10526         fi
10527         ;;
10528     esac
10529     ;;
10530   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10531     archive_cmds_need_lc_CXX=no
10532     ;;
10533   tandem*)
10534     case $cc_basename in
10535       NCC)
10536         # NonStop-UX NCC 3.20
10537         # FIXME: insert proper C++ library support
10538         ld_shlibs_CXX=no
10539         ;;
10540       *)
10541         # FIXME: insert proper C++ library support
10542         ld_shlibs_CXX=no
10543         ;;
10544     esac
10545     ;;
10546   vxworks*)
10547     # FIXME: insert proper C++ library support
10548     ld_shlibs_CXX=no
10549     ;;
10550   *)
10551     # FIXME: insert proper C++ library support
10552     ld_shlibs_CXX=no
10553     ;;
10554 esac
10555 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10556 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10557 test "$ld_shlibs_CXX" = no && can_build_shared=no
10558
10559 GCC_CXX="$GXX"
10560 LD_CXX="$LD"
10561
10562
10563 cat > conftest.$ac_ext <<EOF
10564 class Foo
10565 {
10566 public:
10567   Foo (void) { a = 0; }
10568 private:
10569   int a;
10570 };
10571 EOF
10572
10573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10574   (eval $ac_compile) 2>&5
10575   ac_status=$?
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); }; then
10578   # Parse the compiler output and extract the necessary
10579   # objects, libraries and library flags.
10580
10581   # Sentinel used to keep track of whether or not we are before
10582   # the conftest object file.
10583   pre_test_object_deps_done=no
10584
10585   # The `*' in the case matches for architectures that use `case' in
10586   # $output_verbose_cmd can trigger glob expansion during the loop
10587   # eval without this substitution.
10588   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10589
10590   for p in `eval $output_verbose_link_cmd`; do
10591     case $p in
10592
10593     -L* | -R* | -l*)
10594        # Some compilers place space between "-{L,R}" and the path.
10595        # Remove the space.
10596        if test $p = "-L" \
10597           || test $p = "-R"; then
10598          prev=$p
10599          continue
10600        else
10601          prev=
10602        fi
10603
10604        if test "$pre_test_object_deps_done" = no; then
10605          case $p in
10606          -L* | -R*)
10607            # Internal compiler library paths should come after those
10608            # provided the user.  The postdeps already come after the
10609            # user supplied libs so there is no need to process them.
10610            if test -z "$compiler_lib_search_path_CXX"; then
10611              compiler_lib_search_path_CXX="${prev}${p}"
10612            else
10613              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10614            fi
10615            ;;
10616          # The "-l" case would never come before the object being
10617          # linked, so don't bother handling this case.
10618          esac
10619        else
10620          if test -z "$postdeps_CXX"; then
10621            postdeps_CXX="${prev}${p}"
10622          else
10623            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10624          fi
10625        fi
10626        ;;
10627
10628     *.$objext)
10629        # This assumes that the test object file only shows up
10630        # once in the compiler output.
10631        if test "$p" = "conftest.$objext"; then
10632          pre_test_object_deps_done=yes
10633          continue
10634        fi
10635
10636        if test "$pre_test_object_deps_done" = no; then
10637          if test -z "$predep_objects_CXX"; then
10638            predep_objects_CXX="$p"
10639          else
10640            predep_objects_CXX="$predep_objects_CXX $p"
10641          fi
10642        else
10643          if test -z "$postdep_objects_CXX"; then
10644            postdep_objects_CXX="$p"
10645          else
10646            postdep_objects_CXX="$postdep_objects_CXX $p"
10647          fi
10648        fi
10649        ;;
10650
10651     *) ;; # Ignore the rest.
10652
10653     esac
10654   done
10655
10656   # Clean up.
10657   rm -f a.out a.exe
10658 else
10659   echo "libtool.m4: error: problem compiling CXX test program"
10660 fi
10661
10662 $rm -f confest.$objext
10663
10664 case " $postdeps_CXX " in
10665 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10666 esac
10667
10668 lt_prog_compiler_wl_CXX=
10669 lt_prog_compiler_pic_CXX=
10670 lt_prog_compiler_static_CXX=
10671
10672 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10673 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10674
10675   # C++ specific cases for pic, static, wl, etc.
10676   if test "$GXX" = yes; then
10677     lt_prog_compiler_wl_CXX='-Wl,'
10678     lt_prog_compiler_static_CXX='-static'
10679
10680     case $host_os in
10681     aix*)
10682       # All AIX code is PIC.
10683       if test "$host_cpu" = ia64; then
10684         # AIX 5 now supports IA64 processor
10685         lt_prog_compiler_static_CXX='-Bstatic'
10686       fi
10687       ;;
10688     amigaos*)
10689       # FIXME: we need at least 68020 code to build shared libraries, but
10690       # adding the `-m68020' flag to GCC prevents building anything better,
10691       # like `-m68040'.
10692       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10693       ;;
10694     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10695       # PIC is the default for these OSes.
10696       ;;
10697     mingw* | os2* | pw32*)
10698       # This hack is so that the source file can tell whether it is being
10699       # built for inclusion in a dll (and should export symbols for example).
10700       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10701       ;;
10702     darwin* | rhapsody*)
10703       # PIC is the default on this platform
10704       # Common symbols not allowed in MH_DYLIB files
10705       lt_prog_compiler_pic_CXX='-fno-common'
10706       ;;
10707     *djgpp*)
10708       # DJGPP does not support shared libraries at all
10709       lt_prog_compiler_pic_CXX=
10710       ;;
10711     sysv4*MP*)
10712       if test -d /usr/nec; then
10713         lt_prog_compiler_pic_CXX=-Kconform_pic
10714       fi
10715       ;;
10716     hpux*)
10717       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10718       # not for PA HP-UX.
10719       case "$host_cpu" in
10720       hppa*64*|ia64*)
10721         ;;
10722       *)
10723         lt_prog_compiler_pic_CXX='-fPIC'
10724         ;;
10725       esac
10726       ;;
10727     *)
10728       lt_prog_compiler_pic_CXX='-fPIC'
10729       ;;
10730     esac
10731   else
10732     case $host_os in
10733       aix4* | aix5*)
10734         # All AIX code is PIC.
10735         if test "$host_cpu" = ia64; then
10736           # AIX 5 now supports IA64 processor
10737           lt_prog_compiler_static_CXX='-Bstatic'
10738         else
10739           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10740         fi
10741         ;;
10742       chorus*)
10743         case $cc_basename in
10744         cxch68)
10745           # Green Hills C++ Compiler
10746           # _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"
10747           ;;
10748         esac
10749         ;;
10750       dgux*)
10751         case $cc_basename in
10752           ec++)
10753             lt_prog_compiler_pic_CXX='-KPIC'
10754             ;;
10755           ghcx)
10756             # Green Hills C++ Compiler
10757             lt_prog_compiler_pic_CXX='-pic'
10758             ;;
10759           *)
10760             ;;
10761         esac
10762         ;;
10763       freebsd* | kfreebsd*-gnu)
10764         # FreeBSD uses GNU C++
10765         ;;
10766       hpux9* | hpux10* | hpux11*)
10767         case $cc_basename in
10768           CC)
10769             lt_prog_compiler_wl_CXX='-Wl,'
10770             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10771             if test "$host_cpu" != ia64; then
10772               lt_prog_compiler_pic_CXX='+Z'
10773             fi
10774             ;;
10775           aCC)
10776             lt_prog_compiler_wl_CXX='-Wl,'
10777             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10778             case "$host_cpu" in
10779             hppa*64*|ia64*)
10780               # +Z the default
10781               ;;
10782             *)
10783               lt_prog_compiler_pic_CXX='+Z'
10784               ;;
10785             esac
10786             ;;
10787           *)
10788             ;;
10789         esac
10790         ;;
10791       irix5* | irix6* | nonstopux*)
10792         case $cc_basename in
10793           CC)
10794             lt_prog_compiler_wl_CXX='-Wl,'
10795             lt_prog_compiler_static_CXX='-non_shared'
10796             # CC pic flag -KPIC is the default.
10797             ;;
10798           *)
10799             ;;
10800         esac
10801         ;;
10802       linux*)
10803         case $cc_basename in
10804           KCC)
10805             # KAI C++ Compiler
10806             lt_prog_compiler_wl_CXX='--backend -Wl,'
10807             lt_prog_compiler_pic_CXX='-fPIC'
10808             ;;
10809           icpc)
10810             # Intel C++
10811             lt_prog_compiler_wl_CXX='-Wl,'
10812             lt_prog_compiler_pic_CXX='-KPIC'
10813             lt_prog_compiler_static_CXX='-static'
10814             ;;
10815           cxx)
10816             # Compaq C++
10817             # Make sure the PIC flag is empty.  It appears that all Alpha
10818             # Linux and Compaq Tru64 Unix objects are PIC.
10819             lt_prog_compiler_pic_CXX=
10820             lt_prog_compiler_static_CXX='-non_shared'
10821             ;;
10822           *)
10823             ;;
10824         esac
10825         ;;
10826       lynxos*)
10827         ;;
10828       m88k*)
10829         ;;
10830       mvs*)
10831         case $cc_basename in
10832           cxx)
10833             lt_prog_compiler_pic_CXX='-W c,exportall'
10834             ;;
10835           *)
10836             ;;
10837         esac
10838         ;;
10839       netbsd*)
10840         ;;
10841       osf3* | osf4* | osf5*)
10842         case $cc_basename in
10843           KCC)
10844             lt_prog_compiler_wl_CXX='--backend -Wl,'
10845             ;;
10846           RCC)
10847             # Rational C++ 2.4.1
10848             lt_prog_compiler_pic_CXX='-pic'
10849             ;;
10850           cxx)
10851             # Digital/Compaq C++
10852             lt_prog_compiler_wl_CXX='-Wl,'
10853             # Make sure the PIC flag is empty.  It appears that all Alpha
10854             # Linux and Compaq Tru64 Unix objects are PIC.
10855             lt_prog_compiler_pic_CXX=
10856             lt_prog_compiler_static_CXX='-non_shared'
10857             ;;
10858           *)
10859             ;;
10860         esac
10861         ;;
10862       psos*)
10863         ;;
10864       sco*)
10865         case $cc_basename in
10866           CC)
10867             lt_prog_compiler_pic_CXX='-fPIC'
10868             ;;
10869           *)
10870             ;;
10871         esac
10872         ;;
10873       solaris*)
10874         case $cc_basename in
10875           CC)
10876             # Sun C++ 4.2, 5.x and Centerline C++
10877             lt_prog_compiler_pic_CXX='-KPIC'
10878             lt_prog_compiler_static_CXX='-Bstatic'
10879             lt_prog_compiler_wl_CXX='-Qoption ld '
10880             ;;
10881           gcx)
10882             # Green Hills C++ Compiler
10883             lt_prog_compiler_pic_CXX='-PIC'
10884             ;;
10885           *)
10886             ;;
10887         esac
10888         ;;
10889       sunos4*)
10890         case $cc_basename in
10891           CC)
10892             # Sun C++ 4.x
10893             lt_prog_compiler_pic_CXX='-pic'
10894             lt_prog_compiler_static_CXX='-Bstatic'
10895             ;;
10896           lcc)
10897             # Lucid
10898             lt_prog_compiler_pic_CXX='-pic'
10899             ;;
10900           *)
10901             ;;
10902         esac
10903         ;;
10904       tandem*)
10905         case $cc_basename in
10906           NCC)
10907             # NonStop-UX NCC 3.20
10908             lt_prog_compiler_pic_CXX='-KPIC'
10909             ;;
10910           *)
10911             ;;
10912         esac
10913         ;;
10914       unixware*)
10915         ;;
10916       vxworks*)
10917         ;;
10918       *)
10919         lt_prog_compiler_can_build_shared_CXX=no
10920         ;;
10921     esac
10922   fi
10923
10924 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10925 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10926
10927 #
10928 # Check to make sure the PIC flag actually works.
10929 #
10930 if test -n "$lt_prog_compiler_pic_CXX"; then
10931
10932 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10933 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10934 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   lt_prog_compiler_pic_works_CXX=no
10938   ac_outfile=conftest.$ac_objext
10939    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10940    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10941    # Insert the option either (1) after the last *FLAGS variable, or
10942    # (2) before a word containing "conftest.", or (3) at the end.
10943    # Note that $ac_compile itself does not contain backslashes and begins
10944    # with a dollar sign (not a hyphen), so the echo should work correctly.
10945    # The option is referenced via a variable to avoid confusing sed.
10946    lt_compile=`echo "$ac_compile" | $SED \
10947    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10948    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10949    -e 's:$: $lt_compiler_flag:'`
10950    (eval echo "\"\$as_me:10950: $lt_compile\"" >&5)
10951    (eval "$lt_compile" 2>conftest.err)
10952    ac_status=$?
10953    cat conftest.err >&5
10954    echo "$as_me:10954: \$? = $ac_status" >&5
10955    if (exit $ac_status) && test -s "$ac_outfile"; then
10956      # The compiler can only warn and ignore the option if not recognized
10957      # So say no if there are warnings
10958      if test ! -s conftest.err; then
10959        lt_prog_compiler_pic_works_CXX=yes
10960      fi
10961    fi
10962    $rm conftest*
10963
10964 fi
10965 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10966 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10967
10968 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10969     case $lt_prog_compiler_pic_CXX in
10970      "" | " "*) ;;
10971      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10972      esac
10973 else
10974     lt_prog_compiler_pic_CXX=
10975      lt_prog_compiler_can_build_shared_CXX=no
10976 fi
10977
10978 fi
10979 case "$host_os" in
10980   # For platforms which do not support PIC, -DPIC is meaningless:
10981   *djgpp*)
10982     lt_prog_compiler_pic_CXX=
10983     ;;
10984   *)
10985     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10986     ;;
10987 esac
10988
10989 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10990 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10991 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994   lt_cv_prog_compiler_c_o_CXX=no
10995    $rm -r conftest 2>/dev/null
10996    mkdir conftest
10997    cd conftest
10998    mkdir out
10999    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11000
11001    lt_compiler_flag="-o out/conftest2.$ac_objext"
11002    # Insert the option either (1) after the last *FLAGS variable, or
11003    # (2) before a word containing "conftest.", or (3) at the end.
11004    # Note that $ac_compile itself does not contain backslashes and begins
11005    # with a dollar sign (not a hyphen), so the echo should work correctly.
11006    lt_compile=`echo "$ac_compile" | $SED \
11007    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11008    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11009    -e 's:$: $lt_compiler_flag:'`
11010    (eval echo "\"\$as_me:11010: $lt_compile\"" >&5)
11011    (eval "$lt_compile" 2>out/conftest.err)
11012    ac_status=$?
11013    cat out/conftest.err >&5
11014    echo "$as_me:11014: \$? = $ac_status" >&5
11015    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11016    then
11017      # The compiler can only warn and ignore the option if not recognized
11018      # So say no if there are warnings
11019      if test ! -s out/conftest.err; then
11020        lt_cv_prog_compiler_c_o_CXX=yes
11021      fi
11022    fi
11023    chmod u+w .
11024    $rm conftest*
11025    # SGI C++ compiler will create directory out/ii_files/ for
11026    # template instantiation
11027    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11028    $rm out/* && rmdir out
11029    cd ..
11030    rmdir conftest
11031    $rm conftest*
11032
11033 fi
11034 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11035 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11036
11037
11038 hard_links="nottested"
11039 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11040   # do not overwrite the value of need_locks provided by the user
11041   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11042 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11043   hard_links=yes
11044   $rm conftest*
11045   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11046   touch conftest.a
11047   ln conftest.a conftest.b 2>&5 || hard_links=no
11048   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11049   echo "$as_me:$LINENO: result: $hard_links" >&5
11050 echo "${ECHO_T}$hard_links" >&6
11051   if test "$hard_links" = no; then
11052     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11053 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11054     need_locks=warn
11055   fi
11056 else
11057   need_locks=no
11058 fi
11059
11060 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11061 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11062
11063   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11064   case $host_os in
11065   aix4* | aix5*)
11066     # If we're using GNU nm, then we don't want the "-C" option.
11067     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11068     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11069       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'
11070     else
11071       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'
11072     fi
11073     ;;
11074   pw32*)
11075     export_symbols_cmds_CXX="$ltdll_cmds"
11076   ;;
11077   cygwin* | mingw*)
11078     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11079   ;;
11080   *)
11081     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11082   ;;
11083   esac
11084
11085 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11086 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11087 test "$ld_shlibs_CXX" = no && can_build_shared=no
11088
11089 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11090 if test "$GCC" = yes; then
11091   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11092 fi
11093
11094 #
11095 # Do we need to explicitly link libc?
11096 #
11097 case "x$archive_cmds_need_lc_CXX" in
11098 x|xyes)
11099   # Assume -lc should be added
11100   archive_cmds_need_lc_CXX=yes
11101
11102   if test "$enable_shared" = yes && test "$GCC" = yes; then
11103     case $archive_cmds_CXX in
11104     *'~'*)
11105       # FIXME: we may have to deal with multi-command sequences.
11106       ;;
11107     '$CC '*)
11108       # Test whether the compiler implicitly links with -lc since on some
11109       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11110       # to ld, don't add -lc before -lgcc.
11111       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11112 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11113       $rm conftest*
11114       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11115
11116       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11117   (eval $ac_compile) 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); } 2>conftest.err; then
11121         soname=conftest
11122         lib=conftest
11123         libobjs=conftest.$ac_objext
11124         deplibs=
11125         wl=$lt_prog_compiler_wl_CXX
11126         compiler_flags=-v
11127         linker_flags=-v
11128         verstring=
11129         output_objdir=.
11130         libname=conftest
11131         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11132         allow_undefined_flag_CXX=
11133         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11134   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }
11138         then
11139           archive_cmds_need_lc_CXX=no
11140         else
11141           archive_cmds_need_lc_CXX=yes
11142         fi
11143         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11144       else
11145         cat conftest.err 1>&5
11146       fi
11147       $rm conftest*
11148       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11149 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11150       ;;
11151     esac
11152   fi
11153   ;;
11154 esac
11155
11156 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11157 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11158 library_names_spec=
11159 libname_spec='lib$name'
11160 soname_spec=
11161 shrext=".so"
11162 postinstall_cmds=
11163 postuninstall_cmds=
11164 finish_cmds=
11165 finish_eval=
11166 shlibpath_var=
11167 shlibpath_overrides_runpath=unknown
11168 version_type=none
11169 dynamic_linker="$host_os ld.so"
11170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11171 if test "$GCC" = yes; then
11172   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11173   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11174     # if the path contains ";" then we assume it to be the separator
11175     # otherwise default to the standard path separator (i.e. ":") - it is
11176     # assumed that no part of a normal pathname contains ";" but that should
11177     # okay in the real world where ";" in dirpaths is itself problematic.
11178     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11179   else
11180     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11181   fi
11182 else
11183   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11184 fi
11185 need_lib_prefix=unknown
11186 hardcode_into_libs=no
11187
11188 # when you set need_version to no, make sure it does not cause -set_version
11189 # flags to be left without arguments
11190 need_version=unknown
11191
11192 case $host_os in
11193 aix3*)
11194   version_type=linux
11195   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11196   shlibpath_var=LIBPATH
11197
11198   # AIX 3 has no versioning support, so we append a major version to the name.
11199   soname_spec='${libname}${release}${shared_ext}$major'
11200   ;;
11201
11202 aix4* | aix5*)
11203   version_type=linux
11204   need_lib_prefix=no
11205   need_version=no
11206   hardcode_into_libs=yes
11207   if test "$host_cpu" = ia64; then
11208     # AIX 5 supports IA64
11209     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11210     shlibpath_var=LD_LIBRARY_PATH
11211   else
11212     # With GCC up to 2.95.x, collect2 would create an import file
11213     # for dependence libraries.  The import file would start with
11214     # the line `#! .'.  This would cause the generated library to
11215     # depend on `.', always an invalid library.  This was fixed in
11216     # development snapshots of GCC prior to 3.0.
11217     case $host_os in
11218       aix4 | aix4.[01] | aix4.[01].*)
11219       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11220            echo ' yes '
11221            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11222         :
11223       else
11224         can_build_shared=no
11225       fi
11226       ;;
11227     esac
11228     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11229     # soname into executable. Probably we can add versioning support to
11230     # collect2, so additional links can be useful in future.
11231     if test "$aix_use_runtimelinking" = yes; then
11232       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11233       # instead of lib<name>.a to let people know that these are not
11234       # typical AIX shared libraries.
11235       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11236     else
11237       # We preserve .a as extension for shared libraries through AIX4.2
11238       # and later when we are not doing run time linking.
11239       library_names_spec='${libname}${release}.a $libname.a'
11240       soname_spec='${libname}${release}${shared_ext}$major'
11241     fi
11242     shlibpath_var=LIBPATH
11243   fi
11244   ;;
11245
11246 amigaos*)
11247   library_names_spec='$libname.ixlibrary $libname.a'
11248   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11249   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'
11250   ;;
11251
11252 beos*)
11253   library_names_spec='${libname}${shared_ext}'
11254   dynamic_linker="$host_os ld.so"
11255   shlibpath_var=LIBRARY_PATH
11256   ;;
11257
11258 bsdi4*)
11259   version_type=linux
11260   need_version=no
11261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262   soname_spec='${libname}${release}${shared_ext}$major'
11263   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11264   shlibpath_var=LD_LIBRARY_PATH
11265   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11266   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11267   # the default ld.so.conf also contains /usr/contrib/lib and
11268   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11269   # libtool to hard-code these into programs
11270   ;;
11271
11272 cygwin* | mingw* | pw32*)
11273   version_type=windows
11274   shrext=".dll"
11275   need_version=no
11276   need_lib_prefix=no
11277
11278   case $GCC,$host_os in
11279   yes,cygwin* | yes,mingw* | yes,pw32*)
11280     library_names_spec='$libname.dll.a'
11281     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11282     postinstall_cmds='base_file=`basename \${file}`~
11283       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11284       dldir=$destdir/`dirname \$dlpath`~
11285       test -d \$dldir || mkdir -p \$dldir~
11286       $install_prog $dir/$dlname \$dldir/$dlname'
11287     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11288       dlpath=$dir/\$dldll~
11289        $rm \$dlpath'
11290     shlibpath_overrides_runpath=yes
11291
11292     case $host_os in
11293     cygwin*)
11294       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11295       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11296       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11297       ;;
11298     mingw*)
11299       # MinGW DLLs use traditional 'lib' prefix
11300       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11301       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11302       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11303         # It is most probably a Windows format PATH printed by
11304         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11305         # path with ; separators, and with drive letters. We can handle the
11306         # drive letters (cygwin fileutils understands them), so leave them,
11307         # especially as we might pass files found there to a mingw objdump,
11308         # which wouldn't understand a cygwinified path. Ahh.
11309         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11310       else
11311         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11312       fi
11313       ;;
11314     pw32*)
11315       # pw32 DLLs use 'pw' prefix rather than 'lib'
11316       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11317       ;;
11318     esac
11319     ;;
11320
11321   *)
11322     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11323     ;;
11324   esac
11325   dynamic_linker='Win32 ld.exe'
11326   # FIXME: first we should search . and the directory the executable is in
11327   shlibpath_var=PATH
11328   ;;
11329
11330 darwin* | rhapsody*)
11331   dynamic_linker="$host_os dyld"
11332   version_type=darwin
11333   need_lib_prefix=no
11334   need_version=no
11335   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11336   soname_spec='${libname}${release}${major}$shared_ext'
11337   shlibpath_overrides_runpath=yes
11338   shlibpath_var=DYLD_LIBRARY_PATH
11339   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11340   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11341   if test "$GCC" = yes; then
11342     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"`
11343   else
11344     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11345   fi
11346   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11347   ;;
11348
11349 dgux*)
11350   version_type=linux
11351   need_lib_prefix=no
11352   need_version=no
11353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11354   soname_spec='${libname}${release}${shared_ext}$major'
11355   shlibpath_var=LD_LIBRARY_PATH
11356   ;;
11357
11358 freebsd1*)
11359   dynamic_linker=no
11360   ;;
11361
11362 kfreebsd*-gnu)
11363   version_type=linux
11364   need_lib_prefix=no
11365   need_version=no
11366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11367   soname_spec='${libname}${release}${shared_ext}$major'
11368   shlibpath_var=LD_LIBRARY_PATH
11369   shlibpath_overrides_runpath=no
11370   hardcode_into_libs=yes
11371   dynamic_linker='GNU ld.so'
11372   ;;
11373
11374 freebsd*)
11375   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11376   version_type=freebsd-$objformat
11377   case $version_type in
11378     freebsd-elf*)
11379       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11380       need_version=no
11381       need_lib_prefix=no
11382       ;;
11383     freebsd-*)
11384       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11385       need_version=yes
11386       ;;
11387   esac
11388   shlibpath_var=LD_LIBRARY_PATH
11389   case $host_os in
11390   freebsd2*)
11391     shlibpath_overrides_runpath=yes
11392     ;;
11393   freebsd3.01* | freebsdelf3.01*)
11394     shlibpath_overrides_runpath=yes
11395     hardcode_into_libs=yes
11396     ;;
11397   *) # from 3.2 on
11398     shlibpath_overrides_runpath=no
11399     hardcode_into_libs=yes
11400     ;;
11401   esac
11402   ;;
11403
11404 gnu*)
11405   version_type=linux
11406   need_lib_prefix=no
11407   need_version=no
11408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11409   soname_spec='${libname}${release}${shared_ext}$major'
11410   shlibpath_var=LD_LIBRARY_PATH
11411   hardcode_into_libs=yes
11412   ;;
11413
11414 hpux9* | hpux10* | hpux11*)
11415   # Give a soname corresponding to the major version so that dld.sl refuses to
11416   # link against other versions.
11417   version_type=sunos
11418   need_lib_prefix=no
11419   need_version=no
11420   case "$host_cpu" in
11421   ia64*)
11422     shrext='.so'
11423     hardcode_into_libs=yes
11424     dynamic_linker="$host_os dld.so"
11425     shlibpath_var=LD_LIBRARY_PATH
11426     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11427     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428     soname_spec='${libname}${release}${shared_ext}$major'
11429     if test "X$HPUX_IA64_MODE" = X32; then
11430       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11431     else
11432       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11433     fi
11434     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11435     ;;
11436    hppa*64*)
11437      shrext='.sl'
11438      hardcode_into_libs=yes
11439      dynamic_linker="$host_os dld.sl"
11440      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11441      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11442      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443      soname_spec='${libname}${release}${shared_ext}$major'
11444      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11445      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11446      ;;
11447    *)
11448     shrext='.sl'
11449     dynamic_linker="$host_os dld.sl"
11450     shlibpath_var=SHLIB_PATH
11451     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11452     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453     soname_spec='${libname}${release}${shared_ext}$major'
11454     ;;
11455   esac
11456   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11457   postinstall_cmds='chmod 555 $lib'
11458   ;;
11459
11460 irix5* | irix6* | nonstopux*)
11461   case $host_os in
11462     nonstopux*) version_type=nonstopux ;;
11463     *)
11464         if test "$lt_cv_prog_gnu_ld" = yes; then
11465                 version_type=linux
11466         else
11467                 version_type=irix
11468         fi ;;
11469   esac
11470   need_lib_prefix=no
11471   need_version=no
11472   soname_spec='${libname}${release}${shared_ext}$major'
11473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11474   case $host_os in
11475   irix5* | nonstopux*)
11476     libsuff= shlibsuff=
11477     ;;
11478   *)
11479     case $LD in # libtool.m4 will add one of these switches to LD
11480     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11481       libsuff= shlibsuff= libmagic=32-bit;;
11482     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11483       libsuff=32 shlibsuff=N32 libmagic=N32;;
11484     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11485       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11486     *) libsuff= shlibsuff= libmagic=never-match;;
11487     esac
11488     ;;
11489   esac
11490   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11491   shlibpath_overrides_runpath=no
11492   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11493   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11494   hardcode_into_libs=yes
11495   ;;
11496
11497 # No shared lib support for Linux oldld, aout, or coff.
11498 linux*oldld* | linux*aout* | linux*coff*)
11499   dynamic_linker=no
11500   ;;
11501
11502 # This must be Linux ELF.
11503 linux*)
11504   version_type=linux
11505   need_lib_prefix=no
11506   need_version=no
11507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508   soname_spec='${libname}${release}${shared_ext}$major'
11509   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11510   shlibpath_var=LD_LIBRARY_PATH
11511   shlibpath_overrides_runpath=no
11512   # This implies no fast_install, which is unacceptable.
11513   # Some rework will be needed to allow for fast_install
11514   # before this can be enabled.
11515   hardcode_into_libs=yes
11516
11517   # Append ld.so.conf contents to the search path
11518   if test -f /etc/ld.so.conf; then
11519     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11520     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11521   fi
11522
11523   # We used to test for /lib/ld.so.1 and disable shared libraries on
11524   # powerpc, because MkLinux only supported shared libraries with the
11525   # GNU dynamic linker.  Since this was broken with cross compilers,
11526   # most powerpc-linux boxes support dynamic linking these days and
11527   # people can always --disable-shared, the test was removed, and we
11528   # assume the GNU/Linux dynamic linker is in use.
11529   dynamic_linker='GNU/Linux ld.so'
11530   ;;
11531
11532 knetbsd*-gnu)
11533   version_type=linux
11534   need_lib_prefix=no
11535   need_version=no
11536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11537   soname_spec='${libname}${release}${shared_ext}$major'
11538   shlibpath_var=LD_LIBRARY_PATH
11539   shlibpath_overrides_runpath=no
11540   hardcode_into_libs=yes
11541   dynamic_linker='GNU ld.so'
11542   ;;
11543
11544 netbsd*)
11545   version_type=sunos
11546   need_lib_prefix=no
11547   need_version=no
11548   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11549     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11550     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11551     dynamic_linker='NetBSD (a.out) ld.so'
11552   else
11553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11554     soname_spec='${libname}${release}${shared_ext}$major'
11555     dynamic_linker='NetBSD ld.elf_so'
11556   fi
11557   shlibpath_var=LD_LIBRARY_PATH
11558   shlibpath_overrides_runpath=yes
11559   hardcode_into_libs=yes
11560   ;;
11561
11562 newsos6)
11563   version_type=linux
11564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11565   shlibpath_var=LD_LIBRARY_PATH
11566   shlibpath_overrides_runpath=yes
11567   ;;
11568
11569 nto-qnx*)
11570   version_type=linux
11571   need_lib_prefix=no
11572   need_version=no
11573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574   soname_spec='${libname}${release}${shared_ext}$major'
11575   shlibpath_var=LD_LIBRARY_PATH
11576   shlibpath_overrides_runpath=yes
11577   ;;
11578
11579 openbsd*)
11580   version_type=sunos
11581   need_lib_prefix=no
11582   need_version=yes
11583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11584   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11585   shlibpath_var=LD_LIBRARY_PATH
11586   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11587     case $host_os in
11588       openbsd2.[89] | openbsd2.[89].*)
11589         shlibpath_overrides_runpath=no
11590         ;;
11591       *)
11592         shlibpath_overrides_runpath=yes
11593         ;;
11594       esac
11595   else
11596     shlibpath_overrides_runpath=yes
11597   fi
11598   ;;
11599
11600 os2*)
11601   libname_spec='$name'
11602   shrext=".dll"
11603   need_lib_prefix=no
11604   library_names_spec='$libname${shared_ext} $libname.a'
11605   dynamic_linker='OS/2 ld.exe'
11606   shlibpath_var=LIBPATH
11607   ;;
11608
11609 osf3* | osf4* | osf5*)
11610   version_type=osf
11611   need_lib_prefix=no
11612   need_version=no
11613   soname_spec='${libname}${release}${shared_ext}$major'
11614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615   shlibpath_var=LD_LIBRARY_PATH
11616   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11617   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11618   ;;
11619
11620 sco3.2v5*)
11621   version_type=osf
11622   soname_spec='${libname}${release}${shared_ext}$major'
11623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624   shlibpath_var=LD_LIBRARY_PATH
11625   ;;
11626
11627 solaris*)
11628   version_type=linux
11629   need_lib_prefix=no
11630   need_version=no
11631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632   soname_spec='${libname}${release}${shared_ext}$major'
11633   shlibpath_var=LD_LIBRARY_PATH
11634   shlibpath_overrides_runpath=yes
11635   hardcode_into_libs=yes
11636   # ldd complains unless libraries are executable
11637   postinstall_cmds='chmod +x $lib'
11638   ;;
11639
11640 sunos4*)
11641   version_type=sunos
11642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11643   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11644   shlibpath_var=LD_LIBRARY_PATH
11645   shlibpath_overrides_runpath=yes
11646   if test "$with_gnu_ld" = yes; then
11647     need_lib_prefix=no
11648   fi
11649   need_version=yes
11650   ;;
11651
11652 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11653   version_type=linux
11654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655   soname_spec='${libname}${release}${shared_ext}$major'
11656   shlibpath_var=LD_LIBRARY_PATH
11657   case $host_vendor in
11658     sni)
11659       shlibpath_overrides_runpath=no
11660       need_lib_prefix=no
11661       export_dynamic_flag_spec='${wl}-Blargedynsym'
11662       runpath_var=LD_RUN_PATH
11663       ;;
11664     siemens)
11665       need_lib_prefix=no
11666       ;;
11667     motorola)
11668       need_lib_prefix=no
11669       need_version=no
11670       shlibpath_overrides_runpath=no
11671       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11672       ;;
11673   esac
11674   ;;
11675
11676 sysv4*MP*)
11677   if test -d /usr/nec ;then
11678     version_type=linux
11679     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11680     soname_spec='$libname${shared_ext}.$major'
11681     shlibpath_var=LD_LIBRARY_PATH
11682   fi
11683   ;;
11684
11685 uts4*)
11686   version_type=linux
11687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688   soname_spec='${libname}${release}${shared_ext}$major'
11689   shlibpath_var=LD_LIBRARY_PATH
11690   ;;
11691
11692 *)
11693   dynamic_linker=no
11694   ;;
11695 esac
11696 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11697 echo "${ECHO_T}$dynamic_linker" >&6
11698 test "$dynamic_linker" = no && can_build_shared=no
11699
11700 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11701 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11702 hardcode_action_CXX=
11703 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11704    test -n "$runpath_var CXX" || \
11705    test "X$hardcode_automatic_CXX"="Xyes" ; then
11706
11707   # We can hardcode non-existant directories.
11708   if test "$hardcode_direct_CXX" != no &&
11709      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11710      # have to relink, otherwise we might link with an installed library
11711      # when we should be linking with a yet-to-be-installed one
11712      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11713      test "$hardcode_minus_L_CXX" != no; then
11714     # Linking always hardcodes the temporary library directory.
11715     hardcode_action_CXX=relink
11716   else
11717     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11718     hardcode_action_CXX=immediate
11719   fi
11720 else
11721   # We cannot hardcode anything, or else we can only hardcode existing
11722   # directories.
11723   hardcode_action_CXX=unsupported
11724 fi
11725 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11726 echo "${ECHO_T}$hardcode_action_CXX" >&6
11727
11728 if test "$hardcode_action_CXX" = relink; then
11729   # Fast installation is not supported
11730   enable_fast_install=no
11731 elif test "$shlibpath_overrides_runpath" = yes ||
11732      test "$enable_shared" = no; then
11733   # Fast installation is not necessary
11734   enable_fast_install=needless
11735 fi
11736
11737 striplib=
11738 old_striplib=
11739 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11740 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11741 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11742   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11743   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11744   echo "$as_me:$LINENO: result: yes" >&5
11745 echo "${ECHO_T}yes" >&6
11746 else
11747 # FIXME - insert some real tests, host_os isn't really good enough
11748   case $host_os in
11749    darwin*)
11750        if test -n "$STRIP" ; then
11751          striplib="$STRIP -x"
11752          echo "$as_me:$LINENO: result: yes" >&5
11753 echo "${ECHO_T}yes" >&6
11754        else
11755   echo "$as_me:$LINENO: result: no" >&5
11756 echo "${ECHO_T}no" >&6
11757 fi
11758        ;;
11759    *)
11760   echo "$as_me:$LINENO: result: no" >&5
11761 echo "${ECHO_T}no" >&6
11762     ;;
11763   esac
11764 fi
11765
11766 if test "x$enable_dlopen" != xyes; then
11767   enable_dlopen=unknown
11768   enable_dlopen_self=unknown
11769   enable_dlopen_self_static=unknown
11770 else
11771   lt_cv_dlopen=no
11772   lt_cv_dlopen_libs=
11773
11774   case $host_os in
11775   beos*)
11776     lt_cv_dlopen="load_add_on"
11777     lt_cv_dlopen_libs=
11778     lt_cv_dlopen_self=yes
11779     ;;
11780
11781   mingw* | pw32*)
11782     lt_cv_dlopen="LoadLibrary"
11783     lt_cv_dlopen_libs=
11784    ;;
11785
11786   cygwin*)
11787     lt_cv_dlopen="dlopen"
11788     lt_cv_dlopen_libs=
11789    ;;
11790
11791   darwin*)
11792   # if libdl is installed we need to link against it
11793     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11794 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11795 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11796   echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798   ac_check_lib_save_LIBS=$LIBS
11799 LIBS="-ldl  $LIBS"
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806
11807 /* Override any gcc2 internal prototype to avoid an error.  */
11808 #ifdef __cplusplus
11809 extern "C"
11810 #endif
11811 /* We use char because int might match the return type of a gcc2
11812    builtin and then its argument prototype would still apply.  */
11813 char dlopen ();
11814 int
11815 main ()
11816 {
11817 dlopen ();
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 rm -f conftest.$ac_objext conftest$ac_exeext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824   (eval $ac_link) 2>conftest.er1
11825   ac_status=$?
11826   grep -v '^ *+' conftest.er1 >conftest.err
11827   rm -f conftest.er1
11828   cat conftest.err >&5
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); } &&
11831          { ac_try='test -z "$ac_cxx_werror_flag"
11832                          || test ! -s conftest.err'
11833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834   (eval $ac_try) 2>&5
11835   ac_status=$?
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); }; } &&
11838          { ac_try='test -s conftest$ac_exeext'
11839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840   (eval $ac_try) 2>&5
11841   ac_status=$?
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); }; }; then
11844   ac_cv_lib_dl_dlopen=yes
11845 else
11846   echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849 ac_cv_lib_dl_dlopen=no
11850 fi
11851 rm -f conftest.err conftest.$ac_objext \
11852       conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_lib_save_LIBS
11854 fi
11855 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11856 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11857 if test $ac_cv_lib_dl_dlopen = yes; then
11858   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11859 else
11860
11861     lt_cv_dlopen="dyld"
11862     lt_cv_dlopen_libs=
11863     lt_cv_dlopen_self=yes
11864
11865 fi
11866
11867    ;;
11868
11869   *)
11870     echo "$as_me:$LINENO: checking for shl_load" >&5
11871 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11872 if test "${ac_cv_func_shl_load+set}" = set; then
11873   echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875   cat >conftest.$ac_ext <<_ACEOF
11876 /* confdefs.h.  */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h.  */
11881 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11883 #define shl_load innocuous_shl_load
11884
11885 /* System header to define __stub macros and hopefully few prototypes,
11886     which can conflict with char shl_load (); below.
11887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11888     <limits.h> exists even on freestanding compilers.  */
11889
11890 #ifdef __STDC__
11891 # include <limits.h>
11892 #else
11893 # include <assert.h>
11894 #endif
11895
11896 #undef shl_load
11897
11898 /* Override any gcc2 internal prototype to avoid an error.  */
11899 #ifdef __cplusplus
11900 extern "C"
11901 {
11902 #endif
11903 /* We use char because int might match the return type of a gcc2
11904    builtin and then its argument prototype would still apply.  */
11905 char shl_load ();
11906 /* The GNU C library defines this for functions which it implements
11907     to always fail with ENOSYS.  Some functions are actually named
11908     something starting with __ and the normal name is an alias.  */
11909 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11910 choke me
11911 #else
11912 char (*f) () = shl_load;
11913 #endif
11914 #ifdef __cplusplus
11915 }
11916 #endif
11917
11918 int
11919 main ()
11920 {
11921 return f != shl_load;
11922   ;
11923   return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928   (eval $ac_link) 2>conftest.er1
11929   ac_status=$?
11930   grep -v '^ *+' conftest.er1 >conftest.err
11931   rm -f conftest.er1
11932   cat conftest.err >&5
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); } &&
11935          { ac_try='test -z "$ac_cxx_werror_flag"
11936                          || test ! -s conftest.err'
11937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938   (eval $ac_try) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; } &&
11942          { ac_try='test -s conftest$ac_exeext'
11943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944   (eval $ac_try) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; }; then
11948   ac_cv_func_shl_load=yes
11949 else
11950   echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 ac_cv_func_shl_load=no
11954 fi
11955 rm -f conftest.err conftest.$ac_objext \
11956       conftest$ac_exeext conftest.$ac_ext
11957 fi
11958 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11959 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11960 if test $ac_cv_func_shl_load = yes; then
11961   lt_cv_dlopen="shl_load"
11962 else
11963   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11964 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11965 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11966   echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968   ac_check_lib_save_LIBS=$LIBS
11969 LIBS="-ldld  $LIBS"
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h.  */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h.  */
11976
11977 /* Override any gcc2 internal prototype to avoid an error.  */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 /* We use char because int might match the return type of a gcc2
11982    builtin and then its argument prototype would still apply.  */
11983 char shl_load ();
11984 int
11985 main ()
11986 {
11987 shl_load ();
11988   ;
11989   return 0;
11990 }
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994   (eval $ac_link) 2>conftest.er1
11995   ac_status=$?
11996   grep -v '^ *+' conftest.er1 >conftest.err
11997   rm -f conftest.er1
11998   cat conftest.err >&5
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } &&
12001          { ac_try='test -z "$ac_cxx_werror_flag"
12002                          || test ! -s conftest.err'
12003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004   (eval $ac_try) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); }; } &&
12008          { ac_try='test -s conftest$ac_exeext'
12009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010   (eval $ac_try) 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); }; }; then
12014   ac_cv_lib_dld_shl_load=yes
12015 else
12016   echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 ac_cv_lib_dld_shl_load=no
12020 fi
12021 rm -f conftest.err conftest.$ac_objext \
12022       conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_lib_save_LIBS
12024 fi
12025 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12026 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12027 if test $ac_cv_lib_dld_shl_load = yes; then
12028   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12029 else
12030   echo "$as_me:$LINENO: checking for dlopen" >&5
12031 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12032 if test "${ac_cv_func_dlopen+set}" = set; then
12033   echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035   cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12043 #define dlopen innocuous_dlopen
12044
12045 /* System header to define __stub macros and hopefully few prototypes,
12046     which can conflict with char dlopen (); below.
12047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12048     <limits.h> exists even on freestanding compilers.  */
12049
12050 #ifdef __STDC__
12051 # include <limits.h>
12052 #else
12053 # include <assert.h>
12054 #endif
12055
12056 #undef dlopen
12057
12058 /* Override any gcc2 internal prototype to avoid an error.  */
12059 #ifdef __cplusplus
12060 extern "C"
12061 {
12062 #endif
12063 /* We use char because int might match the return type of a gcc2
12064    builtin and then its argument prototype would still apply.  */
12065 char dlopen ();
12066 /* The GNU C library defines this for functions which it implements
12067     to always fail with ENOSYS.  Some functions are actually named
12068     something starting with __ and the normal name is an alias.  */
12069 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12070 choke me
12071 #else
12072 char (*f) () = dlopen;
12073 #endif
12074 #ifdef __cplusplus
12075 }
12076 #endif
12077
12078 int
12079 main ()
12080 {
12081 return f != dlopen;
12082   ;
12083   return 0;
12084 }
12085 _ACEOF
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12088   (eval $ac_link) 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } &&
12095          { ac_try='test -z "$ac_cxx_werror_flag"
12096                          || test ! -s conftest.err'
12097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098   (eval $ac_try) 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); }; } &&
12102          { ac_try='test -s conftest$ac_exeext'
12103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104   (eval $ac_try) 2>&5
12105   ac_status=$?
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); }; }; then
12108   ac_cv_func_dlopen=yes
12109 else
12110   echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 ac_cv_func_dlopen=no
12114 fi
12115 rm -f conftest.err conftest.$ac_objext \
12116       conftest$ac_exeext conftest.$ac_ext
12117 fi
12118 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12119 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12120 if test $ac_cv_func_dlopen = yes; then
12121   lt_cv_dlopen="dlopen"
12122 else
12123   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12124 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12125 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12126   echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128   ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-ldl  $LIBS"
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h.  */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h.  */
12136
12137 /* Override any gcc2 internal prototype to avoid an error.  */
12138 #ifdef __cplusplus
12139 extern "C"
12140 #endif
12141 /* We use char because int might match the return type of a gcc2
12142    builtin and then its argument prototype would still apply.  */
12143 char dlopen ();
12144 int
12145 main ()
12146 {
12147 dlopen ();
12148   ;
12149   return 0;
12150 }
12151 _ACEOF
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12154   (eval $ac_link) 2>conftest.er1
12155   ac_status=$?
12156   grep -v '^ *+' conftest.er1 >conftest.err
12157   rm -f conftest.er1
12158   cat conftest.err >&5
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); } &&
12161          { ac_try='test -z "$ac_cxx_werror_flag"
12162                          || test ! -s conftest.err'
12163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164   (eval $ac_try) 2>&5
12165   ac_status=$?
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); }; } &&
12168          { ac_try='test -s conftest$ac_exeext'
12169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170   (eval $ac_try) 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; }; then
12174   ac_cv_lib_dl_dlopen=yes
12175 else
12176   echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12178
12179 ac_cv_lib_dl_dlopen=no
12180 fi
12181 rm -f conftest.err conftest.$ac_objext \
12182       conftest$ac_exeext conftest.$ac_ext
12183 LIBS=$ac_check_lib_save_LIBS
12184 fi
12185 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12186 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12187 if test $ac_cv_lib_dl_dlopen = yes; then
12188   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12189 else
12190   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12191 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12192 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12193   echo $ECHO_N "(cached) $ECHO_C" >&6
12194 else
12195   ac_check_lib_save_LIBS=$LIBS
12196 LIBS="-lsvld  $LIBS"
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203
12204 /* Override any gcc2 internal prototype to avoid an error.  */
12205 #ifdef __cplusplus
12206 extern "C"
12207 #endif
12208 /* We use char because int might match the return type of a gcc2
12209    builtin and then its argument prototype would still apply.  */
12210 char dlopen ();
12211 int
12212 main ()
12213 {
12214 dlopen ();
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221   (eval $ac_link) 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228          { ac_try='test -z "$ac_cxx_werror_flag"
12229                          || test ! -s conftest.err'
12230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231   (eval $ac_try) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; } &&
12235          { ac_try='test -s conftest$ac_exeext'
12236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237   (eval $ac_try) 2>&5
12238   ac_status=$?
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); }; }; then
12241   ac_cv_lib_svld_dlopen=yes
12242 else
12243   echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12245
12246 ac_cv_lib_svld_dlopen=no
12247 fi
12248 rm -f conftest.err conftest.$ac_objext \
12249       conftest$ac_exeext conftest.$ac_ext
12250 LIBS=$ac_check_lib_save_LIBS
12251 fi
12252 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12253 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12254 if test $ac_cv_lib_svld_dlopen = yes; then
12255   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12256 else
12257   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12258 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12259 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12260   echo $ECHO_N "(cached) $ECHO_C" >&6
12261 else
12262   ac_check_lib_save_LIBS=$LIBS
12263 LIBS="-ldld  $LIBS"
12264 cat >conftest.$ac_ext <<_ACEOF
12265 /* confdefs.h.  */
12266 _ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h.  */
12270
12271 /* Override any gcc2 internal prototype to avoid an error.  */
12272 #ifdef __cplusplus
12273 extern "C"
12274 #endif
12275 /* We use char because int might match the return type of a gcc2
12276    builtin and then its argument prototype would still apply.  */
12277 char dld_link ();
12278 int
12279 main ()
12280 {
12281 dld_link ();
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12288   (eval $ac_link) 2>conftest.er1
12289   ac_status=$?
12290   grep -v '^ *+' conftest.er1 >conftest.err
12291   rm -f conftest.er1
12292   cat conftest.err >&5
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); } &&
12295          { ac_try='test -z "$ac_cxx_werror_flag"
12296                          || test ! -s conftest.err'
12297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298   (eval $ac_try) 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); }; } &&
12302          { ac_try='test -s conftest$ac_exeext'
12303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304   (eval $ac_try) 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); }; }; then
12308   ac_cv_lib_dld_dld_link=yes
12309 else
12310   echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313 ac_cv_lib_dld_dld_link=no
12314 fi
12315 rm -f conftest.err conftest.$ac_objext \
12316       conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12318 fi
12319 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12320 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12321 if test $ac_cv_lib_dld_dld_link = yes; then
12322   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12323 fi
12324
12325
12326 fi
12327
12328
12329 fi
12330
12331
12332 fi
12333
12334
12335 fi
12336
12337
12338 fi
12339
12340     ;;
12341   esac
12342
12343   if test "x$lt_cv_dlopen" != xno; then
12344     enable_dlopen=yes
12345   else
12346     enable_dlopen=no
12347   fi
12348
12349   case $lt_cv_dlopen in
12350   dlopen)
12351     save_CPPFLAGS="$CPPFLAGS"
12352     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12353
12354     save_LDFLAGS="$LDFLAGS"
12355     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12356
12357     save_LIBS="$LIBS"
12358     LIBS="$lt_cv_dlopen_libs $LIBS"
12359
12360     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12361 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12362 if test "${lt_cv_dlopen_self+set}" = set; then
12363   echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365           if test "$cross_compiling" = yes; then :
12366   lt_cv_dlopen_self=cross
12367 else
12368   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12369   lt_status=$lt_dlunknown
12370   cat > conftest.$ac_ext <<EOF
12371 #line 12371 "configure"
12372 #include "confdefs.h"
12373
12374 #if HAVE_DLFCN_H
12375 #include <dlfcn.h>
12376 #endif
12377
12378 #include <stdio.h>
12379
12380 #ifdef RTLD_GLOBAL
12381 #  define LT_DLGLOBAL           RTLD_GLOBAL
12382 #else
12383 #  ifdef DL_GLOBAL
12384 #    define LT_DLGLOBAL         DL_GLOBAL
12385 #  else
12386 #    define LT_DLGLOBAL         0
12387 #  endif
12388 #endif
12389
12390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12391    find out it does not work in some platform. */
12392 #ifndef LT_DLLAZY_OR_NOW
12393 #  ifdef RTLD_LAZY
12394 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12395 #  else
12396 #    ifdef DL_LAZY
12397 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12398 #    else
12399 #      ifdef RTLD_NOW
12400 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12401 #      else
12402 #        ifdef DL_NOW
12403 #          define LT_DLLAZY_OR_NOW      DL_NOW
12404 #        else
12405 #          define LT_DLLAZY_OR_NOW      0
12406 #        endif
12407 #      endif
12408 #    endif
12409 #  endif
12410 #endif
12411
12412 #ifdef __cplusplus
12413 extern "C" void exit (int);
12414 #endif
12415
12416 void fnord() { int i=42;}
12417 int main ()
12418 {
12419   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12420   int status = $lt_dlunknown;
12421
12422   if (self)
12423     {
12424       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12425       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12426       /* dlclose (self); */
12427     }
12428
12429     exit (status);
12430 }
12431 EOF
12432   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12433   (eval $ac_link) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12437     (./conftest; exit; ) 2>/dev/null
12438     lt_status=$?
12439     case x$lt_status in
12440       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12441       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12442       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12443     esac
12444   else :
12445     # compilation failed
12446     lt_cv_dlopen_self=no
12447   fi
12448 fi
12449 rm -fr conftest*
12450
12451
12452 fi
12453 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12454 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12455
12456     if test "x$lt_cv_dlopen_self" = xyes; then
12457       LDFLAGS="$LDFLAGS $link_static_flag"
12458       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12459 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12460 if test "${lt_cv_dlopen_self_static+set}" = set; then
12461   echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463           if test "$cross_compiling" = yes; then :
12464   lt_cv_dlopen_self_static=cross
12465 else
12466   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12467   lt_status=$lt_dlunknown
12468   cat > conftest.$ac_ext <<EOF
12469 #line 12469 "configure"
12470 #include "confdefs.h"
12471
12472 #if HAVE_DLFCN_H
12473 #include <dlfcn.h>
12474 #endif
12475
12476 #include <stdio.h>
12477
12478 #ifdef RTLD_GLOBAL
12479 #  define LT_DLGLOBAL           RTLD_GLOBAL
12480 #else
12481 #  ifdef DL_GLOBAL
12482 #    define LT_DLGLOBAL         DL_GLOBAL
12483 #  else
12484 #    define LT_DLGLOBAL         0
12485 #  endif
12486 #endif
12487
12488 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12489    find out it does not work in some platform. */
12490 #ifndef LT_DLLAZY_OR_NOW
12491 #  ifdef RTLD_LAZY
12492 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12493 #  else
12494 #    ifdef DL_LAZY
12495 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12496 #    else
12497 #      ifdef RTLD_NOW
12498 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12499 #      else
12500 #        ifdef DL_NOW
12501 #          define LT_DLLAZY_OR_NOW      DL_NOW
12502 #        else
12503 #          define LT_DLLAZY_OR_NOW      0
12504 #        endif
12505 #      endif
12506 #    endif
12507 #  endif
12508 #endif
12509
12510 #ifdef __cplusplus
12511 extern "C" void exit (int);
12512 #endif
12513
12514 void fnord() { int i=42;}
12515 int main ()
12516 {
12517   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12518   int status = $lt_dlunknown;
12519
12520   if (self)
12521     {
12522       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12523       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12524       /* dlclose (self); */
12525     }
12526
12527     exit (status);
12528 }
12529 EOF
12530   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531   (eval $ac_link) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12535     (./conftest; exit; ) 2>/dev/null
12536     lt_status=$?
12537     case x$lt_status in
12538       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12539       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12540       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12541     esac
12542   else :
12543     # compilation failed
12544     lt_cv_dlopen_self_static=no
12545   fi
12546 fi
12547 rm -fr conftest*
12548
12549
12550 fi
12551 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12552 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12553     fi
12554
12555     CPPFLAGS="$save_CPPFLAGS"
12556     LDFLAGS="$save_LDFLAGS"
12557     LIBS="$save_LIBS"
12558     ;;
12559   esac
12560
12561   case $lt_cv_dlopen_self in
12562   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12563   *) enable_dlopen_self=unknown ;;
12564   esac
12565
12566   case $lt_cv_dlopen_self_static in
12567   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12568   *) enable_dlopen_self_static=unknown ;;
12569   esac
12570 fi
12571
12572
12573 # The else clause should only fire when bootstrapping the
12574 # libtool distribution, otherwise you forgot to ship ltmain.sh
12575 # with your package, and you will get complaints that there are
12576 # no rules to generate ltmain.sh.
12577 if test -f "$ltmain"; then
12578   # See if we are running on zsh, and set the options which allow our commands through
12579   # without removal of \ escapes.
12580   if test -n "${ZSH_VERSION+set}" ; then
12581     setopt NO_GLOB_SUBST
12582   fi
12583   # Now quote all the things that may contain metacharacters while being
12584   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12585   # variables and quote the copies for generation of the libtool script.
12586   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12587     SED SHELL STRIP \
12588     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12589     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12590     deplibs_check_method reload_flag reload_cmds need_locks \
12591     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12592     lt_cv_sys_global_symbol_to_c_name_address \
12593     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12594     old_postinstall_cmds old_postuninstall_cmds \
12595     compiler_CXX \
12596     CC_CXX \
12597     LD_CXX \
12598     lt_prog_compiler_wl_CXX \
12599     lt_prog_compiler_pic_CXX \
12600     lt_prog_compiler_static_CXX \
12601     lt_prog_compiler_no_builtin_flag_CXX \
12602     export_dynamic_flag_spec_CXX \
12603     thread_safe_flag_spec_CXX \
12604     whole_archive_flag_spec_CXX \
12605     enable_shared_with_static_runtimes_CXX \
12606     old_archive_cmds_CXX \
12607     old_archive_from_new_cmds_CXX \
12608     predep_objects_CXX \
12609     postdep_objects_CXX \
12610     predeps_CXX \
12611     postdeps_CXX \
12612     compiler_lib_search_path_CXX \
12613     archive_cmds_CXX \
12614     archive_expsym_cmds_CXX \
12615     postinstall_cmds_CXX \
12616     postuninstall_cmds_CXX \
12617     old_archive_from_expsyms_cmds_CXX \
12618     allow_undefined_flag_CXX \
12619     no_undefined_flag_CXX \
12620     export_symbols_cmds_CXX \
12621     hardcode_libdir_flag_spec_CXX \
12622     hardcode_libdir_flag_spec_ld_CXX \
12623     hardcode_libdir_separator_CXX \
12624     hardcode_automatic_CXX \
12625     module_cmds_CXX \
12626     module_expsym_cmds_CXX \
12627     lt_cv_prog_compiler_c_o_CXX \
12628     exclude_expsyms_CXX \
12629     include_expsyms_CXX; do
12630
12631     case $var in
12632     old_archive_cmds_CXX | \
12633     old_archive_from_new_cmds_CXX | \
12634     archive_cmds_CXX | \
12635     archive_expsym_cmds_CXX | \
12636     module_cmds_CXX | \
12637     module_expsym_cmds_CXX | \
12638     old_archive_from_expsyms_cmds_CXX | \
12639     export_symbols_cmds_CXX | \
12640     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12641     postinstall_cmds | postuninstall_cmds | \
12642     old_postinstall_cmds | old_postuninstall_cmds | \
12643     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12644       # Double-quote double-evaled strings.
12645       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12646       ;;
12647     *)
12648       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12649       ;;
12650     esac
12651   done
12652
12653   case $lt_echo in
12654   *'\$0 --fallback-echo"')
12655     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12656     ;;
12657   esac
12658
12659 cfgfile="$ofile"
12660
12661   cat <<__EOF__ >> "$cfgfile"
12662 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12663
12664 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12665
12666 # Shell to use when invoking shell scripts.
12667 SHELL=$lt_SHELL
12668
12669 # Whether or not to build shared libraries.
12670 build_libtool_libs=$enable_shared
12671
12672 # Whether or not to build static libraries.
12673 build_old_libs=$enable_static
12674
12675 # Whether or not to add -lc for building shared libraries.
12676 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12677
12678 # Whether or not to disallow shared libs when runtime libs are static
12679 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12680
12681 # Whether or not to optimize for fast installation.
12682 fast_install=$enable_fast_install
12683
12684 # The host system.
12685 host_alias=$host_alias
12686 host=$host
12687
12688 # An echo program that does not interpret backslashes.
12689 echo=$lt_echo
12690
12691 # The archiver.
12692 AR=$lt_AR
12693 AR_FLAGS=$lt_AR_FLAGS
12694
12695 # A C compiler.
12696 LTCC=$lt_LTCC
12697
12698 # A language-specific compiler.
12699 CC=$lt_compiler_CXX
12700
12701 # Is the compiler the GNU C compiler?
12702 with_gcc=$GCC_CXX
12703
12704 # An ERE matcher.
12705 EGREP=$lt_EGREP
12706
12707 # The linker used to build libraries.
12708 LD=$lt_LD_CXX
12709
12710 # Whether we need hard or soft links.
12711 LN_S=$lt_LN_S
12712
12713 # A BSD-compatible nm program.
12714 NM=$lt_NM
12715
12716 # A symbol stripping program
12717 STRIP=$lt_STRIP
12718
12719 # Used to examine libraries when file_magic_cmd begins "file"
12720 MAGIC_CMD=$MAGIC_CMD
12721
12722 # Used on cygwin: DLL creation program.
12723 DLLTOOL="$DLLTOOL"
12724
12725 # Used on cygwin: object dumper.
12726 OBJDUMP="$OBJDUMP"
12727
12728 # Used on cygwin: assembler.
12729 AS="$AS"
12730
12731 # The name of the directory that contains temporary libtool files.
12732 objdir=$objdir
12733
12734 # How to create reloadable object files.
12735 reload_flag=$lt_reload_flag
12736 reload_cmds=$lt_reload_cmds
12737
12738 # How to pass a linker flag through the compiler.
12739 wl=$lt_lt_prog_compiler_wl_CXX
12740
12741 # Object file suffix (normally "o").
12742 objext="$ac_objext"
12743
12744 # Old archive suffix (normally "a").
12745 libext="$libext"
12746
12747 # Shared library suffix (normally ".so").
12748 shrext='$shrext'
12749
12750 # Executable file suffix (normally "").
12751 exeext="$exeext"
12752
12753 # Additional compiler flags for building library objects.
12754 pic_flag=$lt_lt_prog_compiler_pic_CXX
12755 pic_mode=$pic_mode
12756
12757 # What is the maximum length of a command?
12758 max_cmd_len=$lt_cv_sys_max_cmd_len
12759
12760 # Does compiler simultaneously support -c and -o options?
12761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12762
12763 # Must we lock files when doing compilation ?
12764 need_locks=$lt_need_locks
12765
12766 # Do we need the lib prefix for modules?
12767 need_lib_prefix=$need_lib_prefix
12768
12769 # Do we need a version for libraries?
12770 need_version=$need_version
12771
12772 # Whether dlopen is supported.
12773 dlopen_support=$enable_dlopen
12774
12775 # Whether dlopen of programs is supported.
12776 dlopen_self=$enable_dlopen_self
12777
12778 # Whether dlopen of statically linked programs is supported.
12779 dlopen_self_static=$enable_dlopen_self_static
12780
12781 # Compiler flag to prevent dynamic linking.
12782 link_static_flag=$lt_lt_prog_compiler_static_CXX
12783
12784 # Compiler flag to turn off builtin functions.
12785 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12786
12787 # Compiler flag to allow reflexive dlopens.
12788 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12789
12790 # Compiler flag to generate shared objects directly from archives.
12791 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12792
12793 # Compiler flag to generate thread-safe objects.
12794 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12795
12796 # Library versioning type.
12797 version_type=$version_type
12798
12799 # Format of library name prefix.
12800 libname_spec=$lt_libname_spec
12801
12802 # List of archive names.  First name is the real one, the rest are links.
12803 # The last name is the one that the linker finds with -lNAME.
12804 library_names_spec=$lt_library_names_spec
12805
12806 # The coded name of the library, if different from the real name.
12807 soname_spec=$lt_soname_spec
12808
12809 # Commands used to build and install an old-style archive.
12810 RANLIB=$lt_RANLIB
12811 old_archive_cmds=$lt_old_archive_cmds_CXX
12812 old_postinstall_cmds=$lt_old_postinstall_cmds
12813 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12814
12815 # Create an old-style archive from a shared archive.
12816 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12817
12818 # Create a temporary old-style archive to link instead of a shared archive.
12819 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12820
12821 # Commands used to build and install a shared archive.
12822 archive_cmds=$lt_archive_cmds_CXX
12823 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12824 postinstall_cmds=$lt_postinstall_cmds
12825 postuninstall_cmds=$lt_postuninstall_cmds
12826
12827 # Commands used to build a loadable module (assumed same as above if empty)
12828 module_cmds=$lt_module_cmds_CXX
12829 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12830
12831 # Commands to strip libraries.
12832 old_striplib=$lt_old_striplib
12833 striplib=$lt_striplib
12834
12835 # Dependencies to place before the objects being linked to create a
12836 # shared library.
12837 predep_objects=$lt_predep_objects_CXX
12838
12839 # Dependencies to place after the objects being linked to create a
12840 # shared library.
12841 postdep_objects=$lt_postdep_objects_CXX
12842
12843 # Dependencies to place before the objects being linked to create a
12844 # shared library.
12845 predeps=$lt_predeps_CXX
12846
12847 # Dependencies to place after the objects being linked to create a
12848 # shared library.
12849 postdeps=$lt_postdeps_CXX
12850
12851 # The library search path used internally by the compiler when linking
12852 # a shared library.
12853 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12854
12855 # Method to check whether dependent libraries are shared objects.
12856 deplibs_check_method=$lt_deplibs_check_method
12857
12858 # Command to use when deplibs_check_method == file_magic.
12859 file_magic_cmd=$lt_file_magic_cmd
12860
12861 # Flag that allows shared libraries with undefined symbols to be built.
12862 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12863
12864 # Flag that forces no undefined symbols.
12865 no_undefined_flag=$lt_no_undefined_flag_CXX
12866
12867 # Commands used to finish a libtool library installation in a directory.
12868 finish_cmds=$lt_finish_cmds
12869
12870 # Same as above, but a single script fragment to be evaled but not shown.
12871 finish_eval=$lt_finish_eval
12872
12873 # Take the output of nm and produce a listing of raw symbols and C names.
12874 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12875
12876 # Transform the output of nm in a proper C declaration
12877 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12878
12879 # Transform the output of nm in a C name address pair
12880 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12881
12882 # This is the shared library runtime path variable.
12883 runpath_var=$runpath_var
12884
12885 # This is the shared library path variable.
12886 shlibpath_var=$shlibpath_var
12887
12888 # Is shlibpath searched before the hard-coded library search path?
12889 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12890
12891 # How to hardcode a shared library path into an executable.
12892 hardcode_action=$hardcode_action_CXX
12893
12894 # Whether we should hardcode library paths into libraries.
12895 hardcode_into_libs=$hardcode_into_libs
12896
12897 # Flag to hardcode \$libdir into a binary during linking.
12898 # This must work even if \$libdir does not exist.
12899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12900
12901 # If ld is used when linking, flag to hardcode \$libdir into
12902 # a binary during linking. This must work even if \$libdir does
12903 # not exist.
12904 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12905
12906 # Whether we need a single -rpath flag with a separated argument.
12907 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12908
12909 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12910 # resulting binary.
12911 hardcode_direct=$hardcode_direct_CXX
12912
12913 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12914 # resulting binary.
12915 hardcode_minus_L=$hardcode_minus_L_CXX
12916
12917 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12918 # the resulting binary.
12919 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12920
12921 # Set to yes if building a shared library automatically hardcodes DIR into the library
12922 # and all subsequent libraries and executables linked against it.
12923 hardcode_automatic=$hardcode_automatic_CXX
12924
12925 # Variables whose values should be saved in libtool wrapper scripts and
12926 # restored at relink time.
12927 variables_saved_for_relink="$variables_saved_for_relink"
12928
12929 # Whether libtool must link a program against all its dependency libraries.
12930 link_all_deplibs=$link_all_deplibs_CXX
12931
12932 # Compile-time system search path for libraries
12933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12934
12935 # Run-time system search path for libraries
12936 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12937
12938 # Fix the shell variable \$srcfile for the compiler.
12939 fix_srcfile_path="$fix_srcfile_path_CXX"
12940
12941 # Set to yes if exported symbols are required.
12942 always_export_symbols=$always_export_symbols_CXX
12943
12944 # The commands to list exported symbols.
12945 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12946
12947 # The commands to extract the exported symbol list from a shared archive.
12948 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12949
12950 # Symbols that should not be listed in the preloaded symbols.
12951 exclude_expsyms=$lt_exclude_expsyms_CXX
12952
12953 # Symbols that must always be exported.
12954 include_expsyms=$lt_include_expsyms_CXX
12955
12956 # ### END LIBTOOL TAG CONFIG: $tagname
12957
12958 __EOF__
12959
12960
12961 else
12962   # If there is no Makefile yet, we rely on a make rule to execute
12963   # `config.status --recheck' to rerun these tests and create the
12964   # libtool script then.
12965   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12966   if test -f "$ltmain_in"; then
12967     test -f Makefile && make "$ltmain"
12968   fi
12969 fi
12970
12971
12972 ac_ext=c
12973 ac_cpp='$CPP $CPPFLAGS'
12974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12977
12978 CC=$lt_save_CC
12979 LDCXX=$LD
12980 LD=$lt_save_LD
12981 GCC=$lt_save_GCC
12982 with_gnu_ldcxx=$with_gnu_ld
12983 with_gnu_ld=$lt_save_with_gnu_ld
12984 lt_cv_path_LDCXX=$lt_cv_path_LD
12985 lt_cv_path_LD=$lt_save_path_LD
12986 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12987 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12988
12989         else
12990           tagname=""
12991         fi
12992         ;;
12993
12994       F77)
12995         if test -n "$F77" && test "X$F77" != "Xno"; then
12996
12997 ac_ext=f
12998 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12999 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13000 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13001
13002
13003 archive_cmds_need_lc_F77=no
13004 allow_undefined_flag_F77=
13005 always_export_symbols_F77=no
13006 archive_expsym_cmds_F77=
13007 export_dynamic_flag_spec_F77=
13008 hardcode_direct_F77=no
13009 hardcode_libdir_flag_spec_F77=
13010 hardcode_libdir_flag_spec_ld_F77=
13011 hardcode_libdir_separator_F77=
13012 hardcode_minus_L_F77=no
13013 hardcode_automatic_F77=no
13014 module_cmds_F77=
13015 module_expsym_cmds_F77=
13016 link_all_deplibs_F77=unknown
13017 old_archive_cmds_F77=$old_archive_cmds
13018 no_undefined_flag_F77=
13019 whole_archive_flag_spec_F77=
13020 enable_shared_with_static_runtimes_F77=no
13021
13022 # Source file extension for f77 test sources.
13023 ac_ext=f
13024
13025 # Object file extension for compiled f77 test sources.
13026 objext=o
13027 objext_F77=$objext
13028
13029 # Code to be used in simple compile tests
13030 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13031
13032 # Code to be used in simple link tests
13033 lt_simple_link_test_code="      program t\n      end\n"
13034
13035 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13036
13037 # If no C compiler was specified, use CC.
13038 LTCC=${LTCC-"$CC"}
13039
13040 # Allow CC to be a program name with arguments.
13041 compiler=$CC
13042
13043
13044 # Allow CC to be a program name with arguments.
13045 lt_save_CC="$CC"
13046 CC=${F77-"f77"}
13047 compiler=$CC
13048 compiler_F77=$CC
13049 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13050
13051 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13052 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13053 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13054 echo "${ECHO_T}$can_build_shared" >&6
13055
13056 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13057 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13058 test "$can_build_shared" = "no" && enable_shared=no
13059
13060 # On AIX, shared libraries and static libraries use the same namespace, and
13061 # are all built from PIC.
13062 case "$host_os" in
13063 aix3*)
13064   test "$enable_shared" = yes && enable_static=no
13065   if test -n "$RANLIB"; then
13066     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13067     postinstall_cmds='$RANLIB $lib'
13068   fi
13069   ;;
13070 aix4*)
13071   test "$enable_shared" = yes && enable_static=no
13072   ;;
13073 esac
13074 echo "$as_me:$LINENO: result: $enable_shared" >&5
13075 echo "${ECHO_T}$enable_shared" >&6
13076
13077 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13078 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13079 # Make sure either enable_shared or enable_static is yes.
13080 test "$enable_shared" = yes || enable_static=yes
13081 echo "$as_me:$LINENO: result: $enable_static" >&5
13082 echo "${ECHO_T}$enable_static" >&6
13083
13084 test "$ld_shlibs_F77" = no && can_build_shared=no
13085
13086 GCC_F77="$G77"
13087 LD_F77="$LD"
13088
13089 lt_prog_compiler_wl_F77=
13090 lt_prog_compiler_pic_F77=
13091 lt_prog_compiler_static_F77=
13092
13093 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13094 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13095
13096   if test "$GCC" = yes; then
13097     lt_prog_compiler_wl_F77='-Wl,'
13098     lt_prog_compiler_static_F77='-static'
13099
13100     case $host_os in
13101       aix*)
13102       # All AIX code is PIC.
13103       if test "$host_cpu" = ia64; then
13104         # AIX 5 now supports IA64 processor
13105         lt_prog_compiler_static_F77='-Bstatic'
13106       fi
13107       ;;
13108
13109     amigaos*)
13110       # FIXME: we need at least 68020 code to build shared libraries, but
13111       # adding the `-m68020' flag to GCC prevents building anything better,
13112       # like `-m68040'.
13113       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13114       ;;
13115
13116     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13117       # PIC is the default for these OSes.
13118       ;;
13119
13120     mingw* | pw32* | os2*)
13121       # This hack is so that the source file can tell whether it is being
13122       # built for inclusion in a dll (and should export symbols for example).
13123       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13124       ;;
13125
13126     darwin* | rhapsody*)
13127       # PIC is the default on this platform
13128       # Common symbols not allowed in MH_DYLIB files
13129       lt_prog_compiler_pic_F77='-fno-common'
13130       ;;
13131
13132     msdosdjgpp*)
13133       # Just because we use GCC doesn't mean we suddenly get shared libraries
13134       # on systems that don't support them.
13135       lt_prog_compiler_can_build_shared_F77=no
13136       enable_shared=no
13137       ;;
13138
13139     sysv4*MP*)
13140       if test -d /usr/nec; then
13141         lt_prog_compiler_pic_F77=-Kconform_pic
13142       fi
13143       ;;
13144
13145     hpux*)
13146       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147       # not for PA HP-UX.
13148       case "$host_cpu" in
13149       hppa*64*|ia64*)
13150         # +Z the default
13151         ;;
13152       *)
13153         lt_prog_compiler_pic_F77='-fPIC'
13154         ;;
13155       esac
13156       ;;
13157
13158     *)
13159       lt_prog_compiler_pic_F77='-fPIC'
13160       ;;
13161     esac
13162   else
13163     # PORTME Check for flag to pass linker flags through the system compiler.
13164     case $host_os in
13165     aix*)
13166       lt_prog_compiler_wl_F77='-Wl,'
13167       if test "$host_cpu" = ia64; then
13168         # AIX 5 now supports IA64 processor
13169         lt_prog_compiler_static_F77='-Bstatic'
13170       else
13171         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13172       fi
13173       ;;
13174
13175     mingw* | pw32* | os2*)
13176       # This hack is so that the source file can tell whether it is being
13177       # built for inclusion in a dll (and should export symbols for example).
13178       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13179       ;;
13180
13181     hpux9* | hpux10* | hpux11*)
13182       lt_prog_compiler_wl_F77='-Wl,'
13183       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13184       # not for PA HP-UX.
13185       case "$host_cpu" in
13186       hppa*64*|ia64*)
13187         # +Z the default
13188         ;;
13189       *)
13190         lt_prog_compiler_pic_F77='+Z'
13191         ;;
13192       esac
13193       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13194       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13195       ;;
13196
13197     irix5* | irix6* | nonstopux*)
13198       lt_prog_compiler_wl_F77='-Wl,'
13199       # PIC (with -KPIC) is the default.
13200       lt_prog_compiler_static_F77='-non_shared'
13201       ;;
13202
13203     newsos6)
13204       lt_prog_compiler_pic_F77='-KPIC'
13205       lt_prog_compiler_static_F77='-Bstatic'
13206       ;;
13207
13208     linux*)
13209       case $CC in
13210       icc* | ecc*)
13211         lt_prog_compiler_wl_F77='-Wl,'
13212         lt_prog_compiler_pic_F77='-KPIC'
13213         lt_prog_compiler_static_F77='-static'
13214         ;;
13215       ccc*)
13216         lt_prog_compiler_wl_F77='-Wl,'
13217         # All Alpha code is PIC.
13218         lt_prog_compiler_static_F77='-non_shared'
13219         ;;
13220       esac
13221       ;;
13222
13223     osf3* | osf4* | osf5*)
13224       lt_prog_compiler_wl_F77='-Wl,'
13225       # All OSF/1 code is PIC.
13226       lt_prog_compiler_static_F77='-non_shared'
13227       ;;
13228
13229     sco3.2v5*)
13230       lt_prog_compiler_pic_F77='-Kpic'
13231       lt_prog_compiler_static_F77='-dn'
13232       ;;
13233
13234     solaris*)
13235       lt_prog_compiler_wl_F77='-Wl,'
13236       lt_prog_compiler_pic_F77='-KPIC'
13237       lt_prog_compiler_static_F77='-Bstatic'
13238       ;;
13239
13240     sunos4*)
13241       lt_prog_compiler_wl_F77='-Qoption ld '
13242       lt_prog_compiler_pic_F77='-PIC'
13243       lt_prog_compiler_static_F77='-Bstatic'
13244       ;;
13245
13246     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13247       lt_prog_compiler_wl_F77='-Wl,'
13248       lt_prog_compiler_pic_F77='-KPIC'
13249       lt_prog_compiler_static_F77='-Bstatic'
13250       ;;
13251
13252     sysv4*MP*)
13253       if test -d /usr/nec ;then
13254         lt_prog_compiler_pic_F77='-Kconform_pic'
13255         lt_prog_compiler_static_F77='-Bstatic'
13256       fi
13257       ;;
13258
13259     uts4*)
13260       lt_prog_compiler_pic_F77='-pic'
13261       lt_prog_compiler_static_F77='-Bstatic'
13262       ;;
13263
13264     *)
13265       lt_prog_compiler_can_build_shared_F77=no
13266       ;;
13267     esac
13268   fi
13269
13270 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13271 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13272
13273 #
13274 # Check to make sure the PIC flag actually works.
13275 #
13276 if test -n "$lt_prog_compiler_pic_F77"; then
13277
13278 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13279 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13280 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13281   echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283   lt_prog_compiler_pic_works_F77=no
13284   ac_outfile=conftest.$ac_objext
13285    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13286    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13287    # Insert the option either (1) after the last *FLAGS variable, or
13288    # (2) before a word containing "conftest.", or (3) at the end.
13289    # Note that $ac_compile itself does not contain backslashes and begins
13290    # with a dollar sign (not a hyphen), so the echo should work correctly.
13291    # The option is referenced via a variable to avoid confusing sed.
13292    lt_compile=`echo "$ac_compile" | $SED \
13293    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13294    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13295    -e 's:$: $lt_compiler_flag:'`
13296    (eval echo "\"\$as_me:13296: $lt_compile\"" >&5)
13297    (eval "$lt_compile" 2>conftest.err)
13298    ac_status=$?
13299    cat conftest.err >&5
13300    echo "$as_me:13300: \$? = $ac_status" >&5
13301    if (exit $ac_status) && test -s "$ac_outfile"; then
13302      # The compiler can only warn and ignore the option if not recognized
13303      # So say no if there are warnings
13304      if test ! -s conftest.err; then
13305        lt_prog_compiler_pic_works_F77=yes
13306      fi
13307    fi
13308    $rm conftest*
13309
13310 fi
13311 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13312 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13313
13314 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13315     case $lt_prog_compiler_pic_F77 in
13316      "" | " "*) ;;
13317      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13318      esac
13319 else
13320     lt_prog_compiler_pic_F77=
13321      lt_prog_compiler_can_build_shared_F77=no
13322 fi
13323
13324 fi
13325 case "$host_os" in
13326   # For platforms which do not support PIC, -DPIC is meaningless:
13327   *djgpp*)
13328     lt_prog_compiler_pic_F77=
13329     ;;
13330   *)
13331     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13332     ;;
13333 esac
13334
13335 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13337 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13338   echo $ECHO_N "(cached) $ECHO_C" >&6
13339 else
13340   lt_cv_prog_compiler_c_o_F77=no
13341    $rm -r conftest 2>/dev/null
13342    mkdir conftest
13343    cd conftest
13344    mkdir out
13345    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13346
13347    lt_compiler_flag="-o out/conftest2.$ac_objext"
13348    # Insert the option either (1) after the last *FLAGS variable, or
13349    # (2) before a word containing "conftest.", or (3) at the end.
13350    # Note that $ac_compile itself does not contain backslashes and begins
13351    # with a dollar sign (not a hyphen), so the echo should work correctly.
13352    lt_compile=`echo "$ac_compile" | $SED \
13353    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13355    -e 's:$: $lt_compiler_flag:'`
13356    (eval echo "\"\$as_me:13356: $lt_compile\"" >&5)
13357    (eval "$lt_compile" 2>out/conftest.err)
13358    ac_status=$?
13359    cat out/conftest.err >&5
13360    echo "$as_me:13360: \$? = $ac_status" >&5
13361    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13362    then
13363      # The compiler can only warn and ignore the option if not recognized
13364      # So say no if there are warnings
13365      if test ! -s out/conftest.err; then
13366        lt_cv_prog_compiler_c_o_F77=yes
13367      fi
13368    fi
13369    chmod u+w .
13370    $rm conftest*
13371    # SGI C++ compiler will create directory out/ii_files/ for
13372    # template instantiation
13373    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13374    $rm out/* && rmdir out
13375    cd ..
13376    rmdir conftest
13377    $rm conftest*
13378
13379 fi
13380 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13381 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13382
13383
13384 hard_links="nottested"
13385 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13386   # do not overwrite the value of need_locks provided by the user
13387   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13388 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13389   hard_links=yes
13390   $rm conftest*
13391   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13392   touch conftest.a
13393   ln conftest.a conftest.b 2>&5 || hard_links=no
13394   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13395   echo "$as_me:$LINENO: result: $hard_links" >&5
13396 echo "${ECHO_T}$hard_links" >&6
13397   if test "$hard_links" = no; then
13398     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13399 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13400     need_locks=warn
13401   fi
13402 else
13403   need_locks=no
13404 fi
13405
13406 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13407 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13408
13409   runpath_var=
13410   allow_undefined_flag_F77=
13411   enable_shared_with_static_runtimes_F77=no
13412   archive_cmds_F77=
13413   archive_expsym_cmds_F77=
13414   old_archive_From_new_cmds_F77=
13415   old_archive_from_expsyms_cmds_F77=
13416   export_dynamic_flag_spec_F77=
13417   whole_archive_flag_spec_F77=
13418   thread_safe_flag_spec_F77=
13419   hardcode_libdir_flag_spec_F77=
13420   hardcode_libdir_flag_spec_ld_F77=
13421   hardcode_libdir_separator_F77=
13422   hardcode_direct_F77=no
13423   hardcode_minus_L_F77=no
13424   hardcode_shlibpath_var_F77=unsupported
13425   link_all_deplibs_F77=unknown
13426   hardcode_automatic_F77=no
13427   module_cmds_F77=
13428   module_expsym_cmds_F77=
13429   always_export_symbols_F77=no
13430   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13431   # include_expsyms should be a list of space-separated symbols to be *always*
13432   # included in the symbol list
13433   include_expsyms_F77=
13434   # exclude_expsyms can be an extended regexp of symbols to exclude
13435   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13436   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13437   # as well as any symbol that contains `d'.
13438   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13439   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13440   # platforms (ab)use it in PIC code, but their linkers get confused if
13441   # the symbol is explicitly referenced.  Since portable code cannot
13442   # rely on this symbol name, it's probably fine to never include it in
13443   # preloaded symbol tables.
13444   extract_expsyms_cmds=
13445
13446   case $host_os in
13447   cygwin* | mingw* | pw32*)
13448     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13449     # When not using gcc, we currently assume that we are using
13450     # Microsoft Visual C++.
13451     if test "$GCC" != yes; then
13452       with_gnu_ld=no
13453     fi
13454     ;;
13455   openbsd*)
13456     with_gnu_ld=no
13457     ;;
13458   esac
13459
13460   ld_shlibs_F77=yes
13461   if test "$with_gnu_ld" = yes; then
13462     # If archive_cmds runs LD, not CC, wlarc should be empty
13463     wlarc='${wl}'
13464
13465     # See if GNU ld supports shared libraries.
13466     case $host_os in
13467     aix3* | aix4* | aix5*)
13468       # On AIX/PPC, the GNU linker is very broken
13469       if test "$host_cpu" != ia64; then
13470         ld_shlibs_F77=no
13471         cat <<EOF 1>&2
13472
13473 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13474 *** to be unable to reliably create shared libraries on AIX.
13475 *** Therefore, libtool is disabling shared libraries support.  If you
13476 *** really care for shared libraries, you may want to modify your PATH
13477 *** so that a non-GNU linker is found, and then restart.
13478
13479 EOF
13480       fi
13481       ;;
13482
13483     amigaos*)
13484       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)'
13485       hardcode_libdir_flag_spec_F77='-L$libdir'
13486       hardcode_minus_L_F77=yes
13487
13488       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13489       # that the semantics of dynamic libraries on AmigaOS, at least up
13490       # to version 4, is to share data among multiple programs linked
13491       # with the same dynamic library.  Since this doesn't match the
13492       # behavior of shared libraries on other platforms, we can't use
13493       # them.
13494       ld_shlibs_F77=no
13495       ;;
13496
13497     beos*)
13498       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13499         allow_undefined_flag_F77=unsupported
13500         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13501         # support --undefined.  This deserves some investigation.  FIXME
13502         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13503       else
13504         ld_shlibs_F77=no
13505       fi
13506       ;;
13507
13508     cygwin* | mingw* | pw32*)
13509       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13510       # as there is no search path for DLLs.
13511       hardcode_libdir_flag_spec_F77='-L$libdir'
13512       allow_undefined_flag_F77=unsupported
13513       always_export_symbols_F77=no
13514       enable_shared_with_static_runtimes_F77=yes
13515       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13516
13517       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13518         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13519         # If the export-symbols file already is a .def file (1st line
13520         # is EXPORTS), use it as is; otherwise, prepend...
13521         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13522           cp $export_symbols $output_objdir/$soname.def;
13523         else
13524           echo EXPORTS > $output_objdir/$soname.def;
13525           cat $export_symbols >> $output_objdir/$soname.def;
13526         fi~
13527         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13528       else
13529         ld_shlibs=no
13530       fi
13531       ;;
13532
13533     netbsd*)
13534       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13535         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13536         wlarc=
13537       else
13538         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13539         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13540       fi
13541       ;;
13542
13543     solaris* | sysv5*)
13544       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13545         ld_shlibs_F77=no
13546         cat <<EOF 1>&2
13547
13548 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13549 *** create shared libraries on Solaris systems.  Therefore, libtool
13550 *** is disabling shared libraries support.  We urge you to upgrade GNU
13551 *** binutils to release 2.9.1 or newer.  Another option is to modify
13552 *** your PATH or compiler configuration so that the native linker is
13553 *** used, and then restart.
13554
13555 EOF
13556       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13557         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13558         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13559       else
13560         ld_shlibs_F77=no
13561       fi
13562       ;;
13563
13564     sunos4*)
13565       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13566       wlarc=
13567       hardcode_direct_F77=yes
13568       hardcode_shlibpath_var_F77=no
13569       ;;
13570
13571   linux*)
13572     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13573         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13574         archive_cmds_F77="$tmp_archive_cmds"
13575       supports_anon_versioning=no
13576       case `$LD -v 2>/dev/null` in
13577         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13578         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13579         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13580         *\ 2.11.*) ;; # other 2.11 versions
13581         *) supports_anon_versioning=yes ;;
13582       esac
13583       if test $supports_anon_versioning = yes; then
13584         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13585 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13586 $echo "local: *; };" >> $output_objdir/$libname.ver~
13587         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13588       else
13589         archive_expsym_cmds_F77="$tmp_archive_cmds"
13590       fi
13591     else
13592       ld_shlibs_F77=no
13593     fi
13594     ;;
13595
13596     *)
13597       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13598         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13599         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13600       else
13601         ld_shlibs_F77=no
13602       fi
13603       ;;
13604     esac
13605
13606     if test "$ld_shlibs_F77" = yes; then
13607       runpath_var=LD_RUN_PATH
13608       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13609       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13610       # ancient GNU ld didn't support --whole-archive et. al.
13611       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13612         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13613       else
13614         whole_archive_flag_spec_F77=
13615       fi
13616     fi
13617   else
13618     # PORTME fill in a description of your system's linker (not GNU ld)
13619     case $host_os in
13620     aix3*)
13621       allow_undefined_flag_F77=unsupported
13622       always_export_symbols_F77=yes
13623       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'
13624       # Note: this linker hardcodes the directories in LIBPATH if there
13625       # are no directories specified by -L.
13626       hardcode_minus_L_F77=yes
13627       if test "$GCC" = yes && test -z "$link_static_flag"; then
13628         # Neither direct hardcoding nor static linking is supported with a
13629         # broken collect2.
13630         hardcode_direct_F77=unsupported
13631       fi
13632       ;;
13633
13634     aix4* | aix5*)
13635       if test "$host_cpu" = ia64; then
13636         # On IA64, the linker does run time linking by default, so we don't
13637         # have to do anything special.
13638         aix_use_runtimelinking=no
13639         exp_sym_flag='-Bexport'
13640         no_entry_flag=""
13641       else
13642         # If we're using GNU nm, then we don't want the "-C" option.
13643         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13644         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13645           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'
13646         else
13647           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'
13648         fi
13649         aix_use_runtimelinking=no
13650
13651         # Test if we are trying to use run time linking or normal
13652         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13653         # need to do runtime linking.
13654         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13655           for ld_flag in $LDFLAGS; do
13656           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13657             aix_use_runtimelinking=yes
13658             break
13659           fi
13660           done
13661         esac
13662
13663         exp_sym_flag='-bexport'
13664         no_entry_flag='-bnoentry'
13665       fi
13666
13667       # When large executables or shared objects are built, AIX ld can
13668       # have problems creating the table of contents.  If linking a library
13669       # or program results in "error TOC overflow" add -mminimal-toc to
13670       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13671       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13672
13673       archive_cmds_F77=''
13674       hardcode_direct_F77=yes
13675       hardcode_libdir_separator_F77=':'
13676       link_all_deplibs_F77=yes
13677
13678       if test "$GCC" = yes; then
13679         case $host_os in aix4.012|aix4.012.*)
13680         # We only want to do this on AIX 4.2 and lower, the check
13681         # below for broken collect2 doesn't work under 4.3+
13682           collect2name=`${CC} -print-prog-name=collect2`
13683           if test -f "$collect2name" && \
13684            strings "$collect2name" | grep resolve_lib_name >/dev/null
13685           then
13686           # We have reworked collect2
13687           hardcode_direct_F77=yes
13688           else
13689           # We have old collect2
13690           hardcode_direct_F77=unsupported
13691           # It fails to find uninstalled libraries when the uninstalled
13692           # path is not listed in the libpath.  Setting hardcode_minus_L
13693           # to unsupported forces relinking
13694           hardcode_minus_L_F77=yes
13695           hardcode_libdir_flag_spec_F77='-L$libdir'
13696           hardcode_libdir_separator_F77=
13697           fi
13698         esac
13699         shared_flag='-shared'
13700       else
13701         # not using gcc
13702         if test "$host_cpu" = ia64; then
13703         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13704         # chokes on -Wl,-G. The following line is correct:
13705           shared_flag='-G'
13706         else
13707         if test "$aix_use_runtimelinking" = yes; then
13708             shared_flag='${wl}-G'
13709           else
13710             shared_flag='${wl}-bM:SRE'
13711         fi
13712         fi
13713       fi
13714
13715       # It seems that -bexpall does not export symbols beginning with
13716       # underscore (_), so it is better to generate a list of symbols to export.
13717       always_export_symbols_F77=yes
13718       if test "$aix_use_runtimelinking" = yes; then
13719         # Warning - without using the other runtime loading flags (-brtl),
13720         # -berok will link without error, but may produce a broken library.
13721         allow_undefined_flag_F77='-berok'
13722        # Determine the default libpath from the value encoded in an empty executable.
13723        cat >conftest.$ac_ext <<_ACEOF
13724       program main
13725
13726       end
13727 _ACEOF
13728 rm -f conftest.$ac_objext conftest$ac_exeext
13729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13730   (eval $ac_link) 2>conftest.er1
13731   ac_status=$?
13732   grep -v '^ *+' conftest.er1 >conftest.err
13733   rm -f conftest.er1
13734   cat conftest.err >&5
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); } &&
13737          { ac_try='test -z "$ac_f77_werror_flag"
13738                          || test ! -s conftest.err'
13739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740   (eval $ac_try) 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; } &&
13744          { ac_try='test -s conftest$ac_exeext'
13745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746   (eval $ac_try) 2>&5
13747   ac_status=$?
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); }; }; then
13750
13751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13752 }'`
13753 # Check for a 64-bit object if we didn't find anything.
13754 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; }
13755 }'`; fi
13756 else
13757   echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760 fi
13761 rm -f conftest.err conftest.$ac_objext \
13762       conftest$ac_exeext conftest.$ac_ext
13763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13764
13765        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13766         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"
13767        else
13768         if test "$host_cpu" = ia64; then
13769           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13770           allow_undefined_flag_F77="-z nodefs"
13771           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"
13772         else
13773          # Determine the default libpath from the value encoded in an empty executable.
13774          cat >conftest.$ac_ext <<_ACEOF
13775       program main
13776
13777       end
13778 _ACEOF
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13781   (eval $ac_link) 2>conftest.er1
13782   ac_status=$?
13783   grep -v '^ *+' conftest.er1 >conftest.err
13784   rm -f conftest.er1
13785   cat conftest.err >&5
13786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); } &&
13788          { ac_try='test -z "$ac_f77_werror_flag"
13789                          || test ! -s conftest.err'
13790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791   (eval $ac_try) 2>&5
13792   ac_status=$?
13793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); }; } &&
13795          { ac_try='test -s conftest$ac_exeext'
13796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797   (eval $ac_try) 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); }; }; then
13801
13802 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13803 }'`
13804 # Check for a 64-bit object if we didn't find anything.
13805 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; }
13806 }'`; fi
13807 else
13808   echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13810
13811 fi
13812 rm -f conftest.err conftest.$ac_objext \
13813       conftest$ac_exeext conftest.$ac_ext
13814 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13815
13816          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13817           # Warning - without using the other run time loading flags,
13818           # -berok will link without error, but may produce a broken library.
13819           no_undefined_flag_F77=' ${wl}-bernotok'
13820           allow_undefined_flag_F77=' ${wl}-berok'
13821           # -bexpall does not export symbols beginning with underscore (_)
13822           always_export_symbols_F77=yes
13823           # Exported symbols can be pulled into shared objects from archives
13824           whole_archive_flag_spec_F77=' '
13825           archive_cmds_need_lc_F77=yes
13826           # This is similar to how AIX traditionally builds it's shared libraries.
13827           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'
13828         fi
13829       fi
13830       ;;
13831
13832     amigaos*)
13833       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)'
13834       hardcode_libdir_flag_spec_F77='-L$libdir'
13835       hardcode_minus_L_F77=yes
13836       # see comment about different semantics on the GNU ld section
13837       ld_shlibs_F77=no
13838       ;;
13839
13840     bsdi4*)
13841       export_dynamic_flag_spec_F77=-rdynamic
13842       ;;
13843
13844     cygwin* | mingw* | pw32*)
13845       # When not using gcc, we currently assume that we are using
13846       # Microsoft Visual C++.
13847       # hardcode_libdir_flag_spec is actually meaningless, as there is
13848       # no search path for DLLs.
13849       hardcode_libdir_flag_spec_F77=' '
13850       allow_undefined_flag_F77=unsupported
13851       # Tell ltmain to make .lib files, not .a files.
13852       libext=lib
13853       # Tell ltmain to make .dll files, not .so files.
13854       shrext=".dll"
13855       # FIXME: Setting linknames here is a bad hack.
13856       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13857       # The linker will automatically build a .lib file if we build a DLL.
13858       old_archive_From_new_cmds_F77='true'
13859       # FIXME: Should let the user specify the lib program.
13860       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13861       fix_srcfile_path='`cygpath -w "$srcfile"`'
13862       enable_shared_with_static_runtimes_F77=yes
13863       ;;
13864
13865     darwin* | rhapsody*)
13866     if test "$GXX" = yes ; then
13867       archive_cmds_need_lc_F77=no
13868       case "$host_os" in
13869       rhapsody* | darwin1.[012])
13870         allow_undefined_flag_F77='-undefined suppress'
13871         ;;
13872       *) # Darwin 1.3 on
13873       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13874         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13875       else
13876         case ${MACOSX_DEPLOYMENT_TARGET} in
13877           10.[012])
13878             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13879             ;;
13880           10.*)
13881             allow_undefined_flag_F77='-undefined dynamic_lookup'
13882             ;;
13883         esac
13884       fi
13885         ;;
13886       esac
13887         lt_int_apple_cc_single_mod=no
13888         output_verbose_link_cmd='echo'
13889         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13890           lt_int_apple_cc_single_mod=yes
13891         fi
13892         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13893           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13894         else
13895         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13896       fi
13897       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13898       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13899         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13900           archive_expsym_cmds_F77='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}'
13901         else
13902           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13903         fi
13904           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}'
13905       hardcode_direct_F77=no
13906       hardcode_automatic_F77=yes
13907       hardcode_shlibpath_var_F77=unsupported
13908       whole_archive_flag_spec_F77='-all_load $convenience'
13909       link_all_deplibs_F77=yes
13910     else
13911       ld_shlibs_F77=no
13912     fi
13913       ;;
13914
13915     dgux*)
13916       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13917       hardcode_libdir_flag_spec_F77='-L$libdir'
13918       hardcode_shlibpath_var_F77=no
13919       ;;
13920
13921     freebsd1*)
13922       ld_shlibs_F77=no
13923       ;;
13924
13925     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13926     # support.  Future versions do this automatically, but an explicit c++rt0.o
13927     # does not break anything, and helps significantly (at the cost of a little
13928     # extra space).
13929     freebsd2.2*)
13930       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13931       hardcode_libdir_flag_spec_F77='-R$libdir'
13932       hardcode_direct_F77=yes
13933       hardcode_shlibpath_var_F77=no
13934       ;;
13935
13936     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13937     freebsd2*)
13938       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13939       hardcode_direct_F77=yes
13940       hardcode_minus_L_F77=yes
13941       hardcode_shlibpath_var_F77=no
13942       ;;
13943
13944     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13945     freebsd* | kfreebsd*-gnu)
13946       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13947       hardcode_libdir_flag_spec_F77='-R$libdir'
13948       hardcode_direct_F77=yes
13949       hardcode_shlibpath_var_F77=no
13950       ;;
13951
13952     hpux9*)
13953       if test "$GCC" = yes; then
13954         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'
13955       else
13956         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'
13957       fi
13958       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13959       hardcode_libdir_separator_F77=:
13960       hardcode_direct_F77=yes
13961
13962       # hardcode_minus_L: Not really in the search PATH,
13963       # but as the default location of the library.
13964       hardcode_minus_L_F77=yes
13965       export_dynamic_flag_spec_F77='${wl}-E'
13966       ;;
13967
13968     hpux10* | hpux11*)
13969       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13970         case "$host_cpu" in
13971         hppa*64*|ia64*)
13972           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13973           ;;
13974         *)
13975           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13976           ;;
13977         esac
13978       else
13979         case "$host_cpu" in
13980         hppa*64*|ia64*)
13981           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13982           ;;
13983         *)
13984           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13985           ;;
13986         esac
13987       fi
13988       if test "$with_gnu_ld" = no; then
13989         case "$host_cpu" in
13990         hppa*64*)
13991           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13992           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13993           hardcode_libdir_separator_F77=:
13994           hardcode_direct_F77=no
13995           hardcode_shlibpath_var_F77=no
13996           ;;
13997         ia64*)
13998           hardcode_libdir_flag_spec_F77='-L$libdir'
13999           hardcode_direct_F77=no
14000           hardcode_shlibpath_var_F77=no
14001
14002           # hardcode_minus_L: Not really in the search PATH,
14003           # but as the default location of the library.
14004           hardcode_minus_L_F77=yes
14005           ;;
14006         *)
14007           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14008           hardcode_libdir_separator_F77=:
14009           hardcode_direct_F77=yes
14010           export_dynamic_flag_spec_F77='${wl}-E'
14011
14012           # hardcode_minus_L: Not really in the search PATH,
14013           # but as the default location of the library.
14014           hardcode_minus_L_F77=yes
14015           ;;
14016         esac
14017       fi
14018       ;;
14019
14020     irix5* | irix6* | nonstopux*)
14021       if test "$GCC" = yes; then
14022         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'
14023       else
14024         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'
14025         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14026       fi
14027       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14028       hardcode_libdir_separator_F77=:
14029       link_all_deplibs_F77=yes
14030       ;;
14031
14032     netbsd*)
14033       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14034         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14035       else
14036         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14037       fi
14038       hardcode_libdir_flag_spec_F77='-R$libdir'
14039       hardcode_direct_F77=yes
14040       hardcode_shlibpath_var_F77=no
14041       ;;
14042
14043     newsos6)
14044       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14045       hardcode_direct_F77=yes
14046       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14047       hardcode_libdir_separator_F77=:
14048       hardcode_shlibpath_var_F77=no
14049       ;;
14050
14051     openbsd*)
14052       hardcode_direct_F77=yes
14053       hardcode_shlibpath_var_F77=no
14054       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14055         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14056         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14057         export_dynamic_flag_spec_F77='${wl}-E'
14058       else
14059        case $host_os in
14060          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14061            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14062            hardcode_libdir_flag_spec_F77='-R$libdir'
14063            ;;
14064          *)
14065            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14066            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14067            ;;
14068        esac
14069       fi
14070       ;;
14071
14072     os2*)
14073       hardcode_libdir_flag_spec_F77='-L$libdir'
14074       hardcode_minus_L_F77=yes
14075       allow_undefined_flag_F77=unsupported
14076       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'
14077       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14078       ;;
14079
14080     osf3*)
14081       if test "$GCC" = yes; then
14082         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14083         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'
14084       else
14085         allow_undefined_flag_F77=' -expect_unresolved \*'
14086         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'
14087       fi
14088       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14089       hardcode_libdir_separator_F77=:
14090       ;;
14091
14092     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14093       if test "$GCC" = yes; then
14094         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14095         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'
14096         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14097       else
14098         allow_undefined_flag_F77=' -expect_unresolved \*'
14099         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'
14100         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~
14101         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14102
14103         # Both c and cxx compiler support -rpath directly
14104         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14105       fi
14106       hardcode_libdir_separator_F77=:
14107       ;;
14108
14109     sco3.2v5*)
14110       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14111       hardcode_shlibpath_var_F77=no
14112       export_dynamic_flag_spec_F77='${wl}-Bexport'
14113       runpath_var=LD_RUN_PATH
14114       hardcode_runpath_var=yes
14115       ;;
14116
14117     solaris*)
14118       no_undefined_flag_F77=' -z text'
14119       if test "$GCC" = yes; then
14120         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14121         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14122           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14123       else
14124         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14125         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14126         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14127       fi
14128       hardcode_libdir_flag_spec_F77='-R$libdir'
14129       hardcode_shlibpath_var_F77=no
14130       case $host_os in
14131       solaris2.[0-5] | solaris2.[0-5].*) ;;
14132       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14133         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14134       esac
14135       link_all_deplibs_F77=yes
14136       ;;
14137
14138     sunos4*)
14139       if test "x$host_vendor" = xsequent; then
14140         # Use $CC to link under sequent, because it throws in some extra .o
14141         # files that make .init and .fini sections work.
14142         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14143       else
14144         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14145       fi
14146       hardcode_libdir_flag_spec_F77='-L$libdir'
14147       hardcode_direct_F77=yes
14148       hardcode_minus_L_F77=yes
14149       hardcode_shlibpath_var_F77=no
14150       ;;
14151
14152     sysv4)
14153       case $host_vendor in
14154         sni)
14155           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14156           hardcode_direct_F77=yes # is this really true???
14157         ;;
14158         siemens)
14159           ## LD is ld it makes a PLAMLIB
14160           ## CC just makes a GrossModule.
14161           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14162           reload_cmds_F77='$CC -r -o $output$reload_objs'
14163           hardcode_direct_F77=no
14164         ;;
14165         motorola)
14166           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14167           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14168         ;;
14169       esac
14170       runpath_var='LD_RUN_PATH'
14171       hardcode_shlibpath_var_F77=no
14172       ;;
14173
14174     sysv4.3*)
14175       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14176       hardcode_shlibpath_var_F77=no
14177       export_dynamic_flag_spec_F77='-Bexport'
14178       ;;
14179
14180     sysv4*MP*)
14181       if test -d /usr/nec; then
14182         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14183         hardcode_shlibpath_var_F77=no
14184         runpath_var=LD_RUN_PATH
14185         hardcode_runpath_var=yes
14186         ld_shlibs_F77=yes
14187       fi
14188       ;;
14189
14190     sysv4.2uw2*)
14191       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14192       hardcode_direct_F77=yes
14193       hardcode_minus_L_F77=no
14194       hardcode_shlibpath_var_F77=no
14195       hardcode_runpath_var=yes
14196       runpath_var=LD_RUN_PATH
14197       ;;
14198
14199    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14200       no_undefined_flag_F77='${wl}-z ${wl}text'
14201       if test "$GCC" = yes; then
14202         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14203       else
14204         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14205       fi
14206       runpath_var='LD_RUN_PATH'
14207       hardcode_shlibpath_var_F77=no
14208       ;;
14209
14210     sysv5*)
14211       no_undefined_flag_F77=' -z text'
14212       # $CC -shared without GNU ld will not create a library from C++
14213       # object files and a static libstdc++, better avoid it by now
14214       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14215       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14216                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14217       hardcode_libdir_flag_spec_F77=
14218       hardcode_shlibpath_var_F77=no
14219       runpath_var='LD_RUN_PATH'
14220       ;;
14221
14222     uts4*)
14223       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14224       hardcode_libdir_flag_spec_F77='-L$libdir'
14225       hardcode_shlibpath_var_F77=no
14226       ;;
14227
14228     *)
14229       ld_shlibs_F77=no
14230       ;;
14231     esac
14232   fi
14233
14234 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14235 echo "${ECHO_T}$ld_shlibs_F77" >&6
14236 test "$ld_shlibs_F77" = no && can_build_shared=no
14237
14238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14239 if test "$GCC" = yes; then
14240   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14241 fi
14242
14243 #
14244 # Do we need to explicitly link libc?
14245 #
14246 case "x$archive_cmds_need_lc_F77" in
14247 x|xyes)
14248   # Assume -lc should be added
14249   archive_cmds_need_lc_F77=yes
14250
14251   if test "$enable_shared" = yes && test "$GCC" = yes; then
14252     case $archive_cmds_F77 in
14253     *'~'*)
14254       # FIXME: we may have to deal with multi-command sequences.
14255       ;;
14256     '$CC '*)
14257       # Test whether the compiler implicitly links with -lc since on some
14258       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14259       # to ld, don't add -lc before -lgcc.
14260       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14261 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14262       $rm conftest*
14263       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14264
14265       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14266   (eval $ac_compile) 2>&5
14267   ac_status=$?
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); } 2>conftest.err; then
14270         soname=conftest
14271         lib=conftest
14272         libobjs=conftest.$ac_objext
14273         deplibs=
14274         wl=$lt_prog_compiler_wl_F77
14275         compiler_flags=-v
14276         linker_flags=-v
14277         verstring=
14278         output_objdir=.
14279         libname=conftest
14280         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14281         allow_undefined_flag_F77=
14282         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14283   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14284   ac_status=$?
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); }
14287         then
14288           archive_cmds_need_lc_F77=no
14289         else
14290           archive_cmds_need_lc_F77=yes
14291         fi
14292         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14293       else
14294         cat conftest.err 1>&5
14295       fi
14296       $rm conftest*
14297       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14298 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14299       ;;
14300     esac
14301   fi
14302   ;;
14303 esac
14304
14305 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14306 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14307 library_names_spec=
14308 libname_spec='lib$name'
14309 soname_spec=
14310 shrext=".so"
14311 postinstall_cmds=
14312 postuninstall_cmds=
14313 finish_cmds=
14314 finish_eval=
14315 shlibpath_var=
14316 shlibpath_overrides_runpath=unknown
14317 version_type=none
14318 dynamic_linker="$host_os ld.so"
14319 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14320 if test "$GCC" = yes; then
14321   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14322   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14323     # if the path contains ";" then we assume it to be the separator
14324     # otherwise default to the standard path separator (i.e. ":") - it is
14325     # assumed that no part of a normal pathname contains ";" but that should
14326     # okay in the real world where ";" in dirpaths is itself problematic.
14327     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14328   else
14329     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14330   fi
14331 else
14332   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14333 fi
14334 need_lib_prefix=unknown
14335 hardcode_into_libs=no
14336
14337 # when you set need_version to no, make sure it does not cause -set_version
14338 # flags to be left without arguments
14339 need_version=unknown
14340
14341 case $host_os in
14342 aix3*)
14343   version_type=linux
14344   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14345   shlibpath_var=LIBPATH
14346
14347   # AIX 3 has no versioning support, so we append a major version to the name.
14348   soname_spec='${libname}${release}${shared_ext}$major'
14349   ;;
14350
14351 aix4* | aix5*)
14352   version_type=linux
14353   need_lib_prefix=no
14354   need_version=no
14355   hardcode_into_libs=yes
14356   if test "$host_cpu" = ia64; then
14357     # AIX 5 supports IA64
14358     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14359     shlibpath_var=LD_LIBRARY_PATH
14360   else
14361     # With GCC up to 2.95.x, collect2 would create an import file
14362     # for dependence libraries.  The import file would start with
14363     # the line `#! .'.  This would cause the generated library to
14364     # depend on `.', always an invalid library.  This was fixed in
14365     # development snapshots of GCC prior to 3.0.
14366     case $host_os in
14367       aix4 | aix4.[01] | aix4.[01].*)
14368       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14369            echo ' yes '
14370            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14371         :
14372       else
14373         can_build_shared=no
14374       fi
14375       ;;
14376     esac
14377     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14378     # soname into executable. Probably we can add versioning support to
14379     # collect2, so additional links can be useful in future.
14380     if test "$aix_use_runtimelinking" = yes; then
14381       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14382       # instead of lib<name>.a to let people know that these are not
14383       # typical AIX shared libraries.
14384       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14385     else
14386       # We preserve .a as extension for shared libraries through AIX4.2
14387       # and later when we are not doing run time linking.
14388       library_names_spec='${libname}${release}.a $libname.a'
14389       soname_spec='${libname}${release}${shared_ext}$major'
14390     fi
14391     shlibpath_var=LIBPATH
14392   fi
14393   ;;
14394
14395 amigaos*)
14396   library_names_spec='$libname.ixlibrary $libname.a'
14397   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14398   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'
14399   ;;
14400
14401 beos*)
14402   library_names_spec='${libname}${shared_ext}'
14403   dynamic_linker="$host_os ld.so"
14404   shlibpath_var=LIBRARY_PATH
14405   ;;
14406
14407 bsdi4*)
14408   version_type=linux
14409   need_version=no
14410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14411   soname_spec='${libname}${release}${shared_ext}$major'
14412   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14413   shlibpath_var=LD_LIBRARY_PATH
14414   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14415   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14416   # the default ld.so.conf also contains /usr/contrib/lib and
14417   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14418   # libtool to hard-code these into programs
14419   ;;
14420
14421 cygwin* | mingw* | pw32*)
14422   version_type=windows
14423   shrext=".dll"
14424   need_version=no
14425   need_lib_prefix=no
14426
14427   case $GCC,$host_os in
14428   yes,cygwin* | yes,mingw* | yes,pw32*)
14429     library_names_spec='$libname.dll.a'
14430     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14431     postinstall_cmds='base_file=`basename \${file}`~
14432       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14433       dldir=$destdir/`dirname \$dlpath`~
14434       test -d \$dldir || mkdir -p \$dldir~
14435       $install_prog $dir/$dlname \$dldir/$dlname'
14436     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14437       dlpath=$dir/\$dldll~
14438        $rm \$dlpath'
14439     shlibpath_overrides_runpath=yes
14440
14441     case $host_os in
14442     cygwin*)
14443       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14444       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14445       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14446       ;;
14447     mingw*)
14448       # MinGW DLLs use traditional 'lib' prefix
14449       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14450       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14451       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14452         # It is most probably a Windows format PATH printed by
14453         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14454         # path with ; separators, and with drive letters. We can handle the
14455         # drive letters (cygwin fileutils understands them), so leave them,
14456         # especially as we might pass files found there to a mingw objdump,
14457         # which wouldn't understand a cygwinified path. Ahh.
14458         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14459       else
14460         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14461       fi
14462       ;;
14463     pw32*)
14464       # pw32 DLLs use 'pw' prefix rather than 'lib'
14465       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14466       ;;
14467     esac
14468     ;;
14469
14470   *)
14471     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14472     ;;
14473   esac
14474   dynamic_linker='Win32 ld.exe'
14475   # FIXME: first we should search . and the directory the executable is in
14476   shlibpath_var=PATH
14477   ;;
14478
14479 darwin* | rhapsody*)
14480   dynamic_linker="$host_os dyld"
14481   version_type=darwin
14482   need_lib_prefix=no
14483   need_version=no
14484   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14485   soname_spec='${libname}${release}${major}$shared_ext'
14486   shlibpath_overrides_runpath=yes
14487   shlibpath_var=DYLD_LIBRARY_PATH
14488   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14489   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14490   if test "$GCC" = yes; then
14491     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"`
14492   else
14493     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14494   fi
14495   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14496   ;;
14497
14498 dgux*)
14499   version_type=linux
14500   need_lib_prefix=no
14501   need_version=no
14502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14503   soname_spec='${libname}${release}${shared_ext}$major'
14504   shlibpath_var=LD_LIBRARY_PATH
14505   ;;
14506
14507 freebsd1*)
14508   dynamic_linker=no
14509   ;;
14510
14511 kfreebsd*-gnu)
14512   version_type=linux
14513   need_lib_prefix=no
14514   need_version=no
14515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14516   soname_spec='${libname}${release}${shared_ext}$major'
14517   shlibpath_var=LD_LIBRARY_PATH
14518   shlibpath_overrides_runpath=no
14519   hardcode_into_libs=yes
14520   dynamic_linker='GNU ld.so'
14521   ;;
14522
14523 freebsd*)
14524   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14525   version_type=freebsd-$objformat
14526   case $version_type in
14527     freebsd-elf*)
14528       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14529       need_version=no
14530       need_lib_prefix=no
14531       ;;
14532     freebsd-*)
14533       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14534       need_version=yes
14535       ;;
14536   esac
14537   shlibpath_var=LD_LIBRARY_PATH
14538   case $host_os in
14539   freebsd2*)
14540     shlibpath_overrides_runpath=yes
14541     ;;
14542   freebsd3.01* | freebsdelf3.01*)
14543     shlibpath_overrides_runpath=yes
14544     hardcode_into_libs=yes
14545     ;;
14546   *) # from 3.2 on
14547     shlibpath_overrides_runpath=no
14548     hardcode_into_libs=yes
14549     ;;
14550   esac
14551   ;;
14552
14553 gnu*)
14554   version_type=linux
14555   need_lib_prefix=no
14556   need_version=no
14557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14558   soname_spec='${libname}${release}${shared_ext}$major'
14559   shlibpath_var=LD_LIBRARY_PATH
14560   hardcode_into_libs=yes
14561   ;;
14562
14563 hpux9* | hpux10* | hpux11*)
14564   # Give a soname corresponding to the major version so that dld.sl refuses to
14565   # link against other versions.
14566   version_type=sunos
14567   need_lib_prefix=no
14568   need_version=no
14569   case "$host_cpu" in
14570   ia64*)
14571     shrext='.so'
14572     hardcode_into_libs=yes
14573     dynamic_linker="$host_os dld.so"
14574     shlibpath_var=LD_LIBRARY_PATH
14575     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577     soname_spec='${libname}${release}${shared_ext}$major'
14578     if test "X$HPUX_IA64_MODE" = X32; then
14579       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14580     else
14581       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14582     fi
14583     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14584     ;;
14585    hppa*64*)
14586      shrext='.sl'
14587      hardcode_into_libs=yes
14588      dynamic_linker="$host_os dld.sl"
14589      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14590      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14591      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592      soname_spec='${libname}${release}${shared_ext}$major'
14593      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14594      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14595      ;;
14596    *)
14597     shrext='.sl'
14598     dynamic_linker="$host_os dld.sl"
14599     shlibpath_var=SHLIB_PATH
14600     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14602     soname_spec='${libname}${release}${shared_ext}$major'
14603     ;;
14604   esac
14605   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14606   postinstall_cmds='chmod 555 $lib'
14607   ;;
14608
14609 irix5* | irix6* | nonstopux*)
14610   case $host_os in
14611     nonstopux*) version_type=nonstopux ;;
14612     *)
14613         if test "$lt_cv_prog_gnu_ld" = yes; then
14614                 version_type=linux
14615         else
14616                 version_type=irix
14617         fi ;;
14618   esac
14619   need_lib_prefix=no
14620   need_version=no
14621   soname_spec='${libname}${release}${shared_ext}$major'
14622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14623   case $host_os in
14624   irix5* | nonstopux*)
14625     libsuff= shlibsuff=
14626     ;;
14627   *)
14628     case $LD in # libtool.m4 will add one of these switches to LD
14629     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14630       libsuff= shlibsuff= libmagic=32-bit;;
14631     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14632       libsuff=32 shlibsuff=N32 libmagic=N32;;
14633     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14634       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14635     *) libsuff= shlibsuff= libmagic=never-match;;
14636     esac
14637     ;;
14638   esac
14639   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14640   shlibpath_overrides_runpath=no
14641   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14642   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14643   hardcode_into_libs=yes
14644   ;;
14645
14646 # No shared lib support for Linux oldld, aout, or coff.
14647 linux*oldld* | linux*aout* | linux*coff*)
14648   dynamic_linker=no
14649   ;;
14650
14651 # This must be Linux ELF.
14652 linux*)
14653   version_type=linux
14654   need_lib_prefix=no
14655   need_version=no
14656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657   soname_spec='${libname}${release}${shared_ext}$major'
14658   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14659   shlibpath_var=LD_LIBRARY_PATH
14660   shlibpath_overrides_runpath=no
14661   # This implies no fast_install, which is unacceptable.
14662   # Some rework will be needed to allow for fast_install
14663   # before this can be enabled.
14664   hardcode_into_libs=yes
14665
14666   # Append ld.so.conf contents to the search path
14667   if test -f /etc/ld.so.conf; then
14668     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14669     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14670   fi
14671
14672   # We used to test for /lib/ld.so.1 and disable shared libraries on
14673   # powerpc, because MkLinux only supported shared libraries with the
14674   # GNU dynamic linker.  Since this was broken with cross compilers,
14675   # most powerpc-linux boxes support dynamic linking these days and
14676   # people can always --disable-shared, the test was removed, and we
14677   # assume the GNU/Linux dynamic linker is in use.
14678   dynamic_linker='GNU/Linux ld.so'
14679   ;;
14680
14681 knetbsd*-gnu)
14682   version_type=linux
14683   need_lib_prefix=no
14684   need_version=no
14685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14686   soname_spec='${libname}${release}${shared_ext}$major'
14687   shlibpath_var=LD_LIBRARY_PATH
14688   shlibpath_overrides_runpath=no
14689   hardcode_into_libs=yes
14690   dynamic_linker='GNU ld.so'
14691   ;;
14692
14693 netbsd*)
14694   version_type=sunos
14695   need_lib_prefix=no
14696   need_version=no
14697   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14698     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14699     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14700     dynamic_linker='NetBSD (a.out) ld.so'
14701   else
14702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14703     soname_spec='${libname}${release}${shared_ext}$major'
14704     dynamic_linker='NetBSD ld.elf_so'
14705   fi
14706   shlibpath_var=LD_LIBRARY_PATH
14707   shlibpath_overrides_runpath=yes
14708   hardcode_into_libs=yes
14709   ;;
14710
14711 newsos6)
14712   version_type=linux
14713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714   shlibpath_var=LD_LIBRARY_PATH
14715   shlibpath_overrides_runpath=yes
14716   ;;
14717
14718 nto-qnx*)
14719   version_type=linux
14720   need_lib_prefix=no
14721   need_version=no
14722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723   soname_spec='${libname}${release}${shared_ext}$major'
14724   shlibpath_var=LD_LIBRARY_PATH
14725   shlibpath_overrides_runpath=yes
14726   ;;
14727
14728 openbsd*)
14729   version_type=sunos
14730   need_lib_prefix=no
14731   need_version=yes
14732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14733   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14734   shlibpath_var=LD_LIBRARY_PATH
14735   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14736     case $host_os in
14737       openbsd2.[89] | openbsd2.[89].*)
14738         shlibpath_overrides_runpath=no
14739         ;;
14740       *)
14741         shlibpath_overrides_runpath=yes
14742         ;;
14743       esac
14744   else
14745     shlibpath_overrides_runpath=yes
14746   fi
14747   ;;
14748
14749 os2*)
14750   libname_spec='$name'
14751   shrext=".dll"
14752   need_lib_prefix=no
14753   library_names_spec='$libname${shared_ext} $libname.a'
14754   dynamic_linker='OS/2 ld.exe'
14755   shlibpath_var=LIBPATH
14756   ;;
14757
14758 osf3* | osf4* | osf5*)
14759   version_type=osf
14760   need_lib_prefix=no
14761   need_version=no
14762   soname_spec='${libname}${release}${shared_ext}$major'
14763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764   shlibpath_var=LD_LIBRARY_PATH
14765   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14766   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14767   ;;
14768
14769 sco3.2v5*)
14770   version_type=osf
14771   soname_spec='${libname}${release}${shared_ext}$major'
14772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773   shlibpath_var=LD_LIBRARY_PATH
14774   ;;
14775
14776 solaris*)
14777   version_type=linux
14778   need_lib_prefix=no
14779   need_version=no
14780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781   soname_spec='${libname}${release}${shared_ext}$major'
14782   shlibpath_var=LD_LIBRARY_PATH
14783   shlibpath_overrides_runpath=yes
14784   hardcode_into_libs=yes
14785   # ldd complains unless libraries are executable
14786   postinstall_cmds='chmod +x $lib'
14787   ;;
14788
14789 sunos4*)
14790   version_type=sunos
14791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14792   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14793   shlibpath_var=LD_LIBRARY_PATH
14794   shlibpath_overrides_runpath=yes
14795   if test "$with_gnu_ld" = yes; then
14796     need_lib_prefix=no
14797   fi
14798   need_version=yes
14799   ;;
14800
14801 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14802   version_type=linux
14803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804   soname_spec='${libname}${release}${shared_ext}$major'
14805   shlibpath_var=LD_LIBRARY_PATH
14806   case $host_vendor in
14807     sni)
14808       shlibpath_overrides_runpath=no
14809       need_lib_prefix=no
14810       export_dynamic_flag_spec='${wl}-Blargedynsym'
14811       runpath_var=LD_RUN_PATH
14812       ;;
14813     siemens)
14814       need_lib_prefix=no
14815       ;;
14816     motorola)
14817       need_lib_prefix=no
14818       need_version=no
14819       shlibpath_overrides_runpath=no
14820       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14821       ;;
14822   esac
14823   ;;
14824
14825 sysv4*MP*)
14826   if test -d /usr/nec ;then
14827     version_type=linux
14828     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14829     soname_spec='$libname${shared_ext}.$major'
14830     shlibpath_var=LD_LIBRARY_PATH
14831   fi
14832   ;;
14833
14834 uts4*)
14835   version_type=linux
14836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14837   soname_spec='${libname}${release}${shared_ext}$major'
14838   shlibpath_var=LD_LIBRARY_PATH
14839   ;;
14840
14841 *)
14842   dynamic_linker=no
14843   ;;
14844 esac
14845 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14846 echo "${ECHO_T}$dynamic_linker" >&6
14847 test "$dynamic_linker" = no && can_build_shared=no
14848
14849 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14850 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14851 hardcode_action_F77=
14852 if test -n "$hardcode_libdir_flag_spec_F77" || \
14853    test -n "$runpath_var F77" || \
14854    test "X$hardcode_automatic_F77"="Xyes" ; then
14855
14856   # We can hardcode non-existant directories.
14857   if test "$hardcode_direct_F77" != no &&
14858      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14859      # have to relink, otherwise we might link with an installed library
14860      # when we should be linking with a yet-to-be-installed one
14861      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14862      test "$hardcode_minus_L_F77" != no; then
14863     # Linking always hardcodes the temporary library directory.
14864     hardcode_action_F77=relink
14865   else
14866     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14867     hardcode_action_F77=immediate
14868   fi
14869 else
14870   # We cannot hardcode anything, or else we can only hardcode existing
14871   # directories.
14872   hardcode_action_F77=unsupported
14873 fi
14874 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14875 echo "${ECHO_T}$hardcode_action_F77" >&6
14876
14877 if test "$hardcode_action_F77" = relink; then
14878   # Fast installation is not supported
14879   enable_fast_install=no
14880 elif test "$shlibpath_overrides_runpath" = yes ||
14881      test "$enable_shared" = no; then
14882   # Fast installation is not necessary
14883   enable_fast_install=needless
14884 fi
14885
14886 striplib=
14887 old_striplib=
14888 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14889 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14890 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14891   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14892   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14893   echo "$as_me:$LINENO: result: yes" >&5
14894 echo "${ECHO_T}yes" >&6
14895 else
14896 # FIXME - insert some real tests, host_os isn't really good enough
14897   case $host_os in
14898    darwin*)
14899        if test -n "$STRIP" ; then
14900          striplib="$STRIP -x"
14901          echo "$as_me:$LINENO: result: yes" >&5
14902 echo "${ECHO_T}yes" >&6
14903        else
14904   echo "$as_me:$LINENO: result: no" >&5
14905 echo "${ECHO_T}no" >&6
14906 fi
14907        ;;
14908    *)
14909   echo "$as_me:$LINENO: result: no" >&5
14910 echo "${ECHO_T}no" >&6
14911     ;;
14912   esac
14913 fi
14914
14915
14916
14917 # The else clause should only fire when bootstrapping the
14918 # libtool distribution, otherwise you forgot to ship ltmain.sh
14919 # with your package, and you will get complaints that there are
14920 # no rules to generate ltmain.sh.
14921 if test -f "$ltmain"; then
14922   # See if we are running on zsh, and set the options which allow our commands through
14923   # without removal of \ escapes.
14924   if test -n "${ZSH_VERSION+set}" ; then
14925     setopt NO_GLOB_SUBST
14926   fi
14927   # Now quote all the things that may contain metacharacters while being
14928   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14929   # variables and quote the copies for generation of the libtool script.
14930   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14931     SED SHELL STRIP \
14932     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14933     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14934     deplibs_check_method reload_flag reload_cmds need_locks \
14935     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14936     lt_cv_sys_global_symbol_to_c_name_address \
14937     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14938     old_postinstall_cmds old_postuninstall_cmds \
14939     compiler_F77 \
14940     CC_F77 \
14941     LD_F77 \
14942     lt_prog_compiler_wl_F77 \
14943     lt_prog_compiler_pic_F77 \
14944     lt_prog_compiler_static_F77 \
14945     lt_prog_compiler_no_builtin_flag_F77 \
14946     export_dynamic_flag_spec_F77 \
14947     thread_safe_flag_spec_F77 \
14948     whole_archive_flag_spec_F77 \
14949     enable_shared_with_static_runtimes_F77 \
14950     old_archive_cmds_F77 \
14951     old_archive_from_new_cmds_F77 \
14952     predep_objects_F77 \
14953     postdep_objects_F77 \
14954     predeps_F77 \
14955     postdeps_F77 \
14956     compiler_lib_search_path_F77 \
14957     archive_cmds_F77 \
14958     archive_expsym_cmds_F77 \
14959     postinstall_cmds_F77 \
14960     postuninstall_cmds_F77 \
14961     old_archive_from_expsyms_cmds_F77 \
14962     allow_undefined_flag_F77 \
14963     no_undefined_flag_F77 \
14964     export_symbols_cmds_F77 \
14965     hardcode_libdir_flag_spec_F77 \
14966     hardcode_libdir_flag_spec_ld_F77 \
14967     hardcode_libdir_separator_F77 \
14968     hardcode_automatic_F77 \
14969     module_cmds_F77 \
14970     module_expsym_cmds_F77 \
14971     lt_cv_prog_compiler_c_o_F77 \
14972     exclude_expsyms_F77 \
14973     include_expsyms_F77; do
14974
14975     case $var in
14976     old_archive_cmds_F77 | \
14977     old_archive_from_new_cmds_F77 | \
14978     archive_cmds_F77 | \
14979     archive_expsym_cmds_F77 | \
14980     module_cmds_F77 | \
14981     module_expsym_cmds_F77 | \
14982     old_archive_from_expsyms_cmds_F77 | \
14983     export_symbols_cmds_F77 | \
14984     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14985     postinstall_cmds | postuninstall_cmds | \
14986     old_postinstall_cmds | old_postuninstall_cmds | \
14987     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14988       # Double-quote double-evaled strings.
14989       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14990       ;;
14991     *)
14992       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14993       ;;
14994     esac
14995   done
14996
14997   case $lt_echo in
14998   *'\$0 --fallback-echo"')
14999     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15000     ;;
15001   esac
15002
15003 cfgfile="$ofile"
15004
15005   cat <<__EOF__ >> "$cfgfile"
15006 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15007
15008 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15009
15010 # Shell to use when invoking shell scripts.
15011 SHELL=$lt_SHELL
15012
15013 # Whether or not to build shared libraries.
15014 build_libtool_libs=$enable_shared
15015
15016 # Whether or not to build static libraries.
15017 build_old_libs=$enable_static
15018
15019 # Whether or not to add -lc for building shared libraries.
15020 build_libtool_need_lc=$archive_cmds_need_lc_F77
15021
15022 # Whether or not to disallow shared libs when runtime libs are static
15023 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15024
15025 # Whether or not to optimize for fast installation.
15026 fast_install=$enable_fast_install
15027
15028 # The host system.
15029 host_alias=$host_alias
15030 host=$host
15031
15032 # An echo program that does not interpret backslashes.
15033 echo=$lt_echo
15034
15035 # The archiver.
15036 AR=$lt_AR
15037 AR_FLAGS=$lt_AR_FLAGS
15038
15039 # A C compiler.
15040 LTCC=$lt_LTCC
15041
15042 # A language-specific compiler.
15043 CC=$lt_compiler_F77
15044
15045 # Is the compiler the GNU C compiler?
15046 with_gcc=$GCC_F77
15047
15048 # An ERE matcher.
15049 EGREP=$lt_EGREP
15050
15051 # The linker used to build libraries.
15052 LD=$lt_LD_F77
15053
15054 # Whether we need hard or soft links.
15055 LN_S=$lt_LN_S
15056
15057 # A BSD-compatible nm program.
15058 NM=$lt_NM
15059
15060 # A symbol stripping program
15061 STRIP=$lt_STRIP
15062
15063 # Used to examine libraries when file_magic_cmd begins "file"
15064 MAGIC_CMD=$MAGIC_CMD
15065
15066 # Used on cygwin: DLL creation program.
15067 DLLTOOL="$DLLTOOL"
15068
15069 # Used on cygwin: object dumper.
15070 OBJDUMP="$OBJDUMP"
15071
15072 # Used on cygwin: assembler.
15073 AS="$AS"
15074
15075 # The name of the directory that contains temporary libtool files.
15076 objdir=$objdir
15077
15078 # How to create reloadable object files.
15079 reload_flag=$lt_reload_flag
15080 reload_cmds=$lt_reload_cmds
15081
15082 # How to pass a linker flag through the compiler.
15083 wl=$lt_lt_prog_compiler_wl_F77
15084
15085 # Object file suffix (normally "o").
15086 objext="$ac_objext"
15087
15088 # Old archive suffix (normally "a").
15089 libext="$libext"
15090
15091 # Shared library suffix (normally ".so").
15092 shrext='$shrext'
15093
15094 # Executable file suffix (normally "").
15095 exeext="$exeext"
15096
15097 # Additional compiler flags for building library objects.
15098 pic_flag=$lt_lt_prog_compiler_pic_F77
15099 pic_mode=$pic_mode
15100
15101 # What is the maximum length of a command?
15102 max_cmd_len=$lt_cv_sys_max_cmd_len
15103
15104 # Does compiler simultaneously support -c and -o options?
15105 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15106
15107 # Must we lock files when doing compilation ?
15108 need_locks=$lt_need_locks
15109
15110 # Do we need the lib prefix for modules?
15111 need_lib_prefix=$need_lib_prefix
15112
15113 # Do we need a version for libraries?
15114 need_version=$need_version
15115
15116 # Whether dlopen is supported.
15117 dlopen_support=$enable_dlopen
15118
15119 # Whether dlopen of programs is supported.
15120 dlopen_self=$enable_dlopen_self
15121
15122 # Whether dlopen of statically linked programs is supported.
15123 dlopen_self_static=$enable_dlopen_self_static
15124
15125 # Compiler flag to prevent dynamic linking.
15126 link_static_flag=$lt_lt_prog_compiler_static_F77
15127
15128 # Compiler flag to turn off builtin functions.
15129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15130
15131 # Compiler flag to allow reflexive dlopens.
15132 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15133
15134 # Compiler flag to generate shared objects directly from archives.
15135 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15136
15137 # Compiler flag to generate thread-safe objects.
15138 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15139
15140 # Library versioning type.
15141 version_type=$version_type
15142
15143 # Format of library name prefix.
15144 libname_spec=$lt_libname_spec
15145
15146 # List of archive names.  First name is the real one, the rest are links.
15147 # The last name is the one that the linker finds with -lNAME.
15148 library_names_spec=$lt_library_names_spec
15149
15150 # The coded name of the library, if different from the real name.
15151 soname_spec=$lt_soname_spec
15152
15153 # Commands used to build and install an old-style archive.
15154 RANLIB=$lt_RANLIB
15155 old_archive_cmds=$lt_old_archive_cmds_F77
15156 old_postinstall_cmds=$lt_old_postinstall_cmds
15157 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15158
15159 # Create an old-style archive from a shared archive.
15160 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15161
15162 # Create a temporary old-style archive to link instead of a shared archive.
15163 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15164
15165 # Commands used to build and install a shared archive.
15166 archive_cmds=$lt_archive_cmds_F77
15167 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15168 postinstall_cmds=$lt_postinstall_cmds
15169 postuninstall_cmds=$lt_postuninstall_cmds
15170
15171 # Commands used to build a loadable module (assumed same as above if empty)
15172 module_cmds=$lt_module_cmds_F77
15173 module_expsym_cmds=$lt_module_expsym_cmds_F77
15174
15175 # Commands to strip libraries.
15176 old_striplib=$lt_old_striplib
15177 striplib=$lt_striplib
15178
15179 # Dependencies to place before the objects being linked to create a
15180 # shared library.
15181 predep_objects=$lt_predep_objects_F77
15182
15183 # Dependencies to place after the objects being linked to create a
15184 # shared library.
15185 postdep_objects=$lt_postdep_objects_F77
15186
15187 # Dependencies to place before the objects being linked to create a
15188 # shared library.
15189 predeps=$lt_predeps_F77
15190
15191 # Dependencies to place after the objects being linked to create a
15192 # shared library.
15193 postdeps=$lt_postdeps_F77
15194
15195 # The library search path used internally by the compiler when linking
15196 # a shared library.
15197 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15198
15199 # Method to check whether dependent libraries are shared objects.
15200 deplibs_check_method=$lt_deplibs_check_method
15201
15202 # Command to use when deplibs_check_method == file_magic.
15203 file_magic_cmd=$lt_file_magic_cmd
15204
15205 # Flag that allows shared libraries with undefined symbols to be built.
15206 allow_undefined_flag=$lt_allow_undefined_flag_F77
15207
15208 # Flag that forces no undefined symbols.
15209 no_undefined_flag=$lt_no_undefined_flag_F77
15210
15211 # Commands used to finish a libtool library installation in a directory.
15212 finish_cmds=$lt_finish_cmds
15213
15214 # Same as above, but a single script fragment to be evaled but not shown.
15215 finish_eval=$lt_finish_eval
15216
15217 # Take the output of nm and produce a listing of raw symbols and C names.
15218 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15219
15220 # Transform the output of nm in a proper C declaration
15221 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15222
15223 # Transform the output of nm in a C name address pair
15224 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15225
15226 # This is the shared library runtime path variable.
15227 runpath_var=$runpath_var
15228
15229 # This is the shared library path variable.
15230 shlibpath_var=$shlibpath_var
15231
15232 # Is shlibpath searched before the hard-coded library search path?
15233 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15234
15235 # How to hardcode a shared library path into an executable.
15236 hardcode_action=$hardcode_action_F77
15237
15238 # Whether we should hardcode library paths into libraries.
15239 hardcode_into_libs=$hardcode_into_libs
15240
15241 # Flag to hardcode \$libdir into a binary during linking.
15242 # This must work even if \$libdir does not exist.
15243 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15244
15245 # If ld is used when linking, flag to hardcode \$libdir into
15246 # a binary during linking. This must work even if \$libdir does
15247 # not exist.
15248 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15249
15250 # Whether we need a single -rpath flag with a separated argument.
15251 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15252
15253 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15254 # resulting binary.
15255 hardcode_direct=$hardcode_direct_F77
15256
15257 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15258 # resulting binary.
15259 hardcode_minus_L=$hardcode_minus_L_F77
15260
15261 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15262 # the resulting binary.
15263 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15264
15265 # Set to yes if building a shared library automatically hardcodes DIR into the library
15266 # and all subsequent libraries and executables linked against it.
15267 hardcode_automatic=$hardcode_automatic_F77
15268
15269 # Variables whose values should be saved in libtool wrapper scripts and
15270 # restored at relink time.
15271 variables_saved_for_relink="$variables_saved_for_relink"
15272
15273 # Whether libtool must link a program against all its dependency libraries.
15274 link_all_deplibs=$link_all_deplibs_F77
15275
15276 # Compile-time system search path for libraries
15277 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15278
15279 # Run-time system search path for libraries
15280 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15281
15282 # Fix the shell variable \$srcfile for the compiler.
15283 fix_srcfile_path="$fix_srcfile_path_F77"
15284
15285 # Set to yes if exported symbols are required.
15286 always_export_symbols=$always_export_symbols_F77
15287
15288 # The commands to list exported symbols.
15289 export_symbols_cmds=$lt_export_symbols_cmds_F77
15290
15291 # The commands to extract the exported symbol list from a shared archive.
15292 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15293
15294 # Symbols that should not be listed in the preloaded symbols.
15295 exclude_expsyms=$lt_exclude_expsyms_F77
15296
15297 # Symbols that must always be exported.
15298 include_expsyms=$lt_include_expsyms_F77
15299
15300 # ### END LIBTOOL TAG CONFIG: $tagname
15301
15302 __EOF__
15303
15304
15305 else
15306   # If there is no Makefile yet, we rely on a make rule to execute
15307   # `config.status --recheck' to rerun these tests and create the
15308   # libtool script then.
15309   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15310   if test -f "$ltmain_in"; then
15311     test -f Makefile && make "$ltmain"
15312   fi
15313 fi
15314
15315
15316 ac_ext=c
15317 ac_cpp='$CPP $CPPFLAGS'
15318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15321
15322 CC="$lt_save_CC"
15323
15324         else
15325           tagname=""
15326         fi
15327         ;;
15328
15329       GCJ)
15330         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15331
15332
15333
15334 # Source file extension for Java test sources.
15335 ac_ext=java
15336
15337 # Object file extension for compiled Java test sources.
15338 objext=o
15339 objext_GCJ=$objext
15340
15341 # Code to be used in simple compile tests
15342 lt_simple_compile_test_code="class foo {}\n"
15343
15344 # Code to be used in simple link tests
15345 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15346
15347 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15348
15349 # If no C compiler was specified, use CC.
15350 LTCC=${LTCC-"$CC"}
15351
15352 # Allow CC to be a program name with arguments.
15353 compiler=$CC
15354
15355
15356 # Allow CC to be a program name with arguments.
15357 lt_save_CC="$CC"
15358 CC=${GCJ-"gcj"}
15359 compiler=$CC
15360 compiler_GCJ=$CC
15361
15362 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15363 archive_cmds_need_lc_GCJ=no
15364
15365
15366 lt_prog_compiler_no_builtin_flag_GCJ=
15367
15368 if test "$GCC" = yes; then
15369   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15370
15371
15372 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15373 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15374 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15375   echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377   lt_cv_prog_compiler_rtti_exceptions=no
15378   ac_outfile=conftest.$ac_objext
15379    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15380    lt_compiler_flag="-fno-rtti -fno-exceptions"
15381    # Insert the option either (1) after the last *FLAGS variable, or
15382    # (2) before a word containing "conftest.", or (3) at the end.
15383    # Note that $ac_compile itself does not contain backslashes and begins
15384    # with a dollar sign (not a hyphen), so the echo should work correctly.
15385    # The option is referenced via a variable to avoid confusing sed.
15386    lt_compile=`echo "$ac_compile" | $SED \
15387    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15388    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15389    -e 's:$: $lt_compiler_flag:'`
15390    (eval echo "\"\$as_me:15390: $lt_compile\"" >&5)
15391    (eval "$lt_compile" 2>conftest.err)
15392    ac_status=$?
15393    cat conftest.err >&5
15394    echo "$as_me:15394: \$? = $ac_status" >&5
15395    if (exit $ac_status) && test -s "$ac_outfile"; then
15396      # The compiler can only warn and ignore the option if not recognized
15397      # So say no if there are warnings
15398      if test ! -s conftest.err; then
15399        lt_cv_prog_compiler_rtti_exceptions=yes
15400      fi
15401    fi
15402    $rm conftest*
15403
15404 fi
15405 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15406 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15407
15408 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15409     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15410 else
15411     :
15412 fi
15413
15414 fi
15415
15416 lt_prog_compiler_wl_GCJ=
15417 lt_prog_compiler_pic_GCJ=
15418 lt_prog_compiler_static_GCJ=
15419
15420 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15421 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15422
15423   if test "$GCC" = yes; then
15424     lt_prog_compiler_wl_GCJ='-Wl,'
15425     lt_prog_compiler_static_GCJ='-static'
15426
15427     case $host_os in
15428       aix*)
15429       # All AIX code is PIC.
15430       if test "$host_cpu" = ia64; then
15431         # AIX 5 now supports IA64 processor
15432         lt_prog_compiler_static_GCJ='-Bstatic'
15433       fi
15434       ;;
15435
15436     amigaos*)
15437       # FIXME: we need at least 68020 code to build shared libraries, but
15438       # adding the `-m68020' flag to GCC prevents building anything better,
15439       # like `-m68040'.
15440       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15441       ;;
15442
15443     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15444       # PIC is the default for these OSes.
15445       ;;
15446
15447     mingw* | pw32* | os2*)
15448       # This hack is so that the source file can tell whether it is being
15449       # built for inclusion in a dll (and should export symbols for example).
15450       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15451       ;;
15452
15453     darwin* | rhapsody*)
15454       # PIC is the default on this platform
15455       # Common symbols not allowed in MH_DYLIB files
15456       lt_prog_compiler_pic_GCJ='-fno-common'
15457       ;;
15458
15459     msdosdjgpp*)
15460       # Just because we use GCC doesn't mean we suddenly get shared libraries
15461       # on systems that don't support them.
15462       lt_prog_compiler_can_build_shared_GCJ=no
15463       enable_shared=no
15464       ;;
15465
15466     sysv4*MP*)
15467       if test -d /usr/nec; then
15468         lt_prog_compiler_pic_GCJ=-Kconform_pic
15469       fi
15470       ;;
15471
15472     hpux*)
15473       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15474       # not for PA HP-UX.
15475       case "$host_cpu" in
15476       hppa*64*|ia64*)
15477         # +Z the default
15478         ;;
15479       *)
15480         lt_prog_compiler_pic_GCJ='-fPIC'
15481         ;;
15482       esac
15483       ;;
15484
15485     *)
15486       lt_prog_compiler_pic_GCJ='-fPIC'
15487       ;;
15488     esac
15489   else
15490     # PORTME Check for flag to pass linker flags through the system compiler.
15491     case $host_os in
15492     aix*)
15493       lt_prog_compiler_wl_GCJ='-Wl,'
15494       if test "$host_cpu" = ia64; then
15495         # AIX 5 now supports IA64 processor
15496         lt_prog_compiler_static_GCJ='-Bstatic'
15497       else
15498         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15499       fi
15500       ;;
15501
15502     mingw* | pw32* | os2*)
15503       # This hack is so that the source file can tell whether it is being
15504       # built for inclusion in a dll (and should export symbols for example).
15505       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15506       ;;
15507
15508     hpux9* | hpux10* | hpux11*)
15509       lt_prog_compiler_wl_GCJ='-Wl,'
15510       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15511       # not for PA HP-UX.
15512       case "$host_cpu" in
15513       hppa*64*|ia64*)
15514         # +Z the default
15515         ;;
15516       *)
15517         lt_prog_compiler_pic_GCJ='+Z'
15518         ;;
15519       esac
15520       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15521       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15522       ;;
15523
15524     irix5* | irix6* | nonstopux*)
15525       lt_prog_compiler_wl_GCJ='-Wl,'
15526       # PIC (with -KPIC) is the default.
15527       lt_prog_compiler_static_GCJ='-non_shared'
15528       ;;
15529
15530     newsos6)
15531       lt_prog_compiler_pic_GCJ='-KPIC'
15532       lt_prog_compiler_static_GCJ='-Bstatic'
15533       ;;
15534
15535     linux*)
15536       case $CC in
15537       icc* | ecc*)
15538         lt_prog_compiler_wl_GCJ='-Wl,'
15539         lt_prog_compiler_pic_GCJ='-KPIC'
15540         lt_prog_compiler_static_GCJ='-static'
15541         ;;
15542       ccc*)
15543         lt_prog_compiler_wl_GCJ='-Wl,'
15544         # All Alpha code is PIC.
15545         lt_prog_compiler_static_GCJ='-non_shared'
15546         ;;
15547       esac
15548       ;;
15549
15550     osf3* | osf4* | osf5*)
15551       lt_prog_compiler_wl_GCJ='-Wl,'
15552       # All OSF/1 code is PIC.
15553       lt_prog_compiler_static_GCJ='-non_shared'
15554       ;;
15555
15556     sco3.2v5*)
15557       lt_prog_compiler_pic_GCJ='-Kpic'
15558       lt_prog_compiler_static_GCJ='-dn'
15559       ;;
15560
15561     solaris*)
15562       lt_prog_compiler_wl_GCJ='-Wl,'
15563       lt_prog_compiler_pic_GCJ='-KPIC'
15564       lt_prog_compiler_static_GCJ='-Bstatic'
15565       ;;
15566
15567     sunos4*)
15568       lt_prog_compiler_wl_GCJ='-Qoption ld '
15569       lt_prog_compiler_pic_GCJ='-PIC'
15570       lt_prog_compiler_static_GCJ='-Bstatic'
15571       ;;
15572
15573     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15574       lt_prog_compiler_wl_GCJ='-Wl,'
15575       lt_prog_compiler_pic_GCJ='-KPIC'
15576       lt_prog_compiler_static_GCJ='-Bstatic'
15577       ;;
15578
15579     sysv4*MP*)
15580       if test -d /usr/nec ;then
15581         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15582         lt_prog_compiler_static_GCJ='-Bstatic'
15583       fi
15584       ;;
15585
15586     uts4*)
15587       lt_prog_compiler_pic_GCJ='-pic'
15588       lt_prog_compiler_static_GCJ='-Bstatic'
15589       ;;
15590
15591     *)
15592       lt_prog_compiler_can_build_shared_GCJ=no
15593       ;;
15594     esac
15595   fi
15596
15597 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15598 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15599
15600 #
15601 # Check to make sure the PIC flag actually works.
15602 #
15603 if test -n "$lt_prog_compiler_pic_GCJ"; then
15604
15605 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15606 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15607 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15608   echo $ECHO_N "(cached) $ECHO_C" >&6
15609 else
15610   lt_prog_compiler_pic_works_GCJ=no
15611   ac_outfile=conftest.$ac_objext
15612    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15613    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15614    # Insert the option either (1) after the last *FLAGS variable, or
15615    # (2) before a word containing "conftest.", or (3) at the end.
15616    # Note that $ac_compile itself does not contain backslashes and begins
15617    # with a dollar sign (not a hyphen), so the echo should work correctly.
15618    # The option is referenced via a variable to avoid confusing sed.
15619    lt_compile=`echo "$ac_compile" | $SED \
15620    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15621    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15622    -e 's:$: $lt_compiler_flag:'`
15623    (eval echo "\"\$as_me:15623: $lt_compile\"" >&5)
15624    (eval "$lt_compile" 2>conftest.err)
15625    ac_status=$?
15626    cat conftest.err >&5
15627    echo "$as_me:15627: \$? = $ac_status" >&5
15628    if (exit $ac_status) && test -s "$ac_outfile"; then
15629      # The compiler can only warn and ignore the option if not recognized
15630      # So say no if there are warnings
15631      if test ! -s conftest.err; then
15632        lt_prog_compiler_pic_works_GCJ=yes
15633      fi
15634    fi
15635    $rm conftest*
15636
15637 fi
15638 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15639 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15640
15641 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15642     case $lt_prog_compiler_pic_GCJ in
15643      "" | " "*) ;;
15644      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15645      esac
15646 else
15647     lt_prog_compiler_pic_GCJ=
15648      lt_prog_compiler_can_build_shared_GCJ=no
15649 fi
15650
15651 fi
15652 case "$host_os" in
15653   # For platforms which do not support PIC, -DPIC is meaningless:
15654   *djgpp*)
15655     lt_prog_compiler_pic_GCJ=
15656     ;;
15657   *)
15658     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15659     ;;
15660 esac
15661
15662 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15663 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15664 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15665   echo $ECHO_N "(cached) $ECHO_C" >&6
15666 else
15667   lt_cv_prog_compiler_c_o_GCJ=no
15668    $rm -r conftest 2>/dev/null
15669    mkdir conftest
15670    cd conftest
15671    mkdir out
15672    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15673
15674    lt_compiler_flag="-o out/conftest2.$ac_objext"
15675    # Insert the option either (1) after the last *FLAGS variable, or
15676    # (2) before a word containing "conftest.", or (3) at the end.
15677    # Note that $ac_compile itself does not contain backslashes and begins
15678    # with a dollar sign (not a hyphen), so the echo should work correctly.
15679    lt_compile=`echo "$ac_compile" | $SED \
15680    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15682    -e 's:$: $lt_compiler_flag:'`
15683    (eval echo "\"\$as_me:15683: $lt_compile\"" >&5)
15684    (eval "$lt_compile" 2>out/conftest.err)
15685    ac_status=$?
15686    cat out/conftest.err >&5
15687    echo "$as_me:15687: \$? = $ac_status" >&5
15688    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15689    then
15690      # The compiler can only warn and ignore the option if not recognized
15691      # So say no if there are warnings
15692      if test ! -s out/conftest.err; then
15693        lt_cv_prog_compiler_c_o_GCJ=yes
15694      fi
15695    fi
15696    chmod u+w .
15697    $rm conftest*
15698    # SGI C++ compiler will create directory out/ii_files/ for
15699    # template instantiation
15700    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15701    $rm out/* && rmdir out
15702    cd ..
15703    rmdir conftest
15704    $rm conftest*
15705
15706 fi
15707 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15708 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15709
15710
15711 hard_links="nottested"
15712 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15713   # do not overwrite the value of need_locks provided by the user
15714   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15715 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15716   hard_links=yes
15717   $rm conftest*
15718   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15719   touch conftest.a
15720   ln conftest.a conftest.b 2>&5 || hard_links=no
15721   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15722   echo "$as_me:$LINENO: result: $hard_links" >&5
15723 echo "${ECHO_T}$hard_links" >&6
15724   if test "$hard_links" = no; then
15725     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15726 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15727     need_locks=warn
15728   fi
15729 else
15730   need_locks=no
15731 fi
15732
15733 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15734 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15735
15736   runpath_var=
15737   allow_undefined_flag_GCJ=
15738   enable_shared_with_static_runtimes_GCJ=no
15739   archive_cmds_GCJ=
15740   archive_expsym_cmds_GCJ=
15741   old_archive_From_new_cmds_GCJ=
15742   old_archive_from_expsyms_cmds_GCJ=
15743   export_dynamic_flag_spec_GCJ=
15744   whole_archive_flag_spec_GCJ=
15745   thread_safe_flag_spec_GCJ=
15746   hardcode_libdir_flag_spec_GCJ=
15747   hardcode_libdir_flag_spec_ld_GCJ=
15748   hardcode_libdir_separator_GCJ=
15749   hardcode_direct_GCJ=no
15750   hardcode_minus_L_GCJ=no
15751   hardcode_shlibpath_var_GCJ=unsupported
15752   link_all_deplibs_GCJ=unknown
15753   hardcode_automatic_GCJ=no
15754   module_cmds_GCJ=
15755   module_expsym_cmds_GCJ=
15756   always_export_symbols_GCJ=no
15757   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15758   # include_expsyms should be a list of space-separated symbols to be *always*
15759   # included in the symbol list
15760   include_expsyms_GCJ=
15761   # exclude_expsyms can be an extended regexp of symbols to exclude
15762   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15763   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15764   # as well as any symbol that contains `d'.
15765   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15766   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15767   # platforms (ab)use it in PIC code, but their linkers get confused if
15768   # the symbol is explicitly referenced.  Since portable code cannot
15769   # rely on this symbol name, it's probably fine to never include it in
15770   # preloaded symbol tables.
15771   extract_expsyms_cmds=
15772
15773   case $host_os in
15774   cygwin* | mingw* | pw32*)
15775     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15776     # When not using gcc, we currently assume that we are using
15777     # Microsoft Visual C++.
15778     if test "$GCC" != yes; then
15779       with_gnu_ld=no
15780     fi
15781     ;;
15782   openbsd*)
15783     with_gnu_ld=no
15784     ;;
15785   esac
15786
15787   ld_shlibs_GCJ=yes
15788   if test "$with_gnu_ld" = yes; then
15789     # If archive_cmds runs LD, not CC, wlarc should be empty
15790     wlarc='${wl}'
15791
15792     # See if GNU ld supports shared libraries.
15793     case $host_os in
15794     aix3* | aix4* | aix5*)
15795       # On AIX/PPC, the GNU linker is very broken
15796       if test "$host_cpu" != ia64; then
15797         ld_shlibs_GCJ=no
15798         cat <<EOF 1>&2
15799
15800 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15801 *** to be unable to reliably create shared libraries on AIX.
15802 *** Therefore, libtool is disabling shared libraries support.  If you
15803 *** really care for shared libraries, you may want to modify your PATH
15804 *** so that a non-GNU linker is found, and then restart.
15805
15806 EOF
15807       fi
15808       ;;
15809
15810     amigaos*)
15811       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)'
15812       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15813       hardcode_minus_L_GCJ=yes
15814
15815       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15816       # that the semantics of dynamic libraries on AmigaOS, at least up
15817       # to version 4, is to share data among multiple programs linked
15818       # with the same dynamic library.  Since this doesn't match the
15819       # behavior of shared libraries on other platforms, we can't use
15820       # them.
15821       ld_shlibs_GCJ=no
15822       ;;
15823
15824     beos*)
15825       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15826         allow_undefined_flag_GCJ=unsupported
15827         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15828         # support --undefined.  This deserves some investigation.  FIXME
15829         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15830       else
15831         ld_shlibs_GCJ=no
15832       fi
15833       ;;
15834
15835     cygwin* | mingw* | pw32*)
15836       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15837       # as there is no search path for DLLs.
15838       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15839       allow_undefined_flag_GCJ=unsupported
15840       always_export_symbols_GCJ=no
15841       enable_shared_with_static_runtimes_GCJ=yes
15842       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15843
15844       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15845         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15846         # If the export-symbols file already is a .def file (1st line
15847         # is EXPORTS), use it as is; otherwise, prepend...
15848         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15849           cp $export_symbols $output_objdir/$soname.def;
15850         else
15851           echo EXPORTS > $output_objdir/$soname.def;
15852           cat $export_symbols >> $output_objdir/$soname.def;
15853         fi~
15854         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15855       else
15856         ld_shlibs=no
15857       fi
15858       ;;
15859
15860     netbsd*)
15861       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15862         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15863         wlarc=
15864       else
15865         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15866         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15867       fi
15868       ;;
15869
15870     solaris* | sysv5*)
15871       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15872         ld_shlibs_GCJ=no
15873         cat <<EOF 1>&2
15874
15875 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15876 *** create shared libraries on Solaris systems.  Therefore, libtool
15877 *** is disabling shared libraries support.  We urge you to upgrade GNU
15878 *** binutils to release 2.9.1 or newer.  Another option is to modify
15879 *** your PATH or compiler configuration so that the native linker is
15880 *** used, and then restart.
15881
15882 EOF
15883       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15884         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15885         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15886       else
15887         ld_shlibs_GCJ=no
15888       fi
15889       ;;
15890
15891     sunos4*)
15892       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15893       wlarc=
15894       hardcode_direct_GCJ=yes
15895       hardcode_shlibpath_var_GCJ=no
15896       ;;
15897
15898   linux*)
15899     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15900         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15901         archive_cmds_GCJ="$tmp_archive_cmds"
15902       supports_anon_versioning=no
15903       case `$LD -v 2>/dev/null` in
15904         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15905         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15906         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15907         *\ 2.11.*) ;; # other 2.11 versions
15908         *) supports_anon_versioning=yes ;;
15909       esac
15910       if test $supports_anon_versioning = yes; then
15911         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15912 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15913 $echo "local: *; };" >> $output_objdir/$libname.ver~
15914         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15915       else
15916         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15917       fi
15918     else
15919       ld_shlibs_GCJ=no
15920     fi
15921     ;;
15922
15923     *)
15924       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15925         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15926         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15927       else
15928         ld_shlibs_GCJ=no
15929       fi
15930       ;;
15931     esac
15932
15933     if test "$ld_shlibs_GCJ" = yes; then
15934       runpath_var=LD_RUN_PATH
15935       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15936       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15937       # ancient GNU ld didn't support --whole-archive et. al.
15938       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15939         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15940       else
15941         whole_archive_flag_spec_GCJ=
15942       fi
15943     fi
15944   else
15945     # PORTME fill in a description of your system's linker (not GNU ld)
15946     case $host_os in
15947     aix3*)
15948       allow_undefined_flag_GCJ=unsupported
15949       always_export_symbols_GCJ=yes
15950       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'
15951       # Note: this linker hardcodes the directories in LIBPATH if there
15952       # are no directories specified by -L.
15953       hardcode_minus_L_GCJ=yes
15954       if test "$GCC" = yes && test -z "$link_static_flag"; then
15955         # Neither direct hardcoding nor static linking is supported with a
15956         # broken collect2.
15957         hardcode_direct_GCJ=unsupported
15958       fi
15959       ;;
15960
15961     aix4* | aix5*)
15962       if test "$host_cpu" = ia64; then
15963         # On IA64, the linker does run time linking by default, so we don't
15964         # have to do anything special.
15965         aix_use_runtimelinking=no
15966         exp_sym_flag='-Bexport'
15967         no_entry_flag=""
15968       else
15969         # If we're using GNU nm, then we don't want the "-C" option.
15970         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15971         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15972           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'
15973         else
15974           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'
15975         fi
15976         aix_use_runtimelinking=no
15977
15978         # Test if we are trying to use run time linking or normal
15979         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15980         # need to do runtime linking.
15981         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15982           for ld_flag in $LDFLAGS; do
15983           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15984             aix_use_runtimelinking=yes
15985             break
15986           fi
15987           done
15988         esac
15989
15990         exp_sym_flag='-bexport'
15991         no_entry_flag='-bnoentry'
15992       fi
15993
15994       # When large executables or shared objects are built, AIX ld can
15995       # have problems creating the table of contents.  If linking a library
15996       # or program results in "error TOC overflow" add -mminimal-toc to
15997       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15998       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15999
16000       archive_cmds_GCJ=''
16001       hardcode_direct_GCJ=yes
16002       hardcode_libdir_separator_GCJ=':'
16003       link_all_deplibs_GCJ=yes
16004
16005       if test "$GCC" = yes; then
16006         case $host_os in aix4.012|aix4.012.*)
16007         # We only want to do this on AIX 4.2 and lower, the check
16008         # below for broken collect2 doesn't work under 4.3+
16009           collect2name=`${CC} -print-prog-name=collect2`
16010           if test -f "$collect2name" && \
16011            strings "$collect2name" | grep resolve_lib_name >/dev/null
16012           then
16013           # We have reworked collect2
16014           hardcode_direct_GCJ=yes
16015           else
16016           # We have old collect2
16017           hardcode_direct_GCJ=unsupported
16018           # It fails to find uninstalled libraries when the uninstalled
16019           # path is not listed in the libpath.  Setting hardcode_minus_L
16020           # to unsupported forces relinking
16021           hardcode_minus_L_GCJ=yes
16022           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16023           hardcode_libdir_separator_GCJ=
16024           fi
16025         esac
16026         shared_flag='-shared'
16027       else
16028         # not using gcc
16029         if test "$host_cpu" = ia64; then
16030         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16031         # chokes on -Wl,-G. The following line is correct:
16032           shared_flag='-G'
16033         else
16034         if test "$aix_use_runtimelinking" = yes; then
16035             shared_flag='${wl}-G'
16036           else
16037             shared_flag='${wl}-bM:SRE'
16038         fi
16039         fi
16040       fi
16041
16042       # It seems that -bexpall does not export symbols beginning with
16043       # underscore (_), so it is better to generate a list of symbols to export.
16044       always_export_symbols_GCJ=yes
16045       if test "$aix_use_runtimelinking" = yes; then
16046         # Warning - without using the other runtime loading flags (-brtl),
16047         # -berok will link without error, but may produce a broken library.
16048         allow_undefined_flag_GCJ='-berok'
16049        # Determine the default libpath from the value encoded in an empty executable.
16050        cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056
16057 int
16058 main ()
16059 {
16060
16061   ;
16062   return 0;
16063 }
16064 _ACEOF
16065 rm -f conftest.$ac_objext conftest$ac_exeext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16067   (eval $ac_link) 2>conftest.er1
16068   ac_status=$?
16069   grep -v '^ *+' conftest.er1 >conftest.err
16070   rm -f conftest.er1
16071   cat conftest.err >&5
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); } &&
16074          { ac_try='test -z "$ac_c_werror_flag"
16075                          || test ! -s conftest.err'
16076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077   (eval $ac_try) 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; } &&
16081          { ac_try='test -s conftest$ac_exeext'
16082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083   (eval $ac_try) 2>&5
16084   ac_status=$?
16085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086   (exit $ac_status); }; }; then
16087
16088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16089 }'`
16090 # Check for a 64-bit object if we didn't find anything.
16091 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; }
16092 }'`; fi
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097 fi
16098 rm -f conftest.err conftest.$ac_objext \
16099       conftest$ac_exeext conftest.$ac_ext
16100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16101
16102        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16103         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"
16104        else
16105         if test "$host_cpu" = ia64; then
16106           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16107           allow_undefined_flag_GCJ="-z nodefs"
16108           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"
16109         else
16110          # Determine the default libpath from the value encoded in an empty executable.
16111          cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h.  */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h.  */
16117
16118 int
16119 main ()
16120 {
16121
16122   ;
16123   return 0;
16124 }
16125 _ACEOF
16126 rm -f conftest.$ac_objext conftest$ac_exeext
16127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16128   (eval $ac_link) 2>conftest.er1
16129   ac_status=$?
16130   grep -v '^ *+' conftest.er1 >conftest.err
16131   rm -f conftest.er1
16132   cat conftest.err >&5
16133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134   (exit $ac_status); } &&
16135          { ac_try='test -z "$ac_c_werror_flag"
16136                          || test ! -s conftest.err'
16137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138   (eval $ac_try) 2>&5
16139   ac_status=$?
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   (exit $ac_status); }; } &&
16142          { ac_try='test -s conftest$ac_exeext'
16143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144   (eval $ac_try) 2>&5
16145   ac_status=$?
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); }; }; then
16148
16149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16150 }'`
16151 # Check for a 64-bit object if we didn't find anything.
16152 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; }
16153 }'`; fi
16154 else
16155   echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16157
16158 fi
16159 rm -f conftest.err conftest.$ac_objext \
16160       conftest$ac_exeext conftest.$ac_ext
16161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16162
16163          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16164           # Warning - without using the other run time loading flags,
16165           # -berok will link without error, but may produce a broken library.
16166           no_undefined_flag_GCJ=' ${wl}-bernotok'
16167           allow_undefined_flag_GCJ=' ${wl}-berok'
16168           # -bexpall does not export symbols beginning with underscore (_)
16169           always_export_symbols_GCJ=yes
16170           # Exported symbols can be pulled into shared objects from archives
16171           whole_archive_flag_spec_GCJ=' '
16172           archive_cmds_need_lc_GCJ=yes
16173           # This is similar to how AIX traditionally builds it's shared libraries.
16174           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'
16175         fi
16176       fi
16177       ;;
16178
16179     amigaos*)
16180       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)'
16181       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16182       hardcode_minus_L_GCJ=yes
16183       # see comment about different semantics on the GNU ld section
16184       ld_shlibs_GCJ=no
16185       ;;
16186
16187     bsdi4*)
16188       export_dynamic_flag_spec_GCJ=-rdynamic
16189       ;;
16190
16191     cygwin* | mingw* | pw32*)
16192       # When not using gcc, we currently assume that we are using
16193       # Microsoft Visual C++.
16194       # hardcode_libdir_flag_spec is actually meaningless, as there is
16195       # no search path for DLLs.
16196       hardcode_libdir_flag_spec_GCJ=' '
16197       allow_undefined_flag_GCJ=unsupported
16198       # Tell ltmain to make .lib files, not .a files.
16199       libext=lib
16200       # Tell ltmain to make .dll files, not .so files.
16201       shrext=".dll"
16202       # FIXME: Setting linknames here is a bad hack.
16203       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16204       # The linker will automatically build a .lib file if we build a DLL.
16205       old_archive_From_new_cmds_GCJ='true'
16206       # FIXME: Should let the user specify the lib program.
16207       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16208       fix_srcfile_path='`cygpath -w "$srcfile"`'
16209       enable_shared_with_static_runtimes_GCJ=yes
16210       ;;
16211
16212     darwin* | rhapsody*)
16213     if test "$GXX" = yes ; then
16214       archive_cmds_need_lc_GCJ=no
16215       case "$host_os" in
16216       rhapsody* | darwin1.[012])
16217         allow_undefined_flag_GCJ='-undefined suppress'
16218         ;;
16219       *) # Darwin 1.3 on
16220       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16221         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16222       else
16223         case ${MACOSX_DEPLOYMENT_TARGET} in
16224           10.[012])
16225             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16226             ;;
16227           10.*)
16228             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16229             ;;
16230         esac
16231       fi
16232         ;;
16233       esac
16234         lt_int_apple_cc_single_mod=no
16235         output_verbose_link_cmd='echo'
16236         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16237           lt_int_apple_cc_single_mod=yes
16238         fi
16239         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16240           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16241         else
16242         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16243       fi
16244       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16245       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16246         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16247           archive_expsym_cmds_GCJ='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}'
16248         else
16249           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16250         fi
16251           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}'
16252       hardcode_direct_GCJ=no
16253       hardcode_automatic_GCJ=yes
16254       hardcode_shlibpath_var_GCJ=unsupported
16255       whole_archive_flag_spec_GCJ='-all_load $convenience'
16256       link_all_deplibs_GCJ=yes
16257     else
16258       ld_shlibs_GCJ=no
16259     fi
16260       ;;
16261
16262     dgux*)
16263       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16264       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16265       hardcode_shlibpath_var_GCJ=no
16266       ;;
16267
16268     freebsd1*)
16269       ld_shlibs_GCJ=no
16270       ;;
16271
16272     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16273     # support.  Future versions do this automatically, but an explicit c++rt0.o
16274     # does not break anything, and helps significantly (at the cost of a little
16275     # extra space).
16276     freebsd2.2*)
16277       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16278       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16279       hardcode_direct_GCJ=yes
16280       hardcode_shlibpath_var_GCJ=no
16281       ;;
16282
16283     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16284     freebsd2*)
16285       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16286       hardcode_direct_GCJ=yes
16287       hardcode_minus_L_GCJ=yes
16288       hardcode_shlibpath_var_GCJ=no
16289       ;;
16290
16291     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16292     freebsd* | kfreebsd*-gnu)
16293       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16294       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16295       hardcode_direct_GCJ=yes
16296       hardcode_shlibpath_var_GCJ=no
16297       ;;
16298
16299     hpux9*)
16300       if test "$GCC" = yes; then
16301         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'
16302       else
16303         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'
16304       fi
16305       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16306       hardcode_libdir_separator_GCJ=:
16307       hardcode_direct_GCJ=yes
16308
16309       # hardcode_minus_L: Not really in the search PATH,
16310       # but as the default location of the library.
16311       hardcode_minus_L_GCJ=yes
16312       export_dynamic_flag_spec_GCJ='${wl}-E'
16313       ;;
16314
16315     hpux10* | hpux11*)
16316       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16317         case "$host_cpu" in
16318         hppa*64*|ia64*)
16319           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16320           ;;
16321         *)
16322           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16323           ;;
16324         esac
16325       else
16326         case "$host_cpu" in
16327         hppa*64*|ia64*)
16328           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16329           ;;
16330         *)
16331           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16332           ;;
16333         esac
16334       fi
16335       if test "$with_gnu_ld" = no; then
16336         case "$host_cpu" in
16337         hppa*64*)
16338           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16339           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16340           hardcode_libdir_separator_GCJ=:
16341           hardcode_direct_GCJ=no
16342           hardcode_shlibpath_var_GCJ=no
16343           ;;
16344         ia64*)
16345           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16346           hardcode_direct_GCJ=no
16347           hardcode_shlibpath_var_GCJ=no
16348
16349           # hardcode_minus_L: Not really in the search PATH,
16350           # but as the default location of the library.
16351           hardcode_minus_L_GCJ=yes
16352           ;;
16353         *)
16354           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16355           hardcode_libdir_separator_GCJ=:
16356           hardcode_direct_GCJ=yes
16357           export_dynamic_flag_spec_GCJ='${wl}-E'
16358
16359           # hardcode_minus_L: Not really in the search PATH,
16360           # but as the default location of the library.
16361           hardcode_minus_L_GCJ=yes
16362           ;;
16363         esac
16364       fi
16365       ;;
16366
16367     irix5* | irix6* | nonstopux*)
16368       if test "$GCC" = yes; then
16369         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'
16370       else
16371         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'
16372         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16373       fi
16374       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16375       hardcode_libdir_separator_GCJ=:
16376       link_all_deplibs_GCJ=yes
16377       ;;
16378
16379     netbsd*)
16380       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16381         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16382       else
16383         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16384       fi
16385       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16386       hardcode_direct_GCJ=yes
16387       hardcode_shlibpath_var_GCJ=no
16388       ;;
16389
16390     newsos6)
16391       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16392       hardcode_direct_GCJ=yes
16393       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16394       hardcode_libdir_separator_GCJ=:
16395       hardcode_shlibpath_var_GCJ=no
16396       ;;
16397
16398     openbsd*)
16399       hardcode_direct_GCJ=yes
16400       hardcode_shlibpath_var_GCJ=no
16401       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16402         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16403         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16404         export_dynamic_flag_spec_GCJ='${wl}-E'
16405       else
16406        case $host_os in
16407          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16408            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16409            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16410            ;;
16411          *)
16412            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16413            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16414            ;;
16415        esac
16416       fi
16417       ;;
16418
16419     os2*)
16420       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16421       hardcode_minus_L_GCJ=yes
16422       allow_undefined_flag_GCJ=unsupported
16423       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'
16424       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16425       ;;
16426
16427     osf3*)
16428       if test "$GCC" = yes; then
16429         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16430         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'
16431       else
16432         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16433         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'
16434       fi
16435       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16436       hardcode_libdir_separator_GCJ=:
16437       ;;
16438
16439     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16440       if test "$GCC" = yes; then
16441         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16442         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'
16443         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16444       else
16445         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16446         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'
16447         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~
16448         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16449
16450         # Both c and cxx compiler support -rpath directly
16451         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16452       fi
16453       hardcode_libdir_separator_GCJ=:
16454       ;;
16455
16456     sco3.2v5*)
16457       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458       hardcode_shlibpath_var_GCJ=no
16459       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16460       runpath_var=LD_RUN_PATH
16461       hardcode_runpath_var=yes
16462       ;;
16463
16464     solaris*)
16465       no_undefined_flag_GCJ=' -z text'
16466       if test "$GCC" = yes; then
16467         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16468         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16469           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16470       else
16471         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16472         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16473         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16474       fi
16475       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16476       hardcode_shlibpath_var_GCJ=no
16477       case $host_os in
16478       solaris2.[0-5] | solaris2.[0-5].*) ;;
16479       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16480         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16481       esac
16482       link_all_deplibs_GCJ=yes
16483       ;;
16484
16485     sunos4*)
16486       if test "x$host_vendor" = xsequent; then
16487         # Use $CC to link under sequent, because it throws in some extra .o
16488         # files that make .init and .fini sections work.
16489         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16490       else
16491         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16492       fi
16493       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16494       hardcode_direct_GCJ=yes
16495       hardcode_minus_L_GCJ=yes
16496       hardcode_shlibpath_var_GCJ=no
16497       ;;
16498
16499     sysv4)
16500       case $host_vendor in
16501         sni)
16502           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16503           hardcode_direct_GCJ=yes # is this really true???
16504         ;;
16505         siemens)
16506           ## LD is ld it makes a PLAMLIB
16507           ## CC just makes a GrossModule.
16508           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16509           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16510           hardcode_direct_GCJ=no
16511         ;;
16512         motorola)
16513           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16514           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16515         ;;
16516       esac
16517       runpath_var='LD_RUN_PATH'
16518       hardcode_shlibpath_var_GCJ=no
16519       ;;
16520
16521     sysv4.3*)
16522       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523       hardcode_shlibpath_var_GCJ=no
16524       export_dynamic_flag_spec_GCJ='-Bexport'
16525       ;;
16526
16527     sysv4*MP*)
16528       if test -d /usr/nec; then
16529         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16530         hardcode_shlibpath_var_GCJ=no
16531         runpath_var=LD_RUN_PATH
16532         hardcode_runpath_var=yes
16533         ld_shlibs_GCJ=yes
16534       fi
16535       ;;
16536
16537     sysv4.2uw2*)
16538       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16539       hardcode_direct_GCJ=yes
16540       hardcode_minus_L_GCJ=no
16541       hardcode_shlibpath_var_GCJ=no
16542       hardcode_runpath_var=yes
16543       runpath_var=LD_RUN_PATH
16544       ;;
16545
16546    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16547       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16548       if test "$GCC" = yes; then
16549         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16550       else
16551         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16552       fi
16553       runpath_var='LD_RUN_PATH'
16554       hardcode_shlibpath_var_GCJ=no
16555       ;;
16556
16557     sysv5*)
16558       no_undefined_flag_GCJ=' -z text'
16559       # $CC -shared without GNU ld will not create a library from C++
16560       # object files and a static libstdc++, better avoid it by now
16561       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16562       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16563                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16564       hardcode_libdir_flag_spec_GCJ=
16565       hardcode_shlibpath_var_GCJ=no
16566       runpath_var='LD_RUN_PATH'
16567       ;;
16568
16569     uts4*)
16570       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16571       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16572       hardcode_shlibpath_var_GCJ=no
16573       ;;
16574
16575     *)
16576       ld_shlibs_GCJ=no
16577       ;;
16578     esac
16579   fi
16580
16581 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16582 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16583 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16584
16585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16586 if test "$GCC" = yes; then
16587   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16588 fi
16589
16590 #
16591 # Do we need to explicitly link libc?
16592 #
16593 case "x$archive_cmds_need_lc_GCJ" in
16594 x|xyes)
16595   # Assume -lc should be added
16596   archive_cmds_need_lc_GCJ=yes
16597
16598   if test "$enable_shared" = yes && test "$GCC" = yes; then
16599     case $archive_cmds_GCJ in
16600     *'~'*)
16601       # FIXME: we may have to deal with multi-command sequences.
16602       ;;
16603     '$CC '*)
16604       # Test whether the compiler implicitly links with -lc since on some
16605       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16606       # to ld, don't add -lc before -lgcc.
16607       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16608 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16609       $rm conftest*
16610       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16611
16612       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16613   (eval $ac_compile) 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); } 2>conftest.err; then
16617         soname=conftest
16618         lib=conftest
16619         libobjs=conftest.$ac_objext
16620         deplibs=
16621         wl=$lt_prog_compiler_wl_GCJ
16622         compiler_flags=-v
16623         linker_flags=-v
16624         verstring=
16625         output_objdir=.
16626         libname=conftest
16627         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16628         allow_undefined_flag_GCJ=
16629         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16630   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }
16634         then
16635           archive_cmds_need_lc_GCJ=no
16636         else
16637           archive_cmds_need_lc_GCJ=yes
16638         fi
16639         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16640       else
16641         cat conftest.err 1>&5
16642       fi
16643       $rm conftest*
16644       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16645 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16646       ;;
16647     esac
16648   fi
16649   ;;
16650 esac
16651
16652 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16653 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16654 library_names_spec=
16655 libname_spec='lib$name'
16656 soname_spec=
16657 shrext=".so"
16658 postinstall_cmds=
16659 postuninstall_cmds=
16660 finish_cmds=
16661 finish_eval=
16662 shlibpath_var=
16663 shlibpath_overrides_runpath=unknown
16664 version_type=none
16665 dynamic_linker="$host_os ld.so"
16666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16667 if test "$GCC" = yes; then
16668   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16669   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16670     # if the path contains ";" then we assume it to be the separator
16671     # otherwise default to the standard path separator (i.e. ":") - it is
16672     # assumed that no part of a normal pathname contains ";" but that should
16673     # okay in the real world where ";" in dirpaths is itself problematic.
16674     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16675   else
16676     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16677   fi
16678 else
16679   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16680 fi
16681 need_lib_prefix=unknown
16682 hardcode_into_libs=no
16683
16684 # when you set need_version to no, make sure it does not cause -set_version
16685 # flags to be left without arguments
16686 need_version=unknown
16687
16688 case $host_os in
16689 aix3*)
16690   version_type=linux
16691   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16692   shlibpath_var=LIBPATH
16693
16694   # AIX 3 has no versioning support, so we append a major version to the name.
16695   soname_spec='${libname}${release}${shared_ext}$major'
16696   ;;
16697
16698 aix4* | aix5*)
16699   version_type=linux
16700   need_lib_prefix=no
16701   need_version=no
16702   hardcode_into_libs=yes
16703   if test "$host_cpu" = ia64; then
16704     # AIX 5 supports IA64
16705     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16706     shlibpath_var=LD_LIBRARY_PATH
16707   else
16708     # With GCC up to 2.95.x, collect2 would create an import file
16709     # for dependence libraries.  The import file would start with
16710     # the line `#! .'.  This would cause the generated library to
16711     # depend on `.', always an invalid library.  This was fixed in
16712     # development snapshots of GCC prior to 3.0.
16713     case $host_os in
16714       aix4 | aix4.[01] | aix4.[01].*)
16715       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16716            echo ' yes '
16717            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16718         :
16719       else
16720         can_build_shared=no
16721       fi
16722       ;;
16723     esac
16724     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16725     # soname into executable. Probably we can add versioning support to
16726     # collect2, so additional links can be useful in future.
16727     if test "$aix_use_runtimelinking" = yes; then
16728       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16729       # instead of lib<name>.a to let people know that these are not
16730       # typical AIX shared libraries.
16731       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732     else
16733       # We preserve .a as extension for shared libraries through AIX4.2
16734       # and later when we are not doing run time linking.
16735       library_names_spec='${libname}${release}.a $libname.a'
16736       soname_spec='${libname}${release}${shared_ext}$major'
16737     fi
16738     shlibpath_var=LIBPATH
16739   fi
16740   ;;
16741
16742 amigaos*)
16743   library_names_spec='$libname.ixlibrary $libname.a'
16744   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16745   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'
16746   ;;
16747
16748 beos*)
16749   library_names_spec='${libname}${shared_ext}'
16750   dynamic_linker="$host_os ld.so"
16751   shlibpath_var=LIBRARY_PATH
16752   ;;
16753
16754 bsdi4*)
16755   version_type=linux
16756   need_version=no
16757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758   soname_spec='${libname}${release}${shared_ext}$major'
16759   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16760   shlibpath_var=LD_LIBRARY_PATH
16761   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16762   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16763   # the default ld.so.conf also contains /usr/contrib/lib and
16764   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16765   # libtool to hard-code these into programs
16766   ;;
16767
16768 cygwin* | mingw* | pw32*)
16769   version_type=windows
16770   shrext=".dll"
16771   need_version=no
16772   need_lib_prefix=no
16773
16774   case $GCC,$host_os in
16775   yes,cygwin* | yes,mingw* | yes,pw32*)
16776     library_names_spec='$libname.dll.a'
16777     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16778     postinstall_cmds='base_file=`basename \${file}`~
16779       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16780       dldir=$destdir/`dirname \$dlpath`~
16781       test -d \$dldir || mkdir -p \$dldir~
16782       $install_prog $dir/$dlname \$dldir/$dlname'
16783     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16784       dlpath=$dir/\$dldll~
16785        $rm \$dlpath'
16786     shlibpath_overrides_runpath=yes
16787
16788     case $host_os in
16789     cygwin*)
16790       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16791       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16792       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16793       ;;
16794     mingw*)
16795       # MinGW DLLs use traditional 'lib' prefix
16796       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16797       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16798       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16799         # It is most probably a Windows format PATH printed by
16800         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16801         # path with ; separators, and with drive letters. We can handle the
16802         # drive letters (cygwin fileutils understands them), so leave them,
16803         # especially as we might pass files found there to a mingw objdump,
16804         # which wouldn't understand a cygwinified path. Ahh.
16805         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16806       else
16807         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16808       fi
16809       ;;
16810     pw32*)
16811       # pw32 DLLs use 'pw' prefix rather than 'lib'
16812       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16813       ;;
16814     esac
16815     ;;
16816
16817   *)
16818     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16819     ;;
16820   esac
16821   dynamic_linker='Win32 ld.exe'
16822   # FIXME: first we should search . and the directory the executable is in
16823   shlibpath_var=PATH
16824   ;;
16825
16826 darwin* | rhapsody*)
16827   dynamic_linker="$host_os dyld"
16828   version_type=darwin
16829   need_lib_prefix=no
16830   need_version=no
16831   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16832   soname_spec='${libname}${release}${major}$shared_ext'
16833   shlibpath_overrides_runpath=yes
16834   shlibpath_var=DYLD_LIBRARY_PATH
16835   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16836   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16837   if test "$GCC" = yes; then
16838     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"`
16839   else
16840     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16841   fi
16842   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16843   ;;
16844
16845 dgux*)
16846   version_type=linux
16847   need_lib_prefix=no
16848   need_version=no
16849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16850   soname_spec='${libname}${release}${shared_ext}$major'
16851   shlibpath_var=LD_LIBRARY_PATH
16852   ;;
16853
16854 freebsd1*)
16855   dynamic_linker=no
16856   ;;
16857
16858 kfreebsd*-gnu)
16859   version_type=linux
16860   need_lib_prefix=no
16861   need_version=no
16862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16863   soname_spec='${libname}${release}${shared_ext}$major'
16864   shlibpath_var=LD_LIBRARY_PATH
16865   shlibpath_overrides_runpath=no
16866   hardcode_into_libs=yes
16867   dynamic_linker='GNU ld.so'
16868   ;;
16869
16870 freebsd*)
16871   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16872   version_type=freebsd-$objformat
16873   case $version_type in
16874     freebsd-elf*)
16875       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16876       need_version=no
16877       need_lib_prefix=no
16878       ;;
16879     freebsd-*)
16880       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16881       need_version=yes
16882       ;;
16883   esac
16884   shlibpath_var=LD_LIBRARY_PATH
16885   case $host_os in
16886   freebsd2*)
16887     shlibpath_overrides_runpath=yes
16888     ;;
16889   freebsd3.01* | freebsdelf3.01*)
16890     shlibpath_overrides_runpath=yes
16891     hardcode_into_libs=yes
16892     ;;
16893   *) # from 3.2 on
16894     shlibpath_overrides_runpath=no
16895     hardcode_into_libs=yes
16896     ;;
16897   esac
16898   ;;
16899
16900 gnu*)
16901   version_type=linux
16902   need_lib_prefix=no
16903   need_version=no
16904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16905   soname_spec='${libname}${release}${shared_ext}$major'
16906   shlibpath_var=LD_LIBRARY_PATH
16907   hardcode_into_libs=yes
16908   ;;
16909
16910 hpux9* | hpux10* | hpux11*)
16911   # Give a soname corresponding to the major version so that dld.sl refuses to
16912   # link against other versions.
16913   version_type=sunos
16914   need_lib_prefix=no
16915   need_version=no
16916   case "$host_cpu" in
16917   ia64*)
16918     shrext='.so'
16919     hardcode_into_libs=yes
16920     dynamic_linker="$host_os dld.so"
16921     shlibpath_var=LD_LIBRARY_PATH
16922     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16924     soname_spec='${libname}${release}${shared_ext}$major'
16925     if test "X$HPUX_IA64_MODE" = X32; then
16926       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16927     else
16928       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16929     fi
16930     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16931     ;;
16932    hppa*64*)
16933      shrext='.sl'
16934      hardcode_into_libs=yes
16935      dynamic_linker="$host_os dld.sl"
16936      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16937      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16938      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939      soname_spec='${libname}${release}${shared_ext}$major'
16940      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16941      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16942      ;;
16943    *)
16944     shrext='.sl'
16945     dynamic_linker="$host_os dld.sl"
16946     shlibpath_var=SHLIB_PATH
16947     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16948     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16949     soname_spec='${libname}${release}${shared_ext}$major'
16950     ;;
16951   esac
16952   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16953   postinstall_cmds='chmod 555 $lib'
16954   ;;
16955
16956 irix5* | irix6* | nonstopux*)
16957   case $host_os in
16958     nonstopux*) version_type=nonstopux ;;
16959     *)
16960         if test "$lt_cv_prog_gnu_ld" = yes; then
16961                 version_type=linux
16962         else
16963                 version_type=irix
16964         fi ;;
16965   esac
16966   need_lib_prefix=no
16967   need_version=no
16968   soname_spec='${libname}${release}${shared_ext}$major'
16969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16970   case $host_os in
16971   irix5* | nonstopux*)
16972     libsuff= shlibsuff=
16973     ;;
16974   *)
16975     case $LD in # libtool.m4 will add one of these switches to LD
16976     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16977       libsuff= shlibsuff= libmagic=32-bit;;
16978     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16979       libsuff=32 shlibsuff=N32 libmagic=N32;;
16980     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16981       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16982     *) libsuff= shlibsuff= libmagic=never-match;;
16983     esac
16984     ;;
16985   esac
16986   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16987   shlibpath_overrides_runpath=no
16988   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16989   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16990   hardcode_into_libs=yes
16991   ;;
16992
16993 # No shared lib support for Linux oldld, aout, or coff.
16994 linux*oldld* | linux*aout* | linux*coff*)
16995   dynamic_linker=no
16996   ;;
16997
16998 # This must be Linux ELF.
16999 linux*)
17000   version_type=linux
17001   need_lib_prefix=no
17002   need_version=no
17003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004   soname_spec='${libname}${release}${shared_ext}$major'
17005   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17006   shlibpath_var=LD_LIBRARY_PATH
17007   shlibpath_overrides_runpath=no
17008   # This implies no fast_install, which is unacceptable.
17009   # Some rework will be needed to allow for fast_install
17010   # before this can be enabled.
17011   hardcode_into_libs=yes
17012
17013   # Append ld.so.conf contents to the search path
17014   if test -f /etc/ld.so.conf; then
17015     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17016     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17017   fi
17018
17019   # We used to test for /lib/ld.so.1 and disable shared libraries on
17020   # powerpc, because MkLinux only supported shared libraries with the
17021   # GNU dynamic linker.  Since this was broken with cross compilers,
17022   # most powerpc-linux boxes support dynamic linking these days and
17023   # people can always --disable-shared, the test was removed, and we
17024   # assume the GNU/Linux dynamic linker is in use.
17025   dynamic_linker='GNU/Linux ld.so'
17026   ;;
17027
17028 knetbsd*-gnu)
17029   version_type=linux
17030   need_lib_prefix=no
17031   need_version=no
17032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17033   soname_spec='${libname}${release}${shared_ext}$major'
17034   shlibpath_var=LD_LIBRARY_PATH
17035   shlibpath_overrides_runpath=no
17036   hardcode_into_libs=yes
17037   dynamic_linker='GNU ld.so'
17038   ;;
17039
17040 netbsd*)
17041   version_type=sunos
17042   need_lib_prefix=no
17043   need_version=no
17044   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17046     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17047     dynamic_linker='NetBSD (a.out) ld.so'
17048   else
17049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17050     soname_spec='${libname}${release}${shared_ext}$major'
17051     dynamic_linker='NetBSD ld.elf_so'
17052   fi
17053   shlibpath_var=LD_LIBRARY_PATH
17054   shlibpath_overrides_runpath=yes
17055   hardcode_into_libs=yes
17056   ;;
17057
17058 newsos6)
17059   version_type=linux
17060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17061   shlibpath_var=LD_LIBRARY_PATH
17062   shlibpath_overrides_runpath=yes
17063   ;;
17064
17065 nto-qnx*)
17066   version_type=linux
17067   need_lib_prefix=no
17068   need_version=no
17069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17070   soname_spec='${libname}${release}${shared_ext}$major'
17071   shlibpath_var=LD_LIBRARY_PATH
17072   shlibpath_overrides_runpath=yes
17073   ;;
17074
17075 openbsd*)
17076   version_type=sunos
17077   need_lib_prefix=no
17078   need_version=yes
17079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17080   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17081   shlibpath_var=LD_LIBRARY_PATH
17082   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17083     case $host_os in
17084       openbsd2.[89] | openbsd2.[89].*)
17085         shlibpath_overrides_runpath=no
17086         ;;
17087       *)
17088         shlibpath_overrides_runpath=yes
17089         ;;
17090       esac
17091   else
17092     shlibpath_overrides_runpath=yes
17093   fi
17094   ;;
17095
17096 os2*)
17097   libname_spec='$name'
17098   shrext=".dll"
17099   need_lib_prefix=no
17100   library_names_spec='$libname${shared_ext} $libname.a'
17101   dynamic_linker='OS/2 ld.exe'
17102   shlibpath_var=LIBPATH
17103   ;;
17104
17105 osf3* | osf4* | osf5*)
17106   version_type=osf
17107   need_lib_prefix=no
17108   need_version=no
17109   soname_spec='${libname}${release}${shared_ext}$major'
17110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17111   shlibpath_var=LD_LIBRARY_PATH
17112   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17113   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17114   ;;
17115
17116 sco3.2v5*)
17117   version_type=osf
17118   soname_spec='${libname}${release}${shared_ext}$major'
17119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120   shlibpath_var=LD_LIBRARY_PATH
17121   ;;
17122
17123 solaris*)
17124   version_type=linux
17125   need_lib_prefix=no
17126   need_version=no
17127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128   soname_spec='${libname}${release}${shared_ext}$major'
17129   shlibpath_var=LD_LIBRARY_PATH
17130   shlibpath_overrides_runpath=yes
17131   hardcode_into_libs=yes
17132   # ldd complains unless libraries are executable
17133   postinstall_cmds='chmod +x $lib'
17134   ;;
17135
17136 sunos4*)
17137   version_type=sunos
17138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17139   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17140   shlibpath_var=LD_LIBRARY_PATH
17141   shlibpath_overrides_runpath=yes
17142   if test "$with_gnu_ld" = yes; then
17143     need_lib_prefix=no
17144   fi
17145   need_version=yes
17146   ;;
17147
17148 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17149   version_type=linux
17150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151   soname_spec='${libname}${release}${shared_ext}$major'
17152   shlibpath_var=LD_LIBRARY_PATH
17153   case $host_vendor in
17154     sni)
17155       shlibpath_overrides_runpath=no
17156       need_lib_prefix=no
17157       export_dynamic_flag_spec='${wl}-Blargedynsym'
17158       runpath_var=LD_RUN_PATH
17159       ;;
17160     siemens)
17161       need_lib_prefix=no
17162       ;;
17163     motorola)
17164       need_lib_prefix=no
17165       need_version=no
17166       shlibpath_overrides_runpath=no
17167       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17168       ;;
17169   esac
17170   ;;
17171
17172 sysv4*MP*)
17173   if test -d /usr/nec ;then
17174     version_type=linux
17175     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17176     soname_spec='$libname${shared_ext}.$major'
17177     shlibpath_var=LD_LIBRARY_PATH
17178   fi
17179   ;;
17180
17181 uts4*)
17182   version_type=linux
17183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184   soname_spec='${libname}${release}${shared_ext}$major'
17185   shlibpath_var=LD_LIBRARY_PATH
17186   ;;
17187
17188 *)
17189   dynamic_linker=no
17190   ;;
17191 esac
17192 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17193 echo "${ECHO_T}$dynamic_linker" >&6
17194 test "$dynamic_linker" = no && can_build_shared=no
17195
17196 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17197 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17198 hardcode_action_GCJ=
17199 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17200    test -n "$runpath_var GCJ" || \
17201    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17202
17203   # We can hardcode non-existant directories.
17204   if test "$hardcode_direct_GCJ" != no &&
17205      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17206      # have to relink, otherwise we might link with an installed library
17207      # when we should be linking with a yet-to-be-installed one
17208      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17209      test "$hardcode_minus_L_GCJ" != no; then
17210     # Linking always hardcodes the temporary library directory.
17211     hardcode_action_GCJ=relink
17212   else
17213     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17214     hardcode_action_GCJ=immediate
17215   fi
17216 else
17217   # We cannot hardcode anything, or else we can only hardcode existing
17218   # directories.
17219   hardcode_action_GCJ=unsupported
17220 fi
17221 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17222 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17223
17224 if test "$hardcode_action_GCJ" = relink; then
17225   # Fast installation is not supported
17226   enable_fast_install=no
17227 elif test "$shlibpath_overrides_runpath" = yes ||
17228      test "$enable_shared" = no; then
17229   # Fast installation is not necessary
17230   enable_fast_install=needless
17231 fi
17232
17233 striplib=
17234 old_striplib=
17235 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17236 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17237 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17238   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17239   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17240   echo "$as_me:$LINENO: result: yes" >&5
17241 echo "${ECHO_T}yes" >&6
17242 else
17243 # FIXME - insert some real tests, host_os isn't really good enough
17244   case $host_os in
17245    darwin*)
17246        if test -n "$STRIP" ; then
17247          striplib="$STRIP -x"
17248          echo "$as_me:$LINENO: result: yes" >&5
17249 echo "${ECHO_T}yes" >&6
17250        else
17251   echo "$as_me:$LINENO: result: no" >&5
17252 echo "${ECHO_T}no" >&6
17253 fi
17254        ;;
17255    *)
17256   echo "$as_me:$LINENO: result: no" >&5
17257 echo "${ECHO_T}no" >&6
17258     ;;
17259   esac
17260 fi
17261
17262 if test "x$enable_dlopen" != xyes; then
17263   enable_dlopen=unknown
17264   enable_dlopen_self=unknown
17265   enable_dlopen_self_static=unknown
17266 else
17267   lt_cv_dlopen=no
17268   lt_cv_dlopen_libs=
17269
17270   case $host_os in
17271   beos*)
17272     lt_cv_dlopen="load_add_on"
17273     lt_cv_dlopen_libs=
17274     lt_cv_dlopen_self=yes
17275     ;;
17276
17277   mingw* | pw32*)
17278     lt_cv_dlopen="LoadLibrary"
17279     lt_cv_dlopen_libs=
17280    ;;
17281
17282   cygwin*)
17283     lt_cv_dlopen="dlopen"
17284     lt_cv_dlopen_libs=
17285    ;;
17286
17287   darwin*)
17288   # if libdl is installed we need to link against it
17289     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17290 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17292   echo $ECHO_N "(cached) $ECHO_C" >&6
17293 else
17294   ac_check_lib_save_LIBS=$LIBS
17295 LIBS="-ldl  $LIBS"
17296 cat >conftest.$ac_ext <<_ACEOF
17297 /* confdefs.h.  */
17298 _ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h.  */
17302
17303 /* Override any gcc2 internal prototype to avoid an error.  */
17304 #ifdef __cplusplus
17305 extern "C"
17306 #endif
17307 /* We use char because int might match the return type of a gcc2
17308    builtin and then its argument prototype would still apply.  */
17309 char dlopen ();
17310 int
17311 main ()
17312 {
17313 dlopen ();
17314   ;
17315   return 0;
17316 }
17317 _ACEOF
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17320   (eval $ac_link) 2>conftest.er1
17321   ac_status=$?
17322   grep -v '^ *+' conftest.er1 >conftest.err
17323   rm -f conftest.er1
17324   cat conftest.err >&5
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); } &&
17327          { ac_try='test -z "$ac_c_werror_flag"
17328                          || test ! -s conftest.err'
17329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330   (eval $ac_try) 2>&5
17331   ac_status=$?
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); }; } &&
17334          { ac_try='test -s conftest$ac_exeext'
17335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336   (eval $ac_try) 2>&5
17337   ac_status=$?
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); }; }; then
17340   ac_cv_lib_dl_dlopen=yes
17341 else
17342   echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17344
17345 ac_cv_lib_dl_dlopen=no
17346 fi
17347 rm -f conftest.err conftest.$ac_objext \
17348       conftest$ac_exeext conftest.$ac_ext
17349 LIBS=$ac_check_lib_save_LIBS
17350 fi
17351 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17352 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17353 if test $ac_cv_lib_dl_dlopen = yes; then
17354   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17355 else
17356
17357     lt_cv_dlopen="dyld"
17358     lt_cv_dlopen_libs=
17359     lt_cv_dlopen_self=yes
17360
17361 fi
17362
17363    ;;
17364
17365   *)
17366     echo "$as_me:$LINENO: checking for shl_load" >&5
17367 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17368 if test "${ac_cv_func_shl_load+set}" = set; then
17369   echo $ECHO_N "(cached) $ECHO_C" >&6
17370 else
17371   cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h.  */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h.  */
17377 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17379 #define shl_load innocuous_shl_load
17380
17381 /* System header to define __stub macros and hopefully few prototypes,
17382     which can conflict with char shl_load (); below.
17383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17384     <limits.h> exists even on freestanding compilers.  */
17385
17386 #ifdef __STDC__
17387 # include <limits.h>
17388 #else
17389 # include <assert.h>
17390 #endif
17391
17392 #undef shl_load
17393
17394 /* Override any gcc2 internal prototype to avoid an error.  */
17395 #ifdef __cplusplus
17396 extern "C"
17397 {
17398 #endif
17399 /* We use char because int might match the return type of a gcc2
17400    builtin and then its argument prototype would still apply.  */
17401 char shl_load ();
17402 /* The GNU C library defines this for functions which it implements
17403     to always fail with ENOSYS.  Some functions are actually named
17404     something starting with __ and the normal name is an alias.  */
17405 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17406 choke me
17407 #else
17408 char (*f) () = shl_load;
17409 #endif
17410 #ifdef __cplusplus
17411 }
17412 #endif
17413
17414 int
17415 main ()
17416 {
17417 return f != shl_load;
17418   ;
17419   return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424   (eval $ac_link) 2>conftest.er1
17425   ac_status=$?
17426   grep -v '^ *+' conftest.er1 >conftest.err
17427   rm -f conftest.er1
17428   cat conftest.err >&5
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); } &&
17431          { ac_try='test -z "$ac_c_werror_flag"
17432                          || test ! -s conftest.err'
17433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434   (eval $ac_try) 2>&5
17435   ac_status=$?
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); }; } &&
17438          { ac_try='test -s conftest$ac_exeext'
17439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440   (eval $ac_try) 2>&5
17441   ac_status=$?
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); }; }; then
17444   ac_cv_func_shl_load=yes
17445 else
17446   echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17448
17449 ac_cv_func_shl_load=no
17450 fi
17451 rm -f conftest.err conftest.$ac_objext \
17452       conftest$ac_exeext conftest.$ac_ext
17453 fi
17454 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17455 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17456 if test $ac_cv_func_shl_load = yes; then
17457   lt_cv_dlopen="shl_load"
17458 else
17459   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17460 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17461 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17462   echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464   ac_check_lib_save_LIBS=$LIBS
17465 LIBS="-ldld  $LIBS"
17466 cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h.  */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h.  */
17472
17473 /* Override any gcc2 internal prototype to avoid an error.  */
17474 #ifdef __cplusplus
17475 extern "C"
17476 #endif
17477 /* We use char because int might match the return type of a gcc2
17478    builtin and then its argument prototype would still apply.  */
17479 char shl_load ();
17480 int
17481 main ()
17482 {
17483 shl_load ();
17484   ;
17485   return 0;
17486 }
17487 _ACEOF
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17490   (eval $ac_link) 2>conftest.er1
17491   ac_status=$?
17492   grep -v '^ *+' conftest.er1 >conftest.err
17493   rm -f conftest.er1
17494   cat conftest.err >&5
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); } &&
17497          { ac_try='test -z "$ac_c_werror_flag"
17498                          || test ! -s conftest.err'
17499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500   (eval $ac_try) 2>&5
17501   ac_status=$?
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); }; } &&
17504          { ac_try='test -s conftest$ac_exeext'
17505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506   (eval $ac_try) 2>&5
17507   ac_status=$?
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); }; }; then
17510   ac_cv_lib_dld_shl_load=yes
17511 else
17512   echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17514
17515 ac_cv_lib_dld_shl_load=no
17516 fi
17517 rm -f conftest.err conftest.$ac_objext \
17518       conftest$ac_exeext conftest.$ac_ext
17519 LIBS=$ac_check_lib_save_LIBS
17520 fi
17521 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17522 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17523 if test $ac_cv_lib_dld_shl_load = yes; then
17524   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17525 else
17526   echo "$as_me:$LINENO: checking for dlopen" >&5
17527 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17528 if test "${ac_cv_func_dlopen+set}" = set; then
17529   echo $ECHO_N "(cached) $ECHO_C" >&6
17530 else
17531   cat >conftest.$ac_ext <<_ACEOF
17532 /* confdefs.h.  */
17533 _ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h.  */
17537 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17539 #define dlopen innocuous_dlopen
17540
17541 /* System header to define __stub macros and hopefully few prototypes,
17542     which can conflict with char dlopen (); below.
17543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17544     <limits.h> exists even on freestanding compilers.  */
17545
17546 #ifdef __STDC__
17547 # include <limits.h>
17548 #else
17549 # include <assert.h>
17550 #endif
17551
17552 #undef dlopen
17553
17554 /* Override any gcc2 internal prototype to avoid an error.  */
17555 #ifdef __cplusplus
17556 extern "C"
17557 {
17558 #endif
17559 /* We use char because int might match the return type of a gcc2
17560    builtin and then its argument prototype would still apply.  */
17561 char dlopen ();
17562 /* The GNU C library defines this for functions which it implements
17563     to always fail with ENOSYS.  Some functions are actually named
17564     something starting with __ and the normal name is an alias.  */
17565 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17566 choke me
17567 #else
17568 char (*f) () = dlopen;
17569 #endif
17570 #ifdef __cplusplus
17571 }
17572 #endif
17573
17574 int
17575 main ()
17576 {
17577 return f != dlopen;
17578   ;
17579   return 0;
17580 }
17581 _ACEOF
17582 rm -f conftest.$ac_objext conftest$ac_exeext
17583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17584   (eval $ac_link) 2>conftest.er1
17585   ac_status=$?
17586   grep -v '^ *+' conftest.er1 >conftest.err
17587   rm -f conftest.er1
17588   cat conftest.err >&5
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); } &&
17591          { ac_try='test -z "$ac_c_werror_flag"
17592                          || test ! -s conftest.err'
17593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594   (eval $ac_try) 2>&5
17595   ac_status=$?
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); }; } &&
17598          { ac_try='test -s conftest$ac_exeext'
17599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600   (eval $ac_try) 2>&5
17601   ac_status=$?
17602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603   (exit $ac_status); }; }; then
17604   ac_cv_func_dlopen=yes
17605 else
17606   echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17608
17609 ac_cv_func_dlopen=no
17610 fi
17611 rm -f conftest.err conftest.$ac_objext \
17612       conftest$ac_exeext conftest.$ac_ext
17613 fi
17614 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17615 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17616 if test $ac_cv_func_dlopen = yes; then
17617   lt_cv_dlopen="dlopen"
17618 else
17619   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17620 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17622   echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624   ac_check_lib_save_LIBS=$LIBS
17625 LIBS="-ldl  $LIBS"
17626 cat >conftest.$ac_ext <<_ACEOF
17627 /* confdefs.h.  */
17628 _ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h.  */
17632
17633 /* Override any gcc2 internal prototype to avoid an error.  */
17634 #ifdef __cplusplus
17635 extern "C"
17636 #endif
17637 /* We use char because int might match the return type of a gcc2
17638    builtin and then its argument prototype would still apply.  */
17639 char dlopen ();
17640 int
17641 main ()
17642 {
17643 dlopen ();
17644   ;
17645   return 0;
17646 }
17647 _ACEOF
17648 rm -f conftest.$ac_objext conftest$ac_exeext
17649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17650   (eval $ac_link) 2>conftest.er1
17651   ac_status=$?
17652   grep -v '^ *+' conftest.er1 >conftest.err
17653   rm -f conftest.er1
17654   cat conftest.err >&5
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); } &&
17657          { ac_try='test -z "$ac_c_werror_flag"
17658                          || test ! -s conftest.err'
17659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660   (eval $ac_try) 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; } &&
17664          { ac_try='test -s conftest$ac_exeext'
17665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666   (eval $ac_try) 2>&5
17667   ac_status=$?
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); }; }; then
17670   ac_cv_lib_dl_dlopen=yes
17671 else
17672   echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17674
17675 ac_cv_lib_dl_dlopen=no
17676 fi
17677 rm -f conftest.err conftest.$ac_objext \
17678       conftest$ac_exeext conftest.$ac_ext
17679 LIBS=$ac_check_lib_save_LIBS
17680 fi
17681 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17683 if test $ac_cv_lib_dl_dlopen = yes; then
17684   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17685 else
17686   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17687 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17688 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17689   echo $ECHO_N "(cached) $ECHO_C" >&6
17690 else
17691   ac_check_lib_save_LIBS=$LIBS
17692 LIBS="-lsvld  $LIBS"
17693 cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h.  */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h.  */
17699
17700 /* Override any gcc2 internal prototype to avoid an error.  */
17701 #ifdef __cplusplus
17702 extern "C"
17703 #endif
17704 /* We use char because int might match the return type of a gcc2
17705    builtin and then its argument prototype would still apply.  */
17706 char dlopen ();
17707 int
17708 main ()
17709 {
17710 dlopen ();
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717   (eval $ac_link) 2>conftest.er1
17718   ac_status=$?
17719   grep -v '^ *+' conftest.er1 >conftest.err
17720   rm -f conftest.er1
17721   cat conftest.err >&5
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); } &&
17724          { ac_try='test -z "$ac_c_werror_flag"
17725                          || test ! -s conftest.err'
17726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727   (eval $ac_try) 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; } &&
17731          { ac_try='test -s conftest$ac_exeext'
17732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733   (eval $ac_try) 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); }; }; then
17737   ac_cv_lib_svld_dlopen=yes
17738 else
17739   echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17741
17742 ac_cv_lib_svld_dlopen=no
17743 fi
17744 rm -f conftest.err conftest.$ac_objext \
17745       conftest$ac_exeext conftest.$ac_ext
17746 LIBS=$ac_check_lib_save_LIBS
17747 fi
17748 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17749 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17750 if test $ac_cv_lib_svld_dlopen = yes; then
17751   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17752 else
17753   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17754 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17755 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17756   echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758   ac_check_lib_save_LIBS=$LIBS
17759 LIBS="-ldld  $LIBS"
17760 cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h.  */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h.  */
17766
17767 /* Override any gcc2 internal prototype to avoid an error.  */
17768 #ifdef __cplusplus
17769 extern "C"
17770 #endif
17771 /* We use char because int might match the return type of a gcc2
17772    builtin and then its argument prototype would still apply.  */
17773 char dld_link ();
17774 int
17775 main ()
17776 {
17777 dld_link ();
17778   ;
17779   return 0;
17780 }
17781 _ACEOF
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17784   (eval $ac_link) 2>conftest.er1
17785   ac_status=$?
17786   grep -v '^ *+' conftest.er1 >conftest.err
17787   rm -f conftest.er1
17788   cat conftest.err >&5
17789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790   (exit $ac_status); } &&
17791          { ac_try='test -z "$ac_c_werror_flag"
17792                          || test ! -s conftest.err'
17793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794   (eval $ac_try) 2>&5
17795   ac_status=$?
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); }; } &&
17798          { ac_try='test -s conftest$ac_exeext'
17799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17800   (eval $ac_try) 2>&5
17801   ac_status=$?
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); }; }; then
17804   ac_cv_lib_dld_dld_link=yes
17805 else
17806   echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17808
17809 ac_cv_lib_dld_dld_link=no
17810 fi
17811 rm -f conftest.err conftest.$ac_objext \
17812       conftest$ac_exeext conftest.$ac_ext
17813 LIBS=$ac_check_lib_save_LIBS
17814 fi
17815 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17816 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17817 if test $ac_cv_lib_dld_dld_link = yes; then
17818   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17819 fi
17820
17821
17822 fi
17823
17824
17825 fi
17826
17827
17828 fi
17829
17830
17831 fi
17832
17833
17834 fi
17835
17836     ;;
17837   esac
17838
17839   if test "x$lt_cv_dlopen" != xno; then
17840     enable_dlopen=yes
17841   else
17842     enable_dlopen=no
17843   fi
17844
17845   case $lt_cv_dlopen in
17846   dlopen)
17847     save_CPPFLAGS="$CPPFLAGS"
17848     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17849
17850     save_LDFLAGS="$LDFLAGS"
17851     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17852
17853     save_LIBS="$LIBS"
17854     LIBS="$lt_cv_dlopen_libs $LIBS"
17855
17856     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17857 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17858 if test "${lt_cv_dlopen_self+set}" = set; then
17859   echo $ECHO_N "(cached) $ECHO_C" >&6
17860 else
17861           if test "$cross_compiling" = yes; then :
17862   lt_cv_dlopen_self=cross
17863 else
17864   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17865   lt_status=$lt_dlunknown
17866   cat > conftest.$ac_ext <<EOF
17867 #line 17867 "configure"
17868 #include "confdefs.h"
17869
17870 #if HAVE_DLFCN_H
17871 #include <dlfcn.h>
17872 #endif
17873
17874 #include <stdio.h>
17875
17876 #ifdef RTLD_GLOBAL
17877 #  define LT_DLGLOBAL           RTLD_GLOBAL
17878 #else
17879 #  ifdef DL_GLOBAL
17880 #    define LT_DLGLOBAL         DL_GLOBAL
17881 #  else
17882 #    define LT_DLGLOBAL         0
17883 #  endif
17884 #endif
17885
17886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17887    find out it does not work in some platform. */
17888 #ifndef LT_DLLAZY_OR_NOW
17889 #  ifdef RTLD_LAZY
17890 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17891 #  else
17892 #    ifdef DL_LAZY
17893 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17894 #    else
17895 #      ifdef RTLD_NOW
17896 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17897 #      else
17898 #        ifdef DL_NOW
17899 #          define LT_DLLAZY_OR_NOW      DL_NOW
17900 #        else
17901 #          define LT_DLLAZY_OR_NOW      0
17902 #        endif
17903 #      endif
17904 #    endif
17905 #  endif
17906 #endif
17907
17908 #ifdef __cplusplus
17909 extern "C" void exit (int);
17910 #endif
17911
17912 void fnord() { int i=42;}
17913 int main ()
17914 {
17915   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17916   int status = $lt_dlunknown;
17917
17918   if (self)
17919     {
17920       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17921       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17922       /* dlclose (self); */
17923     }
17924
17925     exit (status);
17926 }
17927 EOF
17928   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929   (eval $ac_link) 2>&5
17930   ac_status=$?
17931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17933     (./conftest; exit; ) 2>/dev/null
17934     lt_status=$?
17935     case x$lt_status in
17936       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17937       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17938       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17939     esac
17940   else :
17941     # compilation failed
17942     lt_cv_dlopen_self=no
17943   fi
17944 fi
17945 rm -fr conftest*
17946
17947
17948 fi
17949 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17950 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17951
17952     if test "x$lt_cv_dlopen_self" = xyes; then
17953       LDFLAGS="$LDFLAGS $link_static_flag"
17954       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17955 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17956 if test "${lt_cv_dlopen_self_static+set}" = set; then
17957   echo $ECHO_N "(cached) $ECHO_C" >&6
17958 else
17959           if test "$cross_compiling" = yes; then :
17960   lt_cv_dlopen_self_static=cross
17961 else
17962   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17963   lt_status=$lt_dlunknown
17964   cat > conftest.$ac_ext <<EOF
17965 #line 17965 "configure"
17966 #include "confdefs.h"
17967
17968 #if HAVE_DLFCN_H
17969 #include <dlfcn.h>
17970 #endif
17971
17972 #include <stdio.h>
17973
17974 #ifdef RTLD_GLOBAL
17975 #  define LT_DLGLOBAL           RTLD_GLOBAL
17976 #else
17977 #  ifdef DL_GLOBAL
17978 #    define LT_DLGLOBAL         DL_GLOBAL
17979 #  else
17980 #    define LT_DLGLOBAL         0
17981 #  endif
17982 #endif
17983
17984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17985    find out it does not work in some platform. */
17986 #ifndef LT_DLLAZY_OR_NOW
17987 #  ifdef RTLD_LAZY
17988 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17989 #  else
17990 #    ifdef DL_LAZY
17991 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17992 #    else
17993 #      ifdef RTLD_NOW
17994 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17995 #      else
17996 #        ifdef DL_NOW
17997 #          define LT_DLLAZY_OR_NOW      DL_NOW
17998 #        else
17999 #          define LT_DLLAZY_OR_NOW      0
18000 #        endif
18001 #      endif
18002 #    endif
18003 #  endif
18004 #endif
18005
18006 #ifdef __cplusplus
18007 extern "C" void exit (int);
18008 #endif
18009
18010 void fnord() { int i=42;}
18011 int main ()
18012 {
18013   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18014   int status = $lt_dlunknown;
18015
18016   if (self)
18017     {
18018       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18019       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18020       /* dlclose (self); */
18021     }
18022
18023     exit (status);
18024 }
18025 EOF
18026   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18027   (eval $ac_link) 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18031     (./conftest; exit; ) 2>/dev/null
18032     lt_status=$?
18033     case x$lt_status in
18034       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18035       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18036       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18037     esac
18038   else :
18039     # compilation failed
18040     lt_cv_dlopen_self_static=no
18041   fi
18042 fi
18043 rm -fr conftest*
18044
18045
18046 fi
18047 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18048 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18049     fi
18050
18051     CPPFLAGS="$save_CPPFLAGS"
18052     LDFLAGS="$save_LDFLAGS"
18053     LIBS="$save_LIBS"
18054     ;;
18055   esac
18056
18057   case $lt_cv_dlopen_self in
18058   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18059   *) enable_dlopen_self=unknown ;;
18060   esac
18061
18062   case $lt_cv_dlopen_self_static in
18063   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18064   *) enable_dlopen_self_static=unknown ;;
18065   esac
18066 fi
18067
18068
18069 # The else clause should only fire when bootstrapping the
18070 # libtool distribution, otherwise you forgot to ship ltmain.sh
18071 # with your package, and you will get complaints that there are
18072 # no rules to generate ltmain.sh.
18073 if test -f "$ltmain"; then
18074   # See if we are running on zsh, and set the options which allow our commands through
18075   # without removal of \ escapes.
18076   if test -n "${ZSH_VERSION+set}" ; then
18077     setopt NO_GLOB_SUBST
18078   fi
18079   # Now quote all the things that may contain metacharacters while being
18080   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18081   # variables and quote the copies for generation of the libtool script.
18082   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18083     SED SHELL STRIP \
18084     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18085     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18086     deplibs_check_method reload_flag reload_cmds need_locks \
18087     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18088     lt_cv_sys_global_symbol_to_c_name_address \
18089     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18090     old_postinstall_cmds old_postuninstall_cmds \
18091     compiler_GCJ \
18092     CC_GCJ \
18093     LD_GCJ \
18094     lt_prog_compiler_wl_GCJ \
18095     lt_prog_compiler_pic_GCJ \
18096     lt_prog_compiler_static_GCJ \
18097     lt_prog_compiler_no_builtin_flag_GCJ \
18098     export_dynamic_flag_spec_GCJ \
18099     thread_safe_flag_spec_GCJ \
18100     whole_archive_flag_spec_GCJ \
18101     enable_shared_with_static_runtimes_GCJ \
18102     old_archive_cmds_GCJ \
18103     old_archive_from_new_cmds_GCJ \
18104     predep_objects_GCJ \
18105     postdep_objects_GCJ \
18106     predeps_GCJ \
18107     postdeps_GCJ \
18108     compiler_lib_search_path_GCJ \
18109     archive_cmds_GCJ \
18110     archive_expsym_cmds_GCJ \
18111     postinstall_cmds_GCJ \
18112     postuninstall_cmds_GCJ \
18113     old_archive_from_expsyms_cmds_GCJ \
18114     allow_undefined_flag_GCJ \
18115     no_undefined_flag_GCJ \
18116     export_symbols_cmds_GCJ \
18117     hardcode_libdir_flag_spec_GCJ \
18118     hardcode_libdir_flag_spec_ld_GCJ \
18119     hardcode_libdir_separator_GCJ \
18120     hardcode_automatic_GCJ \
18121     module_cmds_GCJ \
18122     module_expsym_cmds_GCJ \
18123     lt_cv_prog_compiler_c_o_GCJ \
18124     exclude_expsyms_GCJ \
18125     include_expsyms_GCJ; do
18126
18127     case $var in
18128     old_archive_cmds_GCJ | \
18129     old_archive_from_new_cmds_GCJ | \
18130     archive_cmds_GCJ | \
18131     archive_expsym_cmds_GCJ | \
18132     module_cmds_GCJ | \
18133     module_expsym_cmds_GCJ | \
18134     old_archive_from_expsyms_cmds_GCJ | \
18135     export_symbols_cmds_GCJ | \
18136     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18137     postinstall_cmds | postuninstall_cmds | \
18138     old_postinstall_cmds | old_postuninstall_cmds | \
18139     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18140       # Double-quote double-evaled strings.
18141       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18142       ;;
18143     *)
18144       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18145       ;;
18146     esac
18147   done
18148
18149   case $lt_echo in
18150   *'\$0 --fallback-echo"')
18151     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18152     ;;
18153   esac
18154
18155 cfgfile="$ofile"
18156
18157   cat <<__EOF__ >> "$cfgfile"
18158 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18159
18160 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18161
18162 # Shell to use when invoking shell scripts.
18163 SHELL=$lt_SHELL
18164
18165 # Whether or not to build shared libraries.
18166 build_libtool_libs=$enable_shared
18167
18168 # Whether or not to build static libraries.
18169 build_old_libs=$enable_static
18170
18171 # Whether or not to add -lc for building shared libraries.
18172 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18173
18174 # Whether or not to disallow shared libs when runtime libs are static
18175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18176
18177 # Whether or not to optimize for fast installation.
18178 fast_install=$enable_fast_install
18179
18180 # The host system.
18181 host_alias=$host_alias
18182 host=$host
18183
18184 # An echo program that does not interpret backslashes.
18185 echo=$lt_echo
18186
18187 # The archiver.
18188 AR=$lt_AR
18189 AR_FLAGS=$lt_AR_FLAGS
18190
18191 # A C compiler.
18192 LTCC=$lt_LTCC
18193
18194 # A language-specific compiler.
18195 CC=$lt_compiler_GCJ
18196
18197 # Is the compiler the GNU C compiler?
18198 with_gcc=$GCC_GCJ
18199
18200 # An ERE matcher.
18201 EGREP=$lt_EGREP
18202
18203 # The linker used to build libraries.
18204 LD=$lt_LD_GCJ
18205
18206 # Whether we need hard or soft links.
18207 LN_S=$lt_LN_S
18208
18209 # A BSD-compatible nm program.
18210 NM=$lt_NM
18211
18212 # A symbol stripping program
18213 STRIP=$lt_STRIP
18214
18215 # Used to examine libraries when file_magic_cmd begins "file"
18216 MAGIC_CMD=$MAGIC_CMD
18217
18218 # Used on cygwin: DLL creation program.
18219 DLLTOOL="$DLLTOOL"
18220
18221 # Used on cygwin: object dumper.
18222 OBJDUMP="$OBJDUMP"
18223
18224 # Used on cygwin: assembler.
18225 AS="$AS"
18226
18227 # The name of the directory that contains temporary libtool files.
18228 objdir=$objdir
18229
18230 # How to create reloadable object files.
18231 reload_flag=$lt_reload_flag
18232 reload_cmds=$lt_reload_cmds
18233
18234 # How to pass a linker flag through the compiler.
18235 wl=$lt_lt_prog_compiler_wl_GCJ
18236
18237 # Object file suffix (normally "o").
18238 objext="$ac_objext"
18239
18240 # Old archive suffix (normally "a").
18241 libext="$libext"
18242
18243 # Shared library suffix (normally ".so").
18244 shrext='$shrext'
18245
18246 # Executable file suffix (normally "").
18247 exeext="$exeext"
18248
18249 # Additional compiler flags for building library objects.
18250 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18251 pic_mode=$pic_mode
18252
18253 # What is the maximum length of a command?
18254 max_cmd_len=$lt_cv_sys_max_cmd_len
18255
18256 # Does compiler simultaneously support -c and -o options?
18257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18258
18259 # Must we lock files when doing compilation ?
18260 need_locks=$lt_need_locks
18261
18262 # Do we need the lib prefix for modules?
18263 need_lib_prefix=$need_lib_prefix
18264
18265 # Do we need a version for libraries?
18266 need_version=$need_version
18267
18268 # Whether dlopen is supported.
18269 dlopen_support=$enable_dlopen
18270
18271 # Whether dlopen of programs is supported.
18272 dlopen_self=$enable_dlopen_self
18273
18274 # Whether dlopen of statically linked programs is supported.
18275 dlopen_self_static=$enable_dlopen_self_static
18276
18277 # Compiler flag to prevent dynamic linking.
18278 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18279
18280 # Compiler flag to turn off builtin functions.
18281 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18282
18283 # Compiler flag to allow reflexive dlopens.
18284 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18285
18286 # Compiler flag to generate shared objects directly from archives.
18287 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18288
18289 # Compiler flag to generate thread-safe objects.
18290 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18291
18292 # Library versioning type.
18293 version_type=$version_type
18294
18295 # Format of library name prefix.
18296 libname_spec=$lt_libname_spec
18297
18298 # List of archive names.  First name is the real one, the rest are links.
18299 # The last name is the one that the linker finds with -lNAME.
18300 library_names_spec=$lt_library_names_spec
18301
18302 # The coded name of the library, if different from the real name.
18303 soname_spec=$lt_soname_spec
18304
18305 # Commands used to build and install an old-style archive.
18306 RANLIB=$lt_RANLIB
18307 old_archive_cmds=$lt_old_archive_cmds_GCJ
18308 old_postinstall_cmds=$lt_old_postinstall_cmds
18309 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18310
18311 # Create an old-style archive from a shared archive.
18312 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18313
18314 # Create a temporary old-style archive to link instead of a shared archive.
18315 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18316
18317 # Commands used to build and install a shared archive.
18318 archive_cmds=$lt_archive_cmds_GCJ
18319 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18320 postinstall_cmds=$lt_postinstall_cmds
18321 postuninstall_cmds=$lt_postuninstall_cmds
18322
18323 # Commands used to build a loadable module (assumed same as above if empty)
18324 module_cmds=$lt_module_cmds_GCJ
18325 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18326
18327 # Commands to strip libraries.
18328 old_striplib=$lt_old_striplib
18329 striplib=$lt_striplib
18330
18331 # Dependencies to place before the objects being linked to create a
18332 # shared library.
18333 predep_objects=$lt_predep_objects_GCJ
18334
18335 # Dependencies to place after the objects being linked to create a
18336 # shared library.
18337 postdep_objects=$lt_postdep_objects_GCJ
18338
18339 # Dependencies to place before the objects being linked to create a
18340 # shared library.
18341 predeps=$lt_predeps_GCJ
18342
18343 # Dependencies to place after the objects being linked to create a
18344 # shared library.
18345 postdeps=$lt_postdeps_GCJ
18346
18347 # The library search path used internally by the compiler when linking
18348 # a shared library.
18349 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18350
18351 # Method to check whether dependent libraries are shared objects.
18352 deplibs_check_method=$lt_deplibs_check_method
18353
18354 # Command to use when deplibs_check_method == file_magic.
18355 file_magic_cmd=$lt_file_magic_cmd
18356
18357 # Flag that allows shared libraries with undefined symbols to be built.
18358 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18359
18360 # Flag that forces no undefined symbols.
18361 no_undefined_flag=$lt_no_undefined_flag_GCJ
18362
18363 # Commands used to finish a libtool library installation in a directory.
18364 finish_cmds=$lt_finish_cmds
18365
18366 # Same as above, but a single script fragment to be evaled but not shown.
18367 finish_eval=$lt_finish_eval
18368
18369 # Take the output of nm and produce a listing of raw symbols and C names.
18370 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18371
18372 # Transform the output of nm in a proper C declaration
18373 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18374
18375 # Transform the output of nm in a C name address pair
18376 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18377
18378 # This is the shared library runtime path variable.
18379 runpath_var=$runpath_var
18380
18381 # This is the shared library path variable.
18382 shlibpath_var=$shlibpath_var
18383
18384 # Is shlibpath searched before the hard-coded library search path?
18385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18386
18387 # How to hardcode a shared library path into an executable.
18388 hardcode_action=$hardcode_action_GCJ
18389
18390 # Whether we should hardcode library paths into libraries.
18391 hardcode_into_libs=$hardcode_into_libs
18392
18393 # Flag to hardcode \$libdir into a binary during linking.
18394 # This must work even if \$libdir does not exist.
18395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18396
18397 # If ld is used when linking, flag to hardcode \$libdir into
18398 # a binary during linking. This must work even if \$libdir does
18399 # not exist.
18400 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18401
18402 # Whether we need a single -rpath flag with a separated argument.
18403 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18404
18405 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18406 # resulting binary.
18407 hardcode_direct=$hardcode_direct_GCJ
18408
18409 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18410 # resulting binary.
18411 hardcode_minus_L=$hardcode_minus_L_GCJ
18412
18413 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18414 # the resulting binary.
18415 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18416
18417 # Set to yes if building a shared library automatically hardcodes DIR into the library
18418 # and all subsequent libraries and executables linked against it.
18419 hardcode_automatic=$hardcode_automatic_GCJ
18420
18421 # Variables whose values should be saved in libtool wrapper scripts and
18422 # restored at relink time.
18423 variables_saved_for_relink="$variables_saved_for_relink"
18424
18425 # Whether libtool must link a program against all its dependency libraries.
18426 link_all_deplibs=$link_all_deplibs_GCJ
18427
18428 # Compile-time system search path for libraries
18429 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18430
18431 # Run-time system search path for libraries
18432 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18433
18434 # Fix the shell variable \$srcfile for the compiler.
18435 fix_srcfile_path="$fix_srcfile_path_GCJ"
18436
18437 # Set to yes if exported symbols are required.
18438 always_export_symbols=$always_export_symbols_GCJ
18439
18440 # The commands to list exported symbols.
18441 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18442
18443 # The commands to extract the exported symbol list from a shared archive.
18444 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18445
18446 # Symbols that should not be listed in the preloaded symbols.
18447 exclude_expsyms=$lt_exclude_expsyms_GCJ
18448
18449 # Symbols that must always be exported.
18450 include_expsyms=$lt_include_expsyms_GCJ
18451
18452 # ### END LIBTOOL TAG CONFIG: $tagname
18453
18454 __EOF__
18455
18456
18457 else
18458   # If there is no Makefile yet, we rely on a make rule to execute
18459   # `config.status --recheck' to rerun these tests and create the
18460   # libtool script then.
18461   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18462   if test -f "$ltmain_in"; then
18463     test -f Makefile && make "$ltmain"
18464   fi
18465 fi
18466
18467
18468 ac_ext=c
18469 ac_cpp='$CPP $CPPFLAGS'
18470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18473
18474 CC="$lt_save_CC"
18475
18476         else
18477           tagname=""
18478         fi
18479         ;;
18480
18481       RC)
18482
18483
18484
18485 # Source file extension for RC test sources.
18486 ac_ext=rc
18487
18488 # Object file extension for compiled RC test sources.
18489 objext=o
18490 objext_RC=$objext
18491
18492 # Code to be used in simple compile tests
18493 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18494
18495 # Code to be used in simple link tests
18496 lt_simple_link_test_code="$lt_simple_compile_test_code"
18497
18498 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18499
18500 # If no C compiler was specified, use CC.
18501 LTCC=${LTCC-"$CC"}
18502
18503 # Allow CC to be a program name with arguments.
18504 compiler=$CC
18505
18506
18507 # Allow CC to be a program name with arguments.
18508 lt_save_CC="$CC"
18509 CC=${RC-"windres"}
18510 compiler=$CC
18511 compiler_RC=$CC
18512 lt_cv_prog_compiler_c_o_RC=yes
18513
18514 # The else clause should only fire when bootstrapping the
18515 # libtool distribution, otherwise you forgot to ship ltmain.sh
18516 # with your package, and you will get complaints that there are
18517 # no rules to generate ltmain.sh.
18518 if test -f "$ltmain"; then
18519   # See if we are running on zsh, and set the options which allow our commands through
18520   # without removal of \ escapes.
18521   if test -n "${ZSH_VERSION+set}" ; then
18522     setopt NO_GLOB_SUBST
18523   fi
18524   # Now quote all the things that may contain metacharacters while being
18525   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18526   # variables and quote the copies for generation of the libtool script.
18527   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18528     SED SHELL STRIP \
18529     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18530     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18531     deplibs_check_method reload_flag reload_cmds need_locks \
18532     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18533     lt_cv_sys_global_symbol_to_c_name_address \
18534     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18535     old_postinstall_cmds old_postuninstall_cmds \
18536     compiler_RC \
18537     CC_RC \
18538     LD_RC \
18539     lt_prog_compiler_wl_RC \
18540     lt_prog_compiler_pic_RC \
18541     lt_prog_compiler_static_RC \
18542     lt_prog_compiler_no_builtin_flag_RC \
18543     export_dynamic_flag_spec_RC \
18544     thread_safe_flag_spec_RC \
18545     whole_archive_flag_spec_RC \
18546     enable_shared_with_static_runtimes_RC \
18547     old_archive_cmds_RC \
18548     old_archive_from_new_cmds_RC \
18549     predep_objects_RC \
18550     postdep_objects_RC \
18551     predeps_RC \
18552     postdeps_RC \
18553     compiler_lib_search_path_RC \
18554     archive_cmds_RC \
18555     archive_expsym_cmds_RC \
18556     postinstall_cmds_RC \
18557     postuninstall_cmds_RC \
18558     old_archive_from_expsyms_cmds_RC \
18559     allow_undefined_flag_RC \
18560     no_undefined_flag_RC \
18561     export_symbols_cmds_RC \
18562     hardcode_libdir_flag_spec_RC \
18563     hardcode_libdir_flag_spec_ld_RC \
18564     hardcode_libdir_separator_RC \
18565     hardcode_automatic_RC \
18566     module_cmds_RC \
18567     module_expsym_cmds_RC \
18568     lt_cv_prog_compiler_c_o_RC \
18569     exclude_expsyms_RC \
18570     include_expsyms_RC; do
18571
18572     case $var in
18573     old_archive_cmds_RC | \
18574     old_archive_from_new_cmds_RC | \
18575     archive_cmds_RC | \
18576     archive_expsym_cmds_RC | \
18577     module_cmds_RC | \
18578     module_expsym_cmds_RC | \
18579     old_archive_from_expsyms_cmds_RC | \
18580     export_symbols_cmds_RC | \
18581     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18582     postinstall_cmds | postuninstall_cmds | \
18583     old_postinstall_cmds | old_postuninstall_cmds | \
18584     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18585       # Double-quote double-evaled strings.
18586       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18587       ;;
18588     *)
18589       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18590       ;;
18591     esac
18592   done
18593
18594   case $lt_echo in
18595   *'\$0 --fallback-echo"')
18596     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18597     ;;
18598   esac
18599
18600 cfgfile="$ofile"
18601
18602   cat <<__EOF__ >> "$cfgfile"
18603 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18604
18605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18606
18607 # Shell to use when invoking shell scripts.
18608 SHELL=$lt_SHELL
18609
18610 # Whether or not to build shared libraries.
18611 build_libtool_libs=$enable_shared
18612
18613 # Whether or not to build static libraries.
18614 build_old_libs=$enable_static
18615
18616 # Whether or not to add -lc for building shared libraries.
18617 build_libtool_need_lc=$archive_cmds_need_lc_RC
18618
18619 # Whether or not to disallow shared libs when runtime libs are static
18620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18621
18622 # Whether or not to optimize for fast installation.
18623 fast_install=$enable_fast_install
18624
18625 # The host system.
18626 host_alias=$host_alias
18627 host=$host
18628
18629 # An echo program that does not interpret backslashes.
18630 echo=$lt_echo
18631
18632 # The archiver.
18633 AR=$lt_AR
18634 AR_FLAGS=$lt_AR_FLAGS
18635
18636 # A C compiler.
18637 LTCC=$lt_LTCC
18638
18639 # A language-specific compiler.
18640 CC=$lt_compiler_RC
18641
18642 # Is the compiler the GNU C compiler?
18643 with_gcc=$GCC_RC
18644
18645 # An ERE matcher.
18646 EGREP=$lt_EGREP
18647
18648 # The linker used to build libraries.
18649 LD=$lt_LD_RC
18650
18651 # Whether we need hard or soft links.
18652 LN_S=$lt_LN_S
18653
18654 # A BSD-compatible nm program.
18655 NM=$lt_NM
18656
18657 # A symbol stripping program
18658 STRIP=$lt_STRIP
18659
18660 # Used to examine libraries when file_magic_cmd begins "file"
18661 MAGIC_CMD=$MAGIC_CMD
18662
18663 # Used on cygwin: DLL creation program.
18664 DLLTOOL="$DLLTOOL"
18665
18666 # Used on cygwin: object dumper.
18667 OBJDUMP="$OBJDUMP"
18668
18669 # Used on cygwin: assembler.
18670 AS="$AS"
18671
18672 # The name of the directory that contains temporary libtool files.
18673 objdir=$objdir
18674
18675 # How to create reloadable object files.
18676 reload_flag=$lt_reload_flag
18677 reload_cmds=$lt_reload_cmds
18678
18679 # How to pass a linker flag through the compiler.
18680 wl=$lt_lt_prog_compiler_wl_RC
18681
18682 # Object file suffix (normally "o").
18683 objext="$ac_objext"
18684
18685 # Old archive suffix (normally "a").
18686 libext="$libext"
18687
18688 # Shared library suffix (normally ".so").
18689 shrext='$shrext'
18690
18691 # Executable file suffix (normally "").
18692 exeext="$exeext"
18693
18694 # Additional compiler flags for building library objects.
18695 pic_flag=$lt_lt_prog_compiler_pic_RC
18696 pic_mode=$pic_mode
18697
18698 # What is the maximum length of a command?
18699 max_cmd_len=$lt_cv_sys_max_cmd_len
18700
18701 # Does compiler simultaneously support -c and -o options?
18702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18703
18704 # Must we lock files when doing compilation ?
18705 need_locks=$lt_need_locks
18706
18707 # Do we need the lib prefix for modules?
18708 need_lib_prefix=$need_lib_prefix
18709
18710 # Do we need a version for libraries?
18711 need_version=$need_version
18712
18713 # Whether dlopen is supported.
18714 dlopen_support=$enable_dlopen
18715
18716 # Whether dlopen of programs is supported.
18717 dlopen_self=$enable_dlopen_self
18718
18719 # Whether dlopen of statically linked programs is supported.
18720 dlopen_self_static=$enable_dlopen_self_static
18721
18722 # Compiler flag to prevent dynamic linking.
18723 link_static_flag=$lt_lt_prog_compiler_static_RC
18724
18725 # Compiler flag to turn off builtin functions.
18726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18727
18728 # Compiler flag to allow reflexive dlopens.
18729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18730
18731 # Compiler flag to generate shared objects directly from archives.
18732 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18733
18734 # Compiler flag to generate thread-safe objects.
18735 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18736
18737 # Library versioning type.
18738 version_type=$version_type
18739
18740 # Format of library name prefix.
18741 libname_spec=$lt_libname_spec
18742
18743 # List of archive names.  First name is the real one, the rest are links.
18744 # The last name is the one that the linker finds with -lNAME.
18745 library_names_spec=$lt_library_names_spec
18746
18747 # The coded name of the library, if different from the real name.
18748 soname_spec=$lt_soname_spec
18749
18750 # Commands used to build and install an old-style archive.
18751 RANLIB=$lt_RANLIB
18752 old_archive_cmds=$lt_old_archive_cmds_RC
18753 old_postinstall_cmds=$lt_old_postinstall_cmds
18754 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18755
18756 # Create an old-style archive from a shared archive.
18757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18758
18759 # Create a temporary old-style archive to link instead of a shared archive.
18760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18761
18762 # Commands used to build and install a shared archive.
18763 archive_cmds=$lt_archive_cmds_RC
18764 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18765 postinstall_cmds=$lt_postinstall_cmds
18766 postuninstall_cmds=$lt_postuninstall_cmds
18767
18768 # Commands used to build a loadable module (assumed same as above if empty)
18769 module_cmds=$lt_module_cmds_RC
18770 module_expsym_cmds=$lt_module_expsym_cmds_RC
18771
18772 # Commands to strip libraries.
18773 old_striplib=$lt_old_striplib
18774 striplib=$lt_striplib
18775
18776 # Dependencies to place before the objects being linked to create a
18777 # shared library.
18778 predep_objects=$lt_predep_objects_RC
18779
18780 # Dependencies to place after the objects being linked to create a
18781 # shared library.
18782 postdep_objects=$lt_postdep_objects_RC
18783
18784 # Dependencies to place before the objects being linked to create a
18785 # shared library.
18786 predeps=$lt_predeps_RC
18787
18788 # Dependencies to place after the objects being linked to create a
18789 # shared library.
18790 postdeps=$lt_postdeps_RC
18791
18792 # The library search path used internally by the compiler when linking
18793 # a shared library.
18794 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18795
18796 # Method to check whether dependent libraries are shared objects.
18797 deplibs_check_method=$lt_deplibs_check_method
18798
18799 # Command to use when deplibs_check_method == file_magic.
18800 file_magic_cmd=$lt_file_magic_cmd
18801
18802 # Flag that allows shared libraries with undefined symbols to be built.
18803 allow_undefined_flag=$lt_allow_undefined_flag_RC
18804
18805 # Flag that forces no undefined symbols.
18806 no_undefined_flag=$lt_no_undefined_flag_RC
18807
18808 # Commands used to finish a libtool library installation in a directory.
18809 finish_cmds=$lt_finish_cmds
18810
18811 # Same as above, but a single script fragment to be evaled but not shown.
18812 finish_eval=$lt_finish_eval
18813
18814 # Take the output of nm and produce a listing of raw symbols and C names.
18815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18816
18817 # Transform the output of nm in a proper C declaration
18818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18819
18820 # Transform the output of nm in a C name address pair
18821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18822
18823 # This is the shared library runtime path variable.
18824 runpath_var=$runpath_var
18825
18826 # This is the shared library path variable.
18827 shlibpath_var=$shlibpath_var
18828
18829 # Is shlibpath searched before the hard-coded library search path?
18830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18831
18832 # How to hardcode a shared library path into an executable.
18833 hardcode_action=$hardcode_action_RC
18834
18835 # Whether we should hardcode library paths into libraries.
18836 hardcode_into_libs=$hardcode_into_libs
18837
18838 # Flag to hardcode \$libdir into a binary during linking.
18839 # This must work even if \$libdir does not exist.
18840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18841
18842 # If ld is used when linking, flag to hardcode \$libdir into
18843 # a binary during linking. This must work even if \$libdir does
18844 # not exist.
18845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18846
18847 # Whether we need a single -rpath flag with a separated argument.
18848 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18849
18850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18851 # resulting binary.
18852 hardcode_direct=$hardcode_direct_RC
18853
18854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18855 # resulting binary.
18856 hardcode_minus_L=$hardcode_minus_L_RC
18857
18858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18859 # the resulting binary.
18860 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18861
18862 # Set to yes if building a shared library automatically hardcodes DIR into the library
18863 # and all subsequent libraries and executables linked against it.
18864 hardcode_automatic=$hardcode_automatic_RC
18865
18866 # Variables whose values should be saved in libtool wrapper scripts and
18867 # restored at relink time.
18868 variables_saved_for_relink="$variables_saved_for_relink"
18869
18870 # Whether libtool must link a program against all its dependency libraries.
18871 link_all_deplibs=$link_all_deplibs_RC
18872
18873 # Compile-time system search path for libraries
18874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18875
18876 # Run-time system search path for libraries
18877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18878
18879 # Fix the shell variable \$srcfile for the compiler.
18880 fix_srcfile_path="$fix_srcfile_path_RC"
18881
18882 # Set to yes if exported symbols are required.
18883 always_export_symbols=$always_export_symbols_RC
18884
18885 # The commands to list exported symbols.
18886 export_symbols_cmds=$lt_export_symbols_cmds_RC
18887
18888 # The commands to extract the exported symbol list from a shared archive.
18889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18890
18891 # Symbols that should not be listed in the preloaded symbols.
18892 exclude_expsyms=$lt_exclude_expsyms_RC
18893
18894 # Symbols that must always be exported.
18895 include_expsyms=$lt_include_expsyms_RC
18896
18897 # ### END LIBTOOL TAG CONFIG: $tagname
18898
18899 __EOF__
18900
18901
18902 else
18903   # If there is no Makefile yet, we rely on a make rule to execute
18904   # `config.status --recheck' to rerun these tests and create the
18905   # libtool script then.
18906   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18907   if test -f "$ltmain_in"; then
18908     test -f Makefile && make "$ltmain"
18909   fi
18910 fi
18911
18912
18913 ac_ext=c
18914 ac_cpp='$CPP $CPPFLAGS'
18915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18918
18919 CC="$lt_save_CC"
18920
18921         ;;
18922
18923       *)
18924         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18925 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18926    { (exit 1); exit 1; }; }
18927         ;;
18928       esac
18929
18930       # Append the new tag name to the list of available tags.
18931       if test -n "$tagname" ; then
18932       available_tags="$available_tags $tagname"
18933     fi
18934     fi
18935   done
18936   IFS="$lt_save_ifs"
18937
18938   # Now substitute the updated list of available tags.
18939   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18940     mv "${ofile}T" "$ofile"
18941     chmod +x "$ofile"
18942   else
18943     rm -f "${ofile}T"
18944     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18945 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18946    { (exit 1); exit 1; }; }
18947   fi
18948 fi
18949
18950
18951
18952 # This can be used to rebuild libtool when needed
18953 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18954
18955 # Always use our own libtool.
18956 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18957
18958 # Prevent multiple expansion
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981 # Check whether --with-mysql or --without-mysql was given.
18982 if test "${with_mysql+set}" = set; then
18983   withval="$with_mysql"
18984
18985 fi;
18986 # Check whether --enable-debug or --disable-debug was given.
18987 if test "${enable_debug+set}" = set; then
18988   enableval="$enable_debug"
18989
18990 cat >>confdefs.h <<\_ACEOF
18991 #define DEBUG 1
18992 _ACEOF
18993
18994 fi;
18995
18996 case "$target_os" in
18997 linux*)
18998     CPPFLAGS="$CPPFLAGS -D_REENTRANT"
18999     LIBVER=2
19000     OS=linux
19001     RENAME=false
19002     test "$prefix" = "NONE" && prefix=
19003     ;;
19004 solaris*)
19005     CPPFLAGS="$CPPFLAGS -D_REENTRANT"
19006     LIBVER=1
19007     OS=solaris
19008     RENAME=true
19009     test "$prefix" = "NONE" && prefix= && libdir=/usr/lib
19010     ;;
19011 freebsd*)
19012     CPPFLAGS="$CPPFLAGS -DPIC -D_REENTRANT"
19013     LIBVER=1
19014     OS=freebsd
19015     RENAME=true
19016     test "$prefix" = "NONE" && prefix= && libdir=/usr/lib
19017     ;;
19018 *)  OS=unknown
19019     ;;
19020 esac
19021
19022
19023
19024 if test "$RENAME" = "true"; then
19025   RENAME_TRUE=
19026   RENAME_FALSE='#'
19027 else
19028   RENAME_TRUE='#'
19029   RENAME_FALSE=
19030 fi
19031
19032
19033 echo "$as_me:$LINENO: checking whether the linker accepts -znodelete" >&5
19034 echo $ECHO_N "checking whether the linker accepts -znodelete... $ECHO_C" >&6
19035 if test "${nss_mysql_cv_cc_znodelete+set}" = set; then
19036   echo $ECHO_N "(cached) $ECHO_C" >&6
19037 else
19038
19039     SAVELIBS=$LIBS
19040     LIBS="-Wl,-znodelete $SAVELIBS"
19041     cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h.  */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h.  */
19047
19048 int
19049 main ()
19050 {
19051
19052   ;
19053   return 0;
19054 }
19055 _ACEOF
19056 rm -f conftest.$ac_objext conftest$ac_exeext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19058   (eval $ac_link) 2>conftest.er1
19059   ac_status=$?
19060   grep -v '^ *+' conftest.er1 >conftest.err
19061   rm -f conftest.er1
19062   cat conftest.err >&5
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); } &&
19065          { ac_try='test -z "$ac_c_werror_flag"
19066                          || test ! -s conftest.err'
19067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068   (eval $ac_try) 2>&5
19069   ac_status=$?
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); }; } &&
19072          { ac_try='test -s conftest$ac_exeext'
19073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074   (eval $ac_try) 2>&5
19075   ac_status=$?
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); }; }; then
19078   nss_mysql_cv_cc_znodelete=yes
19079 else
19080   echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19082
19083 nss_mysql_cv_cc_znodelete=no
19084 fi
19085 rm -f conftest.err conftest.$ac_objext \
19086       conftest$ac_exeext conftest.$ac_ext
19087     LIBS=$SAVELIBS
19088 fi
19089 echo "$as_me:$LINENO: result: $nss_mysql_cv_cc_znodelete" >&5
19090 echo "${ECHO_T}$nss_mysql_cv_cc_znodelete" >&6
19091 if test $nss_mysql_cv_cc_znodelete = "yes"; then
19092     LIBS="-Wl,-znodelete $SAVELIBS"
19093 fi
19094
19095
19096
19097
19098
19099
19100 baselist="$with_mysql \
19101           /usr \
19102           /usr/local \
19103           /usr/local/mysql \
19104           /opt/local \
19105           /opt/local/mysql"
19106
19107 echo "$as_me:$LINENO: checking for MySQL headers" >&5
19108 echo $ECHO_N "checking for MySQL headers... $ECHO_C" >&6
19109 for f in $baselist; do
19110     if test -f "$f/include/mysql/mysql.h"
19111     then
19112         MYSQL_INC_DIR="$f/include/mysql"
19113         break
19114     fi
19115
19116     if test -f "$f/include/mysql.h"
19117     then
19118         MYSQL_INC_DIR="$f/include"
19119         break
19120     fi
19121 done
19122
19123 if test -n "$MYSQL_INC_DIR"
19124 then
19125     echo "$as_me:$LINENO: result: $MYSQL_INC_DIR" >&5
19126 echo "${ECHO_T}$MYSQL_INC_DIR" >&6
19127     CPPFLAGS="-I $MYSQL_INC_DIR $CPPFLAGS"
19128 else
19129     { { echo "$as_me:$LINENO: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&5
19130 echo "$as_me: error: Cannot locate MySQL headers.  Try using --with-mysql=DIR" >&2;}
19131    { (exit 1); exit 1; }; }
19132 fi
19133
19134 echo "$as_me:$LINENO: checking for MySQL libraries" >&5
19135 echo $ECHO_N "checking for MySQL libraries... $ECHO_C" >&6
19136 for f in $baselist; do
19137     if test -f "$f/lib/libmysqlclient.so"
19138     then
19139         MYSQL_LIB_DIR="$f/lib"
19140         break
19141     fi
19142
19143     if test -f "$f/lib/mysql/libmysqlclient.so"
19144     then
19145         MYSQL_LIB_DIR="$f/lib/mysql"
19146         break
19147     fi
19148 done
19149
19150 for f in $baselist; do
19151     if test -f "$f/lib/libmysqlclient.a"
19152     then
19153         MYSQL_LIB_DIR="$f/lib"
19154         break
19155     fi
19156
19157     if test -f "$f/lib/mysql/libmysqlclient.a"
19158     then
19159         MYSQL_LIB_DIR="$f/lib/mysql"
19160         break
19161     fi
19162 done
19163
19164 if test -n "$MYSQL_LIB_DIR"
19165 then
19166     echo "$as_me:$LINENO: result: $MYSQL_LIB_DIR" >&5
19167 echo "${ECHO_T}$MYSQL_LIB_DIR" >&6
19168     LDFLAGS="-L$MYSQL_LIB_DIR $LDFLAGS"
19169 else
19170     { { echo "$as_me:$LINENO: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&5
19171 echo "$as_me: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR" >&2;}
19172    { (exit 1); exit 1; }; }
19173 fi
19174
19175
19176
19177
19178 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19179 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19180 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19181   echo $ECHO_N "(cached) $ECHO_C" >&6
19182 else
19183   ac_check_lib_save_LIBS=$LIBS
19184 LIBS="-lsocket  $LIBS"
19185 cat >conftest.$ac_ext <<_ACEOF
19186 /* confdefs.h.  */
19187 _ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h.  */
19191
19192 /* Override any gcc2 internal prototype to avoid an error.  */
19193 #ifdef __cplusplus
19194 extern "C"
19195 #endif
19196 /* We use char because int might match the return type of a gcc2
19197    builtin and then its argument prototype would still apply.  */
19198 char getsockname ();
19199 int
19200 main ()
19201 {
19202 getsockname ();
19203   ;
19204   return 0;
19205 }
19206 _ACEOF
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209   (eval $ac_link) 2>conftest.er1
19210   ac_status=$?
19211   grep -v '^ *+' conftest.er1 >conftest.err
19212   rm -f conftest.er1
19213   cat conftest.err >&5
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); } &&
19216          { ac_try='test -z "$ac_c_werror_flag"
19217                          || test ! -s conftest.err'
19218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219   (eval $ac_try) 2>&5
19220   ac_status=$?
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); }; } &&
19223          { ac_try='test -s conftest$ac_exeext'
19224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225   (eval $ac_try) 2>&5
19226   ac_status=$?
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); }; }; then
19229   ac_cv_lib_socket_getsockname=yes
19230 else
19231   echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19233
19234 ac_cv_lib_socket_getsockname=no
19235 fi
19236 rm -f conftest.err conftest.$ac_objext \
19237       conftest$ac_exeext conftest.$ac_ext
19238 LIBS=$ac_check_lib_save_LIBS
19239 fi
19240 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19241 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19242 if test $ac_cv_lib_socket_getsockname = yes; then
19243   cat >>confdefs.h <<_ACEOF
19244 #define HAVE_LIBSOCKET 1
19245 _ACEOF
19246
19247   LIBS="-lsocket $LIBS"
19248
19249 fi
19250
19251
19252 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19253 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19254 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19255   echo $ECHO_N "(cached) $ECHO_C" >&6
19256 else
19257   ac_check_lib_save_LIBS=$LIBS
19258 LIBS="-lnsl  $LIBS"
19259 cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h.  */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h.  */
19265
19266 /* Override any gcc2 internal prototype to avoid an error.  */
19267 #ifdef __cplusplus
19268 extern "C"
19269 #endif
19270 /* We use char because int might match the return type of a gcc2
19271    builtin and then its argument prototype would still apply.  */
19272 char gethostbyname ();
19273 int
19274 main ()
19275 {
19276 gethostbyname ();
19277   ;
19278   return 0;
19279 }
19280 _ACEOF
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19283   (eval $ac_link) 2>conftest.er1
19284   ac_status=$?
19285   grep -v '^ *+' conftest.er1 >conftest.err
19286   rm -f conftest.er1
19287   cat conftest.err >&5
19288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289   (exit $ac_status); } &&
19290          { ac_try='test -z "$ac_c_werror_flag"
19291                          || test ! -s conftest.err'
19292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293   (eval $ac_try) 2>&5
19294   ac_status=$?
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); }; } &&
19297          { ac_try='test -s conftest$ac_exeext'
19298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299   (eval $ac_try) 2>&5
19300   ac_status=$?
19301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302   (exit $ac_status); }; }; then
19303   ac_cv_lib_nsl_gethostbyname=yes
19304 else
19305   echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308 ac_cv_lib_nsl_gethostbyname=no
19309 fi
19310 rm -f conftest.err conftest.$ac_objext \
19311       conftest$ac_exeext conftest.$ac_ext
19312 LIBS=$ac_check_lib_save_LIBS
19313 fi
19314 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19315 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19316 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19317   cat >>confdefs.h <<_ACEOF
19318 #define HAVE_LIBNSL 1
19319 _ACEOF
19320
19321   LIBS="-lnsl $LIBS"
19322
19323 fi
19324
19325
19326 echo "$as_me:$LINENO: checking for floor in -lm" >&5
19327 echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
19328 if test "${ac_cv_lib_m_floor+set}" = set; then
19329   echo $ECHO_N "(cached) $ECHO_C" >&6
19330 else
19331   ac_check_lib_save_LIBS=$LIBS
19332 LIBS="-lm  $LIBS"
19333 cat >conftest.$ac_ext <<_ACEOF
19334 /* confdefs.h.  */
19335 _ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h.  */
19339
19340 /* Override any gcc2 internal prototype to avoid an error.  */
19341 #ifdef __cplusplus
19342 extern "C"
19343 #endif
19344 /* We use char because int might match the return type of a gcc2
19345    builtin and then its argument prototype would still apply.  */
19346 char floor ();
19347 int
19348 main ()
19349 {
19350 floor ();
19351   ;
19352   return 0;
19353 }
19354 _ACEOF
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19357   (eval $ac_link) 2>conftest.er1
19358   ac_status=$?
19359   grep -v '^ *+' conftest.er1 >conftest.err
19360   rm -f conftest.er1
19361   cat conftest.err >&5
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); } &&
19364          { ac_try='test -z "$ac_c_werror_flag"
19365                          || test ! -s conftest.err'
19366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367   (eval $ac_try) 2>&5
19368   ac_status=$?
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); }; } &&
19371          { ac_try='test -s conftest$ac_exeext'
19372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373   (eval $ac_try) 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; }; then
19377   ac_cv_lib_m_floor=yes
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 ac_cv_lib_m_floor=no
19383 fi
19384 rm -f conftest.err conftest.$ac_objext \
19385       conftest$ac_exeext conftest.$ac_ext
19386 LIBS=$ac_check_lib_save_LIBS
19387 fi
19388 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
19389 echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
19390 if test $ac_cv_lib_m_floor = yes; then
19391   cat >>confdefs.h <<_ACEOF
19392 #define HAVE_LIBM 1
19393 _ACEOF
19394
19395   LIBS="-lm $LIBS"
19396
19397 fi
19398
19399
19400 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
19401 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
19402 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
19403   echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405   ac_check_lib_save_LIBS=$LIBS
19406 LIBS="-ldl  $LIBS"
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h.  */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h.  */
19413
19414 /* Override any gcc2 internal prototype to avoid an error.  */
19415 #ifdef __cplusplus
19416 extern "C"
19417 #endif
19418 /* We use char because int might match the return type of a gcc2
19419    builtin and then its argument prototype would still apply.  */
19420 char dlsym ();
19421 int
19422 main ()
19423 {
19424 dlsym ();
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19431   (eval $ac_link) 2>conftest.er1
19432   ac_status=$?
19433   grep -v '^ *+' conftest.er1 >conftest.err
19434   rm -f conftest.er1
19435   cat conftest.err >&5
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); } &&
19438          { ac_try='test -z "$ac_c_werror_flag"
19439                          || test ! -s conftest.err'
19440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441   (eval $ac_try) 2>&5
19442   ac_status=$?
19443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444   (exit $ac_status); }; } &&
19445          { ac_try='test -s conftest$ac_exeext'
19446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447   (eval $ac_try) 2>&5
19448   ac_status=$?
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); }; }; then
19451   ac_cv_lib_dl_dlsym=yes
19452 else
19453   echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19455
19456 ac_cv_lib_dl_dlsym=no
19457 fi
19458 rm -f conftest.err conftest.$ac_objext \
19459       conftest$ac_exeext conftest.$ac_ext
19460 LIBS=$ac_check_lib_save_LIBS
19461 fi
19462 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
19463 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
19464 if test $ac_cv_lib_dl_dlsym = yes; then
19465   cat >>confdefs.h <<_ACEOF
19466 #define HAVE_LIBDL 1
19467 _ACEOF
19468
19469   LIBS="-ldl $LIBS"
19470
19471 fi
19472
19473
19474 echo "$as_me:$LINENO: checking for compress in -lz" >&5
19475 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
19476 if test "${ac_cv_lib_z_compress+set}" = set; then
19477   echo $ECHO_N "(cached) $ECHO_C" >&6
19478 else
19479   ac_check_lib_save_LIBS=$LIBS
19480 LIBS="-lz  $LIBS"
19481 cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h.  */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h.  */
19487
19488 /* Override any gcc2 internal prototype to avoid an error.  */
19489 #ifdef __cplusplus
19490 extern "C"
19491 #endif
19492 /* We use char because int might match the return type of a gcc2
19493    builtin and then its argument prototype would still apply.  */
19494 char compress ();
19495 int
19496 main ()
19497 {
19498 compress ();
19499   ;
19500   return 0;
19501 }
19502 _ACEOF
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19505   (eval $ac_link) 2>conftest.er1
19506   ac_status=$?
19507   grep -v '^ *+' conftest.er1 >conftest.err
19508   rm -f conftest.er1
19509   cat conftest.err >&5
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); } &&
19512          { ac_try='test -z "$ac_c_werror_flag"
19513                          || test ! -s conftest.err'
19514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515   (eval $ac_try) 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); }; } &&
19519          { ac_try='test -s conftest$ac_exeext'
19520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521   (eval $ac_try) 2>&5
19522   ac_status=$?
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); }; }; then
19525   ac_cv_lib_z_compress=yes
19526 else
19527   echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 ac_cv_lib_z_compress=no
19531 fi
19532 rm -f conftest.err conftest.$ac_objext \
19533       conftest$ac_exeext conftest.$ac_ext
19534 LIBS=$ac_check_lib_save_LIBS
19535 fi
19536 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
19537 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
19538 if test $ac_cv_lib_z_compress = yes; then
19539   cat >>confdefs.h <<_ACEOF
19540 #define HAVE_LIBZ 1
19541 _ACEOF
19542
19543   LIBS="-lz $LIBS"
19544
19545 fi
19546
19547
19548
19549 echo "$as_me:$LINENO: checking for main in -lmysqlclient" >&5
19550 echo $ECHO_N "checking for main in -lmysqlclient... $ECHO_C" >&6
19551 if test "${ac_cv_lib_mysqlclient_main+set}" = set; then
19552   echo $ECHO_N "(cached) $ECHO_C" >&6
19553 else
19554   ac_check_lib_save_LIBS=$LIBS
19555 LIBS="-lmysqlclient  $LIBS"
19556 cat >conftest.$ac_ext <<_ACEOF
19557 /* confdefs.h.  */
19558 _ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h.  */
19562
19563
19564 int
19565 main ()
19566 {
19567 main ();
19568   ;
19569   return 0;
19570 }
19571 _ACEOF
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19574   (eval $ac_link) 2>conftest.er1
19575   ac_status=$?
19576   grep -v '^ *+' conftest.er1 >conftest.err
19577   rm -f conftest.er1
19578   cat conftest.err >&5
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); } &&
19581          { ac_try='test -z "$ac_c_werror_flag"
19582                          || test ! -s conftest.err'
19583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584   (eval $ac_try) 2>&5
19585   ac_status=$?
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); }; } &&
19588          { ac_try='test -s conftest$ac_exeext'
19589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590   (eval $ac_try) 2>&5
19591   ac_status=$?
19592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593   (exit $ac_status); }; }; then
19594   ac_cv_lib_mysqlclient_main=yes
19595 else
19596   echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19598
19599 ac_cv_lib_mysqlclient_main=no
19600 fi
19601 rm -f conftest.err conftest.$ac_objext \
19602       conftest$ac_exeext conftest.$ac_ext
19603 LIBS=$ac_check_lib_save_LIBS
19604 fi
19605 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_main" >&5
19606 echo "${ECHO_T}$ac_cv_lib_mysqlclient_main" >&6
19607 if test $ac_cv_lib_mysqlclient_main = yes; then
19608   cat >>confdefs.h <<_ACEOF
19609 #define HAVE_LIBMYSQLCLIENT 1
19610 _ACEOF
19611
19612   LIBS="-lmysqlclient $LIBS"
19613
19614 else
19615   { { echo "$as_me:$LINENO: error: Unable find a functioning MySQL library" >&5
19616 echo "$as_me: error: Unable find a functioning MySQL library" >&2;}
19617    { (exit 1); exit 1; }; }
19618 fi
19619
19620
19621 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19622 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19623 if test "${ac_cv_header_stdc+set}" = set; then
19624   echo $ECHO_N "(cached) $ECHO_C" >&6
19625 else
19626   cat >conftest.$ac_ext <<_ACEOF
19627 /* confdefs.h.  */
19628 _ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h.  */
19632 #include <stdlib.h>
19633 #include <stdarg.h>
19634 #include <string.h>
19635 #include <float.h>
19636
19637 int
19638 main ()
19639 {
19640
19641   ;
19642   return 0;
19643 }
19644 _ACEOF
19645 rm -f conftest.$ac_objext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19647   (eval $ac_compile) 2>conftest.er1
19648   ac_status=$?
19649   grep -v '^ *+' conftest.er1 >conftest.err
19650   rm -f conftest.er1
19651   cat conftest.err >&5
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); } &&
19654          { ac_try='test -z "$ac_c_werror_flag"
19655                          || test ! -s conftest.err'
19656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657   (eval $ac_try) 2>&5
19658   ac_status=$?
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); }; } &&
19661          { ac_try='test -s conftest.$ac_objext'
19662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663   (eval $ac_try) 2>&5
19664   ac_status=$?
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); }; }; then
19667   ac_cv_header_stdc=yes
19668 else
19669   echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19671
19672 ac_cv_header_stdc=no
19673 fi
19674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19675
19676 if test $ac_cv_header_stdc = yes; then
19677   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19678   cat >conftest.$ac_ext <<_ACEOF
19679 /* confdefs.h.  */
19680 _ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h.  */
19684 #include <string.h>
19685
19686 _ACEOF
19687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19688   $EGREP "memchr" >/dev/null 2>&1; then
19689   :
19690 else
19691   ac_cv_header_stdc=no
19692 fi
19693 rm -f conftest*
19694
19695 fi
19696
19697 if test $ac_cv_header_stdc = yes; then
19698   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19699   cat >conftest.$ac_ext <<_ACEOF
19700 /* confdefs.h.  */
19701 _ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h.  */
19705 #include <stdlib.h>
19706
19707 _ACEOF
19708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19709   $EGREP "free" >/dev/null 2>&1; then
19710   :
19711 else
19712   ac_cv_header_stdc=no
19713 fi
19714 rm -f conftest*
19715
19716 fi
19717
19718 if test $ac_cv_header_stdc = yes; then
19719   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19720   if test "$cross_compiling" = yes; then
19721   :
19722 else
19723   cat >conftest.$ac_ext <<_ACEOF
19724 /* confdefs.h.  */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h.  */
19729 #include <ctype.h>
19730 #if ((' ' & 0x0FF) == 0x020)
19731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19733 #else
19734 # define ISLOWER(c) \
19735                    (('a' <= (c) && (c) <= 'i') \
19736                      || ('j' <= (c) && (c) <= 'r') \
19737                      || ('s' <= (c) && (c) <= 'z'))
19738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19739 #endif
19740
19741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19742 int
19743 main ()
19744 {
19745   int i;
19746   for (i = 0; i < 256; i++)
19747     if (XOR (islower (i), ISLOWER (i))
19748         || toupper (i) != TOUPPER (i))
19749       exit(2);
19750   exit (0);
19751 }
19752 _ACEOF
19753 rm -f conftest$ac_exeext
19754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19755   (eval $ac_link) 2>&5
19756   ac_status=$?
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760   (eval $ac_try) 2>&5
19761   ac_status=$?
19762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763   (exit $ac_status); }; }; then
19764   :
19765 else
19766   echo "$as_me: program exited with status $ac_status" >&5
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770 ( exit $ac_status )
19771 ac_cv_header_stdc=no
19772 fi
19773 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19774 fi
19775 fi
19776 fi
19777 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19778 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19779 if test $ac_cv_header_stdc = yes; then
19780
19781 cat >>confdefs.h <<\_ACEOF
19782 #define STDC_HEADERS 1
19783 _ACEOF
19784
19785 fi
19786
19787 if test "${ac_cv_header_mysql_h+set}" = set; then
19788   echo "$as_me:$LINENO: checking for mysql.h" >&5
19789 echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
19790 if test "${ac_cv_header_mysql_h+set}" = set; then
19791   echo $ECHO_N "(cached) $ECHO_C" >&6
19792 fi
19793 echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
19794 echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
19795 else
19796   # Is the header compilable?
19797 echo "$as_me:$LINENO: checking mysql.h usability" >&5
19798 echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6
19799 cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h.  */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h.  */
19805 $ac_includes_default
19806 #include <mysql.h>
19807 _ACEOF
19808 rm -f conftest.$ac_objext
19809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19810   (eval $ac_compile) 2>conftest.er1
19811   ac_status=$?
19812   grep -v '^ *+' conftest.er1 >conftest.err
19813   rm -f conftest.er1
19814   cat conftest.err >&5
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); } &&
19817          { ac_try='test -z "$ac_c_werror_flag"
19818                          || test ! -s conftest.err'
19819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820   (eval $ac_try) 2>&5
19821   ac_status=$?
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); }; } &&
19824          { ac_try='test -s conftest.$ac_objext'
19825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826   (eval $ac_try) 2>&5
19827   ac_status=$?
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); }; }; then
19830   ac_header_compiler=yes
19831 else
19832   echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19834
19835 ac_header_compiler=no
19836 fi
19837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19839 echo "${ECHO_T}$ac_header_compiler" >&6
19840
19841 # Is the header present?
19842 echo "$as_me:$LINENO: checking mysql.h presence" >&5
19843 echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6
19844 cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h.  */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h.  */
19850 #include <mysql.h>
19851 _ACEOF
19852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19853   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19854   ac_status=$?
19855   grep -v '^ *+' conftest.er1 >conftest.err
19856   rm -f conftest.er1
19857   cat conftest.err >&5
19858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859   (exit $ac_status); } >/dev/null; then
19860   if test -s conftest.err; then
19861     ac_cpp_err=$ac_c_preproc_warn_flag
19862     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19863   else
19864     ac_cpp_err=
19865   fi
19866 else
19867   ac_cpp_err=yes
19868 fi
19869 if test -z "$ac_cpp_err"; then
19870   ac_header_preproc=yes
19871 else
19872   echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19874
19875   ac_header_preproc=no
19876 fi
19877 rm -f conftest.err conftest.$ac_ext
19878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19879 echo "${ECHO_T}$ac_header_preproc" >&6
19880
19881 # So?  What about this header?
19882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19883   yes:no: )
19884     { echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
19885 echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19886     { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
19887 echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
19888     ac_header_preproc=yes
19889     ;;
19890   no:yes:* )
19891     { echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
19892 echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
19893     { echo "$as_me:$LINENO: WARNING: mysql.h:     check for missing prerequisite headers?" >&5
19894 echo "$as_me: WARNING: mysql.h:     check for missing prerequisite headers?" >&2;}
19895     { echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
19896 echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
19897     { echo "$as_me:$LINENO: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
19898 echo "$as_me: WARNING: mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19899     { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
19900 echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
19901     { echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
19902 echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
19903     (
19904       cat <<\_ASBOX
19905 ## ------------------------------------------ ##
19906 ## Report this to the AC_PACKAGE_NAME lists.  ##
19907 ## ------------------------------------------ ##
19908 _ASBOX
19909     ) |
19910       sed "s/^/$as_me: WARNING:     /" >&2
19911     ;;
19912 esac
19913 echo "$as_me:$LINENO: checking for mysql.h" >&5
19914 echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
19915 if test "${ac_cv_header_mysql_h+set}" = set; then
19916   echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918   ac_cv_header_mysql_h=$ac_header_preproc
19919 fi
19920 echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
19921 echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
19922
19923 fi
19924 if test $ac_cv_header_mysql_h = yes; then
19925   :
19926 else
19927   { { echo "$as_me:$LINENO: error: Unable to find mysql.h" >&5
19928 echo "$as_me: error: Unable to find mysql.h" >&2;}
19929    { (exit 1); exit 1; }; }
19930 fi
19931
19932
19933
19934
19935
19936
19937
19938 for ac_header in syslog.h stdint.h nss.h nss_common.h shadow.h
19939 do
19940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19942   echo "$as_me:$LINENO: checking for $ac_header" >&5
19943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19945   echo $ECHO_N "(cached) $ECHO_C" >&6
19946 fi
19947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19949 else
19950   # Is the header compilable?
19951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19953 cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h.  */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h.  */
19959 $ac_includes_default
19960 #include <$ac_header>
19961 _ACEOF
19962 rm -f conftest.$ac_objext
19963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19964   (eval $ac_compile) 2>conftest.er1
19965   ac_status=$?
19966   grep -v '^ *+' conftest.er1 >conftest.err
19967   rm -f conftest.er1
19968   cat conftest.err >&5
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); } &&
19971          { ac_try='test -z "$ac_c_werror_flag"
19972                          || test ! -s conftest.err'
19973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974   (eval $ac_try) 2>&5
19975   ac_status=$?
19976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977   (exit $ac_status); }; } &&
19978          { ac_try='test -s conftest.$ac_objext'
19979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980   (eval $ac_try) 2>&5
19981   ac_status=$?
19982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983   (exit $ac_status); }; }; then
19984   ac_header_compiler=yes
19985 else
19986   echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989 ac_header_compiler=no
19990 fi
19991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19993 echo "${ECHO_T}$ac_header_compiler" >&6
19994
19995 # Is the header present?
19996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19998 cat >conftest.$ac_ext <<_ACEOF
19999 /* confdefs.h.  */
20000 _ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h.  */
20004 #include <$ac_header>
20005 _ACEOF
20006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20008   ac_status=$?
20009   grep -v '^ *+' conftest.er1 >conftest.err
20010   rm -f conftest.er1
20011   cat conftest.err >&5
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); } >/dev/null; then
20014   if test -s conftest.err; then
20015     ac_cpp_err=$ac_c_preproc_warn_flag
20016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20017   else
20018     ac_cpp_err=
20019   fi
20020 else
20021   ac_cpp_err=yes
20022 fi
20023 if test -z "$ac_cpp_err"; then
20024   ac_header_preproc=yes
20025 else
20026   echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20028
20029   ac_header_preproc=no
20030 fi
20031 rm -f conftest.err conftest.$ac_ext
20032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20033 echo "${ECHO_T}$ac_header_preproc" >&6
20034
20035 # So?  What about this header?
20036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20037   yes:no: )
20038     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20042     ac_header_preproc=yes
20043     ;;
20044   no:yes:* )
20045     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20047     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20048 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20049     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20051     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20052 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20055     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20057     (
20058       cat <<\_ASBOX
20059 ## ------------------------------------------ ##
20060 ## Report this to the AC_PACKAGE_NAME lists.  ##
20061 ## ------------------------------------------ ##
20062 _ASBOX
20063     ) |
20064       sed "s/^/$as_me: WARNING:     /" >&2
20065     ;;
20066 esac
20067 echo "$as_me:$LINENO: checking for $ac_header" >&5
20068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20070   echo $ECHO_N "(cached) $ECHO_C" >&6
20071 else
20072   eval "$as_ac_Header=\$ac_header_preproc"
20073 fi
20074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20076
20077 fi
20078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20079   cat >>confdefs.h <<_ACEOF
20080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20081 _ACEOF
20082
20083 fi
20084
20085 done
20086
20087
20088 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20089 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20090 if test "${ac_cv_c_const+set}" = set; then
20091   echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093   cat >conftest.$ac_ext <<_ACEOF
20094 /* confdefs.h.  */
20095 _ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h.  */
20099
20100 int
20101 main ()
20102 {
20103 /* FIXME: Include the comments suggested by Paul. */
20104 #ifndef __cplusplus
20105   /* Ultrix mips cc rejects this.  */
20106   typedef int charset[2];
20107   const charset x;
20108   /* SunOS 4.1.1 cc rejects this.  */
20109   char const *const *ccp;
20110   char **p;
20111   /* NEC SVR4.0.2 mips cc rejects this.  */
20112   struct point {int x, y;};
20113   static struct point const zero = {0,0};
20114   /* AIX XL C 1.02.0.0 rejects this.
20115      It does not let you subtract one const X* pointer from another in
20116      an arm of an if-expression whose if-part is not a constant
20117      expression */
20118   const char *g = "string";
20119   ccp = &g + (g ? g-g : 0);
20120   /* HPUX 7.0 cc rejects these. */
20121   ++ccp;
20122   p = (char**) ccp;
20123   ccp = (char const *const *) p;
20124   { /* SCO 3.2v4 cc rejects this.  */
20125     char *t;
20126     char const *s = 0 ? (char *) 0 : (char const *) 0;
20127
20128     *t++ = 0;
20129   }
20130   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20131     int x[] = {25, 17};
20132     const int *foo = &x[0];
20133     ++foo;
20134   }
20135   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20136     typedef const int *iptr;
20137     iptr p = 0;
20138     ++p;
20139   }
20140   { /* AIX XL C 1.02.0.0 rejects this saying
20141        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20142     struct s { int j; const int *ap[3]; };
20143     struct s *b; b->j = 5;
20144   }
20145   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20146     const int foo = 10;
20147   }
20148 #endif
20149
20150   ;
20151   return 0;
20152 }
20153 _ACEOF
20154 rm -f conftest.$ac_objext
20155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20156   (eval $ac_compile) 2>conftest.er1
20157   ac_status=$?
20158   grep -v '^ *+' conftest.er1 >conftest.err
20159   rm -f conftest.er1
20160   cat conftest.err >&5
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); } &&
20163          { ac_try='test -z "$ac_c_werror_flag"
20164                          || test ! -s conftest.err'
20165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166   (eval $ac_try) 2>&5
20167   ac_status=$?
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); }; } &&
20170          { ac_try='test -s conftest.$ac_objext'
20171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172   (eval $ac_try) 2>&5
20173   ac_status=$?
20174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175   (exit $ac_status); }; }; then
20176   ac_cv_c_const=yes
20177 else
20178   echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20180
20181 ac_cv_c_const=no
20182 fi
20183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20184 fi
20185 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20186 echo "${ECHO_T}$ac_cv_c_const" >&6
20187 if test $ac_cv_c_const = no; then
20188
20189 cat >>confdefs.h <<\_ACEOF
20190 #define const
20191 _ACEOF
20192
20193 fi
20194
20195 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20196 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20197 if test "${ac_cv_type_uid_t+set}" = set; then
20198   echo $ECHO_N "(cached) $ECHO_C" >&6
20199 else
20200   cat >conftest.$ac_ext <<_ACEOF
20201 /* confdefs.h.  */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h.  */
20206 #include <sys/types.h>
20207
20208 _ACEOF
20209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20210   $EGREP "uid_t" >/dev/null 2>&1; then
20211   ac_cv_type_uid_t=yes
20212 else
20213   ac_cv_type_uid_t=no
20214 fi
20215 rm -f conftest*
20216
20217 fi
20218 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20219 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20220 if test $ac_cv_type_uid_t = no; then
20221
20222 cat >>confdefs.h <<\_ACEOF
20223 #define uid_t int
20224 _ACEOF
20225
20226
20227 cat >>confdefs.h <<\_ACEOF
20228 #define gid_t int
20229 _ACEOF
20230
20231 fi
20232
20233 echo "$as_me:$LINENO: checking for size_t" >&5
20234 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20235 if test "${ac_cv_type_size_t+set}" = set; then
20236   echo $ECHO_N "(cached) $ECHO_C" >&6
20237 else
20238   cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h.  */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h.  */
20244 $ac_includes_default
20245 int
20246 main ()
20247 {
20248 if ((size_t *) 0)
20249   return 0;
20250 if (sizeof (size_t))
20251   return 0;
20252   ;
20253   return 0;
20254 }
20255 _ACEOF
20256 rm -f conftest.$ac_objext
20257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20258   (eval $ac_compile) 2>conftest.er1
20259   ac_status=$?
20260   grep -v '^ *+' conftest.er1 >conftest.err
20261   rm -f conftest.er1
20262   cat conftest.err >&5
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); } &&
20265          { ac_try='test -z "$ac_c_werror_flag"
20266                          || test ! -s conftest.err'
20267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268   (eval $ac_try) 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); }; } &&
20272          { ac_try='test -s conftest.$ac_objext'
20273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274   (eval $ac_try) 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); }; }; then
20278   ac_cv_type_size_t=yes
20279 else
20280   echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20282
20283 ac_cv_type_size_t=no
20284 fi
20285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20286 fi
20287 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20288 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20289 if test $ac_cv_type_size_t = yes; then
20290   :
20291 else
20292
20293 cat >>confdefs.h <<_ACEOF
20294 #define size_t unsigned
20295 _ACEOF
20296
20297 fi
20298
20299 echo "$as_me:$LINENO: checking for socklen_t" >&5
20300 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20301 if test "${ac_cv_type_socklen_t+set}" = set; then
20302   echo $ECHO_N "(cached) $ECHO_C" >&6
20303 else
20304   cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310
20311 #include <unistd.h>
20312 #include <sys/socket.h>
20313
20314
20315 int
20316 main ()
20317 {
20318 if ((socklen_t *) 0)
20319   return 0;
20320 if (sizeof (socklen_t))
20321   return 0;
20322   ;
20323   return 0;
20324 }
20325 _ACEOF
20326 rm -f conftest.$ac_objext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20328   (eval $ac_compile) 2>conftest.er1
20329   ac_status=$?
20330   grep -v '^ *+' conftest.er1 >conftest.err
20331   rm -f conftest.er1
20332   cat conftest.err >&5
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } &&
20335          { ac_try='test -z "$ac_c_werror_flag"
20336                          || test ! -s conftest.err'
20337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338   (eval $ac_try) 2>&5
20339   ac_status=$?
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); }; } &&
20342          { ac_try='test -s conftest.$ac_objext'
20343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344   (eval $ac_try) 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); }; }; then
20348   ac_cv_type_socklen_t=yes
20349 else
20350   echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20352
20353 ac_cv_type_socklen_t=no
20354 fi
20355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20356 fi
20357 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
20358 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
20359 if test $ac_cv_type_socklen_t = yes; then
20360
20361 cat >>confdefs.h <<_ACEOF
20362 #define HAVE_SOCKLEN_T 1
20363 _ACEOF
20364
20365
20366 fi
20367
20368
20369 EXPANDED_SYSCONFDIR=`eval echo $sysconfdir`
20370
20371 cat >>confdefs.h <<_ACEOF
20372 #define MAINCFG "$EXPANDED_SYSCONFDIR/libnss-mysql.cfg"
20373 _ACEOF
20374
20375
20376 cat >>confdefs.h <<_ACEOF
20377 #define ROOTCFG "$EXPANDED_SYSCONFDIR/libnss-mysql-root.cfg"
20378 _ACEOF
20379
20380
20381                               ac_config_files="$ac_config_files Makefile src/Makefile src/version.c"
20382
20383 cat >confcache <<\_ACEOF
20384 # This file is a shell script that caches the results of configure
20385 # tests run on this system so they can be shared between configure
20386 # scripts and configure runs, see configure's option --config-cache.
20387 # It is not useful on other systems.  If it contains results you don't
20388 # want to keep, you may remove or edit it.
20389 #
20390 # config.status only pays attention to the cache file if you give it
20391 # the --recheck option to rerun configure.
20392 #
20393 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20394 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20395 # following values.
20396
20397 _ACEOF
20398
20399 # The following way of writing the cache mishandles newlines in values,
20400 # but we know of no workaround that is simple, portable, and efficient.
20401 # So, don't put newlines in cache variables' values.
20402 # Ultrix sh set writes to stderr and can't be redirected directly,
20403 # and sets the high bit in the cache file unless we assign to the vars.
20404 {
20405   (set) 2>&1 |
20406     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20407     *ac_space=\ *)
20408       # `set' does not quote correctly, so add quotes (double-quote
20409       # substitution turns \\\\ into \\, and sed turns \\ into \).
20410       sed -n \
20411         "s/'/'\\\\''/g;
20412           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20413       ;;
20414     *)
20415       # `set' quotes correctly as required by POSIX, so do not add quotes.
20416       sed -n \
20417         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20418       ;;
20419     esac;
20420 } |
20421   sed '
20422      t clear
20423      : clear
20424      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20425      t end
20426      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20427      : end' >>confcache
20428 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20429   if test -w $cache_file; then
20430     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20431     cat confcache >$cache_file
20432   else
20433     echo "not updating unwritable cache $cache_file"
20434   fi
20435 fi
20436 rm -f confcache
20437
20438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20439 # Let make expand exec_prefix.
20440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20441
20442 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20443 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20444 # trailing colons and then remove the whole line if VPATH becomes empty
20445 # (actually we leave an empty line to preserve line numbers).
20446 if test "x$srcdir" = x.; then
20447   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20448 s/:*\$(srcdir):*/:/;
20449 s/:*\${srcdir}:*/:/;
20450 s/:*@srcdir@:*/:/;
20451 s/^\([^=]*=[     ]*\):*/\1/;
20452 s/:*$//;
20453 s/^[^=]*=[       ]*$//;
20454 }'
20455 fi
20456
20457 DEFS=-DHAVE_CONFIG_H
20458
20459 ac_libobjs=
20460 ac_ltlibobjs=
20461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20462   # 1. Remove the extension, and $U if already installed.
20463   ac_i=`echo "$ac_i" |
20464          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20465   # 2. Add them.
20466   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20467   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20468 done
20469 LIBOBJS=$ac_libobjs
20470
20471 LTLIBOBJS=$ac_ltlibobjs
20472
20473
20474 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20475   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20476 Usually this means the macro was only invoked conditionally." >&5
20477 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20478 Usually this means the macro was only invoked conditionally." >&2;}
20479    { (exit 1); exit 1; }; }
20480 fi
20481 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20482   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20483 Usually this means the macro was only invoked conditionally." >&5
20484 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20485 Usually this means the macro was only invoked conditionally." >&2;}
20486    { (exit 1); exit 1; }; }
20487 fi
20488 if test -z "${RENAME_TRUE}" && test -z "${RENAME_FALSE}"; then
20489   { { echo "$as_me:$LINENO: error: conditional \"RENAME\" was never defined.
20490 Usually this means the macro was only invoked conditionally." >&5
20491 echo "$as_me: error: conditional \"RENAME\" was never defined.
20492 Usually this means the macro was only invoked conditionally." >&2;}
20493    { (exit 1); exit 1; }; }
20494 fi
20495
20496 : ${CONFIG_STATUS=./config.status}
20497 ac_clean_files_save=$ac_clean_files
20498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20499 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20500 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20501 cat >$CONFIG_STATUS <<_ACEOF
20502 #! $SHELL
20503 # Generated by $as_me.
20504 # Run this file to recreate the current configuration.
20505 # Compiler output produced by configure, useful for debugging
20506 # configure, is in config.log if it exists.
20507
20508 debug=false
20509 ac_cs_recheck=false
20510 ac_cs_silent=false
20511 SHELL=\${CONFIG_SHELL-$SHELL}
20512 _ACEOF
20513
20514 cat >>$CONFIG_STATUS <<\_ACEOF
20515 ## --------------------- ##
20516 ## M4sh Initialization.  ##
20517 ## --------------------- ##
20518
20519 # Be Bourne compatible
20520 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20521   emulate sh
20522   NULLCMD=:
20523   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20524   # is contrary to our usage.  Disable this feature.
20525   alias -g '${1+"$@"}'='"$@"'
20526 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20527   set -o posix
20528 fi
20529 DUALCASE=1; export DUALCASE # for MKS sh
20530
20531 # Support unset when possible.
20532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20533   as_unset=unset
20534 else
20535   as_unset=false
20536 fi
20537
20538
20539 # Work around bugs in pre-3.0 UWIN ksh.
20540 $as_unset ENV MAIL MAILPATH
20541 PS1='$ '
20542 PS2='> '
20543 PS4='+ '
20544
20545 # NLS nuisances.
20546 for as_var in \
20547   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20548   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20549   LC_TELEPHONE LC_TIME
20550 do
20551   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20552     eval $as_var=C; export $as_var
20553   else
20554     $as_unset $as_var
20555   fi
20556 done
20557
20558 # Required to use basename.
20559 if expr a : '\(a\)' >/dev/null 2>&1; then
20560   as_expr=expr
20561 else
20562   as_expr=false
20563 fi
20564
20565 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20566   as_basename=basename
20567 else
20568   as_basename=false
20569 fi
20570
20571
20572 # Name of the executable.
20573 as_me=`$as_basename "$0" ||
20574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20575          X"$0" : 'X\(//\)$' \| \
20576          X"$0" : 'X\(/\)$' \| \
20577          .     : '\(.\)' 2>/dev/null ||
20578 echo X/"$0" |
20579     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20580           /^X\/\(\/\/\)$/{ s//\1/; q; }
20581           /^X\/\(\/\).*/{ s//\1/; q; }
20582           s/.*/./; q'`
20583
20584
20585 # PATH needs CR, and LINENO needs CR and PATH.
20586 # Avoid depending upon Character Ranges.
20587 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20588 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20589 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20590 as_cr_digits='0123456789'
20591 as_cr_alnum=$as_cr_Letters$as_cr_digits
20592
20593 # The user is always right.
20594 if test "${PATH_SEPARATOR+set}" != set; then
20595   echo "#! /bin/sh" >conf$$.sh
20596   echo  "exit 0"   >>conf$$.sh
20597   chmod +x conf$$.sh
20598   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20599     PATH_SEPARATOR=';'
20600   else
20601     PATH_SEPARATOR=:
20602   fi
20603   rm -f conf$$.sh
20604 fi
20605
20606
20607   as_lineno_1=$LINENO
20608   as_lineno_2=$LINENO
20609   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20610   test "x$as_lineno_1" != "x$as_lineno_2" &&
20611   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20612   # Find who we are.  Look in the path if we contain no path at all
20613   # relative or not.
20614   case $0 in
20615     *[\\/]* ) as_myself=$0 ;;
20616     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20617 for as_dir in $PATH
20618 do
20619   IFS=$as_save_IFS
20620   test -z "$as_dir" && as_dir=.
20621   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20622 done
20623
20624        ;;
20625   esac
20626   # We did not find ourselves, most probably we were run as `sh COMMAND'
20627   # in which case we are not to be found in the path.
20628   if test "x$as_myself" = x; then
20629     as_myself=$0
20630   fi
20631   if test ! -f "$as_myself"; then
20632     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20633 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20634    { (exit 1); exit 1; }; }
20635   fi
20636   case $CONFIG_SHELL in
20637   '')
20638     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20639 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20640 do
20641   IFS=$as_save_IFS
20642   test -z "$as_dir" && as_dir=.
20643   for as_base in sh bash ksh sh5; do
20644          case $as_dir in
20645          /*)
20646            if ("$as_dir/$as_base" -c '
20647   as_lineno_1=$LINENO
20648   as_lineno_2=$LINENO
20649   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20650   test "x$as_lineno_1" != "x$as_lineno_2" &&
20651   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20652              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20653              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20654              CONFIG_SHELL=$as_dir/$as_base
20655              export CONFIG_SHELL
20656              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20657            fi;;
20658          esac
20659        done
20660 done
20661 ;;
20662   esac
20663
20664   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20665   # uniformly replaced by the line number.  The first 'sed' inserts a
20666   # line-number line before each line; the second 'sed' does the real
20667   # work.  The second script uses 'N' to pair each line-number line
20668   # with the numbered line, and appends trailing '-' during
20669   # substitution so that $LINENO is not a special case at line end.
20670   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20671   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20672   sed '=' <$as_myself |
20673     sed '
20674       N
20675       s,$,-,
20676       : loop
20677       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20678       t loop
20679       s,-$,,
20680       s,^['$as_cr_digits']*\n,,
20681     ' >$as_me.lineno &&
20682   chmod +x $as_me.lineno ||
20683     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20684 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20685    { (exit 1); exit 1; }; }
20686
20687   # Don't try to exec as it changes $[0], causing all sort of problems
20688   # (the dirname of $[0] is not the place where we might find the
20689   # original and so on.  Autoconf is especially sensible to this).
20690   . ./$as_me.lineno
20691   # Exit status is that of the last command.
20692   exit
20693 }
20694
20695
20696 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20697   *c*,-n*) ECHO_N= ECHO_C='
20698 ' ECHO_T='      ' ;;
20699   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20700   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20701 esac
20702
20703 if expr a : '\(a\)' >/dev/null 2>&1; then
20704   as_expr=expr
20705 else
20706   as_expr=false
20707 fi
20708
20709 rm -f conf$$ conf$$.exe conf$$.file
20710 echo >conf$$.file
20711 if ln -s conf$$.file conf$$ 2>/dev/null; then
20712   # We could just check for DJGPP; but this test a) works b) is more generic
20713   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20714   if test -f conf$$.exe; then
20715     # Don't use ln at all; we don't have any links
20716     as_ln_s='cp -p'
20717   else
20718     as_ln_s='ln -s'
20719   fi
20720 elif ln conf$$.file conf$$ 2>/dev/null; then
20721   as_ln_s=ln
20722 else
20723   as_ln_s='cp -p'
20724 fi
20725 rm -f conf$$ conf$$.exe conf$$.file
20726
20727 if mkdir -p . 2>/dev/null; then
20728   as_mkdir_p=:
20729 else
20730   test -d ./-p && rmdir ./-p
20731   as_mkdir_p=false
20732 fi
20733
20734 as_executable_p="test -f"
20735
20736 # Sed expression to map a string onto a valid CPP name.
20737 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20738
20739 # Sed expression to map a string onto a valid variable name.
20740 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20741
20742
20743 # IFS
20744 # We need space, tab and new line, in precisely that order.
20745 as_nl='
20746 '
20747 IFS="   $as_nl"
20748
20749 # CDPATH.
20750 $as_unset CDPATH
20751
20752 exec 6>&1
20753
20754 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20755 # report actual input values of CONFIG_FILES etc. instead of their
20756 # values after options handling.  Logging --version etc. is OK.
20757 exec 5>>config.log
20758 {
20759   echo
20760   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20761 ## Running $as_me. ##
20762 _ASBOX
20763 } >&5
20764 cat >&5 <<_CSEOF
20765
20766 This file was extended by $as_me, which was
20767 generated by GNU Autoconf 2.59.  Invocation command line was
20768
20769   CONFIG_FILES    = $CONFIG_FILES
20770   CONFIG_HEADERS  = $CONFIG_HEADERS
20771   CONFIG_LINKS    = $CONFIG_LINKS
20772   CONFIG_COMMANDS = $CONFIG_COMMANDS
20773   $ $0 $@
20774
20775 _CSEOF
20776 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20777 echo >&5
20778 _ACEOF
20779
20780 # Files that config.status was made for.
20781 if test -n "$ac_config_files"; then
20782   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20783 fi
20784
20785 if test -n "$ac_config_headers"; then
20786   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20787 fi
20788
20789 if test -n "$ac_config_links"; then
20790   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20791 fi
20792
20793 if test -n "$ac_config_commands"; then
20794   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20795 fi
20796
20797 cat >>$CONFIG_STATUS <<\_ACEOF
20798
20799 ac_cs_usage="\
20800 \`$as_me' instantiates files from templates according to the
20801 current configuration.
20802
20803 Usage: $0 [OPTIONS] [FILE]...
20804
20805   -h, --help       print this help, then exit
20806   -V, --version    print version number, then exit
20807   -q, --quiet      do not print progress messages
20808   -d, --debug      don't remove temporary files
20809       --recheck    update $as_me by reconfiguring in the same conditions
20810   --file=FILE[:TEMPLATE]
20811                    instantiate the configuration file FILE
20812   --header=FILE[:TEMPLATE]
20813                    instantiate the configuration header FILE
20814
20815 Configuration files:
20816 $config_files
20817
20818 Configuration headers:
20819 $config_headers
20820
20821 Configuration commands:
20822 $config_commands
20823
20824 Report bugs to <bug-autoconf@gnu.org>."
20825 _ACEOF
20826
20827 cat >>$CONFIG_STATUS <<_ACEOF
20828 ac_cs_version="\\
20829 config.status
20830 configured by $0, generated by GNU Autoconf 2.59,
20831   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20832
20833 Copyright (C) 2003 Free Software Foundation, Inc.
20834 This config.status script is free software; the Free Software Foundation
20835 gives unlimited permission to copy, distribute and modify it."
20836 srcdir=$srcdir
20837 INSTALL="$INSTALL"
20838 _ACEOF
20839
20840 cat >>$CONFIG_STATUS <<\_ACEOF
20841 # If no file are specified by the user, then we need to provide default
20842 # value.  By we need to know if files were specified by the user.
20843 ac_need_defaults=:
20844 while test $# != 0
20845 do
20846   case $1 in
20847   --*=*)
20848     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20849     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20850     ac_shift=:
20851     ;;
20852   -*)
20853     ac_option=$1
20854     ac_optarg=$2
20855     ac_shift=shift
20856     ;;
20857   *) # This is not an option, so the user has probably given explicit
20858      # arguments.
20859      ac_option=$1
20860      ac_need_defaults=false;;
20861   esac
20862
20863   case $ac_option in
20864   # Handling of the options.
20865 _ACEOF
20866 cat >>$CONFIG_STATUS <<\_ACEOF
20867   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20868     ac_cs_recheck=: ;;
20869   --version | --vers* | -V )
20870     echo "$ac_cs_version"; exit 0 ;;
20871   --he | --h)
20872     # Conflict between --help and --header
20873     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20874 Try \`$0 --help' for more information." >&5
20875 echo "$as_me: error: ambiguous option: $1
20876 Try \`$0 --help' for more information." >&2;}
20877    { (exit 1); exit 1; }; };;
20878   --help | --hel | -h )
20879     echo "$ac_cs_usage"; exit 0 ;;
20880   --debug | --d* | -d )
20881     debug=: ;;
20882   --file | --fil | --fi | --f )
20883     $ac_shift
20884     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20885     ac_need_defaults=false;;
20886   --header | --heade | --head | --hea )
20887     $ac_shift
20888     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20889     ac_need_defaults=false;;
20890   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20891   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20892     ac_cs_silent=: ;;
20893
20894   # This is an error.
20895   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20896 Try \`$0 --help' for more information." >&5
20897 echo "$as_me: error: unrecognized option: $1
20898 Try \`$0 --help' for more information." >&2;}
20899    { (exit 1); exit 1; }; } ;;
20900
20901   *) ac_config_targets="$ac_config_targets $1" ;;
20902
20903   esac
20904   shift
20905 done
20906
20907 ac_configure_extra_args=
20908
20909 if $ac_cs_silent; then
20910   exec 6>/dev/null
20911   ac_configure_extra_args="$ac_configure_extra_args --silent"
20912 fi
20913
20914 _ACEOF
20915 cat >>$CONFIG_STATUS <<_ACEOF
20916 if \$ac_cs_recheck; then
20917   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20918   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20919 fi
20920
20921 _ACEOF
20922
20923 cat >>$CONFIG_STATUS <<_ACEOF
20924 #
20925 # INIT-COMMANDS section.
20926 #
20927
20928 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20929
20930 _ACEOF
20931
20932
20933
20934 cat >>$CONFIG_STATUS <<\_ACEOF
20935 for ac_config_target in $ac_config_targets
20936 do
20937   case "$ac_config_target" in
20938   # Handling of arguments.
20939   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20940   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20941   "src/version.c" ) CONFIG_FILES="$CONFIG_FILES src/version.c" ;;
20942   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20943   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20944   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20945 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20946    { (exit 1); exit 1; }; };;
20947   esac
20948 done
20949
20950 # If the user did not use the arguments to specify the items to instantiate,
20951 # then the envvar interface is used.  Set only those that are not.
20952 # We use the long form for the default assignment because of an extremely
20953 # bizarre bug on SunOS 4.1.3.
20954 if $ac_need_defaults; then
20955   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20956   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20957   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20958 fi
20959
20960 # Have a temporary directory for convenience.  Make it in the build tree
20961 # simply because there is no reason to put it here, and in addition,
20962 # creating and moving files from /tmp can sometimes cause problems.
20963 # Create a temporary directory, and hook for its removal unless debugging.
20964 $debug ||
20965 {
20966   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20967   trap '{ (exit 1); exit 1; }' 1 2 13 15
20968 }
20969
20970 # Create a (secure) tmp directory for tmp files.
20971
20972 {
20973   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20974   test -n "$tmp" && test -d "$tmp"
20975 }  ||
20976 {
20977   tmp=./confstat$$-$RANDOM
20978   (umask 077 && mkdir $tmp)
20979 } ||
20980 {
20981    echo "$me: cannot create a temporary directory in ." >&2
20982    { (exit 1); exit 1; }
20983 }
20984
20985 _ACEOF
20986
20987 cat >>$CONFIG_STATUS <<_ACEOF
20988
20989 #
20990 # CONFIG_FILES section.
20991 #
20992
20993 # No need to generate the scripts if there are no CONFIG_FILES.
20994 # This happens for instance when ./config.status config.h
20995 if test -n "\$CONFIG_FILES"; then
20996   # Protect against being on the right side of a sed subst in config.status.
20997   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20998    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20999 s,@SHELL@,$SHELL,;t t
21000 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21001 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21002 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21003 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21004 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21005 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21006 s,@exec_prefix@,$exec_prefix,;t t
21007 s,@prefix@,$prefix,;t t
21008 s,@program_transform_name@,$program_transform_name,;t t
21009 s,@bindir@,$bindir,;t t
21010 s,@sbindir@,$sbindir,;t t
21011 s,@libexecdir@,$libexecdir,;t t
21012 s,@datadir@,$datadir,;t t
21013 s,@sysconfdir@,$sysconfdir,;t t
21014 s,@sharedstatedir@,$sharedstatedir,;t t
21015 s,@localstatedir@,$localstatedir,;t t
21016 s,@libdir@,$libdir,;t t
21017 s,@includedir@,$includedir,;t t
21018 s,@oldincludedir@,$oldincludedir,;t t
21019 s,@infodir@,$infodir,;t t
21020 s,@mandir@,$mandir,;t t
21021 s,@build_alias@,$build_alias,;t t
21022 s,@host_alias@,$host_alias,;t t
21023 s,@target_alias@,$target_alias,;t t
21024 s,@DEFS@,$DEFS,;t t
21025 s,@ECHO_C@,$ECHO_C,;t t
21026 s,@ECHO_N@,$ECHO_N,;t t
21027 s,@ECHO_T@,$ECHO_T,;t t
21028 s,@LIBS@,$LIBS,;t t
21029 s,@build@,$build,;t t
21030 s,@build_cpu@,$build_cpu,;t t
21031 s,@build_vendor@,$build_vendor,;t t
21032 s,@build_os@,$build_os,;t t
21033 s,@host@,$host,;t t
21034 s,@host_cpu@,$host_cpu,;t t
21035 s,@host_vendor@,$host_vendor,;t t
21036 s,@host_os@,$host_os,;t t
21037 s,@target@,$target,;t t
21038 s,@target_cpu@,$target_cpu,;t t
21039 s,@target_vendor@,$target_vendor,;t t
21040 s,@target_os@,$target_os,;t t
21041 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21042 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21043 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21044 s,@PACKAGE@,$PACKAGE,;t t
21045 s,@VERSION@,$VERSION,;t t
21046 s,@ACLOCAL@,$ACLOCAL,;t t
21047 s,@AUTOCONF@,$AUTOCONF,;t t
21048 s,@AUTOMAKE@,$AUTOMAKE,;t t
21049 s,@AUTOHEADER@,$AUTOHEADER,;t t
21050 s,@MAKEINFO@,$MAKEINFO,;t t
21051 s,@AMTAR@,$AMTAR,;t t
21052 s,@install_sh@,$install_sh,;t t
21053 s,@STRIP@,$STRIP,;t t
21054 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21055 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21056 s,@AWK@,$AWK,;t t
21057 s,@SET_MAKE@,$SET_MAKE,;t t
21058 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21059 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21060 s,@MAINT@,$MAINT,;t t
21061 s,@CC@,$CC,;t t
21062 s,@CFLAGS@,$CFLAGS,;t t
21063 s,@LDFLAGS@,$LDFLAGS,;t t
21064 s,@CPPFLAGS@,$CPPFLAGS,;t t
21065 s,@ac_ct_CC@,$ac_ct_CC,;t t
21066 s,@EXEEXT@,$EXEEXT,;t t
21067 s,@OBJEXT@,$OBJEXT,;t t
21068 s,@DEPDIR@,$DEPDIR,;t t
21069 s,@am__include@,$am__include,;t t
21070 s,@am__quote@,$am__quote,;t t
21071 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21072 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21073 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21074 s,@CCDEPMODE@,$CCDEPMODE,;t t
21075 s,@EGREP@,$EGREP,;t t
21076 s,@LN_S@,$LN_S,;t t
21077 s,@ECHO@,$ECHO,;t t
21078 s,@AR@,$AR,;t t
21079 s,@ac_ct_AR@,$ac_ct_AR,;t t
21080 s,@RANLIB@,$RANLIB,;t t
21081 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21082 s,@CPP@,$CPP,;t t
21083 s,@CXX@,$CXX,;t t
21084 s,@CXXFLAGS@,$CXXFLAGS,;t t
21085 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21086 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21087 s,@CXXCPP@,$CXXCPP,;t t
21088 s,@F77@,$F77,;t t
21089 s,@FFLAGS@,$FFLAGS,;t t
21090 s,@ac_ct_F77@,$ac_ct_F77,;t t
21091 s,@LIBTOOL@,$LIBTOOL,;t t
21092 s,@RENAME_TRUE@,$RENAME_TRUE,;t t
21093 s,@RENAME_FALSE@,$RENAME_FALSE,;t t
21094 s,@LIBVER@,$LIBVER,;t t
21095 s,@OS@,$OS,;t t
21096 s,@LIBOBJS@,$LIBOBJS,;t t
21097 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21098 CEOF
21099
21100 _ACEOF
21101
21102   cat >>$CONFIG_STATUS <<\_ACEOF
21103   # Split the substitutions into bite-sized pieces for seds with
21104   # small command number limits, like on Digital OSF/1 and HP-UX.
21105   ac_max_sed_lines=48
21106   ac_sed_frag=1 # Number of current file.
21107   ac_beg=1 # First line for current file.
21108   ac_end=$ac_max_sed_lines # Line after last line for current file.
21109   ac_more_lines=:
21110   ac_sed_cmds=
21111   while $ac_more_lines; do
21112     if test $ac_beg -gt 1; then
21113       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21114     else
21115       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21116     fi
21117     if test ! -s $tmp/subs.frag; then
21118       ac_more_lines=false
21119     else
21120       # The purpose of the label and of the branching condition is to
21121       # speed up the sed processing (if there are no `@' at all, there
21122       # is no need to browse any of the substitutions).
21123       # These are the two extra sed commands mentioned above.
21124       (echo ':t
21125   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21126       if test -z "$ac_sed_cmds"; then
21127         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21128       else
21129         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21130       fi
21131       ac_sed_frag=`expr $ac_sed_frag + 1`
21132       ac_beg=$ac_end
21133       ac_end=`expr $ac_end + $ac_max_sed_lines`
21134     fi
21135   done
21136   if test -z "$ac_sed_cmds"; then
21137     ac_sed_cmds=cat
21138   fi
21139 fi # test -n "$CONFIG_FILES"
21140
21141 _ACEOF
21142 cat >>$CONFIG_STATUS <<\_ACEOF
21143 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21144   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21145   case $ac_file in
21146   - | *:- | *:-:* ) # input from stdin
21147         cat >$tmp/stdin
21148         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21149         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21150   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21151         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21152   * )   ac_file_in=$ac_file.in ;;
21153   esac
21154
21155   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21156   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21158          X"$ac_file" : 'X\(//\)[^/]' \| \
21159          X"$ac_file" : 'X\(//\)$' \| \
21160          X"$ac_file" : 'X\(/\)' \| \
21161          .     : '\(.\)' 2>/dev/null ||
21162 echo X"$ac_file" |
21163     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21164           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21165           /^X\(\/\/\)$/{ s//\1/; q; }
21166           /^X\(\/\).*/{ s//\1/; q; }
21167           s/.*/./; q'`
21168   { if $as_mkdir_p; then
21169     mkdir -p "$ac_dir"
21170   else
21171     as_dir="$ac_dir"
21172     as_dirs=
21173     while test ! -d "$as_dir"; do
21174       as_dirs="$as_dir $as_dirs"
21175       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21177          X"$as_dir" : 'X\(//\)[^/]' \| \
21178          X"$as_dir" : 'X\(//\)$' \| \
21179          X"$as_dir" : 'X\(/\)' \| \
21180          .     : '\(.\)' 2>/dev/null ||
21181 echo X"$as_dir" |
21182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21183           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21184           /^X\(\/\/\)$/{ s//\1/; q; }
21185           /^X\(\/\).*/{ s//\1/; q; }
21186           s/.*/./; q'`
21187     done
21188     test ! -n "$as_dirs" || mkdir $as_dirs
21189   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21190 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21191    { (exit 1); exit 1; }; }; }
21192
21193   ac_builddir=.
21194
21195 if test "$ac_dir" != .; then
21196   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21197   # A "../" for each directory in $ac_dir_suffix.
21198   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21199 else
21200   ac_dir_suffix= ac_top_builddir=
21201 fi
21202
21203 case $srcdir in
21204   .)  # No --srcdir option.  We are building in place.
21205     ac_srcdir=.
21206     if test -z "$ac_top_builddir"; then
21207        ac_top_srcdir=.
21208     else
21209        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21210     fi ;;
21211   [\\/]* | ?:[\\/]* )  # Absolute path.
21212     ac_srcdir=$srcdir$ac_dir_suffix;
21213     ac_top_srcdir=$srcdir ;;
21214   *) # Relative path.
21215     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21216     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21217 esac
21218
21219 # Do not use `cd foo && pwd` to compute absolute paths, because
21220 # the directories may not exist.
21221 case `pwd` in
21222 .) ac_abs_builddir="$ac_dir";;
21223 *)
21224   case "$ac_dir" in
21225   .) ac_abs_builddir=`pwd`;;
21226   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21227   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21228   esac;;
21229 esac
21230 case $ac_abs_builddir in
21231 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21232 *)
21233   case ${ac_top_builddir}. in
21234   .) ac_abs_top_builddir=$ac_abs_builddir;;
21235   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21236   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21237   esac;;
21238 esac
21239 case $ac_abs_builddir in
21240 .) ac_abs_srcdir=$ac_srcdir;;
21241 *)
21242   case $ac_srcdir in
21243   .) ac_abs_srcdir=$ac_abs_builddir;;
21244   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21245   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21246   esac;;
21247 esac
21248 case $ac_abs_builddir in
21249 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21250 *)
21251   case $ac_top_srcdir in
21252   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21253   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21254   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21255   esac;;
21256 esac
21257
21258
21259   case $INSTALL in
21260   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21261   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21262   esac
21263
21264   if test x"$ac_file" != x-; then
21265     { echo "$as_me:$LINENO: creating $ac_file" >&5
21266 echo "$as_me: creating $ac_file" >&6;}
21267     rm -f "$ac_file"
21268   fi
21269   # Let's still pretend it is `configure' which instantiates (i.e., don't
21270   # use $as_me), people would be surprised to read:
21271   #    /* config.h.  Generated by config.status.  */
21272   if test x"$ac_file" = x-; then
21273     configure_input=
21274   else
21275     configure_input="$ac_file.  "
21276   fi
21277   configure_input=$configure_input"Generated from `echo $ac_file_in |
21278                                      sed 's,.*/,,'` by configure."
21279
21280   # First look for the input files in the build tree, otherwise in the
21281   # src tree.
21282   ac_file_inputs=`IFS=:
21283     for f in $ac_file_in; do
21284       case $f in
21285       -) echo $tmp/stdin ;;
21286       [\\/$]*)
21287          # Absolute (can't be DOS-style, as IFS=:)
21288          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21289 echo "$as_me: error: cannot find input file: $f" >&2;}
21290    { (exit 1); exit 1; }; }
21291          echo "$f";;
21292       *) # Relative
21293          if test -f "$f"; then
21294            # Build tree
21295            echo "$f"
21296          elif test -f "$srcdir/$f"; then
21297            # Source tree
21298            echo "$srcdir/$f"
21299          else
21300            # /dev/null tree
21301            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21302 echo "$as_me: error: cannot find input file: $f" >&2;}
21303    { (exit 1); exit 1; }; }
21304          fi;;
21305       esac
21306     done` || { (exit 1); exit 1; }
21307 _ACEOF
21308 cat >>$CONFIG_STATUS <<_ACEOF
21309   sed "$ac_vpsub
21310 $extrasub
21311 _ACEOF
21312 cat >>$CONFIG_STATUS <<\_ACEOF
21313 :t
21314 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21315 s,@configure_input@,$configure_input,;t t
21316 s,@srcdir@,$ac_srcdir,;t t
21317 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21318 s,@top_srcdir@,$ac_top_srcdir,;t t
21319 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21320 s,@builddir@,$ac_builddir,;t t
21321 s,@abs_builddir@,$ac_abs_builddir,;t t
21322 s,@top_builddir@,$ac_top_builddir,;t t
21323 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21324 s,@INSTALL@,$ac_INSTALL,;t t
21325 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21326   rm -f $tmp/stdin
21327   if test x"$ac_file" != x-; then
21328     mv $tmp/out $ac_file
21329   else
21330     cat $tmp/out
21331     rm -f $tmp/out
21332   fi
21333
21334 done
21335 _ACEOF
21336 cat >>$CONFIG_STATUS <<\_ACEOF
21337
21338 #
21339 # CONFIG_HEADER section.
21340 #
21341
21342 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21343 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21344 #
21345 # ac_d sets the value in "#define NAME VALUE" lines.
21346 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21347 ac_dB='[         ].*$,\1#\2'
21348 ac_dC=' '
21349 ac_dD=',;t'
21350 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21351 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21352 ac_uB='$,\1#\2define\3'
21353 ac_uC=' '
21354 ac_uD=',;t'
21355
21356 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21357   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21358   case $ac_file in
21359   - | *:- | *:-:* ) # input from stdin
21360         cat >$tmp/stdin
21361         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21362         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21363   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21364         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21365   * )   ac_file_in=$ac_file.in ;;
21366   esac
21367
21368   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21369 echo "$as_me: creating $ac_file" >&6;}
21370
21371   # First look for the input files in the build tree, otherwise in the
21372   # src tree.
21373   ac_file_inputs=`IFS=:
21374     for f in $ac_file_in; do
21375       case $f in
21376       -) echo $tmp/stdin ;;
21377       [\\/$]*)
21378          # Absolute (can't be DOS-style, as IFS=:)
21379          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21380 echo "$as_me: error: cannot find input file: $f" >&2;}
21381    { (exit 1); exit 1; }; }
21382          # Do quote $f, to prevent DOS paths from being IFS'd.
21383          echo "$f";;
21384       *) # Relative
21385          if test -f "$f"; then
21386            # Build tree
21387            echo "$f"
21388          elif test -f "$srcdir/$f"; then
21389            # Source tree
21390            echo "$srcdir/$f"
21391          else
21392            # /dev/null tree
21393            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21394 echo "$as_me: error: cannot find input file: $f" >&2;}
21395    { (exit 1); exit 1; }; }
21396          fi;;
21397       esac
21398     done` || { (exit 1); exit 1; }
21399   # Remove the trailing spaces.
21400   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21401
21402 _ACEOF
21403
21404 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21405 # `conftest.undefs', that substitutes the proper values into
21406 # config.h.in to produce config.h.  The first handles `#define'
21407 # templates, and the second `#undef' templates.
21408 # And first: Protect against being on the right side of a sed subst in
21409 # config.status.  Protect against being in an unquoted here document
21410 # in config.status.
21411 rm -f conftest.defines conftest.undefs
21412 # Using a here document instead of a string reduces the quoting nightmare.
21413 # Putting comments in sed scripts is not portable.
21414 #
21415 # `end' is used to avoid that the second main sed command (meant for
21416 # 0-ary CPP macros) applies to n-ary macro definitions.
21417 # See the Autoconf documentation for `clear'.
21418 cat >confdef2sed.sed <<\_ACEOF
21419 s/[\\&,]/\\&/g
21420 s,[\\$`],\\&,g
21421 t clear
21422 : clear
21423 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21424 t end
21425 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21426 : end
21427 _ACEOF
21428 # If some macros were called several times there might be several times
21429 # the same #defines, which is useless.  Nevertheless, we may not want to
21430 # sort them, since we want the *last* AC-DEFINE to be honored.
21431 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21432 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21433 rm -f confdef2sed.sed
21434
21435 # This sed command replaces #undef with comments.  This is necessary, for
21436 # example, in the case of _POSIX_SOURCE, which is predefined and required
21437 # on some systems where configure will not decide to define it.
21438 cat >>conftest.undefs <<\_ACEOF
21439 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21440 _ACEOF
21441
21442 # Break up conftest.defines because some shells have a limit on the size
21443 # of here documents, and old seds have small limits too (100 cmds).
21444 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21445 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21446 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21447 echo '  :' >>$CONFIG_STATUS
21448 rm -f conftest.tail
21449 while grep . conftest.defines >/dev/null
21450 do
21451   # Write a limited-size here document to $tmp/defines.sed.
21452   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21453   # Speed up: don't consider the non `#define' lines.
21454   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21455   # Work around the forget-to-reset-the-flag bug.
21456   echo 't clr' >>$CONFIG_STATUS
21457   echo ': clr' >>$CONFIG_STATUS
21458   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21459   echo 'CEOF
21460   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21461   rm -f $tmp/in
21462   mv $tmp/out $tmp/in
21463 ' >>$CONFIG_STATUS
21464   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21465   rm -f conftest.defines
21466   mv conftest.tail conftest.defines
21467 done
21468 rm -f conftest.defines
21469 echo '  fi # grep' >>$CONFIG_STATUS
21470 echo >>$CONFIG_STATUS
21471
21472 # Break up conftest.undefs because some shells have a limit on the size
21473 # of here documents, and old seds have small limits too (100 cmds).
21474 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21475 rm -f conftest.tail
21476 while grep . conftest.undefs >/dev/null
21477 do
21478   # Write a limited-size here document to $tmp/undefs.sed.
21479   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21480   # Speed up: don't consider the non `#undef'
21481   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21482   # Work around the forget-to-reset-the-flag bug.
21483   echo 't clr' >>$CONFIG_STATUS
21484   echo ': clr' >>$CONFIG_STATUS
21485   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21486   echo 'CEOF
21487   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21488   rm -f $tmp/in
21489   mv $tmp/out $tmp/in
21490 ' >>$CONFIG_STATUS
21491   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21492   rm -f conftest.undefs
21493   mv conftest.tail conftest.undefs
21494 done
21495 rm -f conftest.undefs
21496
21497 cat >>$CONFIG_STATUS <<\_ACEOF
21498   # Let's still pretend it is `configure' which instantiates (i.e., don't
21499   # use $as_me), people would be surprised to read:
21500   #    /* config.h.  Generated by config.status.  */
21501   if test x"$ac_file" = x-; then
21502     echo "/* Generated by configure.  */" >$tmp/config.h
21503   else
21504     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21505   fi
21506   cat $tmp/in >>$tmp/config.h
21507   rm -f $tmp/in
21508   if test x"$ac_file" != x-; then
21509     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21510       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21511 echo "$as_me: $ac_file is unchanged" >&6;}
21512     else
21513       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21514 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21515          X"$ac_file" : 'X\(//\)[^/]' \| \
21516          X"$ac_file" : 'X\(//\)$' \| \
21517          X"$ac_file" : 'X\(/\)' \| \
21518          .     : '\(.\)' 2>/dev/null ||
21519 echo X"$ac_file" |
21520     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21521           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21522           /^X\(\/\/\)$/{ s//\1/; q; }
21523           /^X\(\/\).*/{ s//\1/; q; }
21524           s/.*/./; q'`
21525       { if $as_mkdir_p; then
21526     mkdir -p "$ac_dir"
21527   else
21528     as_dir="$ac_dir"
21529     as_dirs=
21530     while test ! -d "$as_dir"; do
21531       as_dirs="$as_dir $as_dirs"
21532       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21534          X"$as_dir" : 'X\(//\)[^/]' \| \
21535          X"$as_dir" : 'X\(//\)$' \| \
21536          X"$as_dir" : 'X\(/\)' \| \
21537          .     : '\(.\)' 2>/dev/null ||
21538 echo X"$as_dir" |
21539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21540           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21541           /^X\(\/\/\)$/{ s//\1/; q; }
21542           /^X\(\/\).*/{ s//\1/; q; }
21543           s/.*/./; q'`
21544     done
21545     test ! -n "$as_dirs" || mkdir $as_dirs
21546   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21547 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21548    { (exit 1); exit 1; }; }; }
21549
21550       rm -f $ac_file
21551       mv $tmp/config.h $ac_file
21552     fi
21553   else
21554     cat $tmp/config.h
21555     rm -f $tmp/config.h
21556   fi
21557   # Run the commands associated with the file.
21558   case $ac_file in
21559     config.h ) # update the timestamp
21560 echo 'timestamp for config.h' >"./stamp-h1"
21561  ;;
21562   esac
21563 done
21564 _ACEOF
21565 cat >>$CONFIG_STATUS <<\_ACEOF
21566
21567 #
21568 # CONFIG_COMMANDS section.
21569 #
21570 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21571   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21572   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21573   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21574 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21575          X"$ac_dest" : 'X\(//\)[^/]' \| \
21576          X"$ac_dest" : 'X\(//\)$' \| \
21577          X"$ac_dest" : 'X\(/\)' \| \
21578          .     : '\(.\)' 2>/dev/null ||
21579 echo X"$ac_dest" |
21580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21581           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21582           /^X\(\/\/\)$/{ s//\1/; q; }
21583           /^X\(\/\).*/{ s//\1/; q; }
21584           s/.*/./; q'`
21585   { if $as_mkdir_p; then
21586     mkdir -p "$ac_dir"
21587   else
21588     as_dir="$ac_dir"
21589     as_dirs=
21590     while test ! -d "$as_dir"; do
21591       as_dirs="$as_dir $as_dirs"
21592       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21594          X"$as_dir" : 'X\(//\)[^/]' \| \
21595          X"$as_dir" : 'X\(//\)$' \| \
21596          X"$as_dir" : 'X\(/\)' \| \
21597          .     : '\(.\)' 2>/dev/null ||
21598 echo X"$as_dir" |
21599     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21600           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21601           /^X\(\/\/\)$/{ s//\1/; q; }
21602           /^X\(\/\).*/{ s//\1/; q; }
21603           s/.*/./; q'`
21604     done
21605     test ! -n "$as_dirs" || mkdir $as_dirs
21606   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21607 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21608    { (exit 1); exit 1; }; }; }
21609
21610   ac_builddir=.
21611
21612 if test "$ac_dir" != .; then
21613   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21614   # A "../" for each directory in $ac_dir_suffix.
21615   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21616 else
21617   ac_dir_suffix= ac_top_builddir=
21618 fi
21619
21620 case $srcdir in
21621   .)  # No --srcdir option.  We are building in place.
21622     ac_srcdir=.
21623     if test -z "$ac_top_builddir"; then
21624        ac_top_srcdir=.
21625     else
21626        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21627     fi ;;
21628   [\\/]* | ?:[\\/]* )  # Absolute path.
21629     ac_srcdir=$srcdir$ac_dir_suffix;
21630     ac_top_srcdir=$srcdir ;;
21631   *) # Relative path.
21632     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21633     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21634 esac
21635
21636 # Do not use `cd foo && pwd` to compute absolute paths, because
21637 # the directories may not exist.
21638 case `pwd` in
21639 .) ac_abs_builddir="$ac_dir";;
21640 *)
21641   case "$ac_dir" in
21642   .) ac_abs_builddir=`pwd`;;
21643   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21644   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21645   esac;;
21646 esac
21647 case $ac_abs_builddir in
21648 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21649 *)
21650   case ${ac_top_builddir}. in
21651   .) ac_abs_top_builddir=$ac_abs_builddir;;
21652   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21653   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21654   esac;;
21655 esac
21656 case $ac_abs_builddir in
21657 .) ac_abs_srcdir=$ac_srcdir;;
21658 *)
21659   case $ac_srcdir in
21660   .) ac_abs_srcdir=$ac_abs_builddir;;
21661   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21662   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21663   esac;;
21664 esac
21665 case $ac_abs_builddir in
21666 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21667 *)
21668   case $ac_top_srcdir in
21669   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21670   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21671   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21672   esac;;
21673 esac
21674
21675
21676   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21677 echo "$as_me: executing $ac_dest commands" >&6;}
21678   case $ac_dest in
21679     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21680   # Strip MF so we end up with the name of the file.
21681   mf=`echo "$mf" | sed -e 's/:.*$//'`
21682   # Check whether this is an Automake generated Makefile or not.
21683   # We used to match only the files named `Makefile.in', but
21684   # some people rename them; so instead we look at the file content.
21685   # Grep'ing the first line is not enough: some people post-process
21686   # each Makefile.in and add a new line on top of each file to say so.
21687   # So let's grep whole file.
21688   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21689     dirpart=`(dirname "$mf") 2>/dev/null ||
21690 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21691          X"$mf" : 'X\(//\)[^/]' \| \
21692          X"$mf" : 'X\(//\)$' \| \
21693          X"$mf" : 'X\(/\)' \| \
21694          .     : '\(.\)' 2>/dev/null ||
21695 echo X"$mf" |
21696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21697           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21698           /^X\(\/\/\)$/{ s//\1/; q; }
21699           /^X\(\/\).*/{ s//\1/; q; }
21700           s/.*/./; q'`
21701   else
21702     continue
21703   fi
21704   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21705   # Extract the definition of DEP_FILES from the Makefile without
21706   # running `make'.
21707   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21708   test -z "$DEPDIR" && continue
21709   # When using ansi2knr, U may be empty or an underscore; expand it
21710   U=`sed -n -e '/^U = / s///p' < "$mf"`
21711   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21712   # We invoke sed twice because it is the simplest approach to
21713   # changing $(DEPDIR) to its actual value in the expansion.
21714   for file in `sed -n -e '
21715     /^DEP_FILES = .*\\\\$/ {
21716       s/^DEP_FILES = //
21717       :loop
21718         s/\\\\$//
21719         p
21720         n
21721         /\\\\$/ b loop
21722       p
21723     }
21724     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21725        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21726     # Make sure the directory exists.
21727     test -f "$dirpart/$file" && continue
21728     fdir=`(dirname "$file") 2>/dev/null ||
21729 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21730          X"$file" : 'X\(//\)[^/]' \| \
21731          X"$file" : 'X\(//\)$' \| \
21732          X"$file" : 'X\(/\)' \| \
21733          .     : '\(.\)' 2>/dev/null ||
21734 echo X"$file" |
21735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21736           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21737           /^X\(\/\/\)$/{ s//\1/; q; }
21738           /^X\(\/\).*/{ s//\1/; q; }
21739           s/.*/./; q'`
21740     { if $as_mkdir_p; then
21741     mkdir -p $dirpart/$fdir
21742   else
21743     as_dir=$dirpart/$fdir
21744     as_dirs=
21745     while test ! -d "$as_dir"; do
21746       as_dirs="$as_dir $as_dirs"
21747       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21749          X"$as_dir" : 'X\(//\)[^/]' \| \
21750          X"$as_dir" : 'X\(//\)$' \| \
21751          X"$as_dir" : 'X\(/\)' \| \
21752          .     : '\(.\)' 2>/dev/null ||
21753 echo X"$as_dir" |
21754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21755           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21756           /^X\(\/\/\)$/{ s//\1/; q; }
21757           /^X\(\/\).*/{ s//\1/; q; }
21758           s/.*/./; q'`
21759     done
21760     test ! -n "$as_dirs" || mkdir $as_dirs
21761   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21762 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21763    { (exit 1); exit 1; }; }; }
21764
21765     # echo "creating $dirpart/$file"
21766     echo '# dummy' > "$dirpart/$file"
21767   done
21768 done
21769  ;;
21770   esac
21771 done
21772 _ACEOF
21773
21774 cat >>$CONFIG_STATUS <<\_ACEOF
21775
21776 { (exit 0); exit 0; }
21777 _ACEOF
21778 chmod +x $CONFIG_STATUS
21779 ac_clean_files=$ac_clean_files_save
21780
21781
21782 # configure is writing to config.log, and then calls config.status.
21783 # config.status does its own redirection, appending to config.log.
21784 # Unfortunately, on DOS this fails, as config.log is still kept open
21785 # by configure, so config.status won't be able to write to it; its
21786 # output is simply discarded.  So we exec the FD to /dev/null,
21787 # effectively closing config.log, so it can be properly (re)opened and
21788 # appended to by config.status.  When coming back to configure, we
21789 # need to make the FD available again.
21790 if test "$no_create" != yes; then
21791   ac_cs_success=:
21792   ac_config_status_args=
21793   test "$silent" = yes &&
21794     ac_config_status_args="$ac_config_status_args --quiet"
21795   exec 5>/dev/null
21796   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21797   exec 5>>config.log
21798   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21799   # would make configure fail if this is the last instruction.
21800   $ac_cs_success || { (exit 1); exit 1; }
21801 fi
21802