]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/openpam/configure
Vendor import of OpenPAM Feterita.
[FreeBSD/FreeBSD.git] / contrib / openpam / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for OpenPAM 20050201.
4 #
5 # Report bugs to <des@freebsd.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='OpenPAM'
425 PACKAGE_TARNAME='openpam'
426 PACKAGE_VERSION='20050201'
427 PACKAGE_STRING='OpenPAM 20050201'
428 PACKAGE_BUGREPORT='des@freebsd.org'
429
430 ac_unique_file="lib/pam_start.c"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIB_MAJ OPENPAM_MODULES_DIR WITH_PAM_SU_TRUE WITH_PAM_SU_FALSE WITH_PAM_UNIX_TRUE WITH_PAM_UNIX_FALSE DL_LIBS CRYPT_LIBS 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 OpenPAM 20050201 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   case $ac_init_help in
1024      short | recursive ) echo "Configuration of OpenPAM 20050201:";;
1025    esac
1026   cat <<\_ACEOF
1027
1028 Optional Features:
1029   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1030   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1031   --enable-static[=PKGS]
1032                           build static libraries [default=no]
1033   --enable-shared[=PKGS]
1034                           build shared libraries [default=yes]
1035   --enable-fast-install[=PKGS]
1036                           optimize for fast installation [default=yes]
1037   --disable-libtool-lock  avoid locking (might break parallel builds)
1038   --disable-dependency-tracking  speeds up one-time build
1039   --enable-dependency-tracking   do not reject slow dependency extractors
1040   --disable-unversioned-modules
1041                           support loading of unversioned modules
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051   --with-modules-dir=DIR  OpenPAM modules directory
1052   --with-pam-su           compile example version of /bin/su
1053   --with-pam-unix         compile example version of pam_unix.so
1054
1055 Some influential environment variables:
1056   CC          C compiler command
1057   CFLAGS      C compiler flags
1058   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059               nonstandard directory <lib dir>
1060   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061               headers in a nonstandard directory <include dir>
1062   CPP         C preprocessor
1063   CXX         C++ compiler command
1064   CXXFLAGS    C++ compiler flags
1065   CXXCPP      C++ preprocessor
1066   F77         Fortran 77 compiler command
1067   FFLAGS      Fortran 77 compiler flags
1068
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1071
1072 Report bugs to <des@freebsd.org>.
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1109 case `pwd` in
1110 .) ac_abs_builddir="$ac_dir";;
1111 *)
1112   case "$ac_dir" in
1113   .) ac_abs_builddir=`pwd`;;
1114   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116   esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *)
1121   case ${ac_top_builddir}. in
1122   .) ac_abs_top_builddir=$ac_abs_builddir;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1129 *)
1130   case $ac_srcdir in
1131   .) ac_abs_srcdir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *)
1139   case $ac_top_srcdir in
1140   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143   esac;;
1144 esac
1145
1146     cd $ac_dir
1147     # Check for guested configure; otherwise get Cygnus style configure.
1148     if test -f $ac_srcdir/configure.gnu; then
1149       echo
1150       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151     elif test -f $ac_srcdir/configure; then
1152       echo
1153       $SHELL $ac_srcdir/configure  --help=recursive
1154     elif test -f $ac_srcdir/configure.ac ||
1155            test -f $ac_srcdir/configure.in; then
1156       echo
1157       $ac_configure --help
1158     else
1159       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160     fi
1161     cd $ac_popdir
1162   done
1163 fi
1164
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1167   cat <<\_ACEOF
1168 OpenPAM configure 20050201
1169 generated by GNU Autoconf 2.59
1170
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1174 _ACEOF
1175   exit 0
1176 fi
1177 exec 5>config.log
1178 cat >&5 <<_ACEOF
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1181
1182 It was created by OpenPAM $as_me 20050201, which was
1183 generated by GNU Autoconf 2.59.  Invocation command line was
1184
1185   $ $0 $@
1186
1187 _ACEOF
1188 {
1189 cat <<_ASUNAME
1190 ## --------- ##
1191 ## Platform. ##
1192 ## --------- ##
1193
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1202
1203 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1210
1211 _ASUNAME
1212
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 for as_dir in $PATH
1215 do
1216   IFS=$as_save_IFS
1217   test -z "$as_dir" && as_dir=.
1218   echo "PATH: $as_dir"
1219 done
1220
1221 } >&5
1222
1223 cat >&5 <<_ACEOF
1224
1225
1226 ## ----------- ##
1227 ## Core tests. ##
1228 ## ----------- ##
1229
1230 _ACEOF
1231
1232
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_configure_args=
1239 ac_configure_args0=
1240 ac_configure_args1=
1241 ac_sep=
1242 ac_must_keep_next=false
1243 for ac_pass in 1 2
1244 do
1245   for ac_arg
1246   do
1247     case $ac_arg in
1248     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250     | -silent | --silent | --silen | --sile | --sil)
1251       continue ;;
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     esac
1255     case $ac_pass in
1256     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257     2)
1258       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259       if test $ac_must_keep_next = true; then
1260         ac_must_keep_next=false # Got value, back to normal.
1261       else
1262         case $ac_arg in
1263           *=* | --config-cache | -C | -disable-* | --disable-* \
1264           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266           | -with-* | --with-* | -without-* | --without-* | --x)
1267             case "$ac_configure_args0 " in
1268               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269             esac
1270             ;;
1271           -* ) ac_must_keep_next=true ;;
1272         esac
1273       fi
1274       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275       # Get rid of the leading space.
1276       ac_sep=" "
1277       ;;
1278     esac
1279   done
1280 done
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log.  We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290   # Save into config.log some information that might help in debugging.
1291   {
1292     echo
1293
1294     cat <<\_ASBOX
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1298 _ASBOX
1299     echo
1300     # The following way of writing the cache mishandles newlines in values,
1301 {
1302   (set) 2>&1 |
1303     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304     *ac_space=\ *)
1305       sed -n \
1306         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308       ;;
1309     *)
1310       sed -n \
1311         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312       ;;
1313     esac;
1314 }
1315     echo
1316
1317     cat <<\_ASBOX
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1321 _ASBOX
1322     echo
1323     for ac_var in $ac_subst_vars
1324     do
1325       eval ac_val=$`echo $ac_var`
1326       echo "$ac_var='"'"'$ac_val'"'"'"
1327     done | sort
1328     echo
1329
1330     if test -n "$ac_subst_files"; then
1331       cat <<\_ASBOX
1332 ## ------------- ##
1333 ## Output files. ##
1334 ## ------------- ##
1335 _ASBOX
1336       echo
1337       for ac_var in $ac_subst_files
1338       do
1339         eval ac_val=$`echo $ac_var`
1340         echo "$ac_var='"'"'$ac_val'"'"'"
1341       done | sort
1342       echo
1343     fi
1344
1345     if test -s confdefs.h; then
1346       cat <<\_ASBOX
1347 ## ----------- ##
1348 ## confdefs.h. ##
1349 ## ----------- ##
1350 _ASBOX
1351       echo
1352       sed "/^$/d" confdefs.h | sort
1353       echo
1354     fi
1355     test "$ac_signal" != 0 &&
1356       echo "$as_me: caught signal $ac_signal"
1357     echo "$as_me: exit $exit_status"
1358   } >&5
1359   rm -f core *.core &&
1360   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361     exit $exit_status
1362      ' 0
1363 for ac_signal in 1 2 13 15; do
1364   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 done
1366 ac_signal=0
1367
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 echo >confdefs.h
1372
1373 # Predefined preprocessor variables.
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 _ACEOF
1398
1399
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403   if test "x$prefix" != xNONE; then
1404     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405   else
1406     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407   fi
1408 fi
1409 for ac_site_file in $CONFIG_SITE; do
1410   if test -r "$ac_site_file"; then
1411     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413     sed 's/^/| /' "$ac_site_file" >&5
1414     . "$ac_site_file"
1415   fi
1416 done
1417
1418 if test -r "$cache_file"; then
1419   # Some versions of bash will fail to source /dev/null (special
1420   # files actually), so we avoid doing that.
1421   if test -f "$cache_file"; then
1422     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1424     case $cache_file in
1425       [\\/]* | ?:[\\/]* ) . $cache_file;;
1426       *)                      . ./$cache_file;;
1427     esac
1428   fi
1429 else
1430   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1432   >$cache_file
1433 fi
1434
1435 # Check that the precious variables saved in the cache have kept the same
1436 # value.
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441   eval ac_new_set=\$ac_env_${ac_var}_set
1442   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443   eval ac_new_val="\$ac_env_${ac_var}_value"
1444   case $ac_old_set,$ac_new_set in
1445     set,)
1446       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448       ac_cache_corrupted=: ;;
1449     ,set)
1450       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452       ac_cache_corrupted=: ;;
1453     ,);;
1454     *)
1455       if test "x$ac_old_val" != "x$ac_new_val"; then
1456         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459 echo "$as_me:   former value:  $ac_old_val" >&2;}
1460         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461 echo "$as_me:   current value: $ac_new_val" >&2;}
1462         ac_cache_corrupted=:
1463       fi;;
1464   esac
1465   # Pass precious variables to config.status.
1466   if test "$ac_new_set" = set; then
1467     case $ac_new_val in
1468     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470     *) ac_arg=$ac_var=$ac_new_val ;;
1471     esac
1472     case " $ac_configure_args " in
1473       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475     esac
1476   fi
1477 done
1478 if $ac_cache_corrupted; then
1479   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483    { (exit 1); exit 1; }; }
1484 fi
1485
1486 ac_ext=c
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519           ac_config_headers="$ac_config_headers config.h"
1520
1521
1522 ac_aux_dir=
1523 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1524   if test -f $ac_dir/install-sh; then
1525     ac_aux_dir=$ac_dir
1526     ac_install_sh="$ac_aux_dir/install-sh -c"
1527     break
1528   elif test -f $ac_dir/install.sh; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/install.sh -c"
1531     break
1532   elif test -f $ac_dir/shtool; then
1533     ac_aux_dir=$ac_dir
1534     ac_install_sh="$ac_aux_dir/shtool install -c"
1535     break
1536   fi
1537 done
1538 if test -z "$ac_aux_dir"; then
1539   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1540 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1541    { (exit 1); exit 1; }; }
1542 fi
1543 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1546
1547 # Make sure we can run config.sub.
1548 $ac_config_sub sun4 >/dev/null 2>&1 ||
1549   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1550 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1551    { (exit 1); exit 1; }; }
1552
1553 echo "$as_me:$LINENO: checking build system type" >&5
1554 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1555 if test "${ac_cv_build+set}" = set; then
1556   echo $ECHO_N "(cached) $ECHO_C" >&6
1557 else
1558   ac_cv_build_alias=$build_alias
1559 test -z "$ac_cv_build_alias" &&
1560   ac_cv_build_alias=`$ac_config_guess`
1561 test -z "$ac_cv_build_alias" &&
1562   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1563 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1564    { (exit 1); exit 1; }; }
1565 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1566   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1567 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1568    { (exit 1); exit 1; }; }
1569
1570 fi
1571 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572 echo "${ECHO_T}$ac_cv_build" >&6
1573 build=$ac_cv_build
1574 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1575 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1576 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577
1578
1579 echo "$as_me:$LINENO: checking host system type" >&5
1580 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1581 if test "${ac_cv_host+set}" = set; then
1582   echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584   ac_cv_host_alias=$host_alias
1585 test -z "$ac_cv_host_alias" &&
1586   ac_cv_host_alias=$ac_cv_build_alias
1587 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1588   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1590    { (exit 1); exit 1; }; }
1591
1592 fi
1593 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1594 echo "${ECHO_T}$ac_cv_host" >&6
1595 host=$ac_cv_host
1596 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601 echo "$as_me:$LINENO: checking target system type" >&5
1602 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1603 if test "${ac_cv_target+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   ac_cv_target_alias=$target_alias
1607 test "x$ac_cv_target_alias" = "x" &&
1608   ac_cv_target_alias=$ac_cv_host_alias
1609 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1610   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 fi
1615 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1616 echo "${ECHO_T}$ac_cv_target" >&6
1617 target=$ac_cv_target
1618 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623 # The aliases save the names the user supplied, while $host etc.
1624 # will get canonicalized.
1625 test -n "$target_alias" &&
1626   test "$program_prefix$program_suffix$program_transform_name" = \
1627     NONENONEs,x,x, &&
1628   program_prefix=${target_alias}-
1629 ac_ext=c
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$CC"; then
1643   ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 CC=$ac_cv_prog_CC
1662 if test -n "$CC"; then
1663   echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1665 else
1666   echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670 fi
1671 if test -z "$ac_cv_prog_CC"; then
1672   ac_ct_CC=$CC
1673   # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678   echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680   if test -n "$ac_ct_CC"; then
1681   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1682 else
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1685 do
1686   IFS=$as_save_IFS
1687   test -z "$as_dir" && as_dir=.
1688   for ac_exec_ext in '' $ac_executable_extensions; do
1689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690     ac_cv_prog_ac_ct_CC="gcc"
1691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692     break 2
1693   fi
1694 done
1695 done
1696
1697 fi
1698 fi
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1703 else
1704   echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1706 fi
1707
1708   CC=$ac_ct_CC
1709 else
1710   CC="$ac_cv_prog_CC"
1711 fi
1712
1713 if test -z "$CC"; then
1714   if test -n "$ac_tool_prefix"; then
1715   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   if test -n "$CC"; then
1723   ac_cv_prog_CC="$CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728   IFS=$as_save_IFS
1729   test -z "$as_dir" && as_dir=.
1730   for ac_exec_ext in '' $ac_executable_extensions; do
1731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732     ac_cv_prog_CC="${ac_tool_prefix}cc"
1733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734     break 2
1735   fi
1736 done
1737 done
1738
1739 fi
1740 fi
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743   echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750 fi
1751 if test -z "$ac_cv_prog_CC"; then
1752   ac_ct_CC=$CC
1753   # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$ac_ct_CC"; then
1761   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766   IFS=$as_save_IFS
1767   test -z "$as_dir" && as_dir=.
1768   for ac_exec_ext in '' $ac_executable_extensions; do
1769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770     ac_cv_prog_ac_ct_CC="cc"
1771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772     break 2
1773   fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788   CC=$ac_ct_CC
1789 else
1790   CC="$ac_cv_prog_CC"
1791 fi
1792
1793 fi
1794 if test -z "$CC"; then
1795   # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$CC"; then
1803   ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805   ac_prog_rejected=no
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1808 do
1809   IFS=$as_save_IFS
1810   test -z "$as_dir" && as_dir=.
1811   for ac_exec_ext in '' $ac_executable_extensions; do
1812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814        ac_prog_rejected=yes
1815        continue
1816      fi
1817     ac_cv_prog_CC="cc"
1818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819     break 2
1820   fi
1821 done
1822 done
1823
1824 if test $ac_prog_rejected = yes; then
1825   # We found a bogon in the path, so make sure we never use it.
1826   set dummy $ac_cv_prog_CC
1827   shift
1828   if test $# != 0; then
1829     # We chose a different compiler from the bogus one.
1830     # However, it has the same basename, so the bogon will be chosen
1831     # first if we set CC to just the basename; use the full file name.
1832     shift
1833     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1834   fi
1835 fi
1836 fi
1837 fi
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840   echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843   echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1845 fi
1846
1847 fi
1848 if test -z "$CC"; then
1849   if test -n "$ac_tool_prefix"; then
1850   for ac_prog in cl
1851   do
1852     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   if test -n "$CC"; then
1860   ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865   IFS=$as_save_IFS
1866   test -z "$as_dir" && as_dir=.
1867   for ac_exec_ext in '' $ac_executable_extensions; do
1868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871     break 2
1872   fi
1873 done
1874 done
1875
1876 fi
1877 fi
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880   echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1882 else
1883   echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887     test -n "$CC" && break
1888   done
1889 fi
1890 if test -z "$CC"; then
1891   ac_ct_CC=$CC
1892   for ac_prog in cl
1893 do
1894   # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901   if test -n "$ac_ct_CC"; then
1902   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907   IFS=$as_save_IFS
1908   test -z "$as_dir" && as_dir=.
1909   for ac_exec_ext in '' $ac_executable_extensions; do
1910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911     ac_cv_prog_ac_ct_CC="$ac_prog"
1912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913     break 2
1914   fi
1915 done
1916 done
1917
1918 fi
1919 fi
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1924 else
1925   echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1927 fi
1928
1929   test -n "$ac_ct_CC" && break
1930 done
1931
1932   CC=$ac_ct_CC
1933 fi
1934
1935 fi
1936
1937
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942    { (exit 1); exit 1; }; }
1943
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946      "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949   (eval $ac_compiler --version </dev/null >&5) 2>&5
1950   ac_status=$?
1951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952   (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954   (eval $ac_compiler -v </dev/null >&5) 2>&5
1955   ac_status=$?
1956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957   (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959   (eval $ac_compiler -V </dev/null >&5) 2>&5
1960   ac_status=$?
1961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962   (exit $ac_status); }
1963
1964 cat >conftest.$ac_ext <<_ACEOF
1965 /* confdefs.h.  */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h.  */
1970
1971 int
1972 main ()
1973 {
1974
1975   ;
1976   return 0;
1977 }
1978 _ACEOF
1979 ac_clean_files_save=$ac_clean_files
1980 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1981 # Try to create an executable without -o first, disregard a.out.
1982 # It will help us diagnose broken compilers, and finding out an intuition
1983 # of exeext.
1984 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1985 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1986 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1987 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1988   (eval $ac_link_default) 2>&5
1989   ac_status=$?
1990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991   (exit $ac_status); }; then
1992   # Find the output, starting from the most likely.  This scheme is
1993 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1994 # resort.
1995
1996 # Be careful to initialize this variable, since it used to be cached.
1997 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1998 ac_cv_exeext=
1999 # b.out is created by i960 compilers.
2000 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2001 do
2002   test -f "$ac_file" || continue
2003   case $ac_file in
2004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2005         ;;
2006     conftest.$ac_ext )
2007         # This is the source file.
2008         ;;
2009     [ab].out )
2010         # We found the default executable, but exeext='' is most
2011         # certainly right.
2012         break;;
2013     *.* )
2014         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2015         # FIXME: I believe we export ac_cv_exeext for Libtool,
2016         # but it would be cool to find out if it's true.  Does anybody
2017         # maintain Libtool? --akim.
2018         export ac_cv_exeext
2019         break;;
2020     * )
2021         break;;
2022   esac
2023 done
2024 else
2025   echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2027
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2029 See \`config.log' for more details." >&5
2030 echo "$as_me: error: C compiler cannot create executables
2031 See \`config.log' for more details." >&2;}
2032    { (exit 77); exit 77; }; }
2033 fi
2034
2035 ac_exeext=$ac_cv_exeext
2036 echo "$as_me:$LINENO: result: $ac_file" >&5
2037 echo "${ECHO_T}$ac_file" >&6
2038
2039 # Check the compiler produces executables we can run.  If not, either
2040 # the compiler is broken, or we cross compile.
2041 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2042 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2043 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2044 # If not cross compiling, check that we can run a simple program.
2045 if test "$cross_compiling" != yes; then
2046   if { ac_try='./$ac_file'
2047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048   (eval $ac_try) 2>&5
2049   ac_status=$?
2050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051   (exit $ac_status); }; }; then
2052     cross_compiling=no
2053   else
2054     if test "$cross_compiling" = maybe; then
2055         cross_compiling=yes
2056     else
2057         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'.
2059 See \`config.log' for more details." >&5
2060 echo "$as_me: error: cannot run C compiled programs.
2061 If you meant to cross compile, use \`--host'.
2062 See \`config.log' for more details." >&2;}
2063    { (exit 1); exit 1; }; }
2064     fi
2065   fi
2066 fi
2067 echo "$as_me:$LINENO: result: yes" >&5
2068 echo "${ECHO_T}yes" >&6
2069
2070 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2071 ac_clean_files=$ac_clean_files_save
2072 # Check the compiler produces executables we can run.  If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2075 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2076 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2077 echo "${ECHO_T}$cross_compiling" >&6
2078
2079 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2080 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2082   (eval $ac_link) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; then
2086   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2087 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2088 # work properly (i.e., refer to `conftest.exe'), while it won't with
2089 # `rm'.
2090 for ac_file in conftest.exe conftest conftest.*; do
2091   test -f "$ac_file" || continue
2092   case $ac_file in
2093     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2094     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2095           export ac_cv_exeext
2096           break;;
2097     * ) break;;
2098   esac
2099 done
2100 else
2101   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2104 See \`config.log' for more details." >&2;}
2105    { (exit 1); exit 1; }; }
2106 fi
2107
2108 rm -f conftest$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2110 echo "${ECHO_T}$ac_cv_exeext" >&6
2111
2112 rm -f conftest.$ac_ext
2113 EXEEXT=$ac_cv_exeext
2114 ac_exeext=$EXEEXT
2115 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2116 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2117 if test "${ac_cv_objext+set}" = set; then
2118   echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120   cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 rm -f conftest.o conftest.obj
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137   (eval $ac_compile) 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); }; then
2141   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2142   case $ac_file in
2143     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2144     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2145        break;;
2146   esac
2147 done
2148 else
2149   echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2155 See \`config.log' for more details." >&2;}
2156    { (exit 1); exit 1; }; }
2157 fi
2158
2159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2160 fi
2161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2162 echo "${ECHO_T}$ac_cv_objext" >&6
2163 OBJEXT=$ac_cv_objext
2164 ac_objext=$OBJEXT
2165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2168   echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170   cat >conftest.$ac_ext <<_ACEOF
2171 /* confdefs.h.  */
2172 _ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h.  */
2176
2177 int
2178 main ()
2179 {
2180 #ifndef __GNUC__
2181        choke me
2182 #endif
2183
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190   (eval $ac_compile) 2>conftest.er1
2191   ac_status=$?
2192   grep -v '^ *+' conftest.er1 >conftest.err
2193   rm -f conftest.er1
2194   cat conftest.err >&5
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); } &&
2197          { ac_try='test -z "$ac_c_werror_flag"
2198                          || test ! -s conftest.err'
2199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200   (eval $ac_try) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; } &&
2204          { ac_try='test -s conftest.$ac_objext'
2205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206   (eval $ac_try) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; }; then
2210   ac_compiler_gnu=yes
2211 else
2212   echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 ac_compiler_gnu=no
2216 fi
2217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2219
2220 fi
2221 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2222 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2223 GCC=`test $ac_compiler_gnu = yes && echo yes`
2224 ac_test_CFLAGS=${CFLAGS+set}
2225 ac_save_CFLAGS=$CFLAGS
2226 CFLAGS="-g"
2227 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2228 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2229 if test "${ac_cv_prog_cc_g+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   cat >conftest.$ac_ext <<_ACEOF
2233 /* confdefs.h.  */
2234 _ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h.  */
2238
2239 int
2240 main ()
2241 {
2242
2243   ;
2244   return 0;
2245 }
2246 _ACEOF
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249   (eval $ac_compile) 2>conftest.er1
2250   ac_status=$?
2251   grep -v '^ *+' conftest.er1 >conftest.err
2252   rm -f conftest.er1
2253   cat conftest.err >&5
2254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255   (exit $ac_status); } &&
2256          { ac_try='test -z "$ac_c_werror_flag"
2257                          || test ! -s conftest.err'
2258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259   (eval $ac_try) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; } &&
2263          { ac_try='test -s conftest.$ac_objext'
2264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265   (eval $ac_try) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; }; then
2269   ac_cv_prog_cc_g=yes
2270 else
2271   echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 ac_cv_prog_cc_g=no
2275 fi
2276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2277 fi
2278 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2279 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2280 if test "$ac_test_CFLAGS" = set; then
2281   CFLAGS=$ac_save_CFLAGS
2282 elif test $ac_cv_prog_cc_g = yes; then
2283   if test "$GCC" = yes; then
2284     CFLAGS="-g -O2"
2285   else
2286     CFLAGS="-g"
2287   fi
2288 else
2289   if test "$GCC" = yes; then
2290     CFLAGS="-O2"
2291   else
2292     CFLAGS=
2293   fi
2294 fi
2295 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2296 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   ac_cv_prog_cc_stdc=no
2301 ac_save_CC=$CC
2302 cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h.  */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h.  */
2308 #include <stdarg.h>
2309 #include <stdio.h>
2310 #include <sys/types.h>
2311 #include <sys/stat.h>
2312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2313 struct buf { int x; };
2314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2315 static char *e (p, i)
2316      char **p;
2317      int i;
2318 {
2319   return p[i];
2320 }
2321 static char *f (char * (*g) (char **, int), char **p, ...)
2322 {
2323   char *s;
2324   va_list v;
2325   va_start (v,p);
2326   s = g (p, va_arg (v,int));
2327   va_end (v);
2328   return s;
2329 }
2330
2331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2332    function prototypes and stuff, but not '\xHH' hex character constants.
2333    These don't provoke an error unfortunately, instead are silently treated
2334    as 'x'.  The following induces an error, until -std1 is added to get
2335    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2336    array size at least.  It's necessary to write '\x00'==0 to get something
2337    that's true only with -std1.  */
2338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2339
2340 int test (int i, double x);
2341 struct s1 {int (*f) (int a);};
2342 struct s2 {int (*f) (double a);};
2343 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2344 int argc;
2345 char **argv;
2346 int
2347 main ()
2348 {
2349 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2350   ;
2351   return 0;
2352 }
2353 _ACEOF
2354 # Don't try gcc -ansi; that turns off useful extensions and
2355 # breaks some systems' header files.
2356 # AIX                   -qlanglvl=ansi
2357 # Ultrix and OSF/1      -std1
2358 # HP-UX 10.20 and later -Ae
2359 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2360 # SVR4                  -Xc -D__EXTENSIONS__
2361 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2362 do
2363   CC="$ac_save_CC $ac_arg"
2364   rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366   (eval $ac_compile) 2>conftest.er1
2367   ac_status=$?
2368   grep -v '^ *+' conftest.er1 >conftest.err
2369   rm -f conftest.er1
2370   cat conftest.err >&5
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); } &&
2373          { ac_try='test -z "$ac_c_werror_flag"
2374                          || test ! -s conftest.err'
2375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376   (eval $ac_try) 2>&5
2377   ac_status=$?
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); }; } &&
2380          { ac_try='test -s conftest.$ac_objext'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; }; then
2386   ac_cv_prog_cc_stdc=$ac_arg
2387 break
2388 else
2389   echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2391
2392 fi
2393 rm -f conftest.err conftest.$ac_objext
2394 done
2395 rm -f conftest.$ac_ext conftest.$ac_objext
2396 CC=$ac_save_CC
2397
2398 fi
2399
2400 case "x$ac_cv_prog_cc_stdc" in
2401   x|xno)
2402     echo "$as_me:$LINENO: result: none needed" >&5
2403 echo "${ECHO_T}none needed" >&6 ;;
2404   *)
2405     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2406 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2407     CC="$CC $ac_cv_prog_cc_stdc" ;;
2408 esac
2409
2410 # Some people use a C++ compiler to compile C.  Since we use `exit',
2411 # in C++ we need to declare it.  In case someone uses the same compiler
2412 # for both compiling C and C++ we need to have the C++ compiler decide
2413 # the declaration of exit, since it's the most demanding environment.
2414 cat >conftest.$ac_ext <<_ACEOF
2415 #ifndef __cplusplus
2416   choke me
2417 #endif
2418 _ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421   (eval $ac_compile) 2>conftest.er1
2422   ac_status=$?
2423   grep -v '^ *+' conftest.er1 >conftest.err
2424   rm -f conftest.er1
2425   cat conftest.err >&5
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); } &&
2428          { ac_try='test -z "$ac_c_werror_flag"
2429                          || test ! -s conftest.err'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; } &&
2435          { ac_try='test -s conftest.$ac_objext'
2436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437   (eval $ac_try) 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }; }; then
2441   for ac_declaration in \
2442    '' \
2443    'extern "C" void std::exit (int) throw (); using std::exit;' \
2444    'extern "C" void std::exit (int); using std::exit;' \
2445    'extern "C" void exit (int) throw ();' \
2446    'extern "C" void exit (int);' \
2447    'void exit (int);'
2448 do
2449   cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h.  */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h.  */
2455 $ac_declaration
2456 #include <stdlib.h>
2457 int
2458 main ()
2459 {
2460 exit (42);
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467   (eval $ac_compile) 2>conftest.er1
2468   ac_status=$?
2469   grep -v '^ *+' conftest.er1 >conftest.err
2470   rm -f conftest.er1
2471   cat conftest.err >&5
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); } &&
2474          { ac_try='test -z "$ac_c_werror_flag"
2475                          || test ! -s conftest.err'
2476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483   (eval $ac_try) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; }; then
2487   :
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 continue
2493 fi
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495   cat >conftest.$ac_ext <<_ACEOF
2496 /* confdefs.h.  */
2497 _ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h.  */
2501 $ac_declaration
2502 int
2503 main ()
2504 {
2505 exit (42);
2506   ;
2507   return 0;
2508 }
2509 _ACEOF
2510 rm -f conftest.$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512   (eval $ac_compile) 2>conftest.er1
2513   ac_status=$?
2514   grep -v '^ *+' conftest.er1 >conftest.err
2515   rm -f conftest.er1
2516   cat conftest.err >&5
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); } &&
2519          { ac_try='test -z "$ac_c_werror_flag"
2520                          || test ! -s conftest.err'
2521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522   (eval $ac_try) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; } &&
2526          { ac_try='test -s conftest.$ac_objext'
2527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528   (eval $ac_try) 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; }; then
2532   break
2533 else
2534   echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2536
2537 fi
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539 done
2540 rm -f conftest*
2541 if test -n "$ac_declaration"; then
2542   echo '#ifdef __cplusplus' >>confdefs.h
2543   echo $ac_declaration      >>confdefs.h
2544   echo '#endif'             >>confdefs.h
2545 fi
2546
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 fi
2552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2553 ac_ext=c
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558
2559
2560 echo "$as_me:$LINENO: checking for working volatile" >&5
2561 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
2562 if test "${ac_cv_c_volatile+set}" = set; then
2563   echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565   cat >conftest.$ac_ext <<_ACEOF
2566 /* confdefs.h.  */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h.  */
2571
2572 int
2573 main ()
2574 {
2575
2576 volatile int x;
2577 int * volatile y;
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584   (eval $ac_compile) 2>conftest.er1
2585   ac_status=$?
2586   grep -v '^ *+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } &&
2591          { ac_try='test -z "$ac_c_werror_flag"
2592                          || test ! -s conftest.err'
2593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594   (eval $ac_try) 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600   (eval $ac_try) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604   ac_cv_c_volatile=yes
2605 else
2606   echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 ac_cv_c_volatile=no
2610 fi
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
2614 echo "${ECHO_T}$ac_cv_c_volatile" >&6
2615 if test $ac_cv_c_volatile = no; then
2616
2617 cat >>confdefs.h <<\_ACEOF
2618 #define volatile
2619 _ACEOF
2620
2621 fi
2622
2623 # Check whether --enable-static or --disable-static was given.
2624 if test "${enable_static+set}" = set; then
2625   enableval="$enable_static"
2626   p=${PACKAGE-default}
2627     case $enableval in
2628     yes) enable_static=yes ;;
2629     no) enable_static=no ;;
2630     *)
2631      enable_static=no
2632       # Look at the argument we got.  We use all the common list separators.
2633       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2634       for pkg in $enableval; do
2635         IFS="$lt_save_ifs"
2636         if test "X$pkg" = "X$p"; then
2637           enable_static=yes
2638         fi
2639       done
2640       IFS="$lt_save_ifs"
2641       ;;
2642     esac
2643 else
2644   enable_static=no
2645 fi;
2646
2647
2648 # Check whether --enable-shared or --disable-shared was given.
2649 if test "${enable_shared+set}" = set; then
2650   enableval="$enable_shared"
2651   p=${PACKAGE-default}
2652     case $enableval in
2653     yes) enable_shared=yes ;;
2654     no) enable_shared=no ;;
2655     *)
2656       enable_shared=no
2657       # Look at the argument we got.  We use all the common list separators.
2658       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2659       for pkg in $enableval; do
2660         IFS="$lt_save_ifs"
2661         if test "X$pkg" = "X$p"; then
2662           enable_shared=yes
2663         fi
2664       done
2665       IFS="$lt_save_ifs"
2666       ;;
2667     esac
2668 else
2669   enable_shared=yes
2670 fi;
2671
2672 # Check whether --enable-fast-install or --disable-fast-install was given.
2673 if test "${enable_fast_install+set}" = set; then
2674   enableval="$enable_fast_install"
2675   p=${PACKAGE-default}
2676     case $enableval in
2677     yes) enable_fast_install=yes ;;
2678     no) enable_fast_install=no ;;
2679     *)
2680       enable_fast_install=no
2681       # Look at the argument we got.  We use all the common list separators.
2682       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2683       for pkg in $enableval; do
2684         IFS="$lt_save_ifs"
2685         if test "X$pkg" = "X$p"; then
2686           enable_fast_install=yes
2687         fi
2688       done
2689       IFS="$lt_save_ifs"
2690       ;;
2691     esac
2692 else
2693   enable_fast_install=yes
2694 fi;
2695
2696 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2697 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2698 if test "${lt_cv_path_SED+set}" = set; then
2699   echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701   # Loop through the user's path and test for sed and gsed.
2702 # Then use that list of sed's as ones to test for truncation.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708   for lt_ac_prog in sed gsed; do
2709     for ac_exec_ext in '' $ac_executable_extensions; do
2710       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2711         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2712       fi
2713     done
2714   done
2715 done
2716 lt_ac_max=0
2717 lt_ac_count=0
2718 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2719 # along with /bin/sed that truncates output.
2720 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2721   test ! -f $lt_ac_sed && break
2722   cat /dev/null > conftest.in
2723   lt_ac_count=0
2724   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2725   # Check for GNU sed and select it if it is found.
2726   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2727     lt_cv_path_SED=$lt_ac_sed
2728     break
2729   fi
2730   while true; do
2731     cat conftest.in conftest.in >conftest.tmp
2732     mv conftest.tmp conftest.in
2733     cp conftest.in conftest.nl
2734     echo >>conftest.nl
2735     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2736     cmp -s conftest.out conftest.nl || break
2737     # 10000 chars as input seems more than enough
2738     test $lt_ac_count -gt 10 && break
2739     lt_ac_count=`expr $lt_ac_count + 1`
2740     if test $lt_ac_count -gt $lt_ac_max; then
2741       lt_ac_max=$lt_ac_count
2742       lt_cv_path_SED=$lt_ac_sed
2743     fi
2744   done
2745 done
2746
2747 fi
2748
2749 SED=$lt_cv_path_SED
2750 echo "$as_me:$LINENO: result: $SED" >&5
2751 echo "${ECHO_T}$SED" >&6
2752
2753 echo "$as_me:$LINENO: checking for egrep" >&5
2754 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2755 if test "${ac_cv_prog_egrep+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2759     then ac_cv_prog_egrep='grep -E'
2760     else ac_cv_prog_egrep='egrep'
2761     fi
2762 fi
2763 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2764 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2765  EGREP=$ac_cv_prog_egrep
2766
2767
2768
2769 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2770 if test "${with_gnu_ld+set}" = set; then
2771   withval="$with_gnu_ld"
2772   test "$withval" = no || with_gnu_ld=yes
2773 else
2774   with_gnu_ld=no
2775 fi;
2776 ac_prog=ld
2777 if test "$GCC" = yes; then
2778   # Check if gcc -print-prog-name=ld gives a path.
2779   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2780 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2781   case $host in
2782   *-*-mingw*)
2783     # gcc leaves a trailing carriage return which upsets mingw
2784     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2785   *)
2786     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2787   esac
2788   case $ac_prog in
2789     # Accept absolute paths.
2790     [\\/]* | ?:[\\/]*)
2791       re_direlt='/[^/][^/]*/\.\./'
2792       # Canonicalize the pathname of ld
2793       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2794       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2795         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2796       done
2797       test -z "$LD" && LD="$ac_prog"
2798       ;;
2799   "")
2800     # If it fails, then pretend we aren't using GCC.
2801     ac_prog=ld
2802     ;;
2803   *)
2804     # If it is relative, then search for the first ld in PATH.
2805     with_gnu_ld=unknown
2806     ;;
2807   esac
2808 elif test "$with_gnu_ld" = yes; then
2809   echo "$as_me:$LINENO: checking for GNU ld" >&5
2810 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2811 else
2812   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2813 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2814 fi
2815 if test "${lt_cv_path_LD+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   if test -z "$LD"; then
2819   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2820   for ac_dir in $PATH; do
2821     IFS="$lt_save_ifs"
2822     test -z "$ac_dir" && ac_dir=.
2823     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2824       lt_cv_path_LD="$ac_dir/$ac_prog"
2825       # Check to see if the program is GNU ld.  I'd rather use --version,
2826       # but apparently some GNU ld's only accept -v.
2827       # Break only if it was the GNU/non-GNU ld that we prefer.
2828       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2829       *GNU* | *'with BFD'*)
2830         test "$with_gnu_ld" != no && break
2831         ;;
2832       *)
2833         test "$with_gnu_ld" != yes && break
2834         ;;
2835       esac
2836     fi
2837   done
2838   IFS="$lt_save_ifs"
2839 else
2840   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2841 fi
2842 fi
2843
2844 LD="$lt_cv_path_LD"
2845 if test -n "$LD"; then
2846   echo "$as_me:$LINENO: result: $LD" >&5
2847 echo "${ECHO_T}$LD" >&6
2848 else
2849   echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2851 fi
2852 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2853 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2854    { (exit 1); exit 1; }; }
2855 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2856 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2857 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2858   echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2861 case `$LD -v 2>&1 </dev/null` in
2862 *GNU* | *'with BFD'*)
2863   lt_cv_prog_gnu_ld=yes
2864   ;;
2865 *)
2866   lt_cv_prog_gnu_ld=no
2867   ;;
2868 esac
2869 fi
2870 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2871 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2872 with_gnu_ld=$lt_cv_prog_gnu_ld
2873
2874
2875 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2876 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2877 if test "${lt_cv_ld_reload_flag+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   lt_cv_ld_reload_flag='-r'
2881 fi
2882 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2883 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2884 reload_flag=$lt_cv_ld_reload_flag
2885 case $reload_flag in
2886 "" | " "*) ;;
2887 *) reload_flag=" $reload_flag" ;;
2888 esac
2889 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2890 case $host_os in
2891   darwin*)
2892     if test "$GCC" = yes; then
2893       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2894     else
2895       reload_cmds='$LD$reload_flag -o $output$reload_objs'
2896     fi
2897     ;;
2898 esac
2899
2900 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2901 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2902 if test "${lt_cv_path_NM+set}" = set; then
2903   echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905   if test -n "$NM"; then
2906   # Let the user override the test.
2907   lt_cv_path_NM="$NM"
2908 else
2909   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2910   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2911     IFS="$lt_save_ifs"
2912     test -z "$ac_dir" && ac_dir=.
2913     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2914     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2915       # Check to see if the nm accepts a BSD-compat flag.
2916       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2917       #   nm: unknown option "B" ignored
2918       # Tru64's nm complains that /dev/null is an invalid object file
2919       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2920       */dev/null* | *'Invalid file or object type'*)
2921         lt_cv_path_NM="$tmp_nm -B"
2922         break
2923         ;;
2924       *)
2925         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2926         */dev/null*)
2927           lt_cv_path_NM="$tmp_nm -p"
2928           break
2929           ;;
2930         *)
2931           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2932           continue # so that we can try to find one that supports BSD flags
2933           ;;
2934         esac
2935       esac
2936     fi
2937   done
2938   IFS="$lt_save_ifs"
2939   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2940 fi
2941 fi
2942 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2943 echo "${ECHO_T}$lt_cv_path_NM" >&6
2944 NM="$lt_cv_path_NM"
2945
2946 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2947 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2948 LN_S=$as_ln_s
2949 if test "$LN_S" = "ln -s"; then
2950   echo "$as_me:$LINENO: result: yes" >&5
2951 echo "${ECHO_T}yes" >&6
2952 else
2953   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2954 echo "${ECHO_T}no, using $LN_S" >&6
2955 fi
2956
2957 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2958 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2959 if test "${lt_cv_deplibs_check_method+set}" = set; then
2960   echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962   lt_cv_file_magic_cmd='$MAGIC_CMD'
2963 lt_cv_file_magic_test_file=
2964 lt_cv_deplibs_check_method='unknown'
2965 # Need to set the preceding variable on all platforms that support
2966 # interlibrary dependencies.
2967 # 'none' -- dependencies not supported.
2968 # `unknown' -- same as none, but documents that we really don't know.
2969 # 'pass_all' -- all dependencies passed with no checks.
2970 # 'test_compile' -- check by making test program.
2971 # 'file_magic [[regex]]' -- check by looking for files in library path
2972 # which responds to the $file_magic_cmd with a given extended regex.
2973 # If you have `file' or equivalent on your system and you're not sure
2974 # whether `pass_all' will *always* work, you probably want this one.
2975
2976 case $host_os in
2977 aix4* | aix5*)
2978   lt_cv_deplibs_check_method=pass_all
2979   ;;
2980
2981 beos*)
2982   lt_cv_deplibs_check_method=pass_all
2983   ;;
2984
2985 bsdi[45]*)
2986   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2987   lt_cv_file_magic_cmd='/usr/bin/file -L'
2988   lt_cv_file_magic_test_file=/shlib/libc.so
2989   ;;
2990
2991 cygwin*)
2992   # func_win32_libid is a shell function defined in ltmain.sh
2993   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2994   lt_cv_file_magic_cmd='func_win32_libid'
2995   ;;
2996
2997 mingw* | pw32*)
2998   # Base MSYS/MinGW do not provide the 'file' command needed by
2999   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3000   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3001   lt_cv_file_magic_cmd='$OBJDUMP -f'
3002   ;;
3003
3004 darwin* | rhapsody*)
3005   lt_cv_deplibs_check_method=pass_all
3006   ;;
3007
3008 freebsd* | kfreebsd*-gnu)
3009   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3010     case $host_cpu in
3011     i*86 )
3012       # Not sure whether the presence of OpenBSD here was a mistake.
3013       # Let's accept both of them until this is cleared up.
3014       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3015       lt_cv_file_magic_cmd=/usr/bin/file
3016       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3017       ;;
3018     esac
3019   else
3020     lt_cv_deplibs_check_method=pass_all
3021   fi
3022   ;;
3023
3024 gnu*)
3025   lt_cv_deplibs_check_method=pass_all
3026   ;;
3027
3028 hpux10.20* | hpux11*)
3029   lt_cv_file_magic_cmd=/usr/bin/file
3030   case "$host_cpu" in
3031   ia64*)
3032     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3033     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3034     ;;
3035   hppa*64*)
3036     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]'
3037     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3038     ;;
3039   *)
3040     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3041     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3042     ;;
3043   esac
3044   ;;
3045
3046 irix5* | irix6* | nonstopux*)
3047   case $LD in
3048   *-32|*"-32 ") libmagic=32-bit;;
3049   *-n32|*"-n32 ") libmagic=N32;;
3050   *-64|*"-64 ") libmagic=64-bit;;
3051   *) libmagic=never-match;;
3052   esac
3053   lt_cv_deplibs_check_method=pass_all
3054   ;;
3055
3056 # This must be Linux ELF.
3057 linux*)
3058   lt_cv_deplibs_check_method=pass_all
3059   ;;
3060
3061 netbsd*)
3062   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3063     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3064   else
3065     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3066   fi
3067   ;;
3068
3069 newos6*)
3070   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3071   lt_cv_file_magic_cmd=/usr/bin/file
3072   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3073   ;;
3074
3075 nto-qnx*)
3076   lt_cv_deplibs_check_method=unknown
3077   ;;
3078
3079 openbsd*)
3080   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3081     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3082   else
3083     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3084   fi
3085   ;;
3086
3087 osf3* | osf4* | osf5*)
3088   lt_cv_deplibs_check_method=pass_all
3089   ;;
3090
3091 sco3.2v5*)
3092   lt_cv_deplibs_check_method=pass_all
3093   ;;
3094
3095 solaris*)
3096   lt_cv_deplibs_check_method=pass_all
3097   ;;
3098
3099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3100   case $host_vendor in
3101   motorola)
3102     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]'
3103     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3104     ;;
3105   ncr)
3106     lt_cv_deplibs_check_method=pass_all
3107     ;;
3108   sequent)
3109     lt_cv_file_magic_cmd='/bin/file'
3110     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3111     ;;
3112   sni)
3113     lt_cv_file_magic_cmd='/bin/file'
3114     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3115     lt_cv_file_magic_test_file=/lib/libc.so
3116     ;;
3117   siemens)
3118     lt_cv_deplibs_check_method=pass_all
3119     ;;
3120   esac
3121   ;;
3122
3123 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3124   lt_cv_deplibs_check_method=pass_all
3125   ;;
3126 esac
3127
3128 fi
3129 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3130 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3131 file_magic_cmd=$lt_cv_file_magic_cmd
3132 deplibs_check_method=$lt_cv_deplibs_check_method
3133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3134
3135
3136
3137
3138 # If no C compiler was specified, use CC.
3139 LTCC=${LTCC-"$CC"}
3140
3141 # Allow CC to be a program name with arguments.
3142 compiler=$CC
3143
3144 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3145 if test "${enable_libtool_lock+set}" = set; then
3146   enableval="$enable_libtool_lock"
3147
3148 fi;
3149 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3150
3151 # Some flags need to be propagated to the compiler or linker for good
3152 # libtool support.
3153 case $host in
3154 ia64-*-hpux*)
3155   # Find out which ABI we are using.
3156   echo 'int i;' > conftest.$ac_ext
3157   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158   (eval $ac_compile) 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; then
3162     case `/usr/bin/file conftest.$ac_objext` in
3163     *ELF-32*)
3164       HPUX_IA64_MODE="32"
3165       ;;
3166     *ELF-64*)
3167       HPUX_IA64_MODE="64"
3168       ;;
3169     esac
3170   fi
3171   rm -rf conftest*
3172   ;;
3173 *-*-irix6*)
3174   # Find out which ABI we are using.
3175   echo '#line 3175 "configure"' > conftest.$ac_ext
3176   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3177   (eval $ac_compile) 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }; then
3181    if test "$lt_cv_prog_gnu_ld" = yes; then
3182     case `/usr/bin/file conftest.$ac_objext` in
3183     *32-bit*)
3184       LD="${LD-ld} -melf32bsmip"
3185       ;;
3186     *N32*)
3187       LD="${LD-ld} -melf32bmipn32"
3188       ;;
3189     *64-bit*)
3190       LD="${LD-ld} -melf64bmip"
3191       ;;
3192     esac
3193    else
3194     case `/usr/bin/file conftest.$ac_objext` in
3195     *32-bit*)
3196       LD="${LD-ld} -32"
3197       ;;
3198     *N32*)
3199       LD="${LD-ld} -n32"
3200       ;;
3201     *64-bit*)
3202       LD="${LD-ld} -64"
3203       ;;
3204     esac
3205    fi
3206   fi
3207   rm -rf conftest*
3208   ;;
3209
3210 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3211   # Find out which ABI we are using.
3212   echo 'int i;' > conftest.$ac_ext
3213   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214   (eval $ac_compile) 2>&5
3215   ac_status=$?
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }; then
3218     case "`/usr/bin/file conftest.o`" in
3219     *32-bit*)
3220       case $host in
3221         x86_64-*linux*)
3222           LD="${LD-ld} -m elf_i386"
3223           ;;
3224         ppc64-*linux*|powerpc64-*linux*)
3225           LD="${LD-ld} -m elf32ppclinux"
3226           ;;
3227         s390x-*linux*)
3228           LD="${LD-ld} -m elf_s390"
3229           ;;
3230         sparc64-*linux*)
3231           LD="${LD-ld} -m elf32_sparc"
3232           ;;
3233       esac
3234       ;;
3235     *64-bit*)
3236       case $host in
3237         x86_64-*linux*)
3238           LD="${LD-ld} -m elf_x86_64"
3239           ;;
3240         ppc*-*linux*|powerpc*-*linux*)
3241           LD="${LD-ld} -m elf64ppc"
3242           ;;
3243         s390*-*linux*)
3244           LD="${LD-ld} -m elf64_s390"
3245           ;;
3246         sparc*-*linux*)
3247           LD="${LD-ld} -m elf64_sparc"
3248           ;;
3249       esac
3250       ;;
3251     esac
3252   fi
3253   rm -rf conftest*
3254   ;;
3255
3256 *-*-sco3.2v5*)
3257   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3258   SAVE_CFLAGS="$CFLAGS"
3259   CFLAGS="$CFLAGS -belf"
3260   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3261 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3262 if test "${lt_cv_cc_needs_belf+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271      cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277
3278 int
3279 main ()
3280 {
3281
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 rm -f conftest.$ac_objext conftest$ac_exeext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3288   (eval $ac_link) 2>conftest.er1
3289   ac_status=$?
3290   grep -v '^ *+' conftest.er1 >conftest.err
3291   rm -f conftest.er1
3292   cat conftest.err >&5
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); } &&
3295          { ac_try='test -z "$ac_c_werror_flag"
3296                          || test ! -s conftest.err'
3297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298   (eval $ac_try) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; } &&
3302          { ac_try='test -s conftest$ac_exeext'
3303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304   (eval $ac_try) 2>&5
3305   ac_status=$?
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); }; }; then
3308   lt_cv_cc_needs_belf=yes
3309 else
3310   echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 lt_cv_cc_needs_belf=no
3314 fi
3315 rm -f conftest.err conftest.$ac_objext \
3316       conftest$ac_exeext conftest.$ac_ext
3317      ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322
3323 fi
3324 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3325 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3326   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3327     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3328     CFLAGS="$SAVE_CFLAGS"
3329   fi
3330   ;;
3331
3332 esac
3333
3334 need_locks="$enable_libtool_lock"
3335
3336
3337 ac_ext=c
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3343 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3344 # On Suns, sometimes $CPP names a directory.
3345 if test -n "$CPP" && test -d "$CPP"; then
3346   CPP=
3347 fi
3348 if test -z "$CPP"; then
3349   if test "${ac_cv_prog_CPP+set}" = set; then
3350   echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352       # Double quotes because CPP needs to be expanded
3353     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3354     do
3355       ac_preproc_ok=false
3356 for ac_c_preproc_warn_flag in '' yes
3357 do
3358   # Use a header file that comes with gcc, so configuring glibc
3359   # with a fresh cross-compiler works.
3360   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3361   # <limits.h> exists even on freestanding compilers.
3362   # On the NeXT, cc -E runs the code through the compiler's parser,
3363   # not just through cpp. "Syntax error" is here to catch this case.
3364   cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h.  */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h.  */
3370 #ifdef __STDC__
3371 # include <limits.h>
3372 #else
3373 # include <assert.h>
3374 #endif
3375                      Syntax error
3376 _ACEOF
3377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3379   ac_status=$?
3380   grep -v '^ *+' conftest.er1 >conftest.err
3381   rm -f conftest.er1
3382   cat conftest.err >&5
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } >/dev/null; then
3385   if test -s conftest.err; then
3386     ac_cpp_err=$ac_c_preproc_warn_flag
3387     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3388   else
3389     ac_cpp_err=
3390   fi
3391 else
3392   ac_cpp_err=yes
3393 fi
3394 if test -z "$ac_cpp_err"; then
3395   :
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400   # Broken: fails on valid input.
3401 continue
3402 fi
3403 rm -f conftest.err conftest.$ac_ext
3404
3405   # OK, works on sane cases.  Now check whether non-existent headers
3406   # can be detected and how.
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 #include <ac_nonexistent.h>
3414 _ACEOF
3415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3416   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3417   ac_status=$?
3418   grep -v '^ *+' conftest.er1 >conftest.err
3419   rm -f conftest.er1
3420   cat conftest.err >&5
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); } >/dev/null; then
3423   if test -s conftest.err; then
3424     ac_cpp_err=$ac_c_preproc_warn_flag
3425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426   else
3427     ac_cpp_err=
3428   fi
3429 else
3430   ac_cpp_err=yes
3431 fi
3432 if test -z "$ac_cpp_err"; then
3433   # Broken: success on invalid input.
3434 continue
3435 else
3436   echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439   # Passes both tests.
3440 ac_preproc_ok=:
3441 break
3442 fi
3443 rm -f conftest.err conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449   break
3450 fi
3451
3452     done
3453     ac_cv_prog_CPP=$CPP
3454
3455 fi
3456   CPP=$ac_cv_prog_CPP
3457 else
3458   ac_cv_prog_CPP=$CPP
3459 fi
3460 echo "$as_me:$LINENO: result: $CPP" >&5
3461 echo "${ECHO_T}$CPP" >&6
3462 ac_preproc_ok=false
3463 for ac_c_preproc_warn_flag in '' yes
3464 do
3465   # Use a header file that comes with gcc, so configuring glibc
3466   # with a fresh cross-compiler works.
3467   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3468   # <limits.h> exists even on freestanding compilers.
3469   # On the NeXT, cc -E runs the code through the compiler's parser,
3470   # not just through cpp. "Syntax error" is here to catch this case.
3471   cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477 #ifdef __STDC__
3478 # include <limits.h>
3479 #else
3480 # include <assert.h>
3481 #endif
3482                      Syntax error
3483 _ACEOF
3484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3486   ac_status=$?
3487   grep -v '^ *+' conftest.er1 >conftest.err
3488   rm -f conftest.er1
3489   cat conftest.err >&5
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); } >/dev/null; then
3492   if test -s conftest.err; then
3493     ac_cpp_err=$ac_c_preproc_warn_flag
3494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3495   else
3496     ac_cpp_err=
3497   fi
3498 else
3499   ac_cpp_err=yes
3500 fi
3501 if test -z "$ac_cpp_err"; then
3502   :
3503 else
3504   echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507   # Broken: fails on valid input.
3508 continue
3509 fi
3510 rm -f conftest.err conftest.$ac_ext
3511
3512   # OK, works on sane cases.  Now check whether non-existent headers
3513   # can be detected and how.
3514   cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h.  */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h.  */
3520 #include <ac_nonexistent.h>
3521 _ACEOF
3522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3523   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3524   ac_status=$?
3525   grep -v '^ *+' conftest.er1 >conftest.err
3526   rm -f conftest.er1
3527   cat conftest.err >&5
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); } >/dev/null; then
3530   if test -s conftest.err; then
3531     ac_cpp_err=$ac_c_preproc_warn_flag
3532     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3533   else
3534     ac_cpp_err=
3535   fi
3536 else
3537   ac_cpp_err=yes
3538 fi
3539 if test -z "$ac_cpp_err"; then
3540   # Broken: success on invalid input.
3541 continue
3542 else
3543   echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3545
3546   # Passes both tests.
3547 ac_preproc_ok=:
3548 break
3549 fi
3550 rm -f conftest.err conftest.$ac_ext
3551
3552 done
3553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3554 rm -f conftest.err conftest.$ac_ext
3555 if $ac_preproc_ok; then
3556   :
3557 else
3558   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3559 See \`config.log' for more details." >&5
3560 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3561 See \`config.log' for more details." >&2;}
3562    { (exit 1); exit 1; }; }
3563 fi
3564
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570
3571
3572 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3573 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3574 if test "${ac_cv_header_stdc+set}" = set; then
3575   echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577   cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h.  */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h.  */
3583 #include <stdlib.h>
3584 #include <stdarg.h>
3585 #include <string.h>
3586 #include <float.h>
3587
3588 int
3589 main ()
3590 {
3591
3592   ;
3593   return 0;
3594 }
3595 _ACEOF
3596 rm -f conftest.$ac_objext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598   (eval $ac_compile) 2>conftest.er1
3599   ac_status=$?
3600   grep -v '^ *+' conftest.er1 >conftest.err
3601   rm -f conftest.er1
3602   cat conftest.err >&5
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); } &&
3605          { ac_try='test -z "$ac_c_werror_flag"
3606                          || test ! -s conftest.err'
3607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608   (eval $ac_try) 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }; } &&
3612          { ac_try='test -s conftest.$ac_objext'
3613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614   (eval $ac_try) 2>&5
3615   ac_status=$?
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); }; }; then
3618   ac_cv_header_stdc=yes
3619 else
3620   echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623 ac_cv_header_stdc=no
3624 fi
3625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3626
3627 if test $ac_cv_header_stdc = yes; then
3628   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3629   cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635 #include <string.h>
3636
3637 _ACEOF
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639   $EGREP "memchr" >/dev/null 2>&1; then
3640   :
3641 else
3642   ac_cv_header_stdc=no
3643 fi
3644 rm -f conftest*
3645
3646 fi
3647
3648 if test $ac_cv_header_stdc = yes; then
3649   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3650   cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656 #include <stdlib.h>
3657
3658 _ACEOF
3659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3660   $EGREP "free" >/dev/null 2>&1; then
3661   :
3662 else
3663   ac_cv_header_stdc=no
3664 fi
3665 rm -f conftest*
3666
3667 fi
3668
3669 if test $ac_cv_header_stdc = yes; then
3670   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3671   if test "$cross_compiling" = yes; then
3672   :
3673 else
3674   cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h.  */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h.  */
3680 #include <ctype.h>
3681 #if ((' ' & 0x0FF) == 0x020)
3682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3684 #else
3685 # define ISLOWER(c) \
3686                    (('a' <= (c) && (c) <= 'i') \
3687                      || ('j' <= (c) && (c) <= 'r') \
3688                      || ('s' <= (c) && (c) <= 'z'))
3689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3690 #endif
3691
3692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3693 int
3694 main ()
3695 {
3696   int i;
3697   for (i = 0; i < 256; i++)
3698     if (XOR (islower (i), ISLOWER (i))
3699         || toupper (i) != TOUPPER (i))
3700       exit(2);
3701   exit (0);
3702 }
3703 _ACEOF
3704 rm -f conftest$ac_exeext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706   (eval $ac_link) 2>&5
3707   ac_status=$?
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711   (eval $ac_try) 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); }; }; then
3715   :
3716 else
3717   echo "$as_me: program exited with status $ac_status" >&5
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 ( exit $ac_status )
3722 ac_cv_header_stdc=no
3723 fi
3724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3725 fi
3726 fi
3727 fi
3728 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3729 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3730 if test $ac_cv_header_stdc = yes; then
3731
3732 cat >>confdefs.h <<\_ACEOF
3733 #define STDC_HEADERS 1
3734 _ACEOF
3735
3736 fi
3737
3738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3749                   inttypes.h stdint.h unistd.h
3750 do
3751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3752 echo "$as_me:$LINENO: checking for $ac_header" >&5
3753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h.  */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h.  */
3763 $ac_includes_default
3764
3765 #include <$ac_header>
3766 _ACEOF
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769   (eval $ac_compile) 2>conftest.er1
3770   ac_status=$?
3771   grep -v '^ *+' conftest.er1 >conftest.err
3772   rm -f conftest.er1
3773   cat conftest.err >&5
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); } &&
3776          { ac_try='test -z "$ac_c_werror_flag"
3777                          || test ! -s conftest.err'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; } &&
3783          { ac_try='test -s conftest.$ac_objext'
3784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785   (eval $ac_try) 2>&5
3786   ac_status=$?
3787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788   (exit $ac_status); }; }; then
3789   eval "$as_ac_Header=yes"
3790 else
3791   echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 eval "$as_ac_Header=no"
3795 fi
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3797 fi
3798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3801   cat >>confdefs.h <<_ACEOF
3802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3803 _ACEOF
3804
3805 fi
3806
3807 done
3808
3809
3810
3811 for ac_header in dlfcn.h
3812 do
3813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3815   echo "$as_me:$LINENO: checking for $ac_header" >&5
3816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3818   echo $ECHO_N "(cached) $ECHO_C" >&6
3819 fi
3820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3822 else
3823   # Is the header compilable?
3824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h.  */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h.  */
3832 $ac_includes_default
3833 #include <$ac_header>
3834 _ACEOF
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837   (eval $ac_compile) 2>conftest.er1
3838   ac_status=$?
3839   grep -v '^ *+' conftest.er1 >conftest.err
3840   rm -f conftest.er1
3841   cat conftest.err >&5
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); } &&
3844          { ac_try='test -z "$ac_c_werror_flag"
3845                          || test ! -s conftest.err'
3846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847   (eval $ac_try) 2>&5
3848   ac_status=$?
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); }; } &&
3851          { ac_try='test -s conftest.$ac_objext'
3852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853   (eval $ac_try) 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }; }; then
3857   ac_header_compiler=yes
3858 else
3859   echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862 ac_header_compiler=no
3863 fi
3864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3866 echo "${ECHO_T}$ac_header_compiler" >&6
3867
3868 # Is the header present?
3869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h.  */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h.  */
3877 #include <$ac_header>
3878 _ACEOF
3879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3880   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3881   ac_status=$?
3882   grep -v '^ *+' conftest.er1 >conftest.err
3883   rm -f conftest.er1
3884   cat conftest.err >&5
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); } >/dev/null; then
3887   if test -s conftest.err; then
3888     ac_cpp_err=$ac_c_preproc_warn_flag
3889     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3890   else
3891     ac_cpp_err=
3892   fi
3893 else
3894   ac_cpp_err=yes
3895 fi
3896 if test -z "$ac_cpp_err"; then
3897   ac_header_preproc=yes
3898 else
3899   echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902   ac_header_preproc=no
3903 fi
3904 rm -f conftest.err conftest.$ac_ext
3905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3906 echo "${ECHO_T}$ac_header_preproc" >&6
3907
3908 # So?  What about this header?
3909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3910   yes:no: )
3911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3915     ac_header_preproc=yes
3916     ;;
3917   no:yes:* )
3918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3930     (
3931       cat <<\_ASBOX
3932 ## ------------------------------ ##
3933 ## Report this to des@freebsd.org ##
3934 ## ------------------------------ ##
3935 _ASBOX
3936     ) |
3937       sed "s/^/$as_me: WARNING:     /" >&2
3938     ;;
3939 esac
3940 echo "$as_me:$LINENO: checking for $ac_header" >&5
3941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   eval "$as_ac_Header=\$ac_header_preproc"
3946 fi
3947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3949
3950 fi
3951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3952   cat >>confdefs.h <<_ACEOF
3953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3954 _ACEOF
3955
3956 fi
3957
3958 done
3959
3960 ac_ext=cc
3961 ac_cpp='$CXXCPP $CPPFLAGS'
3962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3965 if test -n "$ac_tool_prefix"; then
3966   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3967   do
3968     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3970 echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_prog_CXX+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   if test -n "$CXX"; then
3976   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983   for ac_exec_ext in '' $ac_executable_extensions; do
3984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987     break 2
3988   fi
3989 done
3990 done
3991
3992 fi
3993 fi
3994 CXX=$ac_cv_prog_CXX
3995 if test -n "$CXX"; then
3996   echo "$as_me:$LINENO: result: $CXX" >&5
3997 echo "${ECHO_T}$CXX" >&6
3998 else
3999   echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4001 fi
4002
4003     test -n "$CXX" && break
4004   done
4005 fi
4006 if test -z "$CXX"; then
4007   ac_ct_CXX=$CXX
4008   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4009 do
4010   # Extract the first word of "$ac_prog", so it can be a program name with args.
4011 set dummy $ac_prog; ac_word=$2
4012 echo "$as_me:$LINENO: checking for $ac_word" >&5
4013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4014 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4015   echo $ECHO_N "(cached) $ECHO_C" >&6
4016 else
4017   if test -n "$ac_ct_CXX"; then
4018   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4019 else
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH
4022 do
4023   IFS=$as_save_IFS
4024   test -z "$as_dir" && as_dir=.
4025   for ac_exec_ext in '' $ac_executable_extensions; do
4026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4027     ac_cv_prog_ac_ct_CXX="$ac_prog"
4028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4029     break 2
4030   fi
4031 done
4032 done
4033
4034 fi
4035 fi
4036 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4037 if test -n "$ac_ct_CXX"; then
4038   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4039 echo "${ECHO_T}$ac_ct_CXX" >&6
4040 else
4041   echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6
4043 fi
4044
4045   test -n "$ac_ct_CXX" && break
4046 done
4047 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4048
4049   CXX=$ac_ct_CXX
4050 fi
4051
4052
4053 # Provide some information about the compiler.
4054 echo "$as_me:$LINENO:" \
4055      "checking for C++ compiler version" >&5
4056 ac_compiler=`set X $ac_compile; echo $2`
4057 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4058   (eval $ac_compiler --version </dev/null >&5) 2>&5
4059   ac_status=$?
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); }
4062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4063   (eval $ac_compiler -v </dev/null >&5) 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }
4067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4068   (eval $ac_compiler -V </dev/null >&5) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }
4072
4073 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4074 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4075 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4076   echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078   cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h.  */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h.  */
4084
4085 int
4086 main ()
4087 {
4088 #ifndef __GNUC__
4089        choke me
4090 #endif
4091
4092   ;
4093   return 0;
4094 }
4095 _ACEOF
4096 rm -f conftest.$ac_objext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098   (eval $ac_compile) 2>conftest.er1
4099   ac_status=$?
4100   grep -v '^ *+' conftest.er1 >conftest.err
4101   rm -f conftest.er1
4102   cat conftest.err >&5
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); } &&
4105          { ac_try='test -z "$ac_cxx_werror_flag"
4106                          || test ! -s conftest.err'
4107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108   (eval $ac_try) 2>&5
4109   ac_status=$?
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); }; } &&
4112          { ac_try='test -s conftest.$ac_objext'
4113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114   (eval $ac_try) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; }; then
4118   ac_compiler_gnu=yes
4119 else
4120   echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4122
4123 ac_compiler_gnu=no
4124 fi
4125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4127
4128 fi
4129 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4130 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4131 GXX=`test $ac_compiler_gnu = yes && echo yes`
4132 ac_test_CXXFLAGS=${CXXFLAGS+set}
4133 ac_save_CXXFLAGS=$CXXFLAGS
4134 CXXFLAGS="-g"
4135 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4136 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4137 if test "${ac_cv_prog_cxx_g+set}" = set; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146
4147 int
4148 main ()
4149 {
4150
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157   (eval $ac_compile) 2>conftest.er1
4158   ac_status=$?
4159   grep -v '^ *+' conftest.er1 >conftest.err
4160   rm -f conftest.er1
4161   cat conftest.err >&5
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } &&
4164          { ac_try='test -z "$ac_cxx_werror_flag"
4165                          || test ! -s conftest.err'
4166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167   (eval $ac_try) 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; } &&
4171          { ac_try='test -s conftest.$ac_objext'
4172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173   (eval $ac_try) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; }; then
4177   ac_cv_prog_cxx_g=yes
4178 else
4179   echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 ac_cv_prog_cxx_g=no
4183 fi
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4185 fi
4186 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4187 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4188 if test "$ac_test_CXXFLAGS" = set; then
4189   CXXFLAGS=$ac_save_CXXFLAGS
4190 elif test $ac_cv_prog_cxx_g = yes; then
4191   if test "$GXX" = yes; then
4192     CXXFLAGS="-g -O2"
4193   else
4194     CXXFLAGS="-g"
4195   fi
4196 else
4197   if test "$GXX" = yes; then
4198     CXXFLAGS="-O2"
4199   else
4200     CXXFLAGS=
4201   fi
4202 fi
4203 for ac_declaration in \
4204    '' \
4205    'extern "C" void std::exit (int) throw (); using std::exit;' \
4206    'extern "C" void std::exit (int); using std::exit;' \
4207    'extern "C" void exit (int) throw ();' \
4208    'extern "C" void exit (int);' \
4209    'void exit (int);'
4210 do
4211   cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217 $ac_declaration
4218 #include <stdlib.h>
4219 int
4220 main ()
4221 {
4222 exit (42);
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229   (eval $ac_compile) 2>conftest.er1
4230   ac_status=$?
4231   grep -v '^ *+' conftest.er1 >conftest.err
4232   rm -f conftest.er1
4233   cat conftest.err >&5
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } &&
4236          { ac_try='test -z "$ac_cxx_werror_flag"
4237                          || test ! -s conftest.err'
4238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239   (eval $ac_try) 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); }; } &&
4243          { ac_try='test -s conftest.$ac_objext'
4244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245   (eval $ac_try) 2>&5
4246   ac_status=$?
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); }; }; then
4249   :
4250 else
4251   echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 continue
4255 fi
4256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4257   cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h.  */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h.  */
4263 $ac_declaration
4264 int
4265 main ()
4266 {
4267 exit (42);
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext
4273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4274   (eval $ac_compile) 2>conftest.er1
4275   ac_status=$?
4276   grep -v '^ *+' conftest.er1 >conftest.err
4277   rm -f conftest.er1
4278   cat conftest.err >&5
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); } &&
4281          { ac_try='test -z "$ac_cxx_werror_flag"
4282                          || test ! -s conftest.err'
4283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284   (eval $ac_try) 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; } &&
4288          { ac_try='test -s conftest.$ac_objext'
4289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290   (eval $ac_try) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; }; then
4294   break
4295 else
4296   echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299 fi
4300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4301 done
4302 rm -f conftest*
4303 if test -n "$ac_declaration"; then
4304   echo '#ifdef __cplusplus' >>confdefs.h
4305   echo $ac_declaration      >>confdefs.h
4306   echo '#endif'             >>confdefs.h
4307 fi
4308
4309 ac_ext=cc
4310 ac_cpp='$CXXCPP $CPPFLAGS'
4311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4314
4315
4316
4317 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4318     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4319     (test "X$CXX" != "Xg++"))) ; then
4320   ac_ext=cc
4321 ac_cpp='$CXXCPP $CPPFLAGS'
4322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4325 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4326 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4327 if test -z "$CXXCPP"; then
4328   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331       # Double quotes because CXXCPP needs to be expanded
4332     for CXXCPP in "$CXX -E" "/lib/cpp"
4333     do
4334       ac_preproc_ok=false
4335 for ac_cxx_preproc_warn_flag in '' yes
4336 do
4337   # Use a header file that comes with gcc, so configuring glibc
4338   # with a fresh cross-compiler works.
4339   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340   # <limits.h> exists even on freestanding compilers.
4341   # On the NeXT, cc -E runs the code through the compiler's parser,
4342   # not just through cpp. "Syntax error" is here to catch this case.
4343   cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h.  */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h.  */
4349 #ifdef __STDC__
4350 # include <limits.h>
4351 #else
4352 # include <assert.h>
4353 #endif
4354                      Syntax error
4355 _ACEOF
4356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4358   ac_status=$?
4359   grep -v '^ *+' conftest.er1 >conftest.err
4360   rm -f conftest.er1
4361   cat conftest.err >&5
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); } >/dev/null; then
4364   if test -s conftest.err; then
4365     ac_cpp_err=$ac_cxx_preproc_warn_flag
4366     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4367   else
4368     ac_cpp_err=
4369   fi
4370 else
4371   ac_cpp_err=yes
4372 fi
4373 if test -z "$ac_cpp_err"; then
4374   :
4375 else
4376   echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379   # Broken: fails on valid input.
4380 continue
4381 fi
4382 rm -f conftest.err conftest.$ac_ext
4383
4384   # OK, works on sane cases.  Now check whether non-existent headers
4385   # can be detected and how.
4386   cat >conftest.$ac_ext <<_ACEOF
4387 /* confdefs.h.  */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h.  */
4392 #include <ac_nonexistent.h>
4393 _ACEOF
4394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4396   ac_status=$?
4397   grep -v '^ *+' conftest.er1 >conftest.err
4398   rm -f conftest.er1
4399   cat conftest.err >&5
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); } >/dev/null; then
4402   if test -s conftest.err; then
4403     ac_cpp_err=$ac_cxx_preproc_warn_flag
4404     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4405   else
4406     ac_cpp_err=
4407   fi
4408 else
4409   ac_cpp_err=yes
4410 fi
4411 if test -z "$ac_cpp_err"; then
4412   # Broken: success on invalid input.
4413 continue
4414 else
4415   echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4417
4418   # Passes both tests.
4419 ac_preproc_ok=:
4420 break
4421 fi
4422 rm -f conftest.err conftest.$ac_ext
4423
4424 done
4425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4426 rm -f conftest.err conftest.$ac_ext
4427 if $ac_preproc_ok; then
4428   break
4429 fi
4430
4431     done
4432     ac_cv_prog_CXXCPP=$CXXCPP
4433
4434 fi
4435   CXXCPP=$ac_cv_prog_CXXCPP
4436 else
4437   ac_cv_prog_CXXCPP=$CXXCPP
4438 fi
4439 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4440 echo "${ECHO_T}$CXXCPP" >&6
4441 ac_preproc_ok=false
4442 for ac_cxx_preproc_warn_flag in '' yes
4443 do
4444   # Use a header file that comes with gcc, so configuring glibc
4445   # with a fresh cross-compiler works.
4446   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4447   # <limits.h> exists even on freestanding compilers.
4448   # On the NeXT, cc -E runs the code through the compiler's parser,
4449   # not just through cpp. "Syntax error" is here to catch this case.
4450   cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 #ifdef __STDC__
4457 # include <limits.h>
4458 #else
4459 # include <assert.h>
4460 #endif
4461                      Syntax error
4462 _ACEOF
4463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4465   ac_status=$?
4466   grep -v '^ *+' conftest.er1 >conftest.err
4467   rm -f conftest.er1
4468   cat conftest.err >&5
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); } >/dev/null; then
4471   if test -s conftest.err; then
4472     ac_cpp_err=$ac_cxx_preproc_warn_flag
4473     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4474   else
4475     ac_cpp_err=
4476   fi
4477 else
4478   ac_cpp_err=yes
4479 fi
4480 if test -z "$ac_cpp_err"; then
4481   :
4482 else
4483   echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4485
4486   # Broken: fails on valid input.
4487 continue
4488 fi
4489 rm -f conftest.err conftest.$ac_ext
4490
4491   # OK, works on sane cases.  Now check whether non-existent headers
4492   # can be detected and how.
4493   cat >conftest.$ac_ext <<_ACEOF
4494 /* confdefs.h.  */
4495 _ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h.  */
4499 #include <ac_nonexistent.h>
4500 _ACEOF
4501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4503   ac_status=$?
4504   grep -v '^ *+' conftest.er1 >conftest.err
4505   rm -f conftest.er1
4506   cat conftest.err >&5
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); } >/dev/null; then
4509   if test -s conftest.err; then
4510     ac_cpp_err=$ac_cxx_preproc_warn_flag
4511     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4512   else
4513     ac_cpp_err=
4514   fi
4515 else
4516   ac_cpp_err=yes
4517 fi
4518 if test -z "$ac_cpp_err"; then
4519   # Broken: success on invalid input.
4520 continue
4521 else
4522   echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4524
4525   # Passes both tests.
4526 ac_preproc_ok=:
4527 break
4528 fi
4529 rm -f conftest.err conftest.$ac_ext
4530
4531 done
4532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4533 rm -f conftest.err conftest.$ac_ext
4534 if $ac_preproc_ok; then
4535   :
4536 else
4537   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4538 See \`config.log' for more details." >&5
4539 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4540 See \`config.log' for more details." >&2;}
4541    { (exit 1); exit 1; }; }
4542 fi
4543
4544 ac_ext=cc
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4549
4550 fi
4551
4552
4553 ac_ext=f
4554 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4555 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4557 if test -n "$ac_tool_prefix"; then
4558   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4559   do
4560     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4562 echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4564 if test "${ac_cv_prog_F77+set}" = set; then
4565   echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567   if test -n "$F77"; then
4568   ac_cv_prog_F77="$F77" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573   IFS=$as_save_IFS
4574   test -z "$as_dir" && as_dir=.
4575   for ac_exec_ext in '' $ac_executable_extensions; do
4576   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579     break 2
4580   fi
4581 done
4582 done
4583
4584 fi
4585 fi
4586 F77=$ac_cv_prog_F77
4587 if test -n "$F77"; then
4588   echo "$as_me:$LINENO: result: $F77" >&5
4589 echo "${ECHO_T}$F77" >&6
4590 else
4591   echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4593 fi
4594
4595     test -n "$F77" && break
4596   done
4597 fi
4598 if test -z "$F77"; then
4599   ac_ct_F77=$F77
4600   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4601 do
4602   # Extract the first word of "$ac_prog", so it can be a program name with args.
4603 set dummy $ac_prog; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609   if test -n "$ac_ct_F77"; then
4610   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617   for ac_exec_ext in '' $ac_executable_extensions; do
4618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619     ac_cv_prog_ac_ct_F77="$ac_prog"
4620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624 done
4625
4626 fi
4627 fi
4628 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4629 if test -n "$ac_ct_F77"; then
4630   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4631 echo "${ECHO_T}$ac_ct_F77" >&6
4632 else
4633   echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4635 fi
4636
4637   test -n "$ac_ct_F77" && break
4638 done
4639
4640   F77=$ac_ct_F77
4641 fi
4642
4643
4644 # Provide some information about the compiler.
4645 echo "$as_me:4645:" \
4646      "checking for Fortran 77 compiler version" >&5
4647 ac_compiler=`set X $ac_compile; echo $2`
4648 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4649   (eval $ac_compiler --version </dev/null >&5) 2>&5
4650   ac_status=$?
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); }
4653 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4654   (eval $ac_compiler -v </dev/null >&5) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }
4658 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4659   (eval $ac_compiler -V </dev/null >&5) 2>&5
4660   ac_status=$?
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); }
4663 rm -f a.out
4664
4665 # If we don't use `.F' as extension, the preprocessor is not run on the
4666 # input file.  (Note that this only needs to work for GNU compilers.)
4667 ac_save_ext=$ac_ext
4668 ac_ext=F
4669 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4670 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4671 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4672   echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674   cat >conftest.$ac_ext <<_ACEOF
4675       program main
4676 #ifndef __GNUC__
4677        choke me
4678 #endif
4679
4680       end
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_f77_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   ac_compiler_gnu=yes
4705 else
4706   echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4708
4709 ac_compiler_gnu=no
4710 fi
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4713
4714 fi
4715 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4716 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4717 ac_ext=$ac_save_ext
4718 ac_test_FFLAGS=${FFLAGS+set}
4719 ac_save_FFLAGS=$FFLAGS
4720 FFLAGS=
4721 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4722 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4723 if test "${ac_cv_prog_f77_g+set}" = set; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   FFLAGS=-g
4727 cat >conftest.$ac_ext <<_ACEOF
4728       program main
4729
4730       end
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734   (eval $ac_compile) 2>conftest.er1
4735   ac_status=$?
4736   grep -v '^ *+' conftest.er1 >conftest.err
4737   rm -f conftest.er1
4738   cat conftest.err >&5
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); } &&
4741          { ac_try='test -z "$ac_f77_werror_flag"
4742                          || test ! -s conftest.err'
4743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744   (eval $ac_try) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; } &&
4748          { ac_try='test -s conftest.$ac_objext'
4749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750   (eval $ac_try) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; }; then
4754   ac_cv_prog_f77_g=yes
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759 ac_cv_prog_f77_g=no
4760 fi
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762
4763 fi
4764 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4765 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4766 if test "$ac_test_FFLAGS" = set; then
4767   FFLAGS=$ac_save_FFLAGS
4768 elif test $ac_cv_prog_f77_g = yes; then
4769   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4770     FFLAGS="-g -O2"
4771   else
4772     FFLAGS="-g"
4773   fi
4774 else
4775   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4776     FFLAGS="-O2"
4777   else
4778     FFLAGS=
4779   fi
4780 fi
4781
4782 G77=`test $ac_compiler_gnu = yes && echo yes`
4783 ac_ext=c
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788
4789
4790
4791 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4792
4793 # find the maximum length of command line arguments
4794 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4795 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4796 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4797   echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799     i=0
4800   teststring="ABCD"
4801
4802   case $build_os in
4803   msdosdjgpp*)
4804     # On DJGPP, this test can blow up pretty badly due to problems in libc
4805     # (any single argument exceeding 2000 bytes causes a buffer overrun
4806     # during glob expansion).  Even if it were fixed, the result of this
4807     # check would be larger than it should be.
4808     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4809     ;;
4810
4811   gnu*)
4812     # Under GNU Hurd, this test is not required because there is
4813     # no limit to the length of command line arguments.
4814     # Libtool will interpret -1 as no limit whatsoever
4815     lt_cv_sys_max_cmd_len=-1;
4816     ;;
4817
4818   cygwin* | mingw*)
4819     # On Win9x/ME, this test blows up -- it succeeds, but takes
4820     # about 5 minutes as the teststring grows exponentially.
4821     # Worse, since 9x/ME are not pre-emptively multitasking,
4822     # you end up with a "frozen" computer, even though with patience
4823     # the test eventually succeeds (with a max line length of 256k).
4824     # Instead, let's just punt: use the minimum linelength reported by
4825     # all of the supported platforms: 8192 (on NT/2K/XP).
4826     lt_cv_sys_max_cmd_len=8192;
4827     ;;
4828
4829   amigaos*)
4830     # On AmigaOS with pdksh, this test takes hours, literally.
4831     # So we just punt and use a minimum line length of 8192.
4832     lt_cv_sys_max_cmd_len=8192;
4833     ;;
4834
4835   netbsd* | freebsd* | openbsd* | darwin* )
4836     # This has been around since 386BSD, at least.  Likely further.
4837     if test -x /sbin/sysctl; then
4838       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4839     elif test -x /usr/sbin/sysctl; then
4840       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4841     else
4842       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4843     fi
4844     # And add a safety zone
4845     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4846     ;;
4847
4848  *)
4849     # If test is not a shell built-in, we'll probably end up computing a
4850     # maximum length that is only half of the actual maximum length, but
4851     # we can't tell.
4852     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4853     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4854                = "XX$teststring") >/dev/null 2>&1 &&
4855             new_result=`expr "X$teststring" : ".*" 2>&1` &&
4856             lt_cv_sys_max_cmd_len=$new_result &&
4857             test $i != 17 # 1/2 MB should be enough
4858     do
4859       i=`expr $i + 1`
4860       teststring=$teststring$teststring
4861     done
4862     teststring=
4863     # Add a significant safety factor because C++ compilers can tack on massive
4864     # amounts of additional arguments before passing them to the linker.
4865     # It appears as though 1/2 is a usable value.
4866     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4867     ;;
4868   esac
4869
4870 fi
4871
4872 if test -n $lt_cv_sys_max_cmd_len ; then
4873   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4874 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4875 else
4876   echo "$as_me:$LINENO: result: none" >&5
4877 echo "${ECHO_T}none" >&6
4878 fi
4879
4880
4881
4882
4883 # Check for command to grab the raw symbol name followed by C symbol from nm.
4884 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4885 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4886 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889
4890 # These are sane defaults that work on at least a few old systems.
4891 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4892
4893 # Character class describing NM global symbol codes.
4894 symcode='[BCDEGRST]'
4895
4896 # Regexp to match symbols that can be accessed directly from C.
4897 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4898
4899 # Transform the above into a raw symbol and a C symbol.
4900 symxfrm='\1 \2\3 \3'
4901
4902 # Transform an extracted symbol line into a proper C declaration
4903 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4904
4905 # Transform an extracted symbol line into symbol name and symbol address
4906 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'"
4907
4908 # Define system-specific variables.
4909 case $host_os in
4910 aix*)
4911   symcode='[BCDT]'
4912   ;;
4913 cygwin* | mingw* | pw32*)
4914   symcode='[ABCDGISTW]'
4915   ;;
4916 hpux*) # Its linker distinguishes data from code symbols
4917   if test "$host_cpu" = ia64; then
4918     symcode='[ABCDEGRST]'
4919   fi
4920   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4921   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'"
4922   ;;
4923 linux*)
4924   if test "$host_cpu" = ia64; then
4925     symcode='[ABCDGIRSTW]'
4926     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4927     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'"
4928   fi
4929   ;;
4930 irix* | nonstopux*)
4931   symcode='[BCDEGRST]'
4932   ;;
4933 osf*)
4934   symcode='[BCDEGQRST]'
4935   ;;
4936 solaris* | sysv5*)
4937   symcode='[BDRT]'
4938   ;;
4939 sysv4)
4940   symcode='[DFNSTU]'
4941   ;;
4942 esac
4943
4944 # Handle CRLF in mingw tool chain
4945 opt_cr=
4946 case $build_os in
4947 mingw*)
4948   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4949   ;;
4950 esac
4951
4952 # If we're using GNU nm, then use its standard symbol codes.
4953 case `$NM -V 2>&1` in
4954 *GNU* | *'with BFD'*)
4955   symcode='[ABCDGIRSTW]' ;;
4956 esac
4957
4958 # Try without a prefix undercore, then with it.
4959 for ac_symprfx in "" "_"; do
4960
4961   # Write the raw and C identifiers.
4962   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4963
4964   # Check to see that the pipe works correctly.
4965   pipe_works=no
4966
4967   rm -f conftest*
4968   cat > conftest.$ac_ext <<EOF
4969 #ifdef __cplusplus
4970 extern "C" {
4971 #endif
4972 char nm_test_var;
4973 void nm_test_func(){}
4974 #ifdef __cplusplus
4975 }
4976 #endif
4977 int main(){nm_test_var='a';nm_test_func();return(0);}
4978 EOF
4979
4980   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981   (eval $ac_compile) 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); }; then
4985     # Now try to grab the symbols.
4986     nlist=conftest.nm
4987     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4988   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); } && test -s "$nlist"; then
4992       # Try sorting and uniquifying the output.
4993       if sort "$nlist" | uniq > "$nlist"T; then
4994         mv -f "$nlist"T "$nlist"
4995       else
4996         rm -f "$nlist"T
4997       fi
4998
4999       # Make sure that we snagged all the symbols we need.
5000       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5001         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5002           cat <<EOF > conftest.$ac_ext
5003 #ifdef __cplusplus
5004 extern "C" {
5005 #endif
5006
5007 EOF
5008           # Now generate the symbol file.
5009           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5010
5011           cat <<EOF >> conftest.$ac_ext
5012 #if defined (__STDC__) && __STDC__
5013 # define lt_ptr_t void *
5014 #else
5015 # define lt_ptr_t char *
5016 # define const
5017 #endif
5018
5019 /* The mapping between symbol names and symbols. */
5020 const struct {
5021   const char *name;
5022   lt_ptr_t address;
5023 }
5024 lt_preloaded_symbols[] =
5025 {
5026 EOF
5027           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5028           cat <<\EOF >> conftest.$ac_ext
5029   {0, (lt_ptr_t) 0}
5030 };
5031
5032 #ifdef __cplusplus
5033 }
5034 #endif
5035 EOF
5036           # Now try linking the two files.
5037           mv conftest.$ac_objext conftstm.$ac_objext
5038           lt_save_LIBS="$LIBS"
5039           lt_save_CFLAGS="$CFLAGS"
5040           LIBS="conftstm.$ac_objext"
5041           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5042           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5043   (eval $ac_link) 2>&5
5044   ac_status=$?
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5047             pipe_works=yes
5048           fi
5049           LIBS="$lt_save_LIBS"
5050           CFLAGS="$lt_save_CFLAGS"
5051         else
5052           echo "cannot find nm_test_func in $nlist" >&5
5053         fi
5054       else
5055         echo "cannot find nm_test_var in $nlist" >&5
5056       fi
5057     else
5058       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5059     fi
5060   else
5061     echo "$progname: failed program was:" >&5
5062     cat conftest.$ac_ext >&5
5063   fi
5064   rm -f conftest* conftst*
5065
5066   # Do not use the global_symbol_pipe unless it works.
5067   if test "$pipe_works" = yes; then
5068     break
5069   else
5070     lt_cv_sys_global_symbol_pipe=
5071   fi
5072 done
5073
5074 fi
5075
5076 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5077   lt_cv_sys_global_symbol_to_cdecl=
5078 fi
5079 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5080   echo "$as_me:$LINENO: result: failed" >&5
5081 echo "${ECHO_T}failed" >&6
5082 else
5083   echo "$as_me:$LINENO: result: ok" >&5
5084 echo "${ECHO_T}ok" >&6
5085 fi
5086
5087 echo "$as_me:$LINENO: checking for objdir" >&5
5088 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5089 if test "${lt_cv_objdir+set}" = set; then
5090   echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092   rm -f .libs 2>/dev/null
5093 mkdir .libs 2>/dev/null
5094 if test -d .libs; then
5095   lt_cv_objdir=.libs
5096 else
5097   # MS-DOS does not allow filenames that begin with a dot.
5098   lt_cv_objdir=_libs
5099 fi
5100 rmdir .libs 2>/dev/null
5101 fi
5102 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5103 echo "${ECHO_T}$lt_cv_objdir" >&6
5104 objdir=$lt_cv_objdir
5105
5106
5107
5108
5109
5110 case $host_os in
5111 aix3*)
5112   # AIX sometimes has problems with the GCC collect2 program.  For some
5113   # reason, if we set the COLLECT_NAMES environment variable, the problems
5114   # vanish in a puff of smoke.
5115   if test "X${COLLECT_NAMES+set}" != Xset; then
5116     COLLECT_NAMES=
5117     export COLLECT_NAMES
5118   fi
5119   ;;
5120 esac
5121
5122 # Sed substitution that helps us do robust quoting.  It backslashifies
5123 # metacharacters that are still active within double-quoted strings.
5124 Xsed='sed -e s/^X//'
5125 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5126
5127 # Same as above, but do not quote variable references.
5128 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5129
5130 # Sed substitution to delay expansion of an escaped shell variable in a
5131 # double_quote_subst'ed string.
5132 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5133
5134 # Sed substitution to avoid accidental globbing in evaled expressions
5135 no_glob_subst='s/\*/\\\*/g'
5136
5137 # Constants:
5138 rm="rm -f"
5139
5140 # Global variables:
5141 default_ofile=libtool
5142 can_build_shared=yes
5143
5144 # All known linkers require a `.a' archive for static linking (except M$VC,
5145 # which needs '.lib').
5146 libext=a
5147 ltmain="$ac_aux_dir/ltmain.sh"
5148 ofile="$default_ofile"
5149 with_gnu_ld="$lt_cv_prog_gnu_ld"
5150
5151 if test -n "$ac_tool_prefix"; then
5152   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5153 set dummy ${ac_tool_prefix}ar; ac_word=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_prog_AR+set}" = set; then
5157   echo $ECHO_N "(cached) $ECHO_C" >&6
5158 else
5159   if test -n "$AR"; then
5160   ac_cv_prog_AR="$AR" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165   IFS=$as_save_IFS
5166   test -z "$as_dir" && as_dir=.
5167   for ac_exec_ext in '' $ac_executable_extensions; do
5168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169     ac_cv_prog_AR="${ac_tool_prefix}ar"
5170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174 done
5175
5176 fi
5177 fi
5178 AR=$ac_cv_prog_AR
5179 if test -n "$AR"; then
5180   echo "$as_me:$LINENO: result: $AR" >&5
5181 echo "${ECHO_T}$AR" >&6
5182 else
5183   echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6
5185 fi
5186
5187 fi
5188 if test -z "$ac_cv_prog_AR"; then
5189   ac_ct_AR=$AR
5190   # Extract the first word of "ar", so it can be a program name with args.
5191 set dummy ar; ac_word=$2
5192 echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   if test -n "$ac_ct_AR"; then
5198   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5202 do
5203   IFS=$as_save_IFS
5204   test -z "$as_dir" && as_dir=.
5205   for ac_exec_ext in '' $ac_executable_extensions; do
5206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207     ac_cv_prog_ac_ct_AR="ar"
5208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209     break 2
5210   fi
5211 done
5212 done
5213
5214   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5215 fi
5216 fi
5217 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5218 if test -n "$ac_ct_AR"; then
5219   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5220 echo "${ECHO_T}$ac_ct_AR" >&6
5221 else
5222   echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6
5224 fi
5225
5226   AR=$ac_ct_AR
5227 else
5228   AR="$ac_cv_prog_AR"
5229 fi
5230
5231 if test -n "$ac_tool_prefix"; then
5232   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5233 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5234 echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236 if test "${ac_cv_prog_RANLIB+set}" = set; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   if test -n "$RANLIB"; then
5240   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5241 else
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245   IFS=$as_save_IFS
5246   test -z "$as_dir" && as_dir=.
5247   for ac_exec_ext in '' $ac_executable_extensions; do
5248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251     break 2
5252   fi
5253 done
5254 done
5255
5256 fi
5257 fi
5258 RANLIB=$ac_cv_prog_RANLIB
5259 if test -n "$RANLIB"; then
5260   echo "$as_me:$LINENO: result: $RANLIB" >&5
5261 echo "${ECHO_T}$RANLIB" >&6
5262 else
5263   echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6
5265 fi
5266
5267 fi
5268 if test -z "$ac_cv_prog_RANLIB"; then
5269   ac_ct_RANLIB=$RANLIB
5270   # Extract the first word of "ranlib", so it can be a program name with args.
5271 set dummy ranlib; ac_word=$2
5272 echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   if test -n "$ac_ct_RANLIB"; then
5278   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283   IFS=$as_save_IFS
5284   test -z "$as_dir" && as_dir=.
5285   for ac_exec_ext in '' $ac_executable_extensions; do
5286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287     ac_cv_prog_ac_ct_RANLIB="ranlib"
5288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289     break 2
5290   fi
5291 done
5292 done
5293
5294   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5295 fi
5296 fi
5297 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5298 if test -n "$ac_ct_RANLIB"; then
5299   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5300 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5301 else
5302   echo "$as_me:$LINENO: result: no" >&5
5303 echo "${ECHO_T}no" >&6
5304 fi
5305
5306   RANLIB=$ac_ct_RANLIB
5307 else
5308   RANLIB="$ac_cv_prog_RANLIB"
5309 fi
5310
5311 if test -n "$ac_tool_prefix"; then
5312   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5313 set dummy ${ac_tool_prefix}strip; ac_word=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_prog_STRIP+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   if test -n "$STRIP"; then
5320   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325   IFS=$as_save_IFS
5326   test -z "$as_dir" && as_dir=.
5327   for ac_exec_ext in '' $ac_executable_extensions; do
5328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5331     break 2
5332   fi
5333 done
5334 done
5335
5336 fi
5337 fi
5338 STRIP=$ac_cv_prog_STRIP
5339 if test -n "$STRIP"; then
5340   echo "$as_me:$LINENO: result: $STRIP" >&5
5341 echo "${ECHO_T}$STRIP" >&6
5342 else
5343   echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6
5345 fi
5346
5347 fi
5348 if test -z "$ac_cv_prog_STRIP"; then
5349   ac_ct_STRIP=$STRIP
5350   # Extract the first word of "strip", so it can be a program name with args.
5351 set dummy strip; ac_word=$2
5352 echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5355   echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357   if test -n "$ac_ct_STRIP"; then
5358   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365   for ac_exec_ext in '' $ac_executable_extensions; do
5366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367     ac_cv_prog_ac_ct_STRIP="strip"
5368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372 done
5373
5374   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5375 fi
5376 fi
5377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5378 if test -n "$ac_ct_STRIP"; then
5379   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5380 echo "${ECHO_T}$ac_ct_STRIP" >&6
5381 else
5382   echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6
5384 fi
5385
5386   STRIP=$ac_ct_STRIP
5387 else
5388   STRIP="$ac_cv_prog_STRIP"
5389 fi
5390
5391
5392 old_CC="$CC"
5393 old_CFLAGS="$CFLAGS"
5394
5395 # Set sane defaults for various variables
5396 test -z "$AR" && AR=ar
5397 test -z "$AR_FLAGS" && AR_FLAGS=cru
5398 test -z "$AS" && AS=as
5399 test -z "$CC" && CC=cc
5400 test -z "$LTCC" && LTCC=$CC
5401 test -z "$DLLTOOL" && DLLTOOL=dlltool
5402 test -z "$LD" && LD=ld
5403 test -z "$LN_S" && LN_S="ln -s"
5404 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5405 test -z "$NM" && NM=nm
5406 test -z "$SED" && SED=sed
5407 test -z "$OBJDUMP" && OBJDUMP=objdump
5408 test -z "$RANLIB" && RANLIB=:
5409 test -z "$STRIP" && STRIP=:
5410 test -z "$ac_objext" && ac_objext=o
5411
5412 # Determine commands to create old-style static archives.
5413 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5414 old_postinstall_cmds='chmod 644 $oldlib'
5415 old_postuninstall_cmds=
5416
5417 if test -n "$RANLIB"; then
5418   case $host_os in
5419   openbsd*)
5420     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5421     ;;
5422   *)
5423     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5424     ;;
5425   esac
5426   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5427 fi
5428
5429 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5430
5431 # Only perform the check for file, if the check method requires it
5432 case $deplibs_check_method in
5433 file_magic*)
5434   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5435     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5436 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5437 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5438   echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5440   case $MAGIC_CMD in
5441 [\\/*] |  ?:[\\/]*)
5442   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5443   ;;
5444 *)
5445   lt_save_MAGIC_CMD="$MAGIC_CMD"
5446   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5447   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5448   for ac_dir in $ac_dummy; do
5449     IFS="$lt_save_ifs"
5450     test -z "$ac_dir" && ac_dir=.
5451     if test -f $ac_dir/${ac_tool_prefix}file; then
5452       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5453       if test -n "$file_magic_test_file"; then
5454         case $deplibs_check_method in
5455         "file_magic "*)
5456           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5457           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5458           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5459             $EGREP "$file_magic_regex" > /dev/null; then
5460             :
5461           else
5462             cat <<EOF 1>&2
5463
5464 *** Warning: the command libtool uses to detect shared libraries,
5465 *** $file_magic_cmd, produces output that libtool cannot recognize.
5466 *** The result is that libtool may fail to recognize shared libraries
5467 *** as such.  This will affect the creation of libtool libraries that
5468 *** depend on shared libraries, but programs linked with such libtool
5469 *** libraries will work regardless of this problem.  Nevertheless, you
5470 *** may want to report the problem to your system manager and/or to
5471 *** bug-libtool@gnu.org
5472
5473 EOF
5474           fi ;;
5475         esac
5476       fi
5477       break
5478     fi
5479   done
5480   IFS="$lt_save_ifs"
5481   MAGIC_CMD="$lt_save_MAGIC_CMD"
5482   ;;
5483 esac
5484 fi
5485
5486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5487 if test -n "$MAGIC_CMD"; then
5488   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5489 echo "${ECHO_T}$MAGIC_CMD" >&6
5490 else
5491   echo "$as_me:$LINENO: result: no" >&5
5492 echo "${ECHO_T}no" >&6
5493 fi
5494
5495 if test -z "$lt_cv_path_MAGIC_CMD"; then
5496   if test -n "$ac_tool_prefix"; then
5497     echo "$as_me:$LINENO: checking for file" >&5
5498 echo $ECHO_N "checking for file... $ECHO_C" >&6
5499 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502   case $MAGIC_CMD in
5503 [\\/*] |  ?:[\\/]*)
5504   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5505   ;;
5506 *)
5507   lt_save_MAGIC_CMD="$MAGIC_CMD"
5508   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5509   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5510   for ac_dir in $ac_dummy; do
5511     IFS="$lt_save_ifs"
5512     test -z "$ac_dir" && ac_dir=.
5513     if test -f $ac_dir/file; then
5514       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5515       if test -n "$file_magic_test_file"; then
5516         case $deplibs_check_method in
5517         "file_magic "*)
5518           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5519           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5520           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5521             $EGREP "$file_magic_regex" > /dev/null; then
5522             :
5523           else
5524             cat <<EOF 1>&2
5525
5526 *** Warning: the command libtool uses to detect shared libraries,
5527 *** $file_magic_cmd, produces output that libtool cannot recognize.
5528 *** The result is that libtool may fail to recognize shared libraries
5529 *** as such.  This will affect the creation of libtool libraries that
5530 *** depend on shared libraries, but programs linked with such libtool
5531 *** libraries will work regardless of this problem.  Nevertheless, you
5532 *** may want to report the problem to your system manager and/or to
5533 *** bug-libtool@gnu.org
5534
5535 EOF
5536           fi ;;
5537         esac
5538       fi
5539       break
5540     fi
5541   done
5542   IFS="$lt_save_ifs"
5543   MAGIC_CMD="$lt_save_MAGIC_CMD"
5544   ;;
5545 esac
5546 fi
5547
5548 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5549 if test -n "$MAGIC_CMD"; then
5550   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5551 echo "${ECHO_T}$MAGIC_CMD" >&6
5552 else
5553   echo "$as_me:$LINENO: result: no" >&5
5554 echo "${ECHO_T}no" >&6
5555 fi
5556
5557   else
5558     MAGIC_CMD=:
5559   fi
5560 fi
5561
5562   fi
5563   ;;
5564 esac
5565
5566 enable_dlopen=no
5567 enable_win32_dll=no
5568
5569 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5570 if test "${enable_libtool_lock+set}" = set; then
5571   enableval="$enable_libtool_lock"
5572
5573 fi;
5574 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5575
5576
5577 # Check whether --with-pic or --without-pic was given.
5578 if test "${with_pic+set}" = set; then
5579   withval="$with_pic"
5580   pic_mode="$withval"
5581 else
5582   pic_mode=default
5583 fi;
5584 test -z "$pic_mode" && pic_mode=default
5585
5586 # Use C for the default configuration in the libtool script
5587 tagname=
5588 lt_save_CC="$CC"
5589 ac_ext=c
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594
5595
5596 # Source file extension for C test sources.
5597 ac_ext=c
5598
5599 # Object file extension for compiled C test sources.
5600 objext=o
5601 objext=$objext
5602
5603 # Code to be used in simple compile tests
5604 lt_simple_compile_test_code="int some_variable = 0;\n"
5605
5606 # Code to be used in simple link tests
5607 lt_simple_link_test_code='int main(){return(0);}\n'
5608
5609
5610 # If no C compiler was specified, use CC.
5611 LTCC=${LTCC-"$CC"}
5612
5613 # Allow CC to be a program name with arguments.
5614 compiler=$CC
5615
5616
5617 #
5618 # Check for any special shared library compilation flags.
5619 #
5620 lt_prog_cc_shlib=
5621 if test "$GCC" = no; then
5622   case $host_os in
5623   sco3.2v5*)
5624     lt_prog_cc_shlib='-belf'
5625     ;;
5626   esac
5627 fi
5628 if test -n "$lt_prog_cc_shlib"; then
5629   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5630 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5631   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5632   else
5633     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5634 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5635     lt_cv_prog_cc_can_build_shared=no
5636   fi
5637 fi
5638
5639
5640 #
5641 # Check to make sure the static flag actually works.
5642 #
5643 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5644 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5645 if test "${lt_prog_compiler_static_works+set}" = set; then
5646   echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648   lt_prog_compiler_static_works=no
5649    save_LDFLAGS="$LDFLAGS"
5650    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5651    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5652    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5653      # The compiler can only warn and ignore the option if not recognized
5654      # So say no if there are warnings
5655      if test -s conftest.err; then
5656        # Append any errors to the config.log.
5657        cat conftest.err 1>&5
5658      else
5659        lt_prog_compiler_static_works=yes
5660      fi
5661    fi
5662    $rm conftest*
5663    LDFLAGS="$save_LDFLAGS"
5664
5665 fi
5666 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5667 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5668
5669 if test x"$lt_prog_compiler_static_works" = xyes; then
5670     :
5671 else
5672     lt_prog_compiler_static=
5673 fi
5674
5675
5676
5677
5678 lt_prog_compiler_no_builtin_flag=
5679
5680 if test "$GCC" = yes; then
5681   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5682
5683
5684 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5685 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5686 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689   lt_cv_prog_compiler_rtti_exceptions=no
5690   ac_outfile=conftest.$ac_objext
5691    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5692    lt_compiler_flag="-fno-rtti -fno-exceptions"
5693    # Insert the option either (1) after the last *FLAGS variable, or
5694    # (2) before a word containing "conftest.", or (3) at the end.
5695    # Note that $ac_compile itself does not contain backslashes and begins
5696    # with a dollar sign (not a hyphen), so the echo should work correctly.
5697    # The option is referenced via a variable to avoid confusing sed.
5698    lt_compile=`echo "$ac_compile" | $SED \
5699    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5701    -e 's:$: $lt_compiler_flag:'`
5702    (eval echo "\"\$as_me:5702: $lt_compile\"" >&5)
5703    (eval "$lt_compile" 2>conftest.err)
5704    ac_status=$?
5705    cat conftest.err >&5
5706    echo "$as_me:5706: \$? = $ac_status" >&5
5707    if (exit $ac_status) && test -s "$ac_outfile"; then
5708      # The compiler can only warn and ignore the option if not recognized
5709      # So say no if there are warnings
5710      if test ! -s conftest.err; then
5711        lt_cv_prog_compiler_rtti_exceptions=yes
5712      fi
5713    fi
5714    $rm conftest*
5715
5716 fi
5717 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5718 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5719
5720 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5721     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5722 else
5723     :
5724 fi
5725
5726 fi
5727
5728 lt_prog_compiler_wl=
5729 lt_prog_compiler_pic=
5730 lt_prog_compiler_static=
5731
5732 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5733 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5734
5735   if test "$GCC" = yes; then
5736     lt_prog_compiler_wl='-Wl,'
5737     lt_prog_compiler_static='-static'
5738
5739     case $host_os in
5740       aix*)
5741       # All AIX code is PIC.
5742       if test "$host_cpu" = ia64; then
5743         # AIX 5 now supports IA64 processor
5744         lt_prog_compiler_static='-Bstatic'
5745       fi
5746       ;;
5747
5748     amigaos*)
5749       # FIXME: we need at least 68020 code to build shared libraries, but
5750       # adding the `-m68020' flag to GCC prevents building anything better,
5751       # like `-m68040'.
5752       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5753       ;;
5754
5755     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5756       # PIC is the default for these OSes.
5757       ;;
5758
5759     mingw* | pw32* | os2*)
5760       # This hack is so that the source file can tell whether it is being
5761       # built for inclusion in a dll (and should export symbols for example).
5762       lt_prog_compiler_pic='-DDLL_EXPORT'
5763       ;;
5764
5765     darwin* | rhapsody*)
5766       # PIC is the default on this platform
5767       # Common symbols not allowed in MH_DYLIB files
5768       lt_prog_compiler_pic='-fno-common'
5769       ;;
5770
5771     msdosdjgpp*)
5772       # Just because we use GCC doesn't mean we suddenly get shared libraries
5773       # on systems that don't support them.
5774       lt_prog_compiler_can_build_shared=no
5775       enable_shared=no
5776       ;;
5777
5778     sysv4*MP*)
5779       if test -d /usr/nec; then
5780         lt_prog_compiler_pic=-Kconform_pic
5781       fi
5782       ;;
5783
5784     hpux*)
5785       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5786       # not for PA HP-UX.
5787       case "$host_cpu" in
5788       hppa*64*|ia64*)
5789         # +Z the default
5790         ;;
5791       *)
5792         lt_prog_compiler_pic='-fPIC'
5793         ;;
5794       esac
5795       ;;
5796
5797     *)
5798       lt_prog_compiler_pic='-fPIC'
5799       ;;
5800     esac
5801   else
5802     # PORTME Check for flag to pass linker flags through the system compiler.
5803     case $host_os in
5804     aix*)
5805       lt_prog_compiler_wl='-Wl,'
5806       if test "$host_cpu" = ia64; then
5807         # AIX 5 now supports IA64 processor
5808         lt_prog_compiler_static='-Bstatic'
5809       else
5810         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5811       fi
5812       ;;
5813       darwin*)
5814         # PIC is the default on this platform
5815         # Common symbols not allowed in MH_DYLIB files
5816        case "$cc_basename" in
5817          xlc*)
5818          lt_prog_compiler_pic='-qnocommon'
5819          lt_prog_compiler_wl='-Wl,'
5820          ;;
5821        esac
5822        ;;
5823
5824     mingw* | pw32* | os2*)
5825       # This hack is so that the source file can tell whether it is being
5826       # built for inclusion in a dll (and should export symbols for example).
5827       lt_prog_compiler_pic='-DDLL_EXPORT'
5828       ;;
5829
5830     hpux9* | hpux10* | hpux11*)
5831       lt_prog_compiler_wl='-Wl,'
5832       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5833       # not for PA HP-UX.
5834       case "$host_cpu" in
5835       hppa*64*|ia64*)
5836         # +Z the default
5837         ;;
5838       *)
5839         lt_prog_compiler_pic='+Z'
5840         ;;
5841       esac
5842       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5843       lt_prog_compiler_static='${wl}-a ${wl}archive'
5844       ;;
5845
5846     irix5* | irix6* | nonstopux*)
5847       lt_prog_compiler_wl='-Wl,'
5848       # PIC (with -KPIC) is the default.
5849       lt_prog_compiler_static='-non_shared'
5850       ;;
5851
5852     newsos6)
5853       lt_prog_compiler_pic='-KPIC'
5854       lt_prog_compiler_static='-Bstatic'
5855       ;;
5856
5857     linux*)
5858       case $CC in
5859       icc* | ecc*)
5860         lt_prog_compiler_wl='-Wl,'
5861         lt_prog_compiler_pic='-KPIC'
5862         lt_prog_compiler_static='-static'
5863         ;;
5864       ccc*)
5865         lt_prog_compiler_wl='-Wl,'
5866         # All Alpha code is PIC.
5867         lt_prog_compiler_static='-non_shared'
5868         ;;
5869       esac
5870       ;;
5871
5872     osf3* | osf4* | osf5*)
5873       lt_prog_compiler_wl='-Wl,'
5874       # All OSF/1 code is PIC.
5875       lt_prog_compiler_static='-non_shared'
5876       ;;
5877
5878     sco3.2v5*)
5879       lt_prog_compiler_pic='-Kpic'
5880       lt_prog_compiler_static='-dn'
5881       ;;
5882
5883     solaris*)
5884       lt_prog_compiler_wl='-Wl,'
5885       lt_prog_compiler_pic='-KPIC'
5886       lt_prog_compiler_static='-Bstatic'
5887       ;;
5888
5889     sunos4*)
5890       lt_prog_compiler_wl='-Qoption ld '
5891       lt_prog_compiler_pic='-PIC'
5892       lt_prog_compiler_static='-Bstatic'
5893       ;;
5894
5895     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5896       lt_prog_compiler_wl='-Wl,'
5897       lt_prog_compiler_pic='-KPIC'
5898       lt_prog_compiler_static='-Bstatic'
5899       ;;
5900
5901     sysv4*MP*)
5902       if test -d /usr/nec ;then
5903         lt_prog_compiler_pic='-Kconform_pic'
5904         lt_prog_compiler_static='-Bstatic'
5905       fi
5906       ;;
5907
5908     uts4*)
5909       lt_prog_compiler_pic='-pic'
5910       lt_prog_compiler_static='-Bstatic'
5911       ;;
5912
5913     *)
5914       lt_prog_compiler_can_build_shared=no
5915       ;;
5916     esac
5917   fi
5918
5919 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5920 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5921
5922 #
5923 # Check to make sure the PIC flag actually works.
5924 #
5925 if test -n "$lt_prog_compiler_pic"; then
5926
5927 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5928 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5929 if test "${lt_prog_compiler_pic_works+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   lt_prog_compiler_pic_works=no
5933   ac_outfile=conftest.$ac_objext
5934    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5935    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5936    # Insert the option either (1) after the last *FLAGS variable, or
5937    # (2) before a word containing "conftest.", or (3) at the end.
5938    # Note that $ac_compile itself does not contain backslashes and begins
5939    # with a dollar sign (not a hyphen), so the echo should work correctly.
5940    # The option is referenced via a variable to avoid confusing sed.
5941    lt_compile=`echo "$ac_compile" | $SED \
5942    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5943    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5944    -e 's:$: $lt_compiler_flag:'`
5945    (eval echo "\"\$as_me:5945: $lt_compile\"" >&5)
5946    (eval "$lt_compile" 2>conftest.err)
5947    ac_status=$?
5948    cat conftest.err >&5
5949    echo "$as_me:5949: \$? = $ac_status" >&5
5950    if (exit $ac_status) && test -s "$ac_outfile"; then
5951      # The compiler can only warn and ignore the option if not recognized
5952      # So say no if there are warnings
5953      if test ! -s conftest.err; then
5954        lt_prog_compiler_pic_works=yes
5955      fi
5956    fi
5957    $rm conftest*
5958
5959 fi
5960 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5961 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5962
5963 if test x"$lt_prog_compiler_pic_works" = xyes; then
5964     case $lt_prog_compiler_pic in
5965      "" | " "*) ;;
5966      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5967      esac
5968 else
5969     lt_prog_compiler_pic=
5970      lt_prog_compiler_can_build_shared=no
5971 fi
5972
5973 fi
5974 case "$host_os" in
5975   # For platforms which do not support PIC, -DPIC is meaningless:
5976   *djgpp*)
5977     lt_prog_compiler_pic=
5978     ;;
5979   *)
5980     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5981     ;;
5982 esac
5983
5984 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5985 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5986 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   lt_cv_prog_compiler_c_o=no
5990    $rm -r conftest 2>/dev/null
5991    mkdir conftest
5992    cd conftest
5993    mkdir out
5994    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5995
5996    lt_compiler_flag="-o out/conftest2.$ac_objext"
5997    # Insert the option either (1) after the last *FLAGS variable, or
5998    # (2) before a word containing "conftest.", or (3) at the end.
5999    # Note that $ac_compile itself does not contain backslashes and begins
6000    # with a dollar sign (not a hyphen), so the echo should work correctly.
6001    lt_compile=`echo "$ac_compile" | $SED \
6002    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6004    -e 's:$: $lt_compiler_flag:'`
6005    (eval echo "\"\$as_me:6005: $lt_compile\"" >&5)
6006    (eval "$lt_compile" 2>out/conftest.err)
6007    ac_status=$?
6008    cat out/conftest.err >&5
6009    echo "$as_me:6009: \$? = $ac_status" >&5
6010    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6011    then
6012      # The compiler can only warn and ignore the option if not recognized
6013      # So say no if there are warnings
6014      if test ! -s out/conftest.err; then
6015        lt_cv_prog_compiler_c_o=yes
6016      fi
6017    fi
6018    chmod u+w .
6019    $rm conftest*
6020    # SGI C++ compiler will create directory out/ii_files/ for
6021    # template instantiation
6022    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6023    $rm out/* && rmdir out
6024    cd ..
6025    rmdir conftest
6026    $rm conftest*
6027
6028 fi
6029 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6030 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6031
6032
6033 hard_links="nottested"
6034 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6035   # do not overwrite the value of need_locks provided by the user
6036   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6037 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6038   hard_links=yes
6039   $rm conftest*
6040   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6041   touch conftest.a
6042   ln conftest.a conftest.b 2>&5 || hard_links=no
6043   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6044   echo "$as_me:$LINENO: result: $hard_links" >&5
6045 echo "${ECHO_T}$hard_links" >&6
6046   if test "$hard_links" = no; then
6047     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6048 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6049     need_locks=warn
6050   fi
6051 else
6052   need_locks=no
6053 fi
6054
6055 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6056 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6057
6058   runpath_var=
6059   allow_undefined_flag=
6060   enable_shared_with_static_runtimes=no
6061   archive_cmds=
6062   archive_expsym_cmds=
6063   old_archive_From_new_cmds=
6064   old_archive_from_expsyms_cmds=
6065   export_dynamic_flag_spec=
6066   whole_archive_flag_spec=
6067   thread_safe_flag_spec=
6068   hardcode_libdir_flag_spec=
6069   hardcode_libdir_flag_spec_ld=
6070   hardcode_libdir_separator=
6071   hardcode_direct=no
6072   hardcode_minus_L=no
6073   hardcode_shlibpath_var=unsupported
6074   link_all_deplibs=unknown
6075   hardcode_automatic=no
6076   module_cmds=
6077   module_expsym_cmds=
6078   always_export_symbols=no
6079   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6080   # include_expsyms should be a list of space-separated symbols to be *always*
6081   # included in the symbol list
6082   include_expsyms=
6083   # exclude_expsyms can be an extended regexp of symbols to exclude
6084   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6085   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6086   # as well as any symbol that contains `d'.
6087   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6088   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6089   # platforms (ab)use it in PIC code, but their linkers get confused if
6090   # the symbol is explicitly referenced.  Since portable code cannot
6091   # rely on this symbol name, it's probably fine to never include it in
6092   # preloaded symbol tables.
6093   extract_expsyms_cmds=
6094
6095   case $host_os in
6096   cygwin* | mingw* | pw32*)
6097     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6098     # When not using gcc, we currently assume that we are using
6099     # Microsoft Visual C++.
6100     if test "$GCC" != yes; then
6101       with_gnu_ld=no
6102     fi
6103     ;;
6104   openbsd*)
6105     with_gnu_ld=no
6106     ;;
6107   esac
6108
6109   ld_shlibs=yes
6110   if test "$with_gnu_ld" = yes; then
6111     # If archive_cmds runs LD, not CC, wlarc should be empty
6112     wlarc='${wl}'
6113
6114     # See if GNU ld supports shared libraries.
6115     case $host_os in
6116     aix3* | aix4* | aix5*)
6117       # On AIX/PPC, the GNU linker is very broken
6118       if test "$host_cpu" != ia64; then
6119         ld_shlibs=no
6120         cat <<EOF 1>&2
6121
6122 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6123 *** to be unable to reliably create shared libraries on AIX.
6124 *** Therefore, libtool is disabling shared libraries support.  If you
6125 *** really care for shared libraries, you may want to modify your PATH
6126 *** so that a non-GNU linker is found, and then restart.
6127
6128 EOF
6129       fi
6130       ;;
6131
6132     amigaos*)
6133       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)'
6134       hardcode_libdir_flag_spec='-L$libdir'
6135       hardcode_minus_L=yes
6136
6137       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6138       # that the semantics of dynamic libraries on AmigaOS, at least up
6139       # to version 4, is to share data among multiple programs linked
6140       # with the same dynamic library.  Since this doesn't match the
6141       # behavior of shared libraries on other platforms, we can't use
6142       # them.
6143       ld_shlibs=no
6144       ;;
6145
6146     beos*)
6147       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6148         allow_undefined_flag=unsupported
6149         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6150         # support --undefined.  This deserves some investigation.  FIXME
6151         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6152       else
6153         ld_shlibs=no
6154       fi
6155       ;;
6156
6157     cygwin* | mingw* | pw32*)
6158       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6159       # as there is no search path for DLLs.
6160       hardcode_libdir_flag_spec='-L$libdir'
6161       allow_undefined_flag=unsupported
6162       always_export_symbols=no
6163       enable_shared_with_static_runtimes=yes
6164       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6165
6166       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6167         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6168         # If the export-symbols file already is a .def file (1st line
6169         # is EXPORTS), use it as is; otherwise, prepend...
6170         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6171           cp $export_symbols $output_objdir/$soname.def;
6172         else
6173           echo EXPORTS > $output_objdir/$soname.def;
6174           cat $export_symbols >> $output_objdir/$soname.def;
6175         fi~
6176         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6177       else
6178         ld_shlibs=no
6179       fi
6180       ;;
6181
6182     netbsd*)
6183       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6184         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6185         wlarc=
6186       else
6187         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6188         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6189       fi
6190       ;;
6191
6192     solaris* | sysv5*)
6193       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6194         ld_shlibs=no
6195         cat <<EOF 1>&2
6196
6197 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6198 *** create shared libraries on Solaris systems.  Therefore, libtool
6199 *** is disabling shared libraries support.  We urge you to upgrade GNU
6200 *** binutils to release 2.9.1 or newer.  Another option is to modify
6201 *** your PATH or compiler configuration so that the native linker is
6202 *** used, and then restart.
6203
6204 EOF
6205       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6206         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6207         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6208       else
6209         ld_shlibs=no
6210       fi
6211       ;;
6212
6213     sunos4*)
6214       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6215       wlarc=
6216       hardcode_direct=yes
6217       hardcode_shlibpath_var=no
6218       ;;
6219
6220   linux*)
6221     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6222         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6223         archive_cmds="$tmp_archive_cmds"
6224       supports_anon_versioning=no
6225       case `$LD -v 2>/dev/null` in
6226         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6227         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6228         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6229         *\ 2.11.*) ;; # other 2.11 versions
6230         *) supports_anon_versioning=yes ;;
6231       esac
6232       if test $supports_anon_versioning = yes; then
6233         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6234 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6235 $echo "local: *; };" >> $output_objdir/$libname.ver~
6236         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6237       else
6238         archive_expsym_cmds="$tmp_archive_cmds"
6239       fi
6240     else
6241       ld_shlibs=no
6242     fi
6243     ;;
6244
6245     *)
6246       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6247         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6248         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6249       else
6250         ld_shlibs=no
6251       fi
6252       ;;
6253     esac
6254
6255     if test "$ld_shlibs" = yes; then
6256       runpath_var=LD_RUN_PATH
6257       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6258       export_dynamic_flag_spec='${wl}--export-dynamic'
6259       # ancient GNU ld didn't support --whole-archive et. al.
6260       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6261         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6262       else
6263         whole_archive_flag_spec=
6264       fi
6265     fi
6266   else
6267     # PORTME fill in a description of your system's linker (not GNU ld)
6268     case $host_os in
6269     aix3*)
6270       allow_undefined_flag=unsupported
6271       always_export_symbols=yes
6272       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'
6273       # Note: this linker hardcodes the directories in LIBPATH if there
6274       # are no directories specified by -L.
6275       hardcode_minus_L=yes
6276       if test "$GCC" = yes && test -z "$link_static_flag"; then
6277         # Neither direct hardcoding nor static linking is supported with a
6278         # broken collect2.
6279         hardcode_direct=unsupported
6280       fi
6281       ;;
6282
6283     aix4* | aix5*)
6284       if test "$host_cpu" = ia64; then
6285         # On IA64, the linker does run time linking by default, so we don't
6286         # have to do anything special.
6287         aix_use_runtimelinking=no
6288         exp_sym_flag='-Bexport'
6289         no_entry_flag=""
6290       else
6291         # If we're using GNU nm, then we don't want the "-C" option.
6292         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6293         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6294           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'
6295         else
6296           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'
6297         fi
6298         aix_use_runtimelinking=no
6299
6300         # Test if we are trying to use run time linking or normal
6301         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6302         # need to do runtime linking.
6303         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6304           for ld_flag in $LDFLAGS; do
6305           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6306             aix_use_runtimelinking=yes
6307             break
6308           fi
6309           done
6310         esac
6311
6312         exp_sym_flag='-bexport'
6313         no_entry_flag='-bnoentry'
6314       fi
6315
6316       # When large executables or shared objects are built, AIX ld can
6317       # have problems creating the table of contents.  If linking a library
6318       # or program results in "error TOC overflow" add -mminimal-toc to
6319       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6320       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6321
6322       archive_cmds=''
6323       hardcode_direct=yes
6324       hardcode_libdir_separator=':'
6325       link_all_deplibs=yes
6326
6327       if test "$GCC" = yes; then
6328         case $host_os in aix4.012|aix4.012.*)
6329         # We only want to do this on AIX 4.2 and lower, the check
6330         # below for broken collect2 doesn't work under 4.3+
6331           collect2name=`${CC} -print-prog-name=collect2`
6332           if test -f "$collect2name" && \
6333            strings "$collect2name" | grep resolve_lib_name >/dev/null
6334           then
6335           # We have reworked collect2
6336           hardcode_direct=yes
6337           else
6338           # We have old collect2
6339           hardcode_direct=unsupported
6340           # It fails to find uninstalled libraries when the uninstalled
6341           # path is not listed in the libpath.  Setting hardcode_minus_L
6342           # to unsupported forces relinking
6343           hardcode_minus_L=yes
6344           hardcode_libdir_flag_spec='-L$libdir'
6345           hardcode_libdir_separator=
6346           fi
6347         esac
6348         shared_flag='-shared'
6349       else
6350         # not using gcc
6351         if test "$host_cpu" = ia64; then
6352         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6353         # chokes on -Wl,-G. The following line is correct:
6354           shared_flag='-G'
6355         else
6356         if test "$aix_use_runtimelinking" = yes; then
6357             shared_flag='${wl}-G'
6358           else
6359             shared_flag='${wl}-bM:SRE'
6360         fi
6361         fi
6362       fi
6363
6364       # It seems that -bexpall does not export symbols beginning with
6365       # underscore (_), so it is better to generate a list of symbols to export.
6366       always_export_symbols=yes
6367       if test "$aix_use_runtimelinking" = yes; then
6368         # Warning - without using the other runtime loading flags (-brtl),
6369         # -berok will link without error, but may produce a broken library.
6370         allow_undefined_flag='-berok'
6371        # Determine the default libpath from the value encoded in an empty executable.
6372        cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h.  */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h.  */
6378
6379 int
6380 main ()
6381 {
6382
6383   ;
6384   return 0;
6385 }
6386 _ACEOF
6387 rm -f conftest.$ac_objext conftest$ac_exeext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389   (eval $ac_link) 2>conftest.er1
6390   ac_status=$?
6391   grep -v '^ *+' conftest.er1 >conftest.err
6392   rm -f conftest.er1
6393   cat conftest.err >&5
6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); } &&
6396          { ac_try='test -z "$ac_c_werror_flag"
6397                          || test ! -s conftest.err'
6398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399   (eval $ac_try) 2>&5
6400   ac_status=$?
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); }; } &&
6403          { ac_try='test -s conftest$ac_exeext'
6404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405   (eval $ac_try) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); }; }; then
6409
6410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6411 }'`
6412 # Check for a 64-bit object if we didn't find anything.
6413 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; }
6414 }'`; fi
6415 else
6416   echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 fi
6420 rm -f conftest.err conftest.$ac_objext \
6421       conftest$ac_exeext conftest.$ac_ext
6422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6423
6424        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6425         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"
6426        else
6427         if test "$host_cpu" = ia64; then
6428           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6429           allow_undefined_flag="-z nodefs"
6430           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"
6431         else
6432          # Determine the default libpath from the value encoded in an empty executable.
6433          cat >conftest.$ac_ext <<_ACEOF
6434 /* confdefs.h.  */
6435 _ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h.  */
6439
6440 int
6441 main ()
6442 {
6443
6444   ;
6445   return 0;
6446 }
6447 _ACEOF
6448 rm -f conftest.$ac_objext conftest$ac_exeext
6449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6450   (eval $ac_link) 2>conftest.er1
6451   ac_status=$?
6452   grep -v '^ *+' conftest.er1 >conftest.err
6453   rm -f conftest.er1
6454   cat conftest.err >&5
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); } &&
6457          { ac_try='test -z "$ac_c_werror_flag"
6458                          || test ! -s conftest.err'
6459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460   (eval $ac_try) 2>&5
6461   ac_status=$?
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); }; } &&
6464          { ac_try='test -s conftest$ac_exeext'
6465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466   (eval $ac_try) 2>&5
6467   ac_status=$?
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); }; }; then
6470
6471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6472 }'`
6473 # Check for a 64-bit object if we didn't find anything.
6474 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; }
6475 }'`; fi
6476 else
6477   echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6479
6480 fi
6481 rm -f conftest.err conftest.$ac_objext \
6482       conftest$ac_exeext conftest.$ac_ext
6483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6484
6485          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6486           # Warning - without using the other run time loading flags,
6487           # -berok will link without error, but may produce a broken library.
6488           no_undefined_flag=' ${wl}-bernotok'
6489           allow_undefined_flag=' ${wl}-berok'
6490           # -bexpall does not export symbols beginning with underscore (_)
6491           always_export_symbols=yes
6492           # Exported symbols can be pulled into shared objects from archives
6493           whole_archive_flag_spec=' '
6494           archive_cmds_need_lc=yes
6495           # This is similar to how AIX traditionally builds it's shared libraries.
6496           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'
6497         fi
6498       fi
6499       ;;
6500
6501     amigaos*)
6502       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)'
6503       hardcode_libdir_flag_spec='-L$libdir'
6504       hardcode_minus_L=yes
6505       # see comment about different semantics on the GNU ld section
6506       ld_shlibs=no
6507       ;;
6508
6509     bsdi[45]*)
6510       export_dynamic_flag_spec=-rdynamic
6511       ;;
6512
6513     cygwin* | mingw* | pw32*)
6514       # When not using gcc, we currently assume that we are using
6515       # Microsoft Visual C++.
6516       # hardcode_libdir_flag_spec is actually meaningless, as there is
6517       # no search path for DLLs.
6518       hardcode_libdir_flag_spec=' '
6519       allow_undefined_flag=unsupported
6520       # Tell ltmain to make .lib files, not .a files.
6521       libext=lib
6522       # Tell ltmain to make .dll files, not .so files.
6523       shrext_cmds=".dll"
6524       # FIXME: Setting linknames here is a bad hack.
6525       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6526       # The linker will automatically build a .lib file if we build a DLL.
6527       old_archive_From_new_cmds='true'
6528       # FIXME: Should let the user specify the lib program.
6529       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6530       fix_srcfile_path='`cygpath -w "$srcfile"`'
6531       enable_shared_with_static_runtimes=yes
6532       ;;
6533
6534     darwin* | rhapsody*)
6535       case "$host_os" in
6536         rhapsody* | darwin1.[012])
6537          allow_undefined_flag='${wl}-undefined ${wl}suppress'
6538          ;;
6539        *) # Darwin 1.3 on
6540          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6541            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6542          else
6543            case ${MACOSX_DEPLOYMENT_TARGET} in
6544              10.[012])
6545                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6546                ;;
6547              10.*)
6548                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6549                ;;
6550            esac
6551          fi
6552          ;;
6553       esac
6554       archive_cmds_need_lc=no
6555       hardcode_direct=no
6556       hardcode_automatic=yes
6557       hardcode_shlibpath_var=unsupported
6558       whole_archive_flag_spec=''
6559       link_all_deplibs=yes
6560     if test "$GCC" = yes ; then
6561         output_verbose_link_cmd='echo'
6562         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6563       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6564       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6565       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}'
6566       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}'
6567     else
6568       case "$cc_basename" in
6569         xlc*)
6570          output_verbose_link_cmd='echo'
6571          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6572          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6573           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6574          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6575           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}'
6576           ;;
6577        *)
6578          ld_shlibs=no
6579           ;;
6580       esac
6581     fi
6582       ;;
6583
6584     dgux*)
6585       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6586       hardcode_libdir_flag_spec='-L$libdir'
6587       hardcode_shlibpath_var=no
6588       ;;
6589
6590     freebsd1*)
6591       ld_shlibs=no
6592       ;;
6593
6594     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6595     # support.  Future versions do this automatically, but an explicit c++rt0.o
6596     # does not break anything, and helps significantly (at the cost of a little
6597     # extra space).
6598     freebsd2.2*)
6599       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6600       hardcode_libdir_flag_spec='-R$libdir'
6601       hardcode_direct=yes
6602       hardcode_shlibpath_var=no
6603       ;;
6604
6605     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6606     freebsd2*)
6607       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6608       hardcode_direct=yes
6609       hardcode_minus_L=yes
6610       hardcode_shlibpath_var=no
6611       ;;
6612
6613     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6614     freebsd* | kfreebsd*-gnu)
6615       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6616       hardcode_libdir_flag_spec='-R$libdir'
6617       hardcode_direct=yes
6618       hardcode_shlibpath_var=no
6619       ;;
6620
6621     hpux9*)
6622       if test "$GCC" = yes; then
6623         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'
6624       else
6625         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'
6626       fi
6627       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6628       hardcode_libdir_separator=:
6629       hardcode_direct=yes
6630
6631       # hardcode_minus_L: Not really in the search PATH,
6632       # but as the default location of the library.
6633       hardcode_minus_L=yes
6634       export_dynamic_flag_spec='${wl}-E'
6635       ;;
6636
6637     hpux10* | hpux11*)
6638       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6639         case "$host_cpu" in
6640         hppa*64*|ia64*)
6641           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6642           ;;
6643         *)
6644           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6645           ;;
6646         esac
6647       else
6648         case "$host_cpu" in
6649         hppa*64*|ia64*)
6650           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6651           ;;
6652         *)
6653           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6654           ;;
6655         esac
6656       fi
6657       if test "$with_gnu_ld" = no; then
6658         case "$host_cpu" in
6659         hppa*64*)
6660           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6661           hardcode_libdir_flag_spec_ld='+b $libdir'
6662           hardcode_libdir_separator=:
6663           hardcode_direct=no
6664           hardcode_shlibpath_var=no
6665           ;;
6666         ia64*)
6667           hardcode_libdir_flag_spec='-L$libdir'
6668           hardcode_direct=no
6669           hardcode_shlibpath_var=no
6670
6671           # hardcode_minus_L: Not really in the search PATH,
6672           # but as the default location of the library.
6673           hardcode_minus_L=yes
6674           ;;
6675         *)
6676           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6677           hardcode_libdir_separator=:
6678           hardcode_direct=yes
6679           export_dynamic_flag_spec='${wl}-E'
6680
6681           # hardcode_minus_L: Not really in the search PATH,
6682           # but as the default location of the library.
6683           hardcode_minus_L=yes
6684           ;;
6685         esac
6686       fi
6687       ;;
6688
6689     irix5* | irix6* | nonstopux*)
6690       if test "$GCC" = yes; then
6691         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'
6692       else
6693         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'
6694         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6695       fi
6696       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6697       hardcode_libdir_separator=:
6698       link_all_deplibs=yes
6699       ;;
6700
6701     netbsd*)
6702       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6703         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6704       else
6705         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6706       fi
6707       hardcode_libdir_flag_spec='-R$libdir'
6708       hardcode_direct=yes
6709       hardcode_shlibpath_var=no
6710       ;;
6711
6712     newsos6)
6713       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6714       hardcode_direct=yes
6715       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6716       hardcode_libdir_separator=:
6717       hardcode_shlibpath_var=no
6718       ;;
6719
6720     openbsd*)
6721       hardcode_direct=yes
6722       hardcode_shlibpath_var=no
6723       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6724         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6725         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6726         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6727         export_dynamic_flag_spec='${wl}-E'
6728       else
6729        case $host_os in
6730          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6731            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6732            hardcode_libdir_flag_spec='-R$libdir'
6733            ;;
6734          *)
6735            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6736            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6737            ;;
6738        esac
6739       fi
6740       ;;
6741
6742     os2*)
6743       hardcode_libdir_flag_spec='-L$libdir'
6744       hardcode_minus_L=yes
6745       allow_undefined_flag=unsupported
6746       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'
6747       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6748       ;;
6749
6750     osf3*)
6751       if test "$GCC" = yes; then
6752         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6753         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'
6754       else
6755         allow_undefined_flag=' -expect_unresolved \*'
6756         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'
6757       fi
6758       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6759       hardcode_libdir_separator=:
6760       ;;
6761
6762     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6763       if test "$GCC" = yes; then
6764         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6765         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'
6766         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6767       else
6768         allow_undefined_flag=' -expect_unresolved \*'
6769         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'
6770         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6771         $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'
6772
6773         # Both c and cxx compiler support -rpath directly
6774         hardcode_libdir_flag_spec='-rpath $libdir'
6775       fi
6776       hardcode_libdir_separator=:
6777       ;;
6778
6779     sco3.2v5*)
6780       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6781       hardcode_shlibpath_var=no
6782       export_dynamic_flag_spec='${wl}-Bexport'
6783       runpath_var=LD_RUN_PATH
6784       hardcode_runpath_var=yes
6785       ;;
6786
6787     solaris*)
6788       no_undefined_flag=' -z text'
6789       if test "$GCC" = yes; then
6790         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6791         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6792           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6793       else
6794         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6795         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6796         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6797       fi
6798       hardcode_libdir_flag_spec='-R$libdir'
6799       hardcode_shlibpath_var=no
6800       case $host_os in
6801       solaris2.[0-5] | solaris2.[0-5].*) ;;
6802       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6803         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6804       esac
6805       link_all_deplibs=yes
6806       ;;
6807
6808     sunos4*)
6809       if test "x$host_vendor" = xsequent; then
6810         # Use $CC to link under sequent, because it throws in some extra .o
6811         # files that make .init and .fini sections work.
6812         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6813       else
6814         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6815       fi
6816       hardcode_libdir_flag_spec='-L$libdir'
6817       hardcode_direct=yes
6818       hardcode_minus_L=yes
6819       hardcode_shlibpath_var=no
6820       ;;
6821
6822     sysv4)
6823       case $host_vendor in
6824         sni)
6825           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6826           hardcode_direct=yes # is this really true???
6827         ;;
6828         siemens)
6829           ## LD is ld it makes a PLAMLIB
6830           ## CC just makes a GrossModule.
6831           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6832           reload_cmds='$CC -r -o $output$reload_objs'
6833           hardcode_direct=no
6834         ;;
6835         motorola)
6836           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6837           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6838         ;;
6839       esac
6840       runpath_var='LD_RUN_PATH'
6841       hardcode_shlibpath_var=no
6842       ;;
6843
6844     sysv4.3*)
6845       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6846       hardcode_shlibpath_var=no
6847       export_dynamic_flag_spec='-Bexport'
6848       ;;
6849
6850     sysv4*MP*)
6851       if test -d /usr/nec; then
6852         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6853         hardcode_shlibpath_var=no
6854         runpath_var=LD_RUN_PATH
6855         hardcode_runpath_var=yes
6856         ld_shlibs=yes
6857       fi
6858       ;;
6859
6860     sysv4.2uw2*)
6861       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6862       hardcode_direct=yes
6863       hardcode_minus_L=no
6864       hardcode_shlibpath_var=no
6865       hardcode_runpath_var=yes
6866       runpath_var=LD_RUN_PATH
6867       ;;
6868
6869    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6870       no_undefined_flag='${wl}-z ${wl}text'
6871       if test "$GCC" = yes; then
6872         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6873       else
6874         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6875       fi
6876       runpath_var='LD_RUN_PATH'
6877       hardcode_shlibpath_var=no
6878       ;;
6879
6880     sysv5*)
6881       no_undefined_flag=' -z text'
6882       # $CC -shared without GNU ld will not create a library from C++
6883       # object files and a static libstdc++, better avoid it by now
6884       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6885       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6886                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6887       hardcode_libdir_flag_spec=
6888       hardcode_shlibpath_var=no
6889       runpath_var='LD_RUN_PATH'
6890       ;;
6891
6892     uts4*)
6893       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6894       hardcode_libdir_flag_spec='-L$libdir'
6895       hardcode_shlibpath_var=no
6896       ;;
6897
6898     *)
6899       ld_shlibs=no
6900       ;;
6901     esac
6902   fi
6903
6904 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6905 echo "${ECHO_T}$ld_shlibs" >&6
6906 test "$ld_shlibs" = no && can_build_shared=no
6907
6908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6909 if test "$GCC" = yes; then
6910   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6911 fi
6912
6913 #
6914 # Do we need to explicitly link libc?
6915 #
6916 case "x$archive_cmds_need_lc" in
6917 x|xyes)
6918   # Assume -lc should be added
6919   archive_cmds_need_lc=yes
6920
6921   if test "$enable_shared" = yes && test "$GCC" = yes; then
6922     case $archive_cmds in
6923     *'~'*)
6924       # FIXME: we may have to deal with multi-command sequences.
6925       ;;
6926     '$CC '*)
6927       # Test whether the compiler implicitly links with -lc since on some
6928       # systems, -lgcc has to come before -lc. If gcc already passes -lc
6929       # to ld, don't add -lc before -lgcc.
6930       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6931 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6932       $rm conftest*
6933       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6934
6935       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6936   (eval $ac_compile) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); } 2>conftest.err; then
6940         soname=conftest
6941         lib=conftest
6942         libobjs=conftest.$ac_objext
6943         deplibs=
6944         wl=$lt_prog_compiler_wl
6945         compiler_flags=-v
6946         linker_flags=-v
6947         verstring=
6948         output_objdir=.
6949         libname=conftest
6950         lt_save_allow_undefined_flag=$allow_undefined_flag
6951         allow_undefined_flag=
6952         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6953   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6954   ac_status=$?
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); }
6957         then
6958           archive_cmds_need_lc=no
6959         else
6960           archive_cmds_need_lc=yes
6961         fi
6962         allow_undefined_flag=$lt_save_allow_undefined_flag
6963       else
6964         cat conftest.err 1>&5
6965       fi
6966       $rm conftest*
6967       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6968 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6969       ;;
6970     esac
6971   fi
6972   ;;
6973 esac
6974
6975 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6976 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6977 library_names_spec=
6978 libname_spec='lib$name'
6979 soname_spec=
6980 shrext_cmds=".so"
6981 postinstall_cmds=
6982 postuninstall_cmds=
6983 finish_cmds=
6984 finish_eval=
6985 shlibpath_var=
6986 shlibpath_overrides_runpath=unknown
6987 version_type=none
6988 dynamic_linker="$host_os ld.so"
6989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6990 if test "$GCC" = yes; then
6991   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6992   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6993     # if the path contains ";" then we assume it to be the separator
6994     # otherwise default to the standard path separator (i.e. ":") - it is
6995     # assumed that no part of a normal pathname contains ";" but that should
6996     # okay in the real world where ";" in dirpaths is itself problematic.
6997     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6998   else
6999     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7000   fi
7001 else
7002   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7003 fi
7004 need_lib_prefix=unknown
7005 hardcode_into_libs=no
7006
7007 # when you set need_version to no, make sure it does not cause -set_version
7008 # flags to be left without arguments
7009 need_version=unknown
7010
7011 case $host_os in
7012 aix3*)
7013   version_type=linux
7014   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7015   shlibpath_var=LIBPATH
7016
7017   # AIX 3 has no versioning support, so we append a major version to the name.
7018   soname_spec='${libname}${release}${shared_ext}$major'
7019   ;;
7020
7021 aix4* | aix5*)
7022   version_type=linux
7023   need_lib_prefix=no
7024   need_version=no
7025   hardcode_into_libs=yes
7026   if test "$host_cpu" = ia64; then
7027     # AIX 5 supports IA64
7028     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7029     shlibpath_var=LD_LIBRARY_PATH
7030   else
7031     # With GCC up to 2.95.x, collect2 would create an import file
7032     # for dependence libraries.  The import file would start with
7033     # the line `#! .'.  This would cause the generated library to
7034     # depend on `.', always an invalid library.  This was fixed in
7035     # development snapshots of GCC prior to 3.0.
7036     case $host_os in
7037       aix4 | aix4.[01] | aix4.[01].*)
7038       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7039            echo ' yes '
7040            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7041         :
7042       else
7043         can_build_shared=no
7044       fi
7045       ;;
7046     esac
7047     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7048     # soname into executable. Probably we can add versioning support to
7049     # collect2, so additional links can be useful in future.
7050     if test "$aix_use_runtimelinking" = yes; then
7051       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7052       # instead of lib<name>.a to let people know that these are not
7053       # typical AIX shared libraries.
7054       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7055     else
7056       # We preserve .a as extension for shared libraries through AIX4.2
7057       # and later when we are not doing run time linking.
7058       library_names_spec='${libname}${release}.a $libname.a'
7059       soname_spec='${libname}${release}${shared_ext}$major'
7060     fi
7061     shlibpath_var=LIBPATH
7062   fi
7063   ;;
7064
7065 amigaos*)
7066   library_names_spec='$libname.ixlibrary $libname.a'
7067   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7068   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'
7069   ;;
7070
7071 beos*)
7072   library_names_spec='${libname}${shared_ext}'
7073   dynamic_linker="$host_os ld.so"
7074   shlibpath_var=LIBRARY_PATH
7075   ;;
7076
7077 bsdi[45]*)
7078   version_type=linux
7079   need_version=no
7080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7081   soname_spec='${libname}${release}${shared_ext}$major'
7082   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7083   shlibpath_var=LD_LIBRARY_PATH
7084   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7085   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7086   # the default ld.so.conf also contains /usr/contrib/lib and
7087   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7088   # libtool to hard-code these into programs
7089   ;;
7090
7091 cygwin* | mingw* | pw32*)
7092   version_type=windows
7093   shrext_cmds=".dll"
7094   need_version=no
7095   need_lib_prefix=no
7096
7097   case $GCC,$host_os in
7098   yes,cygwin* | yes,mingw* | yes,pw32*)
7099     library_names_spec='$libname.dll.a'
7100     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7101     postinstall_cmds='base_file=`basename \${file}`~
7102       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7103       dldir=$destdir/`dirname \$dlpath`~
7104       test -d \$dldir || mkdir -p \$dldir~
7105       $install_prog $dir/$dlname \$dldir/$dlname'
7106     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7107       dlpath=$dir/\$dldll~
7108        $rm \$dlpath'
7109     shlibpath_overrides_runpath=yes
7110
7111     case $host_os in
7112     cygwin*)
7113       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7114       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7115       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7116       ;;
7117     mingw*)
7118       # MinGW DLLs use traditional 'lib' prefix
7119       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7120       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7121       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7122         # It is most probably a Windows format PATH printed by
7123         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7124         # path with ; separators, and with drive letters. We can handle the
7125         # drive letters (cygwin fileutils understands them), so leave them,
7126         # especially as we might pass files found there to a mingw objdump,
7127         # which wouldn't understand a cygwinified path. Ahh.
7128         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7129       else
7130         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7131       fi
7132       ;;
7133     pw32*)
7134       # pw32 DLLs use 'pw' prefix rather than 'lib'
7135       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7136       ;;
7137     esac
7138     ;;
7139
7140   *)
7141     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7142     ;;
7143   esac
7144   dynamic_linker='Win32 ld.exe'
7145   # FIXME: first we should search . and the directory the executable is in
7146   shlibpath_var=PATH
7147   ;;
7148
7149 darwin* | rhapsody*)
7150   dynamic_linker="$host_os dyld"
7151   version_type=darwin
7152   need_lib_prefix=no
7153   need_version=no
7154   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7155   soname_spec='${libname}${release}${major}$shared_ext'
7156   shlibpath_overrides_runpath=yes
7157   shlibpath_var=DYLD_LIBRARY_PATH
7158   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7159   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7160   if test "$GCC" = yes; then
7161     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"`
7162   else
7163     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7164   fi
7165   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7166   ;;
7167
7168 dgux*)
7169   version_type=linux
7170   need_lib_prefix=no
7171   need_version=no
7172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7173   soname_spec='${libname}${release}${shared_ext}$major'
7174   shlibpath_var=LD_LIBRARY_PATH
7175   ;;
7176
7177 freebsd1*)
7178   dynamic_linker=no
7179   ;;
7180
7181 kfreebsd*-gnu)
7182   version_type=linux
7183   need_lib_prefix=no
7184   need_version=no
7185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7186   soname_spec='${libname}${release}${shared_ext}$major'
7187   shlibpath_var=LD_LIBRARY_PATH
7188   shlibpath_overrides_runpath=no
7189   hardcode_into_libs=yes
7190   dynamic_linker='GNU ld.so'
7191   ;;
7192
7193 freebsd*)
7194   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7195   version_type=freebsd-$objformat
7196   case $version_type in
7197     freebsd-elf*)
7198       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7199       need_version=no
7200       need_lib_prefix=no
7201       ;;
7202     freebsd-*)
7203       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7204       need_version=yes
7205       ;;
7206   esac
7207   shlibpath_var=LD_LIBRARY_PATH
7208   case $host_os in
7209   freebsd2*)
7210     shlibpath_overrides_runpath=yes
7211     ;;
7212   freebsd3.01* | freebsdelf3.01*)
7213     shlibpath_overrides_runpath=yes
7214     hardcode_into_libs=yes
7215     ;;
7216   *) # from 3.2 on
7217     shlibpath_overrides_runpath=no
7218     hardcode_into_libs=yes
7219     ;;
7220   esac
7221   ;;
7222
7223 gnu*)
7224   version_type=linux
7225   need_lib_prefix=no
7226   need_version=no
7227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7228   soname_spec='${libname}${release}${shared_ext}$major'
7229   shlibpath_var=LD_LIBRARY_PATH
7230   hardcode_into_libs=yes
7231   ;;
7232
7233 hpux9* | hpux10* | hpux11*)
7234   # Give a soname corresponding to the major version so that dld.sl refuses to
7235   # link against other versions.
7236   version_type=sunos
7237   need_lib_prefix=no
7238   need_version=no
7239   case "$host_cpu" in
7240   ia64*)
7241     shrext_cmds='.so'
7242     hardcode_into_libs=yes
7243     dynamic_linker="$host_os dld.so"
7244     shlibpath_var=LD_LIBRARY_PATH
7245     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7246     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7247     soname_spec='${libname}${release}${shared_ext}$major'
7248     if test "X$HPUX_IA64_MODE" = X32; then
7249       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7250     else
7251       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7252     fi
7253     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7254     ;;
7255    hppa*64*)
7256      shrext_cmds='.sl'
7257      hardcode_into_libs=yes
7258      dynamic_linker="$host_os dld.sl"
7259      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7260      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7261      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7262      soname_spec='${libname}${release}${shared_ext}$major'
7263      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7264      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7265      ;;
7266    *)
7267     shrext_cmds='.sl'
7268     dynamic_linker="$host_os dld.sl"
7269     shlibpath_var=SHLIB_PATH
7270     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7272     soname_spec='${libname}${release}${shared_ext}$major'
7273     ;;
7274   esac
7275   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7276   postinstall_cmds='chmod 555 $lib'
7277   ;;
7278
7279 irix5* | irix6* | nonstopux*)
7280   case $host_os in
7281     nonstopux*) version_type=nonstopux ;;
7282     *)
7283         if test "$lt_cv_prog_gnu_ld" = yes; then
7284                 version_type=linux
7285         else
7286                 version_type=irix
7287         fi ;;
7288   esac
7289   need_lib_prefix=no
7290   need_version=no
7291   soname_spec='${libname}${release}${shared_ext}$major'
7292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7293   case $host_os in
7294   irix5* | nonstopux*)
7295     libsuff= shlibsuff=
7296     ;;
7297   *)
7298     case $LD in # libtool.m4 will add one of these switches to LD
7299     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7300       libsuff= shlibsuff= libmagic=32-bit;;
7301     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7302       libsuff=32 shlibsuff=N32 libmagic=N32;;
7303     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7304       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7305     *) libsuff= shlibsuff= libmagic=never-match;;
7306     esac
7307     ;;
7308   esac
7309   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7310   shlibpath_overrides_runpath=no
7311   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7312   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7313   hardcode_into_libs=yes
7314   ;;
7315
7316 # No shared lib support for Linux oldld, aout, or coff.
7317 linux*oldld* | linux*aout* | linux*coff*)
7318   dynamic_linker=no
7319   ;;
7320
7321 # This must be Linux ELF.
7322 linux*)
7323   version_type=linux
7324   need_lib_prefix=no
7325   need_version=no
7326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7327   soname_spec='${libname}${release}${shared_ext}$major'
7328   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7329   shlibpath_var=LD_LIBRARY_PATH
7330   shlibpath_overrides_runpath=no
7331   # This implies no fast_install, which is unacceptable.
7332   # Some rework will be needed to allow for fast_install
7333   # before this can be enabled.
7334   hardcode_into_libs=yes
7335
7336   # Append ld.so.conf contents to the search path
7337   if test -f /etc/ld.so.conf; then
7338     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7339     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7340   fi
7341
7342   # We used to test for /lib/ld.so.1 and disable shared libraries on
7343   # powerpc, because MkLinux only supported shared libraries with the
7344   # GNU dynamic linker.  Since this was broken with cross compilers,
7345   # most powerpc-linux boxes support dynamic linking these days and
7346   # people can always --disable-shared, the test was removed, and we
7347   # assume the GNU/Linux dynamic linker is in use.
7348   dynamic_linker='GNU/Linux ld.so'
7349   ;;
7350
7351 knetbsd*-gnu)
7352   version_type=linux
7353   need_lib_prefix=no
7354   need_version=no
7355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7356   soname_spec='${libname}${release}${shared_ext}$major'
7357   shlibpath_var=LD_LIBRARY_PATH
7358   shlibpath_overrides_runpath=no
7359   hardcode_into_libs=yes
7360   dynamic_linker='GNU ld.so'
7361   ;;
7362
7363 netbsd*)
7364   version_type=sunos
7365   need_lib_prefix=no
7366   need_version=no
7367   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7369     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7370     dynamic_linker='NetBSD (a.out) ld.so'
7371   else
7372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7373     soname_spec='${libname}${release}${shared_ext}$major'
7374     dynamic_linker='NetBSD ld.elf_so'
7375   fi
7376   shlibpath_var=LD_LIBRARY_PATH
7377   shlibpath_overrides_runpath=yes
7378   hardcode_into_libs=yes
7379   ;;
7380
7381 newsos6)
7382   version_type=linux
7383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7384   shlibpath_var=LD_LIBRARY_PATH
7385   shlibpath_overrides_runpath=yes
7386   ;;
7387
7388 nto-qnx*)
7389   version_type=linux
7390   need_lib_prefix=no
7391   need_version=no
7392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7393   soname_spec='${libname}${release}${shared_ext}$major'
7394   shlibpath_var=LD_LIBRARY_PATH
7395   shlibpath_overrides_runpath=yes
7396   ;;
7397
7398 openbsd*)
7399   version_type=sunos
7400   need_lib_prefix=no
7401   need_version=no
7402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7403   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7404   shlibpath_var=LD_LIBRARY_PATH
7405   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7406     case $host_os in
7407       openbsd2.[89] | openbsd2.[89].*)
7408         shlibpath_overrides_runpath=no
7409         ;;
7410       *)
7411         shlibpath_overrides_runpath=yes
7412         ;;
7413       esac
7414   else
7415     shlibpath_overrides_runpath=yes
7416   fi
7417   ;;
7418
7419 os2*)
7420   libname_spec='$name'
7421   shrext_cmds=".dll"
7422   need_lib_prefix=no
7423   library_names_spec='$libname${shared_ext} $libname.a'
7424   dynamic_linker='OS/2 ld.exe'
7425   shlibpath_var=LIBPATH
7426   ;;
7427
7428 osf3* | osf4* | osf5*)
7429   version_type=osf
7430   need_lib_prefix=no
7431   need_version=no
7432   soname_spec='${libname}${release}${shared_ext}$major'
7433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7434   shlibpath_var=LD_LIBRARY_PATH
7435   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7436   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7437   ;;
7438
7439 sco3.2v5*)
7440   version_type=osf
7441   soname_spec='${libname}${release}${shared_ext}$major'
7442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7443   shlibpath_var=LD_LIBRARY_PATH
7444   ;;
7445
7446 solaris*)
7447   version_type=linux
7448   need_lib_prefix=no
7449   need_version=no
7450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7451   soname_spec='${libname}${release}${shared_ext}$major'
7452   shlibpath_var=LD_LIBRARY_PATH
7453   shlibpath_overrides_runpath=yes
7454   hardcode_into_libs=yes
7455   # ldd complains unless libraries are executable
7456   postinstall_cmds='chmod +x $lib'
7457   ;;
7458
7459 sunos4*)
7460   version_type=sunos
7461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7462   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7463   shlibpath_var=LD_LIBRARY_PATH
7464   shlibpath_overrides_runpath=yes
7465   if test "$with_gnu_ld" = yes; then
7466     need_lib_prefix=no
7467   fi
7468   need_version=yes
7469   ;;
7470
7471 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7472   version_type=linux
7473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7474   soname_spec='${libname}${release}${shared_ext}$major'
7475   shlibpath_var=LD_LIBRARY_PATH
7476   case $host_vendor in
7477     sni)
7478       shlibpath_overrides_runpath=no
7479       need_lib_prefix=no
7480       export_dynamic_flag_spec='${wl}-Blargedynsym'
7481       runpath_var=LD_RUN_PATH
7482       ;;
7483     siemens)
7484       need_lib_prefix=no
7485       ;;
7486     motorola)
7487       need_lib_prefix=no
7488       need_version=no
7489       shlibpath_overrides_runpath=no
7490       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7491       ;;
7492   esac
7493   ;;
7494
7495 sysv4*MP*)
7496   if test -d /usr/nec ;then
7497     version_type=linux
7498     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7499     soname_spec='$libname${shared_ext}.$major'
7500     shlibpath_var=LD_LIBRARY_PATH
7501   fi
7502   ;;
7503
7504 uts4*)
7505   version_type=linux
7506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7507   soname_spec='${libname}${release}${shared_ext}$major'
7508   shlibpath_var=LD_LIBRARY_PATH
7509   ;;
7510
7511 *)
7512   dynamic_linker=no
7513   ;;
7514 esac
7515 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7516 echo "${ECHO_T}$dynamic_linker" >&6
7517 test "$dynamic_linker" = no && can_build_shared=no
7518
7519 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7520 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7521 hardcode_action=
7522 if test -n "$hardcode_libdir_flag_spec" || \
7523    test -n "$runpath_var" || \
7524    test "X$hardcode_automatic" = "Xyes" ; then
7525
7526   # We can hardcode non-existant directories.
7527   if test "$hardcode_direct" != no &&
7528      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7529      # have to relink, otherwise we might link with an installed library
7530      # when we should be linking with a yet-to-be-installed one
7531      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7532      test "$hardcode_minus_L" != no; then
7533     # Linking always hardcodes the temporary library directory.
7534     hardcode_action=relink
7535   else
7536     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7537     hardcode_action=immediate
7538   fi
7539 else
7540   # We cannot hardcode anything, or else we can only hardcode existing
7541   # directories.
7542   hardcode_action=unsupported
7543 fi
7544 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7545 echo "${ECHO_T}$hardcode_action" >&6
7546
7547 if test "$hardcode_action" = relink; then
7548   # Fast installation is not supported
7549   enable_fast_install=no
7550 elif test "$shlibpath_overrides_runpath" = yes ||
7551      test "$enable_shared" = no; then
7552   # Fast installation is not necessary
7553   enable_fast_install=needless
7554 fi
7555
7556 striplib=
7557 old_striplib=
7558 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7559 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7560 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7561   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7562   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7563   echo "$as_me:$LINENO: result: yes" >&5
7564 echo "${ECHO_T}yes" >&6
7565 else
7566 # FIXME - insert some real tests, host_os isn't really good enough
7567   case $host_os in
7568    darwin*)
7569        if test -n "$STRIP" ; then
7570          striplib="$STRIP -x"
7571          echo "$as_me:$LINENO: result: yes" >&5
7572 echo "${ECHO_T}yes" >&6
7573        else
7574   echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7576 fi
7577        ;;
7578    *)
7579   echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6
7581     ;;
7582   esac
7583 fi
7584
7585 if test "x$enable_dlopen" != xyes; then
7586   enable_dlopen=unknown
7587   enable_dlopen_self=unknown
7588   enable_dlopen_self_static=unknown
7589 else
7590   lt_cv_dlopen=no
7591   lt_cv_dlopen_libs=
7592
7593   case $host_os in
7594   beos*)
7595     lt_cv_dlopen="load_add_on"
7596     lt_cv_dlopen_libs=
7597     lt_cv_dlopen_self=yes
7598     ;;
7599
7600   mingw* | pw32*)
7601     lt_cv_dlopen="LoadLibrary"
7602     lt_cv_dlopen_libs=
7603    ;;
7604
7605   cygwin*)
7606     lt_cv_dlopen="dlopen"
7607     lt_cv_dlopen_libs=
7608    ;;
7609
7610   darwin*)
7611   # if libdl is installed we need to link against it
7612     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7613 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7614 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7615   echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617   ac_check_lib_save_LIBS=$LIBS
7618 LIBS="-ldl  $LIBS"
7619 cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h.  */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h.  */
7625
7626 /* Override any gcc2 internal prototype to avoid an error.  */
7627 #ifdef __cplusplus
7628 extern "C"
7629 #endif
7630 /* We use char because int might match the return type of a gcc2
7631    builtin and then its argument prototype would still apply.  */
7632 char dlopen ();
7633 int
7634 main ()
7635 {
7636 dlopen ();
7637   ;
7638   return 0;
7639 }
7640 _ACEOF
7641 rm -f conftest.$ac_objext conftest$ac_exeext
7642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7643   (eval $ac_link) 2>conftest.er1
7644   ac_status=$?
7645   grep -v '^ *+' conftest.er1 >conftest.err
7646   rm -f conftest.er1
7647   cat conftest.err >&5
7648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649   (exit $ac_status); } &&
7650          { ac_try='test -z "$ac_c_werror_flag"
7651                          || test ! -s conftest.err'
7652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653   (eval $ac_try) 2>&5
7654   ac_status=$?
7655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); }; } &&
7657          { ac_try='test -s conftest$ac_exeext'
7658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659   (eval $ac_try) 2>&5
7660   ac_status=$?
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); }; }; then
7663   ac_cv_lib_dl_dlopen=yes
7664 else
7665   echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7667
7668 ac_cv_lib_dl_dlopen=no
7669 fi
7670 rm -f conftest.err conftest.$ac_objext \
7671       conftest$ac_exeext conftest.$ac_ext
7672 LIBS=$ac_check_lib_save_LIBS
7673 fi
7674 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7675 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7676 if test $ac_cv_lib_dl_dlopen = yes; then
7677   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7678 else
7679
7680     lt_cv_dlopen="dyld"
7681     lt_cv_dlopen_libs=
7682     lt_cv_dlopen_self=yes
7683
7684 fi
7685
7686    ;;
7687
7688   *)
7689     echo "$as_me:$LINENO: checking for shl_load" >&5
7690 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7691 if test "${ac_cv_func_shl_load+set}" = set; then
7692   echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694   cat >conftest.$ac_ext <<_ACEOF
7695 /* confdefs.h.  */
7696 _ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h.  */
7700 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7702 #define shl_load innocuous_shl_load
7703
7704 /* System header to define __stub macros and hopefully few prototypes,
7705     which can conflict with char shl_load (); below.
7706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7707     <limits.h> exists even on freestanding compilers.  */
7708
7709 #ifdef __STDC__
7710 # include <limits.h>
7711 #else
7712 # include <assert.h>
7713 #endif
7714
7715 #undef shl_load
7716
7717 /* Override any gcc2 internal prototype to avoid an error.  */
7718 #ifdef __cplusplus
7719 extern "C"
7720 {
7721 #endif
7722 /* We use char because int might match the return type of a gcc2
7723    builtin and then its argument prototype would still apply.  */
7724 char shl_load ();
7725 /* The GNU C library defines this for functions which it implements
7726     to always fail with ENOSYS.  Some functions are actually named
7727     something starting with __ and the normal name is an alias.  */
7728 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7729 choke me
7730 #else
7731 char (*f) () = shl_load;
7732 #endif
7733 #ifdef __cplusplus
7734 }
7735 #endif
7736
7737 int
7738 main ()
7739 {
7740 return f != shl_load;
7741   ;
7742   return 0;
7743 }
7744 _ACEOF
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747   (eval $ac_link) 2>conftest.er1
7748   ac_status=$?
7749   grep -v '^ *+' conftest.er1 >conftest.err
7750   rm -f conftest.er1
7751   cat conftest.err >&5
7752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753   (exit $ac_status); } &&
7754          { ac_try='test -z "$ac_c_werror_flag"
7755                          || test ! -s conftest.err'
7756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757   (eval $ac_try) 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); }; } &&
7761          { ac_try='test -s conftest$ac_exeext'
7762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763   (eval $ac_try) 2>&5
7764   ac_status=$?
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); }; }; then
7767   ac_cv_func_shl_load=yes
7768 else
7769   echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7771
7772 ac_cv_func_shl_load=no
7773 fi
7774 rm -f conftest.err conftest.$ac_objext \
7775       conftest$ac_exeext conftest.$ac_ext
7776 fi
7777 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7779 if test $ac_cv_func_shl_load = yes; then
7780   lt_cv_dlopen="shl_load"
7781 else
7782   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7783 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7784 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7785   echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787   ac_check_lib_save_LIBS=$LIBS
7788 LIBS="-ldld  $LIBS"
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795
7796 /* Override any gcc2 internal prototype to avoid an error.  */
7797 #ifdef __cplusplus
7798 extern "C"
7799 #endif
7800 /* We use char because int might match the return type of a gcc2
7801    builtin and then its argument prototype would still apply.  */
7802 char shl_load ();
7803 int
7804 main ()
7805 {
7806 shl_load ();
7807   ;
7808   return 0;
7809 }
7810 _ACEOF
7811 rm -f conftest.$ac_objext conftest$ac_exeext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813   (eval $ac_link) 2>conftest.er1
7814   ac_status=$?
7815   grep -v '^ *+' conftest.er1 >conftest.err
7816   rm -f conftest.er1
7817   cat conftest.err >&5
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); } &&
7820          { ac_try='test -z "$ac_c_werror_flag"
7821                          || test ! -s conftest.err'
7822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823   (eval $ac_try) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); }; } &&
7827          { ac_try='test -s conftest$ac_exeext'
7828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829   (eval $ac_try) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; }; then
7833   ac_cv_lib_dld_shl_load=yes
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838 ac_cv_lib_dld_shl_load=no
7839 fi
7840 rm -f conftest.err conftest.$ac_objext \
7841       conftest$ac_exeext conftest.$ac_ext
7842 LIBS=$ac_check_lib_save_LIBS
7843 fi
7844 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7845 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7846 if test $ac_cv_lib_dld_shl_load = yes; then
7847   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7848 else
7849   echo "$as_me:$LINENO: checking for dlopen" >&5
7850 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7851 if test "${ac_cv_func_dlopen+set}" = set; then
7852   echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854   cat >conftest.$ac_ext <<_ACEOF
7855 /* confdefs.h.  */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h.  */
7860 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7862 #define dlopen innocuous_dlopen
7863
7864 /* System header to define __stub macros and hopefully few prototypes,
7865     which can conflict with char dlopen (); below.
7866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7867     <limits.h> exists even on freestanding compilers.  */
7868
7869 #ifdef __STDC__
7870 # include <limits.h>
7871 #else
7872 # include <assert.h>
7873 #endif
7874
7875 #undef dlopen
7876
7877 /* Override any gcc2 internal prototype to avoid an error.  */
7878 #ifdef __cplusplus
7879 extern "C"
7880 {
7881 #endif
7882 /* We use char because int might match the return type of a gcc2
7883    builtin and then its argument prototype would still apply.  */
7884 char dlopen ();
7885 /* The GNU C library defines this for functions which it implements
7886     to always fail with ENOSYS.  Some functions are actually named
7887     something starting with __ and the normal name is an alias.  */
7888 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7889 choke me
7890 #else
7891 char (*f) () = dlopen;
7892 #endif
7893 #ifdef __cplusplus
7894 }
7895 #endif
7896
7897 int
7898 main ()
7899 {
7900 return f != dlopen;
7901   ;
7902   return 0;
7903 }
7904 _ACEOF
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907   (eval $ac_link) 2>conftest.er1
7908   ac_status=$?
7909   grep -v '^ *+' conftest.er1 >conftest.err
7910   rm -f conftest.er1
7911   cat conftest.err >&5
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); } &&
7914          { ac_try='test -z "$ac_c_werror_flag"
7915                          || test ! -s conftest.err'
7916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; } &&
7921          { ac_try='test -s conftest$ac_exeext'
7922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923   (eval $ac_try) 2>&5
7924   ac_status=$?
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); }; }; then
7927   ac_cv_func_dlopen=yes
7928 else
7929   echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7931
7932 ac_cv_func_dlopen=no
7933 fi
7934 rm -f conftest.err conftest.$ac_objext \
7935       conftest$ac_exeext conftest.$ac_ext
7936 fi
7937 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7938 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7939 if test $ac_cv_func_dlopen = yes; then
7940   lt_cv_dlopen="dlopen"
7941 else
7942   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7943 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7945   echo $ECHO_N "(cached) $ECHO_C" >&6
7946 else
7947   ac_check_lib_save_LIBS=$LIBS
7948 LIBS="-ldl  $LIBS"
7949 cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h.  */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h.  */
7955
7956 /* Override any gcc2 internal prototype to avoid an error.  */
7957 #ifdef __cplusplus
7958 extern "C"
7959 #endif
7960 /* We use char because int might match the return type of a gcc2
7961    builtin and then its argument prototype would still apply.  */
7962 char dlopen ();
7963 int
7964 main ()
7965 {
7966 dlopen ();
7967   ;
7968   return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7973   (eval $ac_link) 2>conftest.er1
7974   ac_status=$?
7975   grep -v '^ *+' conftest.er1 >conftest.err
7976   rm -f conftest.er1
7977   cat conftest.err >&5
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); } &&
7980          { ac_try='test -z "$ac_c_werror_flag"
7981                          || test ! -s conftest.err'
7982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983   (eval $ac_try) 2>&5
7984   ac_status=$?
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); }; } &&
7987          { ac_try='test -s conftest$ac_exeext'
7988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989   (eval $ac_try) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; }; then
7993   ac_cv_lib_dl_dlopen=yes
7994 else
7995   echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998 ac_cv_lib_dl_dlopen=no
7999 fi
8000 rm -f conftest.err conftest.$ac_objext \
8001       conftest$ac_exeext conftest.$ac_ext
8002 LIBS=$ac_check_lib_save_LIBS
8003 fi
8004 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8005 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8006 if test $ac_cv_lib_dl_dlopen = yes; then
8007   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8008 else
8009   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8010 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8011 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8012   echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014   ac_check_lib_save_LIBS=$LIBS
8015 LIBS="-lsvld  $LIBS"
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h.  */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h.  */
8022
8023 /* Override any gcc2 internal prototype to avoid an error.  */
8024 #ifdef __cplusplus
8025 extern "C"
8026 #endif
8027 /* We use char because int might match the return type of a gcc2
8028    builtin and then its argument prototype would still apply.  */
8029 char dlopen ();
8030 int
8031 main ()
8032 {
8033 dlopen ();
8034   ;
8035   return 0;
8036 }
8037 _ACEOF
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040   (eval $ac_link) 2>conftest.er1
8041   ac_status=$?
8042   grep -v '^ *+' conftest.er1 >conftest.err
8043   rm -f conftest.er1
8044   cat conftest.err >&5
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } &&
8047          { ac_try='test -z "$ac_c_werror_flag"
8048                          || test ! -s conftest.err'
8049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050   (eval $ac_try) 2>&5
8051   ac_status=$?
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); }; } &&
8054          { ac_try='test -s conftest$ac_exeext'
8055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056   (eval $ac_try) 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; }; then
8060   ac_cv_lib_svld_dlopen=yes
8061 else
8062   echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065 ac_cv_lib_svld_dlopen=no
8066 fi
8067 rm -f conftest.err conftest.$ac_objext \
8068       conftest$ac_exeext conftest.$ac_ext
8069 LIBS=$ac_check_lib_save_LIBS
8070 fi
8071 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8072 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8073 if test $ac_cv_lib_svld_dlopen = yes; then
8074   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8075 else
8076   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8077 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8078 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8079   echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081   ac_check_lib_save_LIBS=$LIBS
8082 LIBS="-ldld  $LIBS"
8083 cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h.  */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h.  */
8089
8090 /* Override any gcc2 internal prototype to avoid an error.  */
8091 #ifdef __cplusplus
8092 extern "C"
8093 #endif
8094 /* We use char because int might match the return type of a gcc2
8095    builtin and then its argument prototype would still apply.  */
8096 char dld_link ();
8097 int
8098 main ()
8099 {
8100 dld_link ();
8101   ;
8102   return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107   (eval $ac_link) 2>conftest.er1
8108   ac_status=$?
8109   grep -v '^ *+' conftest.er1 >conftest.err
8110   rm -f conftest.er1
8111   cat conftest.err >&5
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); } &&
8114          { ac_try='test -z "$ac_c_werror_flag"
8115                          || test ! -s conftest.err'
8116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117   (eval $ac_try) 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; } &&
8121          { ac_try='test -s conftest$ac_exeext'
8122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123   (eval $ac_try) 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; }; then
8127   ac_cv_lib_dld_dld_link=yes
8128 else
8129   echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8131
8132 ac_cv_lib_dld_dld_link=no
8133 fi
8134 rm -f conftest.err conftest.$ac_objext \
8135       conftest$ac_exeext conftest.$ac_ext
8136 LIBS=$ac_check_lib_save_LIBS
8137 fi
8138 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8139 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8140 if test $ac_cv_lib_dld_dld_link = yes; then
8141   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8142 fi
8143
8144
8145 fi
8146
8147
8148 fi
8149
8150
8151 fi
8152
8153
8154 fi
8155
8156
8157 fi
8158
8159     ;;
8160   esac
8161
8162   if test "x$lt_cv_dlopen" != xno; then
8163     enable_dlopen=yes
8164   else
8165     enable_dlopen=no
8166   fi
8167
8168   case $lt_cv_dlopen in
8169   dlopen)
8170     save_CPPFLAGS="$CPPFLAGS"
8171     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8172
8173     save_LDFLAGS="$LDFLAGS"
8174     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8175
8176     save_LIBS="$LIBS"
8177     LIBS="$lt_cv_dlopen_libs $LIBS"
8178
8179     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8180 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8181 if test "${lt_cv_dlopen_self+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184           if test "$cross_compiling" = yes; then :
8185   lt_cv_dlopen_self=cross
8186 else
8187   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8188   lt_status=$lt_dlunknown
8189   cat > conftest.$ac_ext <<EOF
8190 #line 8190 "configure"
8191 #include "confdefs.h"
8192
8193 #if HAVE_DLFCN_H
8194 #include <dlfcn.h>
8195 #endif
8196
8197 #include <stdio.h>
8198
8199 #ifdef RTLD_GLOBAL
8200 #  define LT_DLGLOBAL           RTLD_GLOBAL
8201 #else
8202 #  ifdef DL_GLOBAL
8203 #    define LT_DLGLOBAL         DL_GLOBAL
8204 #  else
8205 #    define LT_DLGLOBAL         0
8206 #  endif
8207 #endif
8208
8209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8210    find out it does not work in some platform. */
8211 #ifndef LT_DLLAZY_OR_NOW
8212 #  ifdef RTLD_LAZY
8213 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8214 #  else
8215 #    ifdef DL_LAZY
8216 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8217 #    else
8218 #      ifdef RTLD_NOW
8219 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8220 #      else
8221 #        ifdef DL_NOW
8222 #          define LT_DLLAZY_OR_NOW      DL_NOW
8223 #        else
8224 #          define LT_DLLAZY_OR_NOW      0
8225 #        endif
8226 #      endif
8227 #    endif
8228 #  endif
8229 #endif
8230
8231 #ifdef __cplusplus
8232 extern "C" void exit (int);
8233 #endif
8234
8235 void fnord() { int i=42;}
8236 int main ()
8237 {
8238   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8239   int status = $lt_dlunknown;
8240
8241   if (self)
8242     {
8243       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8244       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8245       /* dlclose (self); */
8246     }
8247
8248     exit (status);
8249 }
8250 EOF
8251   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8252   (eval $ac_link) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8256     (./conftest; exit; ) 2>/dev/null
8257     lt_status=$?
8258     case x$lt_status in
8259       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8260       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8261       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8262     esac
8263   else :
8264     # compilation failed
8265     lt_cv_dlopen_self=no
8266   fi
8267 fi
8268 rm -fr conftest*
8269
8270
8271 fi
8272 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8273 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8274
8275     if test "x$lt_cv_dlopen_self" = xyes; then
8276       LDFLAGS="$LDFLAGS $link_static_flag"
8277       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8278 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8279 if test "${lt_cv_dlopen_self_static+set}" = set; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282           if test "$cross_compiling" = yes; then :
8283   lt_cv_dlopen_self_static=cross
8284 else
8285   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8286   lt_status=$lt_dlunknown
8287   cat > conftest.$ac_ext <<EOF
8288 #line 8288 "configure"
8289 #include "confdefs.h"
8290
8291 #if HAVE_DLFCN_H
8292 #include <dlfcn.h>
8293 #endif
8294
8295 #include <stdio.h>
8296
8297 #ifdef RTLD_GLOBAL
8298 #  define LT_DLGLOBAL           RTLD_GLOBAL
8299 #else
8300 #  ifdef DL_GLOBAL
8301 #    define LT_DLGLOBAL         DL_GLOBAL
8302 #  else
8303 #    define LT_DLGLOBAL         0
8304 #  endif
8305 #endif
8306
8307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8308    find out it does not work in some platform. */
8309 #ifndef LT_DLLAZY_OR_NOW
8310 #  ifdef RTLD_LAZY
8311 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8312 #  else
8313 #    ifdef DL_LAZY
8314 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8315 #    else
8316 #      ifdef RTLD_NOW
8317 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8318 #      else
8319 #        ifdef DL_NOW
8320 #          define LT_DLLAZY_OR_NOW      DL_NOW
8321 #        else
8322 #          define LT_DLLAZY_OR_NOW      0
8323 #        endif
8324 #      endif
8325 #    endif
8326 #  endif
8327 #endif
8328
8329 #ifdef __cplusplus
8330 extern "C" void exit (int);
8331 #endif
8332
8333 void fnord() { int i=42;}
8334 int main ()
8335 {
8336   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8337   int status = $lt_dlunknown;
8338
8339   if (self)
8340     {
8341       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8342       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8343       /* dlclose (self); */
8344     }
8345
8346     exit (status);
8347 }
8348 EOF
8349   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8350   (eval $ac_link) 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8354     (./conftest; exit; ) 2>/dev/null
8355     lt_status=$?
8356     case x$lt_status in
8357       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8358       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8359       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8360     esac
8361   else :
8362     # compilation failed
8363     lt_cv_dlopen_self_static=no
8364   fi
8365 fi
8366 rm -fr conftest*
8367
8368
8369 fi
8370 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8371 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8372     fi
8373
8374     CPPFLAGS="$save_CPPFLAGS"
8375     LDFLAGS="$save_LDFLAGS"
8376     LIBS="$save_LIBS"
8377     ;;
8378   esac
8379
8380   case $lt_cv_dlopen_self in
8381   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8382   *) enable_dlopen_self=unknown ;;
8383   esac
8384
8385   case $lt_cv_dlopen_self_static in
8386   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8387   *) enable_dlopen_self_static=unknown ;;
8388   esac
8389 fi
8390
8391
8392 # Report which librarie types wil actually be built
8393 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8394 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8395 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8396 echo "${ECHO_T}$can_build_shared" >&6
8397
8398 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8399 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8400 test "$can_build_shared" = "no" && enable_shared=no
8401
8402 # On AIX, shared libraries and static libraries use the same namespace, and
8403 # are all built from PIC.
8404 case "$host_os" in
8405 aix3*)
8406   test "$enable_shared" = yes && enable_static=no
8407   if test -n "$RANLIB"; then
8408     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8409     postinstall_cmds='$RANLIB $lib'
8410   fi
8411   ;;
8412
8413 aix4* | aix5*)
8414   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8415     test "$enable_shared" = yes && enable_static=no
8416   fi
8417     ;;
8418 esac
8419 echo "$as_me:$LINENO: result: $enable_shared" >&5
8420 echo "${ECHO_T}$enable_shared" >&6
8421
8422 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8423 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8424 # Make sure either enable_shared or enable_static is yes.
8425 test "$enable_shared" = yes || enable_static=yes
8426 echo "$as_me:$LINENO: result: $enable_static" >&5
8427 echo "${ECHO_T}$enable_static" >&6
8428
8429 # The else clause should only fire when bootstrapping the
8430 # libtool distribution, otherwise you forgot to ship ltmain.sh
8431 # with your package, and you will get complaints that there are
8432 # no rules to generate ltmain.sh.
8433 if test -f "$ltmain"; then
8434   # See if we are running on zsh, and set the options which allow our commands through
8435   # without removal of \ escapes.
8436   if test -n "${ZSH_VERSION+set}" ; then
8437     setopt NO_GLOB_SUBST
8438   fi
8439   # Now quote all the things that may contain metacharacters while being
8440   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8441   # variables and quote the copies for generation of the libtool script.
8442   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8443     SED SHELL STRIP \
8444     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8445     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8446     deplibs_check_method reload_flag reload_cmds need_locks \
8447     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8448     lt_cv_sys_global_symbol_to_c_name_address \
8449     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8450     old_postinstall_cmds old_postuninstall_cmds \
8451     compiler \
8452     CC \
8453     LD \
8454     lt_prog_compiler_wl \
8455     lt_prog_compiler_pic \
8456     lt_prog_compiler_static \
8457     lt_prog_compiler_no_builtin_flag \
8458     export_dynamic_flag_spec \
8459     thread_safe_flag_spec \
8460     whole_archive_flag_spec \
8461     enable_shared_with_static_runtimes \
8462     old_archive_cmds \
8463     old_archive_from_new_cmds \
8464     predep_objects \
8465     postdep_objects \
8466     predeps \
8467     postdeps \
8468     compiler_lib_search_path \
8469     archive_cmds \
8470     archive_expsym_cmds \
8471     postinstall_cmds \
8472     postuninstall_cmds \
8473     old_archive_from_expsyms_cmds \
8474     allow_undefined_flag \
8475     no_undefined_flag \
8476     export_symbols_cmds \
8477     hardcode_libdir_flag_spec \
8478     hardcode_libdir_flag_spec_ld \
8479     hardcode_libdir_separator \
8480     hardcode_automatic \
8481     module_cmds \
8482     module_expsym_cmds \
8483     lt_cv_prog_compiler_c_o \
8484     exclude_expsyms \
8485     include_expsyms; do
8486
8487     case $var in
8488     old_archive_cmds | \
8489     old_archive_from_new_cmds | \
8490     archive_cmds | \
8491     archive_expsym_cmds | \
8492     module_cmds | \
8493     module_expsym_cmds | \
8494     old_archive_from_expsyms_cmds | \
8495     export_symbols_cmds | \
8496     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8497     postinstall_cmds | postuninstall_cmds | \
8498     old_postinstall_cmds | old_postuninstall_cmds | \
8499     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8500       # Double-quote double-evaled strings.
8501       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8502       ;;
8503     *)
8504       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8505       ;;
8506     esac
8507   done
8508
8509   case $lt_echo in
8510   *'\$0 --fallback-echo"')
8511     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8512     ;;
8513   esac
8514
8515 cfgfile="${ofile}T"
8516   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8517   $rm -f "$cfgfile"
8518   { echo "$as_me:$LINENO: creating $ofile" >&5
8519 echo "$as_me: creating $ofile" >&6;}
8520
8521   cat <<__EOF__ >> "$cfgfile"
8522 #! $SHELL
8523
8524 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8525 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8526 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8527 #
8528 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8529 # Free Software Foundation, Inc.
8530 #
8531 # This file is part of GNU Libtool:
8532 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8533 #
8534 # This program is free software; you can redistribute it and/or modify
8535 # it under the terms of the GNU General Public License as published by
8536 # the Free Software Foundation; either version 2 of the License, or
8537 # (at your option) any later version.
8538 #
8539 # This program is distributed in the hope that it will be useful, but
8540 # WITHOUT ANY WARRANTY; without even the implied warranty of
8541 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8542 # General Public License for more details.
8543 #
8544 # You should have received a copy of the GNU General Public License
8545 # along with this program; if not, write to the Free Software
8546 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8547 #
8548 # As a special exception to the GNU General Public License, if you
8549 # distribute this file as part of a program that contains a
8550 # configuration script generated by Autoconf, you may include it under
8551 # the same distribution terms that you use for the rest of that program.
8552
8553 # A sed program that does not truncate output.
8554 SED=$lt_SED
8555
8556 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8557 Xsed="$SED -e s/^X//"
8558
8559 # The HP-UX ksh and POSIX shell print the target directory to stdout
8560 # if CDPATH is set.
8561 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8562
8563 # The names of the tagged configurations supported by this script.
8564 available_tags=
8565
8566 # ### BEGIN LIBTOOL CONFIG
8567
8568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8569
8570 # Shell to use when invoking shell scripts.
8571 SHELL=$lt_SHELL
8572
8573 # Whether or not to build shared libraries.
8574 build_libtool_libs=$enable_shared
8575
8576 # Whether or not to build static libraries.
8577 build_old_libs=$enable_static
8578
8579 # Whether or not to add -lc for building shared libraries.
8580 build_libtool_need_lc=$archive_cmds_need_lc
8581
8582 # Whether or not to disallow shared libs when runtime libs are static
8583 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8584
8585 # Whether or not to optimize for fast installation.
8586 fast_install=$enable_fast_install
8587
8588 # The host system.
8589 host_alias=$host_alias
8590 host=$host
8591
8592 # An echo program that does not interpret backslashes.
8593 echo=$lt_echo
8594
8595 # The archiver.
8596 AR=$lt_AR
8597 AR_FLAGS=$lt_AR_FLAGS
8598
8599 # A C compiler.
8600 LTCC=$lt_LTCC
8601
8602 # A language-specific compiler.
8603 CC=$lt_compiler
8604
8605 # Is the compiler the GNU C compiler?
8606 with_gcc=$GCC
8607
8608 # An ERE matcher.
8609 EGREP=$lt_EGREP
8610
8611 # The linker used to build libraries.
8612 LD=$lt_LD
8613
8614 # Whether we need hard or soft links.
8615 LN_S=$lt_LN_S
8616
8617 # A BSD-compatible nm program.
8618 NM=$lt_NM
8619
8620 # A symbol stripping program
8621 STRIP=$lt_STRIP
8622
8623 # Used to examine libraries when file_magic_cmd begins "file"
8624 MAGIC_CMD=$MAGIC_CMD
8625
8626 # Used on cygwin: DLL creation program.
8627 DLLTOOL="$DLLTOOL"
8628
8629 # Used on cygwin: object dumper.
8630 OBJDUMP="$OBJDUMP"
8631
8632 # Used on cygwin: assembler.
8633 AS="$AS"
8634
8635 # The name of the directory that contains temporary libtool files.
8636 objdir=$objdir
8637
8638 # How to create reloadable object files.
8639 reload_flag=$lt_reload_flag
8640 reload_cmds=$lt_reload_cmds
8641
8642 # How to pass a linker flag through the compiler.
8643 wl=$lt_lt_prog_compiler_wl
8644
8645 # Object file suffix (normally "o").
8646 objext="$ac_objext"
8647
8648 # Old archive suffix (normally "a").
8649 libext="$libext"
8650
8651 # Shared library suffix (normally ".so").
8652 shrext_cmds='$shrext_cmds'
8653
8654 # Executable file suffix (normally "").
8655 exeext="$exeext"
8656
8657 # Additional compiler flags for building library objects.
8658 pic_flag=$lt_lt_prog_compiler_pic
8659 pic_mode=$pic_mode
8660
8661 # What is the maximum length of a command?
8662 max_cmd_len=$lt_cv_sys_max_cmd_len
8663
8664 # Does compiler simultaneously support -c and -o options?
8665 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8666
8667 # Must we lock files when doing compilation ?
8668 need_locks=$lt_need_locks
8669
8670 # Do we need the lib prefix for modules?
8671 need_lib_prefix=$need_lib_prefix
8672
8673 # Do we need a version for libraries?
8674 need_version=$need_version
8675
8676 # Whether dlopen is supported.
8677 dlopen_support=$enable_dlopen
8678
8679 # Whether dlopen of programs is supported.
8680 dlopen_self=$enable_dlopen_self
8681
8682 # Whether dlopen of statically linked programs is supported.
8683 dlopen_self_static=$enable_dlopen_self_static
8684
8685 # Compiler flag to prevent dynamic linking.
8686 link_static_flag=$lt_lt_prog_compiler_static
8687
8688 # Compiler flag to turn off builtin functions.
8689 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8690
8691 # Compiler flag to allow reflexive dlopens.
8692 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8693
8694 # Compiler flag to generate shared objects directly from archives.
8695 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8696
8697 # Compiler flag to generate thread-safe objects.
8698 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8699
8700 # Library versioning type.
8701 version_type=$version_type
8702
8703 # Format of library name prefix.
8704 libname_spec=$lt_libname_spec
8705
8706 # List of archive names.  First name is the real one, the rest are links.
8707 # The last name is the one that the linker finds with -lNAME.
8708 library_names_spec=$lt_library_names_spec
8709
8710 # The coded name of the library, if different from the real name.
8711 soname_spec=$lt_soname_spec
8712
8713 # Commands used to build and install an old-style archive.
8714 RANLIB=$lt_RANLIB
8715 old_archive_cmds=$lt_old_archive_cmds
8716 old_postinstall_cmds=$lt_old_postinstall_cmds
8717 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8718
8719 # Create an old-style archive from a shared archive.
8720 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8721
8722 # Create a temporary old-style archive to link instead of a shared archive.
8723 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8724
8725 # Commands used to build and install a shared archive.
8726 archive_cmds=$lt_archive_cmds
8727 archive_expsym_cmds=$lt_archive_expsym_cmds
8728 postinstall_cmds=$lt_postinstall_cmds
8729 postuninstall_cmds=$lt_postuninstall_cmds
8730
8731 # Commands used to build a loadable module (assumed same as above if empty)
8732 module_cmds=$lt_module_cmds
8733 module_expsym_cmds=$lt_module_expsym_cmds
8734
8735 # Commands to strip libraries.
8736 old_striplib=$lt_old_striplib
8737 striplib=$lt_striplib
8738
8739 # Dependencies to place before the objects being linked to create a
8740 # shared library.
8741 predep_objects=$lt_predep_objects
8742
8743 # Dependencies to place after the objects being linked to create a
8744 # shared library.
8745 postdep_objects=$lt_postdep_objects
8746
8747 # Dependencies to place before the objects being linked to create a
8748 # shared library.
8749 predeps=$lt_predeps
8750
8751 # Dependencies to place after the objects being linked to create a
8752 # shared library.
8753 postdeps=$lt_postdeps
8754
8755 # The library search path used internally by the compiler when linking
8756 # a shared library.
8757 compiler_lib_search_path=$lt_compiler_lib_search_path
8758
8759 # Method to check whether dependent libraries are shared objects.
8760 deplibs_check_method=$lt_deplibs_check_method
8761
8762 # Command to use when deplibs_check_method == file_magic.
8763 file_magic_cmd=$lt_file_magic_cmd
8764
8765 # Flag that allows shared libraries with undefined symbols to be built.
8766 allow_undefined_flag=$lt_allow_undefined_flag
8767
8768 # Flag that forces no undefined symbols.
8769 no_undefined_flag=$lt_no_undefined_flag
8770
8771 # Commands used to finish a libtool library installation in a directory.
8772 finish_cmds=$lt_finish_cmds
8773
8774 # Same as above, but a single script fragment to be evaled but not shown.
8775 finish_eval=$lt_finish_eval
8776
8777 # Take the output of nm and produce a listing of raw symbols and C names.
8778 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8779
8780 # Transform the output of nm in a proper C declaration
8781 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8782
8783 # Transform the output of nm in a C name address pair
8784 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8785
8786 # This is the shared library runtime path variable.
8787 runpath_var=$runpath_var
8788
8789 # This is the shared library path variable.
8790 shlibpath_var=$shlibpath_var
8791
8792 # Is shlibpath searched before the hard-coded library search path?
8793 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8794
8795 # How to hardcode a shared library path into an executable.
8796 hardcode_action=$hardcode_action
8797
8798 # Whether we should hardcode library paths into libraries.
8799 hardcode_into_libs=$hardcode_into_libs
8800
8801 # Flag to hardcode \$libdir into a binary during linking.
8802 # This must work even if \$libdir does not exist.
8803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8804
8805 # If ld is used when linking, flag to hardcode \$libdir into
8806 # a binary during linking. This must work even if \$libdir does
8807 # not exist.
8808 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8809
8810 # Whether we need a single -rpath flag with a separated argument.
8811 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8812
8813 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8814 # resulting binary.
8815 hardcode_direct=$hardcode_direct
8816
8817 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8818 # resulting binary.
8819 hardcode_minus_L=$hardcode_minus_L
8820
8821 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8822 # the resulting binary.
8823 hardcode_shlibpath_var=$hardcode_shlibpath_var
8824
8825 # Set to yes if building a shared library automatically hardcodes DIR into the library
8826 # and all subsequent libraries and executables linked against it.
8827 hardcode_automatic=$hardcode_automatic
8828
8829 # Variables whose values should be saved in libtool wrapper scripts and
8830 # restored at relink time.
8831 variables_saved_for_relink="$variables_saved_for_relink"
8832
8833 # Whether libtool must link a program against all its dependency libraries.
8834 link_all_deplibs=$link_all_deplibs
8835
8836 # Compile-time system search path for libraries
8837 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8838
8839 # Run-time system search path for libraries
8840 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8841
8842 # Fix the shell variable \$srcfile for the compiler.
8843 fix_srcfile_path="$fix_srcfile_path"
8844
8845 # Set to yes if exported symbols are required.
8846 always_export_symbols=$always_export_symbols
8847
8848 # The commands to list exported symbols.
8849 export_symbols_cmds=$lt_export_symbols_cmds
8850
8851 # The commands to extract the exported symbol list from a shared archive.
8852 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8853
8854 # Symbols that should not be listed in the preloaded symbols.
8855 exclude_expsyms=$lt_exclude_expsyms
8856
8857 # Symbols that must always be exported.
8858 include_expsyms=$lt_include_expsyms
8859
8860 # ### END LIBTOOL CONFIG
8861
8862 __EOF__
8863
8864
8865   case $host_os in
8866   aix3*)
8867     cat <<\EOF >> "$cfgfile"
8868
8869 # AIX sometimes has problems with the GCC collect2 program.  For some
8870 # reason, if we set the COLLECT_NAMES environment variable, the problems
8871 # vanish in a puff of smoke.
8872 if test "X${COLLECT_NAMES+set}" != Xset; then
8873   COLLECT_NAMES=
8874   export COLLECT_NAMES
8875 fi
8876 EOF
8877     ;;
8878   esac
8879
8880   # We use sed instead of cat because bash on DJGPP gets confused if
8881   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8882   # text mode, it properly converts lines to CR/LF.  This bash problem
8883   # is reportedly fixed, but why not run on old versions too?
8884   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8885
8886   mv -f "$cfgfile" "$ofile" || \
8887     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8888   chmod +x "$ofile"
8889
8890 else
8891   # If there is no Makefile yet, we rely on a make rule to execute
8892   # `config.status --recheck' to rerun these tests and create the
8893   # libtool script then.
8894   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8895   if test -f "$ltmain_in"; then
8896     test -f Makefile && make "$ltmain"
8897   fi
8898 fi
8899
8900
8901 ac_ext=c
8902 ac_cpp='$CPP $CPPFLAGS'
8903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8906
8907 CC="$lt_save_CC"
8908
8909
8910 # Check whether --with-tags or --without-tags was given.
8911 if test "${with_tags+set}" = set; then
8912   withval="$with_tags"
8913   tagnames="$withval"
8914 fi;
8915
8916 if test -f "$ltmain" && test -n "$tagnames"; then
8917   if test ! -f "${ofile}"; then
8918     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8919 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8920   fi
8921
8922   if test -z "$LTCC"; then
8923     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8924     if test -z "$LTCC"; then
8925       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8926 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8927     else
8928       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8929 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8930     fi
8931   fi
8932
8933   # Extract list of available tagged configurations in $ofile.
8934   # Note that this assumes the entire list is on one line.
8935   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8936
8937   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8938   for tagname in $tagnames; do
8939     IFS="$lt_save_ifs"
8940     # Check whether tagname contains only valid characters
8941     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8942     "") ;;
8943     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8944 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8945    { (exit 1); exit 1; }; }
8946         ;;
8947     esac
8948
8949     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8950     then
8951       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8952 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8953    { (exit 1); exit 1; }; }
8954     fi
8955
8956     # Update the list of available tags.
8957     if test -n "$tagname"; then
8958       echo appending configuration tag \"$tagname\" to $ofile
8959
8960       case $tagname in
8961       CXX)
8962         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8963             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8964             (test "X$CXX" != "Xg++"))) ; then
8965           ac_ext=cc
8966 ac_cpp='$CXXCPP $CPPFLAGS'
8967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8970
8971
8972
8973
8974 archive_cmds_need_lc_CXX=no
8975 allow_undefined_flag_CXX=
8976 always_export_symbols_CXX=no
8977 archive_expsym_cmds_CXX=
8978 export_dynamic_flag_spec_CXX=
8979 hardcode_direct_CXX=no
8980 hardcode_libdir_flag_spec_CXX=
8981 hardcode_libdir_flag_spec_ld_CXX=
8982 hardcode_libdir_separator_CXX=
8983 hardcode_minus_L_CXX=no
8984 hardcode_automatic_CXX=no
8985 module_cmds_CXX=
8986 module_expsym_cmds_CXX=
8987 link_all_deplibs_CXX=unknown
8988 old_archive_cmds_CXX=$old_archive_cmds
8989 no_undefined_flag_CXX=
8990 whole_archive_flag_spec_CXX=
8991 enable_shared_with_static_runtimes_CXX=no
8992
8993 # Dependencies to place before and after the object being linked:
8994 predep_objects_CXX=
8995 postdep_objects_CXX=
8996 predeps_CXX=
8997 postdeps_CXX=
8998 compiler_lib_search_path_CXX=
8999
9000 # Source file extension for C++ test sources.
9001 ac_ext=cc
9002
9003 # Object file extension for compiled C++ test sources.
9004 objext=o
9005 objext_CXX=$objext
9006
9007 # Code to be used in simple compile tests
9008 lt_simple_compile_test_code="int some_variable = 0;\n"
9009
9010 # Code to be used in simple link tests
9011 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9012
9013 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9014
9015 # If no C compiler was specified, use CC.
9016 LTCC=${LTCC-"$CC"}
9017
9018 # Allow CC to be a program name with arguments.
9019 compiler=$CC
9020
9021
9022 # Allow CC to be a program name with arguments.
9023 lt_save_CC=$CC
9024 lt_save_LD=$LD
9025 lt_save_GCC=$GCC
9026 GCC=$GXX
9027 lt_save_with_gnu_ld=$with_gnu_ld
9028 lt_save_path_LD=$lt_cv_path_LD
9029 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9030   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9031 else
9032   unset lt_cv_prog_gnu_ld
9033 fi
9034 if test -n "${lt_cv_path_LDCXX+set}"; then
9035   lt_cv_path_LD=$lt_cv_path_LDCXX
9036 else
9037   unset lt_cv_path_LD
9038 fi
9039 test -z "${LDCXX+set}" || LD=$LDCXX
9040 CC=${CXX-"c++"}
9041 compiler=$CC
9042 compiler_CXX=$CC
9043 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9044
9045 # We don't want -fno-exception wen compiling C++ code, so set the
9046 # no_builtin_flag separately
9047 if test "$GXX" = yes; then
9048   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9049 else
9050   lt_prog_compiler_no_builtin_flag_CXX=
9051 fi
9052
9053 if test "$GXX" = yes; then
9054   # Set up default GNU C++ configuration
9055
9056
9057 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9058 if test "${with_gnu_ld+set}" = set; then
9059   withval="$with_gnu_ld"
9060   test "$withval" = no || with_gnu_ld=yes
9061 else
9062   with_gnu_ld=no
9063 fi;
9064 ac_prog=ld
9065 if test "$GCC" = yes; then
9066   # Check if gcc -print-prog-name=ld gives a path.
9067   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9068 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9069   case $host in
9070   *-*-mingw*)
9071     # gcc leaves a trailing carriage return which upsets mingw
9072     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9073   *)
9074     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9075   esac
9076   case $ac_prog in
9077     # Accept absolute paths.
9078     [\\/]* | ?:[\\/]*)
9079       re_direlt='/[^/][^/]*/\.\./'
9080       # Canonicalize the pathname of ld
9081       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9082       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9083         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9084       done
9085       test -z "$LD" && LD="$ac_prog"
9086       ;;
9087   "")
9088     # If it fails, then pretend we aren't using GCC.
9089     ac_prog=ld
9090     ;;
9091   *)
9092     # If it is relative, then search for the first ld in PATH.
9093     with_gnu_ld=unknown
9094     ;;
9095   esac
9096 elif test "$with_gnu_ld" = yes; then
9097   echo "$as_me:$LINENO: checking for GNU ld" >&5
9098 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9099 else
9100   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9101 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9102 fi
9103 if test "${lt_cv_path_LD+set}" = set; then
9104   echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106   if test -z "$LD"; then
9107   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9108   for ac_dir in $PATH; do
9109     IFS="$lt_save_ifs"
9110     test -z "$ac_dir" && ac_dir=.
9111     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9112       lt_cv_path_LD="$ac_dir/$ac_prog"
9113       # Check to see if the program is GNU ld.  I'd rather use --version,
9114       # but apparently some GNU ld's only accept -v.
9115       # Break only if it was the GNU/non-GNU ld that we prefer.
9116       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9117       *GNU* | *'with BFD'*)
9118         test "$with_gnu_ld" != no && break
9119         ;;
9120       *)
9121         test "$with_gnu_ld" != yes && break
9122         ;;
9123       esac
9124     fi
9125   done
9126   IFS="$lt_save_ifs"
9127 else
9128   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9129 fi
9130 fi
9131
9132 LD="$lt_cv_path_LD"
9133 if test -n "$LD"; then
9134   echo "$as_me:$LINENO: result: $LD" >&5
9135 echo "${ECHO_T}$LD" >&6
9136 else
9137   echo "$as_me:$LINENO: result: no" >&5
9138 echo "${ECHO_T}no" >&6
9139 fi
9140 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9141 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9142    { (exit 1); exit 1; }; }
9143 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9144 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9145 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9146   echo $ECHO_N "(cached) $ECHO_C" >&6
9147 else
9148   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9149 case `$LD -v 2>&1 </dev/null` in
9150 *GNU* | *'with BFD'*)
9151   lt_cv_prog_gnu_ld=yes
9152   ;;
9153 *)
9154   lt_cv_prog_gnu_ld=no
9155   ;;
9156 esac
9157 fi
9158 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9159 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9160 with_gnu_ld=$lt_cv_prog_gnu_ld
9161
9162
9163
9164   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9165   # archiving commands below assume that GNU ld is being used.
9166   if test "$with_gnu_ld" = yes; then
9167     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9168     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'
9169
9170     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9171     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9172
9173     # If archive_cmds runs LD, not CC, wlarc should be empty
9174     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9175     #     investigate it a little bit more. (MM)
9176     wlarc='${wl}'
9177
9178     # ancient GNU ld didn't support --whole-archive et. al.
9179     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9180         grep 'no-whole-archive' > /dev/null; then
9181       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9182     else
9183       whole_archive_flag_spec_CXX=
9184     fi
9185   else
9186     with_gnu_ld=no
9187     wlarc=
9188
9189     # A generic and very simple default shared library creation
9190     # command for GNU C++ for the case where it uses the native
9191     # linker, instead of GNU ld.  If possible, this setting should
9192     # overridden to take advantage of the native linker features on
9193     # the platform it is being used on.
9194     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9195   fi
9196
9197   # Commands to make compiler produce verbose output that lists
9198   # what "hidden" libraries, object files and flags are used when
9199   # linking a shared library.
9200   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9201
9202 else
9203   GXX=no
9204   with_gnu_ld=no
9205   wlarc=
9206 fi
9207
9208 # PORTME: fill in a description of your system's C++ link characteristics
9209 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9210 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9211 ld_shlibs_CXX=yes
9212 case $host_os in
9213   aix3*)
9214     # FIXME: insert proper C++ library support
9215     ld_shlibs_CXX=no
9216     ;;
9217   aix4* | aix5*)
9218     if test "$host_cpu" = ia64; then
9219       # On IA64, the linker does run time linking by default, so we don't
9220       # have to do anything special.
9221       aix_use_runtimelinking=no
9222       exp_sym_flag='-Bexport'
9223       no_entry_flag=""
9224     else
9225       aix_use_runtimelinking=no
9226
9227       # Test if we are trying to use run time linking or normal
9228       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9229       # need to do runtime linking.
9230       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9231         for ld_flag in $LDFLAGS; do
9232           case $ld_flag in
9233           *-brtl*)
9234             aix_use_runtimelinking=yes
9235             break
9236             ;;
9237           esac
9238         done
9239       esac
9240
9241       exp_sym_flag='-bexport'
9242       no_entry_flag='-bnoentry'
9243     fi
9244
9245     # When large executables or shared objects are built, AIX ld can
9246     # have problems creating the table of contents.  If linking a library
9247     # or program results in "error TOC overflow" add -mminimal-toc to
9248     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9249     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9250
9251     archive_cmds_CXX=''
9252     hardcode_direct_CXX=yes
9253     hardcode_libdir_separator_CXX=':'
9254     link_all_deplibs_CXX=yes
9255
9256     if test "$GXX" = yes; then
9257       case $host_os in aix4.012|aix4.012.*)
9258       # We only want to do this on AIX 4.2 and lower, the check
9259       # below for broken collect2 doesn't work under 4.3+
9260         collect2name=`${CC} -print-prog-name=collect2`
9261         if test -f "$collect2name" && \
9262            strings "$collect2name" | grep resolve_lib_name >/dev/null
9263         then
9264           # We have reworked collect2
9265           hardcode_direct_CXX=yes
9266         else
9267           # We have old collect2
9268           hardcode_direct_CXX=unsupported
9269           # It fails to find uninstalled libraries when the uninstalled
9270           # path is not listed in the libpath.  Setting hardcode_minus_L
9271           # to unsupported forces relinking
9272           hardcode_minus_L_CXX=yes
9273           hardcode_libdir_flag_spec_CXX='-L$libdir'
9274           hardcode_libdir_separator_CXX=
9275         fi
9276       esac
9277       shared_flag='-shared'
9278     else
9279       # not using gcc
9280       if test "$host_cpu" = ia64; then
9281         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9282         # chokes on -Wl,-G. The following line is correct:
9283         shared_flag='-G'
9284       else
9285         if test "$aix_use_runtimelinking" = yes; then
9286           shared_flag='${wl}-G'
9287         else
9288           shared_flag='${wl}-bM:SRE'
9289         fi
9290       fi
9291     fi
9292
9293     # It seems that -bexpall does not export symbols beginning with
9294     # underscore (_), so it is better to generate a list of symbols to export.
9295     always_export_symbols_CXX=yes
9296     if test "$aix_use_runtimelinking" = yes; then
9297       # Warning - without using the other runtime loading flags (-brtl),
9298       # -berok will link without error, but may produce a broken library.
9299       allow_undefined_flag_CXX='-berok'
9300       # Determine the default libpath from the value encoded in an empty executable.
9301       cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h.  */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h.  */
9307
9308 int
9309 main ()
9310 {
9311
9312   ;
9313   return 0;
9314 }
9315 _ACEOF
9316 rm -f conftest.$ac_objext conftest$ac_exeext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9318   (eval $ac_link) 2>conftest.er1
9319   ac_status=$?
9320   grep -v '^ *+' conftest.er1 >conftest.err
9321   rm -f conftest.er1
9322   cat conftest.err >&5
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); } &&
9325          { ac_try='test -z "$ac_cxx_werror_flag"
9326                          || test ! -s conftest.err'
9327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328   (eval $ac_try) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); }; } &&
9332          { ac_try='test -s conftest$ac_exeext'
9333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334   (eval $ac_try) 2>&5
9335   ac_status=$?
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   (exit $ac_status); }; }; then
9338
9339 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9340 }'`
9341 # Check for a 64-bit object if we didn't find anything.
9342 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; }
9343 }'`; fi
9344 else
9345   echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9347
9348 fi
9349 rm -f conftest.err conftest.$ac_objext \
9350       conftest$ac_exeext conftest.$ac_ext
9351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9352
9353       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9354
9355       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"
9356      else
9357       if test "$host_cpu" = ia64; then
9358         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9359         allow_undefined_flag_CXX="-z nodefs"
9360         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"
9361       else
9362         # Determine the default libpath from the value encoded in an empty executable.
9363         cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h.  */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h.  */
9369
9370 int
9371 main ()
9372 {
9373
9374   ;
9375   return 0;
9376 }
9377 _ACEOF
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380   (eval $ac_link) 2>conftest.er1
9381   ac_status=$?
9382   grep -v '^ *+' conftest.er1 >conftest.err
9383   rm -f conftest.er1
9384   cat conftest.err >&5
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); } &&
9387          { ac_try='test -z "$ac_cxx_werror_flag"
9388                          || test ! -s conftest.err'
9389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390   (eval $ac_try) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; } &&
9394          { ac_try='test -s conftest$ac_exeext'
9395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396   (eval $ac_try) 2>&5
9397   ac_status=$?
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); }; }; then
9400
9401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9402 }'`
9403 # Check for a 64-bit object if we didn't find anything.
9404 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; }
9405 }'`; fi
9406 else
9407   echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410 fi
9411 rm -f conftest.err conftest.$ac_objext \
9412       conftest$ac_exeext conftest.$ac_ext
9413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9414
9415         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9416         # Warning - without using the other run time loading flags,
9417         # -berok will link without error, but may produce a broken library.
9418         no_undefined_flag_CXX=' ${wl}-bernotok'
9419         allow_undefined_flag_CXX=' ${wl}-berok'
9420         # -bexpall does not export symbols beginning with underscore (_)
9421         always_export_symbols_CXX=yes
9422         # Exported symbols can be pulled into shared objects from archives
9423         whole_archive_flag_spec_CXX=' '
9424         archive_cmds_need_lc_CXX=yes
9425         # This is similar to how AIX traditionally builds it's shared libraries.
9426         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'
9427       fi
9428     fi
9429     ;;
9430   chorus*)
9431     case $cc_basename in
9432       *)
9433         # FIXME: insert proper C++ library support
9434         ld_shlibs_CXX=no
9435         ;;
9436     esac
9437     ;;
9438
9439
9440   cygwin* | mingw* | pw32*)
9441     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9442     # as there is no search path for DLLs.
9443     hardcode_libdir_flag_spec_CXX='-L$libdir'
9444     allow_undefined_flag_CXX=unsupported
9445     always_export_symbols_CXX=no
9446     enable_shared_with_static_runtimes_CXX=yes
9447
9448     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9449       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'
9450       # If the export-symbols file already is a .def file (1st line
9451       # is EXPORTS), use it as is; otherwise, prepend...
9452       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9453         cp $export_symbols $output_objdir/$soname.def;
9454       else
9455         echo EXPORTS > $output_objdir/$soname.def;
9456         cat $export_symbols >> $output_objdir/$soname.def;
9457       fi~
9458       $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'
9459     else
9460       ld_shlibs_CXX=no
9461     fi
9462   ;;
9463       darwin* | rhapsody*)
9464         case "$host_os" in
9465         rhapsody* | darwin1.[012])
9466          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9467          ;;
9468        *) # Darwin 1.3 on
9469          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9470            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9471          else
9472            case ${MACOSX_DEPLOYMENT_TARGET} in
9473              10.[012])
9474                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9475                ;;
9476              10.*)
9477                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9478                ;;
9479            esac
9480          fi
9481          ;;
9482         esac
9483       archive_cmds_need_lc_CXX=no
9484       hardcode_direct_CXX=no
9485       hardcode_automatic_CXX=yes
9486       hardcode_shlibpath_var_CXX=unsupported
9487       whole_archive_flag_spec_CXX=''
9488       link_all_deplibs_CXX=yes
9489
9490     if test "$GXX" = yes ; then
9491       lt_int_apple_cc_single_mod=no
9492       output_verbose_link_cmd='echo'
9493       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9494        lt_int_apple_cc_single_mod=yes
9495       fi
9496       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9497        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9498       else
9499           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9500         fi
9501         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9502         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9503           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9504             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}'
9505           else
9506             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9507           fi
9508             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}'
9509       else
9510       case "$cc_basename" in
9511         xlc*)
9512          output_verbose_link_cmd='echo'
9513           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9514           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9515           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9516           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9517           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}'
9518           ;;
9519        *)
9520          ld_shlibs_CXX=no
9521           ;;
9522       esac
9523       fi
9524         ;;
9525
9526   dgux*)
9527     case $cc_basename in
9528       ec++)
9529         # FIXME: insert proper C++ library support
9530         ld_shlibs_CXX=no
9531         ;;
9532       ghcx)
9533         # Green Hills C++ Compiler
9534         # FIXME: insert proper C++ library support
9535         ld_shlibs_CXX=no
9536         ;;
9537       *)
9538         # FIXME: insert proper C++ library support
9539         ld_shlibs_CXX=no
9540         ;;
9541     esac
9542     ;;
9543   freebsd12*)
9544     # C++ shared libraries reported to be fairly broken before switch to ELF
9545     ld_shlibs_CXX=no
9546     ;;
9547   freebsd-elf*)
9548     archive_cmds_need_lc_CXX=no
9549     ;;
9550   freebsd* | kfreebsd*-gnu)
9551     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9552     # conventions
9553     ld_shlibs_CXX=yes
9554     ;;
9555   gnu*)
9556     ;;
9557   hpux9*)
9558     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9559     hardcode_libdir_separator_CXX=:
9560     export_dynamic_flag_spec_CXX='${wl}-E'
9561     hardcode_direct_CXX=yes
9562     hardcode_minus_L_CXX=yes # Not in the search PATH,
9563                                 # but as the default
9564                                 # location of the library.
9565
9566     case $cc_basename in
9567     CC)
9568       # FIXME: insert proper C++ library support
9569       ld_shlibs_CXX=no
9570       ;;
9571     aCC)
9572       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'
9573       # Commands to make compiler produce verbose output that lists
9574       # what "hidden" libraries, object files and flags are used when
9575       # linking a shared library.
9576       #
9577       # There doesn't appear to be a way to prevent this compiler from
9578       # explicitly linking system object files so we need to strip them
9579       # from the output so that they don't get included in the library
9580       # dependencies.
9581       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'
9582       ;;
9583     *)
9584       if test "$GXX" = yes; then
9585         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'
9586       else
9587         # FIXME: insert proper C++ library support
9588         ld_shlibs_CXX=no
9589       fi
9590       ;;
9591     esac
9592     ;;
9593   hpux10*|hpux11*)
9594     if test $with_gnu_ld = no; then
9595       case "$host_cpu" in
9596       hppa*64*)
9597         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9598         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9599         hardcode_libdir_separator_CXX=:
9600         ;;
9601       ia64*)
9602         hardcode_libdir_flag_spec_CXX='-L$libdir'
9603         ;;
9604       *)
9605         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9606         hardcode_libdir_separator_CXX=:
9607         export_dynamic_flag_spec_CXX='${wl}-E'
9608         ;;
9609       esac
9610     fi
9611     case "$host_cpu" in
9612     hppa*64*)
9613       hardcode_direct_CXX=no
9614       hardcode_shlibpath_var_CXX=no
9615       ;;
9616     ia64*)
9617       hardcode_direct_CXX=no
9618       hardcode_shlibpath_var_CXX=no
9619       hardcode_minus_L_CXX=yes # Not in the search PATH,
9620                                               # but as the default
9621                                               # location of the library.
9622       ;;
9623     *)
9624       hardcode_direct_CXX=yes
9625       hardcode_minus_L_CXX=yes # Not in the search PATH,
9626                                               # but as the default
9627                                               # location of the library.
9628       ;;
9629     esac
9630
9631     case $cc_basename in
9632       CC)
9633         # FIXME: insert proper C++ library support
9634         ld_shlibs_CXX=no
9635         ;;
9636       aCC)
9637         case "$host_cpu" in
9638         hppa*64*|ia64*)
9639           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9640           ;;
9641         *)
9642           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9643           ;;
9644         esac
9645         # Commands to make compiler produce verbose output that lists
9646         # what "hidden" libraries, object files and flags are used when
9647         # linking a shared library.
9648         #
9649         # There doesn't appear to be a way to prevent this compiler from
9650         # explicitly linking system object files so we need to strip them
9651         # from the output so that they don't get included in the library
9652         # dependencies.
9653         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'
9654         ;;
9655       *)
9656         if test "$GXX" = yes; then
9657           if test $with_gnu_ld = no; then
9658             case "$host_cpu" in
9659             ia64*|hppa*64*)
9660               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9661               ;;
9662             *)
9663               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'
9664               ;;
9665             esac
9666           fi
9667         else
9668           # FIXME: insert proper C++ library support
9669           ld_shlibs_CXX=no
9670         fi
9671         ;;
9672     esac
9673     ;;
9674   irix5* | irix6*)
9675     case $cc_basename in
9676       CC)
9677         # SGI C++
9678         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'
9679
9680         # Archives containing C++ object files must be created using
9681         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9682         # necessary to make sure instantiated templates are included
9683         # in the archive.
9684         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9685         ;;
9686       *)
9687         if test "$GXX" = yes; then
9688           if test "$with_gnu_ld" = no; then
9689             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'
9690           else
9691             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'
9692           fi
9693         fi
9694         link_all_deplibs_CXX=yes
9695         ;;
9696     esac
9697     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9698     hardcode_libdir_separator_CXX=:
9699     ;;
9700   linux*)
9701     case $cc_basename in
9702       KCC)
9703         # Kuck and Associates, Inc. (KAI) C++ Compiler
9704
9705         # KCC will only create a shared library if the output file
9706         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9707         # to its proper name (with version) after linking.
9708         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'
9709         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'
9710         # Commands to make compiler produce verbose output that lists
9711         # what "hidden" libraries, object files and flags are used when
9712         # linking a shared library.
9713         #
9714         # There doesn't appear to be a way to prevent this compiler from
9715         # explicitly linking system object files so we need to strip them
9716         # from the output so that they don't get included in the library
9717         # dependencies.
9718         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'
9719
9720         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9721         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9722
9723         # Archives containing C++ object files must be created using
9724         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9725         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9726         ;;
9727       icpc)
9728         # Intel C++
9729         with_gnu_ld=yes
9730         # version 8.0 and above of icpc choke on multiply defined symbols
9731         # if we add $predep_objects and $postdep_objects, however 7.1 and
9732         # earlier do not add the objects themselves.
9733         case `$CC -V 2>&1` in
9734         *"Version 7."*)
9735           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9736           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'
9737           ;;
9738         *)  # Version 8.0 or newer
9739           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9740         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9741           ;;
9742         esac
9743         archive_cmds_need_lc_CXX=no
9744         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9745         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9746         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9747         ;;
9748       cxx)
9749         # Compaq C++
9750         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751         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'
9752
9753         runpath_var=LD_RUN_PATH
9754         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9755         hardcode_libdir_separator_CXX=:
9756
9757         # Commands to make compiler produce verbose output that lists
9758         # what "hidden" libraries, object files and flags are used when
9759         # linking a shared library.
9760         #
9761         # There doesn't appear to be a way to prevent this compiler from
9762         # explicitly linking system object files so we need to strip them
9763         # from the output so that they don't get included in the library
9764         # dependencies.
9765         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'
9766         ;;
9767     esac
9768     ;;
9769   lynxos*)
9770     # FIXME: insert proper C++ library support
9771     ld_shlibs_CXX=no
9772     ;;
9773   m88k*)
9774     # FIXME: insert proper C++ library support
9775     ld_shlibs_CXX=no
9776     ;;
9777   mvs*)
9778     case $cc_basename in
9779       cxx)
9780         # FIXME: insert proper C++ library support
9781         ld_shlibs_CXX=no
9782         ;;
9783       *)
9784         # FIXME: insert proper C++ library support
9785         ld_shlibs_CXX=no
9786         ;;
9787     esac
9788     ;;
9789   netbsd*)
9790     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9791       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9792       wlarc=
9793       hardcode_libdir_flag_spec_CXX='-R$libdir'
9794       hardcode_direct_CXX=yes
9795       hardcode_shlibpath_var_CXX=no
9796     fi
9797     # Workaround some broken pre-1.5 toolchains
9798     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9799     ;;
9800   openbsd2*)
9801     # C++ shared libraries are fairly broken
9802     ld_shlibs_CXX=no
9803     ;;
9804   openbsd*)
9805     hardcode_direct_CXX=yes
9806     hardcode_shlibpath_var_CXX=no
9807     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9808     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9809     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9810       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
9811       export_dynamic_flag_spec_CXX='${wl}-E'
9812       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9813     fi
9814     output_verbose_link_cmd='echo'
9815     ;;
9816   osf3*)
9817     case $cc_basename in
9818       KCC)
9819         # Kuck and Associates, Inc. (KAI) C++ Compiler
9820
9821         # KCC will only create a shared library if the output file
9822         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9823         # to its proper name (with version) after linking.
9824         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'
9825
9826         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9827         hardcode_libdir_separator_CXX=:
9828
9829         # Archives containing C++ object files must be created using
9830         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9831         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9832
9833         ;;
9834       RCC)
9835         # Rational C++ 2.4.1
9836         # FIXME: insert proper C++ library support
9837         ld_shlibs_CXX=no
9838         ;;
9839       cxx)
9840         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9841         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'
9842
9843         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9844         hardcode_libdir_separator_CXX=:
9845
9846         # Commands to make compiler produce verbose output that lists
9847         # what "hidden" libraries, object files and flags are used when
9848         # linking a shared library.
9849         #
9850         # There doesn't appear to be a way to prevent this compiler from
9851         # explicitly linking system object files so we need to strip them
9852         # from the output so that they don't get included in the library
9853         # dependencies.
9854         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'
9855         ;;
9856       *)
9857         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9858           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9859           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'
9860
9861           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9862           hardcode_libdir_separator_CXX=:
9863
9864           # Commands to make compiler produce verbose output that lists
9865           # what "hidden" libraries, object files and flags are used when
9866           # linking a shared library.
9867           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9868
9869         else
9870           # FIXME: insert proper C++ library support
9871           ld_shlibs_CXX=no
9872         fi
9873         ;;
9874     esac
9875     ;;
9876   osf4* | osf5*)
9877     case $cc_basename in
9878       KCC)
9879         # Kuck and Associates, Inc. (KAI) C++ Compiler
9880
9881         # KCC will only create a shared library if the output file
9882         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9883         # to its proper name (with version) after linking.
9884         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'
9885
9886         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9887         hardcode_libdir_separator_CXX=:
9888
9889         # Archives containing C++ object files must be created using
9890         # the KAI C++ compiler.
9891         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9892         ;;
9893       RCC)
9894         # Rational C++ 2.4.1
9895         # FIXME: insert proper C++ library support
9896         ld_shlibs_CXX=no
9897         ;;
9898       cxx)
9899         allow_undefined_flag_CXX=' -expect_unresolved \*'
9900         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'
9901         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9902           echo "-hidden">> $lib.exp~
9903           $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~
9904           $rm $lib.exp'
9905
9906         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9907         hardcode_libdir_separator_CXX=:
9908
9909         # Commands to make compiler produce verbose output that lists
9910         # what "hidden" libraries, object files and flags are used when
9911         # linking a shared library.
9912         #
9913         # There doesn't appear to be a way to prevent this compiler from
9914         # explicitly linking system object files so we need to strip them
9915         # from the output so that they don't get included in the library
9916         # dependencies.
9917         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'
9918         ;;
9919       *)
9920         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9921           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9922          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'
9923
9924           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9925           hardcode_libdir_separator_CXX=:
9926
9927           # Commands to make compiler produce verbose output that lists
9928           # what "hidden" libraries, object files and flags are used when
9929           # linking a shared library.
9930           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9931
9932         else
9933           # FIXME: insert proper C++ library support
9934           ld_shlibs_CXX=no
9935         fi
9936         ;;
9937     esac
9938     ;;
9939   psos*)
9940     # FIXME: insert proper C++ library support
9941     ld_shlibs_CXX=no
9942     ;;
9943   sco*)
9944     archive_cmds_need_lc_CXX=no
9945     case $cc_basename in
9946       CC)
9947         # FIXME: insert proper C++ library support
9948         ld_shlibs_CXX=no
9949         ;;
9950       *)
9951         # FIXME: insert proper C++ library support
9952         ld_shlibs_CXX=no
9953         ;;
9954     esac
9955     ;;
9956   sunos4*)
9957     case $cc_basename in
9958       CC)
9959         # Sun C++ 4.x
9960         # FIXME: insert proper C++ library support
9961         ld_shlibs_CXX=no
9962         ;;
9963       lcc)
9964         # Lucid
9965         # FIXME: insert proper C++ library support
9966         ld_shlibs_CXX=no
9967         ;;
9968       *)
9969         # FIXME: insert proper C++ library support
9970         ld_shlibs_CXX=no
9971         ;;
9972     esac
9973     ;;
9974   solaris*)
9975     case $cc_basename in
9976       CC)
9977         # Sun C++ 4.2, 5.x and Centerline C++
9978         no_undefined_flag_CXX=' -zdefs'
9979         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9980         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9981         $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'
9982
9983         hardcode_libdir_flag_spec_CXX='-R$libdir'
9984         hardcode_shlibpath_var_CXX=no
9985         case $host_os in
9986           solaris2.0-5 | solaris2.0-5.*) ;;
9987           *)
9988             # The C++ compiler is used as linker so we must use $wl
9989             # flag to pass the commands to the underlying system
9990             # linker.
9991             # Supported since Solaris 2.6 (maybe 2.5.1?)
9992             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9993             ;;
9994         esac
9995         link_all_deplibs_CXX=yes
9996
9997         # Commands to make compiler produce verbose output that lists
9998         # what "hidden" libraries, object files and flags are used when
9999         # linking a shared library.
10000         #
10001         # There doesn't appear to be a way to prevent this compiler from
10002         # explicitly linking system object files so we need to strip them
10003         # from the output so that they don't get included in the library
10004         # dependencies.
10005         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'
10006
10007         # Archives containing C++ object files must be created using
10008         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10009         # necessary to make sure instantiated templates are included
10010         # in the archive.
10011         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10012         ;;
10013       gcx)
10014         # Green Hills C++ Compiler
10015         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10016
10017         # The C++ compiler must be used to create the archive.
10018         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10019         ;;
10020       *)
10021         # GNU C++ compiler with Solaris linker
10022         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10023           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10024           if $CC --version | grep -v '^2\.7' > /dev/null; then
10025             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10026             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10027                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10028
10029             # Commands to make compiler produce verbose output that lists
10030             # what "hidden" libraries, object files and flags are used when
10031             # linking a shared library.
10032             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10033           else
10034             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10035             # platform.
10036             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10037             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10038                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10039
10040             # Commands to make compiler produce verbose output that lists
10041             # what "hidden" libraries, object files and flags are used when
10042             # linking a shared library.
10043             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10044           fi
10045
10046           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10047         fi
10048         ;;
10049     esac
10050     ;;
10051   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10052     archive_cmds_need_lc_CXX=no
10053     ;;
10054   tandem*)
10055     case $cc_basename in
10056       NCC)
10057         # NonStop-UX NCC 3.20
10058         # FIXME: insert proper C++ library support
10059         ld_shlibs_CXX=no
10060         ;;
10061       *)
10062         # FIXME: insert proper C++ library support
10063         ld_shlibs_CXX=no
10064         ;;
10065     esac
10066     ;;
10067   vxworks*)
10068     # FIXME: insert proper C++ library support
10069     ld_shlibs_CXX=no
10070     ;;
10071   *)
10072     # FIXME: insert proper C++ library support
10073     ld_shlibs_CXX=no
10074     ;;
10075 esac
10076 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10077 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10078 test "$ld_shlibs_CXX" = no && can_build_shared=no
10079
10080 GCC_CXX="$GXX"
10081 LD_CXX="$LD"
10082
10083
10084 cat > conftest.$ac_ext <<EOF
10085 class Foo
10086 {
10087 public:
10088   Foo (void) { a = 0; }
10089 private:
10090   int a;
10091 };
10092 EOF
10093
10094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10095   (eval $ac_compile) 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; then
10099   # Parse the compiler output and extract the necessary
10100   # objects, libraries and library flags.
10101
10102   # Sentinel used to keep track of whether or not we are before
10103   # the conftest object file.
10104   pre_test_object_deps_done=no
10105
10106   # The `*' in the case matches for architectures that use `case' in
10107   # $output_verbose_cmd can trigger glob expansion during the loop
10108   # eval without this substitution.
10109   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10110
10111   for p in `eval $output_verbose_link_cmd`; do
10112     case $p in
10113
10114     -L* | -R* | -l*)
10115        # Some compilers place space between "-{L,R}" and the path.
10116        # Remove the space.
10117        if test $p = "-L" \
10118           || test $p = "-R"; then
10119          prev=$p
10120          continue
10121        else
10122          prev=
10123        fi
10124
10125        if test "$pre_test_object_deps_done" = no; then
10126          case $p in
10127          -L* | -R*)
10128            # Internal compiler library paths should come after those
10129            # provided the user.  The postdeps already come after the
10130            # user supplied libs so there is no need to process them.
10131            if test -z "$compiler_lib_search_path_CXX"; then
10132              compiler_lib_search_path_CXX="${prev}${p}"
10133            else
10134              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10135            fi
10136            ;;
10137          # The "-l" case would never come before the object being
10138          # linked, so don't bother handling this case.
10139          esac
10140        else
10141          if test -z "$postdeps_CXX"; then
10142            postdeps_CXX="${prev}${p}"
10143          else
10144            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10145          fi
10146        fi
10147        ;;
10148
10149     *.$objext)
10150        # This assumes that the test object file only shows up
10151        # once in the compiler output.
10152        if test "$p" = "conftest.$objext"; then
10153          pre_test_object_deps_done=yes
10154          continue
10155        fi
10156
10157        if test "$pre_test_object_deps_done" = no; then
10158          if test -z "$predep_objects_CXX"; then
10159            predep_objects_CXX="$p"
10160          else
10161            predep_objects_CXX="$predep_objects_CXX $p"
10162          fi
10163        else
10164          if test -z "$postdep_objects_CXX"; then
10165            postdep_objects_CXX="$p"
10166          else
10167            postdep_objects_CXX="$postdep_objects_CXX $p"
10168          fi
10169        fi
10170        ;;
10171
10172     *) ;; # Ignore the rest.
10173
10174     esac
10175   done
10176
10177   # Clean up.
10178   rm -f a.out a.exe
10179 else
10180   echo "libtool.m4: error: problem compiling CXX test program"
10181 fi
10182
10183 $rm -f confest.$objext
10184
10185 case " $postdeps_CXX " in
10186 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10187 esac
10188
10189 lt_prog_compiler_wl_CXX=
10190 lt_prog_compiler_pic_CXX=
10191 lt_prog_compiler_static_CXX=
10192
10193 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10194 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10195
10196   # C++ specific cases for pic, static, wl, etc.
10197   if test "$GXX" = yes; then
10198     lt_prog_compiler_wl_CXX='-Wl,'
10199     lt_prog_compiler_static_CXX='-static'
10200
10201     case $host_os in
10202     aix*)
10203       # All AIX code is PIC.
10204       if test "$host_cpu" = ia64; then
10205         # AIX 5 now supports IA64 processor
10206         lt_prog_compiler_static_CXX='-Bstatic'
10207       fi
10208       ;;
10209     amigaos*)
10210       # FIXME: we need at least 68020 code to build shared libraries, but
10211       # adding the `-m68020' flag to GCC prevents building anything better,
10212       # like `-m68040'.
10213       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10214       ;;
10215     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10216       # PIC is the default for these OSes.
10217       ;;
10218     mingw* | os2* | pw32*)
10219       # This hack is so that the source file can tell whether it is being
10220       # built for inclusion in a dll (and should export symbols for example).
10221       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10222       ;;
10223     darwin* | rhapsody*)
10224       # PIC is the default on this platform
10225       # Common symbols not allowed in MH_DYLIB files
10226       lt_prog_compiler_pic_CXX='-fno-common'
10227       ;;
10228     *djgpp*)
10229       # DJGPP does not support shared libraries at all
10230       lt_prog_compiler_pic_CXX=
10231       ;;
10232     sysv4*MP*)
10233       if test -d /usr/nec; then
10234         lt_prog_compiler_pic_CXX=-Kconform_pic
10235       fi
10236       ;;
10237     hpux*)
10238       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10239       # not for PA HP-UX.
10240       case "$host_cpu" in
10241       hppa*64*|ia64*)
10242         ;;
10243       *)
10244         lt_prog_compiler_pic_CXX='-fPIC'
10245         ;;
10246       esac
10247       ;;
10248     *)
10249       lt_prog_compiler_pic_CXX='-fPIC'
10250       ;;
10251     esac
10252   else
10253     case $host_os in
10254       aix4* | aix5*)
10255         # All AIX code is PIC.
10256         if test "$host_cpu" = ia64; then
10257           # AIX 5 now supports IA64 processor
10258           lt_prog_compiler_static_CXX='-Bstatic'
10259         else
10260           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10261         fi
10262         ;;
10263       chorus*)
10264         case $cc_basename in
10265         cxch68)
10266           # Green Hills C++ Compiler
10267           # _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"
10268           ;;
10269         esac
10270         ;;
10271        darwin*)
10272          # PIC is the default on this platform
10273          # Common symbols not allowed in MH_DYLIB files
10274          case "$cc_basename" in
10275            xlc*)
10276            lt_prog_compiler_pic_CXX='-qnocommon'
10277            lt_prog_compiler_wl_CXX='-Wl,'
10278            ;;
10279          esac
10280        ;;
10281       dgux*)
10282         case $cc_basename in
10283           ec++)
10284             lt_prog_compiler_pic_CXX='-KPIC'
10285             ;;
10286           ghcx)
10287             # Green Hills C++ Compiler
10288             lt_prog_compiler_pic_CXX='-pic'
10289             ;;
10290           *)
10291             ;;
10292         esac
10293         ;;
10294       freebsd* | kfreebsd*-gnu)
10295         # FreeBSD uses GNU C++
10296         ;;
10297       hpux9* | hpux10* | hpux11*)
10298         case $cc_basename in
10299           CC)
10300             lt_prog_compiler_wl_CXX='-Wl,'
10301             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10302             if test "$host_cpu" != ia64; then
10303               lt_prog_compiler_pic_CXX='+Z'
10304             fi
10305             ;;
10306           aCC)
10307             lt_prog_compiler_wl_CXX='-Wl,'
10308             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10309             case "$host_cpu" in
10310             hppa*64*|ia64*)
10311               # +Z the default
10312               ;;
10313             *)
10314               lt_prog_compiler_pic_CXX='+Z'
10315               ;;
10316             esac
10317             ;;
10318           *)
10319             ;;
10320         esac
10321         ;;
10322       irix5* | irix6* | nonstopux*)
10323         case $cc_basename in
10324           CC)
10325             lt_prog_compiler_wl_CXX='-Wl,'
10326             lt_prog_compiler_static_CXX='-non_shared'
10327             # CC pic flag -KPIC is the default.
10328             ;;
10329           *)
10330             ;;
10331         esac
10332         ;;
10333       linux*)
10334         case $cc_basename in
10335           KCC)
10336             # KAI C++ Compiler
10337             lt_prog_compiler_wl_CXX='--backend -Wl,'
10338             lt_prog_compiler_pic_CXX='-fPIC'
10339             ;;
10340           icpc)
10341             # Intel C++
10342             lt_prog_compiler_wl_CXX='-Wl,'
10343             lt_prog_compiler_pic_CXX='-KPIC'
10344             lt_prog_compiler_static_CXX='-static'
10345             ;;
10346           cxx)
10347             # Compaq C++
10348             # Make sure the PIC flag is empty.  It appears that all Alpha
10349             # Linux and Compaq Tru64 Unix objects are PIC.
10350             lt_prog_compiler_pic_CXX=
10351             lt_prog_compiler_static_CXX='-non_shared'
10352             ;;
10353           *)
10354             ;;
10355         esac
10356         ;;
10357       lynxos*)
10358         ;;
10359       m88k*)
10360         ;;
10361       mvs*)
10362         case $cc_basename in
10363           cxx)
10364             lt_prog_compiler_pic_CXX='-W c,exportall'
10365             ;;
10366           *)
10367             ;;
10368         esac
10369         ;;
10370       netbsd*)
10371         ;;
10372       osf3* | osf4* | osf5*)
10373         case $cc_basename in
10374           KCC)
10375             lt_prog_compiler_wl_CXX='--backend -Wl,'
10376             ;;
10377           RCC)
10378             # Rational C++ 2.4.1
10379             lt_prog_compiler_pic_CXX='-pic'
10380             ;;
10381           cxx)
10382             # Digital/Compaq C++
10383             lt_prog_compiler_wl_CXX='-Wl,'
10384             # Make sure the PIC flag is empty.  It appears that all Alpha
10385             # Linux and Compaq Tru64 Unix objects are PIC.
10386             lt_prog_compiler_pic_CXX=
10387             lt_prog_compiler_static_CXX='-non_shared'
10388             ;;
10389           *)
10390             ;;
10391         esac
10392         ;;
10393       psos*)
10394         ;;
10395       sco*)
10396         case $cc_basename in
10397           CC)
10398             lt_prog_compiler_pic_CXX='-fPIC'
10399             ;;
10400           *)
10401             ;;
10402         esac
10403         ;;
10404       solaris*)
10405         case $cc_basename in
10406           CC)
10407             # Sun C++ 4.2, 5.x and Centerline C++
10408             lt_prog_compiler_pic_CXX='-KPIC'
10409             lt_prog_compiler_static_CXX='-Bstatic'
10410             lt_prog_compiler_wl_CXX='-Qoption ld '
10411             ;;
10412           gcx)
10413             # Green Hills C++ Compiler
10414             lt_prog_compiler_pic_CXX='-PIC'
10415             ;;
10416           *)
10417             ;;
10418         esac
10419         ;;
10420       sunos4*)
10421         case $cc_basename in
10422           CC)
10423             # Sun C++ 4.x
10424             lt_prog_compiler_pic_CXX='-pic'
10425             lt_prog_compiler_static_CXX='-Bstatic'
10426             ;;
10427           lcc)
10428             # Lucid
10429             lt_prog_compiler_pic_CXX='-pic'
10430             ;;
10431           *)
10432             ;;
10433         esac
10434         ;;
10435       tandem*)
10436         case $cc_basename in
10437           NCC)
10438             # NonStop-UX NCC 3.20
10439             lt_prog_compiler_pic_CXX='-KPIC'
10440             ;;
10441           *)
10442             ;;
10443         esac
10444         ;;
10445       unixware*)
10446         ;;
10447       vxworks*)
10448         ;;
10449       *)
10450         lt_prog_compiler_can_build_shared_CXX=no
10451         ;;
10452     esac
10453   fi
10454
10455 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10456 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10457
10458 #
10459 # Check to make sure the PIC flag actually works.
10460 #
10461 if test -n "$lt_prog_compiler_pic_CXX"; then
10462
10463 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10464 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10465 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10466   echo $ECHO_N "(cached) $ECHO_C" >&6
10467 else
10468   lt_prog_compiler_pic_works_CXX=no
10469   ac_outfile=conftest.$ac_objext
10470    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10471    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10472    # Insert the option either (1) after the last *FLAGS variable, or
10473    # (2) before a word containing "conftest.", or (3) at the end.
10474    # Note that $ac_compile itself does not contain backslashes and begins
10475    # with a dollar sign (not a hyphen), so the echo should work correctly.
10476    # The option is referenced via a variable to avoid confusing sed.
10477    lt_compile=`echo "$ac_compile" | $SED \
10478    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10479    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10480    -e 's:$: $lt_compiler_flag:'`
10481    (eval echo "\"\$as_me:10481: $lt_compile\"" >&5)
10482    (eval "$lt_compile" 2>conftest.err)
10483    ac_status=$?
10484    cat conftest.err >&5
10485    echo "$as_me:10485: \$? = $ac_status" >&5
10486    if (exit $ac_status) && test -s "$ac_outfile"; then
10487      # The compiler can only warn and ignore the option if not recognized
10488      # So say no if there are warnings
10489      if test ! -s conftest.err; then
10490        lt_prog_compiler_pic_works_CXX=yes
10491      fi
10492    fi
10493    $rm conftest*
10494
10495 fi
10496 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10497 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10498
10499 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10500     case $lt_prog_compiler_pic_CXX in
10501      "" | " "*) ;;
10502      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10503      esac
10504 else
10505     lt_prog_compiler_pic_CXX=
10506      lt_prog_compiler_can_build_shared_CXX=no
10507 fi
10508
10509 fi
10510 case "$host_os" in
10511   # For platforms which do not support PIC, -DPIC is meaningless:
10512   *djgpp*)
10513     lt_prog_compiler_pic_CXX=
10514     ;;
10515   *)
10516     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10517     ;;
10518 esac
10519
10520 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10521 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10522 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10523   echo $ECHO_N "(cached) $ECHO_C" >&6
10524 else
10525   lt_cv_prog_compiler_c_o_CXX=no
10526    $rm -r conftest 2>/dev/null
10527    mkdir conftest
10528    cd conftest
10529    mkdir out
10530    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10531
10532    lt_compiler_flag="-o out/conftest2.$ac_objext"
10533    # Insert the option either (1) after the last *FLAGS variable, or
10534    # (2) before a word containing "conftest.", or (3) at the end.
10535    # Note that $ac_compile itself does not contain backslashes and begins
10536    # with a dollar sign (not a hyphen), so the echo should work correctly.
10537    lt_compile=`echo "$ac_compile" | $SED \
10538    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10540    -e 's:$: $lt_compiler_flag:'`
10541    (eval echo "\"\$as_me:10541: $lt_compile\"" >&5)
10542    (eval "$lt_compile" 2>out/conftest.err)
10543    ac_status=$?
10544    cat out/conftest.err >&5
10545    echo "$as_me:10545: \$? = $ac_status" >&5
10546    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10547    then
10548      # The compiler can only warn and ignore the option if not recognized
10549      # So say no if there are warnings
10550      if test ! -s out/conftest.err; then
10551        lt_cv_prog_compiler_c_o_CXX=yes
10552      fi
10553    fi
10554    chmod u+w .
10555    $rm conftest*
10556    # SGI C++ compiler will create directory out/ii_files/ for
10557    # template instantiation
10558    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10559    $rm out/* && rmdir out
10560    cd ..
10561    rmdir conftest
10562    $rm conftest*
10563
10564 fi
10565 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10566 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10567
10568
10569 hard_links="nottested"
10570 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10571   # do not overwrite the value of need_locks provided by the user
10572   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10573 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10574   hard_links=yes
10575   $rm conftest*
10576   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10577   touch conftest.a
10578   ln conftest.a conftest.b 2>&5 || hard_links=no
10579   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10580   echo "$as_me:$LINENO: result: $hard_links" >&5
10581 echo "${ECHO_T}$hard_links" >&6
10582   if test "$hard_links" = no; then
10583     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10584 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10585     need_locks=warn
10586   fi
10587 else
10588   need_locks=no
10589 fi
10590
10591 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10592 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10593
10594   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10595   case $host_os in
10596   aix4* | aix5*)
10597     # If we're using GNU nm, then we don't want the "-C" option.
10598     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10599     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10600       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'
10601     else
10602       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'
10603     fi
10604     ;;
10605   pw32*)
10606     export_symbols_cmds_CXX="$ltdll_cmds"
10607   ;;
10608   cygwin* | mingw*)
10609     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10610   ;;
10611   *)
10612     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10613   ;;
10614   esac
10615
10616 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10617 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10618 test "$ld_shlibs_CXX" = no && can_build_shared=no
10619
10620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10621 if test "$GCC" = yes; then
10622   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10623 fi
10624
10625 #
10626 # Do we need to explicitly link libc?
10627 #
10628 case "x$archive_cmds_need_lc_CXX" in
10629 x|xyes)
10630   # Assume -lc should be added
10631   archive_cmds_need_lc_CXX=yes
10632
10633   if test "$enable_shared" = yes && test "$GCC" = yes; then
10634     case $archive_cmds_CXX in
10635     *'~'*)
10636       # FIXME: we may have to deal with multi-command sequences.
10637       ;;
10638     '$CC '*)
10639       # Test whether the compiler implicitly links with -lc since on some
10640       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10641       # to ld, don't add -lc before -lgcc.
10642       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10643 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10644       $rm conftest*
10645       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10646
10647       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10648   (eval $ac_compile) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); } 2>conftest.err; then
10652         soname=conftest
10653         lib=conftest
10654         libobjs=conftest.$ac_objext
10655         deplibs=
10656         wl=$lt_prog_compiler_wl_CXX
10657         compiler_flags=-v
10658         linker_flags=-v
10659         verstring=
10660         output_objdir=.
10661         libname=conftest
10662         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10663         allow_undefined_flag_CXX=
10664         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10665   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }
10669         then
10670           archive_cmds_need_lc_CXX=no
10671         else
10672           archive_cmds_need_lc_CXX=yes
10673         fi
10674         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10675       else
10676         cat conftest.err 1>&5
10677       fi
10678       $rm conftest*
10679       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10680 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10681       ;;
10682     esac
10683   fi
10684   ;;
10685 esac
10686
10687 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10688 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10689 library_names_spec=
10690 libname_spec='lib$name'
10691 soname_spec=
10692 shrext_cmds=".so"
10693 postinstall_cmds=
10694 postuninstall_cmds=
10695 finish_cmds=
10696 finish_eval=
10697 shlibpath_var=
10698 shlibpath_overrides_runpath=unknown
10699 version_type=none
10700 dynamic_linker="$host_os ld.so"
10701 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10702 if test "$GCC" = yes; then
10703   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10704   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10705     # if the path contains ";" then we assume it to be the separator
10706     # otherwise default to the standard path separator (i.e. ":") - it is
10707     # assumed that no part of a normal pathname contains ";" but that should
10708     # okay in the real world where ";" in dirpaths is itself problematic.
10709     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10710   else
10711     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10712   fi
10713 else
10714   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10715 fi
10716 need_lib_prefix=unknown
10717 hardcode_into_libs=no
10718
10719 # when you set need_version to no, make sure it does not cause -set_version
10720 # flags to be left without arguments
10721 need_version=unknown
10722
10723 case $host_os in
10724 aix3*)
10725   version_type=linux
10726   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10727   shlibpath_var=LIBPATH
10728
10729   # AIX 3 has no versioning support, so we append a major version to the name.
10730   soname_spec='${libname}${release}${shared_ext}$major'
10731   ;;
10732
10733 aix4* | aix5*)
10734   version_type=linux
10735   need_lib_prefix=no
10736   need_version=no
10737   hardcode_into_libs=yes
10738   if test "$host_cpu" = ia64; then
10739     # AIX 5 supports IA64
10740     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10741     shlibpath_var=LD_LIBRARY_PATH
10742   else
10743     # With GCC up to 2.95.x, collect2 would create an import file
10744     # for dependence libraries.  The import file would start with
10745     # the line `#! .'.  This would cause the generated library to
10746     # depend on `.', always an invalid library.  This was fixed in
10747     # development snapshots of GCC prior to 3.0.
10748     case $host_os in
10749       aix4 | aix4.[01] | aix4.[01].*)
10750       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10751            echo ' yes '
10752            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10753         :
10754       else
10755         can_build_shared=no
10756       fi
10757       ;;
10758     esac
10759     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10760     # soname into executable. Probably we can add versioning support to
10761     # collect2, so additional links can be useful in future.
10762     if test "$aix_use_runtimelinking" = yes; then
10763       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10764       # instead of lib<name>.a to let people know that these are not
10765       # typical AIX shared libraries.
10766       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767     else
10768       # We preserve .a as extension for shared libraries through AIX4.2
10769       # and later when we are not doing run time linking.
10770       library_names_spec='${libname}${release}.a $libname.a'
10771       soname_spec='${libname}${release}${shared_ext}$major'
10772     fi
10773     shlibpath_var=LIBPATH
10774   fi
10775   ;;
10776
10777 amigaos*)
10778   library_names_spec='$libname.ixlibrary $libname.a'
10779   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10780   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'
10781   ;;
10782
10783 beos*)
10784   library_names_spec='${libname}${shared_ext}'
10785   dynamic_linker="$host_os ld.so"
10786   shlibpath_var=LIBRARY_PATH
10787   ;;
10788
10789 bsdi[45]*)
10790   version_type=linux
10791   need_version=no
10792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10793   soname_spec='${libname}${release}${shared_ext}$major'
10794   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10795   shlibpath_var=LD_LIBRARY_PATH
10796   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10797   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10798   # the default ld.so.conf also contains /usr/contrib/lib and
10799   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10800   # libtool to hard-code these into programs
10801   ;;
10802
10803 cygwin* | mingw* | pw32*)
10804   version_type=windows
10805   shrext_cmds=".dll"
10806   need_version=no
10807   need_lib_prefix=no
10808
10809   case $GCC,$host_os in
10810   yes,cygwin* | yes,mingw* | yes,pw32*)
10811     library_names_spec='$libname.dll.a'
10812     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10813     postinstall_cmds='base_file=`basename \${file}`~
10814       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10815       dldir=$destdir/`dirname \$dlpath`~
10816       test -d \$dldir || mkdir -p \$dldir~
10817       $install_prog $dir/$dlname \$dldir/$dlname'
10818     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10819       dlpath=$dir/\$dldll~
10820        $rm \$dlpath'
10821     shlibpath_overrides_runpath=yes
10822
10823     case $host_os in
10824     cygwin*)
10825       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10826       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10827       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10828       ;;
10829     mingw*)
10830       # MinGW DLLs use traditional 'lib' prefix
10831       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10832       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10833       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10834         # It is most probably a Windows format PATH printed by
10835         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10836         # path with ; separators, and with drive letters. We can handle the
10837         # drive letters (cygwin fileutils understands them), so leave them,
10838         # especially as we might pass files found there to a mingw objdump,
10839         # which wouldn't understand a cygwinified path. Ahh.
10840         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10841       else
10842         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10843       fi
10844       ;;
10845     pw32*)
10846       # pw32 DLLs use 'pw' prefix rather than 'lib'
10847       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10848       ;;
10849     esac
10850     ;;
10851
10852   *)
10853     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10854     ;;
10855   esac
10856   dynamic_linker='Win32 ld.exe'
10857   # FIXME: first we should search . and the directory the executable is in
10858   shlibpath_var=PATH
10859   ;;
10860
10861 darwin* | rhapsody*)
10862   dynamic_linker="$host_os dyld"
10863   version_type=darwin
10864   need_lib_prefix=no
10865   need_version=no
10866   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10867   soname_spec='${libname}${release}${major}$shared_ext'
10868   shlibpath_overrides_runpath=yes
10869   shlibpath_var=DYLD_LIBRARY_PATH
10870   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10871   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10872   if test "$GCC" = yes; then
10873     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"`
10874   else
10875     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10876   fi
10877   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10878   ;;
10879
10880 dgux*)
10881   version_type=linux
10882   need_lib_prefix=no
10883   need_version=no
10884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10885   soname_spec='${libname}${release}${shared_ext}$major'
10886   shlibpath_var=LD_LIBRARY_PATH
10887   ;;
10888
10889 freebsd1*)
10890   dynamic_linker=no
10891   ;;
10892
10893 kfreebsd*-gnu)
10894   version_type=linux
10895   need_lib_prefix=no
10896   need_version=no
10897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10898   soname_spec='${libname}${release}${shared_ext}$major'
10899   shlibpath_var=LD_LIBRARY_PATH
10900   shlibpath_overrides_runpath=no
10901   hardcode_into_libs=yes
10902   dynamic_linker='GNU ld.so'
10903   ;;
10904
10905 freebsd*)
10906   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10907   version_type=freebsd-$objformat
10908   case $version_type in
10909     freebsd-elf*)
10910       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10911       need_version=no
10912       need_lib_prefix=no
10913       ;;
10914     freebsd-*)
10915       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10916       need_version=yes
10917       ;;
10918   esac
10919   shlibpath_var=LD_LIBRARY_PATH
10920   case $host_os in
10921   freebsd2*)
10922     shlibpath_overrides_runpath=yes
10923     ;;
10924   freebsd3.01* | freebsdelf3.01*)
10925     shlibpath_overrides_runpath=yes
10926     hardcode_into_libs=yes
10927     ;;
10928   *) # from 3.2 on
10929     shlibpath_overrides_runpath=no
10930     hardcode_into_libs=yes
10931     ;;
10932   esac
10933   ;;
10934
10935 gnu*)
10936   version_type=linux
10937   need_lib_prefix=no
10938   need_version=no
10939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10940   soname_spec='${libname}${release}${shared_ext}$major'
10941   shlibpath_var=LD_LIBRARY_PATH
10942   hardcode_into_libs=yes
10943   ;;
10944
10945 hpux9* | hpux10* | hpux11*)
10946   # Give a soname corresponding to the major version so that dld.sl refuses to
10947   # link against other versions.
10948   version_type=sunos
10949   need_lib_prefix=no
10950   need_version=no
10951   case "$host_cpu" in
10952   ia64*)
10953     shrext_cmds='.so'
10954     hardcode_into_libs=yes
10955     dynamic_linker="$host_os dld.so"
10956     shlibpath_var=LD_LIBRARY_PATH
10957     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10958     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959     soname_spec='${libname}${release}${shared_ext}$major'
10960     if test "X$HPUX_IA64_MODE" = X32; then
10961       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10962     else
10963       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10964     fi
10965     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10966     ;;
10967    hppa*64*)
10968      shrext_cmds='.sl'
10969      hardcode_into_libs=yes
10970      dynamic_linker="$host_os dld.sl"
10971      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10972      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10973      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974      soname_spec='${libname}${release}${shared_ext}$major'
10975      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10976      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10977      ;;
10978    *)
10979     shrext_cmds='.sl'
10980     dynamic_linker="$host_os dld.sl"
10981     shlibpath_var=SHLIB_PATH
10982     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984     soname_spec='${libname}${release}${shared_ext}$major'
10985     ;;
10986   esac
10987   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10988   postinstall_cmds='chmod 555 $lib'
10989   ;;
10990
10991 irix5* | irix6* | nonstopux*)
10992   case $host_os in
10993     nonstopux*) version_type=nonstopux ;;
10994     *)
10995         if test "$lt_cv_prog_gnu_ld" = yes; then
10996                 version_type=linux
10997         else
10998                 version_type=irix
10999         fi ;;
11000   esac
11001   need_lib_prefix=no
11002   need_version=no
11003   soname_spec='${libname}${release}${shared_ext}$major'
11004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11005   case $host_os in
11006   irix5* | nonstopux*)
11007     libsuff= shlibsuff=
11008     ;;
11009   *)
11010     case $LD in # libtool.m4 will add one of these switches to LD
11011     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11012       libsuff= shlibsuff= libmagic=32-bit;;
11013     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11014       libsuff=32 shlibsuff=N32 libmagic=N32;;
11015     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11016       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11017     *) libsuff= shlibsuff= libmagic=never-match;;
11018     esac
11019     ;;
11020   esac
11021   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11022   shlibpath_overrides_runpath=no
11023   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11024   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11025   hardcode_into_libs=yes
11026   ;;
11027
11028 # No shared lib support for Linux oldld, aout, or coff.
11029 linux*oldld* | linux*aout* | linux*coff*)
11030   dynamic_linker=no
11031   ;;
11032
11033 # This must be Linux ELF.
11034 linux*)
11035   version_type=linux
11036   need_lib_prefix=no
11037   need_version=no
11038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039   soname_spec='${libname}${release}${shared_ext}$major'
11040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11041   shlibpath_var=LD_LIBRARY_PATH
11042   shlibpath_overrides_runpath=no
11043   # This implies no fast_install, which is unacceptable.
11044   # Some rework will be needed to allow for fast_install
11045   # before this can be enabled.
11046   hardcode_into_libs=yes
11047
11048   # Append ld.so.conf contents to the search path
11049   if test -f /etc/ld.so.conf; then
11050     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11051     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11052   fi
11053
11054   # We used to test for /lib/ld.so.1 and disable shared libraries on
11055   # powerpc, because MkLinux only supported shared libraries with the
11056   # GNU dynamic linker.  Since this was broken with cross compilers,
11057   # most powerpc-linux boxes support dynamic linking these days and
11058   # people can always --disable-shared, the test was removed, and we
11059   # assume the GNU/Linux dynamic linker is in use.
11060   dynamic_linker='GNU/Linux ld.so'
11061   ;;
11062
11063 knetbsd*-gnu)
11064   version_type=linux
11065   need_lib_prefix=no
11066   need_version=no
11067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11068   soname_spec='${libname}${release}${shared_ext}$major'
11069   shlibpath_var=LD_LIBRARY_PATH
11070   shlibpath_overrides_runpath=no
11071   hardcode_into_libs=yes
11072   dynamic_linker='GNU ld.so'
11073   ;;
11074
11075 netbsd*)
11076   version_type=sunos
11077   need_lib_prefix=no
11078   need_version=no
11079   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11081     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11082     dynamic_linker='NetBSD (a.out) ld.so'
11083   else
11084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11085     soname_spec='${libname}${release}${shared_ext}$major'
11086     dynamic_linker='NetBSD ld.elf_so'
11087   fi
11088   shlibpath_var=LD_LIBRARY_PATH
11089   shlibpath_overrides_runpath=yes
11090   hardcode_into_libs=yes
11091   ;;
11092
11093 newsos6)
11094   version_type=linux
11095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096   shlibpath_var=LD_LIBRARY_PATH
11097   shlibpath_overrides_runpath=yes
11098   ;;
11099
11100 nto-qnx*)
11101   version_type=linux
11102   need_lib_prefix=no
11103   need_version=no
11104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105   soname_spec='${libname}${release}${shared_ext}$major'
11106   shlibpath_var=LD_LIBRARY_PATH
11107   shlibpath_overrides_runpath=yes
11108   ;;
11109
11110 openbsd*)
11111   version_type=sunos
11112   need_lib_prefix=no
11113   need_version=no
11114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11115   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11116   shlibpath_var=LD_LIBRARY_PATH
11117   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11118     case $host_os in
11119       openbsd2.[89] | openbsd2.[89].*)
11120         shlibpath_overrides_runpath=no
11121         ;;
11122       *)
11123         shlibpath_overrides_runpath=yes
11124         ;;
11125       esac
11126   else
11127     shlibpath_overrides_runpath=yes
11128   fi
11129   ;;
11130
11131 os2*)
11132   libname_spec='$name'
11133   shrext_cmds=".dll"
11134   need_lib_prefix=no
11135   library_names_spec='$libname${shared_ext} $libname.a'
11136   dynamic_linker='OS/2 ld.exe'
11137   shlibpath_var=LIBPATH
11138   ;;
11139
11140 osf3* | osf4* | osf5*)
11141   version_type=osf
11142   need_lib_prefix=no
11143   need_version=no
11144   soname_spec='${libname}${release}${shared_ext}$major'
11145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146   shlibpath_var=LD_LIBRARY_PATH
11147   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11148   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11149   ;;
11150
11151 sco3.2v5*)
11152   version_type=osf
11153   soname_spec='${libname}${release}${shared_ext}$major'
11154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155   shlibpath_var=LD_LIBRARY_PATH
11156   ;;
11157
11158 solaris*)
11159   version_type=linux
11160   need_lib_prefix=no
11161   need_version=no
11162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163   soname_spec='${libname}${release}${shared_ext}$major'
11164   shlibpath_var=LD_LIBRARY_PATH
11165   shlibpath_overrides_runpath=yes
11166   hardcode_into_libs=yes
11167   # ldd complains unless libraries are executable
11168   postinstall_cmds='chmod +x $lib'
11169   ;;
11170
11171 sunos4*)
11172   version_type=sunos
11173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11174   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11175   shlibpath_var=LD_LIBRARY_PATH
11176   shlibpath_overrides_runpath=yes
11177   if test "$with_gnu_ld" = yes; then
11178     need_lib_prefix=no
11179   fi
11180   need_version=yes
11181   ;;
11182
11183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11184   version_type=linux
11185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186   soname_spec='${libname}${release}${shared_ext}$major'
11187   shlibpath_var=LD_LIBRARY_PATH
11188   case $host_vendor in
11189     sni)
11190       shlibpath_overrides_runpath=no
11191       need_lib_prefix=no
11192       export_dynamic_flag_spec='${wl}-Blargedynsym'
11193       runpath_var=LD_RUN_PATH
11194       ;;
11195     siemens)
11196       need_lib_prefix=no
11197       ;;
11198     motorola)
11199       need_lib_prefix=no
11200       need_version=no
11201       shlibpath_overrides_runpath=no
11202       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11203       ;;
11204   esac
11205   ;;
11206
11207 sysv4*MP*)
11208   if test -d /usr/nec ;then
11209     version_type=linux
11210     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11211     soname_spec='$libname${shared_ext}.$major'
11212     shlibpath_var=LD_LIBRARY_PATH
11213   fi
11214   ;;
11215
11216 uts4*)
11217   version_type=linux
11218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219   soname_spec='${libname}${release}${shared_ext}$major'
11220   shlibpath_var=LD_LIBRARY_PATH
11221   ;;
11222
11223 *)
11224   dynamic_linker=no
11225   ;;
11226 esac
11227 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11228 echo "${ECHO_T}$dynamic_linker" >&6
11229 test "$dynamic_linker" = no && can_build_shared=no
11230
11231 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11232 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11233 hardcode_action_CXX=
11234 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11235    test -n "$runpath_var_CXX" || \
11236    test "X$hardcode_automatic_CXX" = "Xyes" ; then
11237
11238   # We can hardcode non-existant directories.
11239   if test "$hardcode_direct_CXX" != no &&
11240      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11241      # have to relink, otherwise we might link with an installed library
11242      # when we should be linking with a yet-to-be-installed one
11243      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11244      test "$hardcode_minus_L_CXX" != no; then
11245     # Linking always hardcodes the temporary library directory.
11246     hardcode_action_CXX=relink
11247   else
11248     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11249     hardcode_action_CXX=immediate
11250   fi
11251 else
11252   # We cannot hardcode anything, or else we can only hardcode existing
11253   # directories.
11254   hardcode_action_CXX=unsupported
11255 fi
11256 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11257 echo "${ECHO_T}$hardcode_action_CXX" >&6
11258
11259 if test "$hardcode_action_CXX" = relink; then
11260   # Fast installation is not supported
11261   enable_fast_install=no
11262 elif test "$shlibpath_overrides_runpath" = yes ||
11263      test "$enable_shared" = no; then
11264   # Fast installation is not necessary
11265   enable_fast_install=needless
11266 fi
11267
11268 striplib=
11269 old_striplib=
11270 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11271 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11272 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11273   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11274   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11275   echo "$as_me:$LINENO: result: yes" >&5
11276 echo "${ECHO_T}yes" >&6
11277 else
11278 # FIXME - insert some real tests, host_os isn't really good enough
11279   case $host_os in
11280    darwin*)
11281        if test -n "$STRIP" ; then
11282          striplib="$STRIP -x"
11283          echo "$as_me:$LINENO: result: yes" >&5
11284 echo "${ECHO_T}yes" >&6
11285        else
11286   echo "$as_me:$LINENO: result: no" >&5
11287 echo "${ECHO_T}no" >&6
11288 fi
11289        ;;
11290    *)
11291   echo "$as_me:$LINENO: result: no" >&5
11292 echo "${ECHO_T}no" >&6
11293     ;;
11294   esac
11295 fi
11296
11297 if test "x$enable_dlopen" != xyes; then
11298   enable_dlopen=unknown
11299   enable_dlopen_self=unknown
11300   enable_dlopen_self_static=unknown
11301 else
11302   lt_cv_dlopen=no
11303   lt_cv_dlopen_libs=
11304
11305   case $host_os in
11306   beos*)
11307     lt_cv_dlopen="load_add_on"
11308     lt_cv_dlopen_libs=
11309     lt_cv_dlopen_self=yes
11310     ;;
11311
11312   mingw* | pw32*)
11313     lt_cv_dlopen="LoadLibrary"
11314     lt_cv_dlopen_libs=
11315    ;;
11316
11317   cygwin*)
11318     lt_cv_dlopen="dlopen"
11319     lt_cv_dlopen_libs=
11320    ;;
11321
11322   darwin*)
11323   # if libdl is installed we need to link against it
11324     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11325 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11326 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11327   echo $ECHO_N "(cached) $ECHO_C" >&6
11328 else
11329   ac_check_lib_save_LIBS=$LIBS
11330 LIBS="-ldl  $LIBS"
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h.  */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h.  */
11337
11338 /* Override any gcc2 internal prototype to avoid an error.  */
11339 #ifdef __cplusplus
11340 extern "C"
11341 #endif
11342 /* We use char because int might match the return type of a gcc2
11343    builtin and then its argument prototype would still apply.  */
11344 char dlopen ();
11345 int
11346 main ()
11347 {
11348 dlopen ();
11349   ;
11350   return 0;
11351 }
11352 _ACEOF
11353 rm -f conftest.$ac_objext conftest$ac_exeext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11355   (eval $ac_link) 2>conftest.er1
11356   ac_status=$?
11357   grep -v '^ *+' conftest.er1 >conftest.err
11358   rm -f conftest.er1
11359   cat conftest.err >&5
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); } &&
11362          { ac_try='test -z "$ac_cxx_werror_flag"
11363                          || test ! -s conftest.err'
11364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365   (eval $ac_try) 2>&5
11366   ac_status=$?
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); }; } &&
11369          { ac_try='test -s conftest$ac_exeext'
11370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371   (eval $ac_try) 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); }; }; then
11375   ac_cv_lib_dl_dlopen=yes
11376 else
11377   echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11379
11380 ac_cv_lib_dl_dlopen=no
11381 fi
11382 rm -f conftest.err conftest.$ac_objext \
11383       conftest$ac_exeext conftest.$ac_ext
11384 LIBS=$ac_check_lib_save_LIBS
11385 fi
11386 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11387 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11388 if test $ac_cv_lib_dl_dlopen = yes; then
11389   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11390 else
11391
11392     lt_cv_dlopen="dyld"
11393     lt_cv_dlopen_libs=
11394     lt_cv_dlopen_self=yes
11395
11396 fi
11397
11398    ;;
11399
11400   *)
11401     echo "$as_me:$LINENO: checking for shl_load" >&5
11402 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11403 if test "${ac_cv_func_shl_load+set}" = set; then
11404   echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406   cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h.  */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h.  */
11412 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11414 #define shl_load innocuous_shl_load
11415
11416 /* System header to define __stub macros and hopefully few prototypes,
11417     which can conflict with char shl_load (); below.
11418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11419     <limits.h> exists even on freestanding compilers.  */
11420
11421 #ifdef __STDC__
11422 # include <limits.h>
11423 #else
11424 # include <assert.h>
11425 #endif
11426
11427 #undef shl_load
11428
11429 /* Override any gcc2 internal prototype to avoid an error.  */
11430 #ifdef __cplusplus
11431 extern "C"
11432 {
11433 #endif
11434 /* We use char because int might match the return type of a gcc2
11435    builtin and then its argument prototype would still apply.  */
11436 char shl_load ();
11437 /* The GNU C library defines this for functions which it implements
11438     to always fail with ENOSYS.  Some functions are actually named
11439     something starting with __ and the normal name is an alias.  */
11440 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11441 choke me
11442 #else
11443 char (*f) () = shl_load;
11444 #endif
11445 #ifdef __cplusplus
11446 }
11447 #endif
11448
11449 int
11450 main ()
11451 {
11452 return f != shl_load;
11453   ;
11454   return 0;
11455 }
11456 _ACEOF
11457 rm -f conftest.$ac_objext conftest$ac_exeext
11458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11459   (eval $ac_link) 2>conftest.er1
11460   ac_status=$?
11461   grep -v '^ *+' conftest.er1 >conftest.err
11462   rm -f conftest.er1
11463   cat conftest.err >&5
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); } &&
11466          { ac_try='test -z "$ac_cxx_werror_flag"
11467                          || test ! -s conftest.err'
11468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469   (eval $ac_try) 2>&5
11470   ac_status=$?
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); }; } &&
11473          { ac_try='test -s conftest$ac_exeext'
11474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475   (eval $ac_try) 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); }; }; then
11479   ac_cv_func_shl_load=yes
11480 else
11481   echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11483
11484 ac_cv_func_shl_load=no
11485 fi
11486 rm -f conftest.err conftest.$ac_objext \
11487       conftest$ac_exeext conftest.$ac_ext
11488 fi
11489 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11490 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11491 if test $ac_cv_func_shl_load = yes; then
11492   lt_cv_dlopen="shl_load"
11493 else
11494   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11495 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11496 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11497   echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499   ac_check_lib_save_LIBS=$LIBS
11500 LIBS="-ldld  $LIBS"
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507
11508 /* Override any gcc2 internal prototype to avoid an error.  */
11509 #ifdef __cplusplus
11510 extern "C"
11511 #endif
11512 /* We use char because int might match the return type of a gcc2
11513    builtin and then its argument prototype would still apply.  */
11514 char shl_load ();
11515 int
11516 main ()
11517 {
11518 shl_load ();
11519   ;
11520   return 0;
11521 }
11522 _ACEOF
11523 rm -f conftest.$ac_objext conftest$ac_exeext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11525   (eval $ac_link) 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } &&
11532          { ac_try='test -z "$ac_cxx_werror_flag"
11533                          || test ! -s conftest.err'
11534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535   (eval $ac_try) 2>&5
11536   ac_status=$?
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); }; } &&
11539          { ac_try='test -s conftest$ac_exeext'
11540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541   (eval $ac_try) 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; }; then
11545   ac_cv_lib_dld_shl_load=yes
11546 else
11547   echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11549
11550 ac_cv_lib_dld_shl_load=no
11551 fi
11552 rm -f conftest.err conftest.$ac_objext \
11553       conftest$ac_exeext conftest.$ac_ext
11554 LIBS=$ac_check_lib_save_LIBS
11555 fi
11556 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11557 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11558 if test $ac_cv_lib_dld_shl_load = yes; then
11559   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11560 else
11561   echo "$as_me:$LINENO: checking for dlopen" >&5
11562 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11563 if test "${ac_cv_func_dlopen+set}" = set; then
11564   echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566   cat >conftest.$ac_ext <<_ACEOF
11567 /* confdefs.h.  */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h.  */
11572 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11574 #define dlopen innocuous_dlopen
11575
11576 /* System header to define __stub macros and hopefully few prototypes,
11577     which can conflict with char dlopen (); below.
11578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11579     <limits.h> exists even on freestanding compilers.  */
11580
11581 #ifdef __STDC__
11582 # include <limits.h>
11583 #else
11584 # include <assert.h>
11585 #endif
11586
11587 #undef dlopen
11588
11589 /* Override any gcc2 internal prototype to avoid an error.  */
11590 #ifdef __cplusplus
11591 extern "C"
11592 {
11593 #endif
11594 /* We use char because int might match the return type of a gcc2
11595    builtin and then its argument prototype would still apply.  */
11596 char dlopen ();
11597 /* The GNU C library defines this for functions which it implements
11598     to always fail with ENOSYS.  Some functions are actually named
11599     something starting with __ and the normal name is an alias.  */
11600 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11601 choke me
11602 #else
11603 char (*f) () = dlopen;
11604 #endif
11605 #ifdef __cplusplus
11606 }
11607 #endif
11608
11609 int
11610 main ()
11611 {
11612 return f != dlopen;
11613   ;
11614   return 0;
11615 }
11616 _ACEOF
11617 rm -f conftest.$ac_objext conftest$ac_exeext
11618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11619   (eval $ac_link) 2>conftest.er1
11620   ac_status=$?
11621   grep -v '^ *+' conftest.er1 >conftest.err
11622   rm -f conftest.er1
11623   cat conftest.err >&5
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); } &&
11626          { ac_try='test -z "$ac_cxx_werror_flag"
11627                          || test ! -s conftest.err'
11628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629   (eval $ac_try) 2>&5
11630   ac_status=$?
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); }; } &&
11633          { ac_try='test -s conftest$ac_exeext'
11634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635   (eval $ac_try) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); }; }; then
11639   ac_cv_func_dlopen=yes
11640 else
11641   echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11643
11644 ac_cv_func_dlopen=no
11645 fi
11646 rm -f conftest.err conftest.$ac_objext \
11647       conftest$ac_exeext conftest.$ac_ext
11648 fi
11649 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11650 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11651 if test $ac_cv_func_dlopen = yes; then
11652   lt_cv_dlopen="dlopen"
11653 else
11654   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11655 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659   ac_check_lib_save_LIBS=$LIBS
11660 LIBS="-ldl  $LIBS"
11661 cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667
11668 /* Override any gcc2 internal prototype to avoid an error.  */
11669 #ifdef __cplusplus
11670 extern "C"
11671 #endif
11672 /* We use char because int might match the return type of a gcc2
11673    builtin and then its argument prototype would still apply.  */
11674 char dlopen ();
11675 int
11676 main ()
11677 {
11678 dlopen ();
11679   ;
11680   return 0;
11681 }
11682 _ACEOF
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685   (eval $ac_link) 2>conftest.er1
11686   ac_status=$?
11687   grep -v '^ *+' conftest.er1 >conftest.err
11688   rm -f conftest.er1
11689   cat conftest.err >&5
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); } &&
11692          { ac_try='test -z "$ac_cxx_werror_flag"
11693                          || test ! -s conftest.err'
11694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695   (eval $ac_try) 2>&5
11696   ac_status=$?
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); }; } &&
11699          { ac_try='test -s conftest$ac_exeext'
11700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701   (eval $ac_try) 2>&5
11702   ac_status=$?
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); }; }; then
11705   ac_cv_lib_dl_dlopen=yes
11706 else
11707   echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11709
11710 ac_cv_lib_dl_dlopen=no
11711 fi
11712 rm -f conftest.err conftest.$ac_objext \
11713       conftest$ac_exeext conftest.$ac_ext
11714 LIBS=$ac_check_lib_save_LIBS
11715 fi
11716 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11717 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11718 if test $ac_cv_lib_dl_dlopen = yes; then
11719   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11720 else
11721   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11722 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11723 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11724   echo $ECHO_N "(cached) $ECHO_C" >&6
11725 else
11726   ac_check_lib_save_LIBS=$LIBS
11727 LIBS="-lsvld  $LIBS"
11728 cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h.  */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h.  */
11734
11735 /* Override any gcc2 internal prototype to avoid an error.  */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 /* We use char because int might match the return type of a gcc2
11740    builtin and then its argument prototype would still apply.  */
11741 char dlopen ();
11742 int
11743 main ()
11744 {
11745 dlopen ();
11746   ;
11747   return 0;
11748 }
11749 _ACEOF
11750 rm -f conftest.$ac_objext conftest$ac_exeext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752   (eval $ac_link) 2>conftest.er1
11753   ac_status=$?
11754   grep -v '^ *+' conftest.er1 >conftest.err
11755   rm -f conftest.er1
11756   cat conftest.err >&5
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); } &&
11759          { ac_try='test -z "$ac_cxx_werror_flag"
11760                          || test ! -s conftest.err'
11761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762   (eval $ac_try) 2>&5
11763   ac_status=$?
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); }; } &&
11766          { ac_try='test -s conftest$ac_exeext'
11767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768   (eval $ac_try) 2>&5
11769   ac_status=$?
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); }; }; then
11772   ac_cv_lib_svld_dlopen=yes
11773 else
11774   echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11776
11777 ac_cv_lib_svld_dlopen=no
11778 fi
11779 rm -f conftest.err conftest.$ac_objext \
11780       conftest$ac_exeext conftest.$ac_ext
11781 LIBS=$ac_check_lib_save_LIBS
11782 fi
11783 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11784 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11785 if test $ac_cv_lib_svld_dlopen = yes; then
11786   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11787 else
11788   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11789 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11790 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11791   echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793   ac_check_lib_save_LIBS=$LIBS
11794 LIBS="-ldld  $LIBS"
11795 cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h.  */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h.  */
11801
11802 /* Override any gcc2 internal prototype to avoid an error.  */
11803 #ifdef __cplusplus
11804 extern "C"
11805 #endif
11806 /* We use char because int might match the return type of a gcc2
11807    builtin and then its argument prototype would still apply.  */
11808 char dld_link ();
11809 int
11810 main ()
11811 {
11812 dld_link ();
11813   ;
11814   return 0;
11815 }
11816 _ACEOF
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11819   (eval $ac_link) 2>conftest.er1
11820   ac_status=$?
11821   grep -v '^ *+' conftest.er1 >conftest.err
11822   rm -f conftest.er1
11823   cat conftest.err >&5
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); } &&
11826          { ac_try='test -z "$ac_cxx_werror_flag"
11827                          || test ! -s conftest.err'
11828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829   (eval $ac_try) 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }; } &&
11833          { ac_try='test -s conftest$ac_exeext'
11834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835   (eval $ac_try) 2>&5
11836   ac_status=$?
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); }; }; then
11839   ac_cv_lib_dld_dld_link=yes
11840 else
11841   echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11843
11844 ac_cv_lib_dld_dld_link=no
11845 fi
11846 rm -f conftest.err conftest.$ac_objext \
11847       conftest$ac_exeext conftest.$ac_ext
11848 LIBS=$ac_check_lib_save_LIBS
11849 fi
11850 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11851 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11852 if test $ac_cv_lib_dld_dld_link = yes; then
11853   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11854 fi
11855
11856
11857 fi
11858
11859
11860 fi
11861
11862
11863 fi
11864
11865
11866 fi
11867
11868
11869 fi
11870
11871     ;;
11872   esac
11873
11874   if test "x$lt_cv_dlopen" != xno; then
11875     enable_dlopen=yes
11876   else
11877     enable_dlopen=no
11878   fi
11879
11880   case $lt_cv_dlopen in
11881   dlopen)
11882     save_CPPFLAGS="$CPPFLAGS"
11883     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11884
11885     save_LDFLAGS="$LDFLAGS"
11886     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11887
11888     save_LIBS="$LIBS"
11889     LIBS="$lt_cv_dlopen_libs $LIBS"
11890
11891     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11892 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11893 if test "${lt_cv_dlopen_self+set}" = set; then
11894   echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896           if test "$cross_compiling" = yes; then :
11897   lt_cv_dlopen_self=cross
11898 else
11899   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11900   lt_status=$lt_dlunknown
11901   cat > conftest.$ac_ext <<EOF
11902 #line 11902 "configure"
11903 #include "confdefs.h"
11904
11905 #if HAVE_DLFCN_H
11906 #include <dlfcn.h>
11907 #endif
11908
11909 #include <stdio.h>
11910
11911 #ifdef RTLD_GLOBAL
11912 #  define LT_DLGLOBAL           RTLD_GLOBAL
11913 #else
11914 #  ifdef DL_GLOBAL
11915 #    define LT_DLGLOBAL         DL_GLOBAL
11916 #  else
11917 #    define LT_DLGLOBAL         0
11918 #  endif
11919 #endif
11920
11921 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11922    find out it does not work in some platform. */
11923 #ifndef LT_DLLAZY_OR_NOW
11924 #  ifdef RTLD_LAZY
11925 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11926 #  else
11927 #    ifdef DL_LAZY
11928 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11929 #    else
11930 #      ifdef RTLD_NOW
11931 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11932 #      else
11933 #        ifdef DL_NOW
11934 #          define LT_DLLAZY_OR_NOW      DL_NOW
11935 #        else
11936 #          define LT_DLLAZY_OR_NOW      0
11937 #        endif
11938 #      endif
11939 #    endif
11940 #  endif
11941 #endif
11942
11943 #ifdef __cplusplus
11944 extern "C" void exit (int);
11945 #endif
11946
11947 void fnord() { int i=42;}
11948 int main ()
11949 {
11950   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11951   int status = $lt_dlunknown;
11952
11953   if (self)
11954     {
11955       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11956       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11957       /* dlclose (self); */
11958     }
11959
11960     exit (status);
11961 }
11962 EOF
11963   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11964   (eval $ac_link) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11968     (./conftest; exit; ) 2>/dev/null
11969     lt_status=$?
11970     case x$lt_status in
11971       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11972       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11973       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11974     esac
11975   else :
11976     # compilation failed
11977     lt_cv_dlopen_self=no
11978   fi
11979 fi
11980 rm -fr conftest*
11981
11982
11983 fi
11984 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11985 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11986
11987     if test "x$lt_cv_dlopen_self" = xyes; then
11988       LDFLAGS="$LDFLAGS $link_static_flag"
11989       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11990 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11991 if test "${lt_cv_dlopen_self_static+set}" = set; then
11992   echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994           if test "$cross_compiling" = yes; then :
11995   lt_cv_dlopen_self_static=cross
11996 else
11997   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11998   lt_status=$lt_dlunknown
11999   cat > conftest.$ac_ext <<EOF
12000 #line 12000 "configure"
12001 #include "confdefs.h"
12002
12003 #if HAVE_DLFCN_H
12004 #include <dlfcn.h>
12005 #endif
12006
12007 #include <stdio.h>
12008
12009 #ifdef RTLD_GLOBAL
12010 #  define LT_DLGLOBAL           RTLD_GLOBAL
12011 #else
12012 #  ifdef DL_GLOBAL
12013 #    define LT_DLGLOBAL         DL_GLOBAL
12014 #  else
12015 #    define LT_DLGLOBAL         0
12016 #  endif
12017 #endif
12018
12019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12020    find out it does not work in some platform. */
12021 #ifndef LT_DLLAZY_OR_NOW
12022 #  ifdef RTLD_LAZY
12023 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12024 #  else
12025 #    ifdef DL_LAZY
12026 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12027 #    else
12028 #      ifdef RTLD_NOW
12029 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12030 #      else
12031 #        ifdef DL_NOW
12032 #          define LT_DLLAZY_OR_NOW      DL_NOW
12033 #        else
12034 #          define LT_DLLAZY_OR_NOW      0
12035 #        endif
12036 #      endif
12037 #    endif
12038 #  endif
12039 #endif
12040
12041 #ifdef __cplusplus
12042 extern "C" void exit (int);
12043 #endif
12044
12045 void fnord() { int i=42;}
12046 int main ()
12047 {
12048   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12049   int status = $lt_dlunknown;
12050
12051   if (self)
12052     {
12053       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12054       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12055       /* dlclose (self); */
12056     }
12057
12058     exit (status);
12059 }
12060 EOF
12061   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062   (eval $ac_link) 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12066     (./conftest; exit; ) 2>/dev/null
12067     lt_status=$?
12068     case x$lt_status in
12069       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12070       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12071       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12072     esac
12073   else :
12074     # compilation failed
12075     lt_cv_dlopen_self_static=no
12076   fi
12077 fi
12078 rm -fr conftest*
12079
12080
12081 fi
12082 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12083 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12084     fi
12085
12086     CPPFLAGS="$save_CPPFLAGS"
12087     LDFLAGS="$save_LDFLAGS"
12088     LIBS="$save_LIBS"
12089     ;;
12090   esac
12091
12092   case $lt_cv_dlopen_self in
12093   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12094   *) enable_dlopen_self=unknown ;;
12095   esac
12096
12097   case $lt_cv_dlopen_self_static in
12098   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12099   *) enable_dlopen_self_static=unknown ;;
12100   esac
12101 fi
12102
12103
12104 # The else clause should only fire when bootstrapping the
12105 # libtool distribution, otherwise you forgot to ship ltmain.sh
12106 # with your package, and you will get complaints that there are
12107 # no rules to generate ltmain.sh.
12108 if test -f "$ltmain"; then
12109   # See if we are running on zsh, and set the options which allow our commands through
12110   # without removal of \ escapes.
12111   if test -n "${ZSH_VERSION+set}" ; then
12112     setopt NO_GLOB_SUBST
12113   fi
12114   # Now quote all the things that may contain metacharacters while being
12115   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12116   # variables and quote the copies for generation of the libtool script.
12117   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12118     SED SHELL STRIP \
12119     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12120     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12121     deplibs_check_method reload_flag reload_cmds need_locks \
12122     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12123     lt_cv_sys_global_symbol_to_c_name_address \
12124     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12125     old_postinstall_cmds old_postuninstall_cmds \
12126     compiler_CXX \
12127     CC_CXX \
12128     LD_CXX \
12129     lt_prog_compiler_wl_CXX \
12130     lt_prog_compiler_pic_CXX \
12131     lt_prog_compiler_static_CXX \
12132     lt_prog_compiler_no_builtin_flag_CXX \
12133     export_dynamic_flag_spec_CXX \
12134     thread_safe_flag_spec_CXX \
12135     whole_archive_flag_spec_CXX \
12136     enable_shared_with_static_runtimes_CXX \
12137     old_archive_cmds_CXX \
12138     old_archive_from_new_cmds_CXX \
12139     predep_objects_CXX \
12140     postdep_objects_CXX \
12141     predeps_CXX \
12142     postdeps_CXX \
12143     compiler_lib_search_path_CXX \
12144     archive_cmds_CXX \
12145     archive_expsym_cmds_CXX \
12146     postinstall_cmds_CXX \
12147     postuninstall_cmds_CXX \
12148     old_archive_from_expsyms_cmds_CXX \
12149     allow_undefined_flag_CXX \
12150     no_undefined_flag_CXX \
12151     export_symbols_cmds_CXX \
12152     hardcode_libdir_flag_spec_CXX \
12153     hardcode_libdir_flag_spec_ld_CXX \
12154     hardcode_libdir_separator_CXX \
12155     hardcode_automatic_CXX \
12156     module_cmds_CXX \
12157     module_expsym_cmds_CXX \
12158     lt_cv_prog_compiler_c_o_CXX \
12159     exclude_expsyms_CXX \
12160     include_expsyms_CXX; do
12161
12162     case $var in
12163     old_archive_cmds_CXX | \
12164     old_archive_from_new_cmds_CXX | \
12165     archive_cmds_CXX | \
12166     archive_expsym_cmds_CXX | \
12167     module_cmds_CXX | \
12168     module_expsym_cmds_CXX | \
12169     old_archive_from_expsyms_cmds_CXX | \
12170     export_symbols_cmds_CXX | \
12171     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12172     postinstall_cmds | postuninstall_cmds | \
12173     old_postinstall_cmds | old_postuninstall_cmds | \
12174     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12175       # Double-quote double-evaled strings.
12176       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12177       ;;
12178     *)
12179       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12180       ;;
12181     esac
12182   done
12183
12184   case $lt_echo in
12185   *'\$0 --fallback-echo"')
12186     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12187     ;;
12188   esac
12189
12190 cfgfile="$ofile"
12191
12192   cat <<__EOF__ >> "$cfgfile"
12193 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12194
12195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12196
12197 # Shell to use when invoking shell scripts.
12198 SHELL=$lt_SHELL
12199
12200 # Whether or not to build shared libraries.
12201 build_libtool_libs=$enable_shared
12202
12203 # Whether or not to build static libraries.
12204 build_old_libs=$enable_static
12205
12206 # Whether or not to add -lc for building shared libraries.
12207 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12208
12209 # Whether or not to disallow shared libs when runtime libs are static
12210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12211
12212 # Whether or not to optimize for fast installation.
12213 fast_install=$enable_fast_install
12214
12215 # The host system.
12216 host_alias=$host_alias
12217 host=$host
12218
12219 # An echo program that does not interpret backslashes.
12220 echo=$lt_echo
12221
12222 # The archiver.
12223 AR=$lt_AR
12224 AR_FLAGS=$lt_AR_FLAGS
12225
12226 # A C compiler.
12227 LTCC=$lt_LTCC
12228
12229 # A language-specific compiler.
12230 CC=$lt_compiler_CXX
12231
12232 # Is the compiler the GNU C compiler?
12233 with_gcc=$GCC_CXX
12234
12235 # An ERE matcher.
12236 EGREP=$lt_EGREP
12237
12238 # The linker used to build libraries.
12239 LD=$lt_LD_CXX
12240
12241 # Whether we need hard or soft links.
12242 LN_S=$lt_LN_S
12243
12244 # A BSD-compatible nm program.
12245 NM=$lt_NM
12246
12247 # A symbol stripping program
12248 STRIP=$lt_STRIP
12249
12250 # Used to examine libraries when file_magic_cmd begins "file"
12251 MAGIC_CMD=$MAGIC_CMD
12252
12253 # Used on cygwin: DLL creation program.
12254 DLLTOOL="$DLLTOOL"
12255
12256 # Used on cygwin: object dumper.
12257 OBJDUMP="$OBJDUMP"
12258
12259 # Used on cygwin: assembler.
12260 AS="$AS"
12261
12262 # The name of the directory that contains temporary libtool files.
12263 objdir=$objdir
12264
12265 # How to create reloadable object files.
12266 reload_flag=$lt_reload_flag
12267 reload_cmds=$lt_reload_cmds
12268
12269 # How to pass a linker flag through the compiler.
12270 wl=$lt_lt_prog_compiler_wl_CXX
12271
12272 # Object file suffix (normally "o").
12273 objext="$ac_objext"
12274
12275 # Old archive suffix (normally "a").
12276 libext="$libext"
12277
12278 # Shared library suffix (normally ".so").
12279 shrext_cmds='$shrext_cmds'
12280
12281 # Executable file suffix (normally "").
12282 exeext="$exeext"
12283
12284 # Additional compiler flags for building library objects.
12285 pic_flag=$lt_lt_prog_compiler_pic_CXX
12286 pic_mode=$pic_mode
12287
12288 # What is the maximum length of a command?
12289 max_cmd_len=$lt_cv_sys_max_cmd_len
12290
12291 # Does compiler simultaneously support -c and -o options?
12292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12293
12294 # Must we lock files when doing compilation ?
12295 need_locks=$lt_need_locks
12296
12297 # Do we need the lib prefix for modules?
12298 need_lib_prefix=$need_lib_prefix
12299
12300 # Do we need a version for libraries?
12301 need_version=$need_version
12302
12303 # Whether dlopen is supported.
12304 dlopen_support=$enable_dlopen
12305
12306 # Whether dlopen of programs is supported.
12307 dlopen_self=$enable_dlopen_self
12308
12309 # Whether dlopen of statically linked programs is supported.
12310 dlopen_self_static=$enable_dlopen_self_static
12311
12312 # Compiler flag to prevent dynamic linking.
12313 link_static_flag=$lt_lt_prog_compiler_static_CXX
12314
12315 # Compiler flag to turn off builtin functions.
12316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12317
12318 # Compiler flag to allow reflexive dlopens.
12319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12320
12321 # Compiler flag to generate shared objects directly from archives.
12322 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12323
12324 # Compiler flag to generate thread-safe objects.
12325 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12326
12327 # Library versioning type.
12328 version_type=$version_type
12329
12330 # Format of library name prefix.
12331 libname_spec=$lt_libname_spec
12332
12333 # List of archive names.  First name is the real one, the rest are links.
12334 # The last name is the one that the linker finds with -lNAME.
12335 library_names_spec=$lt_library_names_spec
12336
12337 # The coded name of the library, if different from the real name.
12338 soname_spec=$lt_soname_spec
12339
12340 # Commands used to build and install an old-style archive.
12341 RANLIB=$lt_RANLIB
12342 old_archive_cmds=$lt_old_archive_cmds_CXX
12343 old_postinstall_cmds=$lt_old_postinstall_cmds
12344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12345
12346 # Create an old-style archive from a shared archive.
12347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12348
12349 # Create a temporary old-style archive to link instead of a shared archive.
12350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12351
12352 # Commands used to build and install a shared archive.
12353 archive_cmds=$lt_archive_cmds_CXX
12354 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12355 postinstall_cmds=$lt_postinstall_cmds
12356 postuninstall_cmds=$lt_postuninstall_cmds
12357
12358 # Commands used to build a loadable module (assumed same as above if empty)
12359 module_cmds=$lt_module_cmds_CXX
12360 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12361
12362 # Commands to strip libraries.
12363 old_striplib=$lt_old_striplib
12364 striplib=$lt_striplib
12365
12366 # Dependencies to place before the objects being linked to create a
12367 # shared library.
12368 predep_objects=$lt_predep_objects_CXX
12369
12370 # Dependencies to place after the objects being linked to create a
12371 # shared library.
12372 postdep_objects=$lt_postdep_objects_CXX
12373
12374 # Dependencies to place before the objects being linked to create a
12375 # shared library.
12376 predeps=$lt_predeps_CXX
12377
12378 # Dependencies to place after the objects being linked to create a
12379 # shared library.
12380 postdeps=$lt_postdeps_CXX
12381
12382 # The library search path used internally by the compiler when linking
12383 # a shared library.
12384 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12385
12386 # Method to check whether dependent libraries are shared objects.
12387 deplibs_check_method=$lt_deplibs_check_method
12388
12389 # Command to use when deplibs_check_method == file_magic.
12390 file_magic_cmd=$lt_file_magic_cmd
12391
12392 # Flag that allows shared libraries with undefined symbols to be built.
12393 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12394
12395 # Flag that forces no undefined symbols.
12396 no_undefined_flag=$lt_no_undefined_flag_CXX
12397
12398 # Commands used to finish a libtool library installation in a directory.
12399 finish_cmds=$lt_finish_cmds
12400
12401 # Same as above, but a single script fragment to be evaled but not shown.
12402 finish_eval=$lt_finish_eval
12403
12404 # Take the output of nm and produce a listing of raw symbols and C names.
12405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12406
12407 # Transform the output of nm in a proper C declaration
12408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12409
12410 # Transform the output of nm in a C name address pair
12411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12412
12413 # This is the shared library runtime path variable.
12414 runpath_var=$runpath_var
12415
12416 # This is the shared library path variable.
12417 shlibpath_var=$shlibpath_var
12418
12419 # Is shlibpath searched before the hard-coded library search path?
12420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12421
12422 # How to hardcode a shared library path into an executable.
12423 hardcode_action=$hardcode_action_CXX
12424
12425 # Whether we should hardcode library paths into libraries.
12426 hardcode_into_libs=$hardcode_into_libs
12427
12428 # Flag to hardcode \$libdir into a binary during linking.
12429 # This must work even if \$libdir does not exist.
12430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12431
12432 # If ld is used when linking, flag to hardcode \$libdir into
12433 # a binary during linking. This must work even if \$libdir does
12434 # not exist.
12435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12436
12437 # Whether we need a single -rpath flag with a separated argument.
12438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12439
12440 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12441 # resulting binary.
12442 hardcode_direct=$hardcode_direct_CXX
12443
12444 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12445 # resulting binary.
12446 hardcode_minus_L=$hardcode_minus_L_CXX
12447
12448 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12449 # the resulting binary.
12450 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12451
12452 # Set to yes if building a shared library automatically hardcodes DIR into the library
12453 # and all subsequent libraries and executables linked against it.
12454 hardcode_automatic=$hardcode_automatic_CXX
12455
12456 # Variables whose values should be saved in libtool wrapper scripts and
12457 # restored at relink time.
12458 variables_saved_for_relink="$variables_saved_for_relink"
12459
12460 # Whether libtool must link a program against all its dependency libraries.
12461 link_all_deplibs=$link_all_deplibs_CXX
12462
12463 # Compile-time system search path for libraries
12464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12465
12466 # Run-time system search path for libraries
12467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12468
12469 # Fix the shell variable \$srcfile for the compiler.
12470 fix_srcfile_path="$fix_srcfile_path_CXX"
12471
12472 # Set to yes if exported symbols are required.
12473 always_export_symbols=$always_export_symbols_CXX
12474
12475 # The commands to list exported symbols.
12476 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12477
12478 # The commands to extract the exported symbol list from a shared archive.
12479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12480
12481 # Symbols that should not be listed in the preloaded symbols.
12482 exclude_expsyms=$lt_exclude_expsyms_CXX
12483
12484 # Symbols that must always be exported.
12485 include_expsyms=$lt_include_expsyms_CXX
12486
12487 # ### END LIBTOOL TAG CONFIG: $tagname
12488
12489 __EOF__
12490
12491
12492 else
12493   # If there is no Makefile yet, we rely on a make rule to execute
12494   # `config.status --recheck' to rerun these tests and create the
12495   # libtool script then.
12496   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12497   if test -f "$ltmain_in"; then
12498     test -f Makefile && make "$ltmain"
12499   fi
12500 fi
12501
12502
12503 ac_ext=c
12504 ac_cpp='$CPP $CPPFLAGS'
12505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12508
12509 CC=$lt_save_CC
12510 LDCXX=$LD
12511 LD=$lt_save_LD
12512 GCC=$lt_save_GCC
12513 with_gnu_ldcxx=$with_gnu_ld
12514 with_gnu_ld=$lt_save_with_gnu_ld
12515 lt_cv_path_LDCXX=$lt_cv_path_LD
12516 lt_cv_path_LD=$lt_save_path_LD
12517 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12518 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12519
12520         else
12521           tagname=""
12522         fi
12523         ;;
12524
12525       F77)
12526         if test -n "$F77" && test "X$F77" != "Xno"; then
12527
12528 ac_ext=f
12529 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12530 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12531 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12532
12533
12534 archive_cmds_need_lc_F77=no
12535 allow_undefined_flag_F77=
12536 always_export_symbols_F77=no
12537 archive_expsym_cmds_F77=
12538 export_dynamic_flag_spec_F77=
12539 hardcode_direct_F77=no
12540 hardcode_libdir_flag_spec_F77=
12541 hardcode_libdir_flag_spec_ld_F77=
12542 hardcode_libdir_separator_F77=
12543 hardcode_minus_L_F77=no
12544 hardcode_automatic_F77=no
12545 module_cmds_F77=
12546 module_expsym_cmds_F77=
12547 link_all_deplibs_F77=unknown
12548 old_archive_cmds_F77=$old_archive_cmds
12549 no_undefined_flag_F77=
12550 whole_archive_flag_spec_F77=
12551 enable_shared_with_static_runtimes_F77=no
12552
12553 # Source file extension for f77 test sources.
12554 ac_ext=f
12555
12556 # Object file extension for compiled f77 test sources.
12557 objext=o
12558 objext_F77=$objext
12559
12560 # Code to be used in simple compile tests
12561 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12562
12563 # Code to be used in simple link tests
12564 lt_simple_link_test_code="      program t\n      end\n"
12565
12566 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12567
12568 # If no C compiler was specified, use CC.
12569 LTCC=${LTCC-"$CC"}
12570
12571 # Allow CC to be a program name with arguments.
12572 compiler=$CC
12573
12574
12575 # Allow CC to be a program name with arguments.
12576 lt_save_CC="$CC"
12577 CC=${F77-"f77"}
12578 compiler=$CC
12579 compiler_F77=$CC
12580 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12581
12582 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12583 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12584 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12585 echo "${ECHO_T}$can_build_shared" >&6
12586
12587 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12588 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12589 test "$can_build_shared" = "no" && enable_shared=no
12590
12591 # On AIX, shared libraries and static libraries use the same namespace, and
12592 # are all built from PIC.
12593 case "$host_os" in
12594 aix3*)
12595   test "$enable_shared" = yes && enable_static=no
12596   if test -n "$RANLIB"; then
12597     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12598     postinstall_cmds='$RANLIB $lib'
12599   fi
12600   ;;
12601 aix4* | aix5*)
12602   test "$enable_shared" = yes && enable_static=no
12603   ;;
12604 esac
12605 echo "$as_me:$LINENO: result: $enable_shared" >&5
12606 echo "${ECHO_T}$enable_shared" >&6
12607
12608 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12609 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12610 # Make sure either enable_shared or enable_static is yes.
12611 test "$enable_shared" = yes || enable_static=yes
12612 echo "$as_me:$LINENO: result: $enable_static" >&5
12613 echo "${ECHO_T}$enable_static" >&6
12614
12615 test "$ld_shlibs_F77" = no && can_build_shared=no
12616
12617 GCC_F77="$G77"
12618 LD_F77="$LD"
12619
12620 lt_prog_compiler_wl_F77=
12621 lt_prog_compiler_pic_F77=
12622 lt_prog_compiler_static_F77=
12623
12624 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12625 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12626
12627   if test "$GCC" = yes; then
12628     lt_prog_compiler_wl_F77='-Wl,'
12629     lt_prog_compiler_static_F77='-static'
12630
12631     case $host_os in
12632       aix*)
12633       # All AIX code is PIC.
12634       if test "$host_cpu" = ia64; then
12635         # AIX 5 now supports IA64 processor
12636         lt_prog_compiler_static_F77='-Bstatic'
12637       fi
12638       ;;
12639
12640     amigaos*)
12641       # FIXME: we need at least 68020 code to build shared libraries, but
12642       # adding the `-m68020' flag to GCC prevents building anything better,
12643       # like `-m68040'.
12644       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12645       ;;
12646
12647     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12648       # PIC is the default for these OSes.
12649       ;;
12650
12651     mingw* | pw32* | os2*)
12652       # This hack is so that the source file can tell whether it is being
12653       # built for inclusion in a dll (and should export symbols for example).
12654       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12655       ;;
12656
12657     darwin* | rhapsody*)
12658       # PIC is the default on this platform
12659       # Common symbols not allowed in MH_DYLIB files
12660       lt_prog_compiler_pic_F77='-fno-common'
12661       ;;
12662
12663     msdosdjgpp*)
12664       # Just because we use GCC doesn't mean we suddenly get shared libraries
12665       # on systems that don't support them.
12666       lt_prog_compiler_can_build_shared_F77=no
12667       enable_shared=no
12668       ;;
12669
12670     sysv4*MP*)
12671       if test -d /usr/nec; then
12672         lt_prog_compiler_pic_F77=-Kconform_pic
12673       fi
12674       ;;
12675
12676     hpux*)
12677       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12678       # not for PA HP-UX.
12679       case "$host_cpu" in
12680       hppa*64*|ia64*)
12681         # +Z the default
12682         ;;
12683       *)
12684         lt_prog_compiler_pic_F77='-fPIC'
12685         ;;
12686       esac
12687       ;;
12688
12689     *)
12690       lt_prog_compiler_pic_F77='-fPIC'
12691       ;;
12692     esac
12693   else
12694     # PORTME Check for flag to pass linker flags through the system compiler.
12695     case $host_os in
12696     aix*)
12697       lt_prog_compiler_wl_F77='-Wl,'
12698       if test "$host_cpu" = ia64; then
12699         # AIX 5 now supports IA64 processor
12700         lt_prog_compiler_static_F77='-Bstatic'
12701       else
12702         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12703       fi
12704       ;;
12705       darwin*)
12706         # PIC is the default on this platform
12707         # Common symbols not allowed in MH_DYLIB files
12708        case "$cc_basename" in
12709          xlc*)
12710          lt_prog_compiler_pic_F77='-qnocommon'
12711          lt_prog_compiler_wl_F77='-Wl,'
12712          ;;
12713        esac
12714        ;;
12715
12716     mingw* | pw32* | os2*)
12717       # This hack is so that the source file can tell whether it is being
12718       # built for inclusion in a dll (and should export symbols for example).
12719       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12720       ;;
12721
12722     hpux9* | hpux10* | hpux11*)
12723       lt_prog_compiler_wl_F77='-Wl,'
12724       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12725       # not for PA HP-UX.
12726       case "$host_cpu" in
12727       hppa*64*|ia64*)
12728         # +Z the default
12729         ;;
12730       *)
12731         lt_prog_compiler_pic_F77='+Z'
12732         ;;
12733       esac
12734       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12735       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12736       ;;
12737
12738     irix5* | irix6* | nonstopux*)
12739       lt_prog_compiler_wl_F77='-Wl,'
12740       # PIC (with -KPIC) is the default.
12741       lt_prog_compiler_static_F77='-non_shared'
12742       ;;
12743
12744     newsos6)
12745       lt_prog_compiler_pic_F77='-KPIC'
12746       lt_prog_compiler_static_F77='-Bstatic'
12747       ;;
12748
12749     linux*)
12750       case $CC in
12751       icc* | ecc*)
12752         lt_prog_compiler_wl_F77='-Wl,'
12753         lt_prog_compiler_pic_F77='-KPIC'
12754         lt_prog_compiler_static_F77='-static'
12755         ;;
12756       ccc*)
12757         lt_prog_compiler_wl_F77='-Wl,'
12758         # All Alpha code is PIC.
12759         lt_prog_compiler_static_F77='-non_shared'
12760         ;;
12761       esac
12762       ;;
12763
12764     osf3* | osf4* | osf5*)
12765       lt_prog_compiler_wl_F77='-Wl,'
12766       # All OSF/1 code is PIC.
12767       lt_prog_compiler_static_F77='-non_shared'
12768       ;;
12769
12770     sco3.2v5*)
12771       lt_prog_compiler_pic_F77='-Kpic'
12772       lt_prog_compiler_static_F77='-dn'
12773       ;;
12774
12775     solaris*)
12776       lt_prog_compiler_wl_F77='-Wl,'
12777       lt_prog_compiler_pic_F77='-KPIC'
12778       lt_prog_compiler_static_F77='-Bstatic'
12779       ;;
12780
12781     sunos4*)
12782       lt_prog_compiler_wl_F77='-Qoption ld '
12783       lt_prog_compiler_pic_F77='-PIC'
12784       lt_prog_compiler_static_F77='-Bstatic'
12785       ;;
12786
12787     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12788       lt_prog_compiler_wl_F77='-Wl,'
12789       lt_prog_compiler_pic_F77='-KPIC'
12790       lt_prog_compiler_static_F77='-Bstatic'
12791       ;;
12792
12793     sysv4*MP*)
12794       if test -d /usr/nec ;then
12795         lt_prog_compiler_pic_F77='-Kconform_pic'
12796         lt_prog_compiler_static_F77='-Bstatic'
12797       fi
12798       ;;
12799
12800     uts4*)
12801       lt_prog_compiler_pic_F77='-pic'
12802       lt_prog_compiler_static_F77='-Bstatic'
12803       ;;
12804
12805     *)
12806       lt_prog_compiler_can_build_shared_F77=no
12807       ;;
12808     esac
12809   fi
12810
12811 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12812 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12813
12814 #
12815 # Check to make sure the PIC flag actually works.
12816 #
12817 if test -n "$lt_prog_compiler_pic_F77"; then
12818
12819 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12820 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12821 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824   lt_prog_compiler_pic_works_F77=no
12825   ac_outfile=conftest.$ac_objext
12826    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12827    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12828    # Insert the option either (1) after the last *FLAGS variable, or
12829    # (2) before a word containing "conftest.", or (3) at the end.
12830    # Note that $ac_compile itself does not contain backslashes and begins
12831    # with a dollar sign (not a hyphen), so the echo should work correctly.
12832    # The option is referenced via a variable to avoid confusing sed.
12833    lt_compile=`echo "$ac_compile" | $SED \
12834    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12835    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12836    -e 's:$: $lt_compiler_flag:'`
12837    (eval echo "\"\$as_me:12837: $lt_compile\"" >&5)
12838    (eval "$lt_compile" 2>conftest.err)
12839    ac_status=$?
12840    cat conftest.err >&5
12841    echo "$as_me:12841: \$? = $ac_status" >&5
12842    if (exit $ac_status) && test -s "$ac_outfile"; then
12843      # The compiler can only warn and ignore the option if not recognized
12844      # So say no if there are warnings
12845      if test ! -s conftest.err; then
12846        lt_prog_compiler_pic_works_F77=yes
12847      fi
12848    fi
12849    $rm conftest*
12850
12851 fi
12852 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12853 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12854
12855 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12856     case $lt_prog_compiler_pic_F77 in
12857      "" | " "*) ;;
12858      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12859      esac
12860 else
12861     lt_prog_compiler_pic_F77=
12862      lt_prog_compiler_can_build_shared_F77=no
12863 fi
12864
12865 fi
12866 case "$host_os" in
12867   # For platforms which do not support PIC, -DPIC is meaningless:
12868   *djgpp*)
12869     lt_prog_compiler_pic_F77=
12870     ;;
12871   *)
12872     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12873     ;;
12874 esac
12875
12876 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12877 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12878 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12879   echo $ECHO_N "(cached) $ECHO_C" >&6
12880 else
12881   lt_cv_prog_compiler_c_o_F77=no
12882    $rm -r conftest 2>/dev/null
12883    mkdir conftest
12884    cd conftest
12885    mkdir out
12886    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12887
12888    lt_compiler_flag="-o out/conftest2.$ac_objext"
12889    # Insert the option either (1) after the last *FLAGS variable, or
12890    # (2) before a word containing "conftest.", or (3) at the end.
12891    # Note that $ac_compile itself does not contain backslashes and begins
12892    # with a dollar sign (not a hyphen), so the echo should work correctly.
12893    lt_compile=`echo "$ac_compile" | $SED \
12894    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12895    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12896    -e 's:$: $lt_compiler_flag:'`
12897    (eval echo "\"\$as_me:12897: $lt_compile\"" >&5)
12898    (eval "$lt_compile" 2>out/conftest.err)
12899    ac_status=$?
12900    cat out/conftest.err >&5
12901    echo "$as_me:12901: \$? = $ac_status" >&5
12902    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12903    then
12904      # The compiler can only warn and ignore the option if not recognized
12905      # So say no if there are warnings
12906      if test ! -s out/conftest.err; then
12907        lt_cv_prog_compiler_c_o_F77=yes
12908      fi
12909    fi
12910    chmod u+w .
12911    $rm conftest*
12912    # SGI C++ compiler will create directory out/ii_files/ for
12913    # template instantiation
12914    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12915    $rm out/* && rmdir out
12916    cd ..
12917    rmdir conftest
12918    $rm conftest*
12919
12920 fi
12921 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12922 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12923
12924
12925 hard_links="nottested"
12926 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12927   # do not overwrite the value of need_locks provided by the user
12928   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12929 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12930   hard_links=yes
12931   $rm conftest*
12932   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12933   touch conftest.a
12934   ln conftest.a conftest.b 2>&5 || hard_links=no
12935   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12936   echo "$as_me:$LINENO: result: $hard_links" >&5
12937 echo "${ECHO_T}$hard_links" >&6
12938   if test "$hard_links" = no; then
12939     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12940 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12941     need_locks=warn
12942   fi
12943 else
12944   need_locks=no
12945 fi
12946
12947 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12948 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12949
12950   runpath_var=
12951   allow_undefined_flag_F77=
12952   enable_shared_with_static_runtimes_F77=no
12953   archive_cmds_F77=
12954   archive_expsym_cmds_F77=
12955   old_archive_From_new_cmds_F77=
12956   old_archive_from_expsyms_cmds_F77=
12957   export_dynamic_flag_spec_F77=
12958   whole_archive_flag_spec_F77=
12959   thread_safe_flag_spec_F77=
12960   hardcode_libdir_flag_spec_F77=
12961   hardcode_libdir_flag_spec_ld_F77=
12962   hardcode_libdir_separator_F77=
12963   hardcode_direct_F77=no
12964   hardcode_minus_L_F77=no
12965   hardcode_shlibpath_var_F77=unsupported
12966   link_all_deplibs_F77=unknown
12967   hardcode_automatic_F77=no
12968   module_cmds_F77=
12969   module_expsym_cmds_F77=
12970   always_export_symbols_F77=no
12971   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12972   # include_expsyms should be a list of space-separated symbols to be *always*
12973   # included in the symbol list
12974   include_expsyms_F77=
12975   # exclude_expsyms can be an extended regexp of symbols to exclude
12976   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12977   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12978   # as well as any symbol that contains `d'.
12979   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12980   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12981   # platforms (ab)use it in PIC code, but their linkers get confused if
12982   # the symbol is explicitly referenced.  Since portable code cannot
12983   # rely on this symbol name, it's probably fine to never include it in
12984   # preloaded symbol tables.
12985   extract_expsyms_cmds=
12986
12987   case $host_os in
12988   cygwin* | mingw* | pw32*)
12989     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12990     # When not using gcc, we currently assume that we are using
12991     # Microsoft Visual C++.
12992     if test "$GCC" != yes; then
12993       with_gnu_ld=no
12994     fi
12995     ;;
12996   openbsd*)
12997     with_gnu_ld=no
12998     ;;
12999   esac
13000
13001   ld_shlibs_F77=yes
13002   if test "$with_gnu_ld" = yes; then
13003     # If archive_cmds runs LD, not CC, wlarc should be empty
13004     wlarc='${wl}'
13005
13006     # See if GNU ld supports shared libraries.
13007     case $host_os in
13008     aix3* | aix4* | aix5*)
13009       # On AIX/PPC, the GNU linker is very broken
13010       if test "$host_cpu" != ia64; then
13011         ld_shlibs_F77=no
13012         cat <<EOF 1>&2
13013
13014 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13015 *** to be unable to reliably create shared libraries on AIX.
13016 *** Therefore, libtool is disabling shared libraries support.  If you
13017 *** really care for shared libraries, you may want to modify your PATH
13018 *** so that a non-GNU linker is found, and then restart.
13019
13020 EOF
13021       fi
13022       ;;
13023
13024     amigaos*)
13025       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)'
13026       hardcode_libdir_flag_spec_F77='-L$libdir'
13027       hardcode_minus_L_F77=yes
13028
13029       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13030       # that the semantics of dynamic libraries on AmigaOS, at least up
13031       # to version 4, is to share data among multiple programs linked
13032       # with the same dynamic library.  Since this doesn't match the
13033       # behavior of shared libraries on other platforms, we can't use
13034       # them.
13035       ld_shlibs_F77=no
13036       ;;
13037
13038     beos*)
13039       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13040         allow_undefined_flag_F77=unsupported
13041         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13042         # support --undefined.  This deserves some investigation.  FIXME
13043         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13044       else
13045         ld_shlibs_F77=no
13046       fi
13047       ;;
13048
13049     cygwin* | mingw* | pw32*)
13050       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13051       # as there is no search path for DLLs.
13052       hardcode_libdir_flag_spec_F77='-L$libdir'
13053       allow_undefined_flag_F77=unsupported
13054       always_export_symbols_F77=no
13055       enable_shared_with_static_runtimes_F77=yes
13056       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13057
13058       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13059         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13060         # If the export-symbols file already is a .def file (1st line
13061         # is EXPORTS), use it as is; otherwise, prepend...
13062         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13063           cp $export_symbols $output_objdir/$soname.def;
13064         else
13065           echo EXPORTS > $output_objdir/$soname.def;
13066           cat $export_symbols >> $output_objdir/$soname.def;
13067         fi~
13068         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13069       else
13070         ld_shlibs=no
13071       fi
13072       ;;
13073
13074     netbsd*)
13075       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13076         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13077         wlarc=
13078       else
13079         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13080         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13081       fi
13082       ;;
13083
13084     solaris* | sysv5*)
13085       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13086         ld_shlibs_F77=no
13087         cat <<EOF 1>&2
13088
13089 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13090 *** create shared libraries on Solaris systems.  Therefore, libtool
13091 *** is disabling shared libraries support.  We urge you to upgrade GNU
13092 *** binutils to release 2.9.1 or newer.  Another option is to modify
13093 *** your PATH or compiler configuration so that the native linker is
13094 *** used, and then restart.
13095
13096 EOF
13097       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13098         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13099         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13100       else
13101         ld_shlibs_F77=no
13102       fi
13103       ;;
13104
13105     sunos4*)
13106       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13107       wlarc=
13108       hardcode_direct_F77=yes
13109       hardcode_shlibpath_var_F77=no
13110       ;;
13111
13112   linux*)
13113     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13114         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13115         archive_cmds_F77="$tmp_archive_cmds"
13116       supports_anon_versioning=no
13117       case `$LD -v 2>/dev/null` in
13118         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13119         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13120         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13121         *\ 2.11.*) ;; # other 2.11 versions
13122         *) supports_anon_versioning=yes ;;
13123       esac
13124       if test $supports_anon_versioning = yes; then
13125         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13127 $echo "local: *; };" >> $output_objdir/$libname.ver~
13128         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13129       else
13130         archive_expsym_cmds_F77="$tmp_archive_cmds"
13131       fi
13132     else
13133       ld_shlibs_F77=no
13134     fi
13135     ;;
13136
13137     *)
13138       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13139         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13140         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13141       else
13142         ld_shlibs_F77=no
13143       fi
13144       ;;
13145     esac
13146
13147     if test "$ld_shlibs_F77" = yes; then
13148       runpath_var=LD_RUN_PATH
13149       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13150       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13151       # ancient GNU ld didn't support --whole-archive et. al.
13152       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13153         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13154       else
13155         whole_archive_flag_spec_F77=
13156       fi
13157     fi
13158   else
13159     # PORTME fill in a description of your system's linker (not GNU ld)
13160     case $host_os in
13161     aix3*)
13162       allow_undefined_flag_F77=unsupported
13163       always_export_symbols_F77=yes
13164       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'
13165       # Note: this linker hardcodes the directories in LIBPATH if there
13166       # are no directories specified by -L.
13167       hardcode_minus_L_F77=yes
13168       if test "$GCC" = yes && test -z "$link_static_flag"; then
13169         # Neither direct hardcoding nor static linking is supported with a
13170         # broken collect2.
13171         hardcode_direct_F77=unsupported
13172       fi
13173       ;;
13174
13175     aix4* | aix5*)
13176       if test "$host_cpu" = ia64; then
13177         # On IA64, the linker does run time linking by default, so we don't
13178         # have to do anything special.
13179         aix_use_runtimelinking=no
13180         exp_sym_flag='-Bexport'
13181         no_entry_flag=""
13182       else
13183         # If we're using GNU nm, then we don't want the "-C" option.
13184         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13185         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13186           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'
13187         else
13188           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'
13189         fi
13190         aix_use_runtimelinking=no
13191
13192         # Test if we are trying to use run time linking or normal
13193         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13194         # need to do runtime linking.
13195         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13196           for ld_flag in $LDFLAGS; do
13197           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13198             aix_use_runtimelinking=yes
13199             break
13200           fi
13201           done
13202         esac
13203
13204         exp_sym_flag='-bexport'
13205         no_entry_flag='-bnoentry'
13206       fi
13207
13208       # When large executables or shared objects are built, AIX ld can
13209       # have problems creating the table of contents.  If linking a library
13210       # or program results in "error TOC overflow" add -mminimal-toc to
13211       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13212       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13213
13214       archive_cmds_F77=''
13215       hardcode_direct_F77=yes
13216       hardcode_libdir_separator_F77=':'
13217       link_all_deplibs_F77=yes
13218
13219       if test "$GCC" = yes; then
13220         case $host_os in aix4.012|aix4.012.*)
13221         # We only want to do this on AIX 4.2 and lower, the check
13222         # below for broken collect2 doesn't work under 4.3+
13223           collect2name=`${CC} -print-prog-name=collect2`
13224           if test -f "$collect2name" && \
13225            strings "$collect2name" | grep resolve_lib_name >/dev/null
13226           then
13227           # We have reworked collect2
13228           hardcode_direct_F77=yes
13229           else
13230           # We have old collect2
13231           hardcode_direct_F77=unsupported
13232           # It fails to find uninstalled libraries when the uninstalled
13233           # path is not listed in the libpath.  Setting hardcode_minus_L
13234           # to unsupported forces relinking
13235           hardcode_minus_L_F77=yes
13236           hardcode_libdir_flag_spec_F77='-L$libdir'
13237           hardcode_libdir_separator_F77=
13238           fi
13239         esac
13240         shared_flag='-shared'
13241       else
13242         # not using gcc
13243         if test "$host_cpu" = ia64; then
13244         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13245         # chokes on -Wl,-G. The following line is correct:
13246           shared_flag='-G'
13247         else
13248         if test "$aix_use_runtimelinking" = yes; then
13249             shared_flag='${wl}-G'
13250           else
13251             shared_flag='${wl}-bM:SRE'
13252         fi
13253         fi
13254       fi
13255
13256       # It seems that -bexpall does not export symbols beginning with
13257       # underscore (_), so it is better to generate a list of symbols to export.
13258       always_export_symbols_F77=yes
13259       if test "$aix_use_runtimelinking" = yes; then
13260         # Warning - without using the other runtime loading flags (-brtl),
13261         # -berok will link without error, but may produce a broken library.
13262         allow_undefined_flag_F77='-berok'
13263        # Determine the default libpath from the value encoded in an empty executable.
13264        cat >conftest.$ac_ext <<_ACEOF
13265       program main
13266
13267       end
13268 _ACEOF
13269 rm -f conftest.$ac_objext conftest$ac_exeext
13270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13271   (eval $ac_link) 2>conftest.er1
13272   ac_status=$?
13273   grep -v '^ *+' conftest.er1 >conftest.err
13274   rm -f conftest.er1
13275   cat conftest.err >&5
13276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277   (exit $ac_status); } &&
13278          { ac_try='test -z "$ac_f77_werror_flag"
13279                          || test ! -s conftest.err'
13280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281   (eval $ac_try) 2>&5
13282   ac_status=$?
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); }; } &&
13285          { ac_try='test -s conftest$ac_exeext'
13286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287   (eval $ac_try) 2>&5
13288   ac_status=$?
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); }; }; then
13291
13292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13293 }'`
13294 # Check for a 64-bit object if we didn't find anything.
13295 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; }
13296 }'`; fi
13297 else
13298   echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13300
13301 fi
13302 rm -f conftest.err conftest.$ac_objext \
13303       conftest$ac_exeext conftest.$ac_ext
13304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13305
13306        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13307         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"
13308        else
13309         if test "$host_cpu" = ia64; then
13310           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13311           allow_undefined_flag_F77="-z nodefs"
13312           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"
13313         else
13314          # Determine the default libpath from the value encoded in an empty executable.
13315          cat >conftest.$ac_ext <<_ACEOF
13316       program main
13317
13318       end
13319 _ACEOF
13320 rm -f conftest.$ac_objext conftest$ac_exeext
13321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13322   (eval $ac_link) 2>conftest.er1
13323   ac_status=$?
13324   grep -v '^ *+' conftest.er1 >conftest.err
13325   rm -f conftest.er1
13326   cat conftest.err >&5
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } &&
13329          { ac_try='test -z "$ac_f77_werror_flag"
13330                          || test ! -s conftest.err'
13331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332   (eval $ac_try) 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; } &&
13336          { ac_try='test -s conftest$ac_exeext'
13337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338   (eval $ac_try) 2>&5
13339   ac_status=$?
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); }; }; then
13342
13343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13344 }'`
13345 # Check for a 64-bit object if we didn't find anything.
13346 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; }
13347 }'`; fi
13348 else
13349   echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13351
13352 fi
13353 rm -f conftest.err conftest.$ac_objext \
13354       conftest$ac_exeext conftest.$ac_ext
13355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13356
13357          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13358           # Warning - without using the other run time loading flags,
13359           # -berok will link without error, but may produce a broken library.
13360           no_undefined_flag_F77=' ${wl}-bernotok'
13361           allow_undefined_flag_F77=' ${wl}-berok'
13362           # -bexpall does not export symbols beginning with underscore (_)
13363           always_export_symbols_F77=yes
13364           # Exported symbols can be pulled into shared objects from archives
13365           whole_archive_flag_spec_F77=' '
13366           archive_cmds_need_lc_F77=yes
13367           # This is similar to how AIX traditionally builds it's shared libraries.
13368           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'
13369         fi
13370       fi
13371       ;;
13372
13373     amigaos*)
13374       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)'
13375       hardcode_libdir_flag_spec_F77='-L$libdir'
13376       hardcode_minus_L_F77=yes
13377       # see comment about different semantics on the GNU ld section
13378       ld_shlibs_F77=no
13379       ;;
13380
13381     bsdi[45]*)
13382       export_dynamic_flag_spec_F77=-rdynamic
13383       ;;
13384
13385     cygwin* | mingw* | pw32*)
13386       # When not using gcc, we currently assume that we are using
13387       # Microsoft Visual C++.
13388       # hardcode_libdir_flag_spec is actually meaningless, as there is
13389       # no search path for DLLs.
13390       hardcode_libdir_flag_spec_F77=' '
13391       allow_undefined_flag_F77=unsupported
13392       # Tell ltmain to make .lib files, not .a files.
13393       libext=lib
13394       # Tell ltmain to make .dll files, not .so files.
13395       shrext_cmds=".dll"
13396       # FIXME: Setting linknames here is a bad hack.
13397       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13398       # The linker will automatically build a .lib file if we build a DLL.
13399       old_archive_From_new_cmds_F77='true'
13400       # FIXME: Should let the user specify the lib program.
13401       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13402       fix_srcfile_path='`cygpath -w "$srcfile"`'
13403       enable_shared_with_static_runtimes_F77=yes
13404       ;;
13405
13406     darwin* | rhapsody*)
13407       case "$host_os" in
13408         rhapsody* | darwin1.[012])
13409          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13410          ;;
13411        *) # Darwin 1.3 on
13412          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13413            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13414          else
13415            case ${MACOSX_DEPLOYMENT_TARGET} in
13416              10.[012])
13417                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13418                ;;
13419              10.*)
13420                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13421                ;;
13422            esac
13423          fi
13424          ;;
13425       esac
13426       archive_cmds_need_lc_F77=no
13427       hardcode_direct_F77=no
13428       hardcode_automatic_F77=yes
13429       hardcode_shlibpath_var_F77=unsupported
13430       whole_archive_flag_spec_F77=''
13431       link_all_deplibs_F77=yes
13432     if test "$GCC" = yes ; then
13433         output_verbose_link_cmd='echo'
13434         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13435       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13436       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13437       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13438       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}'
13439     else
13440       case "$cc_basename" in
13441         xlc*)
13442          output_verbose_link_cmd='echo'
13443          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13444          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13445           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13446          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13447           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}'
13448           ;;
13449        *)
13450          ld_shlibs_F77=no
13451           ;;
13452       esac
13453     fi
13454       ;;
13455
13456     dgux*)
13457       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13458       hardcode_libdir_flag_spec_F77='-L$libdir'
13459       hardcode_shlibpath_var_F77=no
13460       ;;
13461
13462     freebsd1*)
13463       ld_shlibs_F77=no
13464       ;;
13465
13466     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13467     # support.  Future versions do this automatically, but an explicit c++rt0.o
13468     # does not break anything, and helps significantly (at the cost of a little
13469     # extra space).
13470     freebsd2.2*)
13471       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13472       hardcode_libdir_flag_spec_F77='-R$libdir'
13473       hardcode_direct_F77=yes
13474       hardcode_shlibpath_var_F77=no
13475       ;;
13476
13477     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13478     freebsd2*)
13479       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13480       hardcode_direct_F77=yes
13481       hardcode_minus_L_F77=yes
13482       hardcode_shlibpath_var_F77=no
13483       ;;
13484
13485     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13486     freebsd* | kfreebsd*-gnu)
13487       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13488       hardcode_libdir_flag_spec_F77='-R$libdir'
13489       hardcode_direct_F77=yes
13490       hardcode_shlibpath_var_F77=no
13491       ;;
13492
13493     hpux9*)
13494       if test "$GCC" = yes; then
13495         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'
13496       else
13497         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'
13498       fi
13499       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13500       hardcode_libdir_separator_F77=:
13501       hardcode_direct_F77=yes
13502
13503       # hardcode_minus_L: Not really in the search PATH,
13504       # but as the default location of the library.
13505       hardcode_minus_L_F77=yes
13506       export_dynamic_flag_spec_F77='${wl}-E'
13507       ;;
13508
13509     hpux10* | hpux11*)
13510       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13511         case "$host_cpu" in
13512         hppa*64*|ia64*)
13513           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13514           ;;
13515         *)
13516           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13517           ;;
13518         esac
13519       else
13520         case "$host_cpu" in
13521         hppa*64*|ia64*)
13522           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13523           ;;
13524         *)
13525           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13526           ;;
13527         esac
13528       fi
13529       if test "$with_gnu_ld" = no; then
13530         case "$host_cpu" in
13531         hppa*64*)
13532           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13533           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13534           hardcode_libdir_separator_F77=:
13535           hardcode_direct_F77=no
13536           hardcode_shlibpath_var_F77=no
13537           ;;
13538         ia64*)
13539           hardcode_libdir_flag_spec_F77='-L$libdir'
13540           hardcode_direct_F77=no
13541           hardcode_shlibpath_var_F77=no
13542
13543           # hardcode_minus_L: Not really in the search PATH,
13544           # but as the default location of the library.
13545           hardcode_minus_L_F77=yes
13546           ;;
13547         *)
13548           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13549           hardcode_libdir_separator_F77=:
13550           hardcode_direct_F77=yes
13551           export_dynamic_flag_spec_F77='${wl}-E'
13552
13553           # hardcode_minus_L: Not really in the search PATH,
13554           # but as the default location of the library.
13555           hardcode_minus_L_F77=yes
13556           ;;
13557         esac
13558       fi
13559       ;;
13560
13561     irix5* | irix6* | nonstopux*)
13562       if test "$GCC" = yes; then
13563         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'
13564       else
13565         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'
13566         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13567       fi
13568       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13569       hardcode_libdir_separator_F77=:
13570       link_all_deplibs_F77=yes
13571       ;;
13572
13573     netbsd*)
13574       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13575         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13576       else
13577         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13578       fi
13579       hardcode_libdir_flag_spec_F77='-R$libdir'
13580       hardcode_direct_F77=yes
13581       hardcode_shlibpath_var_F77=no
13582       ;;
13583
13584     newsos6)
13585       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13586       hardcode_direct_F77=yes
13587       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13588       hardcode_libdir_separator_F77=:
13589       hardcode_shlibpath_var_F77=no
13590       ;;
13591
13592     openbsd*)
13593       hardcode_direct_F77=yes
13594       hardcode_shlibpath_var_F77=no
13595       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13596         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13597         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13598         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13599         export_dynamic_flag_spec_F77='${wl}-E'
13600       else
13601        case $host_os in
13602          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13603            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13604            hardcode_libdir_flag_spec_F77='-R$libdir'
13605            ;;
13606          *)
13607            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13608            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13609            ;;
13610        esac
13611       fi
13612       ;;
13613
13614     os2*)
13615       hardcode_libdir_flag_spec_F77='-L$libdir'
13616       hardcode_minus_L_F77=yes
13617       allow_undefined_flag_F77=unsupported
13618       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'
13619       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13620       ;;
13621
13622     osf3*)
13623       if test "$GCC" = yes; then
13624         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13625         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'
13626       else
13627         allow_undefined_flag_F77=' -expect_unresolved \*'
13628         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'
13629       fi
13630       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13631       hardcode_libdir_separator_F77=:
13632       ;;
13633
13634     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13635       if test "$GCC" = yes; then
13636         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13637         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'
13638         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13639       else
13640         allow_undefined_flag_F77=' -expect_unresolved \*'
13641         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'
13642         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~
13643         $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'
13644
13645         # Both c and cxx compiler support -rpath directly
13646         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13647       fi
13648       hardcode_libdir_separator_F77=:
13649       ;;
13650
13651     sco3.2v5*)
13652       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13653       hardcode_shlibpath_var_F77=no
13654       export_dynamic_flag_spec_F77='${wl}-Bexport'
13655       runpath_var=LD_RUN_PATH
13656       hardcode_runpath_var=yes
13657       ;;
13658
13659     solaris*)
13660       no_undefined_flag_F77=' -z text'
13661       if test "$GCC" = yes; then
13662         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13663         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13664           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13665       else
13666         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13667         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13668         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13669       fi
13670       hardcode_libdir_flag_spec_F77='-R$libdir'
13671       hardcode_shlibpath_var_F77=no
13672       case $host_os in
13673       solaris2.[0-5] | solaris2.[0-5].*) ;;
13674       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13675         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13676       esac
13677       link_all_deplibs_F77=yes
13678       ;;
13679
13680     sunos4*)
13681       if test "x$host_vendor" = xsequent; then
13682         # Use $CC to link under sequent, because it throws in some extra .o
13683         # files that make .init and .fini sections work.
13684         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13685       else
13686         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13687       fi
13688       hardcode_libdir_flag_spec_F77='-L$libdir'
13689       hardcode_direct_F77=yes
13690       hardcode_minus_L_F77=yes
13691       hardcode_shlibpath_var_F77=no
13692       ;;
13693
13694     sysv4)
13695       case $host_vendor in
13696         sni)
13697           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13698           hardcode_direct_F77=yes # is this really true???
13699         ;;
13700         siemens)
13701           ## LD is ld it makes a PLAMLIB
13702           ## CC just makes a GrossModule.
13703           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13704           reload_cmds_F77='$CC -r -o $output$reload_objs'
13705           hardcode_direct_F77=no
13706         ;;
13707         motorola)
13708           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13709           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13710         ;;
13711       esac
13712       runpath_var='LD_RUN_PATH'
13713       hardcode_shlibpath_var_F77=no
13714       ;;
13715
13716     sysv4.3*)
13717       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13718       hardcode_shlibpath_var_F77=no
13719       export_dynamic_flag_spec_F77='-Bexport'
13720       ;;
13721
13722     sysv4*MP*)
13723       if test -d /usr/nec; then
13724         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13725         hardcode_shlibpath_var_F77=no
13726         runpath_var=LD_RUN_PATH
13727         hardcode_runpath_var=yes
13728         ld_shlibs_F77=yes
13729       fi
13730       ;;
13731
13732     sysv4.2uw2*)
13733       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13734       hardcode_direct_F77=yes
13735       hardcode_minus_L_F77=no
13736       hardcode_shlibpath_var_F77=no
13737       hardcode_runpath_var=yes
13738       runpath_var=LD_RUN_PATH
13739       ;;
13740
13741    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13742       no_undefined_flag_F77='${wl}-z ${wl}text'
13743       if test "$GCC" = yes; then
13744         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13745       else
13746         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13747       fi
13748       runpath_var='LD_RUN_PATH'
13749       hardcode_shlibpath_var_F77=no
13750       ;;
13751
13752     sysv5*)
13753       no_undefined_flag_F77=' -z text'
13754       # $CC -shared without GNU ld will not create a library from C++
13755       # object files and a static libstdc++, better avoid it by now
13756       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13757       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13758                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13759       hardcode_libdir_flag_spec_F77=
13760       hardcode_shlibpath_var_F77=no
13761       runpath_var='LD_RUN_PATH'
13762       ;;
13763
13764     uts4*)
13765       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13766       hardcode_libdir_flag_spec_F77='-L$libdir'
13767       hardcode_shlibpath_var_F77=no
13768       ;;
13769
13770     *)
13771       ld_shlibs_F77=no
13772       ;;
13773     esac
13774   fi
13775
13776 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13777 echo "${ECHO_T}$ld_shlibs_F77" >&6
13778 test "$ld_shlibs_F77" = no && can_build_shared=no
13779
13780 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13781 if test "$GCC" = yes; then
13782   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13783 fi
13784
13785 #
13786 # Do we need to explicitly link libc?
13787 #
13788 case "x$archive_cmds_need_lc_F77" in
13789 x|xyes)
13790   # Assume -lc should be added
13791   archive_cmds_need_lc_F77=yes
13792
13793   if test "$enable_shared" = yes && test "$GCC" = yes; then
13794     case $archive_cmds_F77 in
13795     *'~'*)
13796       # FIXME: we may have to deal with multi-command sequences.
13797       ;;
13798     '$CC '*)
13799       # Test whether the compiler implicitly links with -lc since on some
13800       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13801       # to ld, don't add -lc before -lgcc.
13802       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13803 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13804       $rm conftest*
13805       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13806
13807       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808   (eval $ac_compile) 2>&5
13809   ac_status=$?
13810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); } 2>conftest.err; then
13812         soname=conftest
13813         lib=conftest
13814         libobjs=conftest.$ac_objext
13815         deplibs=
13816         wl=$lt_prog_compiler_wl_F77
13817         compiler_flags=-v
13818         linker_flags=-v
13819         verstring=
13820         output_objdir=.
13821         libname=conftest
13822         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13823         allow_undefined_flag_F77=
13824         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13825   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13826   ac_status=$?
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); }
13829         then
13830           archive_cmds_need_lc_F77=no
13831         else
13832           archive_cmds_need_lc_F77=yes
13833         fi
13834         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13835       else
13836         cat conftest.err 1>&5
13837       fi
13838       $rm conftest*
13839       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13840 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13841       ;;
13842     esac
13843   fi
13844   ;;
13845 esac
13846
13847 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13848 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13849 library_names_spec=
13850 libname_spec='lib$name'
13851 soname_spec=
13852 shrext_cmds=".so"
13853 postinstall_cmds=
13854 postuninstall_cmds=
13855 finish_cmds=
13856 finish_eval=
13857 shlibpath_var=
13858 shlibpath_overrides_runpath=unknown
13859 version_type=none
13860 dynamic_linker="$host_os ld.so"
13861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13862 if test "$GCC" = yes; then
13863   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13864   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13865     # if the path contains ";" then we assume it to be the separator
13866     # otherwise default to the standard path separator (i.e. ":") - it is
13867     # assumed that no part of a normal pathname contains ";" but that should
13868     # okay in the real world where ";" in dirpaths is itself problematic.
13869     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13870   else
13871     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13872   fi
13873 else
13874   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13875 fi
13876 need_lib_prefix=unknown
13877 hardcode_into_libs=no
13878
13879 # when you set need_version to no, make sure it does not cause -set_version
13880 # flags to be left without arguments
13881 need_version=unknown
13882
13883 case $host_os in
13884 aix3*)
13885   version_type=linux
13886   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13887   shlibpath_var=LIBPATH
13888
13889   # AIX 3 has no versioning support, so we append a major version to the name.
13890   soname_spec='${libname}${release}${shared_ext}$major'
13891   ;;
13892
13893 aix4* | aix5*)
13894   version_type=linux
13895   need_lib_prefix=no
13896   need_version=no
13897   hardcode_into_libs=yes
13898   if test "$host_cpu" = ia64; then
13899     # AIX 5 supports IA64
13900     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13901     shlibpath_var=LD_LIBRARY_PATH
13902   else
13903     # With GCC up to 2.95.x, collect2 would create an import file
13904     # for dependence libraries.  The import file would start with
13905     # the line `#! .'.  This would cause the generated library to
13906     # depend on `.', always an invalid library.  This was fixed in
13907     # development snapshots of GCC prior to 3.0.
13908     case $host_os in
13909       aix4 | aix4.[01] | aix4.[01].*)
13910       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13911            echo ' yes '
13912            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13913         :
13914       else
13915         can_build_shared=no
13916       fi
13917       ;;
13918     esac
13919     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13920     # soname into executable. Probably we can add versioning support to
13921     # collect2, so additional links can be useful in future.
13922     if test "$aix_use_runtimelinking" = yes; then
13923       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13924       # instead of lib<name>.a to let people know that these are not
13925       # typical AIX shared libraries.
13926       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13927     else
13928       # We preserve .a as extension for shared libraries through AIX4.2
13929       # and later when we are not doing run time linking.
13930       library_names_spec='${libname}${release}.a $libname.a'
13931       soname_spec='${libname}${release}${shared_ext}$major'
13932     fi
13933     shlibpath_var=LIBPATH
13934   fi
13935   ;;
13936
13937 amigaos*)
13938   library_names_spec='$libname.ixlibrary $libname.a'
13939   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13940   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'
13941   ;;
13942
13943 beos*)
13944   library_names_spec='${libname}${shared_ext}'
13945   dynamic_linker="$host_os ld.so"
13946   shlibpath_var=LIBRARY_PATH
13947   ;;
13948
13949 bsdi[45]*)
13950   version_type=linux
13951   need_version=no
13952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953   soname_spec='${libname}${release}${shared_ext}$major'
13954   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13955   shlibpath_var=LD_LIBRARY_PATH
13956   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13957   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13958   # the default ld.so.conf also contains /usr/contrib/lib and
13959   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13960   # libtool to hard-code these into programs
13961   ;;
13962
13963 cygwin* | mingw* | pw32*)
13964   version_type=windows
13965   shrext_cmds=".dll"
13966   need_version=no
13967   need_lib_prefix=no
13968
13969   case $GCC,$host_os in
13970   yes,cygwin* | yes,mingw* | yes,pw32*)
13971     library_names_spec='$libname.dll.a'
13972     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13973     postinstall_cmds='base_file=`basename \${file}`~
13974       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13975       dldir=$destdir/`dirname \$dlpath`~
13976       test -d \$dldir || mkdir -p \$dldir~
13977       $install_prog $dir/$dlname \$dldir/$dlname'
13978     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13979       dlpath=$dir/\$dldll~
13980        $rm \$dlpath'
13981     shlibpath_overrides_runpath=yes
13982
13983     case $host_os in
13984     cygwin*)
13985       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13986       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13987       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13988       ;;
13989     mingw*)
13990       # MinGW DLLs use traditional 'lib' prefix
13991       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13992       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13993       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13994         # It is most probably a Windows format PATH printed by
13995         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13996         # path with ; separators, and with drive letters. We can handle the
13997         # drive letters (cygwin fileutils understands them), so leave them,
13998         # especially as we might pass files found there to a mingw objdump,
13999         # which wouldn't understand a cygwinified path. Ahh.
14000         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14001       else
14002         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14003       fi
14004       ;;
14005     pw32*)
14006       # pw32 DLLs use 'pw' prefix rather than 'lib'
14007       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14008       ;;
14009     esac
14010     ;;
14011
14012   *)
14013     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14014     ;;
14015   esac
14016   dynamic_linker='Win32 ld.exe'
14017   # FIXME: first we should search . and the directory the executable is in
14018   shlibpath_var=PATH
14019   ;;
14020
14021 darwin* | rhapsody*)
14022   dynamic_linker="$host_os dyld"
14023   version_type=darwin
14024   need_lib_prefix=no
14025   need_version=no
14026   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14027   soname_spec='${libname}${release}${major}$shared_ext'
14028   shlibpath_overrides_runpath=yes
14029   shlibpath_var=DYLD_LIBRARY_PATH
14030   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14031   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14032   if test "$GCC" = yes; then
14033     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"`
14034   else
14035     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14036   fi
14037   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14038   ;;
14039
14040 dgux*)
14041   version_type=linux
14042   need_lib_prefix=no
14043   need_version=no
14044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14045   soname_spec='${libname}${release}${shared_ext}$major'
14046   shlibpath_var=LD_LIBRARY_PATH
14047   ;;
14048
14049 freebsd1*)
14050   dynamic_linker=no
14051   ;;
14052
14053 kfreebsd*-gnu)
14054   version_type=linux
14055   need_lib_prefix=no
14056   need_version=no
14057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14058   soname_spec='${libname}${release}${shared_ext}$major'
14059   shlibpath_var=LD_LIBRARY_PATH
14060   shlibpath_overrides_runpath=no
14061   hardcode_into_libs=yes
14062   dynamic_linker='GNU ld.so'
14063   ;;
14064
14065 freebsd*)
14066   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14067   version_type=freebsd-$objformat
14068   case $version_type in
14069     freebsd-elf*)
14070       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14071       need_version=no
14072       need_lib_prefix=no
14073       ;;
14074     freebsd-*)
14075       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14076       need_version=yes
14077       ;;
14078   esac
14079   shlibpath_var=LD_LIBRARY_PATH
14080   case $host_os in
14081   freebsd2*)
14082     shlibpath_overrides_runpath=yes
14083     ;;
14084   freebsd3.01* | freebsdelf3.01*)
14085     shlibpath_overrides_runpath=yes
14086     hardcode_into_libs=yes
14087     ;;
14088   *) # from 3.2 on
14089     shlibpath_overrides_runpath=no
14090     hardcode_into_libs=yes
14091     ;;
14092   esac
14093   ;;
14094
14095 gnu*)
14096   version_type=linux
14097   need_lib_prefix=no
14098   need_version=no
14099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14100   soname_spec='${libname}${release}${shared_ext}$major'
14101   shlibpath_var=LD_LIBRARY_PATH
14102   hardcode_into_libs=yes
14103   ;;
14104
14105 hpux9* | hpux10* | hpux11*)
14106   # Give a soname corresponding to the major version so that dld.sl refuses to
14107   # link against other versions.
14108   version_type=sunos
14109   need_lib_prefix=no
14110   need_version=no
14111   case "$host_cpu" in
14112   ia64*)
14113     shrext_cmds='.so'
14114     hardcode_into_libs=yes
14115     dynamic_linker="$host_os dld.so"
14116     shlibpath_var=LD_LIBRARY_PATH
14117     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14118     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119     soname_spec='${libname}${release}${shared_ext}$major'
14120     if test "X$HPUX_IA64_MODE" = X32; then
14121       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14122     else
14123       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14124     fi
14125     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14126     ;;
14127    hppa*64*)
14128      shrext_cmds='.sl'
14129      hardcode_into_libs=yes
14130      dynamic_linker="$host_os dld.sl"
14131      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14132      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14133      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134      soname_spec='${libname}${release}${shared_ext}$major'
14135      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14136      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14137      ;;
14138    *)
14139     shrext_cmds='.sl'
14140     dynamic_linker="$host_os dld.sl"
14141     shlibpath_var=SHLIB_PATH
14142     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14144     soname_spec='${libname}${release}${shared_ext}$major'
14145     ;;
14146   esac
14147   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14148   postinstall_cmds='chmod 555 $lib'
14149   ;;
14150
14151 irix5* | irix6* | nonstopux*)
14152   case $host_os in
14153     nonstopux*) version_type=nonstopux ;;
14154     *)
14155         if test "$lt_cv_prog_gnu_ld" = yes; then
14156                 version_type=linux
14157         else
14158                 version_type=irix
14159         fi ;;
14160   esac
14161   need_lib_prefix=no
14162   need_version=no
14163   soname_spec='${libname}${release}${shared_ext}$major'
14164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14165   case $host_os in
14166   irix5* | nonstopux*)
14167     libsuff= shlibsuff=
14168     ;;
14169   *)
14170     case $LD in # libtool.m4 will add one of these switches to LD
14171     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14172       libsuff= shlibsuff= libmagic=32-bit;;
14173     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14174       libsuff=32 shlibsuff=N32 libmagic=N32;;
14175     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14176       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14177     *) libsuff= shlibsuff= libmagic=never-match;;
14178     esac
14179     ;;
14180   esac
14181   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14182   shlibpath_overrides_runpath=no
14183   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14184   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14185   hardcode_into_libs=yes
14186   ;;
14187
14188 # No shared lib support for Linux oldld, aout, or coff.
14189 linux*oldld* | linux*aout* | linux*coff*)
14190   dynamic_linker=no
14191   ;;
14192
14193 # This must be Linux ELF.
14194 linux*)
14195   version_type=linux
14196   need_lib_prefix=no
14197   need_version=no
14198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199   soname_spec='${libname}${release}${shared_ext}$major'
14200   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14201   shlibpath_var=LD_LIBRARY_PATH
14202   shlibpath_overrides_runpath=no
14203   # This implies no fast_install, which is unacceptable.
14204   # Some rework will be needed to allow for fast_install
14205   # before this can be enabled.
14206   hardcode_into_libs=yes
14207
14208   # Append ld.so.conf contents to the search path
14209   if test -f /etc/ld.so.conf; then
14210     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14211     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14212   fi
14213
14214   # We used to test for /lib/ld.so.1 and disable shared libraries on
14215   # powerpc, because MkLinux only supported shared libraries with the
14216   # GNU dynamic linker.  Since this was broken with cross compilers,
14217   # most powerpc-linux boxes support dynamic linking these days and
14218   # people can always --disable-shared, the test was removed, and we
14219   # assume the GNU/Linux dynamic linker is in use.
14220   dynamic_linker='GNU/Linux ld.so'
14221   ;;
14222
14223 knetbsd*-gnu)
14224   version_type=linux
14225   need_lib_prefix=no
14226   need_version=no
14227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14228   soname_spec='${libname}${release}${shared_ext}$major'
14229   shlibpath_var=LD_LIBRARY_PATH
14230   shlibpath_overrides_runpath=no
14231   hardcode_into_libs=yes
14232   dynamic_linker='GNU ld.so'
14233   ;;
14234
14235 netbsd*)
14236   version_type=sunos
14237   need_lib_prefix=no
14238   need_version=no
14239   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14240     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14241     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14242     dynamic_linker='NetBSD (a.out) ld.so'
14243   else
14244     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14245     soname_spec='${libname}${release}${shared_ext}$major'
14246     dynamic_linker='NetBSD ld.elf_so'
14247   fi
14248   shlibpath_var=LD_LIBRARY_PATH
14249   shlibpath_overrides_runpath=yes
14250   hardcode_into_libs=yes
14251   ;;
14252
14253 newsos6)
14254   version_type=linux
14255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256   shlibpath_var=LD_LIBRARY_PATH
14257   shlibpath_overrides_runpath=yes
14258   ;;
14259
14260 nto-qnx*)
14261   version_type=linux
14262   need_lib_prefix=no
14263   need_version=no
14264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265   soname_spec='${libname}${release}${shared_ext}$major'
14266   shlibpath_var=LD_LIBRARY_PATH
14267   shlibpath_overrides_runpath=yes
14268   ;;
14269
14270 openbsd*)
14271   version_type=sunos
14272   need_lib_prefix=no
14273   need_version=no
14274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14275   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14276   shlibpath_var=LD_LIBRARY_PATH
14277   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14278     case $host_os in
14279       openbsd2.[89] | openbsd2.[89].*)
14280         shlibpath_overrides_runpath=no
14281         ;;
14282       *)
14283         shlibpath_overrides_runpath=yes
14284         ;;
14285       esac
14286   else
14287     shlibpath_overrides_runpath=yes
14288   fi
14289   ;;
14290
14291 os2*)
14292   libname_spec='$name'
14293   shrext_cmds=".dll"
14294   need_lib_prefix=no
14295   library_names_spec='$libname${shared_ext} $libname.a'
14296   dynamic_linker='OS/2 ld.exe'
14297   shlibpath_var=LIBPATH
14298   ;;
14299
14300 osf3* | osf4* | osf5*)
14301   version_type=osf
14302   need_lib_prefix=no
14303   need_version=no
14304   soname_spec='${libname}${release}${shared_ext}$major'
14305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306   shlibpath_var=LD_LIBRARY_PATH
14307   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14308   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14309   ;;
14310
14311 sco3.2v5*)
14312   version_type=osf
14313   soname_spec='${libname}${release}${shared_ext}$major'
14314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14315   shlibpath_var=LD_LIBRARY_PATH
14316   ;;
14317
14318 solaris*)
14319   version_type=linux
14320   need_lib_prefix=no
14321   need_version=no
14322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323   soname_spec='${libname}${release}${shared_ext}$major'
14324   shlibpath_var=LD_LIBRARY_PATH
14325   shlibpath_overrides_runpath=yes
14326   hardcode_into_libs=yes
14327   # ldd complains unless libraries are executable
14328   postinstall_cmds='chmod +x $lib'
14329   ;;
14330
14331 sunos4*)
14332   version_type=sunos
14333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14334   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14335   shlibpath_var=LD_LIBRARY_PATH
14336   shlibpath_overrides_runpath=yes
14337   if test "$with_gnu_ld" = yes; then
14338     need_lib_prefix=no
14339   fi
14340   need_version=yes
14341   ;;
14342
14343 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14344   version_type=linux
14345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14346   soname_spec='${libname}${release}${shared_ext}$major'
14347   shlibpath_var=LD_LIBRARY_PATH
14348   case $host_vendor in
14349     sni)
14350       shlibpath_overrides_runpath=no
14351       need_lib_prefix=no
14352       export_dynamic_flag_spec='${wl}-Blargedynsym'
14353       runpath_var=LD_RUN_PATH
14354       ;;
14355     siemens)
14356       need_lib_prefix=no
14357       ;;
14358     motorola)
14359       need_lib_prefix=no
14360       need_version=no
14361       shlibpath_overrides_runpath=no
14362       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14363       ;;
14364   esac
14365   ;;
14366
14367 sysv4*MP*)
14368   if test -d /usr/nec ;then
14369     version_type=linux
14370     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14371     soname_spec='$libname${shared_ext}.$major'
14372     shlibpath_var=LD_LIBRARY_PATH
14373   fi
14374   ;;
14375
14376 uts4*)
14377   version_type=linux
14378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379   soname_spec='${libname}${release}${shared_ext}$major'
14380   shlibpath_var=LD_LIBRARY_PATH
14381   ;;
14382
14383 *)
14384   dynamic_linker=no
14385   ;;
14386 esac
14387 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14388 echo "${ECHO_T}$dynamic_linker" >&6
14389 test "$dynamic_linker" = no && can_build_shared=no
14390
14391 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14392 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14393 hardcode_action_F77=
14394 if test -n "$hardcode_libdir_flag_spec_F77" || \
14395    test -n "$runpath_var_F77" || \
14396    test "X$hardcode_automatic_F77" = "Xyes" ; then
14397
14398   # We can hardcode non-existant directories.
14399   if test "$hardcode_direct_F77" != no &&
14400      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14401      # have to relink, otherwise we might link with an installed library
14402      # when we should be linking with a yet-to-be-installed one
14403      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14404      test "$hardcode_minus_L_F77" != no; then
14405     # Linking always hardcodes the temporary library directory.
14406     hardcode_action_F77=relink
14407   else
14408     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14409     hardcode_action_F77=immediate
14410   fi
14411 else
14412   # We cannot hardcode anything, or else we can only hardcode existing
14413   # directories.
14414   hardcode_action_F77=unsupported
14415 fi
14416 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14417 echo "${ECHO_T}$hardcode_action_F77" >&6
14418
14419 if test "$hardcode_action_F77" = relink; then
14420   # Fast installation is not supported
14421   enable_fast_install=no
14422 elif test "$shlibpath_overrides_runpath" = yes ||
14423      test "$enable_shared" = no; then
14424   # Fast installation is not necessary
14425   enable_fast_install=needless
14426 fi
14427
14428 striplib=
14429 old_striplib=
14430 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14431 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14432 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14433   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14434   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14435   echo "$as_me:$LINENO: result: yes" >&5
14436 echo "${ECHO_T}yes" >&6
14437 else
14438 # FIXME - insert some real tests, host_os isn't really good enough
14439   case $host_os in
14440    darwin*)
14441        if test -n "$STRIP" ; then
14442          striplib="$STRIP -x"
14443          echo "$as_me:$LINENO: result: yes" >&5
14444 echo "${ECHO_T}yes" >&6
14445        else
14446   echo "$as_me:$LINENO: result: no" >&5
14447 echo "${ECHO_T}no" >&6
14448 fi
14449        ;;
14450    *)
14451   echo "$as_me:$LINENO: result: no" >&5
14452 echo "${ECHO_T}no" >&6
14453     ;;
14454   esac
14455 fi
14456
14457
14458
14459 # The else clause should only fire when bootstrapping the
14460 # libtool distribution, otherwise you forgot to ship ltmain.sh
14461 # with your package, and you will get complaints that there are
14462 # no rules to generate ltmain.sh.
14463 if test -f "$ltmain"; then
14464   # See if we are running on zsh, and set the options which allow our commands through
14465   # without removal of \ escapes.
14466   if test -n "${ZSH_VERSION+set}" ; then
14467     setopt NO_GLOB_SUBST
14468   fi
14469   # Now quote all the things that may contain metacharacters while being
14470   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14471   # variables and quote the copies for generation of the libtool script.
14472   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14473     SED SHELL STRIP \
14474     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14475     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14476     deplibs_check_method reload_flag reload_cmds need_locks \
14477     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14478     lt_cv_sys_global_symbol_to_c_name_address \
14479     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14480     old_postinstall_cmds old_postuninstall_cmds \
14481     compiler_F77 \
14482     CC_F77 \
14483     LD_F77 \
14484     lt_prog_compiler_wl_F77 \
14485     lt_prog_compiler_pic_F77 \
14486     lt_prog_compiler_static_F77 \
14487     lt_prog_compiler_no_builtin_flag_F77 \
14488     export_dynamic_flag_spec_F77 \
14489     thread_safe_flag_spec_F77 \
14490     whole_archive_flag_spec_F77 \
14491     enable_shared_with_static_runtimes_F77 \
14492     old_archive_cmds_F77 \
14493     old_archive_from_new_cmds_F77 \
14494     predep_objects_F77 \
14495     postdep_objects_F77 \
14496     predeps_F77 \
14497     postdeps_F77 \
14498     compiler_lib_search_path_F77 \
14499     archive_cmds_F77 \
14500     archive_expsym_cmds_F77 \
14501     postinstall_cmds_F77 \
14502     postuninstall_cmds_F77 \
14503     old_archive_from_expsyms_cmds_F77 \
14504     allow_undefined_flag_F77 \
14505     no_undefined_flag_F77 \
14506     export_symbols_cmds_F77 \
14507     hardcode_libdir_flag_spec_F77 \
14508     hardcode_libdir_flag_spec_ld_F77 \
14509     hardcode_libdir_separator_F77 \
14510     hardcode_automatic_F77 \
14511     module_cmds_F77 \
14512     module_expsym_cmds_F77 \
14513     lt_cv_prog_compiler_c_o_F77 \
14514     exclude_expsyms_F77 \
14515     include_expsyms_F77; do
14516
14517     case $var in
14518     old_archive_cmds_F77 | \
14519     old_archive_from_new_cmds_F77 | \
14520     archive_cmds_F77 | \
14521     archive_expsym_cmds_F77 | \
14522     module_cmds_F77 | \
14523     module_expsym_cmds_F77 | \
14524     old_archive_from_expsyms_cmds_F77 | \
14525     export_symbols_cmds_F77 | \
14526     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14527     postinstall_cmds | postuninstall_cmds | \
14528     old_postinstall_cmds | old_postuninstall_cmds | \
14529     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14530       # Double-quote double-evaled strings.
14531       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14532       ;;
14533     *)
14534       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14535       ;;
14536     esac
14537   done
14538
14539   case $lt_echo in
14540   *'\$0 --fallback-echo"')
14541     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14542     ;;
14543   esac
14544
14545 cfgfile="$ofile"
14546
14547   cat <<__EOF__ >> "$cfgfile"
14548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14549
14550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14551
14552 # Shell to use when invoking shell scripts.
14553 SHELL=$lt_SHELL
14554
14555 # Whether or not to build shared libraries.
14556 build_libtool_libs=$enable_shared
14557
14558 # Whether or not to build static libraries.
14559 build_old_libs=$enable_static
14560
14561 # Whether or not to add -lc for building shared libraries.
14562 build_libtool_need_lc=$archive_cmds_need_lc_F77
14563
14564 # Whether or not to disallow shared libs when runtime libs are static
14565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14566
14567 # Whether or not to optimize for fast installation.
14568 fast_install=$enable_fast_install
14569
14570 # The host system.
14571 host_alias=$host_alias
14572 host=$host
14573
14574 # An echo program that does not interpret backslashes.
14575 echo=$lt_echo
14576
14577 # The archiver.
14578 AR=$lt_AR
14579 AR_FLAGS=$lt_AR_FLAGS
14580
14581 # A C compiler.
14582 LTCC=$lt_LTCC
14583
14584 # A language-specific compiler.
14585 CC=$lt_compiler_F77
14586
14587 # Is the compiler the GNU C compiler?
14588 with_gcc=$GCC_F77
14589
14590 # An ERE matcher.
14591 EGREP=$lt_EGREP
14592
14593 # The linker used to build libraries.
14594 LD=$lt_LD_F77
14595
14596 # Whether we need hard or soft links.
14597 LN_S=$lt_LN_S
14598
14599 # A BSD-compatible nm program.
14600 NM=$lt_NM
14601
14602 # A symbol stripping program
14603 STRIP=$lt_STRIP
14604
14605 # Used to examine libraries when file_magic_cmd begins "file"
14606 MAGIC_CMD=$MAGIC_CMD
14607
14608 # Used on cygwin: DLL creation program.
14609 DLLTOOL="$DLLTOOL"
14610
14611 # Used on cygwin: object dumper.
14612 OBJDUMP="$OBJDUMP"
14613
14614 # Used on cygwin: assembler.
14615 AS="$AS"
14616
14617 # The name of the directory that contains temporary libtool files.
14618 objdir=$objdir
14619
14620 # How to create reloadable object files.
14621 reload_flag=$lt_reload_flag
14622 reload_cmds=$lt_reload_cmds
14623
14624 # How to pass a linker flag through the compiler.
14625 wl=$lt_lt_prog_compiler_wl_F77
14626
14627 # Object file suffix (normally "o").
14628 objext="$ac_objext"
14629
14630 # Old archive suffix (normally "a").
14631 libext="$libext"
14632
14633 # Shared library suffix (normally ".so").
14634 shrext_cmds='$shrext_cmds'
14635
14636 # Executable file suffix (normally "").
14637 exeext="$exeext"
14638
14639 # Additional compiler flags for building library objects.
14640 pic_flag=$lt_lt_prog_compiler_pic_F77
14641 pic_mode=$pic_mode
14642
14643 # What is the maximum length of a command?
14644 max_cmd_len=$lt_cv_sys_max_cmd_len
14645
14646 # Does compiler simultaneously support -c and -o options?
14647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14648
14649 # Must we lock files when doing compilation ?
14650 need_locks=$lt_need_locks
14651
14652 # Do we need the lib prefix for modules?
14653 need_lib_prefix=$need_lib_prefix
14654
14655 # Do we need a version for libraries?
14656 need_version=$need_version
14657
14658 # Whether dlopen is supported.
14659 dlopen_support=$enable_dlopen
14660
14661 # Whether dlopen of programs is supported.
14662 dlopen_self=$enable_dlopen_self
14663
14664 # Whether dlopen of statically linked programs is supported.
14665 dlopen_self_static=$enable_dlopen_self_static
14666
14667 # Compiler flag to prevent dynamic linking.
14668 link_static_flag=$lt_lt_prog_compiler_static_F77
14669
14670 # Compiler flag to turn off builtin functions.
14671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14672
14673 # Compiler flag to allow reflexive dlopens.
14674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14675
14676 # Compiler flag to generate shared objects directly from archives.
14677 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14678
14679 # Compiler flag to generate thread-safe objects.
14680 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14681
14682 # Library versioning type.
14683 version_type=$version_type
14684
14685 # Format of library name prefix.
14686 libname_spec=$lt_libname_spec
14687
14688 # List of archive names.  First name is the real one, the rest are links.
14689 # The last name is the one that the linker finds with -lNAME.
14690 library_names_spec=$lt_library_names_spec
14691
14692 # The coded name of the library, if different from the real name.
14693 soname_spec=$lt_soname_spec
14694
14695 # Commands used to build and install an old-style archive.
14696 RANLIB=$lt_RANLIB
14697 old_archive_cmds=$lt_old_archive_cmds_F77
14698 old_postinstall_cmds=$lt_old_postinstall_cmds
14699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14700
14701 # Create an old-style archive from a shared archive.
14702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14703
14704 # Create a temporary old-style archive to link instead of a shared archive.
14705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14706
14707 # Commands used to build and install a shared archive.
14708 archive_cmds=$lt_archive_cmds_F77
14709 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14710 postinstall_cmds=$lt_postinstall_cmds
14711 postuninstall_cmds=$lt_postuninstall_cmds
14712
14713 # Commands used to build a loadable module (assumed same as above if empty)
14714 module_cmds=$lt_module_cmds_F77
14715 module_expsym_cmds=$lt_module_expsym_cmds_F77
14716
14717 # Commands to strip libraries.
14718 old_striplib=$lt_old_striplib
14719 striplib=$lt_striplib
14720
14721 # Dependencies to place before the objects being linked to create a
14722 # shared library.
14723 predep_objects=$lt_predep_objects_F77
14724
14725 # Dependencies to place after the objects being linked to create a
14726 # shared library.
14727 postdep_objects=$lt_postdep_objects_F77
14728
14729 # Dependencies to place before the objects being linked to create a
14730 # shared library.
14731 predeps=$lt_predeps_F77
14732
14733 # Dependencies to place after the objects being linked to create a
14734 # shared library.
14735 postdeps=$lt_postdeps_F77
14736
14737 # The library search path used internally by the compiler when linking
14738 # a shared library.
14739 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14740
14741 # Method to check whether dependent libraries are shared objects.
14742 deplibs_check_method=$lt_deplibs_check_method
14743
14744 # Command to use when deplibs_check_method == file_magic.
14745 file_magic_cmd=$lt_file_magic_cmd
14746
14747 # Flag that allows shared libraries with undefined symbols to be built.
14748 allow_undefined_flag=$lt_allow_undefined_flag_F77
14749
14750 # Flag that forces no undefined symbols.
14751 no_undefined_flag=$lt_no_undefined_flag_F77
14752
14753 # Commands used to finish a libtool library installation in a directory.
14754 finish_cmds=$lt_finish_cmds
14755
14756 # Same as above, but a single script fragment to be evaled but not shown.
14757 finish_eval=$lt_finish_eval
14758
14759 # Take the output of nm and produce a listing of raw symbols and C names.
14760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14761
14762 # Transform the output of nm in a proper C declaration
14763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14764
14765 # Transform the output of nm in a C name address pair
14766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14767
14768 # This is the shared library runtime path variable.
14769 runpath_var=$runpath_var
14770
14771 # This is the shared library path variable.
14772 shlibpath_var=$shlibpath_var
14773
14774 # Is shlibpath searched before the hard-coded library search path?
14775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14776
14777 # How to hardcode a shared library path into an executable.
14778 hardcode_action=$hardcode_action_F77
14779
14780 # Whether we should hardcode library paths into libraries.
14781 hardcode_into_libs=$hardcode_into_libs
14782
14783 # Flag to hardcode \$libdir into a binary during linking.
14784 # This must work even if \$libdir does not exist.
14785 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14786
14787 # If ld is used when linking, flag to hardcode \$libdir into
14788 # a binary during linking. This must work even if \$libdir does
14789 # not exist.
14790 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14791
14792 # Whether we need a single -rpath flag with a separated argument.
14793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14794
14795 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14796 # resulting binary.
14797 hardcode_direct=$hardcode_direct_F77
14798
14799 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14800 # resulting binary.
14801 hardcode_minus_L=$hardcode_minus_L_F77
14802
14803 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14804 # the resulting binary.
14805 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14806
14807 # Set to yes if building a shared library automatically hardcodes DIR into the library
14808 # and all subsequent libraries and executables linked against it.
14809 hardcode_automatic=$hardcode_automatic_F77
14810
14811 # Variables whose values should be saved in libtool wrapper scripts and
14812 # restored at relink time.
14813 variables_saved_for_relink="$variables_saved_for_relink"
14814
14815 # Whether libtool must link a program against all its dependency libraries.
14816 link_all_deplibs=$link_all_deplibs_F77
14817
14818 # Compile-time system search path for libraries
14819 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14820
14821 # Run-time system search path for libraries
14822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14823
14824 # Fix the shell variable \$srcfile for the compiler.
14825 fix_srcfile_path="$fix_srcfile_path_F77"
14826
14827 # Set to yes if exported symbols are required.
14828 always_export_symbols=$always_export_symbols_F77
14829
14830 # The commands to list exported symbols.
14831 export_symbols_cmds=$lt_export_symbols_cmds_F77
14832
14833 # The commands to extract the exported symbol list from a shared archive.
14834 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14835
14836 # Symbols that should not be listed in the preloaded symbols.
14837 exclude_expsyms=$lt_exclude_expsyms_F77
14838
14839 # Symbols that must always be exported.
14840 include_expsyms=$lt_include_expsyms_F77
14841
14842 # ### END LIBTOOL TAG CONFIG: $tagname
14843
14844 __EOF__
14845
14846
14847 else
14848   # If there is no Makefile yet, we rely on a make rule to execute
14849   # `config.status --recheck' to rerun these tests and create the
14850   # libtool script then.
14851   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14852   if test -f "$ltmain_in"; then
14853     test -f Makefile && make "$ltmain"
14854   fi
14855 fi
14856
14857
14858 ac_ext=c
14859 ac_cpp='$CPP $CPPFLAGS'
14860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14863
14864 CC="$lt_save_CC"
14865
14866         else
14867           tagname=""
14868         fi
14869         ;;
14870
14871       GCJ)
14872         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14873
14874
14875
14876 # Source file extension for Java test sources.
14877 ac_ext=java
14878
14879 # Object file extension for compiled Java test sources.
14880 objext=o
14881 objext_GCJ=$objext
14882
14883 # Code to be used in simple compile tests
14884 lt_simple_compile_test_code="class foo {}\n"
14885
14886 # Code to be used in simple link tests
14887 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14888
14889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14890
14891 # If no C compiler was specified, use CC.
14892 LTCC=${LTCC-"$CC"}
14893
14894 # Allow CC to be a program name with arguments.
14895 compiler=$CC
14896
14897
14898 # Allow CC to be a program name with arguments.
14899 lt_save_CC="$CC"
14900 CC=${GCJ-"gcj"}
14901 compiler=$CC
14902 compiler_GCJ=$CC
14903
14904 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14905 archive_cmds_need_lc_GCJ=no
14906
14907
14908 lt_prog_compiler_no_builtin_flag_GCJ=
14909
14910 if test "$GCC" = yes; then
14911   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14912
14913
14914 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14915 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14916 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14917   echo $ECHO_N "(cached) $ECHO_C" >&6
14918 else
14919   lt_cv_prog_compiler_rtti_exceptions=no
14920   ac_outfile=conftest.$ac_objext
14921    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14922    lt_compiler_flag="-fno-rtti -fno-exceptions"
14923    # Insert the option either (1) after the last *FLAGS variable, or
14924    # (2) before a word containing "conftest.", or (3) at the end.
14925    # Note that $ac_compile itself does not contain backslashes and begins
14926    # with a dollar sign (not a hyphen), so the echo should work correctly.
14927    # The option is referenced via a variable to avoid confusing sed.
14928    lt_compile=`echo "$ac_compile" | $SED \
14929    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14930    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14931    -e 's:$: $lt_compiler_flag:'`
14932    (eval echo "\"\$as_me:14932: $lt_compile\"" >&5)
14933    (eval "$lt_compile" 2>conftest.err)
14934    ac_status=$?
14935    cat conftest.err >&5
14936    echo "$as_me:14936: \$? = $ac_status" >&5
14937    if (exit $ac_status) && test -s "$ac_outfile"; then
14938      # The compiler can only warn and ignore the option if not recognized
14939      # So say no if there are warnings
14940      if test ! -s conftest.err; then
14941        lt_cv_prog_compiler_rtti_exceptions=yes
14942      fi
14943    fi
14944    $rm conftest*
14945
14946 fi
14947 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14948 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14949
14950 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14951     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14952 else
14953     :
14954 fi
14955
14956 fi
14957
14958 lt_prog_compiler_wl_GCJ=
14959 lt_prog_compiler_pic_GCJ=
14960 lt_prog_compiler_static_GCJ=
14961
14962 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14963 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14964
14965   if test "$GCC" = yes; then
14966     lt_prog_compiler_wl_GCJ='-Wl,'
14967     lt_prog_compiler_static_GCJ='-static'
14968
14969     case $host_os in
14970       aix*)
14971       # All AIX code is PIC.
14972       if test "$host_cpu" = ia64; then
14973         # AIX 5 now supports IA64 processor
14974         lt_prog_compiler_static_GCJ='-Bstatic'
14975       fi
14976       ;;
14977
14978     amigaos*)
14979       # FIXME: we need at least 68020 code to build shared libraries, but
14980       # adding the `-m68020' flag to GCC prevents building anything better,
14981       # like `-m68040'.
14982       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14983       ;;
14984
14985     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14986       # PIC is the default for these OSes.
14987       ;;
14988
14989     mingw* | pw32* | os2*)
14990       # This hack is so that the source file can tell whether it is being
14991       # built for inclusion in a dll (and should export symbols for example).
14992       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14993       ;;
14994
14995     darwin* | rhapsody*)
14996       # PIC is the default on this platform
14997       # Common symbols not allowed in MH_DYLIB files
14998       lt_prog_compiler_pic_GCJ='-fno-common'
14999       ;;
15000
15001     msdosdjgpp*)
15002       # Just because we use GCC doesn't mean we suddenly get shared libraries
15003       # on systems that don't support them.
15004       lt_prog_compiler_can_build_shared_GCJ=no
15005       enable_shared=no
15006       ;;
15007
15008     sysv4*MP*)
15009       if test -d /usr/nec; then
15010         lt_prog_compiler_pic_GCJ=-Kconform_pic
15011       fi
15012       ;;
15013
15014     hpux*)
15015       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15016       # not for PA HP-UX.
15017       case "$host_cpu" in
15018       hppa*64*|ia64*)
15019         # +Z the default
15020         ;;
15021       *)
15022         lt_prog_compiler_pic_GCJ='-fPIC'
15023         ;;
15024       esac
15025       ;;
15026
15027     *)
15028       lt_prog_compiler_pic_GCJ='-fPIC'
15029       ;;
15030     esac
15031   else
15032     # PORTME Check for flag to pass linker flags through the system compiler.
15033     case $host_os in
15034     aix*)
15035       lt_prog_compiler_wl_GCJ='-Wl,'
15036       if test "$host_cpu" = ia64; then
15037         # AIX 5 now supports IA64 processor
15038         lt_prog_compiler_static_GCJ='-Bstatic'
15039       else
15040         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15041       fi
15042       ;;
15043       darwin*)
15044         # PIC is the default on this platform
15045         # Common symbols not allowed in MH_DYLIB files
15046        case "$cc_basename" in
15047          xlc*)
15048          lt_prog_compiler_pic_GCJ='-qnocommon'
15049          lt_prog_compiler_wl_GCJ='-Wl,'
15050          ;;
15051        esac
15052        ;;
15053
15054     mingw* | pw32* | os2*)
15055       # This hack is so that the source file can tell whether it is being
15056       # built for inclusion in a dll (and should export symbols for example).
15057       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15058       ;;
15059
15060     hpux9* | hpux10* | hpux11*)
15061       lt_prog_compiler_wl_GCJ='-Wl,'
15062       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15063       # not for PA HP-UX.
15064       case "$host_cpu" in
15065       hppa*64*|ia64*)
15066         # +Z the default
15067         ;;
15068       *)
15069         lt_prog_compiler_pic_GCJ='+Z'
15070         ;;
15071       esac
15072       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15073       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15074       ;;
15075
15076     irix5* | irix6* | nonstopux*)
15077       lt_prog_compiler_wl_GCJ='-Wl,'
15078       # PIC (with -KPIC) is the default.
15079       lt_prog_compiler_static_GCJ='-non_shared'
15080       ;;
15081
15082     newsos6)
15083       lt_prog_compiler_pic_GCJ='-KPIC'
15084       lt_prog_compiler_static_GCJ='-Bstatic'
15085       ;;
15086
15087     linux*)
15088       case $CC in
15089       icc* | ecc*)
15090         lt_prog_compiler_wl_GCJ='-Wl,'
15091         lt_prog_compiler_pic_GCJ='-KPIC'
15092         lt_prog_compiler_static_GCJ='-static'
15093         ;;
15094       ccc*)
15095         lt_prog_compiler_wl_GCJ='-Wl,'
15096         # All Alpha code is PIC.
15097         lt_prog_compiler_static_GCJ='-non_shared'
15098         ;;
15099       esac
15100       ;;
15101
15102     osf3* | osf4* | osf5*)
15103       lt_prog_compiler_wl_GCJ='-Wl,'
15104       # All OSF/1 code is PIC.
15105       lt_prog_compiler_static_GCJ='-non_shared'
15106       ;;
15107
15108     sco3.2v5*)
15109       lt_prog_compiler_pic_GCJ='-Kpic'
15110       lt_prog_compiler_static_GCJ='-dn'
15111       ;;
15112
15113     solaris*)
15114       lt_prog_compiler_wl_GCJ='-Wl,'
15115       lt_prog_compiler_pic_GCJ='-KPIC'
15116       lt_prog_compiler_static_GCJ='-Bstatic'
15117       ;;
15118
15119     sunos4*)
15120       lt_prog_compiler_wl_GCJ='-Qoption ld '
15121       lt_prog_compiler_pic_GCJ='-PIC'
15122       lt_prog_compiler_static_GCJ='-Bstatic'
15123       ;;
15124
15125     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15126       lt_prog_compiler_wl_GCJ='-Wl,'
15127       lt_prog_compiler_pic_GCJ='-KPIC'
15128       lt_prog_compiler_static_GCJ='-Bstatic'
15129       ;;
15130
15131     sysv4*MP*)
15132       if test -d /usr/nec ;then
15133         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15134         lt_prog_compiler_static_GCJ='-Bstatic'
15135       fi
15136       ;;
15137
15138     uts4*)
15139       lt_prog_compiler_pic_GCJ='-pic'
15140       lt_prog_compiler_static_GCJ='-Bstatic'
15141       ;;
15142
15143     *)
15144       lt_prog_compiler_can_build_shared_GCJ=no
15145       ;;
15146     esac
15147   fi
15148
15149 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15150 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15151
15152 #
15153 # Check to make sure the PIC flag actually works.
15154 #
15155 if test -n "$lt_prog_compiler_pic_GCJ"; then
15156
15157 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15158 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15159 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15160   echo $ECHO_N "(cached) $ECHO_C" >&6
15161 else
15162   lt_prog_compiler_pic_works_GCJ=no
15163   ac_outfile=conftest.$ac_objext
15164    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15165    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15166    # Insert the option either (1) after the last *FLAGS variable, or
15167    # (2) before a word containing "conftest.", or (3) at the end.
15168    # Note that $ac_compile itself does not contain backslashes and begins
15169    # with a dollar sign (not a hyphen), so the echo should work correctly.
15170    # The option is referenced via a variable to avoid confusing sed.
15171    lt_compile=`echo "$ac_compile" | $SED \
15172    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15174    -e 's:$: $lt_compiler_flag:'`
15175    (eval echo "\"\$as_me:15175: $lt_compile\"" >&5)
15176    (eval "$lt_compile" 2>conftest.err)
15177    ac_status=$?
15178    cat conftest.err >&5
15179    echo "$as_me:15179: \$? = $ac_status" >&5
15180    if (exit $ac_status) && test -s "$ac_outfile"; then
15181      # The compiler can only warn and ignore the option if not recognized
15182      # So say no if there are warnings
15183      if test ! -s conftest.err; then
15184        lt_prog_compiler_pic_works_GCJ=yes
15185      fi
15186    fi
15187    $rm conftest*
15188
15189 fi
15190 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15191 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15192
15193 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15194     case $lt_prog_compiler_pic_GCJ in
15195      "" | " "*) ;;
15196      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15197      esac
15198 else
15199     lt_prog_compiler_pic_GCJ=
15200      lt_prog_compiler_can_build_shared_GCJ=no
15201 fi
15202
15203 fi
15204 case "$host_os" in
15205   # For platforms which do not support PIC, -DPIC is meaningless:
15206   *djgpp*)
15207     lt_prog_compiler_pic_GCJ=
15208     ;;
15209   *)
15210     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15211     ;;
15212 esac
15213
15214 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15216 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15217   echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219   lt_cv_prog_compiler_c_o_GCJ=no
15220    $rm -r conftest 2>/dev/null
15221    mkdir conftest
15222    cd conftest
15223    mkdir out
15224    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15225
15226    lt_compiler_flag="-o out/conftest2.$ac_objext"
15227    # Insert the option either (1) after the last *FLAGS variable, or
15228    # (2) before a word containing "conftest.", or (3) at the end.
15229    # Note that $ac_compile itself does not contain backslashes and begins
15230    # with a dollar sign (not a hyphen), so the echo should work correctly.
15231    lt_compile=`echo "$ac_compile" | $SED \
15232    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15234    -e 's:$: $lt_compiler_flag:'`
15235    (eval echo "\"\$as_me:15235: $lt_compile\"" >&5)
15236    (eval "$lt_compile" 2>out/conftest.err)
15237    ac_status=$?
15238    cat out/conftest.err >&5
15239    echo "$as_me:15239: \$? = $ac_status" >&5
15240    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15241    then
15242      # The compiler can only warn and ignore the option if not recognized
15243      # So say no if there are warnings
15244      if test ! -s out/conftest.err; then
15245        lt_cv_prog_compiler_c_o_GCJ=yes
15246      fi
15247    fi
15248    chmod u+w .
15249    $rm conftest*
15250    # SGI C++ compiler will create directory out/ii_files/ for
15251    # template instantiation
15252    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15253    $rm out/* && rmdir out
15254    cd ..
15255    rmdir conftest
15256    $rm conftest*
15257
15258 fi
15259 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15261
15262
15263 hard_links="nottested"
15264 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15265   # do not overwrite the value of need_locks provided by the user
15266   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15267 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15268   hard_links=yes
15269   $rm conftest*
15270   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15271   touch conftest.a
15272   ln conftest.a conftest.b 2>&5 || hard_links=no
15273   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15274   echo "$as_me:$LINENO: result: $hard_links" >&5
15275 echo "${ECHO_T}$hard_links" >&6
15276   if test "$hard_links" = no; then
15277     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15279     need_locks=warn
15280   fi
15281 else
15282   need_locks=no
15283 fi
15284
15285 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15287
15288   runpath_var=
15289   allow_undefined_flag_GCJ=
15290   enable_shared_with_static_runtimes_GCJ=no
15291   archive_cmds_GCJ=
15292   archive_expsym_cmds_GCJ=
15293   old_archive_From_new_cmds_GCJ=
15294   old_archive_from_expsyms_cmds_GCJ=
15295   export_dynamic_flag_spec_GCJ=
15296   whole_archive_flag_spec_GCJ=
15297   thread_safe_flag_spec_GCJ=
15298   hardcode_libdir_flag_spec_GCJ=
15299   hardcode_libdir_flag_spec_ld_GCJ=
15300   hardcode_libdir_separator_GCJ=
15301   hardcode_direct_GCJ=no
15302   hardcode_minus_L_GCJ=no
15303   hardcode_shlibpath_var_GCJ=unsupported
15304   link_all_deplibs_GCJ=unknown
15305   hardcode_automatic_GCJ=no
15306   module_cmds_GCJ=
15307   module_expsym_cmds_GCJ=
15308   always_export_symbols_GCJ=no
15309   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15310   # include_expsyms should be a list of space-separated symbols to be *always*
15311   # included in the symbol list
15312   include_expsyms_GCJ=
15313   # exclude_expsyms can be an extended regexp of symbols to exclude
15314   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15315   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15316   # as well as any symbol that contains `d'.
15317   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15318   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15319   # platforms (ab)use it in PIC code, but their linkers get confused if
15320   # the symbol is explicitly referenced.  Since portable code cannot
15321   # rely on this symbol name, it's probably fine to never include it in
15322   # preloaded symbol tables.
15323   extract_expsyms_cmds=
15324
15325   case $host_os in
15326   cygwin* | mingw* | pw32*)
15327     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15328     # When not using gcc, we currently assume that we are using
15329     # Microsoft Visual C++.
15330     if test "$GCC" != yes; then
15331       with_gnu_ld=no
15332     fi
15333     ;;
15334   openbsd*)
15335     with_gnu_ld=no
15336     ;;
15337   esac
15338
15339   ld_shlibs_GCJ=yes
15340   if test "$with_gnu_ld" = yes; then
15341     # If archive_cmds runs LD, not CC, wlarc should be empty
15342     wlarc='${wl}'
15343
15344     # See if GNU ld supports shared libraries.
15345     case $host_os in
15346     aix3* | aix4* | aix5*)
15347       # On AIX/PPC, the GNU linker is very broken
15348       if test "$host_cpu" != ia64; then
15349         ld_shlibs_GCJ=no
15350         cat <<EOF 1>&2
15351
15352 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15353 *** to be unable to reliably create shared libraries on AIX.
15354 *** Therefore, libtool is disabling shared libraries support.  If you
15355 *** really care for shared libraries, you may want to modify your PATH
15356 *** so that a non-GNU linker is found, and then restart.
15357
15358 EOF
15359       fi
15360       ;;
15361
15362     amigaos*)
15363       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)'
15364       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15365       hardcode_minus_L_GCJ=yes
15366
15367       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15368       # that the semantics of dynamic libraries on AmigaOS, at least up
15369       # to version 4, is to share data among multiple programs linked
15370       # with the same dynamic library.  Since this doesn't match the
15371       # behavior of shared libraries on other platforms, we can't use
15372       # them.
15373       ld_shlibs_GCJ=no
15374       ;;
15375
15376     beos*)
15377       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15378         allow_undefined_flag_GCJ=unsupported
15379         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15380         # support --undefined.  This deserves some investigation.  FIXME
15381         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15382       else
15383         ld_shlibs_GCJ=no
15384       fi
15385       ;;
15386
15387     cygwin* | mingw* | pw32*)
15388       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15389       # as there is no search path for DLLs.
15390       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15391       allow_undefined_flag_GCJ=unsupported
15392       always_export_symbols_GCJ=no
15393       enable_shared_with_static_runtimes_GCJ=yes
15394       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15395
15396       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15397         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15398         # If the export-symbols file already is a .def file (1st line
15399         # is EXPORTS), use it as is; otherwise, prepend...
15400         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15401           cp $export_symbols $output_objdir/$soname.def;
15402         else
15403           echo EXPORTS > $output_objdir/$soname.def;
15404           cat $export_symbols >> $output_objdir/$soname.def;
15405         fi~
15406         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15407       else
15408         ld_shlibs=no
15409       fi
15410       ;;
15411
15412     netbsd*)
15413       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15414         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15415         wlarc=
15416       else
15417         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15418         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15419       fi
15420       ;;
15421
15422     solaris* | sysv5*)
15423       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15424         ld_shlibs_GCJ=no
15425         cat <<EOF 1>&2
15426
15427 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15428 *** create shared libraries on Solaris systems.  Therefore, libtool
15429 *** is disabling shared libraries support.  We urge you to upgrade GNU
15430 *** binutils to release 2.9.1 or newer.  Another option is to modify
15431 *** your PATH or compiler configuration so that the native linker is
15432 *** used, and then restart.
15433
15434 EOF
15435       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15436         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15437         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15438       else
15439         ld_shlibs_GCJ=no
15440       fi
15441       ;;
15442
15443     sunos4*)
15444       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15445       wlarc=
15446       hardcode_direct_GCJ=yes
15447       hardcode_shlibpath_var_GCJ=no
15448       ;;
15449
15450   linux*)
15451     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15452         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15453         archive_cmds_GCJ="$tmp_archive_cmds"
15454       supports_anon_versioning=no
15455       case `$LD -v 2>/dev/null` in
15456         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15457         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15458         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15459         *\ 2.11.*) ;; # other 2.11 versions
15460         *) supports_anon_versioning=yes ;;
15461       esac
15462       if test $supports_anon_versioning = yes; then
15463         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15465 $echo "local: *; };" >> $output_objdir/$libname.ver~
15466         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15467       else
15468         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15469       fi
15470     else
15471       ld_shlibs_GCJ=no
15472     fi
15473     ;;
15474
15475     *)
15476       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15477         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15478         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15479       else
15480         ld_shlibs_GCJ=no
15481       fi
15482       ;;
15483     esac
15484
15485     if test "$ld_shlibs_GCJ" = yes; then
15486       runpath_var=LD_RUN_PATH
15487       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15488       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15489       # ancient GNU ld didn't support --whole-archive et. al.
15490       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15491         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15492       else
15493         whole_archive_flag_spec_GCJ=
15494       fi
15495     fi
15496   else
15497     # PORTME fill in a description of your system's linker (not GNU ld)
15498     case $host_os in
15499     aix3*)
15500       allow_undefined_flag_GCJ=unsupported
15501       always_export_symbols_GCJ=yes
15502       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'
15503       # Note: this linker hardcodes the directories in LIBPATH if there
15504       # are no directories specified by -L.
15505       hardcode_minus_L_GCJ=yes
15506       if test "$GCC" = yes && test -z "$link_static_flag"; then
15507         # Neither direct hardcoding nor static linking is supported with a
15508         # broken collect2.
15509         hardcode_direct_GCJ=unsupported
15510       fi
15511       ;;
15512
15513     aix4* | aix5*)
15514       if test "$host_cpu" = ia64; then
15515         # On IA64, the linker does run time linking by default, so we don't
15516         # have to do anything special.
15517         aix_use_runtimelinking=no
15518         exp_sym_flag='-Bexport'
15519         no_entry_flag=""
15520       else
15521         # If we're using GNU nm, then we don't want the "-C" option.
15522         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15523         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15524           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'
15525         else
15526           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'
15527         fi
15528         aix_use_runtimelinking=no
15529
15530         # Test if we are trying to use run time linking or normal
15531         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15532         # need to do runtime linking.
15533         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15534           for ld_flag in $LDFLAGS; do
15535           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15536             aix_use_runtimelinking=yes
15537             break
15538           fi
15539           done
15540         esac
15541
15542         exp_sym_flag='-bexport'
15543         no_entry_flag='-bnoentry'
15544       fi
15545
15546       # When large executables or shared objects are built, AIX ld can
15547       # have problems creating the table of contents.  If linking a library
15548       # or program results in "error TOC overflow" add -mminimal-toc to
15549       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15550       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15551
15552       archive_cmds_GCJ=''
15553       hardcode_direct_GCJ=yes
15554       hardcode_libdir_separator_GCJ=':'
15555       link_all_deplibs_GCJ=yes
15556
15557       if test "$GCC" = yes; then
15558         case $host_os in aix4.012|aix4.012.*)
15559         # We only want to do this on AIX 4.2 and lower, the check
15560         # below for broken collect2 doesn't work under 4.3+
15561           collect2name=`${CC} -print-prog-name=collect2`
15562           if test -f "$collect2name" && \
15563            strings "$collect2name" | grep resolve_lib_name >/dev/null
15564           then
15565           # We have reworked collect2
15566           hardcode_direct_GCJ=yes
15567           else
15568           # We have old collect2
15569           hardcode_direct_GCJ=unsupported
15570           # It fails to find uninstalled libraries when the uninstalled
15571           # path is not listed in the libpath.  Setting hardcode_minus_L
15572           # to unsupported forces relinking
15573           hardcode_minus_L_GCJ=yes
15574           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15575           hardcode_libdir_separator_GCJ=
15576           fi
15577         esac
15578         shared_flag='-shared'
15579       else
15580         # not using gcc
15581         if test "$host_cpu" = ia64; then
15582         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15583         # chokes on -Wl,-G. The following line is correct:
15584           shared_flag='-G'
15585         else
15586         if test "$aix_use_runtimelinking" = yes; then
15587             shared_flag='${wl}-G'
15588           else
15589             shared_flag='${wl}-bM:SRE'
15590         fi
15591         fi
15592       fi
15593
15594       # It seems that -bexpall does not export symbols beginning with
15595       # underscore (_), so it is better to generate a list of symbols to export.
15596       always_export_symbols_GCJ=yes
15597       if test "$aix_use_runtimelinking" = yes; then
15598         # Warning - without using the other runtime loading flags (-brtl),
15599         # -berok will link without error, but may produce a broken library.
15600         allow_undefined_flag_GCJ='-berok'
15601        # Determine the default libpath from the value encoded in an empty executable.
15602        cat >conftest.$ac_ext <<_ACEOF
15603 /* confdefs.h.  */
15604 _ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h.  */
15608
15609 int
15610 main ()
15611 {
15612
15613   ;
15614   return 0;
15615 }
15616 _ACEOF
15617 rm -f conftest.$ac_objext conftest$ac_exeext
15618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15619   (eval $ac_link) 2>conftest.er1
15620   ac_status=$?
15621   grep -v '^ *+' conftest.er1 >conftest.err
15622   rm -f conftest.er1
15623   cat conftest.err >&5
15624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625   (exit $ac_status); } &&
15626          { ac_try='test -z "$ac_c_werror_flag"
15627                          || test ! -s conftest.err'
15628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629   (eval $ac_try) 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); }; } &&
15633          { ac_try='test -s conftest$ac_exeext'
15634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635   (eval $ac_try) 2>&5
15636   ac_status=$?
15637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638   (exit $ac_status); }; }; then
15639
15640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15641 }'`
15642 # Check for a 64-bit object if we didn't find anything.
15643 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; }
15644 }'`; fi
15645 else
15646   echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 fi
15650 rm -f conftest.err conftest.$ac_objext \
15651       conftest$ac_exeext conftest.$ac_ext
15652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15653
15654        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15655         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"
15656        else
15657         if test "$host_cpu" = ia64; then
15658           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15659           allow_undefined_flag_GCJ="-z nodefs"
15660           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"
15661         else
15662          # Determine the default libpath from the value encoded in an empty executable.
15663          cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h.  */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h.  */
15669
15670 int
15671 main ()
15672 {
15673
15674   ;
15675   return 0;
15676 }
15677 _ACEOF
15678 rm -f conftest.$ac_objext conftest$ac_exeext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15680   (eval $ac_link) 2>conftest.er1
15681   ac_status=$?
15682   grep -v '^ *+' conftest.er1 >conftest.err
15683   rm -f conftest.er1
15684   cat conftest.err >&5
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); } &&
15687          { ac_try='test -z "$ac_c_werror_flag"
15688                          || test ! -s conftest.err'
15689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690   (eval $ac_try) 2>&5
15691   ac_status=$?
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); }; } &&
15694          { ac_try='test -s conftest$ac_exeext'
15695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696   (eval $ac_try) 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); }; }; then
15700
15701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15702 }'`
15703 # Check for a 64-bit object if we didn't find anything.
15704 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; }
15705 }'`; fi
15706 else
15707   echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710 fi
15711 rm -f conftest.err conftest.$ac_objext \
15712       conftest$ac_exeext conftest.$ac_ext
15713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15714
15715          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15716           # Warning - without using the other run time loading flags,
15717           # -berok will link without error, but may produce a broken library.
15718           no_undefined_flag_GCJ=' ${wl}-bernotok'
15719           allow_undefined_flag_GCJ=' ${wl}-berok'
15720           # -bexpall does not export symbols beginning with underscore (_)
15721           always_export_symbols_GCJ=yes
15722           # Exported symbols can be pulled into shared objects from archives
15723           whole_archive_flag_spec_GCJ=' '
15724           archive_cmds_need_lc_GCJ=yes
15725           # This is similar to how AIX traditionally builds it's shared libraries.
15726           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'
15727         fi
15728       fi
15729       ;;
15730
15731     amigaos*)
15732       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)'
15733       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15734       hardcode_minus_L_GCJ=yes
15735       # see comment about different semantics on the GNU ld section
15736       ld_shlibs_GCJ=no
15737       ;;
15738
15739     bsdi[45]*)
15740       export_dynamic_flag_spec_GCJ=-rdynamic
15741       ;;
15742
15743     cygwin* | mingw* | pw32*)
15744       # When not using gcc, we currently assume that we are using
15745       # Microsoft Visual C++.
15746       # hardcode_libdir_flag_spec is actually meaningless, as there is
15747       # no search path for DLLs.
15748       hardcode_libdir_flag_spec_GCJ=' '
15749       allow_undefined_flag_GCJ=unsupported
15750       # Tell ltmain to make .lib files, not .a files.
15751       libext=lib
15752       # Tell ltmain to make .dll files, not .so files.
15753       shrext_cmds=".dll"
15754       # FIXME: Setting linknames here is a bad hack.
15755       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15756       # The linker will automatically build a .lib file if we build a DLL.
15757       old_archive_From_new_cmds_GCJ='true'
15758       # FIXME: Should let the user specify the lib program.
15759       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15760       fix_srcfile_path='`cygpath -w "$srcfile"`'
15761       enable_shared_with_static_runtimes_GCJ=yes
15762       ;;
15763
15764     darwin* | rhapsody*)
15765       case "$host_os" in
15766         rhapsody* | darwin1.[012])
15767          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
15768          ;;
15769        *) # Darwin 1.3 on
15770          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15771            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15772          else
15773            case ${MACOSX_DEPLOYMENT_TARGET} in
15774              10.[012])
15775                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15776                ;;
15777              10.*)
15778                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
15779                ;;
15780            esac
15781          fi
15782          ;;
15783       esac
15784       archive_cmds_need_lc_GCJ=no
15785       hardcode_direct_GCJ=no
15786       hardcode_automatic_GCJ=yes
15787       hardcode_shlibpath_var_GCJ=unsupported
15788       whole_archive_flag_spec_GCJ=''
15789       link_all_deplibs_GCJ=yes
15790     if test "$GCC" = yes ; then
15791         output_verbose_link_cmd='echo'
15792         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15793       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15794       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15795       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15796       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}'
15797     else
15798       case "$cc_basename" in
15799         xlc*)
15800          output_verbose_link_cmd='echo'
15801          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15802          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15803           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15804          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15805           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}'
15806           ;;
15807        *)
15808          ld_shlibs_GCJ=no
15809           ;;
15810       esac
15811     fi
15812       ;;
15813
15814     dgux*)
15815       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15817       hardcode_shlibpath_var_GCJ=no
15818       ;;
15819
15820     freebsd1*)
15821       ld_shlibs_GCJ=no
15822       ;;
15823
15824     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15825     # support.  Future versions do this automatically, but an explicit c++rt0.o
15826     # does not break anything, and helps significantly (at the cost of a little
15827     # extra space).
15828     freebsd2.2*)
15829       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15830       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15831       hardcode_direct_GCJ=yes
15832       hardcode_shlibpath_var_GCJ=no
15833       ;;
15834
15835     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15836     freebsd2*)
15837       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15838       hardcode_direct_GCJ=yes
15839       hardcode_minus_L_GCJ=yes
15840       hardcode_shlibpath_var_GCJ=no
15841       ;;
15842
15843     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15844     freebsd* | kfreebsd*-gnu)
15845       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15846       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15847       hardcode_direct_GCJ=yes
15848       hardcode_shlibpath_var_GCJ=no
15849       ;;
15850
15851     hpux9*)
15852       if test "$GCC" = yes; then
15853         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'
15854       else
15855         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'
15856       fi
15857       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15858       hardcode_libdir_separator_GCJ=:
15859       hardcode_direct_GCJ=yes
15860
15861       # hardcode_minus_L: Not really in the search PATH,
15862       # but as the default location of the library.
15863       hardcode_minus_L_GCJ=yes
15864       export_dynamic_flag_spec_GCJ='${wl}-E'
15865       ;;
15866
15867     hpux10* | hpux11*)
15868       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15869         case "$host_cpu" in
15870         hppa*64*|ia64*)
15871           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15872           ;;
15873         *)
15874           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15875           ;;
15876         esac
15877       else
15878         case "$host_cpu" in
15879         hppa*64*|ia64*)
15880           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15881           ;;
15882         *)
15883           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15884           ;;
15885         esac
15886       fi
15887       if test "$with_gnu_ld" = no; then
15888         case "$host_cpu" in
15889         hppa*64*)
15890           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15891           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15892           hardcode_libdir_separator_GCJ=:
15893           hardcode_direct_GCJ=no
15894           hardcode_shlibpath_var_GCJ=no
15895           ;;
15896         ia64*)
15897           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15898           hardcode_direct_GCJ=no
15899           hardcode_shlibpath_var_GCJ=no
15900
15901           # hardcode_minus_L: Not really in the search PATH,
15902           # but as the default location of the library.
15903           hardcode_minus_L_GCJ=yes
15904           ;;
15905         *)
15906           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15907           hardcode_libdir_separator_GCJ=:
15908           hardcode_direct_GCJ=yes
15909           export_dynamic_flag_spec_GCJ='${wl}-E'
15910
15911           # hardcode_minus_L: Not really in the search PATH,
15912           # but as the default location of the library.
15913           hardcode_minus_L_GCJ=yes
15914           ;;
15915         esac
15916       fi
15917       ;;
15918
15919     irix5* | irix6* | nonstopux*)
15920       if test "$GCC" = yes; then
15921         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'
15922       else
15923         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'
15924         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15925       fi
15926       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15927       hardcode_libdir_separator_GCJ=:
15928       link_all_deplibs_GCJ=yes
15929       ;;
15930
15931     netbsd*)
15932       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15933         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15934       else
15935         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15936       fi
15937       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15938       hardcode_direct_GCJ=yes
15939       hardcode_shlibpath_var_GCJ=no
15940       ;;
15941
15942     newsos6)
15943       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15944       hardcode_direct_GCJ=yes
15945       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15946       hardcode_libdir_separator_GCJ=:
15947       hardcode_shlibpath_var_GCJ=no
15948       ;;
15949
15950     openbsd*)
15951       hardcode_direct_GCJ=yes
15952       hardcode_shlibpath_var_GCJ=no
15953       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15954         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15955         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15956         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15957         export_dynamic_flag_spec_GCJ='${wl}-E'
15958       else
15959        case $host_os in
15960          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15961            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15962            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15963            ;;
15964          *)
15965            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15966            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15967            ;;
15968        esac
15969       fi
15970       ;;
15971
15972     os2*)
15973       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15974       hardcode_minus_L_GCJ=yes
15975       allow_undefined_flag_GCJ=unsupported
15976       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'
15977       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15978       ;;
15979
15980     osf3*)
15981       if test "$GCC" = yes; then
15982         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15983         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'
15984       else
15985         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15986         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'
15987       fi
15988       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15989       hardcode_libdir_separator_GCJ=:
15990       ;;
15991
15992     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15993       if test "$GCC" = yes; then
15994         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15995         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'
15996         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15997       else
15998         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15999         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'
16000         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~
16001         $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'
16002
16003         # Both c and cxx compiler support -rpath directly
16004         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16005       fi
16006       hardcode_libdir_separator_GCJ=:
16007       ;;
16008
16009     sco3.2v5*)
16010       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16011       hardcode_shlibpath_var_GCJ=no
16012       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16013       runpath_var=LD_RUN_PATH
16014       hardcode_runpath_var=yes
16015       ;;
16016
16017     solaris*)
16018       no_undefined_flag_GCJ=' -z text'
16019       if test "$GCC" = yes; then
16020         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16021         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16022           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16023       else
16024         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16025         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16026         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16027       fi
16028       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16029       hardcode_shlibpath_var_GCJ=no
16030       case $host_os in
16031       solaris2.[0-5] | solaris2.[0-5].*) ;;
16032       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16033         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16034       esac
16035       link_all_deplibs_GCJ=yes
16036       ;;
16037
16038     sunos4*)
16039       if test "x$host_vendor" = xsequent; then
16040         # Use $CC to link under sequent, because it throws in some extra .o
16041         # files that make .init and .fini sections work.
16042         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16043       else
16044         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16045       fi
16046       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16047       hardcode_direct_GCJ=yes
16048       hardcode_minus_L_GCJ=yes
16049       hardcode_shlibpath_var_GCJ=no
16050       ;;
16051
16052     sysv4)
16053       case $host_vendor in
16054         sni)
16055           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16056           hardcode_direct_GCJ=yes # is this really true???
16057         ;;
16058         siemens)
16059           ## LD is ld it makes a PLAMLIB
16060           ## CC just makes a GrossModule.
16061           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16062           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16063           hardcode_direct_GCJ=no
16064         ;;
16065         motorola)
16066           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16067           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16068         ;;
16069       esac
16070       runpath_var='LD_RUN_PATH'
16071       hardcode_shlibpath_var_GCJ=no
16072       ;;
16073
16074     sysv4.3*)
16075       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16076       hardcode_shlibpath_var_GCJ=no
16077       export_dynamic_flag_spec_GCJ='-Bexport'
16078       ;;
16079
16080     sysv4*MP*)
16081       if test -d /usr/nec; then
16082         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16083         hardcode_shlibpath_var_GCJ=no
16084         runpath_var=LD_RUN_PATH
16085         hardcode_runpath_var=yes
16086         ld_shlibs_GCJ=yes
16087       fi
16088       ;;
16089
16090     sysv4.2uw2*)
16091       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16092       hardcode_direct_GCJ=yes
16093       hardcode_minus_L_GCJ=no
16094       hardcode_shlibpath_var_GCJ=no
16095       hardcode_runpath_var=yes
16096       runpath_var=LD_RUN_PATH
16097       ;;
16098
16099    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16100       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16101       if test "$GCC" = yes; then
16102         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16103       else
16104         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16105       fi
16106       runpath_var='LD_RUN_PATH'
16107       hardcode_shlibpath_var_GCJ=no
16108       ;;
16109
16110     sysv5*)
16111       no_undefined_flag_GCJ=' -z text'
16112       # $CC -shared without GNU ld will not create a library from C++
16113       # object files and a static libstdc++, better avoid it by now
16114       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16116                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16117       hardcode_libdir_flag_spec_GCJ=
16118       hardcode_shlibpath_var_GCJ=no
16119       runpath_var='LD_RUN_PATH'
16120       ;;
16121
16122     uts4*)
16123       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16125       hardcode_shlibpath_var_GCJ=no
16126       ;;
16127
16128     *)
16129       ld_shlibs_GCJ=no
16130       ;;
16131     esac
16132   fi
16133
16134 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16135 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16136 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16137
16138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16139 if test "$GCC" = yes; then
16140   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16141 fi
16142
16143 #
16144 # Do we need to explicitly link libc?
16145 #
16146 case "x$archive_cmds_need_lc_GCJ" in
16147 x|xyes)
16148   # Assume -lc should be added
16149   archive_cmds_need_lc_GCJ=yes
16150
16151   if test "$enable_shared" = yes && test "$GCC" = yes; then
16152     case $archive_cmds_GCJ in
16153     *'~'*)
16154       # FIXME: we may have to deal with multi-command sequences.
16155       ;;
16156     '$CC '*)
16157       # Test whether the compiler implicitly links with -lc since on some
16158       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16159       # to ld, don't add -lc before -lgcc.
16160       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16161 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16162       $rm conftest*
16163       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16164
16165       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16166   (eval $ac_compile) 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); } 2>conftest.err; then
16170         soname=conftest
16171         lib=conftest
16172         libobjs=conftest.$ac_objext
16173         deplibs=
16174         wl=$lt_prog_compiler_wl_GCJ
16175         compiler_flags=-v
16176         linker_flags=-v
16177         verstring=
16178         output_objdir=.
16179         libname=conftest
16180         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16181         allow_undefined_flag_GCJ=
16182         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16183   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }
16187         then
16188           archive_cmds_need_lc_GCJ=no
16189         else
16190           archive_cmds_need_lc_GCJ=yes
16191         fi
16192         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16193       else
16194         cat conftest.err 1>&5
16195       fi
16196       $rm conftest*
16197       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16198 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16199       ;;
16200     esac
16201   fi
16202   ;;
16203 esac
16204
16205 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16206 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16207 library_names_spec=
16208 libname_spec='lib$name'
16209 soname_spec=
16210 shrext_cmds=".so"
16211 postinstall_cmds=
16212 postuninstall_cmds=
16213 finish_cmds=
16214 finish_eval=
16215 shlibpath_var=
16216 shlibpath_overrides_runpath=unknown
16217 version_type=none
16218 dynamic_linker="$host_os ld.so"
16219 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16220 if test "$GCC" = yes; then
16221   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16222   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16223     # if the path contains ";" then we assume it to be the separator
16224     # otherwise default to the standard path separator (i.e. ":") - it is
16225     # assumed that no part of a normal pathname contains ";" but that should
16226     # okay in the real world where ";" in dirpaths is itself problematic.
16227     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16228   else
16229     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16230   fi
16231 else
16232   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16233 fi
16234 need_lib_prefix=unknown
16235 hardcode_into_libs=no
16236
16237 # when you set need_version to no, make sure it does not cause -set_version
16238 # flags to be left without arguments
16239 need_version=unknown
16240
16241 case $host_os in
16242 aix3*)
16243   version_type=linux
16244   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16245   shlibpath_var=LIBPATH
16246
16247   # AIX 3 has no versioning support, so we append a major version to the name.
16248   soname_spec='${libname}${release}${shared_ext}$major'
16249   ;;
16250
16251 aix4* | aix5*)
16252   version_type=linux
16253   need_lib_prefix=no
16254   need_version=no
16255   hardcode_into_libs=yes
16256   if test "$host_cpu" = ia64; then
16257     # AIX 5 supports IA64
16258     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16259     shlibpath_var=LD_LIBRARY_PATH
16260   else
16261     # With GCC up to 2.95.x, collect2 would create an import file
16262     # for dependence libraries.  The import file would start with
16263     # the line `#! .'.  This would cause the generated library to
16264     # depend on `.', always an invalid library.  This was fixed in
16265     # development snapshots of GCC prior to 3.0.
16266     case $host_os in
16267       aix4 | aix4.[01] | aix4.[01].*)
16268       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16269            echo ' yes '
16270            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16271         :
16272       else
16273         can_build_shared=no
16274       fi
16275       ;;
16276     esac
16277     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16278     # soname into executable. Probably we can add versioning support to
16279     # collect2, so additional links can be useful in future.
16280     if test "$aix_use_runtimelinking" = yes; then
16281       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16282       # instead of lib<name>.a to let people know that these are not
16283       # typical AIX shared libraries.
16284       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285     else
16286       # We preserve .a as extension for shared libraries through AIX4.2
16287       # and later when we are not doing run time linking.
16288       library_names_spec='${libname}${release}.a $libname.a'
16289       soname_spec='${libname}${release}${shared_ext}$major'
16290     fi
16291     shlibpath_var=LIBPATH
16292   fi
16293   ;;
16294
16295 amigaos*)
16296   library_names_spec='$libname.ixlibrary $libname.a'
16297   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16298   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'
16299   ;;
16300
16301 beos*)
16302   library_names_spec='${libname}${shared_ext}'
16303   dynamic_linker="$host_os ld.so"
16304   shlibpath_var=LIBRARY_PATH
16305   ;;
16306
16307 bsdi[45]*)
16308   version_type=linux
16309   need_version=no
16310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311   soname_spec='${libname}${release}${shared_ext}$major'
16312   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16313   shlibpath_var=LD_LIBRARY_PATH
16314   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16315   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16316   # the default ld.so.conf also contains /usr/contrib/lib and
16317   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16318   # libtool to hard-code these into programs
16319   ;;
16320
16321 cygwin* | mingw* | pw32*)
16322   version_type=windows
16323   shrext_cmds=".dll"
16324   need_version=no
16325   need_lib_prefix=no
16326
16327   case $GCC,$host_os in
16328   yes,cygwin* | yes,mingw* | yes,pw32*)
16329     library_names_spec='$libname.dll.a'
16330     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16331     postinstall_cmds='base_file=`basename \${file}`~
16332       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16333       dldir=$destdir/`dirname \$dlpath`~
16334       test -d \$dldir || mkdir -p \$dldir~
16335       $install_prog $dir/$dlname \$dldir/$dlname'
16336     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16337       dlpath=$dir/\$dldll~
16338        $rm \$dlpath'
16339     shlibpath_overrides_runpath=yes
16340
16341     case $host_os in
16342     cygwin*)
16343       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16344       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16345       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16346       ;;
16347     mingw*)
16348       # MinGW DLLs use traditional 'lib' prefix
16349       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16350       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16351       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16352         # It is most probably a Windows format PATH printed by
16353         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16354         # path with ; separators, and with drive letters. We can handle the
16355         # drive letters (cygwin fileutils understands them), so leave them,
16356         # especially as we might pass files found there to a mingw objdump,
16357         # which wouldn't understand a cygwinified path. Ahh.
16358         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359       else
16360         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16361       fi
16362       ;;
16363     pw32*)
16364       # pw32 DLLs use 'pw' prefix rather than 'lib'
16365       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16366       ;;
16367     esac
16368     ;;
16369
16370   *)
16371     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16372     ;;
16373   esac
16374   dynamic_linker='Win32 ld.exe'
16375   # FIXME: first we should search . and the directory the executable is in
16376   shlibpath_var=PATH
16377   ;;
16378
16379 darwin* | rhapsody*)
16380   dynamic_linker="$host_os dyld"
16381   version_type=darwin
16382   need_lib_prefix=no
16383   need_version=no
16384   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16385   soname_spec='${libname}${release}${major}$shared_ext'
16386   shlibpath_overrides_runpath=yes
16387   shlibpath_var=DYLD_LIBRARY_PATH
16388   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16389   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16390   if test "$GCC" = yes; then
16391     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"`
16392   else
16393     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16394   fi
16395   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16396   ;;
16397
16398 dgux*)
16399   version_type=linux
16400   need_lib_prefix=no
16401   need_version=no
16402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16403   soname_spec='${libname}${release}${shared_ext}$major'
16404   shlibpath_var=LD_LIBRARY_PATH
16405   ;;
16406
16407 freebsd1*)
16408   dynamic_linker=no
16409   ;;
16410
16411 kfreebsd*-gnu)
16412   version_type=linux
16413   need_lib_prefix=no
16414   need_version=no
16415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16416   soname_spec='${libname}${release}${shared_ext}$major'
16417   shlibpath_var=LD_LIBRARY_PATH
16418   shlibpath_overrides_runpath=no
16419   hardcode_into_libs=yes
16420   dynamic_linker='GNU ld.so'
16421   ;;
16422
16423 freebsd*)
16424   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16425   version_type=freebsd-$objformat
16426   case $version_type in
16427     freebsd-elf*)
16428       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16429       need_version=no
16430       need_lib_prefix=no
16431       ;;
16432     freebsd-*)
16433       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16434       need_version=yes
16435       ;;
16436   esac
16437   shlibpath_var=LD_LIBRARY_PATH
16438   case $host_os in
16439   freebsd2*)
16440     shlibpath_overrides_runpath=yes
16441     ;;
16442   freebsd3.01* | freebsdelf3.01*)
16443     shlibpath_overrides_runpath=yes
16444     hardcode_into_libs=yes
16445     ;;
16446   *) # from 3.2 on
16447     shlibpath_overrides_runpath=no
16448     hardcode_into_libs=yes
16449     ;;
16450   esac
16451   ;;
16452
16453 gnu*)
16454   version_type=linux
16455   need_lib_prefix=no
16456   need_version=no
16457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16458   soname_spec='${libname}${release}${shared_ext}$major'
16459   shlibpath_var=LD_LIBRARY_PATH
16460   hardcode_into_libs=yes
16461   ;;
16462
16463 hpux9* | hpux10* | hpux11*)
16464   # Give a soname corresponding to the major version so that dld.sl refuses to
16465   # link against other versions.
16466   version_type=sunos
16467   need_lib_prefix=no
16468   need_version=no
16469   case "$host_cpu" in
16470   ia64*)
16471     shrext_cmds='.so'
16472     hardcode_into_libs=yes
16473     dynamic_linker="$host_os dld.so"
16474     shlibpath_var=LD_LIBRARY_PATH
16475     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16476     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16477     soname_spec='${libname}${release}${shared_ext}$major'
16478     if test "X$HPUX_IA64_MODE" = X32; then
16479       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16480     else
16481       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16482     fi
16483     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16484     ;;
16485    hppa*64*)
16486      shrext_cmds='.sl'
16487      hardcode_into_libs=yes
16488      dynamic_linker="$host_os dld.sl"
16489      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16490      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16491      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492      soname_spec='${libname}${release}${shared_ext}$major'
16493      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16494      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16495      ;;
16496    *)
16497     shrext_cmds='.sl'
16498     dynamic_linker="$host_os dld.sl"
16499     shlibpath_var=SHLIB_PATH
16500     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502     soname_spec='${libname}${release}${shared_ext}$major'
16503     ;;
16504   esac
16505   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16506   postinstall_cmds='chmod 555 $lib'
16507   ;;
16508
16509 irix5* | irix6* | nonstopux*)
16510   case $host_os in
16511     nonstopux*) version_type=nonstopux ;;
16512     *)
16513         if test "$lt_cv_prog_gnu_ld" = yes; then
16514                 version_type=linux
16515         else
16516                 version_type=irix
16517         fi ;;
16518   esac
16519   need_lib_prefix=no
16520   need_version=no
16521   soname_spec='${libname}${release}${shared_ext}$major'
16522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16523   case $host_os in
16524   irix5* | nonstopux*)
16525     libsuff= shlibsuff=
16526     ;;
16527   *)
16528     case $LD in # libtool.m4 will add one of these switches to LD
16529     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16530       libsuff= shlibsuff= libmagic=32-bit;;
16531     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16532       libsuff=32 shlibsuff=N32 libmagic=N32;;
16533     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16534       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16535     *) libsuff= shlibsuff= libmagic=never-match;;
16536     esac
16537     ;;
16538   esac
16539   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16540   shlibpath_overrides_runpath=no
16541   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16542   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16543   hardcode_into_libs=yes
16544   ;;
16545
16546 # No shared lib support for Linux oldld, aout, or coff.
16547 linux*oldld* | linux*aout* | linux*coff*)
16548   dynamic_linker=no
16549   ;;
16550
16551 # This must be Linux ELF.
16552 linux*)
16553   version_type=linux
16554   need_lib_prefix=no
16555   need_version=no
16556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16557   soname_spec='${libname}${release}${shared_ext}$major'
16558   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16559   shlibpath_var=LD_LIBRARY_PATH
16560   shlibpath_overrides_runpath=no
16561   # This implies no fast_install, which is unacceptable.
16562   # Some rework will be needed to allow for fast_install
16563   # before this can be enabled.
16564   hardcode_into_libs=yes
16565
16566   # Append ld.so.conf contents to the search path
16567   if test -f /etc/ld.so.conf; then
16568     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16569     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16570   fi
16571
16572   # We used to test for /lib/ld.so.1 and disable shared libraries on
16573   # powerpc, because MkLinux only supported shared libraries with the
16574   # GNU dynamic linker.  Since this was broken with cross compilers,
16575   # most powerpc-linux boxes support dynamic linking these days and
16576   # people can always --disable-shared, the test was removed, and we
16577   # assume the GNU/Linux dynamic linker is in use.
16578   dynamic_linker='GNU/Linux ld.so'
16579   ;;
16580
16581 knetbsd*-gnu)
16582   version_type=linux
16583   need_lib_prefix=no
16584   need_version=no
16585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16586   soname_spec='${libname}${release}${shared_ext}$major'
16587   shlibpath_var=LD_LIBRARY_PATH
16588   shlibpath_overrides_runpath=no
16589   hardcode_into_libs=yes
16590   dynamic_linker='GNU ld.so'
16591   ;;
16592
16593 netbsd*)
16594   version_type=sunos
16595   need_lib_prefix=no
16596   need_version=no
16597   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16599     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16600     dynamic_linker='NetBSD (a.out) ld.so'
16601   else
16602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16603     soname_spec='${libname}${release}${shared_ext}$major'
16604     dynamic_linker='NetBSD ld.elf_so'
16605   fi
16606   shlibpath_var=LD_LIBRARY_PATH
16607   shlibpath_overrides_runpath=yes
16608   hardcode_into_libs=yes
16609   ;;
16610
16611 newsos6)
16612   version_type=linux
16613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16614   shlibpath_var=LD_LIBRARY_PATH
16615   shlibpath_overrides_runpath=yes
16616   ;;
16617
16618 nto-qnx*)
16619   version_type=linux
16620   need_lib_prefix=no
16621   need_version=no
16622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623   soname_spec='${libname}${release}${shared_ext}$major'
16624   shlibpath_var=LD_LIBRARY_PATH
16625   shlibpath_overrides_runpath=yes
16626   ;;
16627
16628 openbsd*)
16629   version_type=sunos
16630   need_lib_prefix=no
16631   need_version=no
16632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16633   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16634   shlibpath_var=LD_LIBRARY_PATH
16635   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16636     case $host_os in
16637       openbsd2.[89] | openbsd2.[89].*)
16638         shlibpath_overrides_runpath=no
16639         ;;
16640       *)
16641         shlibpath_overrides_runpath=yes
16642         ;;
16643       esac
16644   else
16645     shlibpath_overrides_runpath=yes
16646   fi
16647   ;;
16648
16649 os2*)
16650   libname_spec='$name'
16651   shrext_cmds=".dll"
16652   need_lib_prefix=no
16653   library_names_spec='$libname${shared_ext} $libname.a'
16654   dynamic_linker='OS/2 ld.exe'
16655   shlibpath_var=LIBPATH
16656   ;;
16657
16658 osf3* | osf4* | osf5*)
16659   version_type=osf
16660   need_lib_prefix=no
16661   need_version=no
16662   soname_spec='${libname}${release}${shared_ext}$major'
16663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16664   shlibpath_var=LD_LIBRARY_PATH
16665   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16666   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16667   ;;
16668
16669 sco3.2v5*)
16670   version_type=osf
16671   soname_spec='${libname}${release}${shared_ext}$major'
16672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673   shlibpath_var=LD_LIBRARY_PATH
16674   ;;
16675
16676 solaris*)
16677   version_type=linux
16678   need_lib_prefix=no
16679   need_version=no
16680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681   soname_spec='${libname}${release}${shared_ext}$major'
16682   shlibpath_var=LD_LIBRARY_PATH
16683   shlibpath_overrides_runpath=yes
16684   hardcode_into_libs=yes
16685   # ldd complains unless libraries are executable
16686   postinstall_cmds='chmod +x $lib'
16687   ;;
16688
16689 sunos4*)
16690   version_type=sunos
16691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16692   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16693   shlibpath_var=LD_LIBRARY_PATH
16694   shlibpath_overrides_runpath=yes
16695   if test "$with_gnu_ld" = yes; then
16696     need_lib_prefix=no
16697   fi
16698   need_version=yes
16699   ;;
16700
16701 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16702   version_type=linux
16703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16704   soname_spec='${libname}${release}${shared_ext}$major'
16705   shlibpath_var=LD_LIBRARY_PATH
16706   case $host_vendor in
16707     sni)
16708       shlibpath_overrides_runpath=no
16709       need_lib_prefix=no
16710       export_dynamic_flag_spec='${wl}-Blargedynsym'
16711       runpath_var=LD_RUN_PATH
16712       ;;
16713     siemens)
16714       need_lib_prefix=no
16715       ;;
16716     motorola)
16717       need_lib_prefix=no
16718       need_version=no
16719       shlibpath_overrides_runpath=no
16720       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16721       ;;
16722   esac
16723   ;;
16724
16725 sysv4*MP*)
16726   if test -d /usr/nec ;then
16727     version_type=linux
16728     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16729     soname_spec='$libname${shared_ext}.$major'
16730     shlibpath_var=LD_LIBRARY_PATH
16731   fi
16732   ;;
16733
16734 uts4*)
16735   version_type=linux
16736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737   soname_spec='${libname}${release}${shared_ext}$major'
16738   shlibpath_var=LD_LIBRARY_PATH
16739   ;;
16740
16741 *)
16742   dynamic_linker=no
16743   ;;
16744 esac
16745 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16746 echo "${ECHO_T}$dynamic_linker" >&6
16747 test "$dynamic_linker" = no && can_build_shared=no
16748
16749 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16750 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16751 hardcode_action_GCJ=
16752 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16753    test -n "$runpath_var_GCJ" || \
16754    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
16755
16756   # We can hardcode non-existant directories.
16757   if test "$hardcode_direct_GCJ" != no &&
16758      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16759      # have to relink, otherwise we might link with an installed library
16760      # when we should be linking with a yet-to-be-installed one
16761      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16762      test "$hardcode_minus_L_GCJ" != no; then
16763     # Linking always hardcodes the temporary library directory.
16764     hardcode_action_GCJ=relink
16765   else
16766     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16767     hardcode_action_GCJ=immediate
16768   fi
16769 else
16770   # We cannot hardcode anything, or else we can only hardcode existing
16771   # directories.
16772   hardcode_action_GCJ=unsupported
16773 fi
16774 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16775 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16776
16777 if test "$hardcode_action_GCJ" = relink; then
16778   # Fast installation is not supported
16779   enable_fast_install=no
16780 elif test "$shlibpath_overrides_runpath" = yes ||
16781      test "$enable_shared" = no; then
16782   # Fast installation is not necessary
16783   enable_fast_install=needless
16784 fi
16785
16786 striplib=
16787 old_striplib=
16788 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16789 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16790 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16791   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16792   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16793   echo "$as_me:$LINENO: result: yes" >&5
16794 echo "${ECHO_T}yes" >&6
16795 else
16796 # FIXME - insert some real tests, host_os isn't really good enough
16797   case $host_os in
16798    darwin*)
16799        if test -n "$STRIP" ; then
16800          striplib="$STRIP -x"
16801          echo "$as_me:$LINENO: result: yes" >&5
16802 echo "${ECHO_T}yes" >&6
16803        else
16804   echo "$as_me:$LINENO: result: no" >&5
16805 echo "${ECHO_T}no" >&6
16806 fi
16807        ;;
16808    *)
16809   echo "$as_me:$LINENO: result: no" >&5
16810 echo "${ECHO_T}no" >&6
16811     ;;
16812   esac
16813 fi
16814
16815 if test "x$enable_dlopen" != xyes; then
16816   enable_dlopen=unknown
16817   enable_dlopen_self=unknown
16818   enable_dlopen_self_static=unknown
16819 else
16820   lt_cv_dlopen=no
16821   lt_cv_dlopen_libs=
16822
16823   case $host_os in
16824   beos*)
16825     lt_cv_dlopen="load_add_on"
16826     lt_cv_dlopen_libs=
16827     lt_cv_dlopen_self=yes
16828     ;;
16829
16830   mingw* | pw32*)
16831     lt_cv_dlopen="LoadLibrary"
16832     lt_cv_dlopen_libs=
16833    ;;
16834
16835   cygwin*)
16836     lt_cv_dlopen="dlopen"
16837     lt_cv_dlopen_libs=
16838    ;;
16839
16840   darwin*)
16841   # if libdl is installed we need to link against it
16842     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16843 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16844 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16845   echo $ECHO_N "(cached) $ECHO_C" >&6
16846 else
16847   ac_check_lib_save_LIBS=$LIBS
16848 LIBS="-ldl  $LIBS"
16849 cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h.  */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h.  */
16855
16856 /* Override any gcc2 internal prototype to avoid an error.  */
16857 #ifdef __cplusplus
16858 extern "C"
16859 #endif
16860 /* We use char because int might match the return type of a gcc2
16861    builtin and then its argument prototype would still apply.  */
16862 char dlopen ();
16863 int
16864 main ()
16865 {
16866 dlopen ();
16867   ;
16868   return 0;
16869 }
16870 _ACEOF
16871 rm -f conftest.$ac_objext conftest$ac_exeext
16872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16873   (eval $ac_link) 2>conftest.er1
16874   ac_status=$?
16875   grep -v '^ *+' conftest.er1 >conftest.err
16876   rm -f conftest.er1
16877   cat conftest.err >&5
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); } &&
16880          { ac_try='test -z "$ac_c_werror_flag"
16881                          || test ! -s conftest.err'
16882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883   (eval $ac_try) 2>&5
16884   ac_status=$?
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); }; } &&
16887          { ac_try='test -s conftest$ac_exeext'
16888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889   (eval $ac_try) 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); }; }; then
16893   ac_cv_lib_dl_dlopen=yes
16894 else
16895   echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16897
16898 ac_cv_lib_dl_dlopen=no
16899 fi
16900 rm -f conftest.err conftest.$ac_objext \
16901       conftest$ac_exeext conftest.$ac_ext
16902 LIBS=$ac_check_lib_save_LIBS
16903 fi
16904 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16905 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16906 if test $ac_cv_lib_dl_dlopen = yes; then
16907   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16908 else
16909
16910     lt_cv_dlopen="dyld"
16911     lt_cv_dlopen_libs=
16912     lt_cv_dlopen_self=yes
16913
16914 fi
16915
16916    ;;
16917
16918   *)
16919     echo "$as_me:$LINENO: checking for shl_load" >&5
16920 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16921 if test "${ac_cv_func_shl_load+set}" = set; then
16922   echo $ECHO_N "(cached) $ECHO_C" >&6
16923 else
16924   cat >conftest.$ac_ext <<_ACEOF
16925 /* confdefs.h.  */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h.  */
16930 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16932 #define shl_load innocuous_shl_load
16933
16934 /* System header to define __stub macros and hopefully few prototypes,
16935     which can conflict with char shl_load (); below.
16936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16937     <limits.h> exists even on freestanding compilers.  */
16938
16939 #ifdef __STDC__
16940 # include <limits.h>
16941 #else
16942 # include <assert.h>
16943 #endif
16944
16945 #undef shl_load
16946
16947 /* Override any gcc2 internal prototype to avoid an error.  */
16948 #ifdef __cplusplus
16949 extern "C"
16950 {
16951 #endif
16952 /* We use char because int might match the return type of a gcc2
16953    builtin and then its argument prototype would still apply.  */
16954 char shl_load ();
16955 /* The GNU C library defines this for functions which it implements
16956     to always fail with ENOSYS.  Some functions are actually named
16957     something starting with __ and the normal name is an alias.  */
16958 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16959 choke me
16960 #else
16961 char (*f) () = shl_load;
16962 #endif
16963 #ifdef __cplusplus
16964 }
16965 #endif
16966
16967 int
16968 main ()
16969 {
16970 return f != shl_load;
16971   ;
16972   return 0;
16973 }
16974 _ACEOF
16975 rm -f conftest.$ac_objext conftest$ac_exeext
16976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16977   (eval $ac_link) 2>conftest.er1
16978   ac_status=$?
16979   grep -v '^ *+' conftest.er1 >conftest.err
16980   rm -f conftest.er1
16981   cat conftest.err >&5
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); } &&
16984          { ac_try='test -z "$ac_c_werror_flag"
16985                          || test ! -s conftest.err'
16986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987   (eval $ac_try) 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); }; } &&
16991          { ac_try='test -s conftest$ac_exeext'
16992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993   (eval $ac_try) 2>&5
16994   ac_status=$?
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); }; }; then
16997   ac_cv_func_shl_load=yes
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002 ac_cv_func_shl_load=no
17003 fi
17004 rm -f conftest.err conftest.$ac_objext \
17005       conftest$ac_exeext conftest.$ac_ext
17006 fi
17007 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17008 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17009 if test $ac_cv_func_shl_load = yes; then
17010   lt_cv_dlopen="shl_load"
17011 else
17012   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17013 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17014 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17015   echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17017   ac_check_lib_save_LIBS=$LIBS
17018 LIBS="-ldld  $LIBS"
17019 cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025
17026 /* Override any gcc2 internal prototype to avoid an error.  */
17027 #ifdef __cplusplus
17028 extern "C"
17029 #endif
17030 /* We use char because int might match the return type of a gcc2
17031    builtin and then its argument prototype would still apply.  */
17032 char shl_load ();
17033 int
17034 main ()
17035 {
17036 shl_load ();
17037   ;
17038   return 0;
17039 }
17040 _ACEOF
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17043   (eval $ac_link) 2>conftest.er1
17044   ac_status=$?
17045   grep -v '^ *+' conftest.er1 >conftest.err
17046   rm -f conftest.er1
17047   cat conftest.err >&5
17048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049   (exit $ac_status); } &&
17050          { ac_try='test -z "$ac_c_werror_flag"
17051                          || test ! -s conftest.err'
17052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053   (eval $ac_try) 2>&5
17054   ac_status=$?
17055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056   (exit $ac_status); }; } &&
17057          { ac_try='test -s conftest$ac_exeext'
17058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059   (eval $ac_try) 2>&5
17060   ac_status=$?
17061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); }; }; then
17063   ac_cv_lib_dld_shl_load=yes
17064 else
17065   echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17067
17068 ac_cv_lib_dld_shl_load=no
17069 fi
17070 rm -f conftest.err conftest.$ac_objext \
17071       conftest$ac_exeext conftest.$ac_ext
17072 LIBS=$ac_check_lib_save_LIBS
17073 fi
17074 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17075 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17076 if test $ac_cv_lib_dld_shl_load = yes; then
17077   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17078 else
17079   echo "$as_me:$LINENO: checking for dlopen" >&5
17080 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17081 if test "${ac_cv_func_dlopen+set}" = set; then
17082   echo $ECHO_N "(cached) $ECHO_C" >&6
17083 else
17084   cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h.  */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h.  */
17090 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17092 #define dlopen innocuous_dlopen
17093
17094 /* System header to define __stub macros and hopefully few prototypes,
17095     which can conflict with char dlopen (); below.
17096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17097     <limits.h> exists even on freestanding compilers.  */
17098
17099 #ifdef __STDC__
17100 # include <limits.h>
17101 #else
17102 # include <assert.h>
17103 #endif
17104
17105 #undef dlopen
17106
17107 /* Override any gcc2 internal prototype to avoid an error.  */
17108 #ifdef __cplusplus
17109 extern "C"
17110 {
17111 #endif
17112 /* We use char because int might match the return type of a gcc2
17113    builtin and then its argument prototype would still apply.  */
17114 char dlopen ();
17115 /* The GNU C library defines this for functions which it implements
17116     to always fail with ENOSYS.  Some functions are actually named
17117     something starting with __ and the normal name is an alias.  */
17118 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17119 choke me
17120 #else
17121 char (*f) () = dlopen;
17122 #endif
17123 #ifdef __cplusplus
17124 }
17125 #endif
17126
17127 int
17128 main ()
17129 {
17130 return f != dlopen;
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17137   (eval $ac_link) 2>conftest.er1
17138   ac_status=$?
17139   grep -v '^ *+' conftest.er1 >conftest.err
17140   rm -f conftest.er1
17141   cat conftest.err >&5
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); } &&
17144          { ac_try='test -z "$ac_c_werror_flag"
17145                          || test ! -s conftest.err'
17146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147   (eval $ac_try) 2>&5
17148   ac_status=$?
17149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150   (exit $ac_status); }; } &&
17151          { ac_try='test -s conftest$ac_exeext'
17152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153   (eval $ac_try) 2>&5
17154   ac_status=$?
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); }; }; then
17157   ac_cv_func_dlopen=yes
17158 else
17159   echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17161
17162 ac_cv_func_dlopen=no
17163 fi
17164 rm -f conftest.err conftest.$ac_objext \
17165       conftest$ac_exeext conftest.$ac_ext
17166 fi
17167 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17168 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17169 if test $ac_cv_func_dlopen = yes; then
17170   lt_cv_dlopen="dlopen"
17171 else
17172   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17173 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17174 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17175   echo $ECHO_N "(cached) $ECHO_C" >&6
17176 else
17177   ac_check_lib_save_LIBS=$LIBS
17178 LIBS="-ldl  $LIBS"
17179 cat >conftest.$ac_ext <<_ACEOF
17180 /* confdefs.h.  */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h.  */
17185
17186 /* Override any gcc2 internal prototype to avoid an error.  */
17187 #ifdef __cplusplus
17188 extern "C"
17189 #endif
17190 /* We use char because int might match the return type of a gcc2
17191    builtin and then its argument prototype would still apply.  */
17192 char dlopen ();
17193 int
17194 main ()
17195 {
17196 dlopen ();
17197   ;
17198   return 0;
17199 }
17200 _ACEOF
17201 rm -f conftest.$ac_objext conftest$ac_exeext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203   (eval $ac_link) 2>conftest.er1
17204   ac_status=$?
17205   grep -v '^ *+' conftest.er1 >conftest.err
17206   rm -f conftest.er1
17207   cat conftest.err >&5
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); } &&
17210          { ac_try='test -z "$ac_c_werror_flag"
17211                          || test ! -s conftest.err'
17212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213   (eval $ac_try) 2>&5
17214   ac_status=$?
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); }; } &&
17217          { ac_try='test -s conftest$ac_exeext'
17218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219   (eval $ac_try) 2>&5
17220   ac_status=$?
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); }; }; then
17223   ac_cv_lib_dl_dlopen=yes
17224 else
17225   echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17227
17228 ac_cv_lib_dl_dlopen=no
17229 fi
17230 rm -f conftest.err conftest.$ac_objext \
17231       conftest$ac_exeext conftest.$ac_ext
17232 LIBS=$ac_check_lib_save_LIBS
17233 fi
17234 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17235 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17236 if test $ac_cv_lib_dl_dlopen = yes; then
17237   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17238 else
17239   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17240 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17241 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17242   echo $ECHO_N "(cached) $ECHO_C" >&6
17243 else
17244   ac_check_lib_save_LIBS=$LIBS
17245 LIBS="-lsvld  $LIBS"
17246 cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h.  */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h.  */
17252
17253 /* Override any gcc2 internal prototype to avoid an error.  */
17254 #ifdef __cplusplus
17255 extern "C"
17256 #endif
17257 /* We use char because int might match the return type of a gcc2
17258    builtin and then its argument prototype would still apply.  */
17259 char dlopen ();
17260 int
17261 main ()
17262 {
17263 dlopen ();
17264   ;
17265   return 0;
17266 }
17267 _ACEOF
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17270   (eval $ac_link) 2>conftest.er1
17271   ac_status=$?
17272   grep -v '^ *+' conftest.er1 >conftest.err
17273   rm -f conftest.er1
17274   cat conftest.err >&5
17275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276   (exit $ac_status); } &&
17277          { ac_try='test -z "$ac_c_werror_flag"
17278                          || test ! -s conftest.err'
17279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280   (eval $ac_try) 2>&5
17281   ac_status=$?
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); }; } &&
17284          { ac_try='test -s conftest$ac_exeext'
17285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286   (eval $ac_try) 2>&5
17287   ac_status=$?
17288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289   (exit $ac_status); }; }; then
17290   ac_cv_lib_svld_dlopen=yes
17291 else
17292   echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295 ac_cv_lib_svld_dlopen=no
17296 fi
17297 rm -f conftest.err conftest.$ac_objext \
17298       conftest$ac_exeext conftest.$ac_ext
17299 LIBS=$ac_check_lib_save_LIBS
17300 fi
17301 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17302 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17303 if test $ac_cv_lib_svld_dlopen = yes; then
17304   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17305 else
17306   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17307 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17308 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17309   echo $ECHO_N "(cached) $ECHO_C" >&6
17310 else
17311   ac_check_lib_save_LIBS=$LIBS
17312 LIBS="-ldld  $LIBS"
17313 cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h.  */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h.  */
17319
17320 /* Override any gcc2 internal prototype to avoid an error.  */
17321 #ifdef __cplusplus
17322 extern "C"
17323 #endif
17324 /* We use char because int might match the return type of a gcc2
17325    builtin and then its argument prototype would still apply.  */
17326 char dld_link ();
17327 int
17328 main ()
17329 {
17330 dld_link ();
17331   ;
17332   return 0;
17333 }
17334 _ACEOF
17335 rm -f conftest.$ac_objext conftest$ac_exeext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17337   (eval $ac_link) 2>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } &&
17344          { ac_try='test -z "$ac_c_werror_flag"
17345                          || test ! -s conftest.err'
17346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347   (eval $ac_try) 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; } &&
17351          { ac_try='test -s conftest$ac_exeext'
17352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353   (eval $ac_try) 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); }; }; then
17357   ac_cv_lib_dld_dld_link=yes
17358 else
17359   echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17361
17362 ac_cv_lib_dld_dld_link=no
17363 fi
17364 rm -f conftest.err conftest.$ac_objext \
17365       conftest$ac_exeext conftest.$ac_ext
17366 LIBS=$ac_check_lib_save_LIBS
17367 fi
17368 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17369 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17370 if test $ac_cv_lib_dld_dld_link = yes; then
17371   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17372 fi
17373
17374
17375 fi
17376
17377
17378 fi
17379
17380
17381 fi
17382
17383
17384 fi
17385
17386
17387 fi
17388
17389     ;;
17390   esac
17391
17392   if test "x$lt_cv_dlopen" != xno; then
17393     enable_dlopen=yes
17394   else
17395     enable_dlopen=no
17396   fi
17397
17398   case $lt_cv_dlopen in
17399   dlopen)
17400     save_CPPFLAGS="$CPPFLAGS"
17401     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17402
17403     save_LDFLAGS="$LDFLAGS"
17404     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17405
17406     save_LIBS="$LIBS"
17407     LIBS="$lt_cv_dlopen_libs $LIBS"
17408
17409     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17410 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17411 if test "${lt_cv_dlopen_self+set}" = set; then
17412   echo $ECHO_N "(cached) $ECHO_C" >&6
17413 else
17414           if test "$cross_compiling" = yes; then :
17415   lt_cv_dlopen_self=cross
17416 else
17417   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17418   lt_status=$lt_dlunknown
17419   cat > conftest.$ac_ext <<EOF
17420 #line 17420 "configure"
17421 #include "confdefs.h"
17422
17423 #if HAVE_DLFCN_H
17424 #include <dlfcn.h>
17425 #endif
17426
17427 #include <stdio.h>
17428
17429 #ifdef RTLD_GLOBAL
17430 #  define LT_DLGLOBAL           RTLD_GLOBAL
17431 #else
17432 #  ifdef DL_GLOBAL
17433 #    define LT_DLGLOBAL         DL_GLOBAL
17434 #  else
17435 #    define LT_DLGLOBAL         0
17436 #  endif
17437 #endif
17438
17439 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17440    find out it does not work in some platform. */
17441 #ifndef LT_DLLAZY_OR_NOW
17442 #  ifdef RTLD_LAZY
17443 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17444 #  else
17445 #    ifdef DL_LAZY
17446 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17447 #    else
17448 #      ifdef RTLD_NOW
17449 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17450 #      else
17451 #        ifdef DL_NOW
17452 #          define LT_DLLAZY_OR_NOW      DL_NOW
17453 #        else
17454 #          define LT_DLLAZY_OR_NOW      0
17455 #        endif
17456 #      endif
17457 #    endif
17458 #  endif
17459 #endif
17460
17461 #ifdef __cplusplus
17462 extern "C" void exit (int);
17463 #endif
17464
17465 void fnord() { int i=42;}
17466 int main ()
17467 {
17468   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17469   int status = $lt_dlunknown;
17470
17471   if (self)
17472     {
17473       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17474       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17475       /* dlclose (self); */
17476     }
17477
17478     exit (status);
17479 }
17480 EOF
17481   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17482   (eval $ac_link) 2>&5
17483   ac_status=$?
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17486     (./conftest; exit; ) 2>/dev/null
17487     lt_status=$?
17488     case x$lt_status in
17489       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17490       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17491       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17492     esac
17493   else :
17494     # compilation failed
17495     lt_cv_dlopen_self=no
17496   fi
17497 fi
17498 rm -fr conftest*
17499
17500
17501 fi
17502 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17503 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17504
17505     if test "x$lt_cv_dlopen_self" = xyes; then
17506       LDFLAGS="$LDFLAGS $link_static_flag"
17507       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17508 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17509 if test "${lt_cv_dlopen_self_static+set}" = set; then
17510   echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512           if test "$cross_compiling" = yes; then :
17513   lt_cv_dlopen_self_static=cross
17514 else
17515   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17516   lt_status=$lt_dlunknown
17517   cat > conftest.$ac_ext <<EOF
17518 #line 17518 "configure"
17519 #include "confdefs.h"
17520
17521 #if HAVE_DLFCN_H
17522 #include <dlfcn.h>
17523 #endif
17524
17525 #include <stdio.h>
17526
17527 #ifdef RTLD_GLOBAL
17528 #  define LT_DLGLOBAL           RTLD_GLOBAL
17529 #else
17530 #  ifdef DL_GLOBAL
17531 #    define LT_DLGLOBAL         DL_GLOBAL
17532 #  else
17533 #    define LT_DLGLOBAL         0
17534 #  endif
17535 #endif
17536
17537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17538    find out it does not work in some platform. */
17539 #ifndef LT_DLLAZY_OR_NOW
17540 #  ifdef RTLD_LAZY
17541 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17542 #  else
17543 #    ifdef DL_LAZY
17544 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17545 #    else
17546 #      ifdef RTLD_NOW
17547 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17548 #      else
17549 #        ifdef DL_NOW
17550 #          define LT_DLLAZY_OR_NOW      DL_NOW
17551 #        else
17552 #          define LT_DLLAZY_OR_NOW      0
17553 #        endif
17554 #      endif
17555 #    endif
17556 #  endif
17557 #endif
17558
17559 #ifdef __cplusplus
17560 extern "C" void exit (int);
17561 #endif
17562
17563 void fnord() { int i=42;}
17564 int main ()
17565 {
17566   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17567   int status = $lt_dlunknown;
17568
17569   if (self)
17570     {
17571       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17572       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17573       /* dlclose (self); */
17574     }
17575
17576     exit (status);
17577 }
17578 EOF
17579   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580   (eval $ac_link) 2>&5
17581   ac_status=$?
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17584     (./conftest; exit; ) 2>/dev/null
17585     lt_status=$?
17586     case x$lt_status in
17587       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17588       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17589       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17590     esac
17591   else :
17592     # compilation failed
17593     lt_cv_dlopen_self_static=no
17594   fi
17595 fi
17596 rm -fr conftest*
17597
17598
17599 fi
17600 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17601 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17602     fi
17603
17604     CPPFLAGS="$save_CPPFLAGS"
17605     LDFLAGS="$save_LDFLAGS"
17606     LIBS="$save_LIBS"
17607     ;;
17608   esac
17609
17610   case $lt_cv_dlopen_self in
17611   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17612   *) enable_dlopen_self=unknown ;;
17613   esac
17614
17615   case $lt_cv_dlopen_self_static in
17616   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17617   *) enable_dlopen_self_static=unknown ;;
17618   esac
17619 fi
17620
17621
17622 # The else clause should only fire when bootstrapping the
17623 # libtool distribution, otherwise you forgot to ship ltmain.sh
17624 # with your package, and you will get complaints that there are
17625 # no rules to generate ltmain.sh.
17626 if test -f "$ltmain"; then
17627   # See if we are running on zsh, and set the options which allow our commands through
17628   # without removal of \ escapes.
17629   if test -n "${ZSH_VERSION+set}" ; then
17630     setopt NO_GLOB_SUBST
17631   fi
17632   # Now quote all the things that may contain metacharacters while being
17633   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17634   # variables and quote the copies for generation of the libtool script.
17635   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17636     SED SHELL STRIP \
17637     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17638     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17639     deplibs_check_method reload_flag reload_cmds need_locks \
17640     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17641     lt_cv_sys_global_symbol_to_c_name_address \
17642     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17643     old_postinstall_cmds old_postuninstall_cmds \
17644     compiler_GCJ \
17645     CC_GCJ \
17646     LD_GCJ \
17647     lt_prog_compiler_wl_GCJ \
17648     lt_prog_compiler_pic_GCJ \
17649     lt_prog_compiler_static_GCJ \
17650     lt_prog_compiler_no_builtin_flag_GCJ \
17651     export_dynamic_flag_spec_GCJ \
17652     thread_safe_flag_spec_GCJ \
17653     whole_archive_flag_spec_GCJ \
17654     enable_shared_with_static_runtimes_GCJ \
17655     old_archive_cmds_GCJ \
17656     old_archive_from_new_cmds_GCJ \
17657     predep_objects_GCJ \
17658     postdep_objects_GCJ \
17659     predeps_GCJ \
17660     postdeps_GCJ \
17661     compiler_lib_search_path_GCJ \
17662     archive_cmds_GCJ \
17663     archive_expsym_cmds_GCJ \
17664     postinstall_cmds_GCJ \
17665     postuninstall_cmds_GCJ \
17666     old_archive_from_expsyms_cmds_GCJ \
17667     allow_undefined_flag_GCJ \
17668     no_undefined_flag_GCJ \
17669     export_symbols_cmds_GCJ \
17670     hardcode_libdir_flag_spec_GCJ \
17671     hardcode_libdir_flag_spec_ld_GCJ \
17672     hardcode_libdir_separator_GCJ \
17673     hardcode_automatic_GCJ \
17674     module_cmds_GCJ \
17675     module_expsym_cmds_GCJ \
17676     lt_cv_prog_compiler_c_o_GCJ \
17677     exclude_expsyms_GCJ \
17678     include_expsyms_GCJ; do
17679
17680     case $var in
17681     old_archive_cmds_GCJ | \
17682     old_archive_from_new_cmds_GCJ | \
17683     archive_cmds_GCJ | \
17684     archive_expsym_cmds_GCJ | \
17685     module_cmds_GCJ | \
17686     module_expsym_cmds_GCJ | \
17687     old_archive_from_expsyms_cmds_GCJ | \
17688     export_symbols_cmds_GCJ | \
17689     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17690     postinstall_cmds | postuninstall_cmds | \
17691     old_postinstall_cmds | old_postuninstall_cmds | \
17692     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17693       # Double-quote double-evaled strings.
17694       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17695       ;;
17696     *)
17697       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17698       ;;
17699     esac
17700   done
17701
17702   case $lt_echo in
17703   *'\$0 --fallback-echo"')
17704     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17705     ;;
17706   esac
17707
17708 cfgfile="$ofile"
17709
17710   cat <<__EOF__ >> "$cfgfile"
17711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17712
17713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17714
17715 # Shell to use when invoking shell scripts.
17716 SHELL=$lt_SHELL
17717
17718 # Whether or not to build shared libraries.
17719 build_libtool_libs=$enable_shared
17720
17721 # Whether or not to build static libraries.
17722 build_old_libs=$enable_static
17723
17724 # Whether or not to add -lc for building shared libraries.
17725 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17726
17727 # Whether or not to disallow shared libs when runtime libs are static
17728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17729
17730 # Whether or not to optimize for fast installation.
17731 fast_install=$enable_fast_install
17732
17733 # The host system.
17734 host_alias=$host_alias
17735 host=$host
17736
17737 # An echo program that does not interpret backslashes.
17738 echo=$lt_echo
17739
17740 # The archiver.
17741 AR=$lt_AR
17742 AR_FLAGS=$lt_AR_FLAGS
17743
17744 # A C compiler.
17745 LTCC=$lt_LTCC
17746
17747 # A language-specific compiler.
17748 CC=$lt_compiler_GCJ
17749
17750 # Is the compiler the GNU C compiler?
17751 with_gcc=$GCC_GCJ
17752
17753 # An ERE matcher.
17754 EGREP=$lt_EGREP
17755
17756 # The linker used to build libraries.
17757 LD=$lt_LD_GCJ
17758
17759 # Whether we need hard or soft links.
17760 LN_S=$lt_LN_S
17761
17762 # A BSD-compatible nm program.
17763 NM=$lt_NM
17764
17765 # A symbol stripping program
17766 STRIP=$lt_STRIP
17767
17768 # Used to examine libraries when file_magic_cmd begins "file"
17769 MAGIC_CMD=$MAGIC_CMD
17770
17771 # Used on cygwin: DLL creation program.
17772 DLLTOOL="$DLLTOOL"
17773
17774 # Used on cygwin: object dumper.
17775 OBJDUMP="$OBJDUMP"
17776
17777 # Used on cygwin: assembler.
17778 AS="$AS"
17779
17780 # The name of the directory that contains temporary libtool files.
17781 objdir=$objdir
17782
17783 # How to create reloadable object files.
17784 reload_flag=$lt_reload_flag
17785 reload_cmds=$lt_reload_cmds
17786
17787 # How to pass a linker flag through the compiler.
17788 wl=$lt_lt_prog_compiler_wl_GCJ
17789
17790 # Object file suffix (normally "o").
17791 objext="$ac_objext"
17792
17793 # Old archive suffix (normally "a").
17794 libext="$libext"
17795
17796 # Shared library suffix (normally ".so").
17797 shrext_cmds='$shrext_cmds'
17798
17799 # Executable file suffix (normally "").
17800 exeext="$exeext"
17801
17802 # Additional compiler flags for building library objects.
17803 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17804 pic_mode=$pic_mode
17805
17806 # What is the maximum length of a command?
17807 max_cmd_len=$lt_cv_sys_max_cmd_len
17808
17809 # Does compiler simultaneously support -c and -o options?
17810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17811
17812 # Must we lock files when doing compilation ?
17813 need_locks=$lt_need_locks
17814
17815 # Do we need the lib prefix for modules?
17816 need_lib_prefix=$need_lib_prefix
17817
17818 # Do we need a version for libraries?
17819 need_version=$need_version
17820
17821 # Whether dlopen is supported.
17822 dlopen_support=$enable_dlopen
17823
17824 # Whether dlopen of programs is supported.
17825 dlopen_self=$enable_dlopen_self
17826
17827 # Whether dlopen of statically linked programs is supported.
17828 dlopen_self_static=$enable_dlopen_self_static
17829
17830 # Compiler flag to prevent dynamic linking.
17831 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17832
17833 # Compiler flag to turn off builtin functions.
17834 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17835
17836 # Compiler flag to allow reflexive dlopens.
17837 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17838
17839 # Compiler flag to generate shared objects directly from archives.
17840 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17841
17842 # Compiler flag to generate thread-safe objects.
17843 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17844
17845 # Library versioning type.
17846 version_type=$version_type
17847
17848 # Format of library name prefix.
17849 libname_spec=$lt_libname_spec
17850
17851 # List of archive names.  First name is the real one, the rest are links.
17852 # The last name is the one that the linker finds with -lNAME.
17853 library_names_spec=$lt_library_names_spec
17854
17855 # The coded name of the library, if different from the real name.
17856 soname_spec=$lt_soname_spec
17857
17858 # Commands used to build and install an old-style archive.
17859 RANLIB=$lt_RANLIB
17860 old_archive_cmds=$lt_old_archive_cmds_GCJ
17861 old_postinstall_cmds=$lt_old_postinstall_cmds
17862 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17863
17864 # Create an old-style archive from a shared archive.
17865 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17866
17867 # Create a temporary old-style archive to link instead of a shared archive.
17868 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17869
17870 # Commands used to build and install a shared archive.
17871 archive_cmds=$lt_archive_cmds_GCJ
17872 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17873 postinstall_cmds=$lt_postinstall_cmds
17874 postuninstall_cmds=$lt_postuninstall_cmds
17875
17876 # Commands used to build a loadable module (assumed same as above if empty)
17877 module_cmds=$lt_module_cmds_GCJ
17878 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17879
17880 # Commands to strip libraries.
17881 old_striplib=$lt_old_striplib
17882 striplib=$lt_striplib
17883
17884 # Dependencies to place before the objects being linked to create a
17885 # shared library.
17886 predep_objects=$lt_predep_objects_GCJ
17887
17888 # Dependencies to place after the objects being linked to create a
17889 # shared library.
17890 postdep_objects=$lt_postdep_objects_GCJ
17891
17892 # Dependencies to place before the objects being linked to create a
17893 # shared library.
17894 predeps=$lt_predeps_GCJ
17895
17896 # Dependencies to place after the objects being linked to create a
17897 # shared library.
17898 postdeps=$lt_postdeps_GCJ
17899
17900 # The library search path used internally by the compiler when linking
17901 # a shared library.
17902 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17903
17904 # Method to check whether dependent libraries are shared objects.
17905 deplibs_check_method=$lt_deplibs_check_method
17906
17907 # Command to use when deplibs_check_method == file_magic.
17908 file_magic_cmd=$lt_file_magic_cmd
17909
17910 # Flag that allows shared libraries with undefined symbols to be built.
17911 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17912
17913 # Flag that forces no undefined symbols.
17914 no_undefined_flag=$lt_no_undefined_flag_GCJ
17915
17916 # Commands used to finish a libtool library installation in a directory.
17917 finish_cmds=$lt_finish_cmds
17918
17919 # Same as above, but a single script fragment to be evaled but not shown.
17920 finish_eval=$lt_finish_eval
17921
17922 # Take the output of nm and produce a listing of raw symbols and C names.
17923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17924
17925 # Transform the output of nm in a proper C declaration
17926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17927
17928 # Transform the output of nm in a C name address pair
17929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17930
17931 # This is the shared library runtime path variable.
17932 runpath_var=$runpath_var
17933
17934 # This is the shared library path variable.
17935 shlibpath_var=$shlibpath_var
17936
17937 # Is shlibpath searched before the hard-coded library search path?
17938 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17939
17940 # How to hardcode a shared library path into an executable.
17941 hardcode_action=$hardcode_action_GCJ
17942
17943 # Whether we should hardcode library paths into libraries.
17944 hardcode_into_libs=$hardcode_into_libs
17945
17946 # Flag to hardcode \$libdir into a binary during linking.
17947 # This must work even if \$libdir does not exist.
17948 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17949
17950 # If ld is used when linking, flag to hardcode \$libdir into
17951 # a binary during linking. This must work even if \$libdir does
17952 # not exist.
17953 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17954
17955 # Whether we need a single -rpath flag with a separated argument.
17956 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17957
17958 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17959 # resulting binary.
17960 hardcode_direct=$hardcode_direct_GCJ
17961
17962 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17963 # resulting binary.
17964 hardcode_minus_L=$hardcode_minus_L_GCJ
17965
17966 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17967 # the resulting binary.
17968 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17969
17970 # Set to yes if building a shared library automatically hardcodes DIR into the library
17971 # and all subsequent libraries and executables linked against it.
17972 hardcode_automatic=$hardcode_automatic_GCJ
17973
17974 # Variables whose values should be saved in libtool wrapper scripts and
17975 # restored at relink time.
17976 variables_saved_for_relink="$variables_saved_for_relink"
17977
17978 # Whether libtool must link a program against all its dependency libraries.
17979 link_all_deplibs=$link_all_deplibs_GCJ
17980
17981 # Compile-time system search path for libraries
17982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17983
17984 # Run-time system search path for libraries
17985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17986
17987 # Fix the shell variable \$srcfile for the compiler.
17988 fix_srcfile_path="$fix_srcfile_path_GCJ"
17989
17990 # Set to yes if exported symbols are required.
17991 always_export_symbols=$always_export_symbols_GCJ
17992
17993 # The commands to list exported symbols.
17994 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17995
17996 # The commands to extract the exported symbol list from a shared archive.
17997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17998
17999 # Symbols that should not be listed in the preloaded symbols.
18000 exclude_expsyms=$lt_exclude_expsyms_GCJ
18001
18002 # Symbols that must always be exported.
18003 include_expsyms=$lt_include_expsyms_GCJ
18004
18005 # ### END LIBTOOL TAG CONFIG: $tagname
18006
18007 __EOF__
18008
18009
18010 else
18011   # If there is no Makefile yet, we rely on a make rule to execute
18012   # `config.status --recheck' to rerun these tests and create the
18013   # libtool script then.
18014   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18015   if test -f "$ltmain_in"; then
18016     test -f Makefile && make "$ltmain"
18017   fi
18018 fi
18019
18020
18021 ac_ext=c
18022 ac_cpp='$CPP $CPPFLAGS'
18023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18026
18027 CC="$lt_save_CC"
18028
18029         else
18030           tagname=""
18031         fi
18032         ;;
18033
18034       RC)
18035
18036
18037
18038 # Source file extension for RC test sources.
18039 ac_ext=rc
18040
18041 # Object file extension for compiled RC test sources.
18042 objext=o
18043 objext_RC=$objext
18044
18045 # Code to be used in simple compile tests
18046 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18047
18048 # Code to be used in simple link tests
18049 lt_simple_link_test_code="$lt_simple_compile_test_code"
18050
18051 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18052
18053 # If no C compiler was specified, use CC.
18054 LTCC=${LTCC-"$CC"}
18055
18056 # Allow CC to be a program name with arguments.
18057 compiler=$CC
18058
18059
18060 # Allow CC to be a program name with arguments.
18061 lt_save_CC="$CC"
18062 CC=${RC-"windres"}
18063 compiler=$CC
18064 compiler_RC=$CC
18065 lt_cv_prog_compiler_c_o_RC=yes
18066
18067 # The else clause should only fire when bootstrapping the
18068 # libtool distribution, otherwise you forgot to ship ltmain.sh
18069 # with your package, and you will get complaints that there are
18070 # no rules to generate ltmain.sh.
18071 if test -f "$ltmain"; then
18072   # See if we are running on zsh, and set the options which allow our commands through
18073   # without removal of \ escapes.
18074   if test -n "${ZSH_VERSION+set}" ; then
18075     setopt NO_GLOB_SUBST
18076   fi
18077   # Now quote all the things that may contain metacharacters while being
18078   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18079   # variables and quote the copies for generation of the libtool script.
18080   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18081     SED SHELL STRIP \
18082     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18083     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18084     deplibs_check_method reload_flag reload_cmds need_locks \
18085     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18086     lt_cv_sys_global_symbol_to_c_name_address \
18087     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18088     old_postinstall_cmds old_postuninstall_cmds \
18089     compiler_RC \
18090     CC_RC \
18091     LD_RC \
18092     lt_prog_compiler_wl_RC \
18093     lt_prog_compiler_pic_RC \
18094     lt_prog_compiler_static_RC \
18095     lt_prog_compiler_no_builtin_flag_RC \
18096     export_dynamic_flag_spec_RC \
18097     thread_safe_flag_spec_RC \
18098     whole_archive_flag_spec_RC \
18099     enable_shared_with_static_runtimes_RC \
18100     old_archive_cmds_RC \
18101     old_archive_from_new_cmds_RC \
18102     predep_objects_RC \
18103     postdep_objects_RC \
18104     predeps_RC \
18105     postdeps_RC \
18106     compiler_lib_search_path_RC \
18107     archive_cmds_RC \
18108     archive_expsym_cmds_RC \
18109     postinstall_cmds_RC \
18110     postuninstall_cmds_RC \
18111     old_archive_from_expsyms_cmds_RC \
18112     allow_undefined_flag_RC \
18113     no_undefined_flag_RC \
18114     export_symbols_cmds_RC \
18115     hardcode_libdir_flag_spec_RC \
18116     hardcode_libdir_flag_spec_ld_RC \
18117     hardcode_libdir_separator_RC \
18118     hardcode_automatic_RC \
18119     module_cmds_RC \
18120     module_expsym_cmds_RC \
18121     lt_cv_prog_compiler_c_o_RC \
18122     exclude_expsyms_RC \
18123     include_expsyms_RC; do
18124
18125     case $var in
18126     old_archive_cmds_RC | \
18127     old_archive_from_new_cmds_RC | \
18128     archive_cmds_RC | \
18129     archive_expsym_cmds_RC | \
18130     module_cmds_RC | \
18131     module_expsym_cmds_RC | \
18132     old_archive_from_expsyms_cmds_RC | \
18133     export_symbols_cmds_RC | \
18134     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18135     postinstall_cmds | postuninstall_cmds | \
18136     old_postinstall_cmds | old_postuninstall_cmds | \
18137     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18138       # Double-quote double-evaled strings.
18139       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18140       ;;
18141     *)
18142       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18143       ;;
18144     esac
18145   done
18146
18147   case $lt_echo in
18148   *'\$0 --fallback-echo"')
18149     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18150     ;;
18151   esac
18152
18153 cfgfile="$ofile"
18154
18155   cat <<__EOF__ >> "$cfgfile"
18156 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18157
18158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18159
18160 # Shell to use when invoking shell scripts.
18161 SHELL=$lt_SHELL
18162
18163 # Whether or not to build shared libraries.
18164 build_libtool_libs=$enable_shared
18165
18166 # Whether or not to build static libraries.
18167 build_old_libs=$enable_static
18168
18169 # Whether or not to add -lc for building shared libraries.
18170 build_libtool_need_lc=$archive_cmds_need_lc_RC
18171
18172 # Whether or not to disallow shared libs when runtime libs are static
18173 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18174
18175 # Whether or not to optimize for fast installation.
18176 fast_install=$enable_fast_install
18177
18178 # The host system.
18179 host_alias=$host_alias
18180 host=$host
18181
18182 # An echo program that does not interpret backslashes.
18183 echo=$lt_echo
18184
18185 # The archiver.
18186 AR=$lt_AR
18187 AR_FLAGS=$lt_AR_FLAGS
18188
18189 # A C compiler.
18190 LTCC=$lt_LTCC
18191
18192 # A language-specific compiler.
18193 CC=$lt_compiler_RC
18194
18195 # Is the compiler the GNU C compiler?
18196 with_gcc=$GCC_RC
18197
18198 # An ERE matcher.
18199 EGREP=$lt_EGREP
18200
18201 # The linker used to build libraries.
18202 LD=$lt_LD_RC
18203
18204 # Whether we need hard or soft links.
18205 LN_S=$lt_LN_S
18206
18207 # A BSD-compatible nm program.
18208 NM=$lt_NM
18209
18210 # A symbol stripping program
18211 STRIP=$lt_STRIP
18212
18213 # Used to examine libraries when file_magic_cmd begins "file"
18214 MAGIC_CMD=$MAGIC_CMD
18215
18216 # Used on cygwin: DLL creation program.
18217 DLLTOOL="$DLLTOOL"
18218
18219 # Used on cygwin: object dumper.
18220 OBJDUMP="$OBJDUMP"
18221
18222 # Used on cygwin: assembler.
18223 AS="$AS"
18224
18225 # The name of the directory that contains temporary libtool files.
18226 objdir=$objdir
18227
18228 # How to create reloadable object files.
18229 reload_flag=$lt_reload_flag
18230 reload_cmds=$lt_reload_cmds
18231
18232 # How to pass a linker flag through the compiler.
18233 wl=$lt_lt_prog_compiler_wl_RC
18234
18235 # Object file suffix (normally "o").
18236 objext="$ac_objext"
18237
18238 # Old archive suffix (normally "a").
18239 libext="$libext"
18240
18241 # Shared library suffix (normally ".so").
18242 shrext_cmds='$shrext_cmds'
18243
18244 # Executable file suffix (normally "").
18245 exeext="$exeext"
18246
18247 # Additional compiler flags for building library objects.
18248 pic_flag=$lt_lt_prog_compiler_pic_RC
18249 pic_mode=$pic_mode
18250
18251 # What is the maximum length of a command?
18252 max_cmd_len=$lt_cv_sys_max_cmd_len
18253
18254 # Does compiler simultaneously support -c and -o options?
18255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18256
18257 # Must we lock files when doing compilation ?
18258 need_locks=$lt_need_locks
18259
18260 # Do we need the lib prefix for modules?
18261 need_lib_prefix=$need_lib_prefix
18262
18263 # Do we need a version for libraries?
18264 need_version=$need_version
18265
18266 # Whether dlopen is supported.
18267 dlopen_support=$enable_dlopen
18268
18269 # Whether dlopen of programs is supported.
18270 dlopen_self=$enable_dlopen_self
18271
18272 # Whether dlopen of statically linked programs is supported.
18273 dlopen_self_static=$enable_dlopen_self_static
18274
18275 # Compiler flag to prevent dynamic linking.
18276 link_static_flag=$lt_lt_prog_compiler_static_RC
18277
18278 # Compiler flag to turn off builtin functions.
18279 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18280
18281 # Compiler flag to allow reflexive dlopens.
18282 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18283
18284 # Compiler flag to generate shared objects directly from archives.
18285 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18286
18287 # Compiler flag to generate thread-safe objects.
18288 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18289
18290 # Library versioning type.
18291 version_type=$version_type
18292
18293 # Format of library name prefix.
18294 libname_spec=$lt_libname_spec
18295
18296 # List of archive names.  First name is the real one, the rest are links.
18297 # The last name is the one that the linker finds with -lNAME.
18298 library_names_spec=$lt_library_names_spec
18299
18300 # The coded name of the library, if different from the real name.
18301 soname_spec=$lt_soname_spec
18302
18303 # Commands used to build and install an old-style archive.
18304 RANLIB=$lt_RANLIB
18305 old_archive_cmds=$lt_old_archive_cmds_RC
18306 old_postinstall_cmds=$lt_old_postinstall_cmds
18307 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18308
18309 # Create an old-style archive from a shared archive.
18310 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18311
18312 # Create a temporary old-style archive to link instead of a shared archive.
18313 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18314
18315 # Commands used to build and install a shared archive.
18316 archive_cmds=$lt_archive_cmds_RC
18317 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18318 postinstall_cmds=$lt_postinstall_cmds
18319 postuninstall_cmds=$lt_postuninstall_cmds
18320
18321 # Commands used to build a loadable module (assumed same as above if empty)
18322 module_cmds=$lt_module_cmds_RC
18323 module_expsym_cmds=$lt_module_expsym_cmds_RC
18324
18325 # Commands to strip libraries.
18326 old_striplib=$lt_old_striplib
18327 striplib=$lt_striplib
18328
18329 # Dependencies to place before the objects being linked to create a
18330 # shared library.
18331 predep_objects=$lt_predep_objects_RC
18332
18333 # Dependencies to place after the objects being linked to create a
18334 # shared library.
18335 postdep_objects=$lt_postdep_objects_RC
18336
18337 # Dependencies to place before the objects being linked to create a
18338 # shared library.
18339 predeps=$lt_predeps_RC
18340
18341 # Dependencies to place after the objects being linked to create a
18342 # shared library.
18343 postdeps=$lt_postdeps_RC
18344
18345 # The library search path used internally by the compiler when linking
18346 # a shared library.
18347 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18348
18349 # Method to check whether dependent libraries are shared objects.
18350 deplibs_check_method=$lt_deplibs_check_method
18351
18352 # Command to use when deplibs_check_method == file_magic.
18353 file_magic_cmd=$lt_file_magic_cmd
18354
18355 # Flag that allows shared libraries with undefined symbols to be built.
18356 allow_undefined_flag=$lt_allow_undefined_flag_RC
18357
18358 # Flag that forces no undefined symbols.
18359 no_undefined_flag=$lt_no_undefined_flag_RC
18360
18361 # Commands used to finish a libtool library installation in a directory.
18362 finish_cmds=$lt_finish_cmds
18363
18364 # Same as above, but a single script fragment to be evaled but not shown.
18365 finish_eval=$lt_finish_eval
18366
18367 # Take the output of nm and produce a listing of raw symbols and C names.
18368 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18369
18370 # Transform the output of nm in a proper C declaration
18371 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18372
18373 # Transform the output of nm in a C name address pair
18374 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18375
18376 # This is the shared library runtime path variable.
18377 runpath_var=$runpath_var
18378
18379 # This is the shared library path variable.
18380 shlibpath_var=$shlibpath_var
18381
18382 # Is shlibpath searched before the hard-coded library search path?
18383 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18384
18385 # How to hardcode a shared library path into an executable.
18386 hardcode_action=$hardcode_action_RC
18387
18388 # Whether we should hardcode library paths into libraries.
18389 hardcode_into_libs=$hardcode_into_libs
18390
18391 # Flag to hardcode \$libdir into a binary during linking.
18392 # This must work even if \$libdir does not exist.
18393 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18394
18395 # If ld is used when linking, flag to hardcode \$libdir into
18396 # a binary during linking. This must work even if \$libdir does
18397 # not exist.
18398 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18399
18400 # Whether we need a single -rpath flag with a separated argument.
18401 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18402
18403 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18404 # resulting binary.
18405 hardcode_direct=$hardcode_direct_RC
18406
18407 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18408 # resulting binary.
18409 hardcode_minus_L=$hardcode_minus_L_RC
18410
18411 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18412 # the resulting binary.
18413 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18414
18415 # Set to yes if building a shared library automatically hardcodes DIR into the library
18416 # and all subsequent libraries and executables linked against it.
18417 hardcode_automatic=$hardcode_automatic_RC
18418
18419 # Variables whose values should be saved in libtool wrapper scripts and
18420 # restored at relink time.
18421 variables_saved_for_relink="$variables_saved_for_relink"
18422
18423 # Whether libtool must link a program against all its dependency libraries.
18424 link_all_deplibs=$link_all_deplibs_RC
18425
18426 # Compile-time system search path for libraries
18427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18428
18429 # Run-time system search path for libraries
18430 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18431
18432 # Fix the shell variable \$srcfile for the compiler.
18433 fix_srcfile_path="$fix_srcfile_path_RC"
18434
18435 # Set to yes if exported symbols are required.
18436 always_export_symbols=$always_export_symbols_RC
18437
18438 # The commands to list exported symbols.
18439 export_symbols_cmds=$lt_export_symbols_cmds_RC
18440
18441 # The commands to extract the exported symbol list from a shared archive.
18442 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18443
18444 # Symbols that should not be listed in the preloaded symbols.
18445 exclude_expsyms=$lt_exclude_expsyms_RC
18446
18447 # Symbols that must always be exported.
18448 include_expsyms=$lt_include_expsyms_RC
18449
18450 # ### END LIBTOOL TAG CONFIG: $tagname
18451
18452 __EOF__
18453
18454
18455 else
18456   # If there is no Makefile yet, we rely on a make rule to execute
18457   # `config.status --recheck' to rerun these tests and create the
18458   # libtool script then.
18459   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18460   if test -f "$ltmain_in"; then
18461     test -f Makefile && make "$ltmain"
18462   fi
18463 fi
18464
18465
18466 ac_ext=c
18467 ac_cpp='$CPP $CPPFLAGS'
18468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18471
18472 CC="$lt_save_CC"
18473
18474         ;;
18475
18476       *)
18477         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18478 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18479    { (exit 1); exit 1; }; }
18480         ;;
18481       esac
18482
18483       # Append the new tag name to the list of available tags.
18484       if test -n "$tagname" ; then
18485       available_tags="$available_tags $tagname"
18486     fi
18487     fi
18488   done
18489   IFS="$lt_save_ifs"
18490
18491   # Now substitute the updated list of available tags.
18492   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18493     mv "${ofile}T" "$ofile"
18494     chmod +x "$ofile"
18495   else
18496     rm -f "${ofile}T"
18497     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18498 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18499    { (exit 1); exit 1; }; }
18500   fi
18501 fi
18502
18503
18504
18505 # This can be used to rebuild libtool when needed
18506 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18507
18508 # Always use our own libtool.
18509 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18510
18511 # Prevent multiple expansion
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532 am__api_version="1.8"
18533 # Find a good install program.  We prefer a C program (faster),
18534 # so one script is as good as another.  But avoid the broken or
18535 # incompatible versions:
18536 # SysV /etc/install, /usr/sbin/install
18537 # SunOS /usr/etc/install
18538 # IRIX /sbin/install
18539 # AIX /bin/install
18540 # AmigaOS /C/install, which installs bootblocks on floppy discs
18541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18544 # OS/2's system install, which has a completely different semantic
18545 # ./install, which can be erroneously created by make from ./install.sh.
18546 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18547 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18548 if test -z "$INSTALL"; then
18549 if test "${ac_cv_path_install+set}" = set; then
18550   echo $ECHO_N "(cached) $ECHO_C" >&6
18551 else
18552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18553 for as_dir in $PATH
18554 do
18555   IFS=$as_save_IFS
18556   test -z "$as_dir" && as_dir=.
18557   # Account for people who put trailing slashes in PATH elements.
18558 case $as_dir/ in
18559   ./ | .// | /cC/* | \
18560   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18561   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18562   /usr/ucb/* ) ;;
18563   *)
18564     # OSF1 and SCO ODT 3.0 have their own names for install.
18565     # Don't use installbsd from OSF since it installs stuff as root
18566     # by default.
18567     for ac_prog in ginstall scoinst install; do
18568       for ac_exec_ext in '' $ac_executable_extensions; do
18569         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18570           if test $ac_prog = install &&
18571             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18572             # AIX install.  It has an incompatible calling convention.
18573             :
18574           elif test $ac_prog = install &&
18575             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18576             # program-specific install script used by HP pwplus--don't use.
18577             :
18578           else
18579             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18580             break 3
18581           fi
18582         fi
18583       done
18584     done
18585     ;;
18586 esac
18587 done
18588
18589
18590 fi
18591   if test "${ac_cv_path_install+set}" = set; then
18592     INSTALL=$ac_cv_path_install
18593   else
18594     # As a last resort, use the slow shell script.  We don't cache a
18595     # path for INSTALL within a source directory, because that will
18596     # break other packages using the cache if that directory is
18597     # removed, or if the path is relative.
18598     INSTALL=$ac_install_sh
18599   fi
18600 fi
18601 echo "$as_me:$LINENO: result: $INSTALL" >&5
18602 echo "${ECHO_T}$INSTALL" >&6
18603
18604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18605 # It thinks the first close brace ends the variable substitution.
18606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18607
18608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18609
18610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18611
18612 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18613 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
18614 # Just in case
18615 sleep 1
18616 echo timestamp > conftest.file
18617 # Do `set' in a subshell so we don't clobber the current shell's
18618 # arguments.  Must try -L first in case configure is actually a
18619 # symlink; some systems play weird games with the mod time of symlinks
18620 # (eg FreeBSD returns the mod time of the symlink's containing
18621 # directory).
18622 if (
18623    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18624    if test "$*" = "X"; then
18625       # -L didn't work.
18626       set X `ls -t $srcdir/configure conftest.file`
18627    fi
18628    rm -f conftest.file
18629    if test "$*" != "X $srcdir/configure conftest.file" \
18630       && test "$*" != "X conftest.file $srcdir/configure"; then
18631
18632       # If neither matched, then we have a broken ls.  This can happen
18633       # if, for instance, CONFIG_SHELL is bash and it inherits a
18634       # broken ls alias from the environment.  This has actually
18635       # happened.  Such a system could not be considered "sane".
18636       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
18637 alias in your environment" >&5
18638 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
18639 alias in your environment" >&2;}
18640    { (exit 1); exit 1; }; }
18641    fi
18642
18643    test "$2" = conftest.file
18644    )
18645 then
18646    # Ok.
18647    :
18648 else
18649    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18650 Check your system clock" >&5
18651 echo "$as_me: error: newly created file is older than distributed files!
18652 Check your system clock" >&2;}
18653    { (exit 1); exit 1; }; }
18654 fi
18655 echo "$as_me:$LINENO: result: yes" >&5
18656 echo "${ECHO_T}yes" >&6
18657 test "$program_prefix" != NONE &&
18658   program_transform_name="s,^,$program_prefix,;$program_transform_name"
18659 # Use a double $ so make ignores it.
18660 test "$program_suffix" != NONE &&
18661   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
18662 # Double any \ or $.  echo might interpret backslashes.
18663 # By default was `s,x,x', remove it if useless.
18664 cat <<\_ACEOF >conftest.sed
18665 s/[\\$]/&&/g;s/;s,x,x,$//
18666 _ACEOF
18667 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18668 rm conftest.sed
18669
18670 # expand $ac_aux_dir to an absolute path
18671 am_aux_dir=`cd $ac_aux_dir && pwd`
18672
18673 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18674 # Use eval to expand $SHELL
18675 if eval "$MISSING --run true"; then
18676   am_missing_run="$MISSING --run "
18677 else
18678   am_missing_run=
18679   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18680 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18681 fi
18682
18683 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
18684   # Keeping the `.' argument allows $(mkdir_p) to be used without
18685   # argument.  Indeed, we sometimes output rules like
18686   #   $(mkdir_p) $(somedir)
18687   # where $(somedir) is conditionally defined.
18688   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
18689   # expensive solution, as it forces Make to start a sub-shell.)
18690   mkdir_p='mkdir -p -- .'
18691 else
18692   # On NextStep and OpenStep, the `mkdir' command does not
18693   # recognize any option.  It will interpret all options as
18694   # directories to create, and then abort because `.' already
18695   # exists.
18696   for d in ./-p ./--version;
18697   do
18698     test -d $d && rmdir $d
18699   done
18700   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
18701   if test -f "$ac_aux_dir/mkinstalldirs"; then
18702     mkdir_p='$(mkinstalldirs)'
18703   else
18704     mkdir_p='$(install_sh) -d'
18705   fi
18706 fi
18707
18708 for ac_prog in gawk mawk nawk awk
18709 do
18710   # Extract the first word of "$ac_prog", so it can be a program name with args.
18711 set dummy $ac_prog; ac_word=$2
18712 echo "$as_me:$LINENO: checking for $ac_word" >&5
18713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18714 if test "${ac_cv_prog_AWK+set}" = set; then
18715   echo $ECHO_N "(cached) $ECHO_C" >&6
18716 else
18717   if test -n "$AWK"; then
18718   ac_cv_prog_AWK="$AWK" # Let the user override the test.
18719 else
18720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18721 for as_dir in $PATH
18722 do
18723   IFS=$as_save_IFS
18724   test -z "$as_dir" && as_dir=.
18725   for ac_exec_ext in '' $ac_executable_extensions; do
18726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18727     ac_cv_prog_AWK="$ac_prog"
18728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18729     break 2
18730   fi
18731 done
18732 done
18733
18734 fi
18735 fi
18736 AWK=$ac_cv_prog_AWK
18737 if test -n "$AWK"; then
18738   echo "$as_me:$LINENO: result: $AWK" >&5
18739 echo "${ECHO_T}$AWK" >&6
18740 else
18741   echo "$as_me:$LINENO: result: no" >&5
18742 echo "${ECHO_T}no" >&6
18743 fi
18744
18745   test -n "$AWK" && break
18746 done
18747
18748 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18749 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
18750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
18751 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
18752   echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754   cat >conftest.make <<\_ACEOF
18755 all:
18756         @echo 'ac_maketemp="$(MAKE)"'
18757 _ACEOF
18758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18759 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
18760 if test -n "$ac_maketemp"; then
18761   eval ac_cv_prog_make_${ac_make}_set=yes
18762 else
18763   eval ac_cv_prog_make_${ac_make}_set=no
18764 fi
18765 rm -f conftest.make
18766 fi
18767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18768   echo "$as_me:$LINENO: result: yes" >&5
18769 echo "${ECHO_T}yes" >&6
18770   SET_MAKE=
18771 else
18772   echo "$as_me:$LINENO: result: no" >&5
18773 echo "${ECHO_T}no" >&6
18774   SET_MAKE="MAKE=${MAKE-make}"
18775 fi
18776
18777 rm -rf .tst 2>/dev/null
18778 mkdir .tst 2>/dev/null
18779 if test -d .tst; then
18780   am__leading_dot=.
18781 else
18782   am__leading_dot=_
18783 fi
18784 rmdir .tst 2>/dev/null
18785
18786 DEPDIR="${am__leading_dot}deps"
18787
18788           ac_config_commands="$ac_config_commands depfiles"
18789
18790
18791 am_make=${MAKE-make}
18792 cat > confinc << 'END'
18793 am__doit:
18794         @echo done
18795 .PHONY: am__doit
18796 END
18797 # If we don't find an include directive, just comment out the code.
18798 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
18799 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
18800 am__include="#"
18801 am__quote=
18802 _am_result=none
18803 # First try GNU make style include.
18804 echo "include confinc" > confmf
18805 # We grep out `Entering directory' and `Leaving directory'
18806 # messages which can occur if `w' ends up in MAKEFLAGS.
18807 # In particular we don't look at `^make:' because GNU make might
18808 # be invoked under some other name (usually "gmake"), in which
18809 # case it prints its new name instead of `make'.
18810 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
18811    am__include=include
18812    am__quote=
18813    _am_result=GNU
18814 fi
18815 # Now try BSD make style include.
18816 if test "$am__include" = "#"; then
18817    echo '.include "confinc"' > confmf
18818    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
18819       am__include=.include
18820       am__quote="\""
18821       _am_result=BSD
18822    fi
18823 fi
18824
18825
18826 echo "$as_me:$LINENO: result: $_am_result" >&5
18827 echo "${ECHO_T}$_am_result" >&6
18828 rm -f confinc confmf
18829
18830 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
18831 if test "${enable_dependency_tracking+set}" = set; then
18832   enableval="$enable_dependency_tracking"
18833
18834 fi;
18835 if test "x$enable_dependency_tracking" != xno; then
18836   am_depcomp="$ac_aux_dir/depcomp"
18837   AMDEPBACKSLASH='\'
18838 fi
18839
18840
18841 if test "x$enable_dependency_tracking" != xno; then
18842   AMDEP_TRUE=
18843   AMDEP_FALSE='#'
18844 else
18845   AMDEP_TRUE='#'
18846   AMDEP_FALSE=
18847 fi
18848
18849
18850
18851 # test to see if srcdir already configured
18852 if test "`cd $srcdir && pwd`" != "`pwd`" &&
18853    test -f $srcdir/config.status; then
18854   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
18855 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
18856    { (exit 1); exit 1; }; }
18857 fi
18858
18859 # test whether we have cygpath
18860 if test -z "$CYGPATH_W"; then
18861   if (cygpath --version) >/dev/null 2>/dev/null; then
18862     CYGPATH_W='cygpath -w'
18863   else
18864     CYGPATH_W=echo
18865   fi
18866 fi
18867
18868
18869 # Define the identity of the package.
18870  PACKAGE=OpenPAM
18871  VERSION=20050201
18872
18873
18874 cat >>confdefs.h <<_ACEOF
18875 #define PACKAGE "$PACKAGE"
18876 _ACEOF
18877
18878
18879 cat >>confdefs.h <<_ACEOF
18880 #define VERSION "$VERSION"
18881 _ACEOF
18882
18883 # Some tools Automake needs.
18884
18885 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
18886
18887
18888 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
18889
18890
18891 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
18892
18893
18894 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
18895
18896
18897 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
18898
18899
18900 AMTAR=${AMTAR-"${am_missing_run}tar"}
18901
18902 install_sh=${install_sh-"$am_aux_dir/install-sh"}
18903
18904 # Installed binaries are usually stripped using `strip' when the user
18905 # run `make install-strip'.  However `strip' might not be the right
18906 # tool to use in cross-compilation environments, therefore Automake
18907 # will honor the `STRIP' environment variable to overrule this program.
18908 if test "$cross_compiling" != no; then
18909   if test -n "$ac_tool_prefix"; then
18910   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18911 set dummy ${ac_tool_prefix}strip; ac_word=$2
18912 echo "$as_me:$LINENO: checking for $ac_word" >&5
18913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18914 if test "${ac_cv_prog_STRIP+set}" = set; then
18915   echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917   if test -n "$STRIP"; then
18918   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
18919 else
18920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18921 for as_dir in $PATH
18922 do
18923   IFS=$as_save_IFS
18924   test -z "$as_dir" && as_dir=.
18925   for ac_exec_ext in '' $ac_executable_extensions; do
18926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18927     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
18928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18929     break 2
18930   fi
18931 done
18932 done
18933
18934 fi
18935 fi
18936 STRIP=$ac_cv_prog_STRIP
18937 if test -n "$STRIP"; then
18938   echo "$as_me:$LINENO: result: $STRIP" >&5
18939 echo "${ECHO_T}$STRIP" >&6
18940 else
18941   echo "$as_me:$LINENO: result: no" >&5
18942 echo "${ECHO_T}no" >&6
18943 fi
18944
18945 fi
18946 if test -z "$ac_cv_prog_STRIP"; then
18947   ac_ct_STRIP=$STRIP
18948   # Extract the first word of "strip", so it can be a program name with args.
18949 set dummy strip; ac_word=$2
18950 echo "$as_me:$LINENO: checking for $ac_word" >&5
18951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18952 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955   if test -n "$ac_ct_STRIP"; then
18956   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
18957 else
18958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18959 for as_dir in $PATH
18960 do
18961   IFS=$as_save_IFS
18962   test -z "$as_dir" && as_dir=.
18963   for ac_exec_ext in '' $ac_executable_extensions; do
18964   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18965     ac_cv_prog_ac_ct_STRIP="strip"
18966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18967     break 2
18968   fi
18969 done
18970 done
18971
18972   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
18973 fi
18974 fi
18975 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
18976 if test -n "$ac_ct_STRIP"; then
18977   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
18978 echo "${ECHO_T}$ac_ct_STRIP" >&6
18979 else
18980   echo "$as_me:$LINENO: result: no" >&5
18981 echo "${ECHO_T}no" >&6
18982 fi
18983
18984   STRIP=$ac_ct_STRIP
18985 else
18986   STRIP="$ac_cv_prog_STRIP"
18987 fi
18988
18989 fi
18990 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
18991
18992 # We need awk for the "check" target.  The system "awk" is bad on
18993 # some platforms.
18994
18995
18996 depcc="$CC"   am_compiler_list=
18997
18998 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
18999 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19000 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19001   echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19004   # We make a subdir and do the tests there.  Otherwise we can end up
19005   # making bogus files that we don't know about and never remove.  For
19006   # instance it was reported that on HP-UX the gcc test will end up
19007   # making a dummy file named `D' -- because `-MD' means `put the output
19008   # in D'.
19009   mkdir conftest.dir
19010   # Copy depcomp to subdir because otherwise we won't find it if we're
19011   # using a relative directory.
19012   cp "$am_depcomp" conftest.dir
19013   cd conftest.dir
19014   # We will build objects and dependencies in a subdirectory because
19015   # it helps to detect inapplicable dependency modes.  For instance
19016   # both Tru64's cc and ICC support -MD to output dependencies as a
19017   # side effect of compilation, but ICC will put the dependencies in
19018   # the current directory while Tru64 will put them in the object
19019   # directory.
19020   mkdir sub
19021
19022   am_cv_CC_dependencies_compiler_type=none
19023   if test "$am_compiler_list" = ""; then
19024      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19025   fi
19026   for depmode in $am_compiler_list; do
19027     # Setup a source with many dependencies, because some compilers
19028     # like to wrap large dependency lists on column 80 (with \), and
19029     # we should not choose a depcomp mode which is confused by this.
19030     #
19031     # We need to recreate these files for each test, as the compiler may
19032     # overwrite some of them when testing with obscure command lines.
19033     # This happens at least with the AIX C compiler.
19034     : > sub/conftest.c
19035     for i in 1 2 3 4 5 6; do
19036       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19037       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19038       # Solaris 8's {/usr,}/bin/sh.
19039       touch sub/conftst$i.h
19040     done
19041     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19042
19043     case $depmode in
19044     nosideeffect)
19045       # after this tag, mechanisms are not by side-effect, so they'll
19046       # only be used when explicitly requested
19047       if test "x$enable_dependency_tracking" = xyes; then
19048         continue
19049       else
19050         break
19051       fi
19052       ;;
19053     none) break ;;
19054     esac
19055     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19056     # mode.  It turns out that the SunPro C++ compiler does not properly
19057     # handle `-M -o', and we need to detect this.
19058     if depmode=$depmode \
19059        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19060        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19061        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19062          >/dev/null 2>conftest.err &&
19063        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19064        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19065        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19066       # icc doesn't choke on unknown options, it will just issue warnings
19067       # or remarks (even with -Werror).  So we grep stderr for any message
19068       # that says an option was ignored or not supported.
19069       # When given -MP, icc 7.0 and 7.1 complain thusly:
19070       #   icc: Command line warning: ignoring option '-M'; no argument required
19071       # The diagnosis changed in icc 8.0:
19072       #   icc: Command line remark: option '-MP' not supported
19073       if (grep 'ignoring option' conftest.err ||
19074           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19075         am_cv_CC_dependencies_compiler_type=$depmode
19076         break
19077       fi
19078     fi
19079   done
19080
19081   cd ..
19082   rm -rf conftest.dir
19083 else
19084   am_cv_CC_dependencies_compiler_type=none
19085 fi
19086
19087 fi
19088 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19089 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19090 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19091
19092
19093
19094 if
19095   test "x$enable_dependency_tracking" != xno \
19096   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19097   am__fastdepCC_TRUE=
19098   am__fastdepCC_FALSE='#'
19099 else
19100   am__fastdepCC_TRUE='#'
19101   am__fastdepCC_FALSE=
19102 fi
19103
19104
19105 depcc="$CXX"  am_compiler_list=
19106
19107 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19108 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19109 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19110   echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19113   # We make a subdir and do the tests there.  Otherwise we can end up
19114   # making bogus files that we don't know about and never remove.  For
19115   # instance it was reported that on HP-UX the gcc test will end up
19116   # making a dummy file named `D' -- because `-MD' means `put the output
19117   # in D'.
19118   mkdir conftest.dir
19119   # Copy depcomp to subdir because otherwise we won't find it if we're
19120   # using a relative directory.
19121   cp "$am_depcomp" conftest.dir
19122   cd conftest.dir
19123   # We will build objects and dependencies in a subdirectory because
19124   # it helps to detect inapplicable dependency modes.  For instance
19125   # both Tru64's cc and ICC support -MD to output dependencies as a
19126   # side effect of compilation, but ICC will put the dependencies in
19127   # the current directory while Tru64 will put them in the object
19128   # directory.
19129   mkdir sub
19130
19131   am_cv_CXX_dependencies_compiler_type=none
19132   if test "$am_compiler_list" = ""; then
19133      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19134   fi
19135   for depmode in $am_compiler_list; do
19136     # Setup a source with many dependencies, because some compilers
19137     # like to wrap large dependency lists on column 80 (with \), and
19138     # we should not choose a depcomp mode which is confused by this.
19139     #
19140     # We need to recreate these files for each test, as the compiler may
19141     # overwrite some of them when testing with obscure command lines.
19142     # This happens at least with the AIX C compiler.
19143     : > sub/conftest.c
19144     for i in 1 2 3 4 5 6; do
19145       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19146       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19147       # Solaris 8's {/usr,}/bin/sh.
19148       touch sub/conftst$i.h
19149     done
19150     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19151
19152     case $depmode in
19153     nosideeffect)
19154       # after this tag, mechanisms are not by side-effect, so they'll
19155       # only be used when explicitly requested
19156       if test "x$enable_dependency_tracking" = xyes; then
19157         continue
19158       else
19159         break
19160       fi
19161       ;;
19162     none) break ;;
19163     esac
19164     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19165     # mode.  It turns out that the SunPro C++ compiler does not properly
19166     # handle `-M -o', and we need to detect this.
19167     if depmode=$depmode \
19168        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19169        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19170        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19171          >/dev/null 2>conftest.err &&
19172        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19173        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19174        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19175       # icc doesn't choke on unknown options, it will just issue warnings
19176       # or remarks (even with -Werror).  So we grep stderr for any message
19177       # that says an option was ignored or not supported.
19178       # When given -MP, icc 7.0 and 7.1 complain thusly:
19179       #   icc: Command line warning: ignoring option '-M'; no argument required
19180       # The diagnosis changed in icc 8.0:
19181       #   icc: Command line remark: option '-MP' not supported
19182       if (grep 'ignoring option' conftest.err ||
19183           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19184         am_cv_CXX_dependencies_compiler_type=$depmode
19185         break
19186       fi
19187     fi
19188   done
19189
19190   cd ..
19191   rm -rf conftest.dir
19192 else
19193   am_cv_CXX_dependencies_compiler_type=none
19194 fi
19195
19196 fi
19197 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19198 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19199 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19200
19201
19202
19203 if
19204   test "x$enable_dependency_tracking" != xno \
19205   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19206   am__fastdepCXX_TRUE=
19207   am__fastdepCXX_FALSE='#'
19208 else
19209   am__fastdepCXX_TRUE='#'
19210   am__fastdepCXX_FALSE=
19211 fi
19212
19213
19214
19215
19216 LIB_MAJ=2
19217
19218
19219 cat >>confdefs.h <<_ACEOF
19220 #define LIB_MAJ $LIB_MAJ
19221 _ACEOF
19222
19223
19224 echo "$as_me:$LINENO: checking whether loading unversioned modules support is enabled" >&5
19225 echo $ECHO_N "checking whether loading unversioned modules support is enabled... $ECHO_C" >&6
19226 # Check whether --enable-unversioned-modules or --disable-unversioned-modules was given.
19227 if test "${enable_unversioned_modules+set}" = set; then
19228   enableval="$enable_unversioned_modules"
19229   if test "$enableval" = "no"; then
19230
19231 cat >>confdefs.h <<\_ACEOF
19232 #define DISABLE_UNVERSIONED_MODULES 1
19233 _ACEOF
19234
19235         fi
19236         echo "$as_me:$LINENO: result: no" >&5
19237 echo "${ECHO_T}no" >&6
19238 else
19239   echo "$as_me:$LINENO: result: yes" >&5
19240 echo "${ECHO_T}yes" >&6
19241 fi;
19242
19243 echo "$as_me:$LINENO: checking for modules directory support" >&5
19244 echo $ECHO_N "checking for modules directory support... $ECHO_C" >&6
19245
19246 # Check whether --with-modules-dir or --without-modules-dir was given.
19247 if test "${with_modules_dir+set}" = set; then
19248   withval="$with_modules_dir"
19249   if test "$withval" != "no"; then
19250                 OPENPAM_MODULES_DIR="$withval"
19251
19252 cat >>confdefs.h <<_ACEOF
19253 #define OPENPAM_MODULES_DIR "$OPENPAM_MODULES_DIR"
19254 _ACEOF
19255
19256                 echo "$as_me:$LINENO: result: $OPENPAM_MODULES_DIR" >&5
19257 echo "${ECHO_T}$OPENPAM_MODULES_DIR" >&6
19258         else
19259                 OPENPAM_MODULES_DIR="$libdir"
19260                 echo "$as_me:$LINENO: result: no" >&5
19261 echo "${ECHO_T}no" >&6
19262         fi
19263 else
19264   OPENPAM_MODULES_DIR="$libdir"
19265         echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6
19267 fi;
19268
19269
19270 echo "$as_me:$LINENO: checking whether to build example version of /bin/su" >&5
19271 echo $ECHO_N "checking whether to build example version of /bin/su... $ECHO_C" >&6
19272
19273 # Check whether --with-pam-su or --without-pam-su was given.
19274 if test "${with_pam_su+set}" = set; then
19275   withval="$with_pam_su"
19276
19277 else
19278   with_pam_su=no
19279 fi;
19280 echo "$as_me:$LINENO: result: $with_pam_su" >&5
19281 echo "${ECHO_T}$with_pam_su" >&6
19282
19283 echo "$as_me:$LINENO: checking whether to build example version of pam_unix.so" >&5
19284 echo $ECHO_N "checking whether to build example version of pam_unix.so... $ECHO_C" >&6
19285
19286 # Check whether --with-pam-unix or --without-pam-unix was given.
19287 if test "${with_pam_unix+set}" = set; then
19288   withval="$with_pam_unix"
19289
19290 else
19291   with_pam_unix=no
19292 fi;
19293 echo "$as_me:$LINENO: result: $with_pam_unix" >&5
19294 echo "${ECHO_T}$with_pam_unix" >&6
19295
19296
19297
19298 if test "x$with_pam_su" = "xyes"; then
19299   WITH_PAM_SU_TRUE=
19300   WITH_PAM_SU_FALSE='#'
19301 else
19302   WITH_PAM_SU_TRUE='#'
19303   WITH_PAM_SU_FALSE=
19304 fi
19305
19306
19307
19308 if test "x$with_pam_unix" = "xyes"; then
19309   WITH_PAM_UNIX_TRUE=
19310   WITH_PAM_UNIX_FALSE='#'
19311 else
19312   WITH_PAM_UNIX_TRUE='#'
19313   WITH_PAM_UNIX_FALSE=
19314 fi
19315
19316
19317 # Find a good install program.  We prefer a C program (faster),
19318 # so one script is as good as another.  But avoid the broken or
19319 # incompatible versions:
19320 # SysV /etc/install, /usr/sbin/install
19321 # SunOS /usr/etc/install
19322 # IRIX /sbin/install
19323 # AIX /bin/install
19324 # AmigaOS /C/install, which installs bootblocks on floppy discs
19325 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19326 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19327 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19328 # OS/2's system install, which has a completely different semantic
19329 # ./install, which can be erroneously created by make from ./install.sh.
19330 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19331 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19332 if test -z "$INSTALL"; then
19333 if test "${ac_cv_path_install+set}" = set; then
19334   echo $ECHO_N "(cached) $ECHO_C" >&6
19335 else
19336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19337 for as_dir in $PATH
19338 do
19339   IFS=$as_save_IFS
19340   test -z "$as_dir" && as_dir=.
19341   # Account for people who put trailing slashes in PATH elements.
19342 case $as_dir/ in
19343   ./ | .// | /cC/* | \
19344   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19345   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19346   /usr/ucb/* ) ;;
19347   *)
19348     # OSF1 and SCO ODT 3.0 have their own names for install.
19349     # Don't use installbsd from OSF since it installs stuff as root
19350     # by default.
19351     for ac_prog in ginstall scoinst install; do
19352       for ac_exec_ext in '' $ac_executable_extensions; do
19353         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19354           if test $ac_prog = install &&
19355             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19356             # AIX install.  It has an incompatible calling convention.
19357             :
19358           elif test $ac_prog = install &&
19359             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19360             # program-specific install script used by HP pwplus--don't use.
19361             :
19362           else
19363             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19364             break 3
19365           fi
19366         fi
19367       done
19368     done
19369     ;;
19370 esac
19371 done
19372
19373
19374 fi
19375   if test "${ac_cv_path_install+set}" = set; then
19376     INSTALL=$ac_cv_path_install
19377   else
19378     # As a last resort, use the slow shell script.  We don't cache a
19379     # path for INSTALL within a source directory, because that will
19380     # break other packages using the cache if that directory is
19381     # removed, or if the path is relative.
19382     INSTALL=$ac_install_sh
19383   fi
19384 fi
19385 echo "$as_me:$LINENO: result: $INSTALL" >&5
19386 echo "${ECHO_T}$INSTALL" >&6
19387
19388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19389 # It thinks the first close brace ends the variable substitution.
19390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19391
19392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19393
19394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19395
19396
19397
19398 for ac_header in crypt.h
19399 do
19400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19402   echo "$as_me:$LINENO: checking for $ac_header" >&5
19403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19405   echo $ECHO_N "(cached) $ECHO_C" >&6
19406 fi
19407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19409 else
19410   # Is the header compilable?
19411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19413 cat >conftest.$ac_ext <<_ACEOF
19414 /* confdefs.h.  */
19415 _ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h.  */
19419 $ac_includes_default
19420 #include <$ac_header>
19421 _ACEOF
19422 rm -f conftest.$ac_objext
19423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19424   (eval $ac_compile) 2>conftest.er1
19425   ac_status=$?
19426   grep -v '^ *+' conftest.er1 >conftest.err
19427   rm -f conftest.er1
19428   cat conftest.err >&5
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); } &&
19431          { ac_try='test -z "$ac_c_werror_flag"
19432                          || test ! -s conftest.err'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; } &&
19438          { ac_try='test -s conftest.$ac_objext'
19439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440   (eval $ac_try) 2>&5
19441   ac_status=$?
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); }; }; then
19444   ac_header_compiler=yes
19445 else
19446   echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19448
19449 ac_header_compiler=no
19450 fi
19451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19453 echo "${ECHO_T}$ac_header_compiler" >&6
19454
19455 # Is the header present?
19456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19458 cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h.  */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h.  */
19464 #include <$ac_header>
19465 _ACEOF
19466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19467   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19468   ac_status=$?
19469   grep -v '^ *+' conftest.er1 >conftest.err
19470   rm -f conftest.er1
19471   cat conftest.err >&5
19472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); } >/dev/null; then
19474   if test -s conftest.err; then
19475     ac_cpp_err=$ac_c_preproc_warn_flag
19476     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19477   else
19478     ac_cpp_err=
19479   fi
19480 else
19481   ac_cpp_err=yes
19482 fi
19483 if test -z "$ac_cpp_err"; then
19484   ac_header_preproc=yes
19485 else
19486   echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19488
19489   ac_header_preproc=no
19490 fi
19491 rm -f conftest.err conftest.$ac_ext
19492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19493 echo "${ECHO_T}$ac_header_preproc" >&6
19494
19495 # So?  What about this header?
19496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19497   yes:no: )
19498     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19502     ac_header_preproc=yes
19503     ;;
19504   no:yes:* )
19505     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19507     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19508 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19509     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19511     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19512 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19515     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19517     (
19518       cat <<\_ASBOX
19519 ## ------------------------------ ##
19520 ## Report this to des@freebsd.org ##
19521 ## ------------------------------ ##
19522 _ASBOX
19523     ) |
19524       sed "s/^/$as_me: WARNING:     /" >&2
19525     ;;
19526 esac
19527 echo "$as_me:$LINENO: checking for $ac_header" >&5
19528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19530   echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532   eval "$as_ac_Header=\$ac_header_preproc"
19533 fi
19534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19536
19537 fi
19538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19539   cat >>confdefs.h <<_ACEOF
19540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19541 _ACEOF
19542
19543 fi
19544
19545 done
19546
19547
19548
19549 for ac_func in fpurge
19550 do
19551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19552 echo "$as_me:$LINENO: checking for $ac_func" >&5
19553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19554 if eval "test \"\${$as_ac_var+set}\" = set"; then
19555   echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557   cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h.  */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h.  */
19563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19565 #define $ac_func innocuous_$ac_func
19566
19567 /* System header to define __stub macros and hopefully few prototypes,
19568     which can conflict with char $ac_func (); below.
19569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19570     <limits.h> exists even on freestanding compilers.  */
19571
19572 #ifdef __STDC__
19573 # include <limits.h>
19574 #else
19575 # include <assert.h>
19576 #endif
19577
19578 #undef $ac_func
19579
19580 /* Override any gcc2 internal prototype to avoid an error.  */
19581 #ifdef __cplusplus
19582 extern "C"
19583 {
19584 #endif
19585 /* We use char because int might match the return type of a gcc2
19586    builtin and then its argument prototype would still apply.  */
19587 char $ac_func ();
19588 /* The GNU C library defines this for functions which it implements
19589     to always fail with ENOSYS.  Some functions are actually named
19590     something starting with __ and the normal name is an alias.  */
19591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19592 choke me
19593 #else
19594 char (*f) () = $ac_func;
19595 #endif
19596 #ifdef __cplusplus
19597 }
19598 #endif
19599
19600 int
19601 main ()
19602 {
19603 return f != $ac_func;
19604   ;
19605   return 0;
19606 }
19607 _ACEOF
19608 rm -f conftest.$ac_objext conftest$ac_exeext
19609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19610   (eval $ac_link) 2>conftest.er1
19611   ac_status=$?
19612   grep -v '^ *+' conftest.er1 >conftest.err
19613   rm -f conftest.er1
19614   cat conftest.err >&5
19615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616   (exit $ac_status); } &&
19617          { ac_try='test -z "$ac_c_werror_flag"
19618                          || test ! -s conftest.err'
19619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620   (eval $ac_try) 2>&5
19621   ac_status=$?
19622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623   (exit $ac_status); }; } &&
19624          { ac_try='test -s conftest$ac_exeext'
19625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626   (eval $ac_try) 2>&5
19627   ac_status=$?
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); }; }; then
19630   eval "$as_ac_var=yes"
19631 else
19632   echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19634
19635 eval "$as_ac_var=no"
19636 fi
19637 rm -f conftest.err conftest.$ac_objext \
19638       conftest$ac_exeext conftest.$ac_ext
19639 fi
19640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19642 if test `eval echo '${'$as_ac_var'}'` = yes; then
19643   cat >>confdefs.h <<_ACEOF
19644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19645 _ACEOF
19646
19647 fi
19648 done
19649
19650
19651 DL_LIBS=
19652 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19653 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19655   echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657   ac_check_lib_save_LIBS=$LIBS
19658 LIBS="-ldl  $LIBS"
19659 cat >conftest.$ac_ext <<_ACEOF
19660 /* confdefs.h.  */
19661 _ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h.  */
19665
19666 /* Override any gcc2 internal prototype to avoid an error.  */
19667 #ifdef __cplusplus
19668 extern "C"
19669 #endif
19670 /* We use char because int might match the return type of a gcc2
19671    builtin and then its argument prototype would still apply.  */
19672 char dlopen ();
19673 int
19674 main ()
19675 {
19676 dlopen ();
19677   ;
19678   return 0;
19679 }
19680 _ACEOF
19681 rm -f conftest.$ac_objext conftest$ac_exeext
19682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19683   (eval $ac_link) 2>conftest.er1
19684   ac_status=$?
19685   grep -v '^ *+' conftest.er1 >conftest.err
19686   rm -f conftest.er1
19687   cat conftest.err >&5
19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689   (exit $ac_status); } &&
19690          { ac_try='test -z "$ac_c_werror_flag"
19691                          || test ! -s conftest.err'
19692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693   (eval $ac_try) 2>&5
19694   ac_status=$?
19695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696   (exit $ac_status); }; } &&
19697          { ac_try='test -s conftest$ac_exeext'
19698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699   (eval $ac_try) 2>&5
19700   ac_status=$?
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); }; }; then
19703   ac_cv_lib_dl_dlopen=yes
19704 else
19705   echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19707
19708 ac_cv_lib_dl_dlopen=no
19709 fi
19710 rm -f conftest.err conftest.$ac_objext \
19711       conftest$ac_exeext conftest.$ac_ext
19712 LIBS=$ac_check_lib_save_LIBS
19713 fi
19714 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19715 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19716 if test $ac_cv_lib_dl_dlopen = yes; then
19717   DL_LIBS=-ldl
19718 fi
19719
19720
19721
19722 CRYPT_LIBS=
19723 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19724 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
19725 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19726   echo $ECHO_N "(cached) $ECHO_C" >&6
19727 else
19728   ac_check_lib_save_LIBS=$LIBS
19729 LIBS="-lcrypt  $LIBS"
19730 cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h.  */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h.  */
19736
19737 /* Override any gcc2 internal prototype to avoid an error.  */
19738 #ifdef __cplusplus
19739 extern "C"
19740 #endif
19741 /* We use char because int might match the return type of a gcc2
19742    builtin and then its argument prototype would still apply.  */
19743 char crypt ();
19744 int
19745 main ()
19746 {
19747 crypt ();
19748   ;
19749   return 0;
19750 }
19751 _ACEOF
19752 rm -f conftest.$ac_objext conftest$ac_exeext
19753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19754   (eval $ac_link) 2>conftest.er1
19755   ac_status=$?
19756   grep -v '^ *+' conftest.er1 >conftest.err
19757   rm -f conftest.er1
19758   cat conftest.err >&5
19759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760   (exit $ac_status); } &&
19761          { ac_try='test -z "$ac_c_werror_flag"
19762                          || test ! -s conftest.err'
19763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764   (eval $ac_try) 2>&5
19765   ac_status=$?
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); }; } &&
19768          { ac_try='test -s conftest$ac_exeext'
19769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770   (eval $ac_try) 2>&5
19771   ac_status=$?
19772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773   (exit $ac_status); }; }; then
19774   ac_cv_lib_crypt_crypt=yes
19775 else
19776   echo "$as_me: failed program was:" >&5
19777 sed 's/^/| /' conftest.$ac_ext >&5
19778
19779 ac_cv_lib_crypt_crypt=no
19780 fi
19781 rm -f conftest.err conftest.$ac_objext \
19782       conftest$ac_exeext conftest.$ac_ext
19783 LIBS=$ac_check_lib_save_LIBS
19784 fi
19785 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19786 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
19787 if test $ac_cv_lib_crypt_crypt = yes; then
19788   CRYPT_LIBS=-lcrypt
19789 fi
19790
19791
19792
19793 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19794
19795
19796 CFLAGS="$CFLAGS -Werror"
19797
19798
19799                                                                                                                         ac_config_files="$ac_config_files bin/Makefile bin/su/Makefile include/Makefile include/security/Makefile lib/Makefile modules/Makefile modules/pam_unix/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile doc/Makefile doc/man/Makefile Makefile"
19800
19801 cat >confcache <<\_ACEOF
19802 # This file is a shell script that caches the results of configure
19803 # tests run on this system so they can be shared between configure
19804 # scripts and configure runs, see configure's option --config-cache.
19805 # It is not useful on other systems.  If it contains results you don't
19806 # want to keep, you may remove or edit it.
19807 #
19808 # config.status only pays attention to the cache file if you give it
19809 # the --recheck option to rerun configure.
19810 #
19811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19813 # following values.
19814
19815 _ACEOF
19816
19817 # The following way of writing the cache mishandles newlines in values,
19818 # but we know of no workaround that is simple, portable, and efficient.
19819 # So, don't put newlines in cache variables' values.
19820 # Ultrix sh set writes to stderr and can't be redirected directly,
19821 # and sets the high bit in the cache file unless we assign to the vars.
19822 {
19823   (set) 2>&1 |
19824     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19825     *ac_space=\ *)
19826       # `set' does not quote correctly, so add quotes (double-quote
19827       # substitution turns \\\\ into \\, and sed turns \\ into \).
19828       sed -n \
19829         "s/'/'\\\\''/g;
19830           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19831       ;;
19832     *)
19833       # `set' quotes correctly as required by POSIX, so do not add quotes.
19834       sed -n \
19835         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19836       ;;
19837     esac;
19838 } |
19839   sed '
19840      t clear
19841      : clear
19842      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19843      t end
19844      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19845      : end' >>confcache
19846 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19847   if test -w $cache_file; then
19848     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19849     cat confcache >$cache_file
19850   else
19851     echo "not updating unwritable cache $cache_file"
19852   fi
19853 fi
19854 rm -f confcache
19855
19856 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19857 # Let make expand exec_prefix.
19858 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19859
19860 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19861 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19862 # trailing colons and then remove the whole line if VPATH becomes empty
19863 # (actually we leave an empty line to preserve line numbers).
19864 if test "x$srcdir" = x.; then
19865   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19866 s/:*\$(srcdir):*/:/;
19867 s/:*\${srcdir}:*/:/;
19868 s/:*@srcdir@:*/:/;
19869 s/^\([^=]*=[     ]*\):*/\1/;
19870 s/:*$//;
19871 s/^[^=]*=[       ]*$//;
19872 }'
19873 fi
19874
19875 DEFS=-DHAVE_CONFIG_H
19876
19877 ac_libobjs=
19878 ac_ltlibobjs=
19879 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19880   # 1. Remove the extension, and $U if already installed.
19881   ac_i=`echo "$ac_i" |
19882          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19883   # 2. Add them.
19884   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19885   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19886 done
19887 LIBOBJS=$ac_libobjs
19888
19889 LTLIBOBJS=$ac_ltlibobjs
19890
19891
19892 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19893   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19894 Usually this means the macro was only invoked conditionally." >&5
19895 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19896 Usually this means the macro was only invoked conditionally." >&2;}
19897    { (exit 1); exit 1; }; }
19898 fi
19899 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19900   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19901 Usually this means the macro was only invoked conditionally." >&5
19902 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19903 Usually this means the macro was only invoked conditionally." >&2;}
19904    { (exit 1); exit 1; }; }
19905 fi
19906 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19907   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19908 Usually this means the macro was only invoked conditionally." >&5
19909 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19910 Usually this means the macro was only invoked conditionally." >&2;}
19911    { (exit 1); exit 1; }; }
19912 fi
19913 if test -z "${WITH_PAM_SU_TRUE}" && test -z "${WITH_PAM_SU_FALSE}"; then
19914   { { echo "$as_me:$LINENO: error: conditional \"WITH_PAM_SU\" was never defined.
19915 Usually this means the macro was only invoked conditionally." >&5
19916 echo "$as_me: error: conditional \"WITH_PAM_SU\" was never defined.
19917 Usually this means the macro was only invoked conditionally." >&2;}
19918    { (exit 1); exit 1; }; }
19919 fi
19920 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
19921   { { echo "$as_me:$LINENO: error: conditional \"WITH_PAM_UNIX\" was never defined.
19922 Usually this means the macro was only invoked conditionally." >&5
19923 echo "$as_me: error: conditional \"WITH_PAM_UNIX\" was never defined.
19924 Usually this means the macro was only invoked conditionally." >&2;}
19925    { (exit 1); exit 1; }; }
19926 fi
19927
19928 : ${CONFIG_STATUS=./config.status}
19929 ac_clean_files_save=$ac_clean_files
19930 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19931 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19932 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19933 cat >$CONFIG_STATUS <<_ACEOF
19934 #! $SHELL
19935 # Generated by $as_me.
19936 # Run this file to recreate the current configuration.
19937 # Compiler output produced by configure, useful for debugging
19938 # configure, is in config.log if it exists.
19939
19940 debug=false
19941 ac_cs_recheck=false
19942 ac_cs_silent=false
19943 SHELL=\${CONFIG_SHELL-$SHELL}
19944 _ACEOF
19945
19946 cat >>$CONFIG_STATUS <<\_ACEOF
19947 ## --------------------- ##
19948 ## M4sh Initialization.  ##
19949 ## --------------------- ##
19950
19951 # Be Bourne compatible
19952 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19953   emulate sh
19954   NULLCMD=:
19955   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19956   # is contrary to our usage.  Disable this feature.
19957   alias -g '${1+"$@"}'='"$@"'
19958 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19959   set -o posix
19960 fi
19961 DUALCASE=1; export DUALCASE # for MKS sh
19962
19963 # Support unset when possible.
19964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19965   as_unset=unset
19966 else
19967   as_unset=false
19968 fi
19969
19970
19971 # Work around bugs in pre-3.0 UWIN ksh.
19972 $as_unset ENV MAIL MAILPATH
19973 PS1='$ '
19974 PS2='> '
19975 PS4='+ '
19976
19977 # NLS nuisances.
19978 for as_var in \
19979   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19980   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19981   LC_TELEPHONE LC_TIME
19982 do
19983   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19984     eval $as_var=C; export $as_var
19985   else
19986     $as_unset $as_var
19987   fi
19988 done
19989
19990 # Required to use basename.
19991 if expr a : '\(a\)' >/dev/null 2>&1; then
19992   as_expr=expr
19993 else
19994   as_expr=false
19995 fi
19996
19997 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19998   as_basename=basename
19999 else
20000   as_basename=false
20001 fi
20002
20003
20004 # Name of the executable.
20005 as_me=`$as_basename "$0" ||
20006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20007          X"$0" : 'X\(//\)$' \| \
20008          X"$0" : 'X\(/\)$' \| \
20009          .     : '\(.\)' 2>/dev/null ||
20010 echo X/"$0" |
20011     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20012           /^X\/\(\/\/\)$/{ s//\1/; q; }
20013           /^X\/\(\/\).*/{ s//\1/; q; }
20014           s/.*/./; q'`
20015
20016
20017 # PATH needs CR, and LINENO needs CR and PATH.
20018 # Avoid depending upon Character Ranges.
20019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20022 as_cr_digits='0123456789'
20023 as_cr_alnum=$as_cr_Letters$as_cr_digits
20024
20025 # The user is always right.
20026 if test "${PATH_SEPARATOR+set}" != set; then
20027   echo "#! /bin/sh" >conf$$.sh
20028   echo  "exit 0"   >>conf$$.sh
20029   chmod +x conf$$.sh
20030   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20031     PATH_SEPARATOR=';'
20032   else
20033     PATH_SEPARATOR=:
20034   fi
20035   rm -f conf$$.sh
20036 fi
20037
20038
20039   as_lineno_1=$LINENO
20040   as_lineno_2=$LINENO
20041   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20042   test "x$as_lineno_1" != "x$as_lineno_2" &&
20043   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20044   # Find who we are.  Look in the path if we contain no path at all
20045   # relative or not.
20046   case $0 in
20047     *[\\/]* ) as_myself=$0 ;;
20048     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20049 for as_dir in $PATH
20050 do
20051   IFS=$as_save_IFS
20052   test -z "$as_dir" && as_dir=.
20053   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20054 done
20055
20056        ;;
20057   esac
20058   # We did not find ourselves, most probably we were run as `sh COMMAND'
20059   # in which case we are not to be found in the path.
20060   if test "x$as_myself" = x; then
20061     as_myself=$0
20062   fi
20063   if test ! -f "$as_myself"; then
20064     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20065 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20066    { (exit 1); exit 1; }; }
20067   fi
20068   case $CONFIG_SHELL in
20069   '')
20070     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20071 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20072 do
20073   IFS=$as_save_IFS
20074   test -z "$as_dir" && as_dir=.
20075   for as_base in sh bash ksh sh5; do
20076          case $as_dir in
20077          /*)
20078            if ("$as_dir/$as_base" -c '
20079   as_lineno_1=$LINENO
20080   as_lineno_2=$LINENO
20081   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20082   test "x$as_lineno_1" != "x$as_lineno_2" &&
20083   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20084              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20085              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20086              CONFIG_SHELL=$as_dir/$as_base
20087              export CONFIG_SHELL
20088              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20089            fi;;
20090          esac
20091        done
20092 done
20093 ;;
20094   esac
20095
20096   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20097   # uniformly replaced by the line number.  The first 'sed' inserts a
20098   # line-number line before each line; the second 'sed' does the real
20099   # work.  The second script uses 'N' to pair each line-number line
20100   # with the numbered line, and appends trailing '-' during
20101   # substitution so that $LINENO is not a special case at line end.
20102   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20103   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20104   sed '=' <$as_myself |
20105     sed '
20106       N
20107       s,$,-,
20108       : loop
20109       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20110       t loop
20111       s,-$,,
20112       s,^['$as_cr_digits']*\n,,
20113     ' >$as_me.lineno &&
20114   chmod +x $as_me.lineno ||
20115     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20116 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20117    { (exit 1); exit 1; }; }
20118
20119   # Don't try to exec as it changes $[0], causing all sort of problems
20120   # (the dirname of $[0] is not the place where we might find the
20121   # original and so on.  Autoconf is especially sensible to this).
20122   . ./$as_me.lineno
20123   # Exit status is that of the last command.
20124   exit
20125 }
20126
20127
20128 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20129   *c*,-n*) ECHO_N= ECHO_C='
20130 ' ECHO_T='      ' ;;
20131   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20132   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20133 esac
20134
20135 if expr a : '\(a\)' >/dev/null 2>&1; then
20136   as_expr=expr
20137 else
20138   as_expr=false
20139 fi
20140
20141 rm -f conf$$ conf$$.exe conf$$.file
20142 echo >conf$$.file
20143 if ln -s conf$$.file conf$$ 2>/dev/null; then
20144   # We could just check for DJGPP; but this test a) works b) is more generic
20145   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20146   if test -f conf$$.exe; then
20147     # Don't use ln at all; we don't have any links
20148     as_ln_s='cp -p'
20149   else
20150     as_ln_s='ln -s'
20151   fi
20152 elif ln conf$$.file conf$$ 2>/dev/null; then
20153   as_ln_s=ln
20154 else
20155   as_ln_s='cp -p'
20156 fi
20157 rm -f conf$$ conf$$.exe conf$$.file
20158
20159 if mkdir -p . 2>/dev/null; then
20160   as_mkdir_p=:
20161 else
20162   test -d ./-p && rmdir ./-p
20163   as_mkdir_p=false
20164 fi
20165
20166 as_executable_p="test -f"
20167
20168 # Sed expression to map a string onto a valid CPP name.
20169 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20170
20171 # Sed expression to map a string onto a valid variable name.
20172 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20173
20174
20175 # IFS
20176 # We need space, tab and new line, in precisely that order.
20177 as_nl='
20178 '
20179 IFS="   $as_nl"
20180
20181 # CDPATH.
20182 $as_unset CDPATH
20183
20184 exec 6>&1
20185
20186 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20187 # report actual input values of CONFIG_FILES etc. instead of their
20188 # values after options handling.  Logging --version etc. is OK.
20189 exec 5>>config.log
20190 {
20191   echo
20192   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20193 ## Running $as_me. ##
20194 _ASBOX
20195 } >&5
20196 cat >&5 <<_CSEOF
20197
20198 This file was extended by OpenPAM $as_me 20050201, which was
20199 generated by GNU Autoconf 2.59.  Invocation command line was
20200
20201   CONFIG_FILES    = $CONFIG_FILES
20202   CONFIG_HEADERS  = $CONFIG_HEADERS
20203   CONFIG_LINKS    = $CONFIG_LINKS
20204   CONFIG_COMMANDS = $CONFIG_COMMANDS
20205   $ $0 $@
20206
20207 _CSEOF
20208 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20209 echo >&5
20210 _ACEOF
20211
20212 # Files that config.status was made for.
20213 if test -n "$ac_config_files"; then
20214   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20215 fi
20216
20217 if test -n "$ac_config_headers"; then
20218   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20219 fi
20220
20221 if test -n "$ac_config_links"; then
20222   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20223 fi
20224
20225 if test -n "$ac_config_commands"; then
20226   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20227 fi
20228
20229 cat >>$CONFIG_STATUS <<\_ACEOF
20230
20231 ac_cs_usage="\
20232 \`$as_me' instantiates files from templates according to the
20233 current configuration.
20234
20235 Usage: $0 [OPTIONS] [FILE]...
20236
20237   -h, --help       print this help, then exit
20238   -V, --version    print version number, then exit
20239   -q, --quiet      do not print progress messages
20240   -d, --debug      don't remove temporary files
20241       --recheck    update $as_me by reconfiguring in the same conditions
20242   --file=FILE[:TEMPLATE]
20243                    instantiate the configuration file FILE
20244   --header=FILE[:TEMPLATE]
20245                    instantiate the configuration header FILE
20246
20247 Configuration files:
20248 $config_files
20249
20250 Configuration headers:
20251 $config_headers
20252
20253 Configuration commands:
20254 $config_commands
20255
20256 Report bugs to <bug-autoconf@gnu.org>."
20257 _ACEOF
20258
20259 cat >>$CONFIG_STATUS <<_ACEOF
20260 ac_cs_version="\\
20261 OpenPAM config.status 20050201
20262 configured by $0, generated by GNU Autoconf 2.59,
20263   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20264
20265 Copyright (C) 2003 Free Software Foundation, Inc.
20266 This config.status script is free software; the Free Software Foundation
20267 gives unlimited permission to copy, distribute and modify it."
20268 srcdir=$srcdir
20269 INSTALL="$INSTALL"
20270 _ACEOF
20271
20272 cat >>$CONFIG_STATUS <<\_ACEOF
20273 # If no file are specified by the user, then we need to provide default
20274 # value.  By we need to know if files were specified by the user.
20275 ac_need_defaults=:
20276 while test $# != 0
20277 do
20278   case $1 in
20279   --*=*)
20280     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20281     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20282     ac_shift=:
20283     ;;
20284   -*)
20285     ac_option=$1
20286     ac_optarg=$2
20287     ac_shift=shift
20288     ;;
20289   *) # This is not an option, so the user has probably given explicit
20290      # arguments.
20291      ac_option=$1
20292      ac_need_defaults=false;;
20293   esac
20294
20295   case $ac_option in
20296   # Handling of the options.
20297 _ACEOF
20298 cat >>$CONFIG_STATUS <<\_ACEOF
20299   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20300     ac_cs_recheck=: ;;
20301   --version | --vers* | -V )
20302     echo "$ac_cs_version"; exit 0 ;;
20303   --he | --h)
20304     # Conflict between --help and --header
20305     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20306 Try \`$0 --help' for more information." >&5
20307 echo "$as_me: error: ambiguous option: $1
20308 Try \`$0 --help' for more information." >&2;}
20309    { (exit 1); exit 1; }; };;
20310   --help | --hel | -h )
20311     echo "$ac_cs_usage"; exit 0 ;;
20312   --debug | --d* | -d )
20313     debug=: ;;
20314   --file | --fil | --fi | --f )
20315     $ac_shift
20316     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20317     ac_need_defaults=false;;
20318   --header | --heade | --head | --hea )
20319     $ac_shift
20320     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20321     ac_need_defaults=false;;
20322   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20323   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20324     ac_cs_silent=: ;;
20325
20326   # This is an error.
20327   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20328 Try \`$0 --help' for more information." >&5
20329 echo "$as_me: error: unrecognized option: $1
20330 Try \`$0 --help' for more information." >&2;}
20331    { (exit 1); exit 1; }; } ;;
20332
20333   *) ac_config_targets="$ac_config_targets $1" ;;
20334
20335   esac
20336   shift
20337 done
20338
20339 ac_configure_extra_args=
20340
20341 if $ac_cs_silent; then
20342   exec 6>/dev/null
20343   ac_configure_extra_args="$ac_configure_extra_args --silent"
20344 fi
20345
20346 _ACEOF
20347 cat >>$CONFIG_STATUS <<_ACEOF
20348 if \$ac_cs_recheck; then
20349   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20350   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20351 fi
20352
20353 _ACEOF
20354
20355 cat >>$CONFIG_STATUS <<_ACEOF
20356 #
20357 # INIT-COMMANDS section.
20358 #
20359
20360 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20361
20362 _ACEOF
20363
20364
20365
20366 cat >>$CONFIG_STATUS <<\_ACEOF
20367 for ac_config_target in $ac_config_targets
20368 do
20369   case "$ac_config_target" in
20370   # Handling of arguments.
20371   "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20372   "bin/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
20373   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20374   "include/security/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
20375   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20376   "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
20377   "modules/pam_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
20378   "modules/pam_deny/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
20379   "modules/pam_permit/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
20380   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20381   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
20382   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20383   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20384   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20385   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20386 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20387    { (exit 1); exit 1; }; };;
20388   esac
20389 done
20390
20391 # If the user did not use the arguments to specify the items to instantiate,
20392 # then the envvar interface is used.  Set only those that are not.
20393 # We use the long form for the default assignment because of an extremely
20394 # bizarre bug on SunOS 4.1.3.
20395 if $ac_need_defaults; then
20396   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20397   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20398   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20399 fi
20400
20401 # Have a temporary directory for convenience.  Make it in the build tree
20402 # simply because there is no reason to put it here, and in addition,
20403 # creating and moving files from /tmp can sometimes cause problems.
20404 # Create a temporary directory, and hook for its removal unless debugging.
20405 $debug ||
20406 {
20407   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20408   trap '{ (exit 1); exit 1; }' 1 2 13 15
20409 }
20410
20411 # Create a (secure) tmp directory for tmp files.
20412
20413 {
20414   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20415   test -n "$tmp" && test -d "$tmp"
20416 }  ||
20417 {
20418   tmp=./confstat$$-$RANDOM
20419   (umask 077 && mkdir $tmp)
20420 } ||
20421 {
20422    echo "$me: cannot create a temporary directory in ." >&2
20423    { (exit 1); exit 1; }
20424 }
20425
20426 _ACEOF
20427
20428 cat >>$CONFIG_STATUS <<_ACEOF
20429
20430 #
20431 # CONFIG_FILES section.
20432 #
20433
20434 # No need to generate the scripts if there are no CONFIG_FILES.
20435 # This happens for instance when ./config.status config.h
20436 if test -n "\$CONFIG_FILES"; then
20437   # Protect against being on the right side of a sed subst in config.status.
20438   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20439    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20440 s,@SHELL@,$SHELL,;t t
20441 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20442 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20443 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20444 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20445 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20446 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20447 s,@exec_prefix@,$exec_prefix,;t t
20448 s,@prefix@,$prefix,;t t
20449 s,@program_transform_name@,$program_transform_name,;t t
20450 s,@bindir@,$bindir,;t t
20451 s,@sbindir@,$sbindir,;t t
20452 s,@libexecdir@,$libexecdir,;t t
20453 s,@datadir@,$datadir,;t t
20454 s,@sysconfdir@,$sysconfdir,;t t
20455 s,@sharedstatedir@,$sharedstatedir,;t t
20456 s,@localstatedir@,$localstatedir,;t t
20457 s,@libdir@,$libdir,;t t
20458 s,@includedir@,$includedir,;t t
20459 s,@oldincludedir@,$oldincludedir,;t t
20460 s,@infodir@,$infodir,;t t
20461 s,@mandir@,$mandir,;t t
20462 s,@build_alias@,$build_alias,;t t
20463 s,@host_alias@,$host_alias,;t t
20464 s,@target_alias@,$target_alias,;t t
20465 s,@DEFS@,$DEFS,;t t
20466 s,@ECHO_C@,$ECHO_C,;t t
20467 s,@ECHO_N@,$ECHO_N,;t t
20468 s,@ECHO_T@,$ECHO_T,;t t
20469 s,@LIBS@,$LIBS,;t t
20470 s,@build@,$build,;t t
20471 s,@build_cpu@,$build_cpu,;t t
20472 s,@build_vendor@,$build_vendor,;t t
20473 s,@build_os@,$build_os,;t t
20474 s,@host@,$host,;t t
20475 s,@host_cpu@,$host_cpu,;t t
20476 s,@host_vendor@,$host_vendor,;t t
20477 s,@host_os@,$host_os,;t t
20478 s,@target@,$target,;t t
20479 s,@target_cpu@,$target_cpu,;t t
20480 s,@target_vendor@,$target_vendor,;t t
20481 s,@target_os@,$target_os,;t t
20482 s,@CC@,$CC,;t t
20483 s,@CFLAGS@,$CFLAGS,;t t
20484 s,@LDFLAGS@,$LDFLAGS,;t t
20485 s,@CPPFLAGS@,$CPPFLAGS,;t t
20486 s,@ac_ct_CC@,$ac_ct_CC,;t t
20487 s,@EXEEXT@,$EXEEXT,;t t
20488 s,@OBJEXT@,$OBJEXT,;t t
20489 s,@EGREP@,$EGREP,;t t
20490 s,@LN_S@,$LN_S,;t t
20491 s,@ECHO@,$ECHO,;t t
20492 s,@AR@,$AR,;t t
20493 s,@ac_ct_AR@,$ac_ct_AR,;t t
20494 s,@RANLIB@,$RANLIB,;t t
20495 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20496 s,@STRIP@,$STRIP,;t t
20497 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20498 s,@CPP@,$CPP,;t t
20499 s,@CXX@,$CXX,;t t
20500 s,@CXXFLAGS@,$CXXFLAGS,;t t
20501 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20502 s,@CXXCPP@,$CXXCPP,;t t
20503 s,@F77@,$F77,;t t
20504 s,@FFLAGS@,$FFLAGS,;t t
20505 s,@ac_ct_F77@,$ac_ct_F77,;t t
20506 s,@LIBTOOL@,$LIBTOOL,;t t
20507 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20508 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20509 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20510 s,@CYGPATH_W@,$CYGPATH_W,;t t
20511 s,@PACKAGE@,$PACKAGE,;t t
20512 s,@VERSION@,$VERSION,;t t
20513 s,@ACLOCAL@,$ACLOCAL,;t t
20514 s,@AUTOCONF@,$AUTOCONF,;t t
20515 s,@AUTOMAKE@,$AUTOMAKE,;t t
20516 s,@AUTOHEADER@,$AUTOHEADER,;t t
20517 s,@MAKEINFO@,$MAKEINFO,;t t
20518 s,@AMTAR@,$AMTAR,;t t
20519 s,@install_sh@,$install_sh,;t t
20520 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20521 s,@mkdir_p@,$mkdir_p,;t t
20522 s,@AWK@,$AWK,;t t
20523 s,@SET_MAKE@,$SET_MAKE,;t t
20524 s,@am__leading_dot@,$am__leading_dot,;t t
20525 s,@DEPDIR@,$DEPDIR,;t t
20526 s,@am__include@,$am__include,;t t
20527 s,@am__quote@,$am__quote,;t t
20528 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20529 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20530 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20531 s,@CCDEPMODE@,$CCDEPMODE,;t t
20532 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20533 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20534 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20535 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20536 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20537 s,@LIB_MAJ@,$LIB_MAJ,;t t
20538 s,@OPENPAM_MODULES_DIR@,$OPENPAM_MODULES_DIR,;t t
20539 s,@WITH_PAM_SU_TRUE@,$WITH_PAM_SU_TRUE,;t t
20540 s,@WITH_PAM_SU_FALSE@,$WITH_PAM_SU_FALSE,;t t
20541 s,@WITH_PAM_UNIX_TRUE@,$WITH_PAM_UNIX_TRUE,;t t
20542 s,@WITH_PAM_UNIX_FALSE@,$WITH_PAM_UNIX_FALSE,;t t
20543 s,@DL_LIBS@,$DL_LIBS,;t t
20544 s,@CRYPT_LIBS@,$CRYPT_LIBS,;t t
20545 s,@LIBOBJS@,$LIBOBJS,;t t
20546 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20547 CEOF
20548
20549 _ACEOF
20550
20551   cat >>$CONFIG_STATUS <<\_ACEOF
20552   # Split the substitutions into bite-sized pieces for seds with
20553   # small command number limits, like on Digital OSF/1 and HP-UX.
20554   ac_max_sed_lines=48
20555   ac_sed_frag=1 # Number of current file.
20556   ac_beg=1 # First line for current file.
20557   ac_end=$ac_max_sed_lines # Line after last line for current file.
20558   ac_more_lines=:
20559   ac_sed_cmds=
20560   while $ac_more_lines; do
20561     if test $ac_beg -gt 1; then
20562       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20563     else
20564       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20565     fi
20566     if test ! -s $tmp/subs.frag; then
20567       ac_more_lines=false
20568     else
20569       # The purpose of the label and of the branching condition is to
20570       # speed up the sed processing (if there are no `@' at all, there
20571       # is no need to browse any of the substitutions).
20572       # These are the two extra sed commands mentioned above.
20573       (echo ':t
20574   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20575       if test -z "$ac_sed_cmds"; then
20576         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20577       else
20578         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20579       fi
20580       ac_sed_frag=`expr $ac_sed_frag + 1`
20581       ac_beg=$ac_end
20582       ac_end=`expr $ac_end + $ac_max_sed_lines`
20583     fi
20584   done
20585   if test -z "$ac_sed_cmds"; then
20586     ac_sed_cmds=cat
20587   fi
20588 fi # test -n "$CONFIG_FILES"
20589
20590 _ACEOF
20591 cat >>$CONFIG_STATUS <<\_ACEOF
20592 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20593   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20594   case $ac_file in
20595   - | *:- | *:-:* ) # input from stdin
20596         cat >$tmp/stdin
20597         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20598         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20599   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20600         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20601   * )   ac_file_in=$ac_file.in ;;
20602   esac
20603
20604   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20605   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20607          X"$ac_file" : 'X\(//\)[^/]' \| \
20608          X"$ac_file" : 'X\(//\)$' \| \
20609          X"$ac_file" : 'X\(/\)' \| \
20610          .     : '\(.\)' 2>/dev/null ||
20611 echo X"$ac_file" |
20612     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20613           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20614           /^X\(\/\/\)$/{ s//\1/; q; }
20615           /^X\(\/\).*/{ s//\1/; q; }
20616           s/.*/./; q'`
20617   { if $as_mkdir_p; then
20618     mkdir -p "$ac_dir"
20619   else
20620     as_dir="$ac_dir"
20621     as_dirs=
20622     while test ! -d "$as_dir"; do
20623       as_dirs="$as_dir $as_dirs"
20624       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20626          X"$as_dir" : 'X\(//\)[^/]' \| \
20627          X"$as_dir" : 'X\(//\)$' \| \
20628          X"$as_dir" : 'X\(/\)' \| \
20629          .     : '\(.\)' 2>/dev/null ||
20630 echo X"$as_dir" |
20631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20632           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20633           /^X\(\/\/\)$/{ s//\1/; q; }
20634           /^X\(\/\).*/{ s//\1/; q; }
20635           s/.*/./; q'`
20636     done
20637     test ! -n "$as_dirs" || mkdir $as_dirs
20638   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20639 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20640    { (exit 1); exit 1; }; }; }
20641
20642   ac_builddir=.
20643
20644 if test "$ac_dir" != .; then
20645   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20646   # A "../" for each directory in $ac_dir_suffix.
20647   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20648 else
20649   ac_dir_suffix= ac_top_builddir=
20650 fi
20651
20652 case $srcdir in
20653   .)  # No --srcdir option.  We are building in place.
20654     ac_srcdir=.
20655     if test -z "$ac_top_builddir"; then
20656        ac_top_srcdir=.
20657     else
20658        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20659     fi ;;
20660   [\\/]* | ?:[\\/]* )  # Absolute path.
20661     ac_srcdir=$srcdir$ac_dir_suffix;
20662     ac_top_srcdir=$srcdir ;;
20663   *) # Relative path.
20664     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20665     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20666 esac
20667
20668 # Do not use `cd foo && pwd` to compute absolute paths, because
20669 # the directories may not exist.
20670 case `pwd` in
20671 .) ac_abs_builddir="$ac_dir";;
20672 *)
20673   case "$ac_dir" in
20674   .) ac_abs_builddir=`pwd`;;
20675   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20676   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20677   esac;;
20678 esac
20679 case $ac_abs_builddir in
20680 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20681 *)
20682   case ${ac_top_builddir}. in
20683   .) ac_abs_top_builddir=$ac_abs_builddir;;
20684   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20685   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20686   esac;;
20687 esac
20688 case $ac_abs_builddir in
20689 .) ac_abs_srcdir=$ac_srcdir;;
20690 *)
20691   case $ac_srcdir in
20692   .) ac_abs_srcdir=$ac_abs_builddir;;
20693   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20694   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20695   esac;;
20696 esac
20697 case $ac_abs_builddir in
20698 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20699 *)
20700   case $ac_top_srcdir in
20701   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20702   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20703   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20704   esac;;
20705 esac
20706
20707
20708   case $INSTALL in
20709   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20710   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20711   esac
20712
20713   if test x"$ac_file" != x-; then
20714     { echo "$as_me:$LINENO: creating $ac_file" >&5
20715 echo "$as_me: creating $ac_file" >&6;}
20716     rm -f "$ac_file"
20717   fi
20718   # Let's still pretend it is `configure' which instantiates (i.e., don't
20719   # use $as_me), people would be surprised to read:
20720   #    /* config.h.  Generated by config.status.  */
20721   if test x"$ac_file" = x-; then
20722     configure_input=
20723   else
20724     configure_input="$ac_file.  "
20725   fi
20726   configure_input=$configure_input"Generated from `echo $ac_file_in |
20727                                      sed 's,.*/,,'` by configure."
20728
20729   # First look for the input files in the build tree, otherwise in the
20730   # src tree.
20731   ac_file_inputs=`IFS=:
20732     for f in $ac_file_in; do
20733       case $f in
20734       -) echo $tmp/stdin ;;
20735       [\\/$]*)
20736          # Absolute (can't be DOS-style, as IFS=:)
20737          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20738 echo "$as_me: error: cannot find input file: $f" >&2;}
20739    { (exit 1); exit 1; }; }
20740          echo "$f";;
20741       *) # Relative
20742          if test -f "$f"; then
20743            # Build tree
20744            echo "$f"
20745          elif test -f "$srcdir/$f"; then
20746            # Source tree
20747            echo "$srcdir/$f"
20748          else
20749            # /dev/null tree
20750            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20751 echo "$as_me: error: cannot find input file: $f" >&2;}
20752    { (exit 1); exit 1; }; }
20753          fi;;
20754       esac
20755     done` || { (exit 1); exit 1; }
20756 _ACEOF
20757 cat >>$CONFIG_STATUS <<_ACEOF
20758   sed "$ac_vpsub
20759 $extrasub
20760 _ACEOF
20761 cat >>$CONFIG_STATUS <<\_ACEOF
20762 :t
20763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20764 s,@configure_input@,$configure_input,;t t
20765 s,@srcdir@,$ac_srcdir,;t t
20766 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20767 s,@top_srcdir@,$ac_top_srcdir,;t t
20768 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20769 s,@builddir@,$ac_builddir,;t t
20770 s,@abs_builddir@,$ac_abs_builddir,;t t
20771 s,@top_builddir@,$ac_top_builddir,;t t
20772 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20773 s,@INSTALL@,$ac_INSTALL,;t t
20774 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20775   rm -f $tmp/stdin
20776   if test x"$ac_file" != x-; then
20777     mv $tmp/out $ac_file
20778   else
20779     cat $tmp/out
20780     rm -f $tmp/out
20781   fi
20782
20783 done
20784 _ACEOF
20785 cat >>$CONFIG_STATUS <<\_ACEOF
20786
20787 #
20788 # CONFIG_HEADER section.
20789 #
20790
20791 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20792 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20793 #
20794 # ac_d sets the value in "#define NAME VALUE" lines.
20795 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20796 ac_dB='[         ].*$,\1#\2'
20797 ac_dC=' '
20798 ac_dD=',;t'
20799 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20800 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20801 ac_uB='$,\1#\2define\3'
20802 ac_uC=' '
20803 ac_uD=',;t'
20804
20805 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20806   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20807   case $ac_file in
20808   - | *:- | *:-:* ) # input from stdin
20809         cat >$tmp/stdin
20810         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20811         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20812   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20813         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20814   * )   ac_file_in=$ac_file.in ;;
20815   esac
20816
20817   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20818 echo "$as_me: creating $ac_file" >&6;}
20819
20820   # First look for the input files in the build tree, otherwise in the
20821   # src tree.
20822   ac_file_inputs=`IFS=:
20823     for f in $ac_file_in; do
20824       case $f in
20825       -) echo $tmp/stdin ;;
20826       [\\/$]*)
20827          # Absolute (can't be DOS-style, as IFS=:)
20828          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20829 echo "$as_me: error: cannot find input file: $f" >&2;}
20830    { (exit 1); exit 1; }; }
20831          # Do quote $f, to prevent DOS paths from being IFS'd.
20832          echo "$f";;
20833       *) # Relative
20834          if test -f "$f"; then
20835            # Build tree
20836            echo "$f"
20837          elif test -f "$srcdir/$f"; then
20838            # Source tree
20839            echo "$srcdir/$f"
20840          else
20841            # /dev/null tree
20842            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20843 echo "$as_me: error: cannot find input file: $f" >&2;}
20844    { (exit 1); exit 1; }; }
20845          fi;;
20846       esac
20847     done` || { (exit 1); exit 1; }
20848   # Remove the trailing spaces.
20849   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20850
20851 _ACEOF
20852
20853 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20854 # `conftest.undefs', that substitutes the proper values into
20855 # config.h.in to produce config.h.  The first handles `#define'
20856 # templates, and the second `#undef' templates.
20857 # And first: Protect against being on the right side of a sed subst in
20858 # config.status.  Protect against being in an unquoted here document
20859 # in config.status.
20860 rm -f conftest.defines conftest.undefs
20861 # Using a here document instead of a string reduces the quoting nightmare.
20862 # Putting comments in sed scripts is not portable.
20863 #
20864 # `end' is used to avoid that the second main sed command (meant for
20865 # 0-ary CPP macros) applies to n-ary macro definitions.
20866 # See the Autoconf documentation for `clear'.
20867 cat >confdef2sed.sed <<\_ACEOF
20868 s/[\\&,]/\\&/g
20869 s,[\\$`],\\&,g
20870 t clear
20871 : clear
20872 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20873 t end
20874 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20875 : end
20876 _ACEOF
20877 # If some macros were called several times there might be several times
20878 # the same #defines, which is useless.  Nevertheless, we may not want to
20879 # sort them, since we want the *last* AC-DEFINE to be honored.
20880 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20881 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20882 rm -f confdef2sed.sed
20883
20884 # This sed command replaces #undef with comments.  This is necessary, for
20885 # example, in the case of _POSIX_SOURCE, which is predefined and required
20886 # on some systems where configure will not decide to define it.
20887 cat >>conftest.undefs <<\_ACEOF
20888 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20889 _ACEOF
20890
20891 # Break up conftest.defines because some shells have a limit on the size
20892 # of here documents, and old seds have small limits too (100 cmds).
20893 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20894 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20895 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20896 echo '  :' >>$CONFIG_STATUS
20897 rm -f conftest.tail
20898 while grep . conftest.defines >/dev/null
20899 do
20900   # Write a limited-size here document to $tmp/defines.sed.
20901   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20902   # Speed up: don't consider the non `#define' lines.
20903   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20904   # Work around the forget-to-reset-the-flag bug.
20905   echo 't clr' >>$CONFIG_STATUS
20906   echo ': clr' >>$CONFIG_STATUS
20907   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20908   echo 'CEOF
20909   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20910   rm -f $tmp/in
20911   mv $tmp/out $tmp/in
20912 ' >>$CONFIG_STATUS
20913   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20914   rm -f conftest.defines
20915   mv conftest.tail conftest.defines
20916 done
20917 rm -f conftest.defines
20918 echo '  fi # grep' >>$CONFIG_STATUS
20919 echo >>$CONFIG_STATUS
20920
20921 # Break up conftest.undefs because some shells have a limit on the size
20922 # of here documents, and old seds have small limits too (100 cmds).
20923 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20924 rm -f conftest.tail
20925 while grep . conftest.undefs >/dev/null
20926 do
20927   # Write a limited-size here document to $tmp/undefs.sed.
20928   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20929   # Speed up: don't consider the non `#undef'
20930   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20931   # Work around the forget-to-reset-the-flag bug.
20932   echo 't clr' >>$CONFIG_STATUS
20933   echo ': clr' >>$CONFIG_STATUS
20934   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20935   echo 'CEOF
20936   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20937   rm -f $tmp/in
20938   mv $tmp/out $tmp/in
20939 ' >>$CONFIG_STATUS
20940   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20941   rm -f conftest.undefs
20942   mv conftest.tail conftest.undefs
20943 done
20944 rm -f conftest.undefs
20945
20946 cat >>$CONFIG_STATUS <<\_ACEOF
20947   # Let's still pretend it is `configure' which instantiates (i.e., don't
20948   # use $as_me), people would be surprised to read:
20949   #    /* config.h.  Generated by config.status.  */
20950   if test x"$ac_file" = x-; then
20951     echo "/* Generated by configure.  */" >$tmp/config.h
20952   else
20953     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20954   fi
20955   cat $tmp/in >>$tmp/config.h
20956   rm -f $tmp/in
20957   if test x"$ac_file" != x-; then
20958     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20959       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20960 echo "$as_me: $ac_file is unchanged" >&6;}
20961     else
20962       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20964          X"$ac_file" : 'X\(//\)[^/]' \| \
20965          X"$ac_file" : 'X\(//\)$' \| \
20966          X"$ac_file" : 'X\(/\)' \| \
20967          .     : '\(.\)' 2>/dev/null ||
20968 echo X"$ac_file" |
20969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20970           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20971           /^X\(\/\/\)$/{ s//\1/; q; }
20972           /^X\(\/\).*/{ s//\1/; q; }
20973           s/.*/./; q'`
20974       { if $as_mkdir_p; then
20975     mkdir -p "$ac_dir"
20976   else
20977     as_dir="$ac_dir"
20978     as_dirs=
20979     while test ! -d "$as_dir"; do
20980       as_dirs="$as_dir $as_dirs"
20981       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20983          X"$as_dir" : 'X\(//\)[^/]' \| \
20984          X"$as_dir" : 'X\(//\)$' \| \
20985          X"$as_dir" : 'X\(/\)' \| \
20986          .     : '\(.\)' 2>/dev/null ||
20987 echo X"$as_dir" |
20988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20989           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20990           /^X\(\/\/\)$/{ s//\1/; q; }
20991           /^X\(\/\).*/{ s//\1/; q; }
20992           s/.*/./; q'`
20993     done
20994     test ! -n "$as_dirs" || mkdir $as_dirs
20995   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20996 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20997    { (exit 1); exit 1; }; }; }
20998
20999       rm -f $ac_file
21000       mv $tmp/config.h $ac_file
21001     fi
21002   else
21003     cat $tmp/config.h
21004     rm -f $tmp/config.h
21005   fi
21006 # Compute $ac_file's index in $config_headers.
21007 _am_stamp_count=1
21008 for _am_header in $config_headers :; do
21009   case $_am_header in
21010     $ac_file | $ac_file:* )
21011       break ;;
21012     * )
21013       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21014   esac
21015 done
21016 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21017 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21018          X$ac_file : 'X\(//\)[^/]' \| \
21019          X$ac_file : 'X\(//\)$' \| \
21020          X$ac_file : 'X\(/\)' \| \
21021          .     : '\(.\)' 2>/dev/null ||
21022 echo X$ac_file |
21023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21024           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21025           /^X\(\/\/\)$/{ s//\1/; q; }
21026           /^X\(\/\).*/{ s//\1/; q; }
21027           s/.*/./; q'`/stamp-h$_am_stamp_count
21028 done
21029 _ACEOF
21030 cat >>$CONFIG_STATUS <<\_ACEOF
21031
21032 #
21033 # CONFIG_COMMANDS section.
21034 #
21035 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21036   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21037   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21038   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21039 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21040          X"$ac_dest" : 'X\(//\)[^/]' \| \
21041          X"$ac_dest" : 'X\(//\)$' \| \
21042          X"$ac_dest" : 'X\(/\)' \| \
21043          .     : '\(.\)' 2>/dev/null ||
21044 echo X"$ac_dest" |
21045     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21046           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21047           /^X\(\/\/\)$/{ s//\1/; q; }
21048           /^X\(\/\).*/{ s//\1/; q; }
21049           s/.*/./; q'`
21050   { if $as_mkdir_p; then
21051     mkdir -p "$ac_dir"
21052   else
21053     as_dir="$ac_dir"
21054     as_dirs=
21055     while test ! -d "$as_dir"; do
21056       as_dirs="$as_dir $as_dirs"
21057       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21059          X"$as_dir" : 'X\(//\)[^/]' \| \
21060          X"$as_dir" : 'X\(//\)$' \| \
21061          X"$as_dir" : 'X\(/\)' \| \
21062          .     : '\(.\)' 2>/dev/null ||
21063 echo X"$as_dir" |
21064     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21065           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21066           /^X\(\/\/\)$/{ s//\1/; q; }
21067           /^X\(\/\).*/{ s//\1/; q; }
21068           s/.*/./; q'`
21069     done
21070     test ! -n "$as_dirs" || mkdir $as_dirs
21071   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21072 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21073    { (exit 1); exit 1; }; }; }
21074
21075   ac_builddir=.
21076
21077 if test "$ac_dir" != .; then
21078   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21079   # A "../" for each directory in $ac_dir_suffix.
21080   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21081 else
21082   ac_dir_suffix= ac_top_builddir=
21083 fi
21084
21085 case $srcdir in
21086   .)  # No --srcdir option.  We are building in place.
21087     ac_srcdir=.
21088     if test -z "$ac_top_builddir"; then
21089        ac_top_srcdir=.
21090     else
21091        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21092     fi ;;
21093   [\\/]* | ?:[\\/]* )  # Absolute path.
21094     ac_srcdir=$srcdir$ac_dir_suffix;
21095     ac_top_srcdir=$srcdir ;;
21096   *) # Relative path.
21097     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21098     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21099 esac
21100
21101 # Do not use `cd foo && pwd` to compute absolute paths, because
21102 # the directories may not exist.
21103 case `pwd` in
21104 .) ac_abs_builddir="$ac_dir";;
21105 *)
21106   case "$ac_dir" in
21107   .) ac_abs_builddir=`pwd`;;
21108   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21109   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21110   esac;;
21111 esac
21112 case $ac_abs_builddir in
21113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21114 *)
21115   case ${ac_top_builddir}. in
21116   .) ac_abs_top_builddir=$ac_abs_builddir;;
21117   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21118   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21119   esac;;
21120 esac
21121 case $ac_abs_builddir in
21122 .) ac_abs_srcdir=$ac_srcdir;;
21123 *)
21124   case $ac_srcdir in
21125   .) ac_abs_srcdir=$ac_abs_builddir;;
21126   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21127   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21128   esac;;
21129 esac
21130 case $ac_abs_builddir in
21131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21132 *)
21133   case $ac_top_srcdir in
21134   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21135   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21136   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21137   esac;;
21138 esac
21139
21140
21141   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21142 echo "$as_me: executing $ac_dest commands" >&6;}
21143   case $ac_dest in
21144     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21145   # Strip MF so we end up with the name of the file.
21146   mf=`echo "$mf" | sed -e 's/:.*$//'`
21147   # Check whether this is an Automake generated Makefile or not.
21148   # We used to match only the files named `Makefile.in', but
21149   # some people rename them; so instead we look at the file content.
21150   # Grep'ing the first line is not enough: some people post-process
21151   # each Makefile.in and add a new line on top of each file to say so.
21152   # So let's grep whole file.
21153   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21154     dirpart=`(dirname "$mf") 2>/dev/null ||
21155 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21156          X"$mf" : 'X\(//\)[^/]' \| \
21157          X"$mf" : 'X\(//\)$' \| \
21158          X"$mf" : 'X\(/\)' \| \
21159          .     : '\(.\)' 2>/dev/null ||
21160 echo X"$mf" |
21161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21162           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21163           /^X\(\/\/\)$/{ s//\1/; q; }
21164           /^X\(\/\).*/{ s//\1/; q; }
21165           s/.*/./; q'`
21166   else
21167     continue
21168   fi
21169   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21170   # Extract the definition of DEP_FILES from the Makefile without
21171   # running `make'.
21172   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21173   test -z "$DEPDIR" && continue
21174   # When using ansi2knr, U may be empty or an underscore; expand it
21175   U=`sed -n 's/^U = //p' < "$mf"`
21176   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21177   # We invoke sed twice because it is the simplest approach to
21178   # changing $(DEPDIR) to its actual value in the expansion.
21179   for file in `sed -n '
21180     /^DEP_FILES = .*\\\\$/ {
21181       s/^DEP_FILES = //
21182       :loop
21183         s/\\\\$//
21184         p
21185         n
21186         /\\\\$/ b loop
21187       p
21188     }
21189     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21190        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21191     # Make sure the directory exists.
21192     test -f "$dirpart/$file" && continue
21193     fdir=`(dirname "$file") 2>/dev/null ||
21194 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21195          X"$file" : 'X\(//\)[^/]' \| \
21196          X"$file" : 'X\(//\)$' \| \
21197          X"$file" : 'X\(/\)' \| \
21198          .     : '\(.\)' 2>/dev/null ||
21199 echo X"$file" |
21200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21201           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21202           /^X\(\/\/\)$/{ s//\1/; q; }
21203           /^X\(\/\).*/{ s//\1/; q; }
21204           s/.*/./; q'`
21205     { if $as_mkdir_p; then
21206     mkdir -p $dirpart/$fdir
21207   else
21208     as_dir=$dirpart/$fdir
21209     as_dirs=
21210     while test ! -d "$as_dir"; do
21211       as_dirs="$as_dir $as_dirs"
21212       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21214          X"$as_dir" : 'X\(//\)[^/]' \| \
21215          X"$as_dir" : 'X\(//\)$' \| \
21216          X"$as_dir" : 'X\(/\)' \| \
21217          .     : '\(.\)' 2>/dev/null ||
21218 echo X"$as_dir" |
21219     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21220           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21221           /^X\(\/\/\)$/{ s//\1/; q; }
21222           /^X\(\/\).*/{ s//\1/; q; }
21223           s/.*/./; q'`
21224     done
21225     test ! -n "$as_dirs" || mkdir $as_dirs
21226   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21227 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21228    { (exit 1); exit 1; }; }; }
21229
21230     # echo "creating $dirpart/$file"
21231     echo '# dummy' > "$dirpart/$file"
21232   done
21233 done
21234  ;;
21235   esac
21236 done
21237 _ACEOF
21238
21239 cat >>$CONFIG_STATUS <<\_ACEOF
21240
21241 { (exit 0); exit 0; }
21242 _ACEOF
21243 chmod +x $CONFIG_STATUS
21244 ac_clean_files=$ac_clean_files_save
21245
21246
21247 # configure is writing to config.log, and then calls config.status.
21248 # config.status does its own redirection, appending to config.log.
21249 # Unfortunately, on DOS this fails, as config.log is still kept open
21250 # by configure, so config.status won't be able to write to it; its
21251 # output is simply discarded.  So we exec the FD to /dev/null,
21252 # effectively closing config.log, so it can be properly (re)opened and
21253 # appended to by config.status.  When coming back to configure, we
21254 # need to make the FD available again.
21255 if test "$no_create" != yes; then
21256   ac_cs_success=:
21257   ac_config_status_args=
21258   test "$silent" = yes &&
21259     ac_config_status_args="$ac_config_status_args --quiet"
21260   exec 5>/dev/null
21261   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21262   exec 5>>config.log
21263   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21264   # would make configure fail if this is the last instruction.
21265   $ac_cs_success || { (exit 1); exit 1; }
21266 fi
21267