]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/openbsm/configure
This commit was generated by cvs2svn to compensate for changes in r172958,
[FreeBSD/FreeBSD.git] / contrib / openbsm / configure
1 #! /bin/sh
2 # From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#33 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for OpenBSM 1.0alpha15.
5 #
6 # Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
250
251 case X$ECHO in
252 X*--fallback-echo)
253   # Remove one level of quotation (which was required for Make).
254   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255   ;;
256 esac
257
258 echo=${ECHO-echo}
259 if test "X$1" = X--no-reexec; then
260   # Discard the --no-reexec flag, and continue.
261   shift
262 elif test "X$1" = X--fallback-echo; then
263   # Avoid inline document here, it may be left over
264   :
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266   # Yippee, $echo works!
267   :
268 else
269   # Restart under the correct shell.
270   exec $SHELL "$0" --no-reexec ${1+"$@"}
271 fi
272
273 if test "X$1" = X--fallback-echo; then
274   # used as fallback echo
275   shift
276   cat <<EOF
277 $*
278 EOF
279   exit 0
280 fi
281
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 # if CDPATH is set.
284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
292        echo_test_string=`eval $cmd` &&
293        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
294     then
295       break
296     fi
297   done
298 fi
299
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302    test "X$echo_testing_string" = "X$echo_test_string"; then
303   :
304 else
305   # The Solaris, AIX, and Digital Unix default echo programs unquote
306   # backslashes.  This makes it impossible to quote backslashes using
307   #   echo "$something" | sed 's/\\/\\\\/g'
308   #
309   # So, first we look for a working echo in the user's PATH.
310
311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312   for dir in $PATH /usr/ucb; do
313     IFS="$lt_save_ifs"
314     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317        test "X$echo_testing_string" = "X$echo_test_string"; then
318       echo="$dir/echo"
319       break
320     fi
321   done
322   IFS="$lt_save_ifs"
323
324   if test "X$echo" = Xecho; then
325     # We didn't find a better echo, so look for alternatives.
326     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328        test "X$echo_testing_string" = "X$echo_test_string"; then
329       # This shell has a builtin print -r that does the trick.
330       echo='print -r'
331     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332          test "X$CONFIG_SHELL" != X/bin/ksh; then
333       # If we have ksh, try running configure again with it.
334       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335       export ORIGINAL_CONFIG_SHELL
336       CONFIG_SHELL=/bin/ksh
337       export CONFIG_SHELL
338       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339     else
340       # Try using printf.
341       echo='printf %s\n'
342       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344          test "X$echo_testing_string" = "X$echo_test_string"; then
345         # Cool, printf works
346         :
347       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348            test "X$echo_testing_string" = 'X\t' &&
349            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350            test "X$echo_testing_string" = "X$echo_test_string"; then
351         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352         export CONFIG_SHELL
353         SHELL="$CONFIG_SHELL"
354         export SHELL
355         echo="$CONFIG_SHELL $0 --fallback-echo"
356       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357            test "X$echo_testing_string" = 'X\t' &&
358            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359            test "X$echo_testing_string" = "X$echo_test_string"; then
360         echo="$CONFIG_SHELL $0 --fallback-echo"
361       else
362         # maybe with a smaller string...
363         prev=:
364
365         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
367           then
368             break
369           fi
370           prev="$cmd"
371         done
372
373         if test "$prev" != 'sed 50q "$0"'; then
374           echo_test_string=`eval $prev`
375           export echo_test_string
376           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377         else
378           # Oops.  We lost completely, so just stick with echo.
379           echo=echo
380         fi
381       fi
382     fi
383   fi
384 fi
385 fi
386
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
389 ECHO=$echo
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392 fi
393
394
395
396
397 tagnames=${tagnames+${tagnames},}CXX
398
399 tagnames=${tagnames+${tagnames},}F77
400
401 # Name of the host.
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406 exec 6>&1
407
408 #
409 # Initializations.
410 #
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
413 cross_compiling=no
414 subdirs=
415 MFLAGS=
416 MAKEFLAGS=
417 SHELL=${CONFIG_SHELL-/bin/sh}
418
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete.  It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
423
424 # Identity of this package.
425 PACKAGE_NAME='OpenBSM'
426 PACKAGE_TARNAME='openbsm'
427 PACKAGE_VERSION='1.0alpha15'
428 PACKAGE_STRING='OpenBSM 1.0alpha15'
429 PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
430
431 ac_unique_file="bin/auditreduce/auditreduce.c"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIBOBJS HAVE_AUDIT_SYSCALLS_TRUE HAVE_AUDIT_SYSCALLS_FALSE LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures OpenBSM 1.0alpha15 to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 Program names:
1012   --program-prefix=PREFIX            prepend PREFIX to installed program names
1013   --program-suffix=SUFFIX            append SUFFIX to installed program names
1014   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1015
1016 System types:
1017   --build=BUILD     configure for building on BUILD [guessed]
1018   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
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 OpenBSM 1.0alpha15:";;
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-maintainer-mode  enable make rules and dependencies not useful
1032                           (and sometimes confusing) to the casual installer
1033   --enable-shared[=PKGS]
1034                           build shared libraries [default=yes]
1035   --enable-static[=PKGS]
1036                           build static libraries [default=yes]
1037   --enable-fast-install[=PKGS]
1038                           optimize for fast installation [default=yes]
1039   --disable-libtool-lock  avoid locking (might break parallel builds)
1040   --disable-dependency-tracking  speeds up one-time build
1041   --enable-dependency-tracking   do not reject slow dependency extractors
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051
1052 Some influential environment variables:
1053   CC          C compiler command
1054   CFLAGS      C compiler flags
1055   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1056               nonstandard directory <lib dir>
1057   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058               headers in a nonstandard directory <include dir>
1059   CPP         C preprocessor
1060   CXX         C++ compiler command
1061   CXXFLAGS    C++ compiler flags
1062   CXXCPP      C++ preprocessor
1063   F77         Fortran 77 compiler command
1064   FFLAGS      Fortran 77 compiler flags
1065
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1068
1069 Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1070 _ACEOF
1071 fi
1072
1073 if test "$ac_init_help" = "recursive"; then
1074   # If there are subdirs, report their specific --help.
1075   ac_popdir=`pwd`
1076   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077     test -d $ac_dir || continue
1078     ac_builddir=.
1079
1080 if test "$ac_dir" != .; then
1081   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082   # A "../" for each directory in $ac_dir_suffix.
1083   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 else
1085   ac_dir_suffix= ac_top_builddir=
1086 fi
1087
1088 case $srcdir in
1089   .)  # No --srcdir option.  We are building in place.
1090     ac_srcdir=.
1091     if test -z "$ac_top_builddir"; then
1092        ac_top_srcdir=.
1093     else
1094        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095     fi ;;
1096   [\\/]* | ?:[\\/]* )  # Absolute path.
1097     ac_srcdir=$srcdir$ac_dir_suffix;
1098     ac_top_srcdir=$srcdir ;;
1099   *) # Relative path.
1100     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 esac
1103
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1106 case `pwd` in
1107 .) ac_abs_builddir="$ac_dir";;
1108 *)
1109   case "$ac_dir" in
1110   .) ac_abs_builddir=`pwd`;;
1111   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113   esac;;
1114 esac
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *)
1118   case ${ac_top_builddir}. in
1119   .) ac_abs_top_builddir=$ac_abs_builddir;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1126 *)
1127   case $ac_srcdir in
1128   .) ac_abs_srcdir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *)
1136   case $ac_top_srcdir in
1137   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140   esac;;
1141 esac
1142
1143     cd $ac_dir
1144     # Check for guested configure; otherwise get Cygnus style configure.
1145     if test -f $ac_srcdir/configure.gnu; then
1146       echo
1147       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1148     elif test -f $ac_srcdir/configure; then
1149       echo
1150       $SHELL $ac_srcdir/configure  --help=recursive
1151     elif test -f $ac_srcdir/configure.ac ||
1152            test -f $ac_srcdir/configure.in; then
1153       echo
1154       $ac_configure --help
1155     else
1156       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157     fi
1158     cd $ac_popdir
1159   done
1160 fi
1161
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1164   cat <<\_ACEOF
1165 OpenBSM configure 1.0alpha15
1166 generated by GNU Autoconf 2.59
1167
1168 Copyright (C) 2003 Free Software Foundation, Inc.
1169 This configure script is free software; the Free Software Foundation
1170 gives unlimited permission to copy, distribute and modify it.
1171 _ACEOF
1172   exit 0
1173 fi
1174 exec 5>config.log
1175 cat >&5 <<_ACEOF
1176 This file contains any messages produced by compilers while
1177 running configure, to aid debugging if configure makes a mistake.
1178
1179 It was created by OpenBSM $as_me 1.0alpha15, which was
1180 generated by GNU Autoconf 2.59.  Invocation command line was
1181
1182   $ $0 $@
1183
1184 _ACEOF
1185 {
1186 cat <<_ASUNAME
1187 ## --------- ##
1188 ## Platform. ##
1189 ## --------- ##
1190
1191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196
1197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1199
1200 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1201 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1204 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1205 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1206 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1207
1208 _ASUNAME
1209
1210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211 for as_dir in $PATH
1212 do
1213   IFS=$as_save_IFS
1214   test -z "$as_dir" && as_dir=.
1215   echo "PATH: $as_dir"
1216 done
1217
1218 } >&5
1219
1220 cat >&5 <<_ACEOF
1221
1222
1223 ## ----------- ##
1224 ## Core tests. ##
1225 ## ----------- ##
1226
1227 _ACEOF
1228
1229
1230 # Keep a trace of the command line.
1231 # Strip out --no-create and --no-recursion so they do not pile up.
1232 # Strip out --silent because we don't want to record it for future runs.
1233 # Also quote any args containing shell meta-characters.
1234 # Make two passes to allow for proper duplicate-argument suppression.
1235 ac_configure_args=
1236 ac_configure_args0=
1237 ac_configure_args1=
1238 ac_sep=
1239 ac_must_keep_next=false
1240 for ac_pass in 1 2
1241 do
1242   for ac_arg
1243   do
1244     case $ac_arg in
1245     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247     | -silent | --silent | --silen | --sile | --sil)
1248       continue ;;
1249     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251     esac
1252     case $ac_pass in
1253     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254     2)
1255       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256       if test $ac_must_keep_next = true; then
1257         ac_must_keep_next=false # Got value, back to normal.
1258       else
1259         case $ac_arg in
1260           *=* | --config-cache | -C | -disable-* | --disable-* \
1261           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263           | -with-* | --with-* | -without-* | --without-* | --x)
1264             case "$ac_configure_args0 " in
1265               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266             esac
1267             ;;
1268           -* ) ac_must_keep_next=true ;;
1269         esac
1270       fi
1271       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272       # Get rid of the leading space.
1273       ac_sep=" "
1274       ;;
1275     esac
1276   done
1277 done
1278 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280
1281 # When interrupted or exit'd, cleanup temporary files, and complete
1282 # config.log.  We remove comments because anyway the quotes in there
1283 # would cause problems or look ugly.
1284 # WARNING: Be sure not to use single quotes in there, as some shells,
1285 # such as our DU 5.0 friend, will then `close' the trap.
1286 trap 'exit_status=$?
1287   # Save into config.log some information that might help in debugging.
1288   {
1289     echo
1290
1291     cat <<\_ASBOX
1292 ## ---------------- ##
1293 ## Cache variables. ##
1294 ## ---------------- ##
1295 _ASBOX
1296     echo
1297     # The following way of writing the cache mishandles newlines in values,
1298 {
1299   (set) 2>&1 |
1300     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301     *ac_space=\ *)
1302       sed -n \
1303         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305       ;;
1306     *)
1307       sed -n \
1308         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309       ;;
1310     esac;
1311 }
1312     echo
1313
1314     cat <<\_ASBOX
1315 ## ----------------- ##
1316 ## Output variables. ##
1317 ## ----------------- ##
1318 _ASBOX
1319     echo
1320     for ac_var in $ac_subst_vars
1321     do
1322       eval ac_val=$`echo $ac_var`
1323       echo "$ac_var='"'"'$ac_val'"'"'"
1324     done | sort
1325     echo
1326
1327     if test -n "$ac_subst_files"; then
1328       cat <<\_ASBOX
1329 ## ------------- ##
1330 ## Output files. ##
1331 ## ------------- ##
1332 _ASBOX
1333       echo
1334       for ac_var in $ac_subst_files
1335       do
1336         eval ac_val=$`echo $ac_var`
1337         echo "$ac_var='"'"'$ac_val'"'"'"
1338       done | sort
1339       echo
1340     fi
1341
1342     if test -s confdefs.h; then
1343       cat <<\_ASBOX
1344 ## ----------- ##
1345 ## confdefs.h. ##
1346 ## ----------- ##
1347 _ASBOX
1348       echo
1349       sed "/^$/d" confdefs.h | sort
1350       echo
1351     fi
1352     test "$ac_signal" != 0 &&
1353       echo "$as_me: caught signal $ac_signal"
1354     echo "$as_me: exit $exit_status"
1355   } >&5
1356   rm -f core *.core &&
1357   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358     exit $exit_status
1359      ' 0
1360 for ac_signal in 1 2 13 15; do
1361   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362 done
1363 ac_signal=0
1364
1365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1366 rm -rf conftest* confdefs.h
1367 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368 echo >confdefs.h
1369
1370 # Predefined preprocessor variables.
1371
1372 cat >>confdefs.h <<_ACEOF
1373 #define PACKAGE_NAME "$PACKAGE_NAME"
1374 _ACEOF
1375
1376
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379 _ACEOF
1380
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_STRING "$PACKAGE_STRING"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394 _ACEOF
1395
1396
1397 # Let the site file select an alternate cache file if it wants to.
1398 # Prefer explicitly selected file to automatically selected ones.
1399 if test -z "$CONFIG_SITE"; then
1400   if test "x$prefix" != xNONE; then
1401     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402   else
1403     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404   fi
1405 fi
1406 for ac_site_file in $CONFIG_SITE; do
1407   if test -r "$ac_site_file"; then
1408     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409 echo "$as_me: loading site script $ac_site_file" >&6;}
1410     sed 's/^/| /' "$ac_site_file" >&5
1411     . "$ac_site_file"
1412   fi
1413 done
1414
1415 if test -r "$cache_file"; then
1416   # Some versions of bash will fail to source /dev/null (special
1417   # files actually), so we avoid doing that.
1418   if test -f "$cache_file"; then
1419     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420 echo "$as_me: loading cache $cache_file" >&6;}
1421     case $cache_file in
1422       [\\/]* | ?:[\\/]* ) . $cache_file;;
1423       *)                      . ./$cache_file;;
1424     esac
1425   fi
1426 else
1427   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428 echo "$as_me: creating cache $cache_file" >&6;}
1429   >$cache_file
1430 fi
1431
1432 # Check that the precious variables saved in the cache have kept the same
1433 # value.
1434 ac_cache_corrupted=false
1435 for ac_var in `(set) 2>&1 |
1436                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438   eval ac_new_set=\$ac_env_${ac_var}_set
1439   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440   eval ac_new_val="\$ac_env_${ac_var}_value"
1441   case $ac_old_set,$ac_new_set in
1442     set,)
1443       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445       ac_cache_corrupted=: ;;
1446     ,set)
1447       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449       ac_cache_corrupted=: ;;
1450     ,);;
1451     *)
1452       if test "x$ac_old_val" != "x$ac_new_val"; then
1453         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1456 echo "$as_me:   former value:  $ac_old_val" >&2;}
1457         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1458 echo "$as_me:   current value: $ac_new_val" >&2;}
1459         ac_cache_corrupted=:
1460       fi;;
1461   esac
1462   # Pass precious variables to config.status.
1463   if test "$ac_new_set" = set; then
1464     case $ac_new_val in
1465     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467     *) ac_arg=$ac_var=$ac_new_val ;;
1468     esac
1469     case " $ac_configure_args " in
1470       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1471       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472     esac
1473   fi
1474 done
1475 if $ac_cache_corrupted; then
1476   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480    { (exit 1); exit 1; }; }
1481 fi
1482
1483 ac_ext=c
1484 ac_cpp='$CPP $CPPFLAGS'
1485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517 ac_aux_dir=
1518 for ac_dir in config $srcdir/config; do
1519   if test -f $ac_dir/install-sh; then
1520     ac_aux_dir=$ac_dir
1521     ac_install_sh="$ac_aux_dir/install-sh -c"
1522     break
1523   elif test -f $ac_dir/install.sh; then
1524     ac_aux_dir=$ac_dir
1525     ac_install_sh="$ac_aux_dir/install.sh -c"
1526     break
1527   elif test -f $ac_dir/shtool; then
1528     ac_aux_dir=$ac_dir
1529     ac_install_sh="$ac_aux_dir/shtool install -c"
1530     break
1531   fi
1532 done
1533 if test -z "$ac_aux_dir"; then
1534   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1535 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1536    { (exit 1); exit 1; }; }
1537 fi
1538 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541
1542           ac_config_headers="$ac_config_headers config/config.h"
1543
1544 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1545 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1546     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1547 if test "${enable_maintainer_mode+set}" = set; then
1548   enableval="$enable_maintainer_mode"
1549   USE_MAINTAINER_MODE=$enableval
1550 else
1551   USE_MAINTAINER_MODE=no
1552 fi;
1553   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1554 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1555
1556
1557 if test $USE_MAINTAINER_MODE = yes; then
1558   MAINTAINER_MODE_TRUE=
1559   MAINTAINER_MODE_FALSE='#'
1560 else
1561   MAINTAINER_MODE_TRUE='#'
1562   MAINTAINER_MODE_FALSE=
1563 fi
1564
1565   MAINT=$MAINTAINER_MODE_TRUE
1566
1567
1568
1569 # Checks for programs.
1570 ac_ext=c
1571 ac_cpp='$CPP $CPPFLAGS'
1572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1575 if test -n "$ac_tool_prefix"; then
1576   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1577 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_CC+set}" = set; then
1581   echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583   if test -n "$CC"; then
1584   ac_cv_prog_CC="$CC" # Let the user override the test.
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589   IFS=$as_save_IFS
1590   test -z "$as_dir" && as_dir=.
1591   for ac_exec_ext in '' $ac_executable_extensions; do
1592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595     break 2
1596   fi
1597 done
1598 done
1599
1600 fi
1601 fi
1602 CC=$ac_cv_prog_CC
1603 if test -n "$CC"; then
1604   echo "$as_me:$LINENO: result: $CC" >&5
1605 echo "${ECHO_T}$CC" >&6
1606 else
1607   echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1609 fi
1610
1611 fi
1612 if test -z "$ac_cv_prog_CC"; then
1613   ac_ct_CC=$CC
1614   # Extract the first word of "gcc", so it can be a program name with args.
1615 set dummy gcc; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1619   echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621   if test -n "$ac_ct_CC"; then
1622   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1623 else
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627   IFS=$as_save_IFS
1628   test -z "$as_dir" && as_dir=.
1629   for ac_exec_ext in '' $ac_executable_extensions; do
1630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631     ac_cv_prog_ac_ct_CC="gcc"
1632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633     break 2
1634   fi
1635 done
1636 done
1637
1638 fi
1639 fi
1640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1641 if test -n "$ac_ct_CC"; then
1642   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1643 echo "${ECHO_T}$ac_ct_CC" >&6
1644 else
1645   echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647 fi
1648
1649   CC=$ac_ct_CC
1650 else
1651   CC="$ac_cv_prog_CC"
1652 fi
1653
1654 if test -z "$CC"; then
1655   if test -n "$ac_tool_prefix"; then
1656   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1657 set dummy ${ac_tool_prefix}cc; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_CC+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   if test -n "$CC"; then
1664   ac_cv_prog_CC="$CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   for ac_exec_ext in '' $ac_executable_extensions; do
1672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673     ac_cv_prog_CC="${ac_tool_prefix}cc"
1674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675     break 2
1676   fi
1677 done
1678 done
1679
1680 fi
1681 fi
1682 CC=$ac_cv_prog_CC
1683 if test -n "$CC"; then
1684   echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1686 else
1687   echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691 fi
1692 if test -z "$ac_cv_prog_CC"; then
1693   ac_ct_CC=$CC
1694   # Extract the first word of "cc", so it can be a program name with args.
1695 set dummy cc; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   if test -n "$ac_ct_CC"; then
1702   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   for ac_exec_ext in '' $ac_executable_extensions; do
1710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711     ac_cv_prog_ac_ct_CC="cc"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 fi
1719 fi
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1724 else
1725   echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729   CC=$ac_ct_CC
1730 else
1731   CC="$ac_cv_prog_CC"
1732 fi
1733
1734 fi
1735 if test -z "$CC"; then
1736   # Extract the first word of "cc", so it can be a program name with args.
1737 set dummy cc; ac_word=$2
1738 echo "$as_me:$LINENO: checking for $ac_word" >&5
1739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740 if test "${ac_cv_prog_CC+set}" = set; then
1741   echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743   if test -n "$CC"; then
1744   ac_cv_prog_CC="$CC" # Let the user override the test.
1745 else
1746   ac_prog_rejected=no
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750   IFS=$as_save_IFS
1751   test -z "$as_dir" && as_dir=.
1752   for ac_exec_ext in '' $ac_executable_extensions; do
1753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1755        ac_prog_rejected=yes
1756        continue
1757      fi
1758     ac_cv_prog_CC="cc"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 if test $ac_prog_rejected = yes; then
1766   # We found a bogon in the path, so make sure we never use it.
1767   set dummy $ac_cv_prog_CC
1768   shift
1769   if test $# != 0; then
1770     # We chose a different compiler from the bogus one.
1771     # However, it has the same basename, so the bogon will be chosen
1772     # first if we set CC to just the basename; use the full file name.
1773     shift
1774     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1775   fi
1776 fi
1777 fi
1778 fi
1779 CC=$ac_cv_prog_CC
1780 if test -n "$CC"; then
1781   echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788 fi
1789 if test -z "$CC"; then
1790   if test -n "$ac_tool_prefix"; then
1791   for ac_prog in cl
1792   do
1793     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798   echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800   if test -n "$CC"; then
1801   ac_cv_prog_CC="$CC" # Let the user override the test.
1802 else
1803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804 for as_dir in $PATH
1805 do
1806   IFS=$as_save_IFS
1807   test -z "$as_dir" && as_dir=.
1808   for ac_exec_ext in '' $ac_executable_extensions; do
1809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812     break 2
1813   fi
1814 done
1815 done
1816
1817 fi
1818 fi
1819 CC=$ac_cv_prog_CC
1820 if test -n "$CC"; then
1821   echo "$as_me:$LINENO: result: $CC" >&5
1822 echo "${ECHO_T}$CC" >&6
1823 else
1824   echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1826 fi
1827
1828     test -n "$CC" && break
1829   done
1830 fi
1831 if test -z "$CC"; then
1832   ac_ct_CC=$CC
1833   for ac_prog in cl
1834 do
1835   # Extract the first word of "$ac_prog", so it can be a program name with args.
1836 set dummy $ac_prog; ac_word=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1840   echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842   if test -n "$ac_ct_CC"; then
1843   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1844 else
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1847 do
1848   IFS=$as_save_IFS
1849   test -z "$as_dir" && as_dir=.
1850   for ac_exec_ext in '' $ac_executable_extensions; do
1851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852     ac_cv_prog_ac_ct_CC="$ac_prog"
1853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854     break 2
1855   fi
1856 done
1857 done
1858
1859 fi
1860 fi
1861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1862 if test -n "$ac_ct_CC"; then
1863   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1864 echo "${ECHO_T}$ac_ct_CC" >&6
1865 else
1866   echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868 fi
1869
1870   test -n "$ac_ct_CC" && break
1871 done
1872
1873   CC=$ac_ct_CC
1874 fi
1875
1876 fi
1877
1878
1879 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1880 See \`config.log' for more details." >&5
1881 echo "$as_me: error: no acceptable C compiler found in \$PATH
1882 See \`config.log' for more details." >&2;}
1883    { (exit 1); exit 1; }; }
1884
1885 # Provide some information about the compiler.
1886 echo "$as_me:$LINENO:" \
1887      "checking for C compiler version" >&5
1888 ac_compiler=`set X $ac_compile; echo $2`
1889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1890   (eval $ac_compiler --version </dev/null >&5) 2>&5
1891   ac_status=$?
1892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893   (exit $ac_status); }
1894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1895   (eval $ac_compiler -v </dev/null >&5) 2>&5
1896   ac_status=$?
1897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898   (exit $ac_status); }
1899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1900   (eval $ac_compiler -V </dev/null >&5) 2>&5
1901   ac_status=$?
1902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903   (exit $ac_status); }
1904
1905 cat >conftest.$ac_ext <<_ACEOF
1906 /* confdefs.h.  */
1907 _ACEOF
1908 cat confdefs.h >>conftest.$ac_ext
1909 cat >>conftest.$ac_ext <<_ACEOF
1910 /* end confdefs.h.  */
1911
1912 int
1913 main ()
1914 {
1915
1916   ;
1917   return 0;
1918 }
1919 _ACEOF
1920 ac_clean_files_save=$ac_clean_files
1921 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1922 # Try to create an executable without -o first, disregard a.out.
1923 # It will help us diagnose broken compilers, and finding out an intuition
1924 # of exeext.
1925 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1926 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1927 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1928 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1929   (eval $ac_link_default) 2>&5
1930   ac_status=$?
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); }; then
1933   # Find the output, starting from the most likely.  This scheme is
1934 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1935 # resort.
1936
1937 # Be careful to initialize this variable, since it used to be cached.
1938 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1939 ac_cv_exeext=
1940 # b.out is created by i960 compilers.
1941 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1942 do
1943   test -f "$ac_file" || continue
1944   case $ac_file in
1945     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1946         ;;
1947     conftest.$ac_ext )
1948         # This is the source file.
1949         ;;
1950     [ab].out )
1951         # We found the default executable, but exeext='' is most
1952         # certainly right.
1953         break;;
1954     *.* )
1955         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1956         # FIXME: I believe we export ac_cv_exeext for Libtool,
1957         # but it would be cool to find out if it's true.  Does anybody
1958         # maintain Libtool? --akim.
1959         export ac_cv_exeext
1960         break;;
1961     * )
1962         break;;
1963   esac
1964 done
1965 else
1966   echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1970 See \`config.log' for more details." >&5
1971 echo "$as_me: error: C compiler cannot create executables
1972 See \`config.log' for more details." >&2;}
1973    { (exit 77); exit 77; }; }
1974 fi
1975
1976 ac_exeext=$ac_cv_exeext
1977 echo "$as_me:$LINENO: result: $ac_file" >&5
1978 echo "${ECHO_T}$ac_file" >&6
1979
1980 # Check the compiler produces executables we can run.  If not, either
1981 # the compiler is broken, or we cross compile.
1982 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1983 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1984 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1985 # If not cross compiling, check that we can run a simple program.
1986 if test "$cross_compiling" != yes; then
1987   if { ac_try='./$ac_file'
1988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989   (eval $ac_try) 2>&5
1990   ac_status=$?
1991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992   (exit $ac_status); }; }; then
1993     cross_compiling=no
1994   else
1995     if test "$cross_compiling" = maybe; then
1996         cross_compiling=yes
1997     else
1998         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1999 If you meant to cross compile, use \`--host'.
2000 See \`config.log' for more details." >&5
2001 echo "$as_me: error: cannot run C compiled programs.
2002 If you meant to cross compile, use \`--host'.
2003 See \`config.log' for more details." >&2;}
2004    { (exit 1); exit 1; }; }
2005     fi
2006   fi
2007 fi
2008 echo "$as_me:$LINENO: result: yes" >&5
2009 echo "${ECHO_T}yes" >&6
2010
2011 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2012 ac_clean_files=$ac_clean_files_save
2013 # Check the compiler produces executables we can run.  If not, either
2014 # the compiler is broken, or we cross compile.
2015 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2016 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2017 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2018 echo "${ECHO_T}$cross_compiling" >&6
2019
2020 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2021 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2023   (eval $ac_link) 2>&5
2024   ac_status=$?
2025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026   (exit $ac_status); }; then
2027   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2028 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2029 # work properly (i.e., refer to `conftest.exe'), while it won't with
2030 # `rm'.
2031 for ac_file in conftest.exe conftest conftest.*; do
2032   test -f "$ac_file" || continue
2033   case $ac_file in
2034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2035     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2036           export ac_cv_exeext
2037           break;;
2038     * ) break;;
2039   esac
2040 done
2041 else
2042   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2045 See \`config.log' for more details." >&2;}
2046    { (exit 1); exit 1; }; }
2047 fi
2048
2049 rm -f conftest$ac_cv_exeext
2050 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2051 echo "${ECHO_T}$ac_cv_exeext" >&6
2052
2053 rm -f conftest.$ac_ext
2054 EXEEXT=$ac_cv_exeext
2055 ac_exeext=$EXEEXT
2056 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2057 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2058 if test "${ac_cv_objext+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   cat >conftest.$ac_ext <<_ACEOF
2062 /* confdefs.h.  */
2063 _ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h.  */
2067
2068 int
2069 main ()
2070 {
2071
2072   ;
2073   return 0;
2074 }
2075 _ACEOF
2076 rm -f conftest.o conftest.obj
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078   (eval $ac_compile) 2>&5
2079   ac_status=$?
2080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081   (exit $ac_status); }; then
2082   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2083   case $ac_file in
2084     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2085     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2086        break;;
2087   esac
2088 done
2089 else
2090   echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2094 See \`config.log' for more details." >&5
2095 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2096 See \`config.log' for more details." >&2;}
2097    { (exit 1); exit 1; }; }
2098 fi
2099
2100 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2101 fi
2102 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2103 echo "${ECHO_T}$ac_cv_objext" >&6
2104 OBJEXT=$ac_cv_objext
2105 ac_objext=$OBJEXT
2106 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2107 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2108 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2109   echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111   cat >conftest.$ac_ext <<_ACEOF
2112 /* confdefs.h.  */
2113 _ACEOF
2114 cat confdefs.h >>conftest.$ac_ext
2115 cat >>conftest.$ac_ext <<_ACEOF
2116 /* end confdefs.h.  */
2117
2118 int
2119 main ()
2120 {
2121 #ifndef __GNUC__
2122        choke me
2123 #endif
2124
2125   ;
2126   return 0;
2127 }
2128 _ACEOF
2129 rm -f conftest.$ac_objext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131   (eval $ac_compile) 2>conftest.er1
2132   ac_status=$?
2133   grep -v '^ *+' conftest.er1 >conftest.err
2134   rm -f conftest.er1
2135   cat conftest.err >&5
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); } &&
2138          { ac_try='test -z "$ac_c_werror_flag"
2139                          || test ! -s conftest.err'
2140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141   (eval $ac_try) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }; } &&
2145          { ac_try='test -s conftest.$ac_objext'
2146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147   (eval $ac_try) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }; }; then
2151   ac_compiler_gnu=yes
2152 else
2153   echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2155
2156 ac_compiler_gnu=no
2157 fi
2158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2159 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2160
2161 fi
2162 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2163 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2164 GCC=`test $ac_compiler_gnu = yes && echo yes`
2165 ac_test_CFLAGS=${CFLAGS+set}
2166 ac_save_CFLAGS=$CFLAGS
2167 CFLAGS="-g"
2168 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2169 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2170 if test "${ac_cv_prog_cc_g+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   cat >conftest.$ac_ext <<_ACEOF
2174 /* confdefs.h.  */
2175 _ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h.  */
2179
2180 int
2181 main ()
2182 {
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_cv_prog_cc_g=yes
2211 else
2212   echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 ac_cv_prog_cc_g=no
2216 fi
2217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218 fi
2219 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2220 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2221 if test "$ac_test_CFLAGS" = set; then
2222   CFLAGS=$ac_save_CFLAGS
2223 elif test $ac_cv_prog_cc_g = yes; then
2224   if test "$GCC" = yes; then
2225     CFLAGS="-g -O2"
2226   else
2227     CFLAGS="-g"
2228   fi
2229 else
2230   if test "$GCC" = yes; then
2231     CFLAGS="-O2"
2232   else
2233     CFLAGS=
2234   fi
2235 fi
2236 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2237 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2238 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   ac_cv_prog_cc_stdc=no
2242 ac_save_CC=$CC
2243 cat >conftest.$ac_ext <<_ACEOF
2244 /* confdefs.h.  */
2245 _ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h.  */
2249 #include <stdarg.h>
2250 #include <stdio.h>
2251 #include <sys/types.h>
2252 #include <sys/stat.h>
2253 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2254 struct buf { int x; };
2255 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2256 static char *e (p, i)
2257      char **p;
2258      int i;
2259 {
2260   return p[i];
2261 }
2262 static char *f (char * (*g) (char **, int), char **p, ...)
2263 {
2264   char *s;
2265   va_list v;
2266   va_start (v,p);
2267   s = g (p, va_arg (v,int));
2268   va_end (v);
2269   return s;
2270 }
2271
2272 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2273    function prototypes and stuff, but not '\xHH' hex character constants.
2274    These don't provoke an error unfortunately, instead are silently treated
2275    as 'x'.  The following induces an error, until -std1 is added to get
2276    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2277    array size at least.  It's necessary to write '\x00'==0 to get something
2278    that's true only with -std1.  */
2279 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2280
2281 int test (int i, double x);
2282 struct s1 {int (*f) (int a);};
2283 struct s2 {int (*f) (double a);};
2284 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2285 int argc;
2286 char **argv;
2287 int
2288 main ()
2289 {
2290 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 # Don't try gcc -ansi; that turns off useful extensions and
2296 # breaks some systems' header files.
2297 # AIX                   -qlanglvl=ansi
2298 # Ultrix and OSF/1      -std1
2299 # HP-UX 10.20 and later -Ae
2300 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2301 # SVR4                  -Xc -D__EXTENSIONS__
2302 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2303 do
2304   CC="$ac_save_CC $ac_arg"
2305   rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>conftest.er1
2308   ac_status=$?
2309   grep -v '^ *+' conftest.er1 >conftest.err
2310   rm -f conftest.er1
2311   cat conftest.err >&5
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -z "$ac_c_werror_flag"
2315                          || test ! -s conftest.err'
2316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317   (eval $ac_try) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; } &&
2321          { ac_try='test -s conftest.$ac_objext'
2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323   (eval $ac_try) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; }; then
2327   ac_cv_prog_cc_stdc=$ac_arg
2328 break
2329 else
2330   echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2332
2333 fi
2334 rm -f conftest.err conftest.$ac_objext
2335 done
2336 rm -f conftest.$ac_ext conftest.$ac_objext
2337 CC=$ac_save_CC
2338
2339 fi
2340
2341 case "x$ac_cv_prog_cc_stdc" in
2342   x|xno)
2343     echo "$as_me:$LINENO: result: none needed" >&5
2344 echo "${ECHO_T}none needed" >&6 ;;
2345   *)
2346     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2347 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2348     CC="$CC $ac_cv_prog_cc_stdc" ;;
2349 esac
2350
2351 # Some people use a C++ compiler to compile C.  Since we use `exit',
2352 # in C++ we need to declare it.  In case someone uses the same compiler
2353 # for both compiling C and C++ we need to have the C++ compiler decide
2354 # the declaration of exit, since it's the most demanding environment.
2355 cat >conftest.$ac_ext <<_ACEOF
2356 #ifndef __cplusplus
2357   choke me
2358 #endif
2359 _ACEOF
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362   (eval $ac_compile) 2>conftest.er1
2363   ac_status=$?
2364   grep -v '^ *+' conftest.er1 >conftest.err
2365   rm -f conftest.er1
2366   cat conftest.err >&5
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); } &&
2369          { ac_try='test -z "$ac_c_werror_flag"
2370                          || test ! -s conftest.err'
2371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372   (eval $ac_try) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; } &&
2376          { ac_try='test -s conftest.$ac_objext'
2377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378   (eval $ac_try) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; }; then
2382   for ac_declaration in \
2383    '' \
2384    'extern "C" void std::exit (int) throw (); using std::exit;' \
2385    'extern "C" void std::exit (int); using std::exit;' \
2386    'extern "C" void exit (int) throw ();' \
2387    'extern "C" void exit (int);' \
2388    'void exit (int);'
2389 do
2390   cat >conftest.$ac_ext <<_ACEOF
2391 /* confdefs.h.  */
2392 _ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h.  */
2396 $ac_declaration
2397 #include <stdlib.h>
2398 int
2399 main ()
2400 {
2401 exit (42);
2402   ;
2403   return 0;
2404 }
2405 _ACEOF
2406 rm -f conftest.$ac_objext
2407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408   (eval $ac_compile) 2>conftest.er1
2409   ac_status=$?
2410   grep -v '^ *+' conftest.er1 >conftest.err
2411   rm -f conftest.er1
2412   cat conftest.err >&5
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); } &&
2415          { ac_try='test -z "$ac_c_werror_flag"
2416                          || test ! -s conftest.err'
2417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418   (eval $ac_try) 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; } &&
2422          { ac_try='test -s conftest.$ac_objext'
2423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424   (eval $ac_try) 2>&5
2425   ac_status=$?
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); }; }; then
2428   :
2429 else
2430   echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2432
2433 continue
2434 fi
2435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2436   cat >conftest.$ac_ext <<_ACEOF
2437 /* confdefs.h.  */
2438 _ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h.  */
2442 $ac_declaration
2443 int
2444 main ()
2445 {
2446 exit (42);
2447   ;
2448   return 0;
2449 }
2450 _ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453   (eval $ac_compile) 2>conftest.er1
2454   ac_status=$?
2455   grep -v '^ *+' conftest.er1 >conftest.err
2456   rm -f conftest.er1
2457   cat conftest.err >&5
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); } &&
2460          { ac_try='test -z "$ac_c_werror_flag"
2461                          || test ! -s conftest.err'
2462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463   (eval $ac_try) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }; } &&
2467          { ac_try='test -s conftest.$ac_objext'
2468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469   (eval $ac_try) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; }; then
2473   break
2474 else
2475   echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2477
2478 fi
2479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2480 done
2481 rm -f conftest*
2482 if test -n "$ac_declaration"; then
2483   echo '#ifdef __cplusplus' >>confdefs.h
2484   echo $ac_declaration      >>confdefs.h
2485   echo '#endif'             >>confdefs.h
2486 fi
2487
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 fi
2493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494 ac_ext=c
2495 ac_cpp='$CPP $CPPFLAGS'
2496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2499
2500 # Find a good install program.  We prefer a C program (faster),
2501 # so one script is as good as another.  But avoid the broken or
2502 # incompatible versions:
2503 # SysV /etc/install, /usr/sbin/install
2504 # SunOS /usr/etc/install
2505 # IRIX /sbin/install
2506 # AIX /bin/install
2507 # AmigaOS /C/install, which installs bootblocks on floppy discs
2508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2511 # OS/2's system install, which has a completely different semantic
2512 # ./install, which can be erroneously created by make from ./install.sh.
2513 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2514 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2515 if test -z "$INSTALL"; then
2516 if test "${ac_cv_path_install+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522   IFS=$as_save_IFS
2523   test -z "$as_dir" && as_dir=.
2524   # Account for people who put trailing slashes in PATH elements.
2525 case $as_dir/ in
2526   ./ | .// | /cC/* | \
2527   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2528   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2529   /usr/ucb/* ) ;;
2530   *)
2531     # OSF1 and SCO ODT 3.0 have their own names for install.
2532     # Don't use installbsd from OSF since it installs stuff as root
2533     # by default.
2534     for ac_prog in ginstall scoinst install; do
2535       for ac_exec_ext in '' $ac_executable_extensions; do
2536         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2537           if test $ac_prog = install &&
2538             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539             # AIX install.  It has an incompatible calling convention.
2540             :
2541           elif test $ac_prog = install &&
2542             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543             # program-specific install script used by HP pwplus--don't use.
2544             :
2545           else
2546             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2547             break 3
2548           fi
2549         fi
2550       done
2551     done
2552     ;;
2553 esac
2554 done
2555
2556
2557 fi
2558   if test "${ac_cv_path_install+set}" = set; then
2559     INSTALL=$ac_cv_path_install
2560   else
2561     # As a last resort, use the slow shell script.  We don't cache a
2562     # path for INSTALL within a source directory, because that will
2563     # break other packages using the cache if that directory is
2564     # removed, or if the path is relative.
2565     INSTALL=$ac_install_sh
2566   fi
2567 fi
2568 echo "$as_me:$LINENO: result: $INSTALL" >&5
2569 echo "${ECHO_T}$INSTALL" >&6
2570
2571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572 # It thinks the first close brace ends the variable substitution.
2573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574
2575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576
2577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578
2579 # Check whether --enable-shared or --disable-shared was given.
2580 if test "${enable_shared+set}" = set; then
2581   enableval="$enable_shared"
2582   p=${PACKAGE-default}
2583     case $enableval in
2584     yes) enable_shared=yes ;;
2585     no) enable_shared=no ;;
2586     *)
2587       enable_shared=no
2588       # Look at the argument we got.  We use all the common list separators.
2589       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2590       for pkg in $enableval; do
2591         IFS="$lt_save_ifs"
2592         if test "X$pkg" = "X$p"; then
2593           enable_shared=yes
2594         fi
2595       done
2596       IFS="$lt_save_ifs"
2597       ;;
2598     esac
2599 else
2600   enable_shared=yes
2601 fi;
2602
2603 # Check whether --enable-static or --disable-static was given.
2604 if test "${enable_static+set}" = set; then
2605   enableval="$enable_static"
2606   p=${PACKAGE-default}
2607     case $enableval in
2608     yes) enable_static=yes ;;
2609     no) enable_static=no ;;
2610     *)
2611      enable_static=no
2612       # Look at the argument we got.  We use all the common list separators.
2613       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2614       for pkg in $enableval; do
2615         IFS="$lt_save_ifs"
2616         if test "X$pkg" = "X$p"; then
2617           enable_static=yes
2618         fi
2619       done
2620       IFS="$lt_save_ifs"
2621       ;;
2622     esac
2623 else
2624   enable_static=yes
2625 fi;
2626
2627 # Check whether --enable-fast-install or --disable-fast-install was given.
2628 if test "${enable_fast_install+set}" = set; then
2629   enableval="$enable_fast_install"
2630   p=${PACKAGE-default}
2631     case $enableval in
2632     yes) enable_fast_install=yes ;;
2633     no) enable_fast_install=no ;;
2634     *)
2635       enable_fast_install=no
2636       # Look at the argument we got.  We use all the common list separators.
2637       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2638       for pkg in $enableval; do
2639         IFS="$lt_save_ifs"
2640         if test "X$pkg" = "X$p"; then
2641           enable_fast_install=yes
2642         fi
2643       done
2644       IFS="$lt_save_ifs"
2645       ;;
2646     esac
2647 else
2648   enable_fast_install=yes
2649 fi;
2650
2651 # Make sure we can run config.sub.
2652 $ac_config_sub sun4 >/dev/null 2>&1 ||
2653   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2654 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2655    { (exit 1); exit 1; }; }
2656
2657 echo "$as_me:$LINENO: checking build system type" >&5
2658 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2659 if test "${ac_cv_build+set}" = set; then
2660   echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662   ac_cv_build_alias=$build_alias
2663 test -z "$ac_cv_build_alias" &&
2664   ac_cv_build_alias=`$ac_config_guess`
2665 test -z "$ac_cv_build_alias" &&
2666   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2667 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2668    { (exit 1); exit 1; }; }
2669 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2670   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2671 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2672    { (exit 1); exit 1; }; }
2673
2674 fi
2675 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2676 echo "${ECHO_T}$ac_cv_build" >&6
2677 build=$ac_cv_build
2678 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2679 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2680 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2681
2682
2683 echo "$as_me:$LINENO: checking host system type" >&5
2684 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2685 if test "${ac_cv_host+set}" = set; then
2686   echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688   ac_cv_host_alias=$host_alias
2689 test -z "$ac_cv_host_alias" &&
2690   ac_cv_host_alias=$ac_cv_build_alias
2691 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2692   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2693 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2694    { (exit 1); exit 1; }; }
2695
2696 fi
2697 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2698 echo "${ECHO_T}$ac_cv_host" >&6
2699 host=$ac_cv_host
2700 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2701 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2702 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2703
2704
2705 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2706 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2707 if test "${lt_cv_path_SED+set}" = set; then
2708   echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710   # Loop through the user's path and test for sed and gsed.
2711 # Then use that list of sed's as ones to test for truncation.
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715   IFS=$as_save_IFS
2716   test -z "$as_dir" && as_dir=.
2717   for lt_ac_prog in sed gsed; do
2718     for ac_exec_ext in '' $ac_executable_extensions; do
2719       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2720         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2721       fi
2722     done
2723   done
2724 done
2725 lt_ac_max=0
2726 lt_ac_count=0
2727 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2728 # along with /bin/sed that truncates output.
2729 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2730   test ! -f $lt_ac_sed && continue
2731   cat /dev/null > conftest.in
2732   lt_ac_count=0
2733   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2734   # Check for GNU sed and select it if it is found.
2735   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2736     lt_cv_path_SED=$lt_ac_sed
2737     break
2738   fi
2739   while true; do
2740     cat conftest.in conftest.in >conftest.tmp
2741     mv conftest.tmp conftest.in
2742     cp conftest.in conftest.nl
2743     echo >>conftest.nl
2744     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2745     cmp -s conftest.out conftest.nl || break
2746     # 10000 chars as input seems more than enough
2747     test $lt_ac_count -gt 10 && break
2748     lt_ac_count=`expr $lt_ac_count + 1`
2749     if test $lt_ac_count -gt $lt_ac_max; then
2750       lt_ac_max=$lt_ac_count
2751       lt_cv_path_SED=$lt_ac_sed
2752     fi
2753   done
2754 done
2755
2756 fi
2757
2758 SED=$lt_cv_path_SED
2759 echo "$as_me:$LINENO: result: $SED" >&5
2760 echo "${ECHO_T}$SED" >&6
2761
2762 echo "$as_me:$LINENO: checking for egrep" >&5
2763 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2764 if test "${ac_cv_prog_egrep+set}" = set; then
2765   echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2768     then ac_cv_prog_egrep='grep -E'
2769     else ac_cv_prog_egrep='egrep'
2770     fi
2771 fi
2772 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2773 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2774  EGREP=$ac_cv_prog_egrep
2775
2776
2777
2778 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2779 if test "${with_gnu_ld+set}" = set; then
2780   withval="$with_gnu_ld"
2781   test "$withval" = no || with_gnu_ld=yes
2782 else
2783   with_gnu_ld=no
2784 fi;
2785 ac_prog=ld
2786 if test "$GCC" = yes; then
2787   # Check if gcc -print-prog-name=ld gives a path.
2788   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2789 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2790   case $host in
2791   *-*-mingw*)
2792     # gcc leaves a trailing carriage return which upsets mingw
2793     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2794   *)
2795     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2796   esac
2797   case $ac_prog in
2798     # Accept absolute paths.
2799     [\\/]* | ?:[\\/]*)
2800       re_direlt='/[^/][^/]*/\.\./'
2801       # Canonicalize the pathname of ld
2802       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2803       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2804         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2805       done
2806       test -z "$LD" && LD="$ac_prog"
2807       ;;
2808   "")
2809     # If it fails, then pretend we aren't using GCC.
2810     ac_prog=ld
2811     ;;
2812   *)
2813     # If it is relative, then search for the first ld in PATH.
2814     with_gnu_ld=unknown
2815     ;;
2816   esac
2817 elif test "$with_gnu_ld" = yes; then
2818   echo "$as_me:$LINENO: checking for GNU ld" >&5
2819 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2820 else
2821   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2822 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2823 fi
2824 if test "${lt_cv_path_LD+set}" = set; then
2825   echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827   if test -z "$LD"; then
2828   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2829   for ac_dir in $PATH; do
2830     IFS="$lt_save_ifs"
2831     test -z "$ac_dir" && ac_dir=.
2832     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2833       lt_cv_path_LD="$ac_dir/$ac_prog"
2834       # Check to see if the program is GNU ld.  I'd rather use --version,
2835       # but apparently some variants of GNU ld only accept -v.
2836       # Break only if it was the GNU/non-GNU ld that we prefer.
2837       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2838       *GNU* | *'with BFD'*)
2839         test "$with_gnu_ld" != no && break
2840         ;;
2841       *)
2842         test "$with_gnu_ld" != yes && break
2843         ;;
2844       esac
2845     fi
2846   done
2847   IFS="$lt_save_ifs"
2848 else
2849   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2850 fi
2851 fi
2852
2853 LD="$lt_cv_path_LD"
2854 if test -n "$LD"; then
2855   echo "$as_me:$LINENO: result: $LD" >&5
2856 echo "${ECHO_T}$LD" >&6
2857 else
2858   echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2860 fi
2861 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2862 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2863    { (exit 1); exit 1; }; }
2864 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2865 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2866 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2867   echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869   # I'd rather use --version here, but apparently some GNU lds only accept -v.
2870 case `$LD -v 2>&1 </dev/null` in
2871 *GNU* | *'with BFD'*)
2872   lt_cv_prog_gnu_ld=yes
2873   ;;
2874 *)
2875   lt_cv_prog_gnu_ld=no
2876   ;;
2877 esac
2878 fi
2879 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2880 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2881 with_gnu_ld=$lt_cv_prog_gnu_ld
2882
2883
2884 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2885 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2886 if test "${lt_cv_ld_reload_flag+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889   lt_cv_ld_reload_flag='-r'
2890 fi
2891 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2892 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2893 reload_flag=$lt_cv_ld_reload_flag
2894 case $reload_flag in
2895 "" | " "*) ;;
2896 *) reload_flag=" $reload_flag" ;;
2897 esac
2898 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2899 case $host_os in
2900   darwin*)
2901     if test "$GCC" = yes; then
2902       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2903     else
2904       reload_cmds='$LD$reload_flag -o $output$reload_objs'
2905     fi
2906     ;;
2907 esac
2908
2909 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2910 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2911 if test "${lt_cv_path_NM+set}" = set; then
2912   echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914   if test -n "$NM"; then
2915   # Let the user override the test.
2916   lt_cv_path_NM="$NM"
2917 else
2918   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2919   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2920     IFS="$lt_save_ifs"
2921     test -z "$ac_dir" && ac_dir=.
2922     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2923     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2924       # Check to see if the nm accepts a BSD-compat flag.
2925       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2926       #   nm: unknown option "B" ignored
2927       # Tru64's nm complains that /dev/null is an invalid object file
2928       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2929       */dev/null* | *'Invalid file or object type'*)
2930         lt_cv_path_NM="$tmp_nm -B"
2931         break
2932         ;;
2933       *)
2934         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2935         */dev/null*)
2936           lt_cv_path_NM="$tmp_nm -p"
2937           break
2938           ;;
2939         *)
2940           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2941           continue # so that we can try to find one that supports BSD flags
2942           ;;
2943         esac
2944       esac
2945     fi
2946   done
2947   IFS="$lt_save_ifs"
2948   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2949 fi
2950 fi
2951 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2952 echo "${ECHO_T}$lt_cv_path_NM" >&6
2953 NM="$lt_cv_path_NM"
2954
2955 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2956 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2957 LN_S=$as_ln_s
2958 if test "$LN_S" = "ln -s"; then
2959   echo "$as_me:$LINENO: result: yes" >&5
2960 echo "${ECHO_T}yes" >&6
2961 else
2962   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2963 echo "${ECHO_T}no, using $LN_S" >&6
2964 fi
2965
2966 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2967 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2968 if test "${lt_cv_deplibs_check_method+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   lt_cv_file_magic_cmd='$MAGIC_CMD'
2972 lt_cv_file_magic_test_file=
2973 lt_cv_deplibs_check_method='unknown'
2974 # Need to set the preceding variable on all platforms that support
2975 # interlibrary dependencies.
2976 # 'none' -- dependencies not supported.
2977 # `unknown' -- same as none, but documents that we really don't know.
2978 # 'pass_all' -- all dependencies passed with no checks.
2979 # 'test_compile' -- check by making test program.
2980 # 'file_magic [[regex]]' -- check by looking for files in library path
2981 # which responds to the $file_magic_cmd with a given extended regex.
2982 # If you have `file' or equivalent on your system and you're not sure
2983 # whether `pass_all' will *always* work, you probably want this one.
2984
2985 case $host_os in
2986 aix4* | aix5*)
2987   lt_cv_deplibs_check_method=pass_all
2988   ;;
2989
2990 beos*)
2991   lt_cv_deplibs_check_method=pass_all
2992   ;;
2993
2994 bsdi[45]*)
2995   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2996   lt_cv_file_magic_cmd='/usr/bin/file -L'
2997   lt_cv_file_magic_test_file=/shlib/libc.so
2998   ;;
2999
3000 cygwin*)
3001   # func_win32_libid is a shell function defined in ltmain.sh
3002   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3003   lt_cv_file_magic_cmd='func_win32_libid'
3004   ;;
3005
3006 mingw* | pw32*)
3007   # Base MSYS/MinGW do not provide the 'file' command needed by
3008   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3009   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3010   lt_cv_file_magic_cmd='$OBJDUMP -f'
3011   ;;
3012
3013 darwin* | rhapsody*)
3014   lt_cv_deplibs_check_method=pass_all
3015   ;;
3016
3017 freebsd* | kfreebsd*-gnu | dragonfly*)
3018   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3019     case $host_cpu in
3020     i*86 )
3021       # Not sure whether the presence of OpenBSD here was a mistake.
3022       # Let's accept both of them until this is cleared up.
3023       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3024       lt_cv_file_magic_cmd=/usr/bin/file
3025       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3026       ;;
3027     esac
3028   else
3029     lt_cv_deplibs_check_method=pass_all
3030   fi
3031   ;;
3032
3033 gnu*)
3034   lt_cv_deplibs_check_method=pass_all
3035   ;;
3036
3037 hpux10.20* | hpux11*)
3038   lt_cv_file_magic_cmd=/usr/bin/file
3039   case $host_cpu in
3040   ia64*)
3041     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3042     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3043     ;;
3044   hppa*64*)
3045     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]'
3046     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3047     ;;
3048   *)
3049     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3050     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3051     ;;
3052   esac
3053   ;;
3054
3055 irix5* | irix6* | nonstopux*)
3056   case $LD in
3057   *-32|*"-32 ") libmagic=32-bit;;
3058   *-n32|*"-n32 ") libmagic=N32;;
3059   *-64|*"-64 ") libmagic=64-bit;;
3060   *) libmagic=never-match;;
3061   esac
3062   lt_cv_deplibs_check_method=pass_all
3063   ;;
3064
3065 # This must be Linux ELF.
3066 linux*)
3067   lt_cv_deplibs_check_method=pass_all
3068   ;;
3069
3070 netbsd*)
3071   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3072     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3073   else
3074     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3075   fi
3076   ;;
3077
3078 newos6*)
3079   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3080   lt_cv_file_magic_cmd=/usr/bin/file
3081   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3082   ;;
3083
3084 nto-qnx*)
3085   lt_cv_deplibs_check_method=unknown
3086   ;;
3087
3088 openbsd*)
3089   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3090     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3091   else
3092     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3093   fi
3094   ;;
3095
3096 osf3* | osf4* | osf5*)
3097   lt_cv_deplibs_check_method=pass_all
3098   ;;
3099
3100 sco3.2v5*)
3101   lt_cv_deplibs_check_method=pass_all
3102   ;;
3103
3104 solaris*)
3105   lt_cv_deplibs_check_method=pass_all
3106   ;;
3107
3108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3109   case $host_vendor in
3110   motorola)
3111     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]'
3112     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3113     ;;
3114   ncr)
3115     lt_cv_deplibs_check_method=pass_all
3116     ;;
3117   sequent)
3118     lt_cv_file_magic_cmd='/bin/file'
3119     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3120     ;;
3121   sni)
3122     lt_cv_file_magic_cmd='/bin/file'
3123     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3124     lt_cv_file_magic_test_file=/lib/libc.so
3125     ;;
3126   siemens)
3127     lt_cv_deplibs_check_method=pass_all
3128     ;;
3129   esac
3130   ;;
3131
3132 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3133   lt_cv_deplibs_check_method=pass_all
3134   ;;
3135 esac
3136
3137 fi
3138 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3139 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3140 file_magic_cmd=$lt_cv_file_magic_cmd
3141 deplibs_check_method=$lt_cv_deplibs_check_method
3142 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3143
3144
3145
3146
3147 # If no C compiler was specified, use CC.
3148 LTCC=${LTCC-"$CC"}
3149
3150 # Allow CC to be a program name with arguments.
3151 compiler=$CC
3152
3153
3154 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3155 if test "${enable_libtool_lock+set}" = set; then
3156   enableval="$enable_libtool_lock"
3157
3158 fi;
3159 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3160
3161 # Some flags need to be propagated to the compiler or linker for good
3162 # libtool support.
3163 case $host in
3164 ia64-*-hpux*)
3165   # Find out which ABI we are using.
3166   echo 'int i;' > conftest.$ac_ext
3167   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3168   (eval $ac_compile) 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; then
3172     case `/usr/bin/file conftest.$ac_objext` in
3173     *ELF-32*)
3174       HPUX_IA64_MODE="32"
3175       ;;
3176     *ELF-64*)
3177       HPUX_IA64_MODE="64"
3178       ;;
3179     esac
3180   fi
3181   rm -rf conftest*
3182   ;;
3183 *-*-irix6*)
3184   # Find out which ABI we are using.
3185   echo '#line 3185 "configure"' > conftest.$ac_ext
3186   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187   (eval $ac_compile) 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; then
3191    if test "$lt_cv_prog_gnu_ld" = yes; then
3192     case `/usr/bin/file conftest.$ac_objext` in
3193     *32-bit*)
3194       LD="${LD-ld} -melf32bsmip"
3195       ;;
3196     *N32*)
3197       LD="${LD-ld} -melf32bmipn32"
3198       ;;
3199     *64-bit*)
3200       LD="${LD-ld} -melf64bmip"
3201       ;;
3202     esac
3203    else
3204     case `/usr/bin/file conftest.$ac_objext` in
3205     *32-bit*)
3206       LD="${LD-ld} -32"
3207       ;;
3208     *N32*)
3209       LD="${LD-ld} -n32"
3210       ;;
3211     *64-bit*)
3212       LD="${LD-ld} -64"
3213       ;;
3214     esac
3215    fi
3216   fi
3217   rm -rf conftest*
3218   ;;
3219
3220 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3221   # Find out which ABI we are using.
3222   echo 'int i;' > conftest.$ac_ext
3223   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3224   (eval $ac_compile) 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); }; then
3228     case `/usr/bin/file conftest.o` in
3229     *32-bit*)
3230       case $host in
3231         x86_64-*linux*)
3232           LD="${LD-ld} -m elf_i386"
3233           ;;
3234         ppc64-*linux*|powerpc64-*linux*)
3235           LD="${LD-ld} -m elf32ppclinux"
3236           ;;
3237         s390x-*linux*)
3238           LD="${LD-ld} -m elf_s390"
3239           ;;
3240         sparc64-*linux*)
3241           LD="${LD-ld} -m elf32_sparc"
3242           ;;
3243       esac
3244       ;;
3245     *64-bit*)
3246       case $host in
3247         x86_64-*linux*)
3248           LD="${LD-ld} -m elf_x86_64"
3249           ;;
3250         ppc*-*linux*|powerpc*-*linux*)
3251           LD="${LD-ld} -m elf64ppc"
3252           ;;
3253         s390*-*linux*)
3254           LD="${LD-ld} -m elf64_s390"
3255           ;;
3256         sparc*-*linux*)
3257           LD="${LD-ld} -m elf64_sparc"
3258           ;;
3259       esac
3260       ;;
3261     esac
3262   fi
3263   rm -rf conftest*
3264   ;;
3265
3266 *-*-sco3.2v5*)
3267   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3268   SAVE_CFLAGS="$CFLAGS"
3269   CFLAGS="$CFLAGS -belf"
3270   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3271 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3272 if test "${lt_cv_cc_needs_belf+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281      cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287
3288 int
3289 main ()
3290 {
3291
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.$ac_objext conftest$ac_exeext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298   (eval $ac_link) 2>conftest.er1
3299   ac_status=$?
3300   grep -v '^ *+' conftest.er1 >conftest.err
3301   rm -f conftest.er1
3302   cat conftest.err >&5
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); } &&
3305          { ac_try='test -z "$ac_c_werror_flag"
3306                          || test ! -s conftest.err'
3307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308   (eval $ac_try) 2>&5
3309   ac_status=$?
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); }; } &&
3312          { ac_try='test -s conftest$ac_exeext'
3313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314   (eval $ac_try) 2>&5
3315   ac_status=$?
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); }; }; then
3318   lt_cv_cc_needs_belf=yes
3319 else
3320   echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323 lt_cv_cc_needs_belf=no
3324 fi
3325 rm -f conftest.err conftest.$ac_objext \
3326       conftest$ac_exeext conftest.$ac_ext
3327      ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
3333 fi
3334 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3335 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3336   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3337     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3338     CFLAGS="$SAVE_CFLAGS"
3339   fi
3340   ;;
3341
3342 esac
3343
3344 need_locks="$enable_libtool_lock"
3345
3346
3347 ac_ext=c
3348 ac_cpp='$CPP $CPPFLAGS'
3349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3353 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3354 # On Suns, sometimes $CPP names a directory.
3355 if test -n "$CPP" && test -d "$CPP"; then
3356   CPP=
3357 fi
3358 if test -z "$CPP"; then
3359   if test "${ac_cv_prog_CPP+set}" = set; then
3360   echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362       # Double quotes because CPP needs to be expanded
3363     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3364     do
3365       ac_preproc_ok=false
3366 for ac_c_preproc_warn_flag in '' yes
3367 do
3368   # Use a header file that comes with gcc, so configuring glibc
3369   # with a fresh cross-compiler works.
3370   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3371   # <limits.h> exists even on freestanding compilers.
3372   # On the NeXT, cc -E runs the code through the compiler's parser,
3373   # not just through cpp. "Syntax error" is here to catch this case.
3374   cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h.  */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h.  */
3380 #ifdef __STDC__
3381 # include <limits.h>
3382 #else
3383 # include <assert.h>
3384 #endif
3385                      Syntax error
3386 _ACEOF
3387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3389   ac_status=$?
3390   grep -v '^ *+' conftest.er1 >conftest.err
3391   rm -f conftest.er1
3392   cat conftest.err >&5
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); } >/dev/null; then
3395   if test -s conftest.err; then
3396     ac_cpp_err=$ac_c_preproc_warn_flag
3397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3398   else
3399     ac_cpp_err=
3400   fi
3401 else
3402   ac_cpp_err=yes
3403 fi
3404 if test -z "$ac_cpp_err"; then
3405   :
3406 else
3407   echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410   # Broken: fails on valid input.
3411 continue
3412 fi
3413 rm -f conftest.err conftest.$ac_ext
3414
3415   # OK, works on sane cases.  Now check whether non-existent headers
3416   # can be detected and how.
3417   cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #include <ac_nonexistent.h>
3424 _ACEOF
3425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3426   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3427   ac_status=$?
3428   grep -v '^ *+' conftest.er1 >conftest.err
3429   rm -f conftest.er1
3430   cat conftest.err >&5
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); } >/dev/null; then
3433   if test -s conftest.err; then
3434     ac_cpp_err=$ac_c_preproc_warn_flag
3435     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3436   else
3437     ac_cpp_err=
3438   fi
3439 else
3440   ac_cpp_err=yes
3441 fi
3442 if test -z "$ac_cpp_err"; then
3443   # Broken: success on invalid input.
3444 continue
3445 else
3446   echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449   # Passes both tests.
3450 ac_preproc_ok=:
3451 break
3452 fi
3453 rm -f conftest.err conftest.$ac_ext
3454
3455 done
3456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3457 rm -f conftest.err conftest.$ac_ext
3458 if $ac_preproc_ok; then
3459   break
3460 fi
3461
3462     done
3463     ac_cv_prog_CPP=$CPP
3464
3465 fi
3466   CPP=$ac_cv_prog_CPP
3467 else
3468   ac_cv_prog_CPP=$CPP
3469 fi
3470 echo "$as_me:$LINENO: result: $CPP" >&5
3471 echo "${ECHO_T}$CPP" >&6
3472 ac_preproc_ok=false
3473 for ac_c_preproc_warn_flag in '' yes
3474 do
3475   # Use a header file that comes with gcc, so configuring glibc
3476   # with a fresh cross-compiler works.
3477   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3478   # <limits.h> exists even on freestanding compilers.
3479   # On the NeXT, cc -E runs the code through the compiler's parser,
3480   # not just through cpp. "Syntax error" is here to catch this case.
3481   cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h.  */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h.  */
3487 #ifdef __STDC__
3488 # include <limits.h>
3489 #else
3490 # include <assert.h>
3491 #endif
3492                      Syntax error
3493 _ACEOF
3494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3495   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3496   ac_status=$?
3497   grep -v '^ *+' conftest.er1 >conftest.err
3498   rm -f conftest.er1
3499   cat conftest.err >&5
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); } >/dev/null; then
3502   if test -s conftest.err; then
3503     ac_cpp_err=$ac_c_preproc_warn_flag
3504     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3505   else
3506     ac_cpp_err=
3507   fi
3508 else
3509   ac_cpp_err=yes
3510 fi
3511 if test -z "$ac_cpp_err"; then
3512   :
3513 else
3514   echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517   # Broken: fails on valid input.
3518 continue
3519 fi
3520 rm -f conftest.err conftest.$ac_ext
3521
3522   # OK, works on sane cases.  Now check whether non-existent headers
3523   # can be detected and how.
3524   cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h.  */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h.  */
3530 #include <ac_nonexistent.h>
3531 _ACEOF
3532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3534   ac_status=$?
3535   grep -v '^ *+' conftest.er1 >conftest.err
3536   rm -f conftest.er1
3537   cat conftest.err >&5
3538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539   (exit $ac_status); } >/dev/null; then
3540   if test -s conftest.err; then
3541     ac_cpp_err=$ac_c_preproc_warn_flag
3542     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3543   else
3544     ac_cpp_err=
3545   fi
3546 else
3547   ac_cpp_err=yes
3548 fi
3549 if test -z "$ac_cpp_err"; then
3550   # Broken: success on invalid input.
3551 continue
3552 else
3553   echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556   # Passes both tests.
3557 ac_preproc_ok=:
3558 break
3559 fi
3560 rm -f conftest.err conftest.$ac_ext
3561
3562 done
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then
3566   :
3567 else
3568   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3569 See \`config.log' for more details." >&5
3570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3571 See \`config.log' for more details." >&2;}
3572    { (exit 1); exit 1; }; }
3573 fi
3574
3575 ac_ext=c
3576 ac_cpp='$CPP $CPPFLAGS'
3577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580
3581
3582 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3584 if test "${ac_cv_header_stdc+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593 #include <stdlib.h>
3594 #include <stdarg.h>
3595 #include <string.h>
3596 #include <float.h>
3597
3598 int
3599 main ()
3600 {
3601
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 rm -f conftest.$ac_objext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3608   (eval $ac_compile) 2>conftest.er1
3609   ac_status=$?
3610   grep -v '^ *+' conftest.er1 >conftest.err
3611   rm -f conftest.er1
3612   cat conftest.err >&5
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); } &&
3615          { ac_try='test -z "$ac_c_werror_flag"
3616                          || test ! -s conftest.err'
3617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618   (eval $ac_try) 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); }; } &&
3622          { ac_try='test -s conftest.$ac_objext'
3623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624   (eval $ac_try) 2>&5
3625   ac_status=$?
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); }; }; then
3628   ac_cv_header_stdc=yes
3629 else
3630   echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 ac_cv_header_stdc=no
3634 fi
3635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636
3637 if test $ac_cv_header_stdc = yes; then
3638   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3639   cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h.  */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h.  */
3645 #include <string.h>
3646
3647 _ACEOF
3648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3649   $EGREP "memchr" >/dev/null 2>&1; then
3650   :
3651 else
3652   ac_cv_header_stdc=no
3653 fi
3654 rm -f conftest*
3655
3656 fi
3657
3658 if test $ac_cv_header_stdc = yes; then
3659   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3660   cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h.  */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h.  */
3666 #include <stdlib.h>
3667
3668 _ACEOF
3669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3670   $EGREP "free" >/dev/null 2>&1; then
3671   :
3672 else
3673   ac_cv_header_stdc=no
3674 fi
3675 rm -f conftest*
3676
3677 fi
3678
3679 if test $ac_cv_header_stdc = yes; then
3680   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3681   if test "$cross_compiling" = yes; then
3682   :
3683 else
3684   cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h.  */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h.  */
3690 #include <ctype.h>
3691 #if ((' ' & 0x0FF) == 0x020)
3692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3694 #else
3695 # define ISLOWER(c) \
3696                    (('a' <= (c) && (c) <= 'i') \
3697                      || ('j' <= (c) && (c) <= 'r') \
3698                      || ('s' <= (c) && (c) <= 'z'))
3699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3700 #endif
3701
3702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3703 int
3704 main ()
3705 {
3706   int i;
3707   for (i = 0; i < 256; i++)
3708     if (XOR (islower (i), ISLOWER (i))
3709         || toupper (i) != TOUPPER (i))
3710       exit(2);
3711   exit (0);
3712 }
3713 _ACEOF
3714 rm -f conftest$ac_exeext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3716   (eval $ac_link) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721   (eval $ac_try) 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }; }; then
3725   :
3726 else
3727   echo "$as_me: program exited with status $ac_status" >&5
3728 echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 ( exit $ac_status )
3732 ac_cv_header_stdc=no
3733 fi
3734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3735 fi
3736 fi
3737 fi
3738 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3739 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3740 if test $ac_cv_header_stdc = yes; then
3741
3742 cat >>confdefs.h <<\_ACEOF
3743 #define STDC_HEADERS 1
3744 _ACEOF
3745
3746 fi
3747
3748 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3759                   inttypes.h stdint.h unistd.h
3760 do
3761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3762 echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767   cat >conftest.$ac_ext <<_ACEOF
3768 /* confdefs.h.  */
3769 _ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h.  */
3773 $ac_includes_default
3774
3775 #include <$ac_header>
3776 _ACEOF
3777 rm -f conftest.$ac_objext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779   (eval $ac_compile) 2>conftest.er1
3780   ac_status=$?
3781   grep -v '^ *+' conftest.er1 >conftest.err
3782   rm -f conftest.er1
3783   cat conftest.err >&5
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); } &&
3786          { ac_try='test -z "$ac_c_werror_flag"
3787                          || test ! -s conftest.err'
3788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789   (eval $ac_try) 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); }; } &&
3793          { ac_try='test -s conftest.$ac_objext'
3794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795   (eval $ac_try) 2>&5
3796   ac_status=$?
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); }; }; then
3799   eval "$as_ac_Header=yes"
3800 else
3801   echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 eval "$as_ac_Header=no"
3805 fi
3806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3807 fi
3808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3811   cat >>confdefs.h <<_ACEOF
3812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3813 _ACEOF
3814
3815 fi
3816
3817 done
3818
3819
3820
3821 for ac_header in dlfcn.h
3822 do
3823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3825   echo "$as_me:$LINENO: checking for $ac_header" >&5
3826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 fi
3830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3832 else
3833   # Is the header compilable?
3834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3836 cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h.  */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h.  */
3842 $ac_includes_default
3843 #include <$ac_header>
3844 _ACEOF
3845 rm -f conftest.$ac_objext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847   (eval $ac_compile) 2>conftest.er1
3848   ac_status=$?
3849   grep -v '^ *+' conftest.er1 >conftest.err
3850   rm -f conftest.er1
3851   cat conftest.err >&5
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); } &&
3854          { ac_try='test -z "$ac_c_werror_flag"
3855                          || test ! -s conftest.err'
3856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857   (eval $ac_try) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; } &&
3861          { ac_try='test -s conftest.$ac_objext'
3862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863   (eval $ac_try) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }; }; then
3867   ac_header_compiler=yes
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ac_header_compiler=no
3873 fi
3874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3876 echo "${ECHO_T}$ac_header_compiler" >&6
3877
3878 # Is the header present?
3879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h.  */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h.  */
3887 #include <$ac_header>
3888 _ACEOF
3889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3891   ac_status=$?
3892   grep -v '^ *+' conftest.er1 >conftest.err
3893   rm -f conftest.er1
3894   cat conftest.err >&5
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); } >/dev/null; then
3897   if test -s conftest.err; then
3898     ac_cpp_err=$ac_c_preproc_warn_flag
3899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3900   else
3901     ac_cpp_err=
3902   fi
3903 else
3904   ac_cpp_err=yes
3905 fi
3906 if test -z "$ac_cpp_err"; then
3907   ac_header_preproc=yes
3908 else
3909   echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912   ac_header_preproc=no
3913 fi
3914 rm -f conftest.err conftest.$ac_ext
3915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3916 echo "${ECHO_T}$ac_header_preproc" >&6
3917
3918 # So?  What about this header?
3919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3920   yes:no: )
3921     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3925     ac_header_preproc=yes
3926     ;;
3927   no:yes:* )
3928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3930     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3931 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3932     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3934     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3935 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3938     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3940     (
3941       cat <<\_ASBOX
3942 ## ----------------------------------------------- ##
3943 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
3944 ## ----------------------------------------------- ##
3945 _ASBOX
3946     ) |
3947       sed "s/^/$as_me: WARNING:     /" >&2
3948     ;;
3949 esac
3950 echo "$as_me:$LINENO: checking for $ac_header" >&5
3951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3953   echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955   eval "$as_ac_Header=\$ac_header_preproc"
3956 fi
3957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3959
3960 fi
3961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3962   cat >>confdefs.h <<_ACEOF
3963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3964 _ACEOF
3965
3966 fi
3967
3968 done
3969
3970 ac_ext=cc
3971 ac_cpp='$CXXCPP $CPPFLAGS'
3972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3975 if test -n "$ac_tool_prefix"; then
3976   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3977   do
3978     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_prog_CXX+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   if test -n "$CXX"; then
3986   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000 done
4001
4002 fi
4003 fi
4004 CXX=$ac_cv_prog_CXX
4005 if test -n "$CXX"; then
4006   echo "$as_me:$LINENO: result: $CXX" >&5
4007 echo "${ECHO_T}$CXX" >&6
4008 else
4009   echo "$as_me:$LINENO: result: no" >&5
4010 echo "${ECHO_T}no" >&6
4011 fi
4012
4013     test -n "$CXX" && break
4014   done
4015 fi
4016 if test -z "$CXX"; then
4017   ac_ct_CXX=$CXX
4018   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4019 do
4020   # Extract the first word of "$ac_prog", so it can be a program name with args.
4021 set dummy $ac_prog; ac_word=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   if test -n "$ac_ct_CXX"; then
4028   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4032 do
4033   IFS=$as_save_IFS
4034   test -z "$as_dir" && as_dir=.
4035   for ac_exec_ext in '' $ac_executable_extensions; do
4036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037     ac_cv_prog_ac_ct_CXX="$ac_prog"
4038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039     break 2
4040   fi
4041 done
4042 done
4043
4044 fi
4045 fi
4046 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4047 if test -n "$ac_ct_CXX"; then
4048   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4049 echo "${ECHO_T}$ac_ct_CXX" >&6
4050 else
4051   echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6
4053 fi
4054
4055   test -n "$ac_ct_CXX" && break
4056 done
4057 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4058
4059   CXX=$ac_ct_CXX
4060 fi
4061
4062
4063 # Provide some information about the compiler.
4064 echo "$as_me:$LINENO:" \
4065      "checking for C++ compiler version" >&5
4066 ac_compiler=`set X $ac_compile; echo $2`
4067 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4068   (eval $ac_compiler --version </dev/null >&5) 2>&5
4069   ac_status=$?
4070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071   (exit $ac_status); }
4072 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4073   (eval $ac_compiler -v </dev/null >&5) 2>&5
4074   ac_status=$?
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); }
4077 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4078   (eval $ac_compiler -V </dev/null >&5) 2>&5
4079   ac_status=$?
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); }
4082
4083 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4084 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4085 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h.  */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h.  */
4094
4095 int
4096 main ()
4097 {
4098 #ifndef __GNUC__
4099        choke me
4100 #endif
4101
4102   ;
4103   return 0;
4104 }
4105 _ACEOF
4106 rm -f conftest.$ac_objext
4107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108   (eval $ac_compile) 2>conftest.er1
4109   ac_status=$?
4110   grep -v '^ *+' conftest.er1 >conftest.err
4111   rm -f conftest.er1
4112   cat conftest.err >&5
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); } &&
4115          { ac_try='test -z "$ac_cxx_werror_flag"
4116                          || test ! -s conftest.err'
4117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118   (eval $ac_try) 2>&5
4119   ac_status=$?
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); }; } &&
4122          { ac_try='test -s conftest.$ac_objext'
4123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124   (eval $ac_try) 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; }; then
4128   ac_compiler_gnu=yes
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 ac_compiler_gnu=no
4134 fi
4135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4137
4138 fi
4139 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4140 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4141 GXX=`test $ac_compiler_gnu = yes && echo yes`
4142 ac_test_CXXFLAGS=${CXXFLAGS+set}
4143 ac_save_CXXFLAGS=$CXXFLAGS
4144 CXXFLAGS="-g"
4145 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4146 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4147 if test "${ac_cv_prog_cxx_g+set}" = set; then
4148   echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150   cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156
4157 int
4158 main ()
4159 {
4160
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167   (eval $ac_compile) 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } &&
4174          { ac_try='test -z "$ac_cxx_werror_flag"
4175                          || test ! -s conftest.err'
4176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177   (eval $ac_try) 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; } &&
4181          { ac_try='test -s conftest.$ac_objext'
4182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183   (eval $ac_try) 2>&5
4184   ac_status=$?
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); }; }; then
4187   ac_cv_prog_cxx_g=yes
4188 else
4189   echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4191
4192 ac_cv_prog_cxx_g=no
4193 fi
4194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4195 fi
4196 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4197 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4198 if test "$ac_test_CXXFLAGS" = set; then
4199   CXXFLAGS=$ac_save_CXXFLAGS
4200 elif test $ac_cv_prog_cxx_g = yes; then
4201   if test "$GXX" = yes; then
4202     CXXFLAGS="-g -O2"
4203   else
4204     CXXFLAGS="-g"
4205   fi
4206 else
4207   if test "$GXX" = yes; then
4208     CXXFLAGS="-O2"
4209   else
4210     CXXFLAGS=
4211   fi
4212 fi
4213 for ac_declaration in \
4214    '' \
4215    'extern "C" void std::exit (int) throw (); using std::exit;' \
4216    'extern "C" void std::exit (int); using std::exit;' \
4217    'extern "C" void exit (int) throw ();' \
4218    'extern "C" void exit (int);' \
4219    'void exit (int);'
4220 do
4221   cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h.  */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h.  */
4227 $ac_declaration
4228 #include <stdlib.h>
4229 int
4230 main ()
4231 {
4232 exit (42);
4233   ;
4234   return 0;
4235 }
4236 _ACEOF
4237 rm -f conftest.$ac_objext
4238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239   (eval $ac_compile) 2>conftest.er1
4240   ac_status=$?
4241   grep -v '^ *+' conftest.er1 >conftest.err
4242   rm -f conftest.er1
4243   cat conftest.err >&5
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); } &&
4246          { ac_try='test -z "$ac_cxx_werror_flag"
4247                          || test ! -s conftest.err'
4248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249   (eval $ac_try) 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; } &&
4253          { ac_try='test -s conftest.$ac_objext'
4254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255   (eval $ac_try) 2>&5
4256   ac_status=$?
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); }; }; then
4259   :
4260 else
4261   echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4263
4264 continue
4265 fi
4266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4267   cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273 $ac_declaration
4274 int
4275 main ()
4276 {
4277 exit (42);
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284   (eval $ac_compile) 2>conftest.er1
4285   ac_status=$?
4286   grep -v '^ *+' conftest.er1 >conftest.err
4287   rm -f conftest.er1
4288   cat conftest.err >&5
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); } &&
4291          { ac_try='test -z "$ac_cxx_werror_flag"
4292                          || test ! -s conftest.err'
4293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294   (eval $ac_try) 2>&5
4295   ac_status=$?
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); }; } &&
4298          { ac_try='test -s conftest.$ac_objext'
4299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300   (eval $ac_try) 2>&5
4301   ac_status=$?
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); }; }; then
4304   break
4305 else
4306   echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4308
4309 fi
4310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4311 done
4312 rm -f conftest*
4313 if test -n "$ac_declaration"; then
4314   echo '#ifdef __cplusplus' >>confdefs.h
4315   echo $ac_declaration      >>confdefs.h
4316   echo '#endif'             >>confdefs.h
4317 fi
4318
4319 ac_ext=cc
4320 ac_cpp='$CXXCPP $CPPFLAGS'
4321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4324
4325
4326
4327 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4328     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4329     (test "X$CXX" != "Xg++"))) ; then
4330   ac_ext=cc
4331 ac_cpp='$CXXCPP $CPPFLAGS'
4332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4335 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4336 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4337 if test -z "$CXXCPP"; then
4338   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341       # Double quotes because CXXCPP needs to be expanded
4342     for CXXCPP in "$CXX -E" "/lib/cpp"
4343     do
4344       ac_preproc_ok=false
4345 for ac_cxx_preproc_warn_flag in '' yes
4346 do
4347   # Use a header file that comes with gcc, so configuring glibc
4348   # with a fresh cross-compiler works.
4349   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350   # <limits.h> exists even on freestanding compilers.
4351   # On the NeXT, cc -E runs the code through the compiler's parser,
4352   # not just through cpp. "Syntax error" is here to catch this case.
4353   cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h.  */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h.  */
4359 #ifdef __STDC__
4360 # include <limits.h>
4361 #else
4362 # include <assert.h>
4363 #endif
4364                      Syntax error
4365 _ACEOF
4366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4368   ac_status=$?
4369   grep -v '^ *+' conftest.er1 >conftest.err
4370   rm -f conftest.er1
4371   cat conftest.err >&5
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } >/dev/null; then
4374   if test -s conftest.err; then
4375     ac_cpp_err=$ac_cxx_preproc_warn_flag
4376     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4377   else
4378     ac_cpp_err=
4379   fi
4380 else
4381   ac_cpp_err=yes
4382 fi
4383 if test -z "$ac_cpp_err"; then
4384   :
4385 else
4386   echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389   # Broken: fails on valid input.
4390 continue
4391 fi
4392 rm -f conftest.err conftest.$ac_ext
4393
4394   # OK, works on sane cases.  Now check whether non-existent headers
4395   # can be detected and how.
4396   cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h.  */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h.  */
4402 #include <ac_nonexistent.h>
4403 _ACEOF
4404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } >/dev/null; then
4412   if test -s conftest.err; then
4413     ac_cpp_err=$ac_cxx_preproc_warn_flag
4414     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4415   else
4416     ac_cpp_err=
4417   fi
4418 else
4419   ac_cpp_err=yes
4420 fi
4421 if test -z "$ac_cpp_err"; then
4422   # Broken: success on invalid input.
4423 continue
4424 else
4425   echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4427
4428   # Passes both tests.
4429 ac_preproc_ok=:
4430 break
4431 fi
4432 rm -f conftest.err conftest.$ac_ext
4433
4434 done
4435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4436 rm -f conftest.err conftest.$ac_ext
4437 if $ac_preproc_ok; then
4438   break
4439 fi
4440
4441     done
4442     ac_cv_prog_CXXCPP=$CXXCPP
4443
4444 fi
4445   CXXCPP=$ac_cv_prog_CXXCPP
4446 else
4447   ac_cv_prog_CXXCPP=$CXXCPP
4448 fi
4449 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4450 echo "${ECHO_T}$CXXCPP" >&6
4451 ac_preproc_ok=false
4452 for ac_cxx_preproc_warn_flag in '' yes
4453 do
4454   # Use a header file that comes with gcc, so configuring glibc
4455   # with a fresh cross-compiler works.
4456   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4457   # <limits.h> exists even on freestanding compilers.
4458   # On the NeXT, cc -E runs the code through the compiler's parser,
4459   # not just through cpp. "Syntax error" is here to catch this case.
4460   cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h.  */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h.  */
4466 #ifdef __STDC__
4467 # include <limits.h>
4468 #else
4469 # include <assert.h>
4470 #endif
4471                      Syntax error
4472 _ACEOF
4473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4475   ac_status=$?
4476   grep -v '^ *+' conftest.er1 >conftest.err
4477   rm -f conftest.er1
4478   cat conftest.err >&5
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); } >/dev/null; then
4481   if test -s conftest.err; then
4482     ac_cpp_err=$ac_cxx_preproc_warn_flag
4483     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4484   else
4485     ac_cpp_err=
4486   fi
4487 else
4488   ac_cpp_err=yes
4489 fi
4490 if test -z "$ac_cpp_err"; then
4491   :
4492 else
4493   echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496   # Broken: fails on valid input.
4497 continue
4498 fi
4499 rm -f conftest.err conftest.$ac_ext
4500
4501   # OK, works on sane cases.  Now check whether non-existent headers
4502   # can be detected and how.
4503   cat >conftest.$ac_ext <<_ACEOF
4504 /* confdefs.h.  */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h.  */
4509 #include <ac_nonexistent.h>
4510 _ACEOF
4511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4512   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4513   ac_status=$?
4514   grep -v '^ *+' conftest.er1 >conftest.err
4515   rm -f conftest.er1
4516   cat conftest.err >&5
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); } >/dev/null; then
4519   if test -s conftest.err; then
4520     ac_cpp_err=$ac_cxx_preproc_warn_flag
4521     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4522   else
4523     ac_cpp_err=
4524   fi
4525 else
4526   ac_cpp_err=yes
4527 fi
4528 if test -z "$ac_cpp_err"; then
4529   # Broken: success on invalid input.
4530 continue
4531 else
4532   echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4534
4535   # Passes both tests.
4536 ac_preproc_ok=:
4537 break
4538 fi
4539 rm -f conftest.err conftest.$ac_ext
4540
4541 done
4542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4543 rm -f conftest.err conftest.$ac_ext
4544 if $ac_preproc_ok; then
4545   :
4546 else
4547   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4548 See \`config.log' for more details." >&5
4549 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4550 See \`config.log' for more details." >&2;}
4551    { (exit 1); exit 1; }; }
4552 fi
4553
4554 ac_ext=cc
4555 ac_cpp='$CXXCPP $CPPFLAGS'
4556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4559
4560 fi
4561
4562
4563 ac_ext=f
4564 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4565 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4567 if test -n "$ac_tool_prefix"; then
4568   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4569   do
4570     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4572 echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574 if test "${ac_cv_prog_F77+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   if test -n "$F77"; then
4578   ac_cv_prog_F77="$F77" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585   for ac_exec_ext in '' $ac_executable_extensions; do
4586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589     break 2
4590   fi
4591 done
4592 done
4593
4594 fi
4595 fi
4596 F77=$ac_cv_prog_F77
4597 if test -n "$F77"; then
4598   echo "$as_me:$LINENO: result: $F77" >&5
4599 echo "${ECHO_T}$F77" >&6
4600 else
4601   echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6
4603 fi
4604
4605     test -n "$F77" && break
4606   done
4607 fi
4608 if test -z "$F77"; then
4609   ac_ct_F77=$F77
4610   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4611 do
4612   # Extract the first word of "$ac_prog", so it can be a program name with args.
4613 set dummy $ac_prog; ac_word=$2
4614 echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   if test -n "$ac_ct_F77"; then
4620   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625   IFS=$as_save_IFS
4626   test -z "$as_dir" && as_dir=.
4627   for ac_exec_ext in '' $ac_executable_extensions; do
4628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629     ac_cv_prog_ac_ct_F77="$ac_prog"
4630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631     break 2
4632   fi
4633 done
4634 done
4635
4636 fi
4637 fi
4638 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4639 if test -n "$ac_ct_F77"; then
4640   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4641 echo "${ECHO_T}$ac_ct_F77" >&6
4642 else
4643   echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4645 fi
4646
4647   test -n "$ac_ct_F77" && break
4648 done
4649
4650   F77=$ac_ct_F77
4651 fi
4652
4653
4654 # Provide some information about the compiler.
4655 echo "$as_me:4655:" \
4656      "checking for Fortran 77 compiler version" >&5
4657 ac_compiler=`set X $ac_compile; echo $2`
4658 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4659   (eval $ac_compiler --version </dev/null >&5) 2>&5
4660   ac_status=$?
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); }
4663 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4664   (eval $ac_compiler -v </dev/null >&5) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }
4668 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4669   (eval $ac_compiler -V </dev/null >&5) 2>&5
4670   ac_status=$?
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); }
4673 rm -f a.out
4674
4675 # If we don't use `.F' as extension, the preprocessor is not run on the
4676 # input file.  (Note that this only needs to work for GNU compilers.)
4677 ac_save_ext=$ac_ext
4678 ac_ext=F
4679 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4680 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4681 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4682   echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684   cat >conftest.$ac_ext <<_ACEOF
4685       program main
4686 #ifndef __GNUC__
4687        choke me
4688 #endif
4689
4690       end
4691 _ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694   (eval $ac_compile) 2>conftest.er1
4695   ac_status=$?
4696   grep -v '^ *+' conftest.er1 >conftest.err
4697   rm -f conftest.er1
4698   cat conftest.err >&5
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); } &&
4701          { ac_try='test -z "$ac_f77_werror_flag"
4702                          || test ! -s conftest.err'
4703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704   (eval $ac_try) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }; } &&
4708          { ac_try='test -s conftest.$ac_objext'
4709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710   (eval $ac_try) 2>&5
4711   ac_status=$?
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); }; }; then
4714   ac_compiler_gnu=yes
4715 else
4716   echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 ac_compiler_gnu=no
4720 fi
4721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4723
4724 fi
4725 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4726 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4727 ac_ext=$ac_save_ext
4728 ac_test_FFLAGS=${FFLAGS+set}
4729 ac_save_FFLAGS=$FFLAGS
4730 FFLAGS=
4731 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4732 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4733 if test "${ac_cv_prog_f77_g+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   FFLAGS=-g
4737 cat >conftest.$ac_ext <<_ACEOF
4738       program main
4739
4740       end
4741 _ACEOF
4742 rm -f conftest.$ac_objext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744   (eval $ac_compile) 2>conftest.er1
4745   ac_status=$?
4746   grep -v '^ *+' conftest.er1 >conftest.err
4747   rm -f conftest.er1
4748   cat conftest.err >&5
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } &&
4751          { ac_try='test -z "$ac_f77_werror_flag"
4752                          || test ! -s conftest.err'
4753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754   (eval $ac_try) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; } &&
4758          { ac_try='test -s conftest.$ac_objext'
4759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760   (eval $ac_try) 2>&5
4761   ac_status=$?
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); }; }; then
4764   ac_cv_prog_f77_g=yes
4765 else
4766   echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769 ac_cv_prog_f77_g=no
4770 fi
4771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4772
4773 fi
4774 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4775 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4776 if test "$ac_test_FFLAGS" = set; then
4777   FFLAGS=$ac_save_FFLAGS
4778 elif test $ac_cv_prog_f77_g = yes; then
4779   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4780     FFLAGS="-g -O2"
4781   else
4782     FFLAGS="-g"
4783   fi
4784 else
4785   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4786     FFLAGS="-O2"
4787   else
4788     FFLAGS=
4789   fi
4790 fi
4791
4792 G77=`test $ac_compiler_gnu = yes && echo yes`
4793 ac_ext=c
4794 ac_cpp='$CPP $CPPFLAGS'
4795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798
4799
4800
4801 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4802
4803 # find the maximum length of command line arguments
4804 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4805 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4806 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4807   echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809     i=0
4810   teststring="ABCD"
4811
4812   case $build_os in
4813   msdosdjgpp*)
4814     # On DJGPP, this test can blow up pretty badly due to problems in libc
4815     # (any single argument exceeding 2000 bytes causes a buffer overrun
4816     # during glob expansion).  Even if it were fixed, the result of this
4817     # check would be larger than it should be.
4818     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4819     ;;
4820
4821   gnu*)
4822     # Under GNU Hurd, this test is not required because there is
4823     # no limit to the length of command line arguments.
4824     # Libtool will interpret -1 as no limit whatsoever
4825     lt_cv_sys_max_cmd_len=-1;
4826     ;;
4827
4828   cygwin* | mingw*)
4829     # On Win9x/ME, this test blows up -- it succeeds, but takes
4830     # about 5 minutes as the teststring grows exponentially.
4831     # Worse, since 9x/ME are not pre-emptively multitasking,
4832     # you end up with a "frozen" computer, even though with patience
4833     # the test eventually succeeds (with a max line length of 256k).
4834     # Instead, let's just punt: use the minimum linelength reported by
4835     # all of the supported platforms: 8192 (on NT/2K/XP).
4836     lt_cv_sys_max_cmd_len=8192;
4837     ;;
4838
4839   amigaos*)
4840     # On AmigaOS with pdksh, this test takes hours, literally.
4841     # So we just punt and use a minimum line length of 8192.
4842     lt_cv_sys_max_cmd_len=8192;
4843     ;;
4844
4845   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4846     # This has been around since 386BSD, at least.  Likely further.
4847     if test -x /sbin/sysctl; then
4848       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4849     elif test -x /usr/sbin/sysctl; then
4850       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4851     else
4852       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4853     fi
4854     # And add a safety zone
4855     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4856     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4857     ;;
4858   osf*)
4859     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4860     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4861     # nice to cause kernel panics so lets avoid the loop below.
4862     # First set a reasonable default.
4863     lt_cv_sys_max_cmd_len=16384
4864     #
4865     if test -x /sbin/sysconfig; then
4866       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4867         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4868       esac
4869     fi
4870     ;;
4871   *)
4872     # If test is not a shell built-in, we'll probably end up computing a
4873     # maximum length that is only half of the actual maximum length, but
4874     # we can't tell.
4875     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4876     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4877                = "XX$teststring") >/dev/null 2>&1 &&
4878             new_result=`expr "X$teststring" : ".*" 2>&1` &&
4879             lt_cv_sys_max_cmd_len=$new_result &&
4880             test $i != 17 # 1/2 MB should be enough
4881     do
4882       i=`expr $i + 1`
4883       teststring=$teststring$teststring
4884     done
4885     teststring=
4886     # Add a significant safety factor because C++ compilers can tack on massive
4887     # amounts of additional arguments before passing them to the linker.
4888     # It appears as though 1/2 is a usable value.
4889     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4890     ;;
4891   esac
4892
4893 fi
4894
4895 if test -n $lt_cv_sys_max_cmd_len ; then
4896   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4897 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4898 else
4899   echo "$as_me:$LINENO: result: none" >&5
4900 echo "${ECHO_T}none" >&6
4901 fi
4902
4903
4904
4905
4906 # Check for command to grab the raw symbol name followed by C symbol from nm.
4907 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4908 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4909 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912
4913 # These are sane defaults that work on at least a few old systems.
4914 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4915
4916 # Character class describing NM global symbol codes.
4917 symcode='[BCDEGRST]'
4918
4919 # Regexp to match symbols that can be accessed directly from C.
4920 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4921
4922 # Transform an extracted symbol line into a proper C declaration
4923 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4924
4925 # Transform an extracted symbol line into symbol name and symbol address
4926 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'"
4927
4928 # Define system-specific variables.
4929 case $host_os in
4930 aix*)
4931   symcode='[BCDT]'
4932   ;;
4933 cygwin* | mingw* | pw32*)
4934   symcode='[ABCDGISTW]'
4935   ;;
4936 hpux*) # Its linker distinguishes data from code symbols
4937   if test "$host_cpu" = ia64; then
4938     symcode='[ABCDEGRST]'
4939   fi
4940   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4941   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'"
4942   ;;
4943 linux*)
4944   if test "$host_cpu" = ia64; then
4945     symcode='[ABCDGIRSTW]'
4946     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4947     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'"
4948   fi
4949   ;;
4950 irix* | nonstopux*)
4951   symcode='[BCDEGRST]'
4952   ;;
4953 osf*)
4954   symcode='[BCDEGQRST]'
4955   ;;
4956 solaris* | sysv5*)
4957   symcode='[BDRT]'
4958   ;;
4959 sysv4)
4960   symcode='[DFNSTU]'
4961   ;;
4962 esac
4963
4964 # Handle CRLF in mingw tool chain
4965 opt_cr=
4966 case $build_os in
4967 mingw*)
4968   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4969   ;;
4970 esac
4971
4972 # If we're using GNU nm, then use its standard symbol codes.
4973 case `$NM -V 2>&1` in
4974 *GNU* | *'with BFD'*)
4975   symcode='[ABCDGIRSTW]' ;;
4976 esac
4977
4978 # Try without a prefix undercore, then with it.
4979 for ac_symprfx in "" "_"; do
4980
4981   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4982   symxfrm="\\1 $ac_symprfx\\2 \\2"
4983
4984   # Write the raw and C identifiers.
4985   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4986
4987   # Check to see that the pipe works correctly.
4988   pipe_works=no
4989
4990   rm -f conftest*
4991   cat > conftest.$ac_ext <<EOF
4992 #ifdef __cplusplus
4993 extern "C" {
4994 #endif
4995 char nm_test_var;
4996 void nm_test_func(){}
4997 #ifdef __cplusplus
4998 }
4999 #endif
5000 int main(){nm_test_var='a';nm_test_func();return(0);}
5001 EOF
5002
5003   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004   (eval $ac_compile) 2>&5
5005   ac_status=$?
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); }; then
5008     # Now try to grab the symbols.
5009     nlist=conftest.nm
5010     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5011   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5012   ac_status=$?
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } && test -s "$nlist"; then
5015       # Try sorting and uniquifying the output.
5016       if sort "$nlist" | uniq > "$nlist"T; then
5017         mv -f "$nlist"T "$nlist"
5018       else
5019         rm -f "$nlist"T
5020       fi
5021
5022       # Make sure that we snagged all the symbols we need.
5023       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5024         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5025           cat <<EOF > conftest.$ac_ext
5026 #ifdef __cplusplus
5027 extern "C" {
5028 #endif
5029
5030 EOF
5031           # Now generate the symbol file.
5032           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5033
5034           cat <<EOF >> conftest.$ac_ext
5035 #if defined (__STDC__) && __STDC__
5036 # define lt_ptr_t void *
5037 #else
5038 # define lt_ptr_t char *
5039 # define const
5040 #endif
5041
5042 /* The mapping between symbol names and symbols. */
5043 const struct {
5044   const char *name;
5045   lt_ptr_t address;
5046 }
5047 lt_preloaded_symbols[] =
5048 {
5049 EOF
5050           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5051           cat <<\EOF >> conftest.$ac_ext
5052   {0, (lt_ptr_t) 0}
5053 };
5054
5055 #ifdef __cplusplus
5056 }
5057 #endif
5058 EOF
5059           # Now try linking the two files.
5060           mv conftest.$ac_objext conftstm.$ac_objext
5061           lt_save_LIBS="$LIBS"
5062           lt_save_CFLAGS="$CFLAGS"
5063           LIBS="conftstm.$ac_objext"
5064           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5065           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5066   (eval $ac_link) 2>&5
5067   ac_status=$?
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5070             pipe_works=yes
5071           fi
5072           LIBS="$lt_save_LIBS"
5073           CFLAGS="$lt_save_CFLAGS"
5074         else
5075           echo "cannot find nm_test_func in $nlist" >&5
5076         fi
5077       else
5078         echo "cannot find nm_test_var in $nlist" >&5
5079       fi
5080     else
5081       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5082     fi
5083   else
5084     echo "$progname: failed program was:" >&5
5085     cat conftest.$ac_ext >&5
5086   fi
5087   rm -f conftest* conftst*
5088
5089   # Do not use the global_symbol_pipe unless it works.
5090   if test "$pipe_works" = yes; then
5091     break
5092   else
5093     lt_cv_sys_global_symbol_pipe=
5094   fi
5095 done
5096
5097 fi
5098
5099 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5100   lt_cv_sys_global_symbol_to_cdecl=
5101 fi
5102 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5103   echo "$as_me:$LINENO: result: failed" >&5
5104 echo "${ECHO_T}failed" >&6
5105 else
5106   echo "$as_me:$LINENO: result: ok" >&5
5107 echo "${ECHO_T}ok" >&6
5108 fi
5109
5110 echo "$as_me:$LINENO: checking for objdir" >&5
5111 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5112 if test "${lt_cv_objdir+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   rm -f .libs 2>/dev/null
5116 mkdir .libs 2>/dev/null
5117 if test -d .libs; then
5118   lt_cv_objdir=.libs
5119 else
5120   # MS-DOS does not allow filenames that begin with a dot.
5121   lt_cv_objdir=_libs
5122 fi
5123 rmdir .libs 2>/dev/null
5124 fi
5125 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5126 echo "${ECHO_T}$lt_cv_objdir" >&6
5127 objdir=$lt_cv_objdir
5128
5129
5130
5131
5132
5133 case $host_os in
5134 aix3*)
5135   # AIX sometimes has problems with the GCC collect2 program.  For some
5136   # reason, if we set the COLLECT_NAMES environment variable, the problems
5137   # vanish in a puff of smoke.
5138   if test "X${COLLECT_NAMES+set}" != Xset; then
5139     COLLECT_NAMES=
5140     export COLLECT_NAMES
5141   fi
5142   ;;
5143 esac
5144
5145 # Sed substitution that helps us do robust quoting.  It backslashifies
5146 # metacharacters that are still active within double-quoted strings.
5147 Xsed='sed -e 1s/^X//'
5148 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5149
5150 # Same as above, but do not quote variable references.
5151 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5152
5153 # Sed substitution to delay expansion of an escaped shell variable in a
5154 # double_quote_subst'ed string.
5155 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5156
5157 # Sed substitution to avoid accidental globbing in evaled expressions
5158 no_glob_subst='s/\*/\\\*/g'
5159
5160 # Constants:
5161 rm="rm -f"
5162
5163 # Global variables:
5164 default_ofile=libtool
5165 can_build_shared=yes
5166
5167 # All known linkers require a `.a' archive for static linking (except MSVC,
5168 # which needs '.lib').
5169 libext=a
5170 ltmain="$ac_aux_dir/ltmain.sh"
5171 ofile="$default_ofile"
5172 with_gnu_ld="$lt_cv_prog_gnu_ld"
5173
5174 if test -n "$ac_tool_prefix"; then
5175   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5176 set dummy ${ac_tool_prefix}ar; ac_word=$2
5177 echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179 if test "${ac_cv_prog_AR+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   if test -n "$AR"; then
5183   ac_cv_prog_AR="$AR" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188   IFS=$as_save_IFS
5189   test -z "$as_dir" && as_dir=.
5190   for ac_exec_ext in '' $ac_executable_extensions; do
5191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192     ac_cv_prog_AR="${ac_tool_prefix}ar"
5193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194     break 2
5195   fi
5196 done
5197 done
5198
5199 fi
5200 fi
5201 AR=$ac_cv_prog_AR
5202 if test -n "$AR"; then
5203   echo "$as_me:$LINENO: result: $AR" >&5
5204 echo "${ECHO_T}$AR" >&6
5205 else
5206   echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5208 fi
5209
5210 fi
5211 if test -z "$ac_cv_prog_AR"; then
5212   ac_ct_AR=$AR
5213   # Extract the first word of "ar", so it can be a program name with args.
5214 set dummy ar; ac_word=$2
5215 echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5217 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   if test -n "$ac_ct_AR"; then
5221   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226   IFS=$as_save_IFS
5227   test -z "$as_dir" && as_dir=.
5228   for ac_exec_ext in '' $ac_executable_extensions; do
5229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5230     ac_cv_prog_ac_ct_AR="ar"
5231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232     break 2
5233   fi
5234 done
5235 done
5236
5237   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5238 fi
5239 fi
5240 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5241 if test -n "$ac_ct_AR"; then
5242   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5243 echo "${ECHO_T}$ac_ct_AR" >&6
5244 else
5245   echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6
5247 fi
5248
5249   AR=$ac_ct_AR
5250 else
5251   AR="$ac_cv_prog_AR"
5252 fi
5253
5254 if test -n "$ac_tool_prefix"; then
5255   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5257 echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259 if test "${ac_cv_prog_RANLIB+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   if test -n "$RANLIB"; then
5263   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268   IFS=$as_save_IFS
5269   test -z "$as_dir" && as_dir=.
5270   for ac_exec_ext in '' $ac_executable_extensions; do
5271   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274     break 2
5275   fi
5276 done
5277 done
5278
5279 fi
5280 fi
5281 RANLIB=$ac_cv_prog_RANLIB
5282 if test -n "$RANLIB"; then
5283   echo "$as_me:$LINENO: result: $RANLIB" >&5
5284 echo "${ECHO_T}$RANLIB" >&6
5285 else
5286   echo "$as_me:$LINENO: result: no" >&5
5287 echo "${ECHO_T}no" >&6
5288 fi
5289
5290 fi
5291 if test -z "$ac_cv_prog_RANLIB"; then
5292   ac_ct_RANLIB=$RANLIB
5293   # Extract the first word of "ranlib", so it can be a program name with args.
5294 set dummy ranlib; ac_word=$2
5295 echo "$as_me:$LINENO: checking for $ac_word" >&5
5296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5297 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5298   echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300   if test -n "$ac_ct_RANLIB"; then
5301   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5305 do
5306   IFS=$as_save_IFS
5307   test -z "$as_dir" && as_dir=.
5308   for ac_exec_ext in '' $ac_executable_extensions; do
5309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310     ac_cv_prog_ac_ct_RANLIB="ranlib"
5311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312     break 2
5313   fi
5314 done
5315 done
5316
5317   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5318 fi
5319 fi
5320 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5321 if test -n "$ac_ct_RANLIB"; then
5322   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5323 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5324 else
5325   echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6
5327 fi
5328
5329   RANLIB=$ac_ct_RANLIB
5330 else
5331   RANLIB="$ac_cv_prog_RANLIB"
5332 fi
5333
5334 if test -n "$ac_tool_prefix"; then
5335   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5336 set dummy ${ac_tool_prefix}strip; ac_word=$2
5337 echo "$as_me:$LINENO: checking for $ac_word" >&5
5338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5339 if test "${ac_cv_prog_STRIP+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   if test -n "$STRIP"; then
5343   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5347 do
5348   IFS=$as_save_IFS
5349   test -z "$as_dir" && as_dir=.
5350   for ac_exec_ext in '' $ac_executable_extensions; do
5351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354     break 2
5355   fi
5356 done
5357 done
5358
5359 fi
5360 fi
5361 STRIP=$ac_cv_prog_STRIP
5362 if test -n "$STRIP"; then
5363   echo "$as_me:$LINENO: result: $STRIP" >&5
5364 echo "${ECHO_T}$STRIP" >&6
5365 else
5366   echo "$as_me:$LINENO: result: no" >&5
5367 echo "${ECHO_T}no" >&6
5368 fi
5369
5370 fi
5371 if test -z "$ac_cv_prog_STRIP"; then
5372   ac_ct_STRIP=$STRIP
5373   # Extract the first word of "strip", so it can be a program name with args.
5374 set dummy strip; ac_word=$2
5375 echo "$as_me:$LINENO: checking for $ac_word" >&5
5376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5378   echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380   if test -n "$ac_ct_STRIP"; then
5381   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5382 else
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5385 do
5386   IFS=$as_save_IFS
5387   test -z "$as_dir" && as_dir=.
5388   for ac_exec_ext in '' $ac_executable_extensions; do
5389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390     ac_cv_prog_ac_ct_STRIP="strip"
5391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5392     break 2
5393   fi
5394 done
5395 done
5396
5397   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5398 fi
5399 fi
5400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5401 if test -n "$ac_ct_STRIP"; then
5402   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5403 echo "${ECHO_T}$ac_ct_STRIP" >&6
5404 else
5405   echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6
5407 fi
5408
5409   STRIP=$ac_ct_STRIP
5410 else
5411   STRIP="$ac_cv_prog_STRIP"
5412 fi
5413
5414
5415 old_CC="$CC"
5416 old_CFLAGS="$CFLAGS"
5417
5418 # Set sane defaults for various variables
5419 test -z "$AR" && AR=ar
5420 test -z "$AR_FLAGS" && AR_FLAGS=cru
5421 test -z "$AS" && AS=as
5422 test -z "$CC" && CC=cc
5423 test -z "$LTCC" && LTCC=$CC
5424 test -z "$DLLTOOL" && DLLTOOL=dlltool
5425 test -z "$LD" && LD=ld
5426 test -z "$LN_S" && LN_S="ln -s"
5427 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5428 test -z "$NM" && NM=nm
5429 test -z "$SED" && SED=sed
5430 test -z "$OBJDUMP" && OBJDUMP=objdump
5431 test -z "$RANLIB" && RANLIB=:
5432 test -z "$STRIP" && STRIP=:
5433 test -z "$ac_objext" && ac_objext=o
5434
5435 # Determine commands to create old-style static archives.
5436 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5437 old_postinstall_cmds='chmod 644 $oldlib'
5438 old_postuninstall_cmds=
5439
5440 if test -n "$RANLIB"; then
5441   case $host_os in
5442   openbsd*)
5443     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5444     ;;
5445   *)
5446     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5447     ;;
5448   esac
5449   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5450 fi
5451
5452 for cc_temp in $compiler""; do
5453   case $cc_temp in
5454     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5455     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5456     \-*) ;;
5457     *) break;;
5458   esac
5459 done
5460 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5461
5462
5463 # Only perform the check for file, if the check method requires it
5464 case $deplibs_check_method in
5465 file_magic*)
5466   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5467     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5468 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5469 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   case $MAGIC_CMD in
5473 [\\/*] |  ?:[\\/]*)
5474   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5475   ;;
5476 *)
5477   lt_save_MAGIC_CMD="$MAGIC_CMD"
5478   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5479   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5480   for ac_dir in $ac_dummy; do
5481     IFS="$lt_save_ifs"
5482     test -z "$ac_dir" && ac_dir=.
5483     if test -f $ac_dir/${ac_tool_prefix}file; then
5484       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5485       if test -n "$file_magic_test_file"; then
5486         case $deplibs_check_method in
5487         "file_magic "*)
5488           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5489           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5490           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5491             $EGREP "$file_magic_regex" > /dev/null; then
5492             :
5493           else
5494             cat <<EOF 1>&2
5495
5496 *** Warning: the command libtool uses to detect shared libraries,
5497 *** $file_magic_cmd, produces output that libtool cannot recognize.
5498 *** The result is that libtool may fail to recognize shared libraries
5499 *** as such.  This will affect the creation of libtool libraries that
5500 *** depend on shared libraries, but programs linked with such libtool
5501 *** libraries will work regardless of this problem.  Nevertheless, you
5502 *** may want to report the problem to your system manager and/or to
5503 *** bug-libtool@gnu.org
5504
5505 EOF
5506           fi ;;
5507         esac
5508       fi
5509       break
5510     fi
5511   done
5512   IFS="$lt_save_ifs"
5513   MAGIC_CMD="$lt_save_MAGIC_CMD"
5514   ;;
5515 esac
5516 fi
5517
5518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5519 if test -n "$MAGIC_CMD"; then
5520   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5521 echo "${ECHO_T}$MAGIC_CMD" >&6
5522 else
5523   echo "$as_me:$LINENO: result: no" >&5
5524 echo "${ECHO_T}no" >&6
5525 fi
5526
5527 if test -z "$lt_cv_path_MAGIC_CMD"; then
5528   if test -n "$ac_tool_prefix"; then
5529     echo "$as_me:$LINENO: checking for file" >&5
5530 echo $ECHO_N "checking for file... $ECHO_C" >&6
5531 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534   case $MAGIC_CMD in
5535 [\\/*] |  ?:[\\/]*)
5536   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5537   ;;
5538 *)
5539   lt_save_MAGIC_CMD="$MAGIC_CMD"
5540   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5541   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5542   for ac_dir in $ac_dummy; do
5543     IFS="$lt_save_ifs"
5544     test -z "$ac_dir" && ac_dir=.
5545     if test -f $ac_dir/file; then
5546       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5547       if test -n "$file_magic_test_file"; then
5548         case $deplibs_check_method in
5549         "file_magic "*)
5550           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5551           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5552           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5553             $EGREP "$file_magic_regex" > /dev/null; then
5554             :
5555           else
5556             cat <<EOF 1>&2
5557
5558 *** Warning: the command libtool uses to detect shared libraries,
5559 *** $file_magic_cmd, produces output that libtool cannot recognize.
5560 *** The result is that libtool may fail to recognize shared libraries
5561 *** as such.  This will affect the creation of libtool libraries that
5562 *** depend on shared libraries, but programs linked with such libtool
5563 *** libraries will work regardless of this problem.  Nevertheless, you
5564 *** may want to report the problem to your system manager and/or to
5565 *** bug-libtool@gnu.org
5566
5567 EOF
5568           fi ;;
5569         esac
5570       fi
5571       break
5572     fi
5573   done
5574   IFS="$lt_save_ifs"
5575   MAGIC_CMD="$lt_save_MAGIC_CMD"
5576   ;;
5577 esac
5578 fi
5579
5580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5581 if test -n "$MAGIC_CMD"; then
5582   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5583 echo "${ECHO_T}$MAGIC_CMD" >&6
5584 else
5585   echo "$as_me:$LINENO: result: no" >&5
5586 echo "${ECHO_T}no" >&6
5587 fi
5588
5589   else
5590     MAGIC_CMD=:
5591   fi
5592 fi
5593
5594   fi
5595   ;;
5596 esac
5597
5598 enable_dlopen=no
5599 enable_win32_dll=no
5600
5601 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5602 if test "${enable_libtool_lock+set}" = set; then
5603   enableval="$enable_libtool_lock"
5604
5605 fi;
5606 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5607
5608
5609 # Check whether --with-pic or --without-pic was given.
5610 if test "${with_pic+set}" = set; then
5611   withval="$with_pic"
5612   pic_mode="$withval"
5613 else
5614   pic_mode=default
5615 fi;
5616 test -z "$pic_mode" && pic_mode=default
5617
5618 # Use C for the default configuration in the libtool script
5619 tagname=
5620 lt_save_CC="$CC"
5621 ac_ext=c
5622 ac_cpp='$CPP $CPPFLAGS'
5623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626
5627
5628 # Source file extension for C test sources.
5629 ac_ext=c
5630
5631 # Object file extension for compiled C test sources.
5632 objext=o
5633 objext=$objext
5634
5635 # Code to be used in simple compile tests
5636 lt_simple_compile_test_code="int some_variable = 0;\n"
5637
5638 # Code to be used in simple link tests
5639 lt_simple_link_test_code='int main(){return(0);}\n'
5640
5641
5642 # If no C compiler was specified, use CC.
5643 LTCC=${LTCC-"$CC"}
5644
5645 # Allow CC to be a program name with arguments.
5646 compiler=$CC
5647
5648
5649 # save warnings/boilerplate of simple test code
5650 ac_outfile=conftest.$ac_objext
5651 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5652 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
5653 _lt_compiler_boilerplate=`cat conftest.err`
5654 $rm conftest*
5655
5656 ac_outfile=conftest.$ac_objext
5657 printf "$lt_simple_link_test_code" >conftest.$ac_ext
5658 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
5659 _lt_linker_boilerplate=`cat conftest.err`
5660 $rm conftest*
5661
5662
5663 #
5664 # Check for any special shared library compilation flags.
5665 #
5666 lt_prog_cc_shlib=
5667 if test "$GCC" = no; then
5668   case $host_os in
5669   sco3.2v5*)
5670     lt_prog_cc_shlib='-belf'
5671     ;;
5672   esac
5673 fi
5674 if test -n "$lt_prog_cc_shlib"; then
5675   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5676 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5677   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5678   else
5679     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5680 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5681     lt_cv_prog_cc_can_build_shared=no
5682   fi
5683 fi
5684
5685
5686 #
5687 # Check to make sure the static flag actually works.
5688 #
5689 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5690 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5691 if test "${lt_prog_compiler_static_works+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   lt_prog_compiler_static_works=no
5695    save_LDFLAGS="$LDFLAGS"
5696    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5697    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5698    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5699      # The linker can only warn and ignore the option if not recognized
5700      # So say no if there are warnings
5701      if test -s conftest.err; then
5702        # Append any errors to the config.log.
5703        cat conftest.err 1>&5
5704        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
5705        $SED '/^$/d' conftest.err >conftest.er2
5706        if diff conftest.exp conftest.er2 >/dev/null; then
5707          lt_prog_compiler_static_works=yes
5708        fi
5709      else
5710        lt_prog_compiler_static_works=yes
5711      fi
5712    fi
5713    $rm conftest*
5714    LDFLAGS="$save_LDFLAGS"
5715
5716 fi
5717 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5718 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5719
5720 if test x"$lt_prog_compiler_static_works" = xyes; then
5721     :
5722 else
5723     lt_prog_compiler_static=
5724 fi
5725
5726
5727
5728
5729 lt_prog_compiler_no_builtin_flag=
5730
5731 if test "$GCC" = yes; then
5732   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5733
5734
5735 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5736 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5737 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5738   echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740   lt_cv_prog_compiler_rtti_exceptions=no
5741   ac_outfile=conftest.$ac_objext
5742    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5743    lt_compiler_flag="-fno-rtti -fno-exceptions"
5744    # Insert the option either (1) after the last *FLAGS variable, or
5745    # (2) before a word containing "conftest.", or (3) at the end.
5746    # Note that $ac_compile itself does not contain backslashes and begins
5747    # with a dollar sign (not a hyphen), so the echo should work correctly.
5748    # The option is referenced via a variable to avoid confusing sed.
5749    lt_compile=`echo "$ac_compile" | $SED \
5750    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5751    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5752    -e 's:$: $lt_compiler_flag:'`
5753    (eval echo "\"\$as_me:5753: $lt_compile\"" >&5)
5754    (eval "$lt_compile" 2>conftest.err)
5755    ac_status=$?
5756    cat conftest.err >&5
5757    echo "$as_me:5757: \$? = $ac_status" >&5
5758    if (exit $ac_status) && test -s "$ac_outfile"; then
5759      # The compiler can only warn and ignore the option if not recognized
5760      # So say no if there are warnings other than the usual output.
5761      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
5762      $SED '/^$/d' conftest.err >conftest.er2
5763      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
5764        lt_cv_prog_compiler_rtti_exceptions=yes
5765      fi
5766    fi
5767    $rm conftest*
5768
5769 fi
5770 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5771 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5772
5773 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5774     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5775 else
5776     :
5777 fi
5778
5779 fi
5780
5781 lt_prog_compiler_wl=
5782 lt_prog_compiler_pic=
5783 lt_prog_compiler_static=
5784
5785 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5786 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5787
5788   if test "$GCC" = yes; then
5789     lt_prog_compiler_wl='-Wl,'
5790     lt_prog_compiler_static='-static'
5791
5792     case $host_os in
5793       aix*)
5794       # All AIX code is PIC.
5795       if test "$host_cpu" = ia64; then
5796         # AIX 5 now supports IA64 processor
5797         lt_prog_compiler_static='-Bstatic'
5798       fi
5799       ;;
5800
5801     amigaos*)
5802       # FIXME: we need at least 68020 code to build shared libraries, but
5803       # adding the `-m68020' flag to GCC prevents building anything better,
5804       # like `-m68040'.
5805       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5806       ;;
5807
5808     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5809       # PIC is the default for these OSes.
5810       ;;
5811
5812     mingw* | pw32* | os2*)
5813       # This hack is so that the source file can tell whether it is being
5814       # built for inclusion in a dll (and should export symbols for example).
5815       lt_prog_compiler_pic='-DDLL_EXPORT'
5816       ;;
5817
5818     darwin* | rhapsody*)
5819       # PIC is the default on this platform
5820       # Common symbols not allowed in MH_DYLIB files
5821       lt_prog_compiler_pic='-fno-common'
5822       ;;
5823
5824     msdosdjgpp*)
5825       # Just because we use GCC doesn't mean we suddenly get shared libraries
5826       # on systems that don't support them.
5827       lt_prog_compiler_can_build_shared=no
5828       enable_shared=no
5829       ;;
5830
5831     sysv4*MP*)
5832       if test -d /usr/nec; then
5833         lt_prog_compiler_pic=-Kconform_pic
5834       fi
5835       ;;
5836
5837     hpux*)
5838       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5839       # not for PA HP-UX.
5840       case $host_cpu in
5841       hppa*64*|ia64*)
5842         # +Z the default
5843         ;;
5844       *)
5845         lt_prog_compiler_pic='-fPIC'
5846         ;;
5847       esac
5848       ;;
5849
5850     *)
5851       lt_prog_compiler_pic='-fPIC'
5852       ;;
5853     esac
5854   else
5855     # PORTME Check for flag to pass linker flags through the system compiler.
5856     case $host_os in
5857     aix*)
5858       lt_prog_compiler_wl='-Wl,'
5859       if test "$host_cpu" = ia64; then
5860         # AIX 5 now supports IA64 processor
5861         lt_prog_compiler_static='-Bstatic'
5862       else
5863         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5864       fi
5865       ;;
5866       darwin*)
5867         # PIC is the default on this platform
5868         # Common symbols not allowed in MH_DYLIB files
5869        case $cc_basename in
5870          xlc*)
5871          lt_prog_compiler_pic='-qnocommon'
5872          lt_prog_compiler_wl='-Wl,'
5873          ;;
5874        esac
5875        ;;
5876
5877     mingw* | pw32* | os2*)
5878       # This hack is so that the source file can tell whether it is being
5879       # built for inclusion in a dll (and should export symbols for example).
5880       lt_prog_compiler_pic='-DDLL_EXPORT'
5881       ;;
5882
5883     hpux9* | hpux10* | hpux11*)
5884       lt_prog_compiler_wl='-Wl,'
5885       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5886       # not for PA HP-UX.
5887       case $host_cpu in
5888       hppa*64*|ia64*)
5889         # +Z the default
5890         ;;
5891       *)
5892         lt_prog_compiler_pic='+Z'
5893         ;;
5894       esac
5895       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5896       lt_prog_compiler_static='${wl}-a ${wl}archive'
5897       ;;
5898
5899     irix5* | irix6* | nonstopux*)
5900       lt_prog_compiler_wl='-Wl,'
5901       # PIC (with -KPIC) is the default.
5902       lt_prog_compiler_static='-non_shared'
5903       ;;
5904
5905     newsos6)
5906       lt_prog_compiler_pic='-KPIC'
5907       lt_prog_compiler_static='-Bstatic'
5908       ;;
5909
5910     linux*)
5911       case $cc_basename in
5912       icc* | ecc*)
5913         lt_prog_compiler_wl='-Wl,'
5914         lt_prog_compiler_pic='-KPIC'
5915         lt_prog_compiler_static='-static'
5916         ;;
5917       pgcc* | pgf77* | pgf90* | pgf95*)
5918         # Portland Group compilers (*not* the Pentium gcc compiler,
5919         # which looks to be a dead project)
5920         lt_prog_compiler_wl='-Wl,'
5921         lt_prog_compiler_pic='-fpic'
5922         lt_prog_compiler_static='-Bstatic'
5923         ;;
5924       ccc*)
5925         lt_prog_compiler_wl='-Wl,'
5926         # All Alpha code is PIC.
5927         lt_prog_compiler_static='-non_shared'
5928         ;;
5929       esac
5930       ;;
5931
5932     osf3* | osf4* | osf5*)
5933       lt_prog_compiler_wl='-Wl,'
5934       # All OSF/1 code is PIC.
5935       lt_prog_compiler_static='-non_shared'
5936       ;;
5937
5938     sco3.2v5*)
5939       lt_prog_compiler_pic='-Kpic'
5940       lt_prog_compiler_static='-dn'
5941       ;;
5942
5943     solaris*)
5944       lt_prog_compiler_pic='-KPIC'
5945       lt_prog_compiler_static='-Bstatic'
5946       case $cc_basename in
5947       f77* | f90* | f95*)
5948         lt_prog_compiler_wl='-Qoption ld ';;
5949       *)
5950         lt_prog_compiler_wl='-Wl,';;
5951       esac
5952       ;;
5953
5954     sunos4*)
5955       lt_prog_compiler_wl='-Qoption ld '
5956       lt_prog_compiler_pic='-PIC'
5957       lt_prog_compiler_static='-Bstatic'
5958       ;;
5959
5960     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5961       lt_prog_compiler_wl='-Wl,'
5962       lt_prog_compiler_pic='-KPIC'
5963       lt_prog_compiler_static='-Bstatic'
5964       ;;
5965
5966     sysv4*MP*)
5967       if test -d /usr/nec ;then
5968         lt_prog_compiler_pic='-Kconform_pic'
5969         lt_prog_compiler_static='-Bstatic'
5970       fi
5971       ;;
5972
5973     unicos*)
5974       lt_prog_compiler_wl='-Wl,'
5975       lt_prog_compiler_can_build_shared=no
5976       ;;
5977
5978     uts4*)
5979       lt_prog_compiler_pic='-pic'
5980       lt_prog_compiler_static='-Bstatic'
5981       ;;
5982
5983     *)
5984       lt_prog_compiler_can_build_shared=no
5985       ;;
5986     esac
5987   fi
5988
5989 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5990 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5991
5992 #
5993 # Check to make sure the PIC flag actually works.
5994 #
5995 if test -n "$lt_prog_compiler_pic"; then
5996
5997 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5998 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5999 if test "${lt_prog_compiler_pic_works+set}" = set; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   lt_prog_compiler_pic_works=no
6003   ac_outfile=conftest.$ac_objext
6004    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6005    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6006    # Insert the option either (1) after the last *FLAGS variable, or
6007    # (2) before a word containing "conftest.", or (3) at the end.
6008    # Note that $ac_compile itself does not contain backslashes and begins
6009    # with a dollar sign (not a hyphen), so the echo should work correctly.
6010    # The option is referenced via a variable to avoid confusing sed.
6011    lt_compile=`echo "$ac_compile" | $SED \
6012    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6013    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6014    -e 's:$: $lt_compiler_flag:'`
6015    (eval echo "\"\$as_me:6015: $lt_compile\"" >&5)
6016    (eval "$lt_compile" 2>conftest.err)
6017    ac_status=$?
6018    cat conftest.err >&5
6019    echo "$as_me:6019: \$? = $ac_status" >&5
6020    if (exit $ac_status) && test -s "$ac_outfile"; then
6021      # The compiler can only warn and ignore the option if not recognized
6022      # So say no if there are warnings other than the usual output.
6023      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6024      $SED '/^$/d' conftest.err >conftest.er2
6025      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6026        lt_prog_compiler_pic_works=yes
6027      fi
6028    fi
6029    $rm conftest*
6030
6031 fi
6032 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6033 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6034
6035 if test x"$lt_prog_compiler_pic_works" = xyes; then
6036     case $lt_prog_compiler_pic in
6037      "" | " "*) ;;
6038      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6039      esac
6040 else
6041     lt_prog_compiler_pic=
6042      lt_prog_compiler_can_build_shared=no
6043 fi
6044
6045 fi
6046 case $host_os in
6047   # For platforms which do not support PIC, -DPIC is meaningless:
6048   *djgpp*)
6049     lt_prog_compiler_pic=
6050     ;;
6051   *)
6052     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6053     ;;
6054 esac
6055
6056 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6057 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6058 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   lt_cv_prog_compiler_c_o=no
6062    $rm -r conftest 2>/dev/null
6063    mkdir conftest
6064    cd conftest
6065    mkdir out
6066    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6067
6068    lt_compiler_flag="-o out/conftest2.$ac_objext"
6069    # Insert the option either (1) after the last *FLAGS variable, or
6070    # (2) before a word containing "conftest.", or (3) at the end.
6071    # Note that $ac_compile itself does not contain backslashes and begins
6072    # with a dollar sign (not a hyphen), so the echo should work correctly.
6073    lt_compile=`echo "$ac_compile" | $SED \
6074    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6075    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6076    -e 's:$: $lt_compiler_flag:'`
6077    (eval echo "\"\$as_me:6077: $lt_compile\"" >&5)
6078    (eval "$lt_compile" 2>out/conftest.err)
6079    ac_status=$?
6080    cat out/conftest.err >&5
6081    echo "$as_me:6081: \$? = $ac_status" >&5
6082    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6083    then
6084      # The compiler can only warn and ignore the option if not recognized
6085      # So say no if there are warnings
6086      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6087      $SED '/^$/d' out/conftest.err >out/conftest.er2
6088      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6089        lt_cv_prog_compiler_c_o=yes
6090      fi
6091    fi
6092    chmod u+w . 2>&5
6093    $rm conftest*
6094    # SGI C++ compiler will create directory out/ii_files/ for
6095    # template instantiation
6096    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6097    $rm out/* && rmdir out
6098    cd ..
6099    rmdir conftest
6100    $rm conftest*
6101
6102 fi
6103 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6104 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6105
6106
6107 hard_links="nottested"
6108 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6109   # do not overwrite the value of need_locks provided by the user
6110   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6111 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6112   hard_links=yes
6113   $rm conftest*
6114   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6115   touch conftest.a
6116   ln conftest.a conftest.b 2>&5 || hard_links=no
6117   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6118   echo "$as_me:$LINENO: result: $hard_links" >&5
6119 echo "${ECHO_T}$hard_links" >&6
6120   if test "$hard_links" = no; then
6121     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6122 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6123     need_locks=warn
6124   fi
6125 else
6126   need_locks=no
6127 fi
6128
6129 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6130 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6131
6132   runpath_var=
6133   allow_undefined_flag=
6134   enable_shared_with_static_runtimes=no
6135   archive_cmds=
6136   archive_expsym_cmds=
6137   old_archive_From_new_cmds=
6138   old_archive_from_expsyms_cmds=
6139   export_dynamic_flag_spec=
6140   whole_archive_flag_spec=
6141   thread_safe_flag_spec=
6142   hardcode_libdir_flag_spec=
6143   hardcode_libdir_flag_spec_ld=
6144   hardcode_libdir_separator=
6145   hardcode_direct=no
6146   hardcode_minus_L=no
6147   hardcode_shlibpath_var=unsupported
6148   link_all_deplibs=unknown
6149   hardcode_automatic=no
6150   module_cmds=
6151   module_expsym_cmds=
6152   always_export_symbols=no
6153   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6154   # include_expsyms should be a list of space-separated symbols to be *always*
6155   # included in the symbol list
6156   include_expsyms=
6157   # exclude_expsyms can be an extended regexp of symbols to exclude
6158   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6159   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6160   # as well as any symbol that contains `d'.
6161   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6162   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6163   # platforms (ab)use it in PIC code, but their linkers get confused if
6164   # the symbol is explicitly referenced.  Since portable code cannot
6165   # rely on this symbol name, it's probably fine to never include it in
6166   # preloaded symbol tables.
6167   extract_expsyms_cmds=
6168   # Just being paranoid about ensuring that cc_basename is set.
6169   for cc_temp in $compiler""; do
6170   case $cc_temp in
6171     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6172     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6173     \-*) ;;
6174     *) break;;
6175   esac
6176 done
6177 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6178
6179   case $host_os in
6180   cygwin* | mingw* | pw32*)
6181     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6182     # When not using gcc, we currently assume that we are using
6183     # Microsoft Visual C++.
6184     if test "$GCC" != yes; then
6185       with_gnu_ld=no
6186     fi
6187     ;;
6188   openbsd*)
6189     with_gnu_ld=no
6190     ;;
6191   esac
6192
6193   ld_shlibs=yes
6194   if test "$with_gnu_ld" = yes; then
6195     # If archive_cmds runs LD, not CC, wlarc should be empty
6196     wlarc='${wl}'
6197
6198     # Set some defaults for GNU ld with shared library support. These
6199     # are reset later if shared libraries are not supported. Putting them
6200     # here allows them to be overridden if necessary.
6201     runpath_var=LD_RUN_PATH
6202     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6203     export_dynamic_flag_spec='${wl}--export-dynamic'
6204     # ancient GNU ld didn't support --whole-archive et. al.
6205     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6206         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6207       else
6208         whole_archive_flag_spec=
6209     fi
6210     supports_anon_versioning=no
6211     case `$LD -v 2>/dev/null` in
6212       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6213       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6214       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6215       *\ 2.11.*) ;; # other 2.11 versions
6216       *) supports_anon_versioning=yes ;;
6217     esac
6218
6219     # See if GNU ld supports shared libraries.
6220     case $host_os in
6221     aix3* | aix4* | aix5*)
6222       # On AIX/PPC, the GNU linker is very broken
6223       if test "$host_cpu" != ia64; then
6224         ld_shlibs=no
6225         cat <<EOF 1>&2
6226
6227 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6228 *** to be unable to reliably create shared libraries on AIX.
6229 *** Therefore, libtool is disabling shared libraries support.  If you
6230 *** really care for shared libraries, you may want to modify your PATH
6231 *** so that a non-GNU linker is found, and then restart.
6232
6233 EOF
6234       fi
6235       ;;
6236
6237     amigaos*)
6238       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)'
6239       hardcode_libdir_flag_spec='-L$libdir'
6240       hardcode_minus_L=yes
6241
6242       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6243       # that the semantics of dynamic libraries on AmigaOS, at least up
6244       # to version 4, is to share data among multiple programs linked
6245       # with the same dynamic library.  Since this doesn't match the
6246       # behavior of shared libraries on other platforms, we can't use
6247       # them.
6248       ld_shlibs=no
6249       ;;
6250
6251     beos*)
6252       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6253         allow_undefined_flag=unsupported
6254         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6255         # support --undefined.  This deserves some investigation.  FIXME
6256         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6257       else
6258         ld_shlibs=no
6259       fi
6260       ;;
6261
6262     cygwin* | mingw* | pw32*)
6263       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6264       # as there is no search path for DLLs.
6265       hardcode_libdir_flag_spec='-L$libdir'
6266       allow_undefined_flag=unsupported
6267       always_export_symbols=no
6268       enable_shared_with_static_runtimes=yes
6269       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6270
6271       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6272         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6273         # If the export-symbols file already is a .def file (1st line
6274         # is EXPORTS), use it as is; otherwise, prepend...
6275         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6276           cp $export_symbols $output_objdir/$soname.def;
6277         else
6278           echo EXPORTS > $output_objdir/$soname.def;
6279           cat $export_symbols >> $output_objdir/$soname.def;
6280         fi~
6281         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6282       else
6283         ld_shlibs=no
6284       fi
6285       ;;
6286
6287     linux*)
6288       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6289         tmp_addflag=
6290         case $cc_basename,$host_cpu in
6291         pgcc*)                          # Portland Group C compiler
6292           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6293           tmp_addflag=' $pic_flag'
6294           ;;
6295         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6296           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6297           tmp_addflag=' $pic_flag -Mnomain' ;;
6298         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6299           tmp_addflag=' -i_dynamic' ;;
6300         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6301           tmp_addflag=' -i_dynamic -nofor_main' ;;
6302         ifc* | ifort*)                  # Intel Fortran compiler
6303           tmp_addflag=' -nofor_main' ;;
6304         esac
6305         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6306
6307         if test $supports_anon_versioning = yes; then
6308           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6309   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6310   $echo "local: *; };" >> $output_objdir/$libname.ver~
6311           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6312         fi
6313       else
6314         ld_shlibs=no
6315       fi
6316       ;;
6317
6318     netbsd*)
6319       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6320         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6321         wlarc=
6322       else
6323         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6324         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6325       fi
6326       ;;
6327
6328     solaris* | sysv5*)
6329       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6330         ld_shlibs=no
6331         cat <<EOF 1>&2
6332
6333 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6334 *** create shared libraries on Solaris systems.  Therefore, libtool
6335 *** is disabling shared libraries support.  We urge you to upgrade GNU
6336 *** binutils to release 2.9.1 or newer.  Another option is to modify
6337 *** your PATH or compiler configuration so that the native linker is
6338 *** used, and then restart.
6339
6340 EOF
6341       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6342         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6343         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6344       else
6345         ld_shlibs=no
6346       fi
6347       ;;
6348
6349     sunos4*)
6350       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6351       wlarc=
6352       hardcode_direct=yes
6353       hardcode_shlibpath_var=no
6354       ;;
6355
6356     *)
6357       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6358         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6359         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6360       else
6361         ld_shlibs=no
6362       fi
6363       ;;
6364     esac
6365
6366     if test "$ld_shlibs" = no; then
6367       runpath_var=
6368       hardcode_libdir_flag_spec=
6369       export_dynamic_flag_spec=
6370       whole_archive_flag_spec=
6371     fi
6372   else
6373     # PORTME fill in a description of your system's linker (not GNU ld)
6374     case $host_os in
6375     aix3*)
6376       allow_undefined_flag=unsupported
6377       always_export_symbols=yes
6378       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'
6379       # Note: this linker hardcodes the directories in LIBPATH if there
6380       # are no directories specified by -L.
6381       hardcode_minus_L=yes
6382       if test "$GCC" = yes && test -z "$link_static_flag"; then
6383         # Neither direct hardcoding nor static linking is supported with a
6384         # broken collect2.
6385         hardcode_direct=unsupported
6386       fi
6387       ;;
6388
6389     aix4* | aix5*)
6390       if test "$host_cpu" = ia64; then
6391         # On IA64, the linker does run time linking by default, so we don't
6392         # have to do anything special.
6393         aix_use_runtimelinking=no
6394         exp_sym_flag='-Bexport'
6395         no_entry_flag=""
6396       else
6397         # If we're using GNU nm, then we don't want the "-C" option.
6398         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6399         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6400           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'
6401         else
6402           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'
6403         fi
6404         aix_use_runtimelinking=no
6405
6406         # Test if we are trying to use run time linking or normal
6407         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6408         # need to do runtime linking.
6409         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6410           for ld_flag in $LDFLAGS; do
6411           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6412             aix_use_runtimelinking=yes
6413             break
6414           fi
6415           done
6416         esac
6417
6418         exp_sym_flag='-bexport'
6419         no_entry_flag='-bnoentry'
6420       fi
6421
6422       # When large executables or shared objects are built, AIX ld can
6423       # have problems creating the table of contents.  If linking a library
6424       # or program results in "error TOC overflow" add -mminimal-toc to
6425       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6426       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6427
6428       archive_cmds=''
6429       hardcode_direct=yes
6430       hardcode_libdir_separator=':'
6431       link_all_deplibs=yes
6432
6433       if test "$GCC" = yes; then
6434         case $host_os in aix4.[012]|aix4.[012].*)
6435         # We only want to do this on AIX 4.2 and lower, the check
6436         # below for broken collect2 doesn't work under 4.3+
6437           collect2name=`${CC} -print-prog-name=collect2`
6438           if test -f "$collect2name" && \
6439            strings "$collect2name" | grep resolve_lib_name >/dev/null
6440           then
6441           # We have reworked collect2
6442           hardcode_direct=yes
6443           else
6444           # We have old collect2
6445           hardcode_direct=unsupported
6446           # It fails to find uninstalled libraries when the uninstalled
6447           # path is not listed in the libpath.  Setting hardcode_minus_L
6448           # to unsupported forces relinking
6449           hardcode_minus_L=yes
6450           hardcode_libdir_flag_spec='-L$libdir'
6451           hardcode_libdir_separator=
6452           fi
6453         esac
6454         shared_flag='-shared'
6455         if test "$aix_use_runtimelinking" = yes; then
6456           shared_flag="$shared_flag "'${wl}-G'
6457         fi
6458       else
6459         # not using gcc
6460         if test "$host_cpu" = ia64; then
6461         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6462         # chokes on -Wl,-G. The following line is correct:
6463           shared_flag='-G'
6464         else
6465         if test "$aix_use_runtimelinking" = yes; then
6466             shared_flag='${wl}-G'
6467           else
6468             shared_flag='${wl}-bM:SRE'
6469         fi
6470         fi
6471       fi
6472
6473       # It seems that -bexpall does not export symbols beginning with
6474       # underscore (_), so it is better to generate a list of symbols to export.
6475       always_export_symbols=yes
6476       if test "$aix_use_runtimelinking" = yes; then
6477         # Warning - without using the other runtime loading flags (-brtl),
6478         # -berok will link without error, but may produce a broken library.
6479         allow_undefined_flag='-berok'
6480        # Determine the default libpath from the value encoded in an empty executable.
6481        cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h.  */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h.  */
6487
6488 int
6489 main ()
6490 {
6491
6492   ;
6493   return 0;
6494 }
6495 _ACEOF
6496 rm -f conftest.$ac_objext conftest$ac_exeext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498   (eval $ac_link) 2>conftest.er1
6499   ac_status=$?
6500   grep -v '^ *+' conftest.er1 >conftest.err
6501   rm -f conftest.er1
6502   cat conftest.err >&5
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); } &&
6505          { ac_try='test -z "$ac_c_werror_flag"
6506                          || test ! -s conftest.err'
6507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508   (eval $ac_try) 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); }; } &&
6512          { ac_try='test -s conftest$ac_exeext'
6513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514   (eval $ac_try) 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); }; }; then
6518
6519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6520 }'`
6521 # Check for a 64-bit object if we didn't find anything.
6522 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; }
6523 }'`; fi
6524 else
6525   echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6527
6528 fi
6529 rm -f conftest.err conftest.$ac_objext \
6530       conftest$ac_exeext conftest.$ac_ext
6531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6532
6533        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6534         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"
6535        else
6536         if test "$host_cpu" = ia64; then
6537           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6538           allow_undefined_flag="-z nodefs"
6539           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"
6540         else
6541          # Determine the default libpath from the value encoded in an empty executable.
6542          cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h.  */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h.  */
6548
6549 int
6550 main ()
6551 {
6552
6553   ;
6554   return 0;
6555 }
6556 _ACEOF
6557 rm -f conftest.$ac_objext conftest$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559   (eval $ac_link) 2>conftest.er1
6560   ac_status=$?
6561   grep -v '^ *+' conftest.er1 >conftest.err
6562   rm -f conftest.er1
6563   cat conftest.err >&5
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); } &&
6566          { ac_try='test -z "$ac_c_werror_flag"
6567                          || test ! -s conftest.err'
6568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569   (eval $ac_try) 2>&5
6570   ac_status=$?
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); }; } &&
6573          { ac_try='test -s conftest$ac_exeext'
6574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575   (eval $ac_try) 2>&5
6576   ac_status=$?
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); }; }; then
6579
6580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6581 }'`
6582 # Check for a 64-bit object if we didn't find anything.
6583 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; }
6584 }'`; fi
6585 else
6586   echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6588
6589 fi
6590 rm -f conftest.err conftest.$ac_objext \
6591       conftest$ac_exeext conftest.$ac_ext
6592 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6593
6594          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6595           # Warning - without using the other run time loading flags,
6596           # -berok will link without error, but may produce a broken library.
6597           no_undefined_flag=' ${wl}-bernotok'
6598           allow_undefined_flag=' ${wl}-berok'
6599           # -bexpall does not export symbols beginning with underscore (_)
6600           always_export_symbols=yes
6601           # Exported symbols can be pulled into shared objects from archives
6602           whole_archive_flag_spec=' '
6603           archive_cmds_need_lc=yes
6604           # This is similar to how AIX traditionally builds its shared libraries.
6605           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'
6606         fi
6607       fi
6608       ;;
6609
6610     amigaos*)
6611       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)'
6612       hardcode_libdir_flag_spec='-L$libdir'
6613       hardcode_minus_L=yes
6614       # see comment about different semantics on the GNU ld section
6615       ld_shlibs=no
6616       ;;
6617
6618     bsdi[45]*)
6619       export_dynamic_flag_spec=-rdynamic
6620       ;;
6621
6622     cygwin* | mingw* | pw32*)
6623       # When not using gcc, we currently assume that we are using
6624       # Microsoft Visual C++.
6625       # hardcode_libdir_flag_spec is actually meaningless, as there is
6626       # no search path for DLLs.
6627       hardcode_libdir_flag_spec=' '
6628       allow_undefined_flag=unsupported
6629       # Tell ltmain to make .lib files, not .a files.
6630       libext=lib
6631       # Tell ltmain to make .dll files, not .so files.
6632       shrext_cmds=".dll"
6633       # FIXME: Setting linknames here is a bad hack.
6634       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6635       # The linker will automatically build a .lib file if we build a DLL.
6636       old_archive_From_new_cmds='true'
6637       # FIXME: Should let the user specify the lib program.
6638       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6639       fix_srcfile_path='`cygpath -w "$srcfile"`'
6640       enable_shared_with_static_runtimes=yes
6641       ;;
6642
6643     darwin* | rhapsody*)
6644       case $host_os in
6645         rhapsody* | darwin1.[012])
6646          allow_undefined_flag='${wl}-undefined ${wl}suppress'
6647          ;;
6648        *) # Darwin 1.3 on
6649          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6650            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6651          else
6652            case ${MACOSX_DEPLOYMENT_TARGET} in
6653              10.[012])
6654                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6655                ;;
6656              10.*)
6657                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6658                ;;
6659            esac
6660          fi
6661          ;;
6662       esac
6663       archive_cmds_need_lc=no
6664       hardcode_direct=no
6665       hardcode_automatic=yes
6666       hardcode_shlibpath_var=unsupported
6667       whole_archive_flag_spec=''
6668       link_all_deplibs=yes
6669     if test "$GCC" = yes ; then
6670         output_verbose_link_cmd='echo'
6671         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6672       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6673       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6674       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}'
6675       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}'
6676     else
6677       case $cc_basename in
6678         xlc*)
6679          output_verbose_link_cmd='echo'
6680          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6681          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6682           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6683          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}'
6684           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}'
6685           ;;
6686        *)
6687          ld_shlibs=no
6688           ;;
6689       esac
6690     fi
6691       ;;
6692
6693     dgux*)
6694       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6695       hardcode_libdir_flag_spec='-L$libdir'
6696       hardcode_shlibpath_var=no
6697       ;;
6698
6699     freebsd1*)
6700       ld_shlibs=no
6701       ;;
6702
6703     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6704     # support.  Future versions do this automatically, but an explicit c++rt0.o
6705     # does not break anything, and helps significantly (at the cost of a little
6706     # extra space).
6707     freebsd2.2*)
6708       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6709       hardcode_libdir_flag_spec='-R$libdir'
6710       hardcode_direct=yes
6711       hardcode_shlibpath_var=no
6712       ;;
6713
6714     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6715     freebsd2*)
6716       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6717       hardcode_direct=yes
6718       hardcode_minus_L=yes
6719       hardcode_shlibpath_var=no
6720       ;;
6721
6722     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6723     freebsd* | kfreebsd*-gnu | dragonfly*)
6724       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6725       hardcode_libdir_flag_spec='-R$libdir'
6726       hardcode_direct=yes
6727       hardcode_shlibpath_var=no
6728       ;;
6729
6730     hpux9*)
6731       if test "$GCC" = yes; then
6732         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'
6733       else
6734         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'
6735       fi
6736       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6737       hardcode_libdir_separator=:
6738       hardcode_direct=yes
6739
6740       # hardcode_minus_L: Not really in the search PATH,
6741       # but as the default location of the library.
6742       hardcode_minus_L=yes
6743       export_dynamic_flag_spec='${wl}-E'
6744       ;;
6745
6746     hpux10* | hpux11*)
6747       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6748         case $host_cpu in
6749         hppa*64*|ia64*)
6750           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6751           ;;
6752         *)
6753           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6754           ;;
6755         esac
6756       else
6757         case $host_cpu in
6758         hppa*64*|ia64*)
6759           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6760           ;;
6761         *)
6762           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6763           ;;
6764         esac
6765       fi
6766       if test "$with_gnu_ld" = no; then
6767         case $host_cpu in
6768         hppa*64*)
6769           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6770           hardcode_libdir_flag_spec_ld='+b $libdir'
6771           hardcode_libdir_separator=:
6772           hardcode_direct=no
6773           hardcode_shlibpath_var=no
6774           ;;
6775         ia64*)
6776           hardcode_libdir_flag_spec='-L$libdir'
6777           hardcode_direct=no
6778           hardcode_shlibpath_var=no
6779
6780           # hardcode_minus_L: Not really in the search PATH,
6781           # but as the default location of the library.
6782           hardcode_minus_L=yes
6783           ;;
6784         *)
6785           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6786           hardcode_libdir_separator=:
6787           hardcode_direct=yes
6788           export_dynamic_flag_spec='${wl}-E'
6789
6790           # hardcode_minus_L: Not really in the search PATH,
6791           # but as the default location of the library.
6792           hardcode_minus_L=yes
6793           ;;
6794         esac
6795       fi
6796       ;;
6797
6798     irix5* | irix6* | nonstopux*)
6799       if test "$GCC" = yes; then
6800         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'
6801       else
6802         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'
6803         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6804       fi
6805       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6806       hardcode_libdir_separator=:
6807       link_all_deplibs=yes
6808       ;;
6809
6810     netbsd*)
6811       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6812         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6813       else
6814         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6815       fi
6816       hardcode_libdir_flag_spec='-R$libdir'
6817       hardcode_direct=yes
6818       hardcode_shlibpath_var=no
6819       ;;
6820
6821     newsos6)
6822       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6823       hardcode_direct=yes
6824       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6825       hardcode_libdir_separator=:
6826       hardcode_shlibpath_var=no
6827       ;;
6828
6829     openbsd*)
6830       hardcode_direct=yes
6831       hardcode_shlibpath_var=no
6832       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6833         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6834         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6835         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6836         export_dynamic_flag_spec='${wl}-E'
6837       else
6838        case $host_os in
6839          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6840            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6841            hardcode_libdir_flag_spec='-R$libdir'
6842            ;;
6843          *)
6844            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6845            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6846            ;;
6847        esac
6848       fi
6849       ;;
6850
6851     os2*)
6852       hardcode_libdir_flag_spec='-L$libdir'
6853       hardcode_minus_L=yes
6854       allow_undefined_flag=unsupported
6855       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'
6856       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6857       ;;
6858
6859     osf3*)
6860       if test "$GCC" = yes; then
6861         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6862         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'
6863       else
6864         allow_undefined_flag=' -expect_unresolved \*'
6865         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'
6866       fi
6867       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6868       hardcode_libdir_separator=:
6869       ;;
6870
6871     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6872       if test "$GCC" = yes; then
6873         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6874         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'
6875         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6876       else
6877         allow_undefined_flag=' -expect_unresolved \*'
6878         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'
6879         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6880         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6881
6882         # Both c and cxx compiler support -rpath directly
6883         hardcode_libdir_flag_spec='-rpath $libdir'
6884       fi
6885       hardcode_libdir_separator=:
6886       ;;
6887
6888     sco3.2v5*)
6889       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6890       hardcode_shlibpath_var=no
6891       export_dynamic_flag_spec='${wl}-Bexport'
6892       runpath_var=LD_RUN_PATH
6893       hardcode_runpath_var=yes
6894       ;;
6895
6896     solaris*)
6897       no_undefined_flag=' -z text'
6898       if test "$GCC" = yes; then
6899         wlarc='${wl}'
6900         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6901         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6902           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6903       else
6904         wlarc=''
6905         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6906         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6907         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6908       fi
6909       hardcode_libdir_flag_spec='-R$libdir'
6910       hardcode_shlibpath_var=no
6911       case $host_os in
6912       solaris2.[0-5] | solaris2.[0-5].*) ;;
6913       *)
6914         # The compiler driver will combine linker options so we
6915         # cannot just pass the convience library names through
6916         # without $wl, iff we do not link with $LD.
6917         # Luckily, gcc supports the same syntax we need for Sun Studio.
6918         # Supported since Solaris 2.6 (maybe 2.5.1?)
6919         case $wlarc in
6920         '')
6921           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6922         *)
6923           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6924         esac ;;
6925       esac
6926       link_all_deplibs=yes
6927       ;;
6928
6929     sunos4*)
6930       if test "x$host_vendor" = xsequent; then
6931         # Use $CC to link under sequent, because it throws in some extra .o
6932         # files that make .init and .fini sections work.
6933         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6934       else
6935         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6936       fi
6937       hardcode_libdir_flag_spec='-L$libdir'
6938       hardcode_direct=yes
6939       hardcode_minus_L=yes
6940       hardcode_shlibpath_var=no
6941       ;;
6942
6943     sysv4)
6944       case $host_vendor in
6945         sni)
6946           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6947           hardcode_direct=yes # is this really true???
6948         ;;
6949         siemens)
6950           ## LD is ld it makes a PLAMLIB
6951           ## CC just makes a GrossModule.
6952           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6953           reload_cmds='$CC -r -o $output$reload_objs'
6954           hardcode_direct=no
6955         ;;
6956         motorola)
6957           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6958           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6959         ;;
6960       esac
6961       runpath_var='LD_RUN_PATH'
6962       hardcode_shlibpath_var=no
6963       ;;
6964
6965     sysv4.3*)
6966       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967       hardcode_shlibpath_var=no
6968       export_dynamic_flag_spec='-Bexport'
6969       ;;
6970
6971     sysv4*MP*)
6972       if test -d /usr/nec; then
6973         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974         hardcode_shlibpath_var=no
6975         runpath_var=LD_RUN_PATH
6976         hardcode_runpath_var=yes
6977         ld_shlibs=yes
6978       fi
6979       ;;
6980
6981     sysv4.2uw2*)
6982       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6983       hardcode_direct=yes
6984       hardcode_minus_L=no
6985       hardcode_shlibpath_var=no
6986       hardcode_runpath_var=yes
6987       runpath_var=LD_RUN_PATH
6988       ;;
6989
6990    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6991       no_undefined_flag='${wl}-z ${wl}text'
6992       if test "$GCC" = yes; then
6993         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6994       else
6995         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6996       fi
6997       runpath_var='LD_RUN_PATH'
6998       hardcode_shlibpath_var=no
6999       ;;
7000
7001     sysv5*)
7002       no_undefined_flag=' -z text'
7003       # $CC -shared without GNU ld will not create a library from C++
7004       # object files and a static libstdc++, better avoid it by now
7005       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7006       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7007                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7008       hardcode_libdir_flag_spec=
7009       hardcode_shlibpath_var=no
7010       runpath_var='LD_RUN_PATH'
7011       ;;
7012
7013     uts4*)
7014       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7015       hardcode_libdir_flag_spec='-L$libdir'
7016       hardcode_shlibpath_var=no
7017       ;;
7018
7019     *)
7020       ld_shlibs=no
7021       ;;
7022     esac
7023   fi
7024
7025 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7026 echo "${ECHO_T}$ld_shlibs" >&6
7027 test "$ld_shlibs" = no && can_build_shared=no
7028
7029 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7030 if test "$GCC" = yes; then
7031   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7032 fi
7033
7034 #
7035 # Do we need to explicitly link libc?
7036 #
7037 case "x$archive_cmds_need_lc" in
7038 x|xyes)
7039   # Assume -lc should be added
7040   archive_cmds_need_lc=yes
7041
7042   if test "$enable_shared" = yes && test "$GCC" = yes; then
7043     case $archive_cmds in
7044     *'~'*)
7045       # FIXME: we may have to deal with multi-command sequences.
7046       ;;
7047     '$CC '*)
7048       # Test whether the compiler implicitly links with -lc since on some
7049       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7050       # to ld, don't add -lc before -lgcc.
7051       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7052 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7053       $rm conftest*
7054       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7055
7056       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057   (eval $ac_compile) 2>&5
7058   ac_status=$?
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); } 2>conftest.err; then
7061         soname=conftest
7062         lib=conftest
7063         libobjs=conftest.$ac_objext
7064         deplibs=
7065         wl=$lt_prog_compiler_wl
7066         compiler_flags=-v
7067         linker_flags=-v
7068         verstring=
7069         output_objdir=.
7070         libname=conftest
7071         lt_save_allow_undefined_flag=$allow_undefined_flag
7072         allow_undefined_flag=
7073         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7074   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); }
7078         then
7079           archive_cmds_need_lc=no
7080         else
7081           archive_cmds_need_lc=yes
7082         fi
7083         allow_undefined_flag=$lt_save_allow_undefined_flag
7084       else
7085         cat conftest.err 1>&5
7086       fi
7087       $rm conftest*
7088       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7089 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7090       ;;
7091     esac
7092   fi
7093   ;;
7094 esac
7095
7096 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7097 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7098 library_names_spec=
7099 libname_spec='lib$name'
7100 soname_spec=
7101 shrext_cmds=".so"
7102 postinstall_cmds=
7103 postuninstall_cmds=
7104 finish_cmds=
7105 finish_eval=
7106 shlibpath_var=
7107 shlibpath_overrides_runpath=unknown
7108 version_type=none
7109 dynamic_linker="$host_os ld.so"
7110 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7111 if test "$GCC" = yes; then
7112   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7113   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7114     # if the path contains ";" then we assume it to be the separator
7115     # otherwise default to the standard path separator (i.e. ":") - it is
7116     # assumed that no part of a normal pathname contains ";" but that should
7117     # okay in the real world where ";" in dirpaths is itself problematic.
7118     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7119   else
7120     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7121   fi
7122 else
7123   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7124 fi
7125 need_lib_prefix=unknown
7126 hardcode_into_libs=no
7127
7128 # when you set need_version to no, make sure it does not cause -set_version
7129 # flags to be left without arguments
7130 need_version=unknown
7131
7132 case $host_os in
7133 aix3*)
7134   version_type=linux
7135   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7136   shlibpath_var=LIBPATH
7137
7138   # AIX 3 has no versioning support, so we append a major version to the name.
7139   soname_spec='${libname}${release}${shared_ext}$major'
7140   ;;
7141
7142 aix4* | aix5*)
7143   version_type=linux
7144   need_lib_prefix=no
7145   need_version=no
7146   hardcode_into_libs=yes
7147   if test "$host_cpu" = ia64; then
7148     # AIX 5 supports IA64
7149     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7150     shlibpath_var=LD_LIBRARY_PATH
7151   else
7152     # With GCC up to 2.95.x, collect2 would create an import file
7153     # for dependence libraries.  The import file would start with
7154     # the line `#! .'.  This would cause the generated library to
7155     # depend on `.', always an invalid library.  This was fixed in
7156     # development snapshots of GCC prior to 3.0.
7157     case $host_os in
7158       aix4 | aix4.[01] | aix4.[01].*)
7159       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7160            echo ' yes '
7161            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7162         :
7163       else
7164         can_build_shared=no
7165       fi
7166       ;;
7167     esac
7168     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7169     # soname into executable. Probably we can add versioning support to
7170     # collect2, so additional links can be useful in future.
7171     if test "$aix_use_runtimelinking" = yes; then
7172       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7173       # instead of lib<name>.a to let people know that these are not
7174       # typical AIX shared libraries.
7175       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7176     else
7177       # We preserve .a as extension for shared libraries through AIX4.2
7178       # and later when we are not doing run time linking.
7179       library_names_spec='${libname}${release}.a $libname.a'
7180       soname_spec='${libname}${release}${shared_ext}$major'
7181     fi
7182     shlibpath_var=LIBPATH
7183   fi
7184   ;;
7185
7186 amigaos*)
7187   library_names_spec='$libname.ixlibrary $libname.a'
7188   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7189   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'
7190   ;;
7191
7192 beos*)
7193   library_names_spec='${libname}${shared_ext}'
7194   dynamic_linker="$host_os ld.so"
7195   shlibpath_var=LIBRARY_PATH
7196   ;;
7197
7198 bsdi[45]*)
7199   version_type=linux
7200   need_version=no
7201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7202   soname_spec='${libname}${release}${shared_ext}$major'
7203   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7204   shlibpath_var=LD_LIBRARY_PATH
7205   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7206   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7207   # the default ld.so.conf also contains /usr/contrib/lib and
7208   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7209   # libtool to hard-code these into programs
7210   ;;
7211
7212 cygwin* | mingw* | pw32*)
7213   version_type=windows
7214   shrext_cmds=".dll"
7215   need_version=no
7216   need_lib_prefix=no
7217
7218   case $GCC,$host_os in
7219   yes,cygwin* | yes,mingw* | yes,pw32*)
7220     library_names_spec='$libname.dll.a'
7221     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7222     postinstall_cmds='base_file=`basename \${file}`~
7223       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7224       dldir=$destdir/`dirname \$dlpath`~
7225       test -d \$dldir || mkdir -p \$dldir~
7226       $install_prog $dir/$dlname \$dldir/$dlname~
7227       chmod a+x \$dldir/$dlname'
7228     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7229       dlpath=$dir/\$dldll~
7230        $rm \$dlpath'
7231     shlibpath_overrides_runpath=yes
7232
7233     case $host_os in
7234     cygwin*)
7235       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7236       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7237       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7238       ;;
7239     mingw*)
7240       # MinGW DLLs use traditional 'lib' prefix
7241       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7242       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7243       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7244         # It is most probably a Windows format PATH printed by
7245         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7246         # path with ; separators, and with drive letters. We can handle the
7247         # drive letters (cygwin fileutils understands them), so leave them,
7248         # especially as we might pass files found there to a mingw objdump,
7249         # which wouldn't understand a cygwinified path. Ahh.
7250         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7251       else
7252         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7253       fi
7254       ;;
7255     pw32*)
7256       # pw32 DLLs use 'pw' prefix rather than 'lib'
7257       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7258       ;;
7259     esac
7260     ;;
7261
7262   *)
7263     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7264     ;;
7265   esac
7266   dynamic_linker='Win32 ld.exe'
7267   # FIXME: first we should search . and the directory the executable is in
7268   shlibpath_var=PATH
7269   ;;
7270
7271 darwin* | rhapsody*)
7272   dynamic_linker="$host_os dyld"
7273   version_type=darwin
7274   need_lib_prefix=no
7275   need_version=no
7276   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7277   soname_spec='${libname}${release}${major}$shared_ext'
7278   shlibpath_overrides_runpath=yes
7279   shlibpath_var=DYLD_LIBRARY_PATH
7280   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7281   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7282   if test "$GCC" = yes; then
7283     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"`
7284   else
7285     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7286   fi
7287   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7288   ;;
7289
7290 dgux*)
7291   version_type=linux
7292   need_lib_prefix=no
7293   need_version=no
7294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7295   soname_spec='${libname}${release}${shared_ext}$major'
7296   shlibpath_var=LD_LIBRARY_PATH
7297   ;;
7298
7299 freebsd1*)
7300   dynamic_linker=no
7301   ;;
7302
7303 kfreebsd*-gnu)
7304   version_type=linux
7305   need_lib_prefix=no
7306   need_version=no
7307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7308   soname_spec='${libname}${release}${shared_ext}$major'
7309   shlibpath_var=LD_LIBRARY_PATH
7310   shlibpath_overrides_runpath=no
7311   hardcode_into_libs=yes
7312   dynamic_linker='GNU ld.so'
7313   ;;
7314
7315 freebsd* | dragonfly*)
7316   # DragonFly does not have aout.  When/if they implement a new
7317   # versioning mechanism, adjust this.
7318   if test -x /usr/bin/objformat; then
7319     objformat=`/usr/bin/objformat`
7320   else
7321     case $host_os in
7322     freebsd[123]*) objformat=aout ;;
7323     *) objformat=elf ;;
7324     esac
7325   fi
7326   version_type=freebsd-$objformat
7327   case $version_type in
7328     freebsd-elf*)
7329       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7330       need_version=no
7331       need_lib_prefix=no
7332       ;;
7333     freebsd-*)
7334       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7335       need_version=yes
7336       ;;
7337   esac
7338   shlibpath_var=LD_LIBRARY_PATH
7339   case $host_os in
7340   freebsd2*)
7341     shlibpath_overrides_runpath=yes
7342     ;;
7343   freebsd3.[01]* | freebsdelf3.[01]*)
7344     shlibpath_overrides_runpath=yes
7345     hardcode_into_libs=yes
7346     ;;
7347   *) # from 3.2 on
7348     shlibpath_overrides_runpath=no
7349     hardcode_into_libs=yes
7350     ;;
7351   esac
7352   ;;
7353
7354 gnu*)
7355   version_type=linux
7356   need_lib_prefix=no
7357   need_version=no
7358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7359   soname_spec='${libname}${release}${shared_ext}$major'
7360   shlibpath_var=LD_LIBRARY_PATH
7361   hardcode_into_libs=yes
7362   ;;
7363
7364 hpux9* | hpux10* | hpux11*)
7365   # Give a soname corresponding to the major version so that dld.sl refuses to
7366   # link against other versions.
7367   version_type=sunos
7368   need_lib_prefix=no
7369   need_version=no
7370   case $host_cpu in
7371   ia64*)
7372     shrext_cmds='.so'
7373     hardcode_into_libs=yes
7374     dynamic_linker="$host_os dld.so"
7375     shlibpath_var=LD_LIBRARY_PATH
7376     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7378     soname_spec='${libname}${release}${shared_ext}$major'
7379     if test "X$HPUX_IA64_MODE" = X32; then
7380       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7381     else
7382       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7383     fi
7384     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7385     ;;
7386    hppa*64*)
7387      shrext_cmds='.sl'
7388      hardcode_into_libs=yes
7389      dynamic_linker="$host_os dld.sl"
7390      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7391      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7395      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7396      ;;
7397    *)
7398     shrext_cmds='.sl'
7399     dynamic_linker="$host_os dld.sl"
7400     shlibpath_var=SHLIB_PATH
7401     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7403     soname_spec='${libname}${release}${shared_ext}$major'
7404     ;;
7405   esac
7406   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7407   postinstall_cmds='chmod 555 $lib'
7408   ;;
7409
7410 irix5* | irix6* | nonstopux*)
7411   case $host_os in
7412     nonstopux*) version_type=nonstopux ;;
7413     *)
7414         if test "$lt_cv_prog_gnu_ld" = yes; then
7415                 version_type=linux
7416         else
7417                 version_type=irix
7418         fi ;;
7419   esac
7420   need_lib_prefix=no
7421   need_version=no
7422   soname_spec='${libname}${release}${shared_ext}$major'
7423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7424   case $host_os in
7425   irix5* | nonstopux*)
7426     libsuff= shlibsuff=
7427     ;;
7428   *)
7429     case $LD in # libtool.m4 will add one of these switches to LD
7430     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7431       libsuff= shlibsuff= libmagic=32-bit;;
7432     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7433       libsuff=32 shlibsuff=N32 libmagic=N32;;
7434     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7435       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7436     *) libsuff= shlibsuff= libmagic=never-match;;
7437     esac
7438     ;;
7439   esac
7440   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7441   shlibpath_overrides_runpath=no
7442   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7443   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7444   hardcode_into_libs=yes
7445   ;;
7446
7447 # No shared lib support for Linux oldld, aout, or coff.
7448 linux*oldld* | linux*aout* | linux*coff*)
7449   dynamic_linker=no
7450   ;;
7451
7452 # This must be Linux ELF.
7453 linux*)
7454   version_type=linux
7455   need_lib_prefix=no
7456   need_version=no
7457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7458   soname_spec='${libname}${release}${shared_ext}$major'
7459   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7460   shlibpath_var=LD_LIBRARY_PATH
7461   shlibpath_overrides_runpath=no
7462   # This implies no fast_install, which is unacceptable.
7463   # Some rework will be needed to allow for fast_install
7464   # before this can be enabled.
7465   hardcode_into_libs=yes
7466
7467   # Append ld.so.conf contents to the search path
7468   if test -f /etc/ld.so.conf; then
7469     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7470     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7471   fi
7472
7473   # We used to test for /lib/ld.so.1 and disable shared libraries on
7474   # powerpc, because MkLinux only supported shared libraries with the
7475   # GNU dynamic linker.  Since this was broken with cross compilers,
7476   # most powerpc-linux boxes support dynamic linking these days and
7477   # people can always --disable-shared, the test was removed, and we
7478   # assume the GNU/Linux dynamic linker is in use.
7479   dynamic_linker='GNU/Linux ld.so'
7480   ;;
7481
7482 knetbsd*-gnu)
7483   version_type=linux
7484   need_lib_prefix=no
7485   need_version=no
7486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7487   soname_spec='${libname}${release}${shared_ext}$major'
7488   shlibpath_var=LD_LIBRARY_PATH
7489   shlibpath_overrides_runpath=no
7490   hardcode_into_libs=yes
7491   dynamic_linker='GNU ld.so'
7492   ;;
7493
7494 netbsd*)
7495   version_type=sunos
7496   need_lib_prefix=no
7497   need_version=no
7498   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7500     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7501     dynamic_linker='NetBSD (a.out) ld.so'
7502   else
7503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7504     soname_spec='${libname}${release}${shared_ext}$major'
7505     dynamic_linker='NetBSD ld.elf_so'
7506   fi
7507   shlibpath_var=LD_LIBRARY_PATH
7508   shlibpath_overrides_runpath=yes
7509   hardcode_into_libs=yes
7510   ;;
7511
7512 newsos6)
7513   version_type=linux
7514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7515   shlibpath_var=LD_LIBRARY_PATH
7516   shlibpath_overrides_runpath=yes
7517   ;;
7518
7519 nto-qnx*)
7520   version_type=linux
7521   need_lib_prefix=no
7522   need_version=no
7523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7524   soname_spec='${libname}${release}${shared_ext}$major'
7525   shlibpath_var=LD_LIBRARY_PATH
7526   shlibpath_overrides_runpath=yes
7527   ;;
7528
7529 openbsd*)
7530   version_type=sunos
7531   need_lib_prefix=no
7532   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7533   case $host_os in
7534     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7535     *)                         need_version=no  ;;
7536   esac
7537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7538   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7539   shlibpath_var=LD_LIBRARY_PATH
7540   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7541     case $host_os in
7542       openbsd2.[89] | openbsd2.[89].*)
7543         shlibpath_overrides_runpath=no
7544         ;;
7545       *)
7546         shlibpath_overrides_runpath=yes
7547         ;;
7548       esac
7549   else
7550     shlibpath_overrides_runpath=yes
7551   fi
7552   ;;
7553
7554 os2*)
7555   libname_spec='$name'
7556   shrext_cmds=".dll"
7557   need_lib_prefix=no
7558   library_names_spec='$libname${shared_ext} $libname.a'
7559   dynamic_linker='OS/2 ld.exe'
7560   shlibpath_var=LIBPATH
7561   ;;
7562
7563 osf3* | osf4* | osf5*)
7564   version_type=osf
7565   need_lib_prefix=no
7566   need_version=no
7567   soname_spec='${libname}${release}${shared_ext}$major'
7568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7569   shlibpath_var=LD_LIBRARY_PATH
7570   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7571   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7572   ;;
7573
7574 sco3.2v5*)
7575   version_type=osf
7576   soname_spec='${libname}${release}${shared_ext}$major'
7577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7578   shlibpath_var=LD_LIBRARY_PATH
7579   ;;
7580
7581 solaris*)
7582   version_type=linux
7583   need_lib_prefix=no
7584   need_version=no
7585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7586   soname_spec='${libname}${release}${shared_ext}$major'
7587   shlibpath_var=LD_LIBRARY_PATH
7588   shlibpath_overrides_runpath=yes
7589   hardcode_into_libs=yes
7590   # ldd complains unless libraries are executable
7591   postinstall_cmds='chmod +x $lib'
7592   ;;
7593
7594 sunos4*)
7595   version_type=sunos
7596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7597   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7598   shlibpath_var=LD_LIBRARY_PATH
7599   shlibpath_overrides_runpath=yes
7600   if test "$with_gnu_ld" = yes; then
7601     need_lib_prefix=no
7602   fi
7603   need_version=yes
7604   ;;
7605
7606 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7607   version_type=linux
7608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609   soname_spec='${libname}${release}${shared_ext}$major'
7610   shlibpath_var=LD_LIBRARY_PATH
7611   case $host_vendor in
7612     sni)
7613       shlibpath_overrides_runpath=no
7614       need_lib_prefix=no
7615       export_dynamic_flag_spec='${wl}-Blargedynsym'
7616       runpath_var=LD_RUN_PATH
7617       ;;
7618     siemens)
7619       need_lib_prefix=no
7620       ;;
7621     motorola)
7622       need_lib_prefix=no
7623       need_version=no
7624       shlibpath_overrides_runpath=no
7625       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7626       ;;
7627   esac
7628   ;;
7629
7630 sysv4*MP*)
7631   if test -d /usr/nec ;then
7632     version_type=linux
7633     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7634     soname_spec='$libname${shared_ext}.$major'
7635     shlibpath_var=LD_LIBRARY_PATH
7636   fi
7637   ;;
7638
7639 uts4*)
7640   version_type=linux
7641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7642   soname_spec='${libname}${release}${shared_ext}$major'
7643   shlibpath_var=LD_LIBRARY_PATH
7644   ;;
7645
7646 *)
7647   dynamic_linker=no
7648   ;;
7649 esac
7650 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7651 echo "${ECHO_T}$dynamic_linker" >&6
7652 test "$dynamic_linker" = no && can_build_shared=no
7653
7654 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7655 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7656 hardcode_action=
7657 if test -n "$hardcode_libdir_flag_spec" || \
7658    test -n "$runpath_var" || \
7659    test "X$hardcode_automatic" = "Xyes" ; then
7660
7661   # We can hardcode non-existant directories.
7662   if test "$hardcode_direct" != no &&
7663      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7664      # have to relink, otherwise we might link with an installed library
7665      # when we should be linking with a yet-to-be-installed one
7666      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7667      test "$hardcode_minus_L" != no; then
7668     # Linking always hardcodes the temporary library directory.
7669     hardcode_action=relink
7670   else
7671     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7672     hardcode_action=immediate
7673   fi
7674 else
7675   # We cannot hardcode anything, or else we can only hardcode existing
7676   # directories.
7677   hardcode_action=unsupported
7678 fi
7679 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7680 echo "${ECHO_T}$hardcode_action" >&6
7681
7682 if test "$hardcode_action" = relink; then
7683   # Fast installation is not supported
7684   enable_fast_install=no
7685 elif test "$shlibpath_overrides_runpath" = yes ||
7686      test "$enable_shared" = no; then
7687   # Fast installation is not necessary
7688   enable_fast_install=needless
7689 fi
7690
7691 striplib=
7692 old_striplib=
7693 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7694 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7695 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7696   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7697   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7698   echo "$as_me:$LINENO: result: yes" >&5
7699 echo "${ECHO_T}yes" >&6
7700 else
7701 # FIXME - insert some real tests, host_os isn't really good enough
7702   case $host_os in
7703    darwin*)
7704        if test -n "$STRIP" ; then
7705          striplib="$STRIP -x"
7706          echo "$as_me:$LINENO: result: yes" >&5
7707 echo "${ECHO_T}yes" >&6
7708        else
7709   echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6
7711 fi
7712        ;;
7713    *)
7714   echo "$as_me:$LINENO: result: no" >&5
7715 echo "${ECHO_T}no" >&6
7716     ;;
7717   esac
7718 fi
7719
7720 if test "x$enable_dlopen" != xyes; then
7721   enable_dlopen=unknown
7722   enable_dlopen_self=unknown
7723   enable_dlopen_self_static=unknown
7724 else
7725   lt_cv_dlopen=no
7726   lt_cv_dlopen_libs=
7727
7728   case $host_os in
7729   beos*)
7730     lt_cv_dlopen="load_add_on"
7731     lt_cv_dlopen_libs=
7732     lt_cv_dlopen_self=yes
7733     ;;
7734
7735   mingw* | pw32*)
7736     lt_cv_dlopen="LoadLibrary"
7737     lt_cv_dlopen_libs=
7738    ;;
7739
7740   cygwin*)
7741     lt_cv_dlopen="dlopen"
7742     lt_cv_dlopen_libs=
7743    ;;
7744
7745   darwin*)
7746   # if libdl is installed we need to link against it
7747     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7748 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7749 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7750   echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752   ac_check_lib_save_LIBS=$LIBS
7753 LIBS="-ldl  $LIBS"
7754 cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h.  */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h.  */
7760
7761 /* Override any gcc2 internal prototype to avoid an error.  */
7762 #ifdef __cplusplus
7763 extern "C"
7764 #endif
7765 /* We use char because int might match the return type of a gcc2
7766    builtin and then its argument prototype would still apply.  */
7767 char dlopen ();
7768 int
7769 main ()
7770 {
7771 dlopen ();
7772   ;
7773   return 0;
7774 }
7775 _ACEOF
7776 rm -f conftest.$ac_objext conftest$ac_exeext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7778   (eval $ac_link) 2>conftest.er1
7779   ac_status=$?
7780   grep -v '^ *+' conftest.er1 >conftest.err
7781   rm -f conftest.er1
7782   cat conftest.err >&5
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); } &&
7785          { ac_try='test -z "$ac_c_werror_flag"
7786                          || test ! -s conftest.err'
7787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788   (eval $ac_try) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; } &&
7792          { ac_try='test -s conftest$ac_exeext'
7793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794   (eval $ac_try) 2>&5
7795   ac_status=$?
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); }; }; then
7798   ac_cv_lib_dl_dlopen=yes
7799 else
7800   echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 ac_cv_lib_dl_dlopen=no
7804 fi
7805 rm -f conftest.err conftest.$ac_objext \
7806       conftest$ac_exeext conftest.$ac_ext
7807 LIBS=$ac_check_lib_save_LIBS
7808 fi
7809 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7810 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7811 if test $ac_cv_lib_dl_dlopen = yes; then
7812   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7813 else
7814
7815     lt_cv_dlopen="dyld"
7816     lt_cv_dlopen_libs=
7817     lt_cv_dlopen_self=yes
7818
7819 fi
7820
7821    ;;
7822
7823   *)
7824     echo "$as_me:$LINENO: checking for shl_load" >&5
7825 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7826 if test "${ac_cv_func_shl_load+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h.  */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h.  */
7835 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7837 #define shl_load innocuous_shl_load
7838
7839 /* System header to define __stub macros and hopefully few prototypes,
7840     which can conflict with char shl_load (); below.
7841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7842     <limits.h> exists even on freestanding compilers.  */
7843
7844 #ifdef __STDC__
7845 # include <limits.h>
7846 #else
7847 # include <assert.h>
7848 #endif
7849
7850 #undef shl_load
7851
7852 /* Override any gcc2 internal prototype to avoid an error.  */
7853 #ifdef __cplusplus
7854 extern "C"
7855 {
7856 #endif
7857 /* We use char because int might match the return type of a gcc2
7858    builtin and then its argument prototype would still apply.  */
7859 char shl_load ();
7860 /* The GNU C library defines this for functions which it implements
7861     to always fail with ENOSYS.  Some functions are actually named
7862     something starting with __ and the normal name is an alias.  */
7863 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7864 choke me
7865 #else
7866 char (*f) () = shl_load;
7867 #endif
7868 #ifdef __cplusplus
7869 }
7870 #endif
7871
7872 int
7873 main ()
7874 {
7875 return f != shl_load;
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882   (eval $ac_link) 2>conftest.er1
7883   ac_status=$?
7884   grep -v '^ *+' conftest.er1 >conftest.err
7885   rm -f conftest.er1
7886   cat conftest.err >&5
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); } &&
7889          { ac_try='test -z "$ac_c_werror_flag"
7890                          || test ! -s conftest.err'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; } &&
7896          { ac_try='test -s conftest$ac_exeext'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   ac_cv_func_shl_load=yes
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907 ac_cv_func_shl_load=no
7908 fi
7909 rm -f conftest.err conftest.$ac_objext \
7910       conftest$ac_exeext conftest.$ac_ext
7911 fi
7912 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7913 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7914 if test $ac_cv_func_shl_load = yes; then
7915   lt_cv_dlopen="shl_load"
7916 else
7917   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7918 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7919 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7920   echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922   ac_check_lib_save_LIBS=$LIBS
7923 LIBS="-ldld  $LIBS"
7924 cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h.  */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h.  */
7930
7931 /* Override any gcc2 internal prototype to avoid an error.  */
7932 #ifdef __cplusplus
7933 extern "C"
7934 #endif
7935 /* We use char because int might match the return type of a gcc2
7936    builtin and then its argument prototype would still apply.  */
7937 char shl_load ();
7938 int
7939 main ()
7940 {
7941 shl_load ();
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948   (eval $ac_link) 2>conftest.er1
7949   ac_status=$?
7950   grep -v '^ *+' conftest.er1 >conftest.err
7951   rm -f conftest.er1
7952   cat conftest.err >&5
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); } &&
7955          { ac_try='test -z "$ac_c_werror_flag"
7956                          || test ! -s conftest.err'
7957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958   (eval $ac_try) 2>&5
7959   ac_status=$?
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); }; } &&
7962          { ac_try='test -s conftest$ac_exeext'
7963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964   (eval $ac_try) 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); }; }; then
7968   ac_cv_lib_dld_shl_load=yes
7969 else
7970   echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7972
7973 ac_cv_lib_dld_shl_load=no
7974 fi
7975 rm -f conftest.err conftest.$ac_objext \
7976       conftest$ac_exeext conftest.$ac_ext
7977 LIBS=$ac_check_lib_save_LIBS
7978 fi
7979 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7980 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7981 if test $ac_cv_lib_dld_shl_load = yes; then
7982   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7983 else
7984   echo "$as_me:$LINENO: checking for dlopen" >&5
7985 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7986 if test "${ac_cv_func_dlopen+set}" = set; then
7987   echo $ECHO_N "(cached) $ECHO_C" >&6
7988 else
7989   cat >conftest.$ac_ext <<_ACEOF
7990 /* confdefs.h.  */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h.  */
7995 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7997 #define dlopen innocuous_dlopen
7998
7999 /* System header to define __stub macros and hopefully few prototypes,
8000     which can conflict with char dlopen (); below.
8001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8002     <limits.h> exists even on freestanding compilers.  */
8003
8004 #ifdef __STDC__
8005 # include <limits.h>
8006 #else
8007 # include <assert.h>
8008 #endif
8009
8010 #undef dlopen
8011
8012 /* Override any gcc2 internal prototype to avoid an error.  */
8013 #ifdef __cplusplus
8014 extern "C"
8015 {
8016 #endif
8017 /* We use char because int might match the return type of a gcc2
8018    builtin and then its argument prototype would still apply.  */
8019 char dlopen ();
8020 /* The GNU C library defines this for functions which it implements
8021     to always fail with ENOSYS.  Some functions are actually named
8022     something starting with __ and the normal name is an alias.  */
8023 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8024 choke me
8025 #else
8026 char (*f) () = dlopen;
8027 #endif
8028 #ifdef __cplusplus
8029 }
8030 #endif
8031
8032 int
8033 main ()
8034 {
8035 return f != dlopen;
8036   ;
8037   return 0;
8038 }
8039 _ACEOF
8040 rm -f conftest.$ac_objext conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042   (eval $ac_link) 2>conftest.er1
8043   ac_status=$?
8044   grep -v '^ *+' conftest.er1 >conftest.err
8045   rm -f conftest.er1
8046   cat conftest.err >&5
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } &&
8049          { ac_try='test -z "$ac_c_werror_flag"
8050                          || test ! -s conftest.err'
8051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052   (eval $ac_try) 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; } &&
8056          { ac_try='test -s conftest$ac_exeext'
8057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058   (eval $ac_try) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; }; then
8062   ac_cv_func_dlopen=yes
8063 else
8064   echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067 ac_cv_func_dlopen=no
8068 fi
8069 rm -f conftest.err conftest.$ac_objext \
8070       conftest$ac_exeext conftest.$ac_ext
8071 fi
8072 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8073 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8074 if test $ac_cv_func_dlopen = yes; then
8075   lt_cv_dlopen="dlopen"
8076 else
8077   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8078 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8079 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8080   echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082   ac_check_lib_save_LIBS=$LIBS
8083 LIBS="-ldl  $LIBS"
8084 cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8090
8091 /* Override any gcc2 internal prototype to avoid an error.  */
8092 #ifdef __cplusplus
8093 extern "C"
8094 #endif
8095 /* We use char because int might match the return type of a gcc2
8096    builtin and then its argument prototype would still apply.  */
8097 char dlopen ();
8098 int
8099 main ()
8100 {
8101 dlopen ();
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext conftest$ac_exeext
8107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8108   (eval $ac_link) 2>conftest.er1
8109   ac_status=$?
8110   grep -v '^ *+' conftest.er1 >conftest.err
8111   rm -f conftest.er1
8112   cat conftest.err >&5
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); } &&
8115          { ac_try='test -z "$ac_c_werror_flag"
8116                          || test ! -s conftest.err'
8117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118   (eval $ac_try) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); }; } &&
8122          { ac_try='test -s conftest$ac_exeext'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; }; then
8128   ac_cv_lib_dl_dlopen=yes
8129 else
8130   echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ac_cv_lib_dl_dlopen=no
8134 fi
8135 rm -f conftest.err conftest.$ac_objext \
8136       conftest$ac_exeext conftest.$ac_ext
8137 LIBS=$ac_check_lib_save_LIBS
8138 fi
8139 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8140 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8141 if test $ac_cv_lib_dl_dlopen = yes; then
8142   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8143 else
8144   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8145 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8146 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8147   echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149   ac_check_lib_save_LIBS=$LIBS
8150 LIBS="-lsvld  $LIBS"
8151 cat >conftest.$ac_ext <<_ACEOF
8152 /* confdefs.h.  */
8153 _ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h.  */
8157
8158 /* Override any gcc2 internal prototype to avoid an error.  */
8159 #ifdef __cplusplus
8160 extern "C"
8161 #endif
8162 /* We use char because int might match the return type of a gcc2
8163    builtin and then its argument prototype would still apply.  */
8164 char dlopen ();
8165 int
8166 main ()
8167 {
8168 dlopen ();
8169   ;
8170   return 0;
8171 }
8172 _ACEOF
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175   (eval $ac_link) 2>conftest.er1
8176   ac_status=$?
8177   grep -v '^ *+' conftest.er1 >conftest.err
8178   rm -f conftest.er1
8179   cat conftest.err >&5
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); } &&
8182          { ac_try='test -z "$ac_c_werror_flag"
8183                          || test ! -s conftest.err'
8184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185   (eval $ac_try) 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); }; } &&
8189          { ac_try='test -s conftest$ac_exeext'
8190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191   (eval $ac_try) 2>&5
8192   ac_status=$?
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); }; }; then
8195   ac_cv_lib_svld_dlopen=yes
8196 else
8197   echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8199
8200 ac_cv_lib_svld_dlopen=no
8201 fi
8202 rm -f conftest.err conftest.$ac_objext \
8203       conftest$ac_exeext conftest.$ac_ext
8204 LIBS=$ac_check_lib_save_LIBS
8205 fi
8206 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8207 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8208 if test $ac_cv_lib_svld_dlopen = yes; then
8209   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8210 else
8211   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8212 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8213 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8214   echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216   ac_check_lib_save_LIBS=$LIBS
8217 LIBS="-ldld  $LIBS"
8218 cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h.  */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h.  */
8224
8225 /* Override any gcc2 internal prototype to avoid an error.  */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 /* We use char because int might match the return type of a gcc2
8230    builtin and then its argument prototype would still apply.  */
8231 char dld_link ();
8232 int
8233 main ()
8234 {
8235 dld_link ();
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242   (eval $ac_link) 2>conftest.er1
8243   ac_status=$?
8244   grep -v '^ *+' conftest.er1 >conftest.err
8245   rm -f conftest.er1
8246   cat conftest.err >&5
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); } &&
8249          { ac_try='test -z "$ac_c_werror_flag"
8250                          || test ! -s conftest.err'
8251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252   (eval $ac_try) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); }; } &&
8256          { ac_try='test -s conftest$ac_exeext'
8257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258   (eval $ac_try) 2>&5
8259   ac_status=$?
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); }; }; then
8262   ac_cv_lib_dld_dld_link=yes
8263 else
8264   echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8266
8267 ac_cv_lib_dld_dld_link=no
8268 fi
8269 rm -f conftest.err conftest.$ac_objext \
8270       conftest$ac_exeext conftest.$ac_ext
8271 LIBS=$ac_check_lib_save_LIBS
8272 fi
8273 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8274 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8275 if test $ac_cv_lib_dld_dld_link = yes; then
8276   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8277 fi
8278
8279
8280 fi
8281
8282
8283 fi
8284
8285
8286 fi
8287
8288
8289 fi
8290
8291
8292 fi
8293
8294     ;;
8295   esac
8296
8297   if test "x$lt_cv_dlopen" != xno; then
8298     enable_dlopen=yes
8299   else
8300     enable_dlopen=no
8301   fi
8302
8303   case $lt_cv_dlopen in
8304   dlopen)
8305     save_CPPFLAGS="$CPPFLAGS"
8306     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8307
8308     save_LDFLAGS="$LDFLAGS"
8309     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8310
8311     save_LIBS="$LIBS"
8312     LIBS="$lt_cv_dlopen_libs $LIBS"
8313
8314     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8315 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8316 if test "${lt_cv_dlopen_self+set}" = set; then
8317   echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319           if test "$cross_compiling" = yes; then :
8320   lt_cv_dlopen_self=cross
8321 else
8322   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8323   lt_status=$lt_dlunknown
8324   cat > conftest.$ac_ext <<EOF
8325 #line 8325 "configure"
8326 #include "confdefs.h"
8327
8328 #if HAVE_DLFCN_H
8329 #include <dlfcn.h>
8330 #endif
8331
8332 #include <stdio.h>
8333
8334 #ifdef RTLD_GLOBAL
8335 #  define LT_DLGLOBAL           RTLD_GLOBAL
8336 #else
8337 #  ifdef DL_GLOBAL
8338 #    define LT_DLGLOBAL         DL_GLOBAL
8339 #  else
8340 #    define LT_DLGLOBAL         0
8341 #  endif
8342 #endif
8343
8344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8345    find out it does not work in some platform. */
8346 #ifndef LT_DLLAZY_OR_NOW
8347 #  ifdef RTLD_LAZY
8348 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8349 #  else
8350 #    ifdef DL_LAZY
8351 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8352 #    else
8353 #      ifdef RTLD_NOW
8354 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8355 #      else
8356 #        ifdef DL_NOW
8357 #          define LT_DLLAZY_OR_NOW      DL_NOW
8358 #        else
8359 #          define LT_DLLAZY_OR_NOW      0
8360 #        endif
8361 #      endif
8362 #    endif
8363 #  endif
8364 #endif
8365
8366 #ifdef __cplusplus
8367 extern "C" void exit (int);
8368 #endif
8369
8370 void fnord() { int i=42;}
8371 int main ()
8372 {
8373   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8374   int status = $lt_dlunknown;
8375
8376   if (self)
8377     {
8378       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8379       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8380       /* dlclose (self); */
8381     }
8382
8383     exit (status);
8384 }
8385 EOF
8386   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387   (eval $ac_link) 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8391     (./conftest; exit; ) >&5 2>/dev/null
8392     lt_status=$?
8393     case x$lt_status in
8394       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8395       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8396       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8397     esac
8398   else :
8399     # compilation failed
8400     lt_cv_dlopen_self=no
8401   fi
8402 fi
8403 rm -fr conftest*
8404
8405
8406 fi
8407 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8408 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8409
8410     if test "x$lt_cv_dlopen_self" = xyes; then
8411       LDFLAGS="$LDFLAGS $link_static_flag"
8412       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8413 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8414 if test "${lt_cv_dlopen_self_static+set}" = set; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417           if test "$cross_compiling" = yes; then :
8418   lt_cv_dlopen_self_static=cross
8419 else
8420   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8421   lt_status=$lt_dlunknown
8422   cat > conftest.$ac_ext <<EOF
8423 #line 8423 "configure"
8424 #include "confdefs.h"
8425
8426 #if HAVE_DLFCN_H
8427 #include <dlfcn.h>
8428 #endif
8429
8430 #include <stdio.h>
8431
8432 #ifdef RTLD_GLOBAL
8433 #  define LT_DLGLOBAL           RTLD_GLOBAL
8434 #else
8435 #  ifdef DL_GLOBAL
8436 #    define LT_DLGLOBAL         DL_GLOBAL
8437 #  else
8438 #    define LT_DLGLOBAL         0
8439 #  endif
8440 #endif
8441
8442 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8443    find out it does not work in some platform. */
8444 #ifndef LT_DLLAZY_OR_NOW
8445 #  ifdef RTLD_LAZY
8446 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8447 #  else
8448 #    ifdef DL_LAZY
8449 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8450 #    else
8451 #      ifdef RTLD_NOW
8452 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8453 #      else
8454 #        ifdef DL_NOW
8455 #          define LT_DLLAZY_OR_NOW      DL_NOW
8456 #        else
8457 #          define LT_DLLAZY_OR_NOW      0
8458 #        endif
8459 #      endif
8460 #    endif
8461 #  endif
8462 #endif
8463
8464 #ifdef __cplusplus
8465 extern "C" void exit (int);
8466 #endif
8467
8468 void fnord() { int i=42;}
8469 int main ()
8470 {
8471   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8472   int status = $lt_dlunknown;
8473
8474   if (self)
8475     {
8476       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8477       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8478       /* dlclose (self); */
8479     }
8480
8481     exit (status);
8482 }
8483 EOF
8484   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485   (eval $ac_link) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8489     (./conftest; exit; ) >&5 2>/dev/null
8490     lt_status=$?
8491     case x$lt_status in
8492       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8493       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8494       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8495     esac
8496   else :
8497     # compilation failed
8498     lt_cv_dlopen_self_static=no
8499   fi
8500 fi
8501 rm -fr conftest*
8502
8503
8504 fi
8505 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8506 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8507     fi
8508
8509     CPPFLAGS="$save_CPPFLAGS"
8510     LDFLAGS="$save_LDFLAGS"
8511     LIBS="$save_LIBS"
8512     ;;
8513   esac
8514
8515   case $lt_cv_dlopen_self in
8516   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8517   *) enable_dlopen_self=unknown ;;
8518   esac
8519
8520   case $lt_cv_dlopen_self_static in
8521   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8522   *) enable_dlopen_self_static=unknown ;;
8523   esac
8524 fi
8525
8526
8527 # Report which librarie types wil actually be built
8528 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8529 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8530 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8531 echo "${ECHO_T}$can_build_shared" >&6
8532
8533 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8534 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8535 test "$can_build_shared" = "no" && enable_shared=no
8536
8537 # On AIX, shared libraries and static libraries use the same namespace, and
8538 # are all built from PIC.
8539 case $host_os in
8540 aix3*)
8541   test "$enable_shared" = yes && enable_static=no
8542   if test -n "$RANLIB"; then
8543     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8544     postinstall_cmds='$RANLIB $lib'
8545   fi
8546   ;;
8547
8548 aix4* | aix5*)
8549   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8550     test "$enable_shared" = yes && enable_static=no
8551   fi
8552     ;;
8553 esac
8554 echo "$as_me:$LINENO: result: $enable_shared" >&5
8555 echo "${ECHO_T}$enable_shared" >&6
8556
8557 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8558 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8559 # Make sure either enable_shared or enable_static is yes.
8560 test "$enable_shared" = yes || enable_static=yes
8561 echo "$as_me:$LINENO: result: $enable_static" >&5
8562 echo "${ECHO_T}$enable_static" >&6
8563
8564 # The else clause should only fire when bootstrapping the
8565 # libtool distribution, otherwise you forgot to ship ltmain.sh
8566 # with your package, and you will get complaints that there are
8567 # no rules to generate ltmain.sh.
8568 if test -f "$ltmain"; then
8569   # See if we are running on zsh, and set the options which allow our commands through
8570   # without removal of \ escapes.
8571   if test -n "${ZSH_VERSION+set}" ; then
8572     setopt NO_GLOB_SUBST
8573   fi
8574   # Now quote all the things that may contain metacharacters while being
8575   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8576   # variables and quote the copies for generation of the libtool script.
8577   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8578     SED SHELL STRIP \
8579     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8580     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8581     deplibs_check_method reload_flag reload_cmds need_locks \
8582     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8583     lt_cv_sys_global_symbol_to_c_name_address \
8584     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8585     old_postinstall_cmds old_postuninstall_cmds \
8586     compiler \
8587     CC \
8588     LD \
8589     lt_prog_compiler_wl \
8590     lt_prog_compiler_pic \
8591     lt_prog_compiler_static \
8592     lt_prog_compiler_no_builtin_flag \
8593     export_dynamic_flag_spec \
8594     thread_safe_flag_spec \
8595     whole_archive_flag_spec \
8596     enable_shared_with_static_runtimes \
8597     old_archive_cmds \
8598     old_archive_from_new_cmds \
8599     predep_objects \
8600     postdep_objects \
8601     predeps \
8602     postdeps \
8603     compiler_lib_search_path \
8604     archive_cmds \
8605     archive_expsym_cmds \
8606     postinstall_cmds \
8607     postuninstall_cmds \
8608     old_archive_from_expsyms_cmds \
8609     allow_undefined_flag \
8610     no_undefined_flag \
8611     export_symbols_cmds \
8612     hardcode_libdir_flag_spec \
8613     hardcode_libdir_flag_spec_ld \
8614     hardcode_libdir_separator \
8615     hardcode_automatic \
8616     module_cmds \
8617     module_expsym_cmds \
8618     lt_cv_prog_compiler_c_o \
8619     exclude_expsyms \
8620     include_expsyms; do
8621
8622     case $var in
8623     old_archive_cmds | \
8624     old_archive_from_new_cmds | \
8625     archive_cmds | \
8626     archive_expsym_cmds | \
8627     module_cmds | \
8628     module_expsym_cmds | \
8629     old_archive_from_expsyms_cmds | \
8630     export_symbols_cmds | \
8631     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8632     postinstall_cmds | postuninstall_cmds | \
8633     old_postinstall_cmds | old_postuninstall_cmds | \
8634     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8635       # Double-quote double-evaled strings.
8636       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8637       ;;
8638     *)
8639       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8640       ;;
8641     esac
8642   done
8643
8644   case $lt_echo in
8645   *'\$0 --fallback-echo"')
8646     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8647     ;;
8648   esac
8649
8650 cfgfile="${ofile}T"
8651   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8652   $rm -f "$cfgfile"
8653   { echo "$as_me:$LINENO: creating $ofile" >&5
8654 echo "$as_me: creating $ofile" >&6;}
8655
8656   cat <<__EOF__ >> "$cfgfile"
8657 #! $SHELL
8658
8659 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8660 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8661 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8662 #
8663 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8664 # Free Software Foundation, Inc.
8665 #
8666 # This file is part of GNU Libtool:
8667 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8668 #
8669 # This program is free software; you can redistribute it and/or modify
8670 # it under the terms of the GNU General Public License as published by
8671 # the Free Software Foundation; either version 2 of the License, or
8672 # (at your option) any later version.
8673 #
8674 # This program is distributed in the hope that it will be useful, but
8675 # WITHOUT ANY WARRANTY; without even the implied warranty of
8676 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8677 # General Public License for more details.
8678 #
8679 # You should have received a copy of the GNU General Public License
8680 # along with this program; if not, write to the Free Software
8681 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
8682 #
8683 # As a special exception to the GNU General Public License, if you
8684 # distribute this file as part of a program that contains a
8685 # configuration script generated by Autoconf, you may include it under
8686 # the same distribution terms that you use for the rest of that program.
8687
8688 # A sed program that does not truncate output.
8689 SED=$lt_SED
8690
8691 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8692 Xsed="$SED -e 1s/^X//"
8693
8694 # The HP-UX ksh and POSIX shell print the target directory to stdout
8695 # if CDPATH is set.
8696 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8697
8698 # The names of the tagged configurations supported by this script.
8699 available_tags=
8700
8701 # ### BEGIN LIBTOOL CONFIG
8702
8703 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8704
8705 # Shell to use when invoking shell scripts.
8706 SHELL=$lt_SHELL
8707
8708 # Whether or not to build shared libraries.
8709 build_libtool_libs=$enable_shared
8710
8711 # Whether or not to build static libraries.
8712 build_old_libs=$enable_static
8713
8714 # Whether or not to add -lc for building shared libraries.
8715 build_libtool_need_lc=$archive_cmds_need_lc
8716
8717 # Whether or not to disallow shared libs when runtime libs are static
8718 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8719
8720 # Whether or not to optimize for fast installation.
8721 fast_install=$enable_fast_install
8722
8723 # The host system.
8724 host_alias=$host_alias
8725 host=$host
8726 host_os=$host_os
8727
8728 # The build system.
8729 build_alias=$build_alias
8730 build=$build
8731 build_os=$build_os
8732
8733 # An echo program that does not interpret backslashes.
8734 echo=$lt_echo
8735
8736 # The archiver.
8737 AR=$lt_AR
8738 AR_FLAGS=$lt_AR_FLAGS
8739
8740 # A C compiler.
8741 LTCC=$lt_LTCC
8742
8743 # A language-specific compiler.
8744 CC=$lt_compiler
8745
8746 # Is the compiler the GNU C compiler?
8747 with_gcc=$GCC
8748
8749 # An ERE matcher.
8750 EGREP=$lt_EGREP
8751
8752 # The linker used to build libraries.
8753 LD=$lt_LD
8754
8755 # Whether we need hard or soft links.
8756 LN_S=$lt_LN_S
8757
8758 # A BSD-compatible nm program.
8759 NM=$lt_NM
8760
8761 # A symbol stripping program
8762 STRIP=$lt_STRIP
8763
8764 # Used to examine libraries when file_magic_cmd begins "file"
8765 MAGIC_CMD=$MAGIC_CMD
8766
8767 # Used on cygwin: DLL creation program.
8768 DLLTOOL="$DLLTOOL"
8769
8770 # Used on cygwin: object dumper.
8771 OBJDUMP="$OBJDUMP"
8772
8773 # Used on cygwin: assembler.
8774 AS="$AS"
8775
8776 # The name of the directory that contains temporary libtool files.
8777 objdir=$objdir
8778
8779 # How to create reloadable object files.
8780 reload_flag=$lt_reload_flag
8781 reload_cmds=$lt_reload_cmds
8782
8783 # How to pass a linker flag through the compiler.
8784 wl=$lt_lt_prog_compiler_wl
8785
8786 # Object file suffix (normally "o").
8787 objext="$ac_objext"
8788
8789 # Old archive suffix (normally "a").
8790 libext="$libext"
8791
8792 # Shared library suffix (normally ".so").
8793 shrext_cmds='$shrext_cmds'
8794
8795 # Executable file suffix (normally "").
8796 exeext="$exeext"
8797
8798 # Additional compiler flags for building library objects.
8799 pic_flag=$lt_lt_prog_compiler_pic
8800 pic_mode=$pic_mode
8801
8802 # What is the maximum length of a command?
8803 max_cmd_len=$lt_cv_sys_max_cmd_len
8804
8805 # Does compiler simultaneously support -c and -o options?
8806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8807
8808 # Must we lock files when doing compilation?
8809 need_locks=$lt_need_locks
8810
8811 # Do we need the lib prefix for modules?
8812 need_lib_prefix=$need_lib_prefix
8813
8814 # Do we need a version for libraries?
8815 need_version=$need_version
8816
8817 # Whether dlopen is supported.
8818 dlopen_support=$enable_dlopen
8819
8820 # Whether dlopen of programs is supported.
8821 dlopen_self=$enable_dlopen_self
8822
8823 # Whether dlopen of statically linked programs is supported.
8824 dlopen_self_static=$enable_dlopen_self_static
8825
8826 # Compiler flag to prevent dynamic linking.
8827 link_static_flag=$lt_lt_prog_compiler_static
8828
8829 # Compiler flag to turn off builtin functions.
8830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8831
8832 # Compiler flag to allow reflexive dlopens.
8833 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8834
8835 # Compiler flag to generate shared objects directly from archives.
8836 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8837
8838 # Compiler flag to generate thread-safe objects.
8839 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8840
8841 # Library versioning type.
8842 version_type=$version_type
8843
8844 # Format of library name prefix.
8845 libname_spec=$lt_libname_spec
8846
8847 # List of archive names.  First name is the real one, the rest are links.
8848 # The last name is the one that the linker finds with -lNAME.
8849 library_names_spec=$lt_library_names_spec
8850
8851 # The coded name of the library, if different from the real name.
8852 soname_spec=$lt_soname_spec
8853
8854 # Commands used to build and install an old-style archive.
8855 RANLIB=$lt_RANLIB
8856 old_archive_cmds=$lt_old_archive_cmds
8857 old_postinstall_cmds=$lt_old_postinstall_cmds
8858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8859
8860 # Create an old-style archive from a shared archive.
8861 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8862
8863 # Create a temporary old-style archive to link instead of a shared archive.
8864 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8865
8866 # Commands used to build and install a shared archive.
8867 archive_cmds=$lt_archive_cmds
8868 archive_expsym_cmds=$lt_archive_expsym_cmds
8869 postinstall_cmds=$lt_postinstall_cmds
8870 postuninstall_cmds=$lt_postuninstall_cmds
8871
8872 # Commands used to build a loadable module (assumed same as above if empty)
8873 module_cmds=$lt_module_cmds
8874 module_expsym_cmds=$lt_module_expsym_cmds
8875
8876 # Commands to strip libraries.
8877 old_striplib=$lt_old_striplib
8878 striplib=$lt_striplib
8879
8880 # Dependencies to place before the objects being linked to create a
8881 # shared library.
8882 predep_objects=$lt_predep_objects
8883
8884 # Dependencies to place after the objects being linked to create a
8885 # shared library.
8886 postdep_objects=$lt_postdep_objects
8887
8888 # Dependencies to place before the objects being linked to create a
8889 # shared library.
8890 predeps=$lt_predeps
8891
8892 # Dependencies to place after the objects being linked to create a
8893 # shared library.
8894 postdeps=$lt_postdeps
8895
8896 # The library search path used internally by the compiler when linking
8897 # a shared library.
8898 compiler_lib_search_path=$lt_compiler_lib_search_path
8899
8900 # Method to check whether dependent libraries are shared objects.
8901 deplibs_check_method=$lt_deplibs_check_method
8902
8903 # Command to use when deplibs_check_method == file_magic.
8904 file_magic_cmd=$lt_file_magic_cmd
8905
8906 # Flag that allows shared libraries with undefined symbols to be built.
8907 allow_undefined_flag=$lt_allow_undefined_flag
8908
8909 # Flag that forces no undefined symbols.
8910 no_undefined_flag=$lt_no_undefined_flag
8911
8912 # Commands used to finish a libtool library installation in a directory.
8913 finish_cmds=$lt_finish_cmds
8914
8915 # Same as above, but a single script fragment to be evaled but not shown.
8916 finish_eval=$lt_finish_eval
8917
8918 # Take the output of nm and produce a listing of raw symbols and C names.
8919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8920
8921 # Transform the output of nm in a proper C declaration
8922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8923
8924 # Transform the output of nm in a C name address pair
8925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8926
8927 # This is the shared library runtime path variable.
8928 runpath_var=$runpath_var
8929
8930 # This is the shared library path variable.
8931 shlibpath_var=$shlibpath_var
8932
8933 # Is shlibpath searched before the hard-coded library search path?
8934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8935
8936 # How to hardcode a shared library path into an executable.
8937 hardcode_action=$hardcode_action
8938
8939 # Whether we should hardcode library paths into libraries.
8940 hardcode_into_libs=$hardcode_into_libs
8941
8942 # Flag to hardcode \$libdir into a binary during linking.
8943 # This must work even if \$libdir does not exist.
8944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8945
8946 # If ld is used when linking, flag to hardcode \$libdir into
8947 # a binary during linking. This must work even if \$libdir does
8948 # not exist.
8949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8950
8951 # Whether we need a single -rpath flag with a separated argument.
8952 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8953
8954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8955 # resulting binary.
8956 hardcode_direct=$hardcode_direct
8957
8958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8959 # resulting binary.
8960 hardcode_minus_L=$hardcode_minus_L
8961
8962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8963 # the resulting binary.
8964 hardcode_shlibpath_var=$hardcode_shlibpath_var
8965
8966 # Set to yes if building a shared library automatically hardcodes DIR into the library
8967 # and all subsequent libraries and executables linked against it.
8968 hardcode_automatic=$hardcode_automatic
8969
8970 # Variables whose values should be saved in libtool wrapper scripts and
8971 # restored at relink time.
8972 variables_saved_for_relink="$variables_saved_for_relink"
8973
8974 # Whether libtool must link a program against all its dependency libraries.
8975 link_all_deplibs=$link_all_deplibs
8976
8977 # Compile-time system search path for libraries
8978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8979
8980 # Run-time system search path for libraries
8981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8982
8983 # Fix the shell variable \$srcfile for the compiler.
8984 fix_srcfile_path="$fix_srcfile_path"
8985
8986 # Set to yes if exported symbols are required.
8987 always_export_symbols=$always_export_symbols
8988
8989 # The commands to list exported symbols.
8990 export_symbols_cmds=$lt_export_symbols_cmds
8991
8992 # The commands to extract the exported symbol list from a shared archive.
8993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8994
8995 # Symbols that should not be listed in the preloaded symbols.
8996 exclude_expsyms=$lt_exclude_expsyms
8997
8998 # Symbols that must always be exported.
8999 include_expsyms=$lt_include_expsyms
9000
9001 # ### END LIBTOOL CONFIG
9002
9003 __EOF__
9004
9005
9006   case $host_os in
9007   aix3*)
9008     cat <<\EOF >> "$cfgfile"
9009
9010 # AIX sometimes has problems with the GCC collect2 program.  For some
9011 # reason, if we set the COLLECT_NAMES environment variable, the problems
9012 # vanish in a puff of smoke.
9013 if test "X${COLLECT_NAMES+set}" != Xset; then
9014   COLLECT_NAMES=
9015   export COLLECT_NAMES
9016 fi
9017 EOF
9018     ;;
9019   esac
9020
9021   # We use sed instead of cat because bash on DJGPP gets confused if
9022   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9023   # text mode, it properly converts lines to CR/LF.  This bash problem
9024   # is reportedly fixed, but why not run on old versions too?
9025   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9026
9027   mv -f "$cfgfile" "$ofile" || \
9028     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9029   chmod +x "$ofile"
9030
9031 else
9032   # If there is no Makefile yet, we rely on a make rule to execute
9033   # `config.status --recheck' to rerun these tests and create the
9034   # libtool script then.
9035   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9036   if test -f "$ltmain_in"; then
9037     test -f Makefile && make "$ltmain"
9038   fi
9039 fi
9040
9041
9042 ac_ext=c
9043 ac_cpp='$CPP $CPPFLAGS'
9044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9047
9048 CC="$lt_save_CC"
9049
9050
9051 # Check whether --with-tags or --without-tags was given.
9052 if test "${with_tags+set}" = set; then
9053   withval="$with_tags"
9054   tagnames="$withval"
9055 fi;
9056
9057 if test -f "$ltmain" && test -n "$tagnames"; then
9058   if test ! -f "${ofile}"; then
9059     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9060 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9061   fi
9062
9063   if test -z "$LTCC"; then
9064     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9065     if test -z "$LTCC"; then
9066       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9067 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9068     else
9069       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9070 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9071     fi
9072   fi
9073
9074   # Extract list of available tagged configurations in $ofile.
9075   # Note that this assumes the entire list is on one line.
9076   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9077
9078   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9079   for tagname in $tagnames; do
9080     IFS="$lt_save_ifs"
9081     # Check whether tagname contains only valid characters
9082     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9083     "") ;;
9084     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9085 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9086    { (exit 1); exit 1; }; }
9087         ;;
9088     esac
9089
9090     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9091     then
9092       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9093 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9094    { (exit 1); exit 1; }; }
9095     fi
9096
9097     # Update the list of available tags.
9098     if test -n "$tagname"; then
9099       echo appending configuration tag \"$tagname\" to $ofile
9100
9101       case $tagname in
9102       CXX)
9103         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9104             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9105             (test "X$CXX" != "Xg++"))) ; then
9106           ac_ext=cc
9107 ac_cpp='$CXXCPP $CPPFLAGS'
9108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9111
9112
9113
9114
9115 archive_cmds_need_lc_CXX=no
9116 allow_undefined_flag_CXX=
9117 always_export_symbols_CXX=no
9118 archive_expsym_cmds_CXX=
9119 export_dynamic_flag_spec_CXX=
9120 hardcode_direct_CXX=no
9121 hardcode_libdir_flag_spec_CXX=
9122 hardcode_libdir_flag_spec_ld_CXX=
9123 hardcode_libdir_separator_CXX=
9124 hardcode_minus_L_CXX=no
9125 hardcode_automatic_CXX=no
9126 module_cmds_CXX=
9127 module_expsym_cmds_CXX=
9128 link_all_deplibs_CXX=unknown
9129 old_archive_cmds_CXX=$old_archive_cmds
9130 no_undefined_flag_CXX=
9131 whole_archive_flag_spec_CXX=
9132 enable_shared_with_static_runtimes_CXX=no
9133
9134 # Dependencies to place before and after the object being linked:
9135 predep_objects_CXX=
9136 postdep_objects_CXX=
9137 predeps_CXX=
9138 postdeps_CXX=
9139 compiler_lib_search_path_CXX=
9140
9141 # Source file extension for C++ test sources.
9142 ac_ext=cpp
9143
9144 # Object file extension for compiled C++ test sources.
9145 objext=o
9146 objext_CXX=$objext
9147
9148 # Code to be used in simple compile tests
9149 lt_simple_compile_test_code="int some_variable = 0;\n"
9150
9151 # Code to be used in simple link tests
9152 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9153
9154 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9155
9156 # If no C compiler was specified, use CC.
9157 LTCC=${LTCC-"$CC"}
9158
9159 # Allow CC to be a program name with arguments.
9160 compiler=$CC
9161
9162
9163 # save warnings/boilerplate of simple test code
9164 ac_outfile=conftest.$ac_objext
9165 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9166 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9167 _lt_compiler_boilerplate=`cat conftest.err`
9168 $rm conftest*
9169
9170 ac_outfile=conftest.$ac_objext
9171 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9172 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9173 _lt_linker_boilerplate=`cat conftest.err`
9174 $rm conftest*
9175
9176
9177 # Allow CC to be a program name with arguments.
9178 lt_save_CC=$CC
9179 lt_save_LD=$LD
9180 lt_save_GCC=$GCC
9181 GCC=$GXX
9182 lt_save_with_gnu_ld=$with_gnu_ld
9183 lt_save_path_LD=$lt_cv_path_LD
9184 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9185   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9186 else
9187   unset lt_cv_prog_gnu_ld
9188 fi
9189 if test -n "${lt_cv_path_LDCXX+set}"; then
9190   lt_cv_path_LD=$lt_cv_path_LDCXX
9191 else
9192   unset lt_cv_path_LD
9193 fi
9194 test -z "${LDCXX+set}" || LD=$LDCXX
9195 CC=${CXX-"c++"}
9196 compiler=$CC
9197 compiler_CXX=$CC
9198 for cc_temp in $compiler""; do
9199   case $cc_temp in
9200     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9201     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9202     \-*) ;;
9203     *) break;;
9204   esac
9205 done
9206 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9207
9208
9209 # We don't want -fno-exception wen compiling C++ code, so set the
9210 # no_builtin_flag separately
9211 if test "$GXX" = yes; then
9212   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9213 else
9214   lt_prog_compiler_no_builtin_flag_CXX=
9215 fi
9216
9217 if test "$GXX" = yes; then
9218   # Set up default GNU C++ configuration
9219
9220
9221 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9222 if test "${with_gnu_ld+set}" = set; then
9223   withval="$with_gnu_ld"
9224   test "$withval" = no || with_gnu_ld=yes
9225 else
9226   with_gnu_ld=no
9227 fi;
9228 ac_prog=ld
9229 if test "$GCC" = yes; then
9230   # Check if gcc -print-prog-name=ld gives a path.
9231   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9232 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9233   case $host in
9234   *-*-mingw*)
9235     # gcc leaves a trailing carriage return which upsets mingw
9236     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9237   *)
9238     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9239   esac
9240   case $ac_prog in
9241     # Accept absolute paths.
9242     [\\/]* | ?:[\\/]*)
9243       re_direlt='/[^/][^/]*/\.\./'
9244       # Canonicalize the pathname of ld
9245       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9246       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9247         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9248       done
9249       test -z "$LD" && LD="$ac_prog"
9250       ;;
9251   "")
9252     # If it fails, then pretend we aren't using GCC.
9253     ac_prog=ld
9254     ;;
9255   *)
9256     # If it is relative, then search for the first ld in PATH.
9257     with_gnu_ld=unknown
9258     ;;
9259   esac
9260 elif test "$with_gnu_ld" = yes; then
9261   echo "$as_me:$LINENO: checking for GNU ld" >&5
9262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9263 else
9264   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9266 fi
9267 if test "${lt_cv_path_LD+set}" = set; then
9268   echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270   if test -z "$LD"; then
9271   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9272   for ac_dir in $PATH; do
9273     IFS="$lt_save_ifs"
9274     test -z "$ac_dir" && ac_dir=.
9275     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9276       lt_cv_path_LD="$ac_dir/$ac_prog"
9277       # Check to see if the program is GNU ld.  I'd rather use --version,
9278       # but apparently some variants of GNU ld only accept -v.
9279       # Break only if it was the GNU/non-GNU ld that we prefer.
9280       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9281       *GNU* | *'with BFD'*)
9282         test "$with_gnu_ld" != no && break
9283         ;;
9284       *)
9285         test "$with_gnu_ld" != yes && break
9286         ;;
9287       esac
9288     fi
9289   done
9290   IFS="$lt_save_ifs"
9291 else
9292   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9293 fi
9294 fi
9295
9296 LD="$lt_cv_path_LD"
9297 if test -n "$LD"; then
9298   echo "$as_me:$LINENO: result: $LD" >&5
9299 echo "${ECHO_T}$LD" >&6
9300 else
9301   echo "$as_me:$LINENO: result: no" >&5
9302 echo "${ECHO_T}no" >&6
9303 fi
9304 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9305 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9306    { (exit 1); exit 1; }; }
9307 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9308 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9309 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9310   echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9313 case `$LD -v 2>&1 </dev/null` in
9314 *GNU* | *'with BFD'*)
9315   lt_cv_prog_gnu_ld=yes
9316   ;;
9317 *)
9318   lt_cv_prog_gnu_ld=no
9319   ;;
9320 esac
9321 fi
9322 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9323 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9324 with_gnu_ld=$lt_cv_prog_gnu_ld
9325
9326
9327
9328   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9329   # archiving commands below assume that GNU ld is being used.
9330   if test "$with_gnu_ld" = yes; then
9331     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332     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'
9333
9334     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9335     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9336
9337     # If archive_cmds runs LD, not CC, wlarc should be empty
9338     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9339     #     investigate it a little bit more. (MM)
9340     wlarc='${wl}'
9341
9342     # ancient GNU ld didn't support --whole-archive et. al.
9343     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9344         grep 'no-whole-archive' > /dev/null; then
9345       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9346     else
9347       whole_archive_flag_spec_CXX=
9348     fi
9349   else
9350     with_gnu_ld=no
9351     wlarc=
9352
9353     # A generic and very simple default shared library creation
9354     # command for GNU C++ for the case where it uses the native
9355     # linker, instead of GNU ld.  If possible, this setting should
9356     # overridden to take advantage of the native linker features on
9357     # the platform it is being used on.
9358     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9359   fi
9360
9361   # Commands to make compiler produce verbose output that lists
9362   # what "hidden" libraries, object files and flags are used when
9363   # linking a shared library.
9364   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9365
9366 else
9367   GXX=no
9368   with_gnu_ld=no
9369   wlarc=
9370 fi
9371
9372 # PORTME: fill in a description of your system's C++ link characteristics
9373 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9374 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9375 ld_shlibs_CXX=yes
9376 case $host_os in
9377   aix3*)
9378     # FIXME: insert proper C++ library support
9379     ld_shlibs_CXX=no
9380     ;;
9381   aix4* | aix5*)
9382     if test "$host_cpu" = ia64; then
9383       # On IA64, the linker does run time linking by default, so we don't
9384       # have to do anything special.
9385       aix_use_runtimelinking=no
9386       exp_sym_flag='-Bexport'
9387       no_entry_flag=""
9388     else
9389       aix_use_runtimelinking=no
9390
9391       # Test if we are trying to use run time linking or normal
9392       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9393       # need to do runtime linking.
9394       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9395         for ld_flag in $LDFLAGS; do
9396           case $ld_flag in
9397           *-brtl*)
9398             aix_use_runtimelinking=yes
9399             break
9400             ;;
9401           esac
9402         done
9403       esac
9404
9405       exp_sym_flag='-bexport'
9406       no_entry_flag='-bnoentry'
9407     fi
9408
9409     # When large executables or shared objects are built, AIX ld can
9410     # have problems creating the table of contents.  If linking a library
9411     # or program results in "error TOC overflow" add -mminimal-toc to
9412     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9413     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9414
9415     archive_cmds_CXX=''
9416     hardcode_direct_CXX=yes
9417     hardcode_libdir_separator_CXX=':'
9418     link_all_deplibs_CXX=yes
9419
9420     if test "$GXX" = yes; then
9421       case $host_os in aix4.[012]|aix4.[012].*)
9422       # We only want to do this on AIX 4.2 and lower, the check
9423       # below for broken collect2 doesn't work under 4.3+
9424         collect2name=`${CC} -print-prog-name=collect2`
9425         if test -f "$collect2name" && \
9426            strings "$collect2name" | grep resolve_lib_name >/dev/null
9427         then
9428           # We have reworked collect2
9429           hardcode_direct_CXX=yes
9430         else
9431           # We have old collect2
9432           hardcode_direct_CXX=unsupported
9433           # It fails to find uninstalled libraries when the uninstalled
9434           # path is not listed in the libpath.  Setting hardcode_minus_L
9435           # to unsupported forces relinking
9436           hardcode_minus_L_CXX=yes
9437           hardcode_libdir_flag_spec_CXX='-L$libdir'
9438           hardcode_libdir_separator_CXX=
9439         fi
9440       esac
9441       shared_flag='-shared'
9442       if test "$aix_use_runtimelinking" = yes; then
9443         shared_flag="$shared_flag "'${wl}-G'
9444       fi
9445     else
9446       # not using gcc
9447       if test "$host_cpu" = ia64; then
9448         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9449         # chokes on -Wl,-G. The following line is correct:
9450         shared_flag='-G'
9451       else
9452         if test "$aix_use_runtimelinking" = yes; then
9453           shared_flag='${wl}-G'
9454         else
9455           shared_flag='${wl}-bM:SRE'
9456         fi
9457       fi
9458     fi
9459
9460     # It seems that -bexpall does not export symbols beginning with
9461     # underscore (_), so it is better to generate a list of symbols to export.
9462     always_export_symbols_CXX=yes
9463     if test "$aix_use_runtimelinking" = yes; then
9464       # Warning - without using the other runtime loading flags (-brtl),
9465       # -berok will link without error, but may produce a broken library.
9466       allow_undefined_flag_CXX='-berok'
9467       # Determine the default libpath from the value encoded in an empty executable.
9468       cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474
9475 int
9476 main ()
9477 {
9478
9479   ;
9480   return 0;
9481 }
9482 _ACEOF
9483 rm -f conftest.$ac_objext conftest$ac_exeext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485   (eval $ac_link) 2>conftest.er1
9486   ac_status=$?
9487   grep -v '^ *+' conftest.er1 >conftest.err
9488   rm -f conftest.er1
9489   cat conftest.err >&5
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); } &&
9492          { ac_try='test -z "$ac_cxx_werror_flag"
9493                          || test ! -s conftest.err'
9494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495   (eval $ac_try) 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); }; } &&
9499          { ac_try='test -s conftest$ac_exeext'
9500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501   (eval $ac_try) 2>&5
9502   ac_status=$?
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); }; }; then
9505
9506 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9507 }'`
9508 # Check for a 64-bit object if we didn't find anything.
9509 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; }
9510 }'`; fi
9511 else
9512   echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9514
9515 fi
9516 rm -f conftest.err conftest.$ac_objext \
9517       conftest$ac_exeext conftest.$ac_ext
9518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9519
9520       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9521
9522       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"
9523      else
9524       if test "$host_cpu" = ia64; then
9525         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9526         allow_undefined_flag_CXX="-z nodefs"
9527         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"
9528       else
9529         # Determine the default libpath from the value encoded in an empty executable.
9530         cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h.  */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h.  */
9536
9537 int
9538 main ()
9539 {
9540
9541   ;
9542   return 0;
9543 }
9544 _ACEOF
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547   (eval $ac_link) 2>conftest.er1
9548   ac_status=$?
9549   grep -v '^ *+' conftest.er1 >conftest.err
9550   rm -f conftest.er1
9551   cat conftest.err >&5
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); } &&
9554          { ac_try='test -z "$ac_cxx_werror_flag"
9555                          || test ! -s conftest.err'
9556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557   (eval $ac_try) 2>&5
9558   ac_status=$?
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   (exit $ac_status); }; } &&
9561          { ac_try='test -s conftest$ac_exeext'
9562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563   (eval $ac_try) 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); }; }; then
9567
9568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9569 }'`
9570 # Check for a 64-bit object if we didn't find anything.
9571 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; }
9572 }'`; fi
9573 else
9574   echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577 fi
9578 rm -f conftest.err conftest.$ac_objext \
9579       conftest$ac_exeext conftest.$ac_ext
9580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9581
9582         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9583         # Warning - without using the other run time loading flags,
9584         # -berok will link without error, but may produce a broken library.
9585         no_undefined_flag_CXX=' ${wl}-bernotok'
9586         allow_undefined_flag_CXX=' ${wl}-berok'
9587         # -bexpall does not export symbols beginning with underscore (_)
9588         always_export_symbols_CXX=yes
9589         # Exported symbols can be pulled into shared objects from archives
9590         whole_archive_flag_spec_CXX=' '
9591         archive_cmds_need_lc_CXX=yes
9592         # This is similar to how AIX traditionally builds its shared libraries.
9593         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'
9594       fi
9595     fi
9596     ;;
9597   chorus*)
9598     case $cc_basename in
9599       *)
9600         # FIXME: insert proper C++ library support
9601         ld_shlibs_CXX=no
9602         ;;
9603     esac
9604     ;;
9605
9606
9607   cygwin* | mingw* | pw32*)
9608     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9609     # as there is no search path for DLLs.
9610     hardcode_libdir_flag_spec_CXX='-L$libdir'
9611     allow_undefined_flag_CXX=unsupported
9612     always_export_symbols_CXX=no
9613     enable_shared_with_static_runtimes_CXX=yes
9614
9615     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9616       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'
9617       # If the export-symbols file already is a .def file (1st line
9618       # is EXPORTS), use it as is; otherwise, prepend...
9619       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9620         cp $export_symbols $output_objdir/$soname.def;
9621       else
9622         echo EXPORTS > $output_objdir/$soname.def;
9623         cat $export_symbols >> $output_objdir/$soname.def;
9624       fi~
9625       $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'
9626     else
9627       ld_shlibs_CXX=no
9628     fi
9629   ;;
9630       darwin* | rhapsody*)
9631         case $host_os in
9632         rhapsody* | darwin1.[012])
9633          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9634          ;;
9635        *) # Darwin 1.3 on
9636          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9637            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9638          else
9639            case ${MACOSX_DEPLOYMENT_TARGET} in
9640              10.[012])
9641                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9642                ;;
9643              10.*)
9644                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9645                ;;
9646            esac
9647          fi
9648          ;;
9649         esac
9650       archive_cmds_need_lc_CXX=no
9651       hardcode_direct_CXX=no
9652       hardcode_automatic_CXX=yes
9653       hardcode_shlibpath_var_CXX=unsupported
9654       whole_archive_flag_spec_CXX=''
9655       link_all_deplibs_CXX=yes
9656
9657     if test "$GXX" = yes ; then
9658       lt_int_apple_cc_single_mod=no
9659       output_verbose_link_cmd='echo'
9660       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9661        lt_int_apple_cc_single_mod=yes
9662       fi
9663       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9664        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9665       else
9666           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'
9667         fi
9668         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9669         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9670           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9671             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}'
9672           else
9673             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}'
9674           fi
9675             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}'
9676       else
9677       case $cc_basename in
9678         xlc*)
9679          output_verbose_link_cmd='echo'
9680           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'
9681           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9682           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9683           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}'
9684           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}'
9685           ;;
9686        *)
9687          ld_shlibs_CXX=no
9688           ;;
9689       esac
9690       fi
9691         ;;
9692
9693   dgux*)
9694     case $cc_basename in
9695       ec++*)
9696         # FIXME: insert proper C++ library support
9697         ld_shlibs_CXX=no
9698         ;;
9699       ghcx*)
9700         # Green Hills C++ Compiler
9701         # FIXME: insert proper C++ library support
9702         ld_shlibs_CXX=no
9703         ;;
9704       *)
9705         # FIXME: insert proper C++ library support
9706         ld_shlibs_CXX=no
9707         ;;
9708     esac
9709     ;;
9710   freebsd[12]*)
9711     # C++ shared libraries reported to be fairly broken before switch to ELF
9712     ld_shlibs_CXX=no
9713     ;;
9714   freebsd-elf*)
9715     archive_cmds_need_lc_CXX=no
9716     ;;
9717   freebsd* | kfreebsd*-gnu | dragonfly*)
9718     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9719     # conventions
9720     ld_shlibs_CXX=yes
9721     ;;
9722   gnu*)
9723     ;;
9724   hpux9*)
9725     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9726     hardcode_libdir_separator_CXX=:
9727     export_dynamic_flag_spec_CXX='${wl}-E'
9728     hardcode_direct_CXX=yes
9729     hardcode_minus_L_CXX=yes # Not in the search PATH,
9730                                 # but as the default
9731                                 # location of the library.
9732
9733     case $cc_basename in
9734     CC*)
9735       # FIXME: insert proper C++ library support
9736       ld_shlibs_CXX=no
9737       ;;
9738     aCC*)
9739       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'
9740       # Commands to make compiler produce verbose output that lists
9741       # what "hidden" libraries, object files and flags are used when
9742       # linking a shared library.
9743       #
9744       # There doesn't appear to be a way to prevent this compiler from
9745       # explicitly linking system object files so we need to strip them
9746       # from the output so that they don't get included in the library
9747       # dependencies.
9748       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'
9749       ;;
9750     *)
9751       if test "$GXX" = yes; then
9752         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'
9753       else
9754         # FIXME: insert proper C++ library support
9755         ld_shlibs_CXX=no
9756       fi
9757       ;;
9758     esac
9759     ;;
9760   hpux10*|hpux11*)
9761     if test $with_gnu_ld = no; then
9762       case $host_cpu in
9763       hppa*64*)
9764         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9765         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9766         hardcode_libdir_separator_CXX=:
9767         ;;
9768       ia64*)
9769         hardcode_libdir_flag_spec_CXX='-L$libdir'
9770         ;;
9771       *)
9772         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9773         hardcode_libdir_separator_CXX=:
9774         export_dynamic_flag_spec_CXX='${wl}-E'
9775         ;;
9776       esac
9777     fi
9778     case $host_cpu in
9779     hppa*64*)
9780       hardcode_direct_CXX=no
9781       hardcode_shlibpath_var_CXX=no
9782       ;;
9783     ia64*)
9784       hardcode_direct_CXX=no
9785       hardcode_shlibpath_var_CXX=no
9786       hardcode_minus_L_CXX=yes # Not in the search PATH,
9787                                               # but as the default
9788                                               # location of the library.
9789       ;;
9790     *)
9791       hardcode_direct_CXX=yes
9792       hardcode_minus_L_CXX=yes # Not in the search PATH,
9793                                               # but as the default
9794                                               # location of the library.
9795       ;;
9796     esac
9797
9798     case $cc_basename in
9799       CC*)
9800         # FIXME: insert proper C++ library support
9801         ld_shlibs_CXX=no
9802         ;;
9803       aCC*)
9804         case $host_cpu in
9805         hppa*64*|ia64*)
9806           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9807           ;;
9808         *)
9809           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9810           ;;
9811         esac
9812         # Commands to make compiler produce verbose output that lists
9813         # what "hidden" libraries, object files and flags are used when
9814         # linking a shared library.
9815         #
9816         # There doesn't appear to be a way to prevent this compiler from
9817         # explicitly linking system object files so we need to strip them
9818         # from the output so that they don't get included in the library
9819         # dependencies.
9820         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'
9821         ;;
9822       *)
9823         if test "$GXX" = yes; then
9824           if test $with_gnu_ld = no; then
9825             case $host_cpu in
9826             ia64*|hppa*64*)
9827               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9828               ;;
9829             *)
9830               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'
9831               ;;
9832             esac
9833           fi
9834         else
9835           # FIXME: insert proper C++ library support
9836           ld_shlibs_CXX=no
9837         fi
9838         ;;
9839     esac
9840     ;;
9841   irix5* | irix6*)
9842     case $cc_basename in
9843       CC*)
9844         # SGI C++
9845         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9846
9847         # Archives containing C++ object files must be created using
9848         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9849         # necessary to make sure instantiated templates are included
9850         # in the archive.
9851         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9852         ;;
9853       *)
9854         if test "$GXX" = yes; then
9855           if test "$with_gnu_ld" = no; then
9856             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9857           else
9858             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'
9859           fi
9860         fi
9861         link_all_deplibs_CXX=yes
9862         ;;
9863     esac
9864     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9865     hardcode_libdir_separator_CXX=:
9866     ;;
9867   linux*)
9868     case $cc_basename in
9869       KCC*)
9870         # Kuck and Associates, Inc. (KAI) C++ Compiler
9871
9872         # KCC will only create a shared library if the output file
9873         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9874         # to its proper name (with version) after linking.
9875         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'
9876         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'
9877         # Commands to make compiler produce verbose output that lists
9878         # what "hidden" libraries, object files and flags are used when
9879         # linking a shared library.
9880         #
9881         # There doesn't appear to be a way to prevent this compiler from
9882         # explicitly linking system object files so we need to strip them
9883         # from the output so that they don't get included in the library
9884         # dependencies.
9885         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'
9886
9887         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9888         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9889
9890         # Archives containing C++ object files must be created using
9891         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9892         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9893         ;;
9894       icpc*)
9895         # Intel C++
9896         with_gnu_ld=yes
9897         # version 8.0 and above of icpc choke on multiply defined symbols
9898         # if we add $predep_objects and $postdep_objects, however 7.1 and
9899         # earlier do not add the objects themselves.
9900         case `$CC -V 2>&1` in
9901         *"Version 7."*)
9902           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9903           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'
9904           ;;
9905         *)  # Version 8.0 or newer
9906           tmp_idyn=
9907           case $host_cpu in
9908             ia64*) tmp_idyn=' -i_dynamic';;
9909           esac
9910           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9911           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9912           ;;
9913         esac
9914         archive_cmds_need_lc_CXX=no
9915         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9916         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9917         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9918         ;;
9919       pgCC*)
9920         # Portland Group C++ compiler
9921         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9922         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
9923
9924         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9925         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9926         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9927         ;;
9928       cxx*)
9929         # Compaq C++
9930         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9931         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'
9932
9933         runpath_var=LD_RUN_PATH
9934         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9935         hardcode_libdir_separator_CXX=:
9936
9937         # Commands to make compiler produce verbose output that lists
9938         # what "hidden" libraries, object files and flags are used when
9939         # linking a shared library.
9940         #
9941         # There doesn't appear to be a way to prevent this compiler from
9942         # explicitly linking system object files so we need to strip them
9943         # from the output so that they don't get included in the library
9944         # dependencies.
9945         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'
9946         ;;
9947     esac
9948     ;;
9949   lynxos*)
9950     # FIXME: insert proper C++ library support
9951     ld_shlibs_CXX=no
9952     ;;
9953   m88k*)
9954     # FIXME: insert proper C++ library support
9955     ld_shlibs_CXX=no
9956     ;;
9957   mvs*)
9958     case $cc_basename in
9959       cxx*)
9960         # FIXME: insert proper C++ library support
9961         ld_shlibs_CXX=no
9962         ;;
9963       *)
9964         # FIXME: insert proper C++ library support
9965         ld_shlibs_CXX=no
9966         ;;
9967     esac
9968     ;;
9969   netbsd*)
9970     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9971       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9972       wlarc=
9973       hardcode_libdir_flag_spec_CXX='-R$libdir'
9974       hardcode_direct_CXX=yes
9975       hardcode_shlibpath_var_CXX=no
9976     fi
9977     # Workaround some broken pre-1.5 toolchains
9978     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9979     ;;
9980   openbsd2*)
9981     # C++ shared libraries are fairly broken
9982     ld_shlibs_CXX=no
9983     ;;
9984   openbsd*)
9985     hardcode_direct_CXX=yes
9986     hardcode_shlibpath_var_CXX=no
9987     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9988     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9989     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9990       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
9991       export_dynamic_flag_spec_CXX='${wl}-E'
9992       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9993     fi
9994     output_verbose_link_cmd='echo'
9995     ;;
9996   osf3*)
9997     case $cc_basename in
9998       KCC*)
9999         # Kuck and Associates, Inc. (KAI) C++ Compiler
10000
10001         # KCC will only create a shared library if the output file
10002         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10003         # to its proper name (with version) after linking.
10004         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'
10005
10006         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10007         hardcode_libdir_separator_CXX=:
10008
10009         # Archives containing C++ object files must be created using
10010         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10011         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10012
10013         ;;
10014       RCC*)
10015         # Rational C++ 2.4.1
10016         # FIXME: insert proper C++ library support
10017         ld_shlibs_CXX=no
10018         ;;
10019       cxx*)
10020         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10021         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10022
10023         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10024         hardcode_libdir_separator_CXX=:
10025
10026         # Commands to make compiler produce verbose output that lists
10027         # what "hidden" libraries, object files and flags are used when
10028         # linking a shared library.
10029         #
10030         # There doesn't appear to be a way to prevent this compiler from
10031         # explicitly linking system object files so we need to strip them
10032         # from the output so that they don't get included in the library
10033         # dependencies.
10034         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'
10035         ;;
10036       *)
10037         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10038           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10039           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10040
10041           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10042           hardcode_libdir_separator_CXX=:
10043
10044           # Commands to make compiler produce verbose output that lists
10045           # what "hidden" libraries, object files and flags are used when
10046           # linking a shared library.
10047           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10048
10049         else
10050           # FIXME: insert proper C++ library support
10051           ld_shlibs_CXX=no
10052         fi
10053         ;;
10054     esac
10055     ;;
10056   osf4* | osf5*)
10057     case $cc_basename in
10058       KCC*)
10059         # Kuck and Associates, Inc. (KAI) C++ Compiler
10060
10061         # KCC will only create a shared library if the output file
10062         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10063         # to its proper name (with version) after linking.
10064         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'
10065
10066         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10067         hardcode_libdir_separator_CXX=:
10068
10069         # Archives containing C++ object files must be created using
10070         # the KAI C++ compiler.
10071         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10072         ;;
10073       RCC*)
10074         # Rational C++ 2.4.1
10075         # FIXME: insert proper C++ library support
10076         ld_shlibs_CXX=no
10077         ;;
10078       cxx*)
10079         allow_undefined_flag_CXX=' -expect_unresolved \*'
10080         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10081         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10082           echo "-hidden">> $lib.exp~
10083           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10084           $rm $lib.exp'
10085
10086         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10087         hardcode_libdir_separator_CXX=:
10088
10089         # Commands to make compiler produce verbose output that lists
10090         # what "hidden" libraries, object files and flags are used when
10091         # linking a shared library.
10092         #
10093         # There doesn't appear to be a way to prevent this compiler from
10094         # explicitly linking system object files so we need to strip them
10095         # from the output so that they don't get included in the library
10096         # dependencies.
10097         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'
10098         ;;
10099       *)
10100         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10101           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10102          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10103
10104           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10105           hardcode_libdir_separator_CXX=:
10106
10107           # Commands to make compiler produce verbose output that lists
10108           # what "hidden" libraries, object files and flags are used when
10109           # linking a shared library.
10110           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10111
10112         else
10113           # FIXME: insert proper C++ library support
10114           ld_shlibs_CXX=no
10115         fi
10116         ;;
10117     esac
10118     ;;
10119   psos*)
10120     # FIXME: insert proper C++ library support
10121     ld_shlibs_CXX=no
10122     ;;
10123   sco*)
10124     archive_cmds_need_lc_CXX=no
10125     case $cc_basename in
10126       CC*)
10127         # FIXME: insert proper C++ library support
10128         ld_shlibs_CXX=no
10129         ;;
10130       *)
10131         # FIXME: insert proper C++ library support
10132         ld_shlibs_CXX=no
10133         ;;
10134     esac
10135     ;;
10136   sunos4*)
10137     case $cc_basename in
10138       CC*)
10139         # Sun C++ 4.x
10140         # FIXME: insert proper C++ library support
10141         ld_shlibs_CXX=no
10142         ;;
10143       lcc*)
10144         # Lucid
10145         # FIXME: insert proper C++ library support
10146         ld_shlibs_CXX=no
10147         ;;
10148       *)
10149         # FIXME: insert proper C++ library support
10150         ld_shlibs_CXX=no
10151         ;;
10152     esac
10153     ;;
10154   solaris*)
10155     case $cc_basename in
10156       CC*)
10157         # Sun C++ 4.2, 5.x and Centerline C++
10158         archive_cmds_need_lc_CXX=yes
10159         no_undefined_flag_CXX=' -zdefs'
10160         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10161         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10162         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10163
10164         hardcode_libdir_flag_spec_CXX='-R$libdir'
10165         hardcode_shlibpath_var_CXX=no
10166         case $host_os in
10167           solaris2.[0-5] | solaris2.[0-5].*) ;;
10168           *)
10169             # The C++ compiler is used as linker so we must use $wl
10170             # flag to pass the commands to the underlying system
10171             # linker. We must also pass each convience library through
10172             # to the system linker between allextract/defaultextract.
10173             # The C++ compiler will combine linker options so we
10174             # cannot just pass the convience library names through
10175             # without $wl.
10176             # Supported since Solaris 2.6 (maybe 2.5.1?)
10177             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10178             ;;
10179         esac
10180         link_all_deplibs_CXX=yes
10181
10182         output_verbose_link_cmd='echo'
10183
10184         # Archives containing C++ object files must be created using
10185         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10186         # necessary to make sure instantiated templates are included
10187         # in the archive.
10188         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10189         ;;
10190       gcx*)
10191         # Green Hills C++ Compiler
10192         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10193
10194         # The C++ compiler must be used to create the archive.
10195         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10196         ;;
10197       *)
10198         # GNU C++ compiler with Solaris linker
10199         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10200           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10201           if $CC --version | grep -v '^2\.7' > /dev/null; then
10202             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10203             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10204                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10205
10206             # Commands to make compiler produce verbose output that lists
10207             # what "hidden" libraries, object files and flags are used when
10208             # linking a shared library.
10209             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10210           else
10211             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10212             # platform.
10213             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10214             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10215                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10216
10217             # Commands to make compiler produce verbose output that lists
10218             # what "hidden" libraries, object files and flags are used when
10219             # linking a shared library.
10220             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10221           fi
10222
10223           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10224         fi
10225         ;;
10226     esac
10227     ;;
10228   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10229     archive_cmds_need_lc_CXX=no
10230     ;;
10231   tandem*)
10232     case $cc_basename in
10233       NCC*)
10234         # NonStop-UX NCC 3.20
10235         # FIXME: insert proper C++ library support
10236         ld_shlibs_CXX=no
10237         ;;
10238       *)
10239         # FIXME: insert proper C++ library support
10240         ld_shlibs_CXX=no
10241         ;;
10242     esac
10243     ;;
10244   vxworks*)
10245     # FIXME: insert proper C++ library support
10246     ld_shlibs_CXX=no
10247     ;;
10248   *)
10249     # FIXME: insert proper C++ library support
10250     ld_shlibs_CXX=no
10251     ;;
10252 esac
10253 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10254 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10255 test "$ld_shlibs_CXX" = no && can_build_shared=no
10256
10257 GCC_CXX="$GXX"
10258 LD_CXX="$LD"
10259
10260
10261 cat > conftest.$ac_ext <<EOF
10262 class Foo
10263 {
10264 public:
10265   Foo (void) { a = 0; }
10266 private:
10267   int a;
10268 };
10269 EOF
10270
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272   (eval $ac_compile) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); }; then
10276   # Parse the compiler output and extract the necessary
10277   # objects, libraries and library flags.
10278
10279   # Sentinel used to keep track of whether or not we are before
10280   # the conftest object file.
10281   pre_test_object_deps_done=no
10282
10283   # The `*' in the case matches for architectures that use `case' in
10284   # $output_verbose_cmd can trigger glob expansion during the loop
10285   # eval without this substitution.
10286   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10287
10288   for p in `eval $output_verbose_link_cmd`; do
10289     case $p in
10290
10291     -L* | -R* | -l*)
10292        # Some compilers place space between "-{L,R}" and the path.
10293        # Remove the space.
10294        if test $p = "-L" \
10295           || test $p = "-R"; then
10296          prev=$p
10297          continue
10298        else
10299          prev=
10300        fi
10301
10302        if test "$pre_test_object_deps_done" = no; then
10303          case $p in
10304          -L* | -R*)
10305            # Internal compiler library paths should come after those
10306            # provided the user.  The postdeps already come after the
10307            # user supplied libs so there is no need to process them.
10308            if test -z "$compiler_lib_search_path_CXX"; then
10309              compiler_lib_search_path_CXX="${prev}${p}"
10310            else
10311              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10312            fi
10313            ;;
10314          # The "-l" case would never come before the object being
10315          # linked, so don't bother handling this case.
10316          esac
10317        else
10318          if test -z "$postdeps_CXX"; then
10319            postdeps_CXX="${prev}${p}"
10320          else
10321            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10322          fi
10323        fi
10324        ;;
10325
10326     *.$objext)
10327        # This assumes that the test object file only shows up
10328        # once in the compiler output.
10329        if test "$p" = "conftest.$objext"; then
10330          pre_test_object_deps_done=yes
10331          continue
10332        fi
10333
10334        if test "$pre_test_object_deps_done" = no; then
10335          if test -z "$predep_objects_CXX"; then
10336            predep_objects_CXX="$p"
10337          else
10338            predep_objects_CXX="$predep_objects_CXX $p"
10339          fi
10340        else
10341          if test -z "$postdep_objects_CXX"; then
10342            postdep_objects_CXX="$p"
10343          else
10344            postdep_objects_CXX="$postdep_objects_CXX $p"
10345          fi
10346        fi
10347        ;;
10348
10349     *) ;; # Ignore the rest.
10350
10351     esac
10352   done
10353
10354   # Clean up.
10355   rm -f a.out a.exe
10356 else
10357   echo "libtool.m4: error: problem compiling CXX test program"
10358 fi
10359
10360 $rm -f confest.$objext
10361
10362 # PORTME: override above test on systems where it is broken
10363 case $host_os in
10364 solaris*)
10365   case $cc_basename in
10366   CC*)
10367     # Adding this requires a known-good setup of shared libraries for
10368     # Sun compiler versions before 5.6, else PIC objects from an old
10369     # archive will be linked into the output, leading to subtle bugs.
10370     postdeps_CXX='-lCstd -lCrun'
10371     ;;
10372   esac
10373 esac
10374
10375
10376 case " $postdeps_CXX " in
10377 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10378 esac
10379
10380 lt_prog_compiler_wl_CXX=
10381 lt_prog_compiler_pic_CXX=
10382 lt_prog_compiler_static_CXX=
10383
10384 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10386
10387   # C++ specific cases for pic, static, wl, etc.
10388   if test "$GXX" = yes; then
10389     lt_prog_compiler_wl_CXX='-Wl,'
10390     lt_prog_compiler_static_CXX='-static'
10391
10392     case $host_os in
10393     aix*)
10394       # All AIX code is PIC.
10395       if test "$host_cpu" = ia64; then
10396         # AIX 5 now supports IA64 processor
10397         lt_prog_compiler_static_CXX='-Bstatic'
10398       fi
10399       ;;
10400     amigaos*)
10401       # FIXME: we need at least 68020 code to build shared libraries, but
10402       # adding the `-m68020' flag to GCC prevents building anything better,
10403       # like `-m68040'.
10404       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10405       ;;
10406     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10407       # PIC is the default for these OSes.
10408       ;;
10409     mingw* | os2* | pw32*)
10410       # This hack is so that the source file can tell whether it is being
10411       # built for inclusion in a dll (and should export symbols for example).
10412       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10413       ;;
10414     darwin* | rhapsody*)
10415       # PIC is the default on this platform
10416       # Common symbols not allowed in MH_DYLIB files
10417       lt_prog_compiler_pic_CXX='-fno-common'
10418       ;;
10419     *djgpp*)
10420       # DJGPP does not support shared libraries at all
10421       lt_prog_compiler_pic_CXX=
10422       ;;
10423     sysv4*MP*)
10424       if test -d /usr/nec; then
10425         lt_prog_compiler_pic_CXX=-Kconform_pic
10426       fi
10427       ;;
10428     hpux*)
10429       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10430       # not for PA HP-UX.
10431       case $host_cpu in
10432       hppa*64*|ia64*)
10433         ;;
10434       *)
10435         lt_prog_compiler_pic_CXX='-fPIC'
10436         ;;
10437       esac
10438       ;;
10439     *)
10440       lt_prog_compiler_pic_CXX='-fPIC'
10441       ;;
10442     esac
10443   else
10444     case $host_os in
10445       aix4* | aix5*)
10446         # All AIX code is PIC.
10447         if test "$host_cpu" = ia64; then
10448           # AIX 5 now supports IA64 processor
10449           lt_prog_compiler_static_CXX='-Bstatic'
10450         else
10451           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10452         fi
10453         ;;
10454       chorus*)
10455         case $cc_basename in
10456         cxch68*)
10457           # Green Hills C++ Compiler
10458           # _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"
10459           ;;
10460         esac
10461         ;;
10462        darwin*)
10463          # PIC is the default on this platform
10464          # Common symbols not allowed in MH_DYLIB files
10465          case $cc_basename in
10466            xlc*)
10467            lt_prog_compiler_pic_CXX='-qnocommon'
10468            lt_prog_compiler_wl_CXX='-Wl,'
10469            ;;
10470          esac
10471        ;;
10472       dgux*)
10473         case $cc_basename in
10474           ec++*)
10475             lt_prog_compiler_pic_CXX='-KPIC'
10476             ;;
10477           ghcx*)
10478             # Green Hills C++ Compiler
10479             lt_prog_compiler_pic_CXX='-pic'
10480             ;;
10481           *)
10482             ;;
10483         esac
10484         ;;
10485       freebsd* | kfreebsd*-gnu | dragonfly*)
10486         # FreeBSD uses GNU C++
10487         ;;
10488       hpux9* | hpux10* | hpux11*)
10489         case $cc_basename in
10490           CC*)
10491             lt_prog_compiler_wl_CXX='-Wl,'
10492             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10493             if test "$host_cpu" != ia64; then
10494               lt_prog_compiler_pic_CXX='+Z'
10495             fi
10496             ;;
10497           aCC*)
10498             lt_prog_compiler_wl_CXX='-Wl,'
10499             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10500             case $host_cpu in
10501             hppa*64*|ia64*)
10502               # +Z the default
10503               ;;
10504             *)
10505               lt_prog_compiler_pic_CXX='+Z'
10506               ;;
10507             esac
10508             ;;
10509           *)
10510             ;;
10511         esac
10512         ;;
10513       irix5* | irix6* | nonstopux*)
10514         case $cc_basename in
10515           CC*)
10516             lt_prog_compiler_wl_CXX='-Wl,'
10517             lt_prog_compiler_static_CXX='-non_shared'
10518             # CC pic flag -KPIC is the default.
10519             ;;
10520           *)
10521             ;;
10522         esac
10523         ;;
10524       linux*)
10525         case $cc_basename in
10526           KCC*)
10527             # KAI C++ Compiler
10528             lt_prog_compiler_wl_CXX='--backend -Wl,'
10529             lt_prog_compiler_pic_CXX='-fPIC'
10530             ;;
10531           icpc* | ecpc*)
10532             # Intel C++
10533             lt_prog_compiler_wl_CXX='-Wl,'
10534             lt_prog_compiler_pic_CXX='-KPIC'
10535             lt_prog_compiler_static_CXX='-static'
10536             ;;
10537           pgCC*)
10538             # Portland Group C++ compiler.
10539             lt_prog_compiler_wl_CXX='-Wl,'
10540             lt_prog_compiler_pic_CXX='-fpic'
10541             lt_prog_compiler_static_CXX='-Bstatic'
10542             ;;
10543           cxx*)
10544             # Compaq C++
10545             # Make sure the PIC flag is empty.  It appears that all Alpha
10546             # Linux and Compaq Tru64 Unix objects are PIC.
10547             lt_prog_compiler_pic_CXX=
10548             lt_prog_compiler_static_CXX='-non_shared'
10549             ;;
10550           *)
10551             ;;
10552         esac
10553         ;;
10554       lynxos*)
10555         ;;
10556       m88k*)
10557         ;;
10558       mvs*)
10559         case $cc_basename in
10560           cxx*)
10561             lt_prog_compiler_pic_CXX='-W c,exportall'
10562             ;;
10563           *)
10564             ;;
10565         esac
10566         ;;
10567       netbsd*)
10568         ;;
10569       osf3* | osf4* | osf5*)
10570         case $cc_basename in
10571           KCC*)
10572             lt_prog_compiler_wl_CXX='--backend -Wl,'
10573             ;;
10574           RCC*)
10575             # Rational C++ 2.4.1
10576             lt_prog_compiler_pic_CXX='-pic'
10577             ;;
10578           cxx*)
10579             # Digital/Compaq C++
10580             lt_prog_compiler_wl_CXX='-Wl,'
10581             # Make sure the PIC flag is empty.  It appears that all Alpha
10582             # Linux and Compaq Tru64 Unix objects are PIC.
10583             lt_prog_compiler_pic_CXX=
10584             lt_prog_compiler_static_CXX='-non_shared'
10585             ;;
10586           *)
10587             ;;
10588         esac
10589         ;;
10590       psos*)
10591         ;;
10592       sco*)
10593         case $cc_basename in
10594           CC*)
10595             lt_prog_compiler_pic_CXX='-fPIC'
10596             ;;
10597           *)
10598             ;;
10599         esac
10600         ;;
10601       solaris*)
10602         case $cc_basename in
10603           CC*)
10604             # Sun C++ 4.2, 5.x and Centerline C++
10605             lt_prog_compiler_pic_CXX='-KPIC'
10606             lt_prog_compiler_static_CXX='-Bstatic'
10607             lt_prog_compiler_wl_CXX='-Qoption ld '
10608             ;;
10609           gcx*)
10610             # Green Hills C++ Compiler
10611             lt_prog_compiler_pic_CXX='-PIC'
10612             ;;
10613           *)
10614             ;;
10615         esac
10616         ;;
10617       sunos4*)
10618         case $cc_basename in
10619           CC*)
10620             # Sun C++ 4.x
10621             lt_prog_compiler_pic_CXX='-pic'
10622             lt_prog_compiler_static_CXX='-Bstatic'
10623             ;;
10624           lcc*)
10625             # Lucid
10626             lt_prog_compiler_pic_CXX='-pic'
10627             ;;
10628           *)
10629             ;;
10630         esac
10631         ;;
10632       tandem*)
10633         case $cc_basename in
10634           NCC*)
10635             # NonStop-UX NCC 3.20
10636             lt_prog_compiler_pic_CXX='-KPIC'
10637             ;;
10638           *)
10639             ;;
10640         esac
10641         ;;
10642       unixware*)
10643         ;;
10644       vxworks*)
10645         ;;
10646       *)
10647         lt_prog_compiler_can_build_shared_CXX=no
10648         ;;
10649     esac
10650   fi
10651
10652 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10653 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10654
10655 #
10656 # Check to make sure the PIC flag actually works.
10657 #
10658 if test -n "$lt_prog_compiler_pic_CXX"; then
10659
10660 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10661 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10662 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10663   echo $ECHO_N "(cached) $ECHO_C" >&6
10664 else
10665   lt_prog_compiler_pic_works_CXX=no
10666   ac_outfile=conftest.$ac_objext
10667    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10668    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10669    # Insert the option either (1) after the last *FLAGS variable, or
10670    # (2) before a word containing "conftest.", or (3) at the end.
10671    # Note that $ac_compile itself does not contain backslashes and begins
10672    # with a dollar sign (not a hyphen), so the echo should work correctly.
10673    # The option is referenced via a variable to avoid confusing sed.
10674    lt_compile=`echo "$ac_compile" | $SED \
10675    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10676    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10677    -e 's:$: $lt_compiler_flag:'`
10678    (eval echo "\"\$as_me:10678: $lt_compile\"" >&5)
10679    (eval "$lt_compile" 2>conftest.err)
10680    ac_status=$?
10681    cat conftest.err >&5
10682    echo "$as_me:10682: \$? = $ac_status" >&5
10683    if (exit $ac_status) && test -s "$ac_outfile"; then
10684      # The compiler can only warn and ignore the option if not recognized
10685      # So say no if there are warnings other than the usual output.
10686      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
10687      $SED '/^$/d' conftest.err >conftest.er2
10688      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
10689        lt_prog_compiler_pic_works_CXX=yes
10690      fi
10691    fi
10692    $rm conftest*
10693
10694 fi
10695 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10696 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10697
10698 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10699     case $lt_prog_compiler_pic_CXX in
10700      "" | " "*) ;;
10701      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10702      esac
10703 else
10704     lt_prog_compiler_pic_CXX=
10705      lt_prog_compiler_can_build_shared_CXX=no
10706 fi
10707
10708 fi
10709 case $host_os in
10710   # For platforms which do not support PIC, -DPIC is meaningless:
10711   *djgpp*)
10712     lt_prog_compiler_pic_CXX=
10713     ;;
10714   *)
10715     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10716     ;;
10717 esac
10718
10719 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10720 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10721 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10722   echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724   lt_cv_prog_compiler_c_o_CXX=no
10725    $rm -r conftest 2>/dev/null
10726    mkdir conftest
10727    cd conftest
10728    mkdir out
10729    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10730
10731    lt_compiler_flag="-o out/conftest2.$ac_objext"
10732    # Insert the option either (1) after the last *FLAGS variable, or
10733    # (2) before a word containing "conftest.", or (3) at the end.
10734    # Note that $ac_compile itself does not contain backslashes and begins
10735    # with a dollar sign (not a hyphen), so the echo should work correctly.
10736    lt_compile=`echo "$ac_compile" | $SED \
10737    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10738    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10739    -e 's:$: $lt_compiler_flag:'`
10740    (eval echo "\"\$as_me:10740: $lt_compile\"" >&5)
10741    (eval "$lt_compile" 2>out/conftest.err)
10742    ac_status=$?
10743    cat out/conftest.err >&5
10744    echo "$as_me:10744: \$? = $ac_status" >&5
10745    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10746    then
10747      # The compiler can only warn and ignore the option if not recognized
10748      # So say no if there are warnings
10749      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
10750      $SED '/^$/d' out/conftest.err >out/conftest.er2
10751      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10752        lt_cv_prog_compiler_c_o_CXX=yes
10753      fi
10754    fi
10755    chmod u+w . 2>&5
10756    $rm conftest*
10757    # SGI C++ compiler will create directory out/ii_files/ for
10758    # template instantiation
10759    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10760    $rm out/* && rmdir out
10761    cd ..
10762    rmdir conftest
10763    $rm conftest*
10764
10765 fi
10766 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10767 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10768
10769
10770 hard_links="nottested"
10771 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10772   # do not overwrite the value of need_locks provided by the user
10773   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10774 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10775   hard_links=yes
10776   $rm conftest*
10777   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10778   touch conftest.a
10779   ln conftest.a conftest.b 2>&5 || hard_links=no
10780   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10781   echo "$as_me:$LINENO: result: $hard_links" >&5
10782 echo "${ECHO_T}$hard_links" >&6
10783   if test "$hard_links" = no; then
10784     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10785 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10786     need_locks=warn
10787   fi
10788 else
10789   need_locks=no
10790 fi
10791
10792 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10793 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10794
10795   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10796   case $host_os in
10797   aix4* | aix5*)
10798     # If we're using GNU nm, then we don't want the "-C" option.
10799     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10800     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10801       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'
10802     else
10803       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'
10804     fi
10805     ;;
10806   pw32*)
10807     export_symbols_cmds_CXX="$ltdll_cmds"
10808   ;;
10809   cygwin* | mingw*)
10810     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10811   ;;
10812   *)
10813     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10814   ;;
10815   esac
10816
10817 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10818 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10819 test "$ld_shlibs_CXX" = no && can_build_shared=no
10820
10821 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10822 if test "$GCC" = yes; then
10823   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10824 fi
10825
10826 #
10827 # Do we need to explicitly link libc?
10828 #
10829 case "x$archive_cmds_need_lc_CXX" in
10830 x|xyes)
10831   # Assume -lc should be added
10832   archive_cmds_need_lc_CXX=yes
10833
10834   if test "$enable_shared" = yes && test "$GCC" = yes; then
10835     case $archive_cmds_CXX in
10836     *'~'*)
10837       # FIXME: we may have to deal with multi-command sequences.
10838       ;;
10839     '$CC '*)
10840       # Test whether the compiler implicitly links with -lc since on some
10841       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10842       # to ld, don't add -lc before -lgcc.
10843       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10844 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10845       $rm conftest*
10846       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10847
10848       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849   (eval $ac_compile) 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); } 2>conftest.err; then
10853         soname=conftest
10854         lib=conftest
10855         libobjs=conftest.$ac_objext
10856         deplibs=
10857         wl=$lt_prog_compiler_wl_CXX
10858         compiler_flags=-v
10859         linker_flags=-v
10860         verstring=
10861         output_objdir=.
10862         libname=conftest
10863         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10864         allow_undefined_flag_CXX=
10865         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10866   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10867   ac_status=$?
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); }
10870         then
10871           archive_cmds_need_lc_CXX=no
10872         else
10873           archive_cmds_need_lc_CXX=yes
10874         fi
10875         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10876       else
10877         cat conftest.err 1>&5
10878       fi
10879       $rm conftest*
10880       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10881 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10882       ;;
10883     esac
10884   fi
10885   ;;
10886 esac
10887
10888 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10889 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10890 library_names_spec=
10891 libname_spec='lib$name'
10892 soname_spec=
10893 shrext_cmds=".so"
10894 postinstall_cmds=
10895 postuninstall_cmds=
10896 finish_cmds=
10897 finish_eval=
10898 shlibpath_var=
10899 shlibpath_overrides_runpath=unknown
10900 version_type=none
10901 dynamic_linker="$host_os ld.so"
10902 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10903 if test "$GCC" = yes; then
10904   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10905   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10906     # if the path contains ";" then we assume it to be the separator
10907     # otherwise default to the standard path separator (i.e. ":") - it is
10908     # assumed that no part of a normal pathname contains ";" but that should
10909     # okay in the real world where ";" in dirpaths is itself problematic.
10910     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10911   else
10912     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10913   fi
10914 else
10915   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10916 fi
10917 need_lib_prefix=unknown
10918 hardcode_into_libs=no
10919
10920 # when you set need_version to no, make sure it does not cause -set_version
10921 # flags to be left without arguments
10922 need_version=unknown
10923
10924 case $host_os in
10925 aix3*)
10926   version_type=linux
10927   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10928   shlibpath_var=LIBPATH
10929
10930   # AIX 3 has no versioning support, so we append a major version to the name.
10931   soname_spec='${libname}${release}${shared_ext}$major'
10932   ;;
10933
10934 aix4* | aix5*)
10935   version_type=linux
10936   need_lib_prefix=no
10937   need_version=no
10938   hardcode_into_libs=yes
10939   if test "$host_cpu" = ia64; then
10940     # AIX 5 supports IA64
10941     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10942     shlibpath_var=LD_LIBRARY_PATH
10943   else
10944     # With GCC up to 2.95.x, collect2 would create an import file
10945     # for dependence libraries.  The import file would start with
10946     # the line `#! .'.  This would cause the generated library to
10947     # depend on `.', always an invalid library.  This was fixed in
10948     # development snapshots of GCC prior to 3.0.
10949     case $host_os in
10950       aix4 | aix4.[01] | aix4.[01].*)
10951       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10952            echo ' yes '
10953            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10954         :
10955       else
10956         can_build_shared=no
10957       fi
10958       ;;
10959     esac
10960     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10961     # soname into executable. Probably we can add versioning support to
10962     # collect2, so additional links can be useful in future.
10963     if test "$aix_use_runtimelinking" = yes; then
10964       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10965       # instead of lib<name>.a to let people know that these are not
10966       # typical AIX shared libraries.
10967       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968     else
10969       # We preserve .a as extension for shared libraries through AIX4.2
10970       # and later when we are not doing run time linking.
10971       library_names_spec='${libname}${release}.a $libname.a'
10972       soname_spec='${libname}${release}${shared_ext}$major'
10973     fi
10974     shlibpath_var=LIBPATH
10975   fi
10976   ;;
10977
10978 amigaos*)
10979   library_names_spec='$libname.ixlibrary $libname.a'
10980   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10981   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'
10982   ;;
10983
10984 beos*)
10985   library_names_spec='${libname}${shared_ext}'
10986   dynamic_linker="$host_os ld.so"
10987   shlibpath_var=LIBRARY_PATH
10988   ;;
10989
10990 bsdi[45]*)
10991   version_type=linux
10992   need_version=no
10993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994   soname_spec='${libname}${release}${shared_ext}$major'
10995   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10996   shlibpath_var=LD_LIBRARY_PATH
10997   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10998   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10999   # the default ld.so.conf also contains /usr/contrib/lib and
11000   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11001   # libtool to hard-code these into programs
11002   ;;
11003
11004 cygwin* | mingw* | pw32*)
11005   version_type=windows
11006   shrext_cmds=".dll"
11007   need_version=no
11008   need_lib_prefix=no
11009
11010   case $GCC,$host_os in
11011   yes,cygwin* | yes,mingw* | yes,pw32*)
11012     library_names_spec='$libname.dll.a'
11013     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11014     postinstall_cmds='base_file=`basename \${file}`~
11015       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11016       dldir=$destdir/`dirname \$dlpath`~
11017       test -d \$dldir || mkdir -p \$dldir~
11018       $install_prog $dir/$dlname \$dldir/$dlname~
11019       chmod a+x \$dldir/$dlname'
11020     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11021       dlpath=$dir/\$dldll~
11022        $rm \$dlpath'
11023     shlibpath_overrides_runpath=yes
11024
11025     case $host_os in
11026     cygwin*)
11027       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11028       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11029       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11030       ;;
11031     mingw*)
11032       # MinGW DLLs use traditional 'lib' prefix
11033       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11034       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11035       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11036         # It is most probably a Windows format PATH printed by
11037         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11038         # path with ; separators, and with drive letters. We can handle the
11039         # drive letters (cygwin fileutils understands them), so leave them,
11040         # especially as we might pass files found there to a mingw objdump,
11041         # which wouldn't understand a cygwinified path. Ahh.
11042         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11043       else
11044         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11045       fi
11046       ;;
11047     pw32*)
11048       # pw32 DLLs use 'pw' prefix rather than 'lib'
11049       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11050       ;;
11051     esac
11052     ;;
11053
11054   *)
11055     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11056     ;;
11057   esac
11058   dynamic_linker='Win32 ld.exe'
11059   # FIXME: first we should search . and the directory the executable is in
11060   shlibpath_var=PATH
11061   ;;
11062
11063 darwin* | rhapsody*)
11064   dynamic_linker="$host_os dyld"
11065   version_type=darwin
11066   need_lib_prefix=no
11067   need_version=no
11068   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11069   soname_spec='${libname}${release}${major}$shared_ext'
11070   shlibpath_overrides_runpath=yes
11071   shlibpath_var=DYLD_LIBRARY_PATH
11072   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11073   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11074   if test "$GCC" = yes; then
11075     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"`
11076   else
11077     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11078   fi
11079   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11080   ;;
11081
11082 dgux*)
11083   version_type=linux
11084   need_lib_prefix=no
11085   need_version=no
11086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11087   soname_spec='${libname}${release}${shared_ext}$major'
11088   shlibpath_var=LD_LIBRARY_PATH
11089   ;;
11090
11091 freebsd1*)
11092   dynamic_linker=no
11093   ;;
11094
11095 kfreebsd*-gnu)
11096   version_type=linux
11097   need_lib_prefix=no
11098   need_version=no
11099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11100   soname_spec='${libname}${release}${shared_ext}$major'
11101   shlibpath_var=LD_LIBRARY_PATH
11102   shlibpath_overrides_runpath=no
11103   hardcode_into_libs=yes
11104   dynamic_linker='GNU ld.so'
11105   ;;
11106
11107 freebsd* | dragonfly*)
11108   # DragonFly does not have aout.  When/if they implement a new
11109   # versioning mechanism, adjust this.
11110   if test -x /usr/bin/objformat; then
11111     objformat=`/usr/bin/objformat`
11112   else
11113     case $host_os in
11114     freebsd[123]*) objformat=aout ;;
11115     *) objformat=elf ;;
11116     esac
11117   fi
11118   version_type=freebsd-$objformat
11119   case $version_type in
11120     freebsd-elf*)
11121       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11122       need_version=no
11123       need_lib_prefix=no
11124       ;;
11125     freebsd-*)
11126       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11127       need_version=yes
11128       ;;
11129   esac
11130   shlibpath_var=LD_LIBRARY_PATH
11131   case $host_os in
11132   freebsd2*)
11133     shlibpath_overrides_runpath=yes
11134     ;;
11135   freebsd3.[01]* | freebsdelf3.[01]*)
11136     shlibpath_overrides_runpath=yes
11137     hardcode_into_libs=yes
11138     ;;
11139   *) # from 3.2 on
11140     shlibpath_overrides_runpath=no
11141     hardcode_into_libs=yes
11142     ;;
11143   esac
11144   ;;
11145
11146 gnu*)
11147   version_type=linux
11148   need_lib_prefix=no
11149   need_version=no
11150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11151   soname_spec='${libname}${release}${shared_ext}$major'
11152   shlibpath_var=LD_LIBRARY_PATH
11153   hardcode_into_libs=yes
11154   ;;
11155
11156 hpux9* | hpux10* | hpux11*)
11157   # Give a soname corresponding to the major version so that dld.sl refuses to
11158   # link against other versions.
11159   version_type=sunos
11160   need_lib_prefix=no
11161   need_version=no
11162   case $host_cpu in
11163   ia64*)
11164     shrext_cmds='.so'
11165     hardcode_into_libs=yes
11166     dynamic_linker="$host_os dld.so"
11167     shlibpath_var=LD_LIBRARY_PATH
11168     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170     soname_spec='${libname}${release}${shared_ext}$major'
11171     if test "X$HPUX_IA64_MODE" = X32; then
11172       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11173     else
11174       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11175     fi
11176     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11177     ;;
11178    hppa*64*)
11179      shrext_cmds='.sl'
11180      hardcode_into_libs=yes
11181      dynamic_linker="$host_os dld.sl"
11182      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11183      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11184      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185      soname_spec='${libname}${release}${shared_ext}$major'
11186      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11187      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11188      ;;
11189    *)
11190     shrext_cmds='.sl'
11191     dynamic_linker="$host_os dld.sl"
11192     shlibpath_var=SHLIB_PATH
11193     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195     soname_spec='${libname}${release}${shared_ext}$major'
11196     ;;
11197   esac
11198   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11199   postinstall_cmds='chmod 555 $lib'
11200   ;;
11201
11202 irix5* | irix6* | nonstopux*)
11203   case $host_os in
11204     nonstopux*) version_type=nonstopux ;;
11205     *)
11206         if test "$lt_cv_prog_gnu_ld" = yes; then
11207                 version_type=linux
11208         else
11209                 version_type=irix
11210         fi ;;
11211   esac
11212   need_lib_prefix=no
11213   need_version=no
11214   soname_spec='${libname}${release}${shared_ext}$major'
11215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11216   case $host_os in
11217   irix5* | nonstopux*)
11218     libsuff= shlibsuff=
11219     ;;
11220   *)
11221     case $LD in # libtool.m4 will add one of these switches to LD
11222     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11223       libsuff= shlibsuff= libmagic=32-bit;;
11224     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11225       libsuff=32 shlibsuff=N32 libmagic=N32;;
11226     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11227       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11228     *) libsuff= shlibsuff= libmagic=never-match;;
11229     esac
11230     ;;
11231   esac
11232   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11233   shlibpath_overrides_runpath=no
11234   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11235   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11236   hardcode_into_libs=yes
11237   ;;
11238
11239 # No shared lib support for Linux oldld, aout, or coff.
11240 linux*oldld* | linux*aout* | linux*coff*)
11241   dynamic_linker=no
11242   ;;
11243
11244 # This must be Linux ELF.
11245 linux*)
11246   version_type=linux
11247   need_lib_prefix=no
11248   need_version=no
11249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250   soname_spec='${libname}${release}${shared_ext}$major'
11251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11252   shlibpath_var=LD_LIBRARY_PATH
11253   shlibpath_overrides_runpath=no
11254   # This implies no fast_install, which is unacceptable.
11255   # Some rework will be needed to allow for fast_install
11256   # before this can be enabled.
11257   hardcode_into_libs=yes
11258
11259   # Append ld.so.conf contents to the search path
11260   if test -f /etc/ld.so.conf; then
11261     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11262     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11263   fi
11264
11265   # We used to test for /lib/ld.so.1 and disable shared libraries on
11266   # powerpc, because MkLinux only supported shared libraries with the
11267   # GNU dynamic linker.  Since this was broken with cross compilers,
11268   # most powerpc-linux boxes support dynamic linking these days and
11269   # people can always --disable-shared, the test was removed, and we
11270   # assume the GNU/Linux dynamic linker is in use.
11271   dynamic_linker='GNU/Linux ld.so'
11272   ;;
11273
11274 knetbsd*-gnu)
11275   version_type=linux
11276   need_lib_prefix=no
11277   need_version=no
11278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11279   soname_spec='${libname}${release}${shared_ext}$major'
11280   shlibpath_var=LD_LIBRARY_PATH
11281   shlibpath_overrides_runpath=no
11282   hardcode_into_libs=yes
11283   dynamic_linker='GNU ld.so'
11284   ;;
11285
11286 netbsd*)
11287   version_type=sunos
11288   need_lib_prefix=no
11289   need_version=no
11290   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11292     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11293     dynamic_linker='NetBSD (a.out) ld.so'
11294   else
11295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11296     soname_spec='${libname}${release}${shared_ext}$major'
11297     dynamic_linker='NetBSD ld.elf_so'
11298   fi
11299   shlibpath_var=LD_LIBRARY_PATH
11300   shlibpath_overrides_runpath=yes
11301   hardcode_into_libs=yes
11302   ;;
11303
11304 newsos6)
11305   version_type=linux
11306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307   shlibpath_var=LD_LIBRARY_PATH
11308   shlibpath_overrides_runpath=yes
11309   ;;
11310
11311 nto-qnx*)
11312   version_type=linux
11313   need_lib_prefix=no
11314   need_version=no
11315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316   soname_spec='${libname}${release}${shared_ext}$major'
11317   shlibpath_var=LD_LIBRARY_PATH
11318   shlibpath_overrides_runpath=yes
11319   ;;
11320
11321 openbsd*)
11322   version_type=sunos
11323   need_lib_prefix=no
11324   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11325   case $host_os in
11326     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11327     *)                         need_version=no  ;;
11328   esac
11329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11330   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11331   shlibpath_var=LD_LIBRARY_PATH
11332   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11333     case $host_os in
11334       openbsd2.[89] | openbsd2.[89].*)
11335         shlibpath_overrides_runpath=no
11336         ;;
11337       *)
11338         shlibpath_overrides_runpath=yes
11339         ;;
11340       esac
11341   else
11342     shlibpath_overrides_runpath=yes
11343   fi
11344   ;;
11345
11346 os2*)
11347   libname_spec='$name'
11348   shrext_cmds=".dll"
11349   need_lib_prefix=no
11350   library_names_spec='$libname${shared_ext} $libname.a'
11351   dynamic_linker='OS/2 ld.exe'
11352   shlibpath_var=LIBPATH
11353   ;;
11354
11355 osf3* | osf4* | osf5*)
11356   version_type=osf
11357   need_lib_prefix=no
11358   need_version=no
11359   soname_spec='${libname}${release}${shared_ext}$major'
11360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361   shlibpath_var=LD_LIBRARY_PATH
11362   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11363   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11364   ;;
11365
11366 sco3.2v5*)
11367   version_type=osf
11368   soname_spec='${libname}${release}${shared_ext}$major'
11369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370   shlibpath_var=LD_LIBRARY_PATH
11371   ;;
11372
11373 solaris*)
11374   version_type=linux
11375   need_lib_prefix=no
11376   need_version=no
11377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378   soname_spec='${libname}${release}${shared_ext}$major'
11379   shlibpath_var=LD_LIBRARY_PATH
11380   shlibpath_overrides_runpath=yes
11381   hardcode_into_libs=yes
11382   # ldd complains unless libraries are executable
11383   postinstall_cmds='chmod +x $lib'
11384   ;;
11385
11386 sunos4*)
11387   version_type=sunos
11388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11389   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11390   shlibpath_var=LD_LIBRARY_PATH
11391   shlibpath_overrides_runpath=yes
11392   if test "$with_gnu_ld" = yes; then
11393     need_lib_prefix=no
11394   fi
11395   need_version=yes
11396   ;;
11397
11398 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11399   version_type=linux
11400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11401   soname_spec='${libname}${release}${shared_ext}$major'
11402   shlibpath_var=LD_LIBRARY_PATH
11403   case $host_vendor in
11404     sni)
11405       shlibpath_overrides_runpath=no
11406       need_lib_prefix=no
11407       export_dynamic_flag_spec='${wl}-Blargedynsym'
11408       runpath_var=LD_RUN_PATH
11409       ;;
11410     siemens)
11411       need_lib_prefix=no
11412       ;;
11413     motorola)
11414       need_lib_prefix=no
11415       need_version=no
11416       shlibpath_overrides_runpath=no
11417       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11418       ;;
11419   esac
11420   ;;
11421
11422 sysv4*MP*)
11423   if test -d /usr/nec ;then
11424     version_type=linux
11425     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11426     soname_spec='$libname${shared_ext}.$major'
11427     shlibpath_var=LD_LIBRARY_PATH
11428   fi
11429   ;;
11430
11431 uts4*)
11432   version_type=linux
11433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434   soname_spec='${libname}${release}${shared_ext}$major'
11435   shlibpath_var=LD_LIBRARY_PATH
11436   ;;
11437
11438 *)
11439   dynamic_linker=no
11440   ;;
11441 esac
11442 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11443 echo "${ECHO_T}$dynamic_linker" >&6
11444 test "$dynamic_linker" = no && can_build_shared=no
11445
11446 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11447 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11448 hardcode_action_CXX=
11449 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11450    test -n "$runpath_var_CXX" || \
11451    test "X$hardcode_automatic_CXX" = "Xyes" ; then
11452
11453   # We can hardcode non-existant directories.
11454   if test "$hardcode_direct_CXX" != no &&
11455      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11456      # have to relink, otherwise we might link with an installed library
11457      # when we should be linking with a yet-to-be-installed one
11458      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11459      test "$hardcode_minus_L_CXX" != no; then
11460     # Linking always hardcodes the temporary library directory.
11461     hardcode_action_CXX=relink
11462   else
11463     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11464     hardcode_action_CXX=immediate
11465   fi
11466 else
11467   # We cannot hardcode anything, or else we can only hardcode existing
11468   # directories.
11469   hardcode_action_CXX=unsupported
11470 fi
11471 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11472 echo "${ECHO_T}$hardcode_action_CXX" >&6
11473
11474 if test "$hardcode_action_CXX" = relink; then
11475   # Fast installation is not supported
11476   enable_fast_install=no
11477 elif test "$shlibpath_overrides_runpath" = yes ||
11478      test "$enable_shared" = no; then
11479   # Fast installation is not necessary
11480   enable_fast_install=needless
11481 fi
11482
11483 striplib=
11484 old_striplib=
11485 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11486 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11487 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11488   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11489   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11490   echo "$as_me:$LINENO: result: yes" >&5
11491 echo "${ECHO_T}yes" >&6
11492 else
11493 # FIXME - insert some real tests, host_os isn't really good enough
11494   case $host_os in
11495    darwin*)
11496        if test -n "$STRIP" ; then
11497          striplib="$STRIP -x"
11498          echo "$as_me:$LINENO: result: yes" >&5
11499 echo "${ECHO_T}yes" >&6
11500        else
11501   echo "$as_me:$LINENO: result: no" >&5
11502 echo "${ECHO_T}no" >&6
11503 fi
11504        ;;
11505    *)
11506   echo "$as_me:$LINENO: result: no" >&5
11507 echo "${ECHO_T}no" >&6
11508     ;;
11509   esac
11510 fi
11511
11512 if test "x$enable_dlopen" != xyes; then
11513   enable_dlopen=unknown
11514   enable_dlopen_self=unknown
11515   enable_dlopen_self_static=unknown
11516 else
11517   lt_cv_dlopen=no
11518   lt_cv_dlopen_libs=
11519
11520   case $host_os in
11521   beos*)
11522     lt_cv_dlopen="load_add_on"
11523     lt_cv_dlopen_libs=
11524     lt_cv_dlopen_self=yes
11525     ;;
11526
11527   mingw* | pw32*)
11528     lt_cv_dlopen="LoadLibrary"
11529     lt_cv_dlopen_libs=
11530    ;;
11531
11532   cygwin*)
11533     lt_cv_dlopen="dlopen"
11534     lt_cv_dlopen_libs=
11535    ;;
11536
11537   darwin*)
11538   # if libdl is installed we need to link against it
11539     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11540 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11541 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11542   echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544   ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-ldl  $LIBS"
11546 cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552
11553 /* Override any gcc2 internal prototype to avoid an error.  */
11554 #ifdef __cplusplus
11555 extern "C"
11556 #endif
11557 /* We use char because int might match the return type of a gcc2
11558    builtin and then its argument prototype would still apply.  */
11559 char dlopen ();
11560 int
11561 main ()
11562 {
11563 dlopen ();
11564   ;
11565   return 0;
11566 }
11567 _ACEOF
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570   (eval $ac_link) 2>conftest.er1
11571   ac_status=$?
11572   grep -v '^ *+' conftest.er1 >conftest.err
11573   rm -f conftest.er1
11574   cat conftest.err >&5
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); } &&
11577          { ac_try='test -z "$ac_cxx_werror_flag"
11578                          || test ! -s conftest.err'
11579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580   (eval $ac_try) 2>&5
11581   ac_status=$?
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); }; } &&
11584          { ac_try='test -s conftest$ac_exeext'
11585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586   (eval $ac_try) 2>&5
11587   ac_status=$?
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); }; }; then
11590   ac_cv_lib_dl_dlopen=yes
11591 else
11592   echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11594
11595 ac_cv_lib_dl_dlopen=no
11596 fi
11597 rm -f conftest.err conftest.$ac_objext \
11598       conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11600 fi
11601 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11602 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11603 if test $ac_cv_lib_dl_dlopen = yes; then
11604   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11605 else
11606
11607     lt_cv_dlopen="dyld"
11608     lt_cv_dlopen_libs=
11609     lt_cv_dlopen_self=yes
11610
11611 fi
11612
11613    ;;
11614
11615   *)
11616     echo "$as_me:$LINENO: checking for shl_load" >&5
11617 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11618 if test "${ac_cv_func_shl_load+set}" = set; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621   cat >conftest.$ac_ext <<_ACEOF
11622 /* confdefs.h.  */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h.  */
11627 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11629 #define shl_load innocuous_shl_load
11630
11631 /* System header to define __stub macros and hopefully few prototypes,
11632     which can conflict with char shl_load (); below.
11633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11634     <limits.h> exists even on freestanding compilers.  */
11635
11636 #ifdef __STDC__
11637 # include <limits.h>
11638 #else
11639 # include <assert.h>
11640 #endif
11641
11642 #undef shl_load
11643
11644 /* Override any gcc2 internal prototype to avoid an error.  */
11645 #ifdef __cplusplus
11646 extern "C"
11647 {
11648 #endif
11649 /* We use char because int might match the return type of a gcc2
11650    builtin and then its argument prototype would still apply.  */
11651 char shl_load ();
11652 /* The GNU C library defines this for functions which it implements
11653     to always fail with ENOSYS.  Some functions are actually named
11654     something starting with __ and the normal name is an alias.  */
11655 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11656 choke me
11657 #else
11658 char (*f) () = shl_load;
11659 #endif
11660 #ifdef __cplusplus
11661 }
11662 #endif
11663
11664 int
11665 main ()
11666 {
11667 return f != shl_load;
11668   ;
11669   return 0;
11670 }
11671 _ACEOF
11672 rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674   (eval $ac_link) 2>conftest.er1
11675   ac_status=$?
11676   grep -v '^ *+' conftest.er1 >conftest.err
11677   rm -f conftest.er1
11678   cat conftest.err >&5
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); } &&
11681          { ac_try='test -z "$ac_cxx_werror_flag"
11682                          || test ! -s conftest.err'
11683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684   (eval $ac_try) 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; } &&
11688          { ac_try='test -s conftest$ac_exeext'
11689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690   (eval $ac_try) 2>&5
11691   ac_status=$?
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); }; }; then
11694   ac_cv_func_shl_load=yes
11695 else
11696   echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699 ac_cv_func_shl_load=no
11700 fi
11701 rm -f conftest.err conftest.$ac_objext \
11702       conftest$ac_exeext conftest.$ac_ext
11703 fi
11704 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11705 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11706 if test $ac_cv_func_shl_load = yes; then
11707   lt_cv_dlopen="shl_load"
11708 else
11709   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11710 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11711 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11712   echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714   ac_check_lib_save_LIBS=$LIBS
11715 LIBS="-ldld  $LIBS"
11716 cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h.  */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h.  */
11722
11723 /* Override any gcc2 internal prototype to avoid an error.  */
11724 #ifdef __cplusplus
11725 extern "C"
11726 #endif
11727 /* We use char because int might match the return type of a gcc2
11728    builtin and then its argument prototype would still apply.  */
11729 char shl_load ();
11730 int
11731 main ()
11732 {
11733 shl_load ();
11734   ;
11735   return 0;
11736 }
11737 _ACEOF
11738 rm -f conftest.$ac_objext conftest$ac_exeext
11739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11740   (eval $ac_link) 2>conftest.er1
11741   ac_status=$?
11742   grep -v '^ *+' conftest.er1 >conftest.err
11743   rm -f conftest.er1
11744   cat conftest.err >&5
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); } &&
11747          { ac_try='test -z "$ac_cxx_werror_flag"
11748                          || test ! -s conftest.err'
11749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750   (eval $ac_try) 2>&5
11751   ac_status=$?
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); }; } &&
11754          { ac_try='test -s conftest$ac_exeext'
11755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756   (eval $ac_try) 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); }; }; then
11760   ac_cv_lib_dld_shl_load=yes
11761 else
11762   echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765 ac_cv_lib_dld_shl_load=no
11766 fi
11767 rm -f conftest.err conftest.$ac_objext \
11768       conftest$ac_exeext conftest.$ac_ext
11769 LIBS=$ac_check_lib_save_LIBS
11770 fi
11771 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11772 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11773 if test $ac_cv_lib_dld_shl_load = yes; then
11774   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11775 else
11776   echo "$as_me:$LINENO: checking for dlopen" >&5
11777 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11778 if test "${ac_cv_func_dlopen+set}" = set; then
11779   echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781   cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h.  */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h.  */
11787 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11789 #define dlopen innocuous_dlopen
11790
11791 /* System header to define __stub macros and hopefully few prototypes,
11792     which can conflict with char dlopen (); below.
11793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11794     <limits.h> exists even on freestanding compilers.  */
11795
11796 #ifdef __STDC__
11797 # include <limits.h>
11798 #else
11799 # include <assert.h>
11800 #endif
11801
11802 #undef dlopen
11803
11804 /* Override any gcc2 internal prototype to avoid an error.  */
11805 #ifdef __cplusplus
11806 extern "C"
11807 {
11808 #endif
11809 /* We use char because int might match the return type of a gcc2
11810    builtin and then its argument prototype would still apply.  */
11811 char dlopen ();
11812 /* The GNU C library defines this for functions which it implements
11813     to always fail with ENOSYS.  Some functions are actually named
11814     something starting with __ and the normal name is an alias.  */
11815 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11816 choke me
11817 #else
11818 char (*f) () = dlopen;
11819 #endif
11820 #ifdef __cplusplus
11821 }
11822 #endif
11823
11824 int
11825 main ()
11826 {
11827 return f != dlopen;
11828   ;
11829   return 0;
11830 }
11831 _ACEOF
11832 rm -f conftest.$ac_objext conftest$ac_exeext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11834   (eval $ac_link) 2>conftest.er1
11835   ac_status=$?
11836   grep -v '^ *+' conftest.er1 >conftest.err
11837   rm -f conftest.er1
11838   cat conftest.err >&5
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); } &&
11841          { ac_try='test -z "$ac_cxx_werror_flag"
11842                          || test ! -s conftest.err'
11843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844   (eval $ac_try) 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); }; } &&
11848          { ac_try='test -s conftest$ac_exeext'
11849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850   (eval $ac_try) 2>&5
11851   ac_status=$?
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); }; }; then
11854   ac_cv_func_dlopen=yes
11855 else
11856   echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 ac_cv_func_dlopen=no
11860 fi
11861 rm -f conftest.err conftest.$ac_objext \
11862       conftest$ac_exeext conftest.$ac_ext
11863 fi
11864 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11865 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11866 if test $ac_cv_func_dlopen = yes; then
11867   lt_cv_dlopen="dlopen"
11868 else
11869   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11870 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11872   echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874   ac_check_lib_save_LIBS=$LIBS
11875 LIBS="-ldl  $LIBS"
11876 cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h.  */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h.  */
11882
11883 /* Override any gcc2 internal prototype to avoid an error.  */
11884 #ifdef __cplusplus
11885 extern "C"
11886 #endif
11887 /* We use char because int might match the return type of a gcc2
11888    builtin and then its argument prototype would still apply.  */
11889 char dlopen ();
11890 int
11891 main ()
11892 {
11893 dlopen ();
11894   ;
11895   return 0;
11896 }
11897 _ACEOF
11898 rm -f conftest.$ac_objext conftest$ac_exeext
11899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900   (eval $ac_link) 2>conftest.er1
11901   ac_status=$?
11902   grep -v '^ *+' conftest.er1 >conftest.err
11903   rm -f conftest.er1
11904   cat conftest.err >&5
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); } &&
11907          { ac_try='test -z "$ac_cxx_werror_flag"
11908                          || test ! -s conftest.err'
11909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910   (eval $ac_try) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; } &&
11914          { ac_try='test -s conftest$ac_exeext'
11915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916   (eval $ac_try) 2>&5
11917   ac_status=$?
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); }; }; then
11920   ac_cv_lib_dl_dlopen=yes
11921 else
11922   echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11924
11925 ac_cv_lib_dl_dlopen=no
11926 fi
11927 rm -f conftest.err conftest.$ac_objext \
11928       conftest$ac_exeext conftest.$ac_ext
11929 LIBS=$ac_check_lib_save_LIBS
11930 fi
11931 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11932 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11933 if test $ac_cv_lib_dl_dlopen = yes; then
11934   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11935 else
11936   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11937 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11938 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11939   echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941   ac_check_lib_save_LIBS=$LIBS
11942 LIBS="-lsvld  $LIBS"
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949
11950 /* Override any gcc2 internal prototype to avoid an error.  */
11951 #ifdef __cplusplus
11952 extern "C"
11953 #endif
11954 /* We use char because int might match the return type of a gcc2
11955    builtin and then its argument prototype would still apply.  */
11956 char dlopen ();
11957 int
11958 main ()
11959 {
11960 dlopen ();
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11967   (eval $ac_link) 2>conftest.er1
11968   ac_status=$?
11969   grep -v '^ *+' conftest.er1 >conftest.err
11970   rm -f conftest.er1
11971   cat conftest.err >&5
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -z "$ac_cxx_werror_flag"
11975                          || test ! -s conftest.err'
11976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977   (eval $ac_try) 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); }; } &&
11981          { ac_try='test -s conftest$ac_exeext'
11982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983   (eval $ac_try) 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; }; then
11987   ac_cv_lib_svld_dlopen=yes
11988 else
11989   echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11991
11992 ac_cv_lib_svld_dlopen=no
11993 fi
11994 rm -f conftest.err conftest.$ac_objext \
11995       conftest$ac_exeext conftest.$ac_ext
11996 LIBS=$ac_check_lib_save_LIBS
11997 fi
11998 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11999 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12000 if test $ac_cv_lib_svld_dlopen = yes; then
12001   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12002 else
12003   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12004 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12005 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12006   echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008   ac_check_lib_save_LIBS=$LIBS
12009 LIBS="-ldld  $LIBS"
12010 cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h.  */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h.  */
12016
12017 /* Override any gcc2 internal prototype to avoid an error.  */
12018 #ifdef __cplusplus
12019 extern "C"
12020 #endif
12021 /* We use char because int might match the return type of a gcc2
12022    builtin and then its argument prototype would still apply.  */
12023 char dld_link ();
12024 int
12025 main ()
12026 {
12027 dld_link ();
12028   ;
12029   return 0;
12030 }
12031 _ACEOF
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034   (eval $ac_link) 2>conftest.er1
12035   ac_status=$?
12036   grep -v '^ *+' conftest.er1 >conftest.err
12037   rm -f conftest.er1
12038   cat conftest.err >&5
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -z "$ac_cxx_werror_flag"
12042                          || test ! -s conftest.err'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; } &&
12048          { ac_try='test -s conftest$ac_exeext'
12049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050   (eval $ac_try) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; }; then
12054   ac_cv_lib_dld_dld_link=yes
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 ac_cv_lib_dld_dld_link=no
12060 fi
12061 rm -f conftest.err conftest.$ac_objext \
12062       conftest$ac_exeext conftest.$ac_ext
12063 LIBS=$ac_check_lib_save_LIBS
12064 fi
12065 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12066 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12067 if test $ac_cv_lib_dld_dld_link = yes; then
12068   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12069 fi
12070
12071
12072 fi
12073
12074
12075 fi
12076
12077
12078 fi
12079
12080
12081 fi
12082
12083
12084 fi
12085
12086     ;;
12087   esac
12088
12089   if test "x$lt_cv_dlopen" != xno; then
12090     enable_dlopen=yes
12091   else
12092     enable_dlopen=no
12093   fi
12094
12095   case $lt_cv_dlopen in
12096   dlopen)
12097     save_CPPFLAGS="$CPPFLAGS"
12098     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12099
12100     save_LDFLAGS="$LDFLAGS"
12101     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12102
12103     save_LIBS="$LIBS"
12104     LIBS="$lt_cv_dlopen_libs $LIBS"
12105
12106     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12107 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12108 if test "${lt_cv_dlopen_self+set}" = set; then
12109   echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111           if test "$cross_compiling" = yes; then :
12112   lt_cv_dlopen_self=cross
12113 else
12114   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12115   lt_status=$lt_dlunknown
12116   cat > conftest.$ac_ext <<EOF
12117 #line 12117 "configure"
12118 #include "confdefs.h"
12119
12120 #if HAVE_DLFCN_H
12121 #include <dlfcn.h>
12122 #endif
12123
12124 #include <stdio.h>
12125
12126 #ifdef RTLD_GLOBAL
12127 #  define LT_DLGLOBAL           RTLD_GLOBAL
12128 #else
12129 #  ifdef DL_GLOBAL
12130 #    define LT_DLGLOBAL         DL_GLOBAL
12131 #  else
12132 #    define LT_DLGLOBAL         0
12133 #  endif
12134 #endif
12135
12136 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12137    find out it does not work in some platform. */
12138 #ifndef LT_DLLAZY_OR_NOW
12139 #  ifdef RTLD_LAZY
12140 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12141 #  else
12142 #    ifdef DL_LAZY
12143 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12144 #    else
12145 #      ifdef RTLD_NOW
12146 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12147 #      else
12148 #        ifdef DL_NOW
12149 #          define LT_DLLAZY_OR_NOW      DL_NOW
12150 #        else
12151 #          define LT_DLLAZY_OR_NOW      0
12152 #        endif
12153 #      endif
12154 #    endif
12155 #  endif
12156 #endif
12157
12158 #ifdef __cplusplus
12159 extern "C" void exit (int);
12160 #endif
12161
12162 void fnord() { int i=42;}
12163 int main ()
12164 {
12165   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12166   int status = $lt_dlunknown;
12167
12168   if (self)
12169     {
12170       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12171       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12172       /* dlclose (self); */
12173     }
12174
12175     exit (status);
12176 }
12177 EOF
12178   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179   (eval $ac_link) 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12183     (./conftest; exit; ) >&5 2>/dev/null
12184     lt_status=$?
12185     case x$lt_status in
12186       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12187       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12188       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12189     esac
12190   else :
12191     # compilation failed
12192     lt_cv_dlopen_self=no
12193   fi
12194 fi
12195 rm -fr conftest*
12196
12197
12198 fi
12199 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12200 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12201
12202     if test "x$lt_cv_dlopen_self" = xyes; then
12203       LDFLAGS="$LDFLAGS $link_static_flag"
12204       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12205 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12206 if test "${lt_cv_dlopen_self_static+set}" = set; then
12207   echo $ECHO_N "(cached) $ECHO_C" >&6
12208 else
12209           if test "$cross_compiling" = yes; then :
12210   lt_cv_dlopen_self_static=cross
12211 else
12212   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12213   lt_status=$lt_dlunknown
12214   cat > conftest.$ac_ext <<EOF
12215 #line 12215 "configure"
12216 #include "confdefs.h"
12217
12218 #if HAVE_DLFCN_H
12219 #include <dlfcn.h>
12220 #endif
12221
12222 #include <stdio.h>
12223
12224 #ifdef RTLD_GLOBAL
12225 #  define LT_DLGLOBAL           RTLD_GLOBAL
12226 #else
12227 #  ifdef DL_GLOBAL
12228 #    define LT_DLGLOBAL         DL_GLOBAL
12229 #  else
12230 #    define LT_DLGLOBAL         0
12231 #  endif
12232 #endif
12233
12234 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12235    find out it does not work in some platform. */
12236 #ifndef LT_DLLAZY_OR_NOW
12237 #  ifdef RTLD_LAZY
12238 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12239 #  else
12240 #    ifdef DL_LAZY
12241 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12242 #    else
12243 #      ifdef RTLD_NOW
12244 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12245 #      else
12246 #        ifdef DL_NOW
12247 #          define LT_DLLAZY_OR_NOW      DL_NOW
12248 #        else
12249 #          define LT_DLLAZY_OR_NOW      0
12250 #        endif
12251 #      endif
12252 #    endif
12253 #  endif
12254 #endif
12255
12256 #ifdef __cplusplus
12257 extern "C" void exit (int);
12258 #endif
12259
12260 void fnord() { int i=42;}
12261 int main ()
12262 {
12263   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12264   int status = $lt_dlunknown;
12265
12266   if (self)
12267     {
12268       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12269       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12270       /* dlclose (self); */
12271     }
12272
12273     exit (status);
12274 }
12275 EOF
12276   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12277   (eval $ac_link) 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12281     (./conftest; exit; ) >&5 2>/dev/null
12282     lt_status=$?
12283     case x$lt_status in
12284       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12285       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12286       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12287     esac
12288   else :
12289     # compilation failed
12290     lt_cv_dlopen_self_static=no
12291   fi
12292 fi
12293 rm -fr conftest*
12294
12295
12296 fi
12297 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12298 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12299     fi
12300
12301     CPPFLAGS="$save_CPPFLAGS"
12302     LDFLAGS="$save_LDFLAGS"
12303     LIBS="$save_LIBS"
12304     ;;
12305   esac
12306
12307   case $lt_cv_dlopen_self in
12308   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12309   *) enable_dlopen_self=unknown ;;
12310   esac
12311
12312   case $lt_cv_dlopen_self_static in
12313   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12314   *) enable_dlopen_self_static=unknown ;;
12315   esac
12316 fi
12317
12318
12319 # The else clause should only fire when bootstrapping the
12320 # libtool distribution, otherwise you forgot to ship ltmain.sh
12321 # with your package, and you will get complaints that there are
12322 # no rules to generate ltmain.sh.
12323 if test -f "$ltmain"; then
12324   # See if we are running on zsh, and set the options which allow our commands through
12325   # without removal of \ escapes.
12326   if test -n "${ZSH_VERSION+set}" ; then
12327     setopt NO_GLOB_SUBST
12328   fi
12329   # Now quote all the things that may contain metacharacters while being
12330   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12331   # variables and quote the copies for generation of the libtool script.
12332   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12333     SED SHELL STRIP \
12334     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12335     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12336     deplibs_check_method reload_flag reload_cmds need_locks \
12337     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12338     lt_cv_sys_global_symbol_to_c_name_address \
12339     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12340     old_postinstall_cmds old_postuninstall_cmds \
12341     compiler_CXX \
12342     CC_CXX \
12343     LD_CXX \
12344     lt_prog_compiler_wl_CXX \
12345     lt_prog_compiler_pic_CXX \
12346     lt_prog_compiler_static_CXX \
12347     lt_prog_compiler_no_builtin_flag_CXX \
12348     export_dynamic_flag_spec_CXX \
12349     thread_safe_flag_spec_CXX \
12350     whole_archive_flag_spec_CXX \
12351     enable_shared_with_static_runtimes_CXX \
12352     old_archive_cmds_CXX \
12353     old_archive_from_new_cmds_CXX \
12354     predep_objects_CXX \
12355     postdep_objects_CXX \
12356     predeps_CXX \
12357     postdeps_CXX \
12358     compiler_lib_search_path_CXX \
12359     archive_cmds_CXX \
12360     archive_expsym_cmds_CXX \
12361     postinstall_cmds_CXX \
12362     postuninstall_cmds_CXX \
12363     old_archive_from_expsyms_cmds_CXX \
12364     allow_undefined_flag_CXX \
12365     no_undefined_flag_CXX \
12366     export_symbols_cmds_CXX \
12367     hardcode_libdir_flag_spec_CXX \
12368     hardcode_libdir_flag_spec_ld_CXX \
12369     hardcode_libdir_separator_CXX \
12370     hardcode_automatic_CXX \
12371     module_cmds_CXX \
12372     module_expsym_cmds_CXX \
12373     lt_cv_prog_compiler_c_o_CXX \
12374     exclude_expsyms_CXX \
12375     include_expsyms_CXX; do
12376
12377     case $var in
12378     old_archive_cmds_CXX | \
12379     old_archive_from_new_cmds_CXX | \
12380     archive_cmds_CXX | \
12381     archive_expsym_cmds_CXX | \
12382     module_cmds_CXX | \
12383     module_expsym_cmds_CXX | \
12384     old_archive_from_expsyms_cmds_CXX | \
12385     export_symbols_cmds_CXX | \
12386     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12387     postinstall_cmds | postuninstall_cmds | \
12388     old_postinstall_cmds | old_postuninstall_cmds | \
12389     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12390       # Double-quote double-evaled strings.
12391       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12392       ;;
12393     *)
12394       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12395       ;;
12396     esac
12397   done
12398
12399   case $lt_echo in
12400   *'\$0 --fallback-echo"')
12401     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12402     ;;
12403   esac
12404
12405 cfgfile="$ofile"
12406
12407   cat <<__EOF__ >> "$cfgfile"
12408 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12409
12410 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12411
12412 # Shell to use when invoking shell scripts.
12413 SHELL=$lt_SHELL
12414
12415 # Whether or not to build shared libraries.
12416 build_libtool_libs=$enable_shared
12417
12418 # Whether or not to build static libraries.
12419 build_old_libs=$enable_static
12420
12421 # Whether or not to add -lc for building shared libraries.
12422 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12423
12424 # Whether or not to disallow shared libs when runtime libs are static
12425 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12426
12427 # Whether or not to optimize for fast installation.
12428 fast_install=$enable_fast_install
12429
12430 # The host system.
12431 host_alias=$host_alias
12432 host=$host
12433 host_os=$host_os
12434
12435 # The build system.
12436 build_alias=$build_alias
12437 build=$build
12438 build_os=$build_os
12439
12440 # An echo program that does not interpret backslashes.
12441 echo=$lt_echo
12442
12443 # The archiver.
12444 AR=$lt_AR
12445 AR_FLAGS=$lt_AR_FLAGS
12446
12447 # A C compiler.
12448 LTCC=$lt_LTCC
12449
12450 # A language-specific compiler.
12451 CC=$lt_compiler_CXX
12452
12453 # Is the compiler the GNU C compiler?
12454 with_gcc=$GCC_CXX
12455
12456 # An ERE matcher.
12457 EGREP=$lt_EGREP
12458
12459 # The linker used to build libraries.
12460 LD=$lt_LD_CXX
12461
12462 # Whether we need hard or soft links.
12463 LN_S=$lt_LN_S
12464
12465 # A BSD-compatible nm program.
12466 NM=$lt_NM
12467
12468 # A symbol stripping program
12469 STRIP=$lt_STRIP
12470
12471 # Used to examine libraries when file_magic_cmd begins "file"
12472 MAGIC_CMD=$MAGIC_CMD
12473
12474 # Used on cygwin: DLL creation program.
12475 DLLTOOL="$DLLTOOL"
12476
12477 # Used on cygwin: object dumper.
12478 OBJDUMP="$OBJDUMP"
12479
12480 # Used on cygwin: assembler.
12481 AS="$AS"
12482
12483 # The name of the directory that contains temporary libtool files.
12484 objdir=$objdir
12485
12486 # How to create reloadable object files.
12487 reload_flag=$lt_reload_flag
12488 reload_cmds=$lt_reload_cmds
12489
12490 # How to pass a linker flag through the compiler.
12491 wl=$lt_lt_prog_compiler_wl_CXX
12492
12493 # Object file suffix (normally "o").
12494 objext="$ac_objext"
12495
12496 # Old archive suffix (normally "a").
12497 libext="$libext"
12498
12499 # Shared library suffix (normally ".so").
12500 shrext_cmds='$shrext_cmds'
12501
12502 # Executable file suffix (normally "").
12503 exeext="$exeext"
12504
12505 # Additional compiler flags for building library objects.
12506 pic_flag=$lt_lt_prog_compiler_pic_CXX
12507 pic_mode=$pic_mode
12508
12509 # What is the maximum length of a command?
12510 max_cmd_len=$lt_cv_sys_max_cmd_len
12511
12512 # Does compiler simultaneously support -c and -o options?
12513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12514
12515 # Must we lock files when doing compilation?
12516 need_locks=$lt_need_locks
12517
12518 # Do we need the lib prefix for modules?
12519 need_lib_prefix=$need_lib_prefix
12520
12521 # Do we need a version for libraries?
12522 need_version=$need_version
12523
12524 # Whether dlopen is supported.
12525 dlopen_support=$enable_dlopen
12526
12527 # Whether dlopen of programs is supported.
12528 dlopen_self=$enable_dlopen_self
12529
12530 # Whether dlopen of statically linked programs is supported.
12531 dlopen_self_static=$enable_dlopen_self_static
12532
12533 # Compiler flag to prevent dynamic linking.
12534 link_static_flag=$lt_lt_prog_compiler_static_CXX
12535
12536 # Compiler flag to turn off builtin functions.
12537 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12538
12539 # Compiler flag to allow reflexive dlopens.
12540 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12541
12542 # Compiler flag to generate shared objects directly from archives.
12543 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12544
12545 # Compiler flag to generate thread-safe objects.
12546 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12547
12548 # Library versioning type.
12549 version_type=$version_type
12550
12551 # Format of library name prefix.
12552 libname_spec=$lt_libname_spec
12553
12554 # List of archive names.  First name is the real one, the rest are links.
12555 # The last name is the one that the linker finds with -lNAME.
12556 library_names_spec=$lt_library_names_spec
12557
12558 # The coded name of the library, if different from the real name.
12559 soname_spec=$lt_soname_spec
12560
12561 # Commands used to build and install an old-style archive.
12562 RANLIB=$lt_RANLIB
12563 old_archive_cmds=$lt_old_archive_cmds_CXX
12564 old_postinstall_cmds=$lt_old_postinstall_cmds
12565 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12566
12567 # Create an old-style archive from a shared archive.
12568 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12569
12570 # Create a temporary old-style archive to link instead of a shared archive.
12571 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12572
12573 # Commands used to build and install a shared archive.
12574 archive_cmds=$lt_archive_cmds_CXX
12575 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12576 postinstall_cmds=$lt_postinstall_cmds
12577 postuninstall_cmds=$lt_postuninstall_cmds
12578
12579 # Commands used to build a loadable module (assumed same as above if empty)
12580 module_cmds=$lt_module_cmds_CXX
12581 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12582
12583 # Commands to strip libraries.
12584 old_striplib=$lt_old_striplib
12585 striplib=$lt_striplib
12586
12587 # Dependencies to place before the objects being linked to create a
12588 # shared library.
12589 predep_objects=$lt_predep_objects_CXX
12590
12591 # Dependencies to place after the objects being linked to create a
12592 # shared library.
12593 postdep_objects=$lt_postdep_objects_CXX
12594
12595 # Dependencies to place before the objects being linked to create a
12596 # shared library.
12597 predeps=$lt_predeps_CXX
12598
12599 # Dependencies to place after the objects being linked to create a
12600 # shared library.
12601 postdeps=$lt_postdeps_CXX
12602
12603 # The library search path used internally by the compiler when linking
12604 # a shared library.
12605 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12606
12607 # Method to check whether dependent libraries are shared objects.
12608 deplibs_check_method=$lt_deplibs_check_method
12609
12610 # Command to use when deplibs_check_method == file_magic.
12611 file_magic_cmd=$lt_file_magic_cmd
12612
12613 # Flag that allows shared libraries with undefined symbols to be built.
12614 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12615
12616 # Flag that forces no undefined symbols.
12617 no_undefined_flag=$lt_no_undefined_flag_CXX
12618
12619 # Commands used to finish a libtool library installation in a directory.
12620 finish_cmds=$lt_finish_cmds
12621
12622 # Same as above, but a single script fragment to be evaled but not shown.
12623 finish_eval=$lt_finish_eval
12624
12625 # Take the output of nm and produce a listing of raw symbols and C names.
12626 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12627
12628 # Transform the output of nm in a proper C declaration
12629 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12630
12631 # Transform the output of nm in a C name address pair
12632 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12633
12634 # This is the shared library runtime path variable.
12635 runpath_var=$runpath_var
12636
12637 # This is the shared library path variable.
12638 shlibpath_var=$shlibpath_var
12639
12640 # Is shlibpath searched before the hard-coded library search path?
12641 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12642
12643 # How to hardcode a shared library path into an executable.
12644 hardcode_action=$hardcode_action_CXX
12645
12646 # Whether we should hardcode library paths into libraries.
12647 hardcode_into_libs=$hardcode_into_libs
12648
12649 # Flag to hardcode \$libdir into a binary during linking.
12650 # This must work even if \$libdir does not exist.
12651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12652
12653 # If ld is used when linking, flag to hardcode \$libdir into
12654 # a binary during linking. This must work even if \$libdir does
12655 # not exist.
12656 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12657
12658 # Whether we need a single -rpath flag with a separated argument.
12659 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12660
12661 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12662 # resulting binary.
12663 hardcode_direct=$hardcode_direct_CXX
12664
12665 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12666 # resulting binary.
12667 hardcode_minus_L=$hardcode_minus_L_CXX
12668
12669 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12670 # the resulting binary.
12671 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12672
12673 # Set to yes if building a shared library automatically hardcodes DIR into the library
12674 # and all subsequent libraries and executables linked against it.
12675 hardcode_automatic=$hardcode_automatic_CXX
12676
12677 # Variables whose values should be saved in libtool wrapper scripts and
12678 # restored at relink time.
12679 variables_saved_for_relink="$variables_saved_for_relink"
12680
12681 # Whether libtool must link a program against all its dependency libraries.
12682 link_all_deplibs=$link_all_deplibs_CXX
12683
12684 # Compile-time system search path for libraries
12685 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12686
12687 # Run-time system search path for libraries
12688 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12689
12690 # Fix the shell variable \$srcfile for the compiler.
12691 fix_srcfile_path="$fix_srcfile_path_CXX"
12692
12693 # Set to yes if exported symbols are required.
12694 always_export_symbols=$always_export_symbols_CXX
12695
12696 # The commands to list exported symbols.
12697 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12698
12699 # The commands to extract the exported symbol list from a shared archive.
12700 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12701
12702 # Symbols that should not be listed in the preloaded symbols.
12703 exclude_expsyms=$lt_exclude_expsyms_CXX
12704
12705 # Symbols that must always be exported.
12706 include_expsyms=$lt_include_expsyms_CXX
12707
12708 # ### END LIBTOOL TAG CONFIG: $tagname
12709
12710 __EOF__
12711
12712
12713 else
12714   # If there is no Makefile yet, we rely on a make rule to execute
12715   # `config.status --recheck' to rerun these tests and create the
12716   # libtool script then.
12717   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12718   if test -f "$ltmain_in"; then
12719     test -f Makefile && make "$ltmain"
12720   fi
12721 fi
12722
12723
12724 ac_ext=c
12725 ac_cpp='$CPP $CPPFLAGS'
12726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12729
12730 CC=$lt_save_CC
12731 LDCXX=$LD
12732 LD=$lt_save_LD
12733 GCC=$lt_save_GCC
12734 with_gnu_ldcxx=$with_gnu_ld
12735 with_gnu_ld=$lt_save_with_gnu_ld
12736 lt_cv_path_LDCXX=$lt_cv_path_LD
12737 lt_cv_path_LD=$lt_save_path_LD
12738 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12739 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12740
12741         else
12742           tagname=""
12743         fi
12744         ;;
12745
12746       F77)
12747         if test -n "$F77" && test "X$F77" != "Xno"; then
12748
12749 ac_ext=f
12750 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12751 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12752 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12753
12754
12755 archive_cmds_need_lc_F77=no
12756 allow_undefined_flag_F77=
12757 always_export_symbols_F77=no
12758 archive_expsym_cmds_F77=
12759 export_dynamic_flag_spec_F77=
12760 hardcode_direct_F77=no
12761 hardcode_libdir_flag_spec_F77=
12762 hardcode_libdir_flag_spec_ld_F77=
12763 hardcode_libdir_separator_F77=
12764 hardcode_minus_L_F77=no
12765 hardcode_automatic_F77=no
12766 module_cmds_F77=
12767 module_expsym_cmds_F77=
12768 link_all_deplibs_F77=unknown
12769 old_archive_cmds_F77=$old_archive_cmds
12770 no_undefined_flag_F77=
12771 whole_archive_flag_spec_F77=
12772 enable_shared_with_static_runtimes_F77=no
12773
12774 # Source file extension for f77 test sources.
12775 ac_ext=f
12776
12777 # Object file extension for compiled f77 test sources.
12778 objext=o
12779 objext_F77=$objext
12780
12781 # Code to be used in simple compile tests
12782 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12783
12784 # Code to be used in simple link tests
12785 lt_simple_link_test_code="      program t\n      end\n"
12786
12787 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12788
12789 # If no C compiler was specified, use CC.
12790 LTCC=${LTCC-"$CC"}
12791
12792 # Allow CC to be a program name with arguments.
12793 compiler=$CC
12794
12795
12796 # save warnings/boilerplate of simple test code
12797 ac_outfile=conftest.$ac_objext
12798 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12799 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12800 _lt_compiler_boilerplate=`cat conftest.err`
12801 $rm conftest*
12802
12803 ac_outfile=conftest.$ac_objext
12804 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12805 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12806 _lt_linker_boilerplate=`cat conftest.err`
12807 $rm conftest*
12808
12809
12810 # Allow CC to be a program name with arguments.
12811 lt_save_CC="$CC"
12812 CC=${F77-"f77"}
12813 compiler=$CC
12814 compiler_F77=$CC
12815 for cc_temp in $compiler""; do
12816   case $cc_temp in
12817     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12818     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12819     \-*) ;;
12820     *) break;;
12821   esac
12822 done
12823 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12824
12825
12826 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12827 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12828 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12829 echo "${ECHO_T}$can_build_shared" >&6
12830
12831 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12832 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12833 test "$can_build_shared" = "no" && enable_shared=no
12834
12835 # On AIX, shared libraries and static libraries use the same namespace, and
12836 # are all built from PIC.
12837 case $host_os in
12838 aix3*)
12839   test "$enable_shared" = yes && enable_static=no
12840   if test -n "$RANLIB"; then
12841     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12842     postinstall_cmds='$RANLIB $lib'
12843   fi
12844   ;;
12845 aix4* | aix5*)
12846   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12847     test "$enable_shared" = yes && enable_static=no
12848   fi
12849   ;;
12850 esac
12851 echo "$as_me:$LINENO: result: $enable_shared" >&5
12852 echo "${ECHO_T}$enable_shared" >&6
12853
12854 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12855 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12856 # Make sure either enable_shared or enable_static is yes.
12857 test "$enable_shared" = yes || enable_static=yes
12858 echo "$as_me:$LINENO: result: $enable_static" >&5
12859 echo "${ECHO_T}$enable_static" >&6
12860
12861 test "$ld_shlibs_F77" = no && can_build_shared=no
12862
12863 GCC_F77="$G77"
12864 LD_F77="$LD"
12865
12866 lt_prog_compiler_wl_F77=
12867 lt_prog_compiler_pic_F77=
12868 lt_prog_compiler_static_F77=
12869
12870 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12871 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12872
12873   if test "$GCC" = yes; then
12874     lt_prog_compiler_wl_F77='-Wl,'
12875     lt_prog_compiler_static_F77='-static'
12876
12877     case $host_os in
12878       aix*)
12879       # All AIX code is PIC.
12880       if test "$host_cpu" = ia64; then
12881         # AIX 5 now supports IA64 processor
12882         lt_prog_compiler_static_F77='-Bstatic'
12883       fi
12884       ;;
12885
12886     amigaos*)
12887       # FIXME: we need at least 68020 code to build shared libraries, but
12888       # adding the `-m68020' flag to GCC prevents building anything better,
12889       # like `-m68040'.
12890       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12891       ;;
12892
12893     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12894       # PIC is the default for these OSes.
12895       ;;
12896
12897     mingw* | pw32* | os2*)
12898       # This hack is so that the source file can tell whether it is being
12899       # built for inclusion in a dll (and should export symbols for example).
12900       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12901       ;;
12902
12903     darwin* | rhapsody*)
12904       # PIC is the default on this platform
12905       # Common symbols not allowed in MH_DYLIB files
12906       lt_prog_compiler_pic_F77='-fno-common'
12907       ;;
12908
12909     msdosdjgpp*)
12910       # Just because we use GCC doesn't mean we suddenly get shared libraries
12911       # on systems that don't support them.
12912       lt_prog_compiler_can_build_shared_F77=no
12913       enable_shared=no
12914       ;;
12915
12916     sysv4*MP*)
12917       if test -d /usr/nec; then
12918         lt_prog_compiler_pic_F77=-Kconform_pic
12919       fi
12920       ;;
12921
12922     hpux*)
12923       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12924       # not for PA HP-UX.
12925       case $host_cpu in
12926       hppa*64*|ia64*)
12927         # +Z the default
12928         ;;
12929       *)
12930         lt_prog_compiler_pic_F77='-fPIC'
12931         ;;
12932       esac
12933       ;;
12934
12935     *)
12936       lt_prog_compiler_pic_F77='-fPIC'
12937       ;;
12938     esac
12939   else
12940     # PORTME Check for flag to pass linker flags through the system compiler.
12941     case $host_os in
12942     aix*)
12943       lt_prog_compiler_wl_F77='-Wl,'
12944       if test "$host_cpu" = ia64; then
12945         # AIX 5 now supports IA64 processor
12946         lt_prog_compiler_static_F77='-Bstatic'
12947       else
12948         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12949       fi
12950       ;;
12951       darwin*)
12952         # PIC is the default on this platform
12953         # Common symbols not allowed in MH_DYLIB files
12954        case $cc_basename in
12955          xlc*)
12956          lt_prog_compiler_pic_F77='-qnocommon'
12957          lt_prog_compiler_wl_F77='-Wl,'
12958          ;;
12959        esac
12960        ;;
12961
12962     mingw* | pw32* | os2*)
12963       # This hack is so that the source file can tell whether it is being
12964       # built for inclusion in a dll (and should export symbols for example).
12965       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12966       ;;
12967
12968     hpux9* | hpux10* | hpux11*)
12969       lt_prog_compiler_wl_F77='-Wl,'
12970       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12971       # not for PA HP-UX.
12972       case $host_cpu in
12973       hppa*64*|ia64*)
12974         # +Z the default
12975         ;;
12976       *)
12977         lt_prog_compiler_pic_F77='+Z'
12978         ;;
12979       esac
12980       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12981       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12982       ;;
12983
12984     irix5* | irix6* | nonstopux*)
12985       lt_prog_compiler_wl_F77='-Wl,'
12986       # PIC (with -KPIC) is the default.
12987       lt_prog_compiler_static_F77='-non_shared'
12988       ;;
12989
12990     newsos6)
12991       lt_prog_compiler_pic_F77='-KPIC'
12992       lt_prog_compiler_static_F77='-Bstatic'
12993       ;;
12994
12995     linux*)
12996       case $cc_basename in
12997       icc* | ecc*)
12998         lt_prog_compiler_wl_F77='-Wl,'
12999         lt_prog_compiler_pic_F77='-KPIC'
13000         lt_prog_compiler_static_F77='-static'
13001         ;;
13002       pgcc* | pgf77* | pgf90* | pgf95*)
13003         # Portland Group compilers (*not* the Pentium gcc compiler,
13004         # which looks to be a dead project)
13005         lt_prog_compiler_wl_F77='-Wl,'
13006         lt_prog_compiler_pic_F77='-fpic'
13007         lt_prog_compiler_static_F77='-Bstatic'
13008         ;;
13009       ccc*)
13010         lt_prog_compiler_wl_F77='-Wl,'
13011         # All Alpha code is PIC.
13012         lt_prog_compiler_static_F77='-non_shared'
13013         ;;
13014       esac
13015       ;;
13016
13017     osf3* | osf4* | osf5*)
13018       lt_prog_compiler_wl_F77='-Wl,'
13019       # All OSF/1 code is PIC.
13020       lt_prog_compiler_static_F77='-non_shared'
13021       ;;
13022
13023     sco3.2v5*)
13024       lt_prog_compiler_pic_F77='-Kpic'
13025       lt_prog_compiler_static_F77='-dn'
13026       ;;
13027
13028     solaris*)
13029       lt_prog_compiler_pic_F77='-KPIC'
13030       lt_prog_compiler_static_F77='-Bstatic'
13031       case $cc_basename in
13032       f77* | f90* | f95*)
13033         lt_prog_compiler_wl_F77='-Qoption ld ';;
13034       *)
13035         lt_prog_compiler_wl_F77='-Wl,';;
13036       esac
13037       ;;
13038
13039     sunos4*)
13040       lt_prog_compiler_wl_F77='-Qoption ld '
13041       lt_prog_compiler_pic_F77='-PIC'
13042       lt_prog_compiler_static_F77='-Bstatic'
13043       ;;
13044
13045     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13046       lt_prog_compiler_wl_F77='-Wl,'
13047       lt_prog_compiler_pic_F77='-KPIC'
13048       lt_prog_compiler_static_F77='-Bstatic'
13049       ;;
13050
13051     sysv4*MP*)
13052       if test -d /usr/nec ;then
13053         lt_prog_compiler_pic_F77='-Kconform_pic'
13054         lt_prog_compiler_static_F77='-Bstatic'
13055       fi
13056       ;;
13057
13058     unicos*)
13059       lt_prog_compiler_wl_F77='-Wl,'
13060       lt_prog_compiler_can_build_shared_F77=no
13061       ;;
13062
13063     uts4*)
13064       lt_prog_compiler_pic_F77='-pic'
13065       lt_prog_compiler_static_F77='-Bstatic'
13066       ;;
13067
13068     *)
13069       lt_prog_compiler_can_build_shared_F77=no
13070       ;;
13071     esac
13072   fi
13073
13074 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13075 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13076
13077 #
13078 # Check to make sure the PIC flag actually works.
13079 #
13080 if test -n "$lt_prog_compiler_pic_F77"; then
13081
13082 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13083 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13084 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13085   echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087   lt_prog_compiler_pic_works_F77=no
13088   ac_outfile=conftest.$ac_objext
13089    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13090    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13091    # Insert the option either (1) after the last *FLAGS variable, or
13092    # (2) before a word containing "conftest.", or (3) at the end.
13093    # Note that $ac_compile itself does not contain backslashes and begins
13094    # with a dollar sign (not a hyphen), so the echo should work correctly.
13095    # The option is referenced via a variable to avoid confusing sed.
13096    lt_compile=`echo "$ac_compile" | $SED \
13097    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13098    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13099    -e 's:$: $lt_compiler_flag:'`
13100    (eval echo "\"\$as_me:13100: $lt_compile\"" >&5)
13101    (eval "$lt_compile" 2>conftest.err)
13102    ac_status=$?
13103    cat conftest.err >&5
13104    echo "$as_me:13104: \$? = $ac_status" >&5
13105    if (exit $ac_status) && test -s "$ac_outfile"; then
13106      # The compiler can only warn and ignore the option if not recognized
13107      # So say no if there are warnings other than the usual output.
13108      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13109      $SED '/^$/d' conftest.err >conftest.er2
13110      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13111        lt_prog_compiler_pic_works_F77=yes
13112      fi
13113    fi
13114    $rm conftest*
13115
13116 fi
13117 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13118 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13119
13120 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13121     case $lt_prog_compiler_pic_F77 in
13122      "" | " "*) ;;
13123      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13124      esac
13125 else
13126     lt_prog_compiler_pic_F77=
13127      lt_prog_compiler_can_build_shared_F77=no
13128 fi
13129
13130 fi
13131 case $host_os in
13132   # For platforms which do not support PIC, -DPIC is meaningless:
13133   *djgpp*)
13134     lt_prog_compiler_pic_F77=
13135     ;;
13136   *)
13137     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13138     ;;
13139 esac
13140
13141 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13142 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13143 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13144   echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146   lt_cv_prog_compiler_c_o_F77=no
13147    $rm -r conftest 2>/dev/null
13148    mkdir conftest
13149    cd conftest
13150    mkdir out
13151    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13152
13153    lt_compiler_flag="-o out/conftest2.$ac_objext"
13154    # Insert the option either (1) after the last *FLAGS variable, or
13155    # (2) before a word containing "conftest.", or (3) at the end.
13156    # Note that $ac_compile itself does not contain backslashes and begins
13157    # with a dollar sign (not a hyphen), so the echo should work correctly.
13158    lt_compile=`echo "$ac_compile" | $SED \
13159    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13160    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13161    -e 's:$: $lt_compiler_flag:'`
13162    (eval echo "\"\$as_me:13162: $lt_compile\"" >&5)
13163    (eval "$lt_compile" 2>out/conftest.err)
13164    ac_status=$?
13165    cat out/conftest.err >&5
13166    echo "$as_me:13166: \$? = $ac_status" >&5
13167    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13168    then
13169      # The compiler can only warn and ignore the option if not recognized
13170      # So say no if there are warnings
13171      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13172      $SED '/^$/d' out/conftest.err >out/conftest.er2
13173      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13174        lt_cv_prog_compiler_c_o_F77=yes
13175      fi
13176    fi
13177    chmod u+w . 2>&5
13178    $rm conftest*
13179    # SGI C++ compiler will create directory out/ii_files/ for
13180    # template instantiation
13181    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13182    $rm out/* && rmdir out
13183    cd ..
13184    rmdir conftest
13185    $rm conftest*
13186
13187 fi
13188 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13189 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13190
13191
13192 hard_links="nottested"
13193 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13194   # do not overwrite the value of need_locks provided by the user
13195   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13196 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13197   hard_links=yes
13198   $rm conftest*
13199   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13200   touch conftest.a
13201   ln conftest.a conftest.b 2>&5 || hard_links=no
13202   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13203   echo "$as_me:$LINENO: result: $hard_links" >&5
13204 echo "${ECHO_T}$hard_links" >&6
13205   if test "$hard_links" = no; then
13206     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13207 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13208     need_locks=warn
13209   fi
13210 else
13211   need_locks=no
13212 fi
13213
13214 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13215 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13216
13217   runpath_var=
13218   allow_undefined_flag_F77=
13219   enable_shared_with_static_runtimes_F77=no
13220   archive_cmds_F77=
13221   archive_expsym_cmds_F77=
13222   old_archive_From_new_cmds_F77=
13223   old_archive_from_expsyms_cmds_F77=
13224   export_dynamic_flag_spec_F77=
13225   whole_archive_flag_spec_F77=
13226   thread_safe_flag_spec_F77=
13227   hardcode_libdir_flag_spec_F77=
13228   hardcode_libdir_flag_spec_ld_F77=
13229   hardcode_libdir_separator_F77=
13230   hardcode_direct_F77=no
13231   hardcode_minus_L_F77=no
13232   hardcode_shlibpath_var_F77=unsupported
13233   link_all_deplibs_F77=unknown
13234   hardcode_automatic_F77=no
13235   module_cmds_F77=
13236   module_expsym_cmds_F77=
13237   always_export_symbols_F77=no
13238   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13239   # include_expsyms should be a list of space-separated symbols to be *always*
13240   # included in the symbol list
13241   include_expsyms_F77=
13242   # exclude_expsyms can be an extended regexp of symbols to exclude
13243   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13244   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13245   # as well as any symbol that contains `d'.
13246   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13247   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13248   # platforms (ab)use it in PIC code, but their linkers get confused if
13249   # the symbol is explicitly referenced.  Since portable code cannot
13250   # rely on this symbol name, it's probably fine to never include it in
13251   # preloaded symbol tables.
13252   extract_expsyms_cmds=
13253   # Just being paranoid about ensuring that cc_basename is set.
13254   for cc_temp in $compiler""; do
13255   case $cc_temp in
13256     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13257     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13258     \-*) ;;
13259     *) break;;
13260   esac
13261 done
13262 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13263
13264   case $host_os in
13265   cygwin* | mingw* | pw32*)
13266     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13267     # When not using gcc, we currently assume that we are using
13268     # Microsoft Visual C++.
13269     if test "$GCC" != yes; then
13270       with_gnu_ld=no
13271     fi
13272     ;;
13273   openbsd*)
13274     with_gnu_ld=no
13275     ;;
13276   esac
13277
13278   ld_shlibs_F77=yes
13279   if test "$with_gnu_ld" = yes; then
13280     # If archive_cmds runs LD, not CC, wlarc should be empty
13281     wlarc='${wl}'
13282
13283     # Set some defaults for GNU ld with shared library support. These
13284     # are reset later if shared libraries are not supported. Putting them
13285     # here allows them to be overridden if necessary.
13286     runpath_var=LD_RUN_PATH
13287     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13288     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13289     # ancient GNU ld didn't support --whole-archive et. al.
13290     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13291         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13292       else
13293         whole_archive_flag_spec_F77=
13294     fi
13295     supports_anon_versioning=no
13296     case `$LD -v 2>/dev/null` in
13297       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13298       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13299       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13300       *\ 2.11.*) ;; # other 2.11 versions
13301       *) supports_anon_versioning=yes ;;
13302     esac
13303
13304     # See if GNU ld supports shared libraries.
13305     case $host_os in
13306     aix3* | aix4* | aix5*)
13307       # On AIX/PPC, the GNU linker is very broken
13308       if test "$host_cpu" != ia64; then
13309         ld_shlibs_F77=no
13310         cat <<EOF 1>&2
13311
13312 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13313 *** to be unable to reliably create shared libraries on AIX.
13314 *** Therefore, libtool is disabling shared libraries support.  If you
13315 *** really care for shared libraries, you may want to modify your PATH
13316 *** so that a non-GNU linker is found, and then restart.
13317
13318 EOF
13319       fi
13320       ;;
13321
13322     amigaos*)
13323       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)'
13324       hardcode_libdir_flag_spec_F77='-L$libdir'
13325       hardcode_minus_L_F77=yes
13326
13327       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13328       # that the semantics of dynamic libraries on AmigaOS, at least up
13329       # to version 4, is to share data among multiple programs linked
13330       # with the same dynamic library.  Since this doesn't match the
13331       # behavior of shared libraries on other platforms, we can't use
13332       # them.
13333       ld_shlibs_F77=no
13334       ;;
13335
13336     beos*)
13337       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13338         allow_undefined_flag_F77=unsupported
13339         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13340         # support --undefined.  This deserves some investigation.  FIXME
13341         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342       else
13343         ld_shlibs_F77=no
13344       fi
13345       ;;
13346
13347     cygwin* | mingw* | pw32*)
13348       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13349       # as there is no search path for DLLs.
13350       hardcode_libdir_flag_spec_F77='-L$libdir'
13351       allow_undefined_flag_F77=unsupported
13352       always_export_symbols_F77=no
13353       enable_shared_with_static_runtimes_F77=yes
13354       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13355
13356       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13357         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13358         # If the export-symbols file already is a .def file (1st line
13359         # is EXPORTS), use it as is; otherwise, prepend...
13360         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13361           cp $export_symbols $output_objdir/$soname.def;
13362         else
13363           echo EXPORTS > $output_objdir/$soname.def;
13364           cat $export_symbols >> $output_objdir/$soname.def;
13365         fi~
13366         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13367       else
13368         ld_shlibs_F77=no
13369       fi
13370       ;;
13371
13372     linux*)
13373       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13374         tmp_addflag=
13375         case $cc_basename,$host_cpu in
13376         pgcc*)                          # Portland Group C compiler
13377           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13378           tmp_addflag=' $pic_flag'
13379           ;;
13380         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13381           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13382           tmp_addflag=' $pic_flag -Mnomain' ;;
13383         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13384           tmp_addflag=' -i_dynamic' ;;
13385         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13386           tmp_addflag=' -i_dynamic -nofor_main' ;;
13387         ifc* | ifort*)                  # Intel Fortran compiler
13388           tmp_addflag=' -nofor_main' ;;
13389         esac
13390         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13391
13392         if test $supports_anon_versioning = yes; then
13393           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13394   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13395   $echo "local: *; };" >> $output_objdir/$libname.ver~
13396           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13397         fi
13398       else
13399         ld_shlibs_F77=no
13400       fi
13401       ;;
13402
13403     netbsd*)
13404       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13405         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13406         wlarc=
13407       else
13408         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13409         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13410       fi
13411       ;;
13412
13413     solaris* | sysv5*)
13414       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13415         ld_shlibs_F77=no
13416         cat <<EOF 1>&2
13417
13418 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13419 *** create shared libraries on Solaris systems.  Therefore, libtool
13420 *** is disabling shared libraries support.  We urge you to upgrade GNU
13421 *** binutils to release 2.9.1 or newer.  Another option is to modify
13422 *** your PATH or compiler configuration so that the native linker is
13423 *** used, and then restart.
13424
13425 EOF
13426       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13427         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13428         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13429       else
13430         ld_shlibs_F77=no
13431       fi
13432       ;;
13433
13434     sunos4*)
13435       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13436       wlarc=
13437       hardcode_direct_F77=yes
13438       hardcode_shlibpath_var_F77=no
13439       ;;
13440
13441     *)
13442       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13443         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13445       else
13446         ld_shlibs_F77=no
13447       fi
13448       ;;
13449     esac
13450
13451     if test "$ld_shlibs_F77" = no; then
13452       runpath_var=
13453       hardcode_libdir_flag_spec_F77=
13454       export_dynamic_flag_spec_F77=
13455       whole_archive_flag_spec_F77=
13456     fi
13457   else
13458     # PORTME fill in a description of your system's linker (not GNU ld)
13459     case $host_os in
13460     aix3*)
13461       allow_undefined_flag_F77=unsupported
13462       always_export_symbols_F77=yes
13463       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'
13464       # Note: this linker hardcodes the directories in LIBPATH if there
13465       # are no directories specified by -L.
13466       hardcode_minus_L_F77=yes
13467       if test "$GCC" = yes && test -z "$link_static_flag"; then
13468         # Neither direct hardcoding nor static linking is supported with a
13469         # broken collect2.
13470         hardcode_direct_F77=unsupported
13471       fi
13472       ;;
13473
13474     aix4* | aix5*)
13475       if test "$host_cpu" = ia64; then
13476         # On IA64, the linker does run time linking by default, so we don't
13477         # have to do anything special.
13478         aix_use_runtimelinking=no
13479         exp_sym_flag='-Bexport'
13480         no_entry_flag=""
13481       else
13482         # If we're using GNU nm, then we don't want the "-C" option.
13483         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13484         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13485           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'
13486         else
13487           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'
13488         fi
13489         aix_use_runtimelinking=no
13490
13491         # Test if we are trying to use run time linking or normal
13492         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13493         # need to do runtime linking.
13494         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13495           for ld_flag in $LDFLAGS; do
13496           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13497             aix_use_runtimelinking=yes
13498             break
13499           fi
13500           done
13501         esac
13502
13503         exp_sym_flag='-bexport'
13504         no_entry_flag='-bnoentry'
13505       fi
13506
13507       # When large executables or shared objects are built, AIX ld can
13508       # have problems creating the table of contents.  If linking a library
13509       # or program results in "error TOC overflow" add -mminimal-toc to
13510       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13511       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13512
13513       archive_cmds_F77=''
13514       hardcode_direct_F77=yes
13515       hardcode_libdir_separator_F77=':'
13516       link_all_deplibs_F77=yes
13517
13518       if test "$GCC" = yes; then
13519         case $host_os in aix4.[012]|aix4.[012].*)
13520         # We only want to do this on AIX 4.2 and lower, the check
13521         # below for broken collect2 doesn't work under 4.3+
13522           collect2name=`${CC} -print-prog-name=collect2`
13523           if test -f "$collect2name" && \
13524            strings "$collect2name" | grep resolve_lib_name >/dev/null
13525           then
13526           # We have reworked collect2
13527           hardcode_direct_F77=yes
13528           else
13529           # We have old collect2
13530           hardcode_direct_F77=unsupported
13531           # It fails to find uninstalled libraries when the uninstalled
13532           # path is not listed in the libpath.  Setting hardcode_minus_L
13533           # to unsupported forces relinking
13534           hardcode_minus_L_F77=yes
13535           hardcode_libdir_flag_spec_F77='-L$libdir'
13536           hardcode_libdir_separator_F77=
13537           fi
13538         esac
13539         shared_flag='-shared'
13540         if test "$aix_use_runtimelinking" = yes; then
13541           shared_flag="$shared_flag "'${wl}-G'
13542         fi
13543       else
13544         # not using gcc
13545         if test "$host_cpu" = ia64; then
13546         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13547         # chokes on -Wl,-G. The following line is correct:
13548           shared_flag='-G'
13549         else
13550         if test "$aix_use_runtimelinking" = yes; then
13551             shared_flag='${wl}-G'
13552           else
13553             shared_flag='${wl}-bM:SRE'
13554         fi
13555         fi
13556       fi
13557
13558       # It seems that -bexpall does not export symbols beginning with
13559       # underscore (_), so it is better to generate a list of symbols to export.
13560       always_export_symbols_F77=yes
13561       if test "$aix_use_runtimelinking" = yes; then
13562         # Warning - without using the other runtime loading flags (-brtl),
13563         # -berok will link without error, but may produce a broken library.
13564         allow_undefined_flag_F77='-berok'
13565        # Determine the default libpath from the value encoded in an empty executable.
13566        cat >conftest.$ac_ext <<_ACEOF
13567       program main
13568
13569       end
13570 _ACEOF
13571 rm -f conftest.$ac_objext conftest$ac_exeext
13572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13573   (eval $ac_link) 2>conftest.er1
13574   ac_status=$?
13575   grep -v '^ *+' conftest.er1 >conftest.err
13576   rm -f conftest.er1
13577   cat conftest.err >&5
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); } &&
13580          { ac_try='test -z "$ac_f77_werror_flag"
13581                          || test ! -s conftest.err'
13582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583   (eval $ac_try) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; } &&
13587          { ac_try='test -s conftest$ac_exeext'
13588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589   (eval $ac_try) 2>&5
13590   ac_status=$?
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); }; }; then
13593
13594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13595 }'`
13596 # Check for a 64-bit object if we didn't find anything.
13597 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; }
13598 }'`; fi
13599 else
13600   echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13602
13603 fi
13604 rm -f conftest.err conftest.$ac_objext \
13605       conftest$ac_exeext conftest.$ac_ext
13606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13607
13608        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13609         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"
13610        else
13611         if test "$host_cpu" = ia64; then
13612           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13613           allow_undefined_flag_F77="-z nodefs"
13614           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"
13615         else
13616          # Determine the default libpath from the value encoded in an empty executable.
13617          cat >conftest.$ac_ext <<_ACEOF
13618       program main
13619
13620       end
13621 _ACEOF
13622 rm -f conftest.$ac_objext conftest$ac_exeext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13624   (eval $ac_link) 2>conftest.er1
13625   ac_status=$?
13626   grep -v '^ *+' conftest.er1 >conftest.err
13627   rm -f conftest.er1
13628   cat conftest.err >&5
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); } &&
13631          { ac_try='test -z "$ac_f77_werror_flag"
13632                          || test ! -s conftest.err'
13633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634   (eval $ac_try) 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }; } &&
13638          { ac_try='test -s conftest$ac_exeext'
13639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640   (eval $ac_try) 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); }; }; then
13644
13645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13646 }'`
13647 # Check for a 64-bit object if we didn't find anything.
13648 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; }
13649 }'`; fi
13650 else
13651   echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 fi
13655 rm -f conftest.err conftest.$ac_objext \
13656       conftest$ac_exeext conftest.$ac_ext
13657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13658
13659          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13660           # Warning - without using the other run time loading flags,
13661           # -berok will link without error, but may produce a broken library.
13662           no_undefined_flag_F77=' ${wl}-bernotok'
13663           allow_undefined_flag_F77=' ${wl}-berok'
13664           # -bexpall does not export symbols beginning with underscore (_)
13665           always_export_symbols_F77=yes
13666           # Exported symbols can be pulled into shared objects from archives
13667           whole_archive_flag_spec_F77=' '
13668           archive_cmds_need_lc_F77=yes
13669           # This is similar to how AIX traditionally builds its shared libraries.
13670           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'
13671         fi
13672       fi
13673       ;;
13674
13675     amigaos*)
13676       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)'
13677       hardcode_libdir_flag_spec_F77='-L$libdir'
13678       hardcode_minus_L_F77=yes
13679       # see comment about different semantics on the GNU ld section
13680       ld_shlibs_F77=no
13681       ;;
13682
13683     bsdi[45]*)
13684       export_dynamic_flag_spec_F77=-rdynamic
13685       ;;
13686
13687     cygwin* | mingw* | pw32*)
13688       # When not using gcc, we currently assume that we are using
13689       # Microsoft Visual C++.
13690       # hardcode_libdir_flag_spec is actually meaningless, as there is
13691       # no search path for DLLs.
13692       hardcode_libdir_flag_spec_F77=' '
13693       allow_undefined_flag_F77=unsupported
13694       # Tell ltmain to make .lib files, not .a files.
13695       libext=lib
13696       # Tell ltmain to make .dll files, not .so files.
13697       shrext_cmds=".dll"
13698       # FIXME: Setting linknames here is a bad hack.
13699       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13700       # The linker will automatically build a .lib file if we build a DLL.
13701       old_archive_From_new_cmds_F77='true'
13702       # FIXME: Should let the user specify the lib program.
13703       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13704       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13705       enable_shared_with_static_runtimes_F77=yes
13706       ;;
13707
13708     darwin* | rhapsody*)
13709       case $host_os in
13710         rhapsody* | darwin1.[012])
13711          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13712          ;;
13713        *) # Darwin 1.3 on
13714          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13715            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13716          else
13717            case ${MACOSX_DEPLOYMENT_TARGET} in
13718              10.[012])
13719                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13720                ;;
13721              10.*)
13722                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13723                ;;
13724            esac
13725          fi
13726          ;;
13727       esac
13728       archive_cmds_need_lc_F77=no
13729       hardcode_direct_F77=no
13730       hardcode_automatic_F77=yes
13731       hardcode_shlibpath_var_F77=unsupported
13732       whole_archive_flag_spec_F77=''
13733       link_all_deplibs_F77=yes
13734     if test "$GCC" = yes ; then
13735         output_verbose_link_cmd='echo'
13736         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13737       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13738       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13739       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}'
13740       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}'
13741     else
13742       case $cc_basename in
13743         xlc*)
13744          output_verbose_link_cmd='echo'
13745          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13746          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13747           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13748          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}'
13749           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}'
13750           ;;
13751        *)
13752          ld_shlibs_F77=no
13753           ;;
13754       esac
13755     fi
13756       ;;
13757
13758     dgux*)
13759       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13760       hardcode_libdir_flag_spec_F77='-L$libdir'
13761       hardcode_shlibpath_var_F77=no
13762       ;;
13763
13764     freebsd1*)
13765       ld_shlibs_F77=no
13766       ;;
13767
13768     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13769     # support.  Future versions do this automatically, but an explicit c++rt0.o
13770     # does not break anything, and helps significantly (at the cost of a little
13771     # extra space).
13772     freebsd2.2*)
13773       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13774       hardcode_libdir_flag_spec_F77='-R$libdir'
13775       hardcode_direct_F77=yes
13776       hardcode_shlibpath_var_F77=no
13777       ;;
13778
13779     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13780     freebsd2*)
13781       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13782       hardcode_direct_F77=yes
13783       hardcode_minus_L_F77=yes
13784       hardcode_shlibpath_var_F77=no
13785       ;;
13786
13787     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13788     freebsd* | kfreebsd*-gnu | dragonfly*)
13789       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13790       hardcode_libdir_flag_spec_F77='-R$libdir'
13791       hardcode_direct_F77=yes
13792       hardcode_shlibpath_var_F77=no
13793       ;;
13794
13795     hpux9*)
13796       if test "$GCC" = yes; then
13797         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'
13798       else
13799         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'
13800       fi
13801       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13802       hardcode_libdir_separator_F77=:
13803       hardcode_direct_F77=yes
13804
13805       # hardcode_minus_L: Not really in the search PATH,
13806       # but as the default location of the library.
13807       hardcode_minus_L_F77=yes
13808       export_dynamic_flag_spec_F77='${wl}-E'
13809       ;;
13810
13811     hpux10* | hpux11*)
13812       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13813         case $host_cpu in
13814         hppa*64*|ia64*)
13815           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13816           ;;
13817         *)
13818           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13819           ;;
13820         esac
13821       else
13822         case $host_cpu in
13823         hppa*64*|ia64*)
13824           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13825           ;;
13826         *)
13827           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13828           ;;
13829         esac
13830       fi
13831       if test "$with_gnu_ld" = no; then
13832         case $host_cpu in
13833         hppa*64*)
13834           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13835           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13836           hardcode_libdir_separator_F77=:
13837           hardcode_direct_F77=no
13838           hardcode_shlibpath_var_F77=no
13839           ;;
13840         ia64*)
13841           hardcode_libdir_flag_spec_F77='-L$libdir'
13842           hardcode_direct_F77=no
13843           hardcode_shlibpath_var_F77=no
13844
13845           # hardcode_minus_L: Not really in the search PATH,
13846           # but as the default location of the library.
13847           hardcode_minus_L_F77=yes
13848           ;;
13849         *)
13850           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13851           hardcode_libdir_separator_F77=:
13852           hardcode_direct_F77=yes
13853           export_dynamic_flag_spec_F77='${wl}-E'
13854
13855           # hardcode_minus_L: Not really in the search PATH,
13856           # but as the default location of the library.
13857           hardcode_minus_L_F77=yes
13858           ;;
13859         esac
13860       fi
13861       ;;
13862
13863     irix5* | irix6* | nonstopux*)
13864       if test "$GCC" = yes; then
13865         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'
13866       else
13867         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'
13868         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13869       fi
13870       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13871       hardcode_libdir_separator_F77=:
13872       link_all_deplibs_F77=yes
13873       ;;
13874
13875     netbsd*)
13876       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13877         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13878       else
13879         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13880       fi
13881       hardcode_libdir_flag_spec_F77='-R$libdir'
13882       hardcode_direct_F77=yes
13883       hardcode_shlibpath_var_F77=no
13884       ;;
13885
13886     newsos6)
13887       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13888       hardcode_direct_F77=yes
13889       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13890       hardcode_libdir_separator_F77=:
13891       hardcode_shlibpath_var_F77=no
13892       ;;
13893
13894     openbsd*)
13895       hardcode_direct_F77=yes
13896       hardcode_shlibpath_var_F77=no
13897       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13898         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13899         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13900         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13901         export_dynamic_flag_spec_F77='${wl}-E'
13902       else
13903        case $host_os in
13904          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13905            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13906            hardcode_libdir_flag_spec_F77='-R$libdir'
13907            ;;
13908          *)
13909            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13910            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13911            ;;
13912        esac
13913       fi
13914       ;;
13915
13916     os2*)
13917       hardcode_libdir_flag_spec_F77='-L$libdir'
13918       hardcode_minus_L_F77=yes
13919       allow_undefined_flag_F77=unsupported
13920       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'
13921       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13922       ;;
13923
13924     osf3*)
13925       if test "$GCC" = yes; then
13926         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13927         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'
13928       else
13929         allow_undefined_flag_F77=' -expect_unresolved \*'
13930         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'
13931       fi
13932       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13933       hardcode_libdir_separator_F77=:
13934       ;;
13935
13936     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13937       if test "$GCC" = yes; then
13938         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13939         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'
13940         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13941       else
13942         allow_undefined_flag_F77=' -expect_unresolved \*'
13943         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'
13944         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~
13945         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13946
13947         # Both c and cxx compiler support -rpath directly
13948         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13949       fi
13950       hardcode_libdir_separator_F77=:
13951       ;;
13952
13953     sco3.2v5*)
13954       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13955       hardcode_shlibpath_var_F77=no
13956       export_dynamic_flag_spec_F77='${wl}-Bexport'
13957       runpath_var=LD_RUN_PATH
13958       hardcode_runpath_var=yes
13959       ;;
13960
13961     solaris*)
13962       no_undefined_flag_F77=' -z text'
13963       if test "$GCC" = yes; then
13964         wlarc='${wl}'
13965         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13966         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13967           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13968       else
13969         wlarc=''
13970         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13972         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13973       fi
13974       hardcode_libdir_flag_spec_F77='-R$libdir'
13975       hardcode_shlibpath_var_F77=no
13976       case $host_os in
13977       solaris2.[0-5] | solaris2.[0-5].*) ;;
13978       *)
13979         # The compiler driver will combine linker options so we
13980         # cannot just pass the convience library names through
13981         # without $wl, iff we do not link with $LD.
13982         # Luckily, gcc supports the same syntax we need for Sun Studio.
13983         # Supported since Solaris 2.6 (maybe 2.5.1?)
13984         case $wlarc in
13985         '')
13986           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13987         *)
13988           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
13989         esac ;;
13990       esac
13991       link_all_deplibs_F77=yes
13992       ;;
13993
13994     sunos4*)
13995       if test "x$host_vendor" = xsequent; then
13996         # Use $CC to link under sequent, because it throws in some extra .o
13997         # files that make .init and .fini sections work.
13998         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13999       else
14000         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14001       fi
14002       hardcode_libdir_flag_spec_F77='-L$libdir'
14003       hardcode_direct_F77=yes
14004       hardcode_minus_L_F77=yes
14005       hardcode_shlibpath_var_F77=no
14006       ;;
14007
14008     sysv4)
14009       case $host_vendor in
14010         sni)
14011           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012           hardcode_direct_F77=yes # is this really true???
14013         ;;
14014         siemens)
14015           ## LD is ld it makes a PLAMLIB
14016           ## CC just makes a GrossModule.
14017           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14018           reload_cmds_F77='$CC -r -o $output$reload_objs'
14019           hardcode_direct_F77=no
14020         ;;
14021         motorola)
14022           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14023           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14024         ;;
14025       esac
14026       runpath_var='LD_RUN_PATH'
14027       hardcode_shlibpath_var_F77=no
14028       ;;
14029
14030     sysv4.3*)
14031       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14032       hardcode_shlibpath_var_F77=no
14033       export_dynamic_flag_spec_F77='-Bexport'
14034       ;;
14035
14036     sysv4*MP*)
14037       if test -d /usr/nec; then
14038         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14039         hardcode_shlibpath_var_F77=no
14040         runpath_var=LD_RUN_PATH
14041         hardcode_runpath_var=yes
14042         ld_shlibs_F77=yes
14043       fi
14044       ;;
14045
14046     sysv4.2uw2*)
14047       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14048       hardcode_direct_F77=yes
14049       hardcode_minus_L_F77=no
14050       hardcode_shlibpath_var_F77=no
14051       hardcode_runpath_var=yes
14052       runpath_var=LD_RUN_PATH
14053       ;;
14054
14055    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14056       no_undefined_flag_F77='${wl}-z ${wl}text'
14057       if test "$GCC" = yes; then
14058         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14059       else
14060         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14061       fi
14062       runpath_var='LD_RUN_PATH'
14063       hardcode_shlibpath_var_F77=no
14064       ;;
14065
14066     sysv5*)
14067       no_undefined_flag_F77=' -z text'
14068       # $CC -shared without GNU ld will not create a library from C++
14069       # object files and a static libstdc++, better avoid it by now
14070       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14071       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14072                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14073       hardcode_libdir_flag_spec_F77=
14074       hardcode_shlibpath_var_F77=no
14075       runpath_var='LD_RUN_PATH'
14076       ;;
14077
14078     uts4*)
14079       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14080       hardcode_libdir_flag_spec_F77='-L$libdir'
14081       hardcode_shlibpath_var_F77=no
14082       ;;
14083
14084     *)
14085       ld_shlibs_F77=no
14086       ;;
14087     esac
14088   fi
14089
14090 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14091 echo "${ECHO_T}$ld_shlibs_F77" >&6
14092 test "$ld_shlibs_F77" = no && can_build_shared=no
14093
14094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14095 if test "$GCC" = yes; then
14096   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14097 fi
14098
14099 #
14100 # Do we need to explicitly link libc?
14101 #
14102 case "x$archive_cmds_need_lc_F77" in
14103 x|xyes)
14104   # Assume -lc should be added
14105   archive_cmds_need_lc_F77=yes
14106
14107   if test "$enable_shared" = yes && test "$GCC" = yes; then
14108     case $archive_cmds_F77 in
14109     *'~'*)
14110       # FIXME: we may have to deal with multi-command sequences.
14111       ;;
14112     '$CC '*)
14113       # Test whether the compiler implicitly links with -lc since on some
14114       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14115       # to ld, don't add -lc before -lgcc.
14116       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14117 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14118       $rm conftest*
14119       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14120
14121       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122   (eval $ac_compile) 2>&5
14123   ac_status=$?
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); } 2>conftest.err; then
14126         soname=conftest
14127         lib=conftest
14128         libobjs=conftest.$ac_objext
14129         deplibs=
14130         wl=$lt_prog_compiler_wl_F77
14131         compiler_flags=-v
14132         linker_flags=-v
14133         verstring=
14134         output_objdir=.
14135         libname=conftest
14136         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14137         allow_undefined_flag_F77=
14138         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14139   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14140   ac_status=$?
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); }
14143         then
14144           archive_cmds_need_lc_F77=no
14145         else
14146           archive_cmds_need_lc_F77=yes
14147         fi
14148         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14149       else
14150         cat conftest.err 1>&5
14151       fi
14152       $rm conftest*
14153       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14154 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14155       ;;
14156     esac
14157   fi
14158   ;;
14159 esac
14160
14161 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14162 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14163 library_names_spec=
14164 libname_spec='lib$name'
14165 soname_spec=
14166 shrext_cmds=".so"
14167 postinstall_cmds=
14168 postuninstall_cmds=
14169 finish_cmds=
14170 finish_eval=
14171 shlibpath_var=
14172 shlibpath_overrides_runpath=unknown
14173 version_type=none
14174 dynamic_linker="$host_os ld.so"
14175 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14176 if test "$GCC" = yes; then
14177   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14178   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14179     # if the path contains ";" then we assume it to be the separator
14180     # otherwise default to the standard path separator (i.e. ":") - it is
14181     # assumed that no part of a normal pathname contains ";" but that should
14182     # okay in the real world where ";" in dirpaths is itself problematic.
14183     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14184   else
14185     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14186   fi
14187 else
14188   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14189 fi
14190 need_lib_prefix=unknown
14191 hardcode_into_libs=no
14192
14193 # when you set need_version to no, make sure it does not cause -set_version
14194 # flags to be left without arguments
14195 need_version=unknown
14196
14197 case $host_os in
14198 aix3*)
14199   version_type=linux
14200   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14201   shlibpath_var=LIBPATH
14202
14203   # AIX 3 has no versioning support, so we append a major version to the name.
14204   soname_spec='${libname}${release}${shared_ext}$major'
14205   ;;
14206
14207 aix4* | aix5*)
14208   version_type=linux
14209   need_lib_prefix=no
14210   need_version=no
14211   hardcode_into_libs=yes
14212   if test "$host_cpu" = ia64; then
14213     # AIX 5 supports IA64
14214     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14215     shlibpath_var=LD_LIBRARY_PATH
14216   else
14217     # With GCC up to 2.95.x, collect2 would create an import file
14218     # for dependence libraries.  The import file would start with
14219     # the line `#! .'.  This would cause the generated library to
14220     # depend on `.', always an invalid library.  This was fixed in
14221     # development snapshots of GCC prior to 3.0.
14222     case $host_os in
14223       aix4 | aix4.[01] | aix4.[01].*)
14224       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14225            echo ' yes '
14226            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14227         :
14228       else
14229         can_build_shared=no
14230       fi
14231       ;;
14232     esac
14233     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14234     # soname into executable. Probably we can add versioning support to
14235     # collect2, so additional links can be useful in future.
14236     if test "$aix_use_runtimelinking" = yes; then
14237       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14238       # instead of lib<name>.a to let people know that these are not
14239       # typical AIX shared libraries.
14240       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14241     else
14242       # We preserve .a as extension for shared libraries through AIX4.2
14243       # and later when we are not doing run time linking.
14244       library_names_spec='${libname}${release}.a $libname.a'
14245       soname_spec='${libname}${release}${shared_ext}$major'
14246     fi
14247     shlibpath_var=LIBPATH
14248   fi
14249   ;;
14250
14251 amigaos*)
14252   library_names_spec='$libname.ixlibrary $libname.a'
14253   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14254   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'
14255   ;;
14256
14257 beos*)
14258   library_names_spec='${libname}${shared_ext}'
14259   dynamic_linker="$host_os ld.so"
14260   shlibpath_var=LIBRARY_PATH
14261   ;;
14262
14263 bsdi[45]*)
14264   version_type=linux
14265   need_version=no
14266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14267   soname_spec='${libname}${release}${shared_ext}$major'
14268   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14269   shlibpath_var=LD_LIBRARY_PATH
14270   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14271   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14272   # the default ld.so.conf also contains /usr/contrib/lib and
14273   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14274   # libtool to hard-code these into programs
14275   ;;
14276
14277 cygwin* | mingw* | pw32*)
14278   version_type=windows
14279   shrext_cmds=".dll"
14280   need_version=no
14281   need_lib_prefix=no
14282
14283   case $GCC,$host_os in
14284   yes,cygwin* | yes,mingw* | yes,pw32*)
14285     library_names_spec='$libname.dll.a'
14286     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14287     postinstall_cmds='base_file=`basename \${file}`~
14288       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14289       dldir=$destdir/`dirname \$dlpath`~
14290       test -d \$dldir || mkdir -p \$dldir~
14291       $install_prog $dir/$dlname \$dldir/$dlname~
14292       chmod a+x \$dldir/$dlname'
14293     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14294       dlpath=$dir/\$dldll~
14295        $rm \$dlpath'
14296     shlibpath_overrides_runpath=yes
14297
14298     case $host_os in
14299     cygwin*)
14300       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14301       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14302       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14303       ;;
14304     mingw*)
14305       # MinGW DLLs use traditional 'lib' prefix
14306       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14307       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14308       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14309         # It is most probably a Windows format PATH printed by
14310         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14311         # path with ; separators, and with drive letters. We can handle the
14312         # drive letters (cygwin fileutils understands them), so leave them,
14313         # especially as we might pass files found there to a mingw objdump,
14314         # which wouldn't understand a cygwinified path. Ahh.
14315         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14316       else
14317         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14318       fi
14319       ;;
14320     pw32*)
14321       # pw32 DLLs use 'pw' prefix rather than 'lib'
14322       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14323       ;;
14324     esac
14325     ;;
14326
14327   *)
14328     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14329     ;;
14330   esac
14331   dynamic_linker='Win32 ld.exe'
14332   # FIXME: first we should search . and the directory the executable is in
14333   shlibpath_var=PATH
14334   ;;
14335
14336 darwin* | rhapsody*)
14337   dynamic_linker="$host_os dyld"
14338   version_type=darwin
14339   need_lib_prefix=no
14340   need_version=no
14341   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14342   soname_spec='${libname}${release}${major}$shared_ext'
14343   shlibpath_overrides_runpath=yes
14344   shlibpath_var=DYLD_LIBRARY_PATH
14345   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14346   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14347   if test "$GCC" = yes; then
14348     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"`
14349   else
14350     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14351   fi
14352   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14353   ;;
14354
14355 dgux*)
14356   version_type=linux
14357   need_lib_prefix=no
14358   need_version=no
14359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14360   soname_spec='${libname}${release}${shared_ext}$major'
14361   shlibpath_var=LD_LIBRARY_PATH
14362   ;;
14363
14364 freebsd1*)
14365   dynamic_linker=no
14366   ;;
14367
14368 kfreebsd*-gnu)
14369   version_type=linux
14370   need_lib_prefix=no
14371   need_version=no
14372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14373   soname_spec='${libname}${release}${shared_ext}$major'
14374   shlibpath_var=LD_LIBRARY_PATH
14375   shlibpath_overrides_runpath=no
14376   hardcode_into_libs=yes
14377   dynamic_linker='GNU ld.so'
14378   ;;
14379
14380 freebsd* | dragonfly*)
14381   # DragonFly does not have aout.  When/if they implement a new
14382   # versioning mechanism, adjust this.
14383   if test -x /usr/bin/objformat; then
14384     objformat=`/usr/bin/objformat`
14385   else
14386     case $host_os in
14387     freebsd[123]*) objformat=aout ;;
14388     *) objformat=elf ;;
14389     esac
14390   fi
14391   version_type=freebsd-$objformat
14392   case $version_type in
14393     freebsd-elf*)
14394       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14395       need_version=no
14396       need_lib_prefix=no
14397       ;;
14398     freebsd-*)
14399       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14400       need_version=yes
14401       ;;
14402   esac
14403   shlibpath_var=LD_LIBRARY_PATH
14404   case $host_os in
14405   freebsd2*)
14406     shlibpath_overrides_runpath=yes
14407     ;;
14408   freebsd3.[01]* | freebsdelf3.[01]*)
14409     shlibpath_overrides_runpath=yes
14410     hardcode_into_libs=yes
14411     ;;
14412   *) # from 3.2 on
14413     shlibpath_overrides_runpath=no
14414     hardcode_into_libs=yes
14415     ;;
14416   esac
14417   ;;
14418
14419 gnu*)
14420   version_type=linux
14421   need_lib_prefix=no
14422   need_version=no
14423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14424   soname_spec='${libname}${release}${shared_ext}$major'
14425   shlibpath_var=LD_LIBRARY_PATH
14426   hardcode_into_libs=yes
14427   ;;
14428
14429 hpux9* | hpux10* | hpux11*)
14430   # Give a soname corresponding to the major version so that dld.sl refuses to
14431   # link against other versions.
14432   version_type=sunos
14433   need_lib_prefix=no
14434   need_version=no
14435   case $host_cpu in
14436   ia64*)
14437     shrext_cmds='.so'
14438     hardcode_into_libs=yes
14439     dynamic_linker="$host_os dld.so"
14440     shlibpath_var=LD_LIBRARY_PATH
14441     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14443     soname_spec='${libname}${release}${shared_ext}$major'
14444     if test "X$HPUX_IA64_MODE" = X32; then
14445       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14446     else
14447       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14448     fi
14449     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14450     ;;
14451    hppa*64*)
14452      shrext_cmds='.sl'
14453      hardcode_into_libs=yes
14454      dynamic_linker="$host_os dld.sl"
14455      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14456      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14457      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458      soname_spec='${libname}${release}${shared_ext}$major'
14459      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14460      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14461      ;;
14462    *)
14463     shrext_cmds='.sl'
14464     dynamic_linker="$host_os dld.sl"
14465     shlibpath_var=SHLIB_PATH
14466     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468     soname_spec='${libname}${release}${shared_ext}$major'
14469     ;;
14470   esac
14471   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14472   postinstall_cmds='chmod 555 $lib'
14473   ;;
14474
14475 irix5* | irix6* | nonstopux*)
14476   case $host_os in
14477     nonstopux*) version_type=nonstopux ;;
14478     *)
14479         if test "$lt_cv_prog_gnu_ld" = yes; then
14480                 version_type=linux
14481         else
14482                 version_type=irix
14483         fi ;;
14484   esac
14485   need_lib_prefix=no
14486   need_version=no
14487   soname_spec='${libname}${release}${shared_ext}$major'
14488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14489   case $host_os in
14490   irix5* | nonstopux*)
14491     libsuff= shlibsuff=
14492     ;;
14493   *)
14494     case $LD in # libtool.m4 will add one of these switches to LD
14495     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14496       libsuff= shlibsuff= libmagic=32-bit;;
14497     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14498       libsuff=32 shlibsuff=N32 libmagic=N32;;
14499     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14500       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14501     *) libsuff= shlibsuff= libmagic=never-match;;
14502     esac
14503     ;;
14504   esac
14505   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14506   shlibpath_overrides_runpath=no
14507   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14508   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14509   hardcode_into_libs=yes
14510   ;;
14511
14512 # No shared lib support for Linux oldld, aout, or coff.
14513 linux*oldld* | linux*aout* | linux*coff*)
14514   dynamic_linker=no
14515   ;;
14516
14517 # This must be Linux ELF.
14518 linux*)
14519   version_type=linux
14520   need_lib_prefix=no
14521   need_version=no
14522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14523   soname_spec='${libname}${release}${shared_ext}$major'
14524   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14525   shlibpath_var=LD_LIBRARY_PATH
14526   shlibpath_overrides_runpath=no
14527   # This implies no fast_install, which is unacceptable.
14528   # Some rework will be needed to allow for fast_install
14529   # before this can be enabled.
14530   hardcode_into_libs=yes
14531
14532   # Append ld.so.conf contents to the search path
14533   if test -f /etc/ld.so.conf; then
14534     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14535     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14536   fi
14537
14538   # We used to test for /lib/ld.so.1 and disable shared libraries on
14539   # powerpc, because MkLinux only supported shared libraries with the
14540   # GNU dynamic linker.  Since this was broken with cross compilers,
14541   # most powerpc-linux boxes support dynamic linking these days and
14542   # people can always --disable-shared, the test was removed, and we
14543   # assume the GNU/Linux dynamic linker is in use.
14544   dynamic_linker='GNU/Linux ld.so'
14545   ;;
14546
14547 knetbsd*-gnu)
14548   version_type=linux
14549   need_lib_prefix=no
14550   need_version=no
14551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14552   soname_spec='${libname}${release}${shared_ext}$major'
14553   shlibpath_var=LD_LIBRARY_PATH
14554   shlibpath_overrides_runpath=no
14555   hardcode_into_libs=yes
14556   dynamic_linker='GNU ld.so'
14557   ;;
14558
14559 netbsd*)
14560   version_type=sunos
14561   need_lib_prefix=no
14562   need_version=no
14563   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14565     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14566     dynamic_linker='NetBSD (a.out) ld.so'
14567   else
14568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14569     soname_spec='${libname}${release}${shared_ext}$major'
14570     dynamic_linker='NetBSD ld.elf_so'
14571   fi
14572   shlibpath_var=LD_LIBRARY_PATH
14573   shlibpath_overrides_runpath=yes
14574   hardcode_into_libs=yes
14575   ;;
14576
14577 newsos6)
14578   version_type=linux
14579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580   shlibpath_var=LD_LIBRARY_PATH
14581   shlibpath_overrides_runpath=yes
14582   ;;
14583
14584 nto-qnx*)
14585   version_type=linux
14586   need_lib_prefix=no
14587   need_version=no
14588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589   soname_spec='${libname}${release}${shared_ext}$major'
14590   shlibpath_var=LD_LIBRARY_PATH
14591   shlibpath_overrides_runpath=yes
14592   ;;
14593
14594 openbsd*)
14595   version_type=sunos
14596   need_lib_prefix=no
14597   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14598   case $host_os in
14599     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14600     *)                         need_version=no  ;;
14601   esac
14602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14603   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14604   shlibpath_var=LD_LIBRARY_PATH
14605   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14606     case $host_os in
14607       openbsd2.[89] | openbsd2.[89].*)
14608         shlibpath_overrides_runpath=no
14609         ;;
14610       *)
14611         shlibpath_overrides_runpath=yes
14612         ;;
14613       esac
14614   else
14615     shlibpath_overrides_runpath=yes
14616   fi
14617   ;;
14618
14619 os2*)
14620   libname_spec='$name'
14621   shrext_cmds=".dll"
14622   need_lib_prefix=no
14623   library_names_spec='$libname${shared_ext} $libname.a'
14624   dynamic_linker='OS/2 ld.exe'
14625   shlibpath_var=LIBPATH
14626   ;;
14627
14628 osf3* | osf4* | osf5*)
14629   version_type=osf
14630   need_lib_prefix=no
14631   need_version=no
14632   soname_spec='${libname}${release}${shared_ext}$major'
14633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634   shlibpath_var=LD_LIBRARY_PATH
14635   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14636   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14637   ;;
14638
14639 sco3.2v5*)
14640   version_type=osf
14641   soname_spec='${libname}${release}${shared_ext}$major'
14642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14643   shlibpath_var=LD_LIBRARY_PATH
14644   ;;
14645
14646 solaris*)
14647   version_type=linux
14648   need_lib_prefix=no
14649   need_version=no
14650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651   soname_spec='${libname}${release}${shared_ext}$major'
14652   shlibpath_var=LD_LIBRARY_PATH
14653   shlibpath_overrides_runpath=yes
14654   hardcode_into_libs=yes
14655   # ldd complains unless libraries are executable
14656   postinstall_cmds='chmod +x $lib'
14657   ;;
14658
14659 sunos4*)
14660   version_type=sunos
14661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14662   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14663   shlibpath_var=LD_LIBRARY_PATH
14664   shlibpath_overrides_runpath=yes
14665   if test "$with_gnu_ld" = yes; then
14666     need_lib_prefix=no
14667   fi
14668   need_version=yes
14669   ;;
14670
14671 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14672   version_type=linux
14673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674   soname_spec='${libname}${release}${shared_ext}$major'
14675   shlibpath_var=LD_LIBRARY_PATH
14676   case $host_vendor in
14677     sni)
14678       shlibpath_overrides_runpath=no
14679       need_lib_prefix=no
14680       export_dynamic_flag_spec='${wl}-Blargedynsym'
14681       runpath_var=LD_RUN_PATH
14682       ;;
14683     siemens)
14684       need_lib_prefix=no
14685       ;;
14686     motorola)
14687       need_lib_prefix=no
14688       need_version=no
14689       shlibpath_overrides_runpath=no
14690       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14691       ;;
14692   esac
14693   ;;
14694
14695 sysv4*MP*)
14696   if test -d /usr/nec ;then
14697     version_type=linux
14698     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14699     soname_spec='$libname${shared_ext}.$major'
14700     shlibpath_var=LD_LIBRARY_PATH
14701   fi
14702   ;;
14703
14704 uts4*)
14705   version_type=linux
14706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707   soname_spec='${libname}${release}${shared_ext}$major'
14708   shlibpath_var=LD_LIBRARY_PATH
14709   ;;
14710
14711 *)
14712   dynamic_linker=no
14713   ;;
14714 esac
14715 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14716 echo "${ECHO_T}$dynamic_linker" >&6
14717 test "$dynamic_linker" = no && can_build_shared=no
14718
14719 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14720 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14721 hardcode_action_F77=
14722 if test -n "$hardcode_libdir_flag_spec_F77" || \
14723    test -n "$runpath_var_F77" || \
14724    test "X$hardcode_automatic_F77" = "Xyes" ; then
14725
14726   # We can hardcode non-existant directories.
14727   if test "$hardcode_direct_F77" != no &&
14728      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14729      # have to relink, otherwise we might link with an installed library
14730      # when we should be linking with a yet-to-be-installed one
14731      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14732      test "$hardcode_minus_L_F77" != no; then
14733     # Linking always hardcodes the temporary library directory.
14734     hardcode_action_F77=relink
14735   else
14736     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14737     hardcode_action_F77=immediate
14738   fi
14739 else
14740   # We cannot hardcode anything, or else we can only hardcode existing
14741   # directories.
14742   hardcode_action_F77=unsupported
14743 fi
14744 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14745 echo "${ECHO_T}$hardcode_action_F77" >&6
14746
14747 if test "$hardcode_action_F77" = relink; then
14748   # Fast installation is not supported
14749   enable_fast_install=no
14750 elif test "$shlibpath_overrides_runpath" = yes ||
14751      test "$enable_shared" = no; then
14752   # Fast installation is not necessary
14753   enable_fast_install=needless
14754 fi
14755
14756 striplib=
14757 old_striplib=
14758 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14759 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14760 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14761   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14762   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14763   echo "$as_me:$LINENO: result: yes" >&5
14764 echo "${ECHO_T}yes" >&6
14765 else
14766 # FIXME - insert some real tests, host_os isn't really good enough
14767   case $host_os in
14768    darwin*)
14769        if test -n "$STRIP" ; then
14770          striplib="$STRIP -x"
14771          echo "$as_me:$LINENO: result: yes" >&5
14772 echo "${ECHO_T}yes" >&6
14773        else
14774   echo "$as_me:$LINENO: result: no" >&5
14775 echo "${ECHO_T}no" >&6
14776 fi
14777        ;;
14778    *)
14779   echo "$as_me:$LINENO: result: no" >&5
14780 echo "${ECHO_T}no" >&6
14781     ;;
14782   esac
14783 fi
14784
14785
14786
14787 # The else clause should only fire when bootstrapping the
14788 # libtool distribution, otherwise you forgot to ship ltmain.sh
14789 # with your package, and you will get complaints that there are
14790 # no rules to generate ltmain.sh.
14791 if test -f "$ltmain"; then
14792   # See if we are running on zsh, and set the options which allow our commands through
14793   # without removal of \ escapes.
14794   if test -n "${ZSH_VERSION+set}" ; then
14795     setopt NO_GLOB_SUBST
14796   fi
14797   # Now quote all the things that may contain metacharacters while being
14798   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14799   # variables and quote the copies for generation of the libtool script.
14800   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14801     SED SHELL STRIP \
14802     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14803     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14804     deplibs_check_method reload_flag reload_cmds need_locks \
14805     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14806     lt_cv_sys_global_symbol_to_c_name_address \
14807     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14808     old_postinstall_cmds old_postuninstall_cmds \
14809     compiler_F77 \
14810     CC_F77 \
14811     LD_F77 \
14812     lt_prog_compiler_wl_F77 \
14813     lt_prog_compiler_pic_F77 \
14814     lt_prog_compiler_static_F77 \
14815     lt_prog_compiler_no_builtin_flag_F77 \
14816     export_dynamic_flag_spec_F77 \
14817     thread_safe_flag_spec_F77 \
14818     whole_archive_flag_spec_F77 \
14819     enable_shared_with_static_runtimes_F77 \
14820     old_archive_cmds_F77 \
14821     old_archive_from_new_cmds_F77 \
14822     predep_objects_F77 \
14823     postdep_objects_F77 \
14824     predeps_F77 \
14825     postdeps_F77 \
14826     compiler_lib_search_path_F77 \
14827     archive_cmds_F77 \
14828     archive_expsym_cmds_F77 \
14829     postinstall_cmds_F77 \
14830     postuninstall_cmds_F77 \
14831     old_archive_from_expsyms_cmds_F77 \
14832     allow_undefined_flag_F77 \
14833     no_undefined_flag_F77 \
14834     export_symbols_cmds_F77 \
14835     hardcode_libdir_flag_spec_F77 \
14836     hardcode_libdir_flag_spec_ld_F77 \
14837     hardcode_libdir_separator_F77 \
14838     hardcode_automatic_F77 \
14839     module_cmds_F77 \
14840     module_expsym_cmds_F77 \
14841     lt_cv_prog_compiler_c_o_F77 \
14842     exclude_expsyms_F77 \
14843     include_expsyms_F77; do
14844
14845     case $var in
14846     old_archive_cmds_F77 | \
14847     old_archive_from_new_cmds_F77 | \
14848     archive_cmds_F77 | \
14849     archive_expsym_cmds_F77 | \
14850     module_cmds_F77 | \
14851     module_expsym_cmds_F77 | \
14852     old_archive_from_expsyms_cmds_F77 | \
14853     export_symbols_cmds_F77 | \
14854     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14855     postinstall_cmds | postuninstall_cmds | \
14856     old_postinstall_cmds | old_postuninstall_cmds | \
14857     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14858       # Double-quote double-evaled strings.
14859       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14860       ;;
14861     *)
14862       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14863       ;;
14864     esac
14865   done
14866
14867   case $lt_echo in
14868   *'\$0 --fallback-echo"')
14869     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14870     ;;
14871   esac
14872
14873 cfgfile="$ofile"
14874
14875   cat <<__EOF__ >> "$cfgfile"
14876 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14877
14878 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14879
14880 # Shell to use when invoking shell scripts.
14881 SHELL=$lt_SHELL
14882
14883 # Whether or not to build shared libraries.
14884 build_libtool_libs=$enable_shared
14885
14886 # Whether or not to build static libraries.
14887 build_old_libs=$enable_static
14888
14889 # Whether or not to add -lc for building shared libraries.
14890 build_libtool_need_lc=$archive_cmds_need_lc_F77
14891
14892 # Whether or not to disallow shared libs when runtime libs are static
14893 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14894
14895 # Whether or not to optimize for fast installation.
14896 fast_install=$enable_fast_install
14897
14898 # The host system.
14899 host_alias=$host_alias
14900 host=$host
14901 host_os=$host_os
14902
14903 # The build system.
14904 build_alias=$build_alias
14905 build=$build
14906 build_os=$build_os
14907
14908 # An echo program that does not interpret backslashes.
14909 echo=$lt_echo
14910
14911 # The archiver.
14912 AR=$lt_AR
14913 AR_FLAGS=$lt_AR_FLAGS
14914
14915 # A C compiler.
14916 LTCC=$lt_LTCC
14917
14918 # A language-specific compiler.
14919 CC=$lt_compiler_F77
14920
14921 # Is the compiler the GNU C compiler?
14922 with_gcc=$GCC_F77
14923
14924 # An ERE matcher.
14925 EGREP=$lt_EGREP
14926
14927 # The linker used to build libraries.
14928 LD=$lt_LD_F77
14929
14930 # Whether we need hard or soft links.
14931 LN_S=$lt_LN_S
14932
14933 # A BSD-compatible nm program.
14934 NM=$lt_NM
14935
14936 # A symbol stripping program
14937 STRIP=$lt_STRIP
14938
14939 # Used to examine libraries when file_magic_cmd begins "file"
14940 MAGIC_CMD=$MAGIC_CMD
14941
14942 # Used on cygwin: DLL creation program.
14943 DLLTOOL="$DLLTOOL"
14944
14945 # Used on cygwin: object dumper.
14946 OBJDUMP="$OBJDUMP"
14947
14948 # Used on cygwin: assembler.
14949 AS="$AS"
14950
14951 # The name of the directory that contains temporary libtool files.
14952 objdir=$objdir
14953
14954 # How to create reloadable object files.
14955 reload_flag=$lt_reload_flag
14956 reload_cmds=$lt_reload_cmds
14957
14958 # How to pass a linker flag through the compiler.
14959 wl=$lt_lt_prog_compiler_wl_F77
14960
14961 # Object file suffix (normally "o").
14962 objext="$ac_objext"
14963
14964 # Old archive suffix (normally "a").
14965 libext="$libext"
14966
14967 # Shared library suffix (normally ".so").
14968 shrext_cmds='$shrext_cmds'
14969
14970 # Executable file suffix (normally "").
14971 exeext="$exeext"
14972
14973 # Additional compiler flags for building library objects.
14974 pic_flag=$lt_lt_prog_compiler_pic_F77
14975 pic_mode=$pic_mode
14976
14977 # What is the maximum length of a command?
14978 max_cmd_len=$lt_cv_sys_max_cmd_len
14979
14980 # Does compiler simultaneously support -c and -o options?
14981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14982
14983 # Must we lock files when doing compilation?
14984 need_locks=$lt_need_locks
14985
14986 # Do we need the lib prefix for modules?
14987 need_lib_prefix=$need_lib_prefix
14988
14989 # Do we need a version for libraries?
14990 need_version=$need_version
14991
14992 # Whether dlopen is supported.
14993 dlopen_support=$enable_dlopen
14994
14995 # Whether dlopen of programs is supported.
14996 dlopen_self=$enable_dlopen_self
14997
14998 # Whether dlopen of statically linked programs is supported.
14999 dlopen_self_static=$enable_dlopen_self_static
15000
15001 # Compiler flag to prevent dynamic linking.
15002 link_static_flag=$lt_lt_prog_compiler_static_F77
15003
15004 # Compiler flag to turn off builtin functions.
15005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15006
15007 # Compiler flag to allow reflexive dlopens.
15008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15009
15010 # Compiler flag to generate shared objects directly from archives.
15011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15012
15013 # Compiler flag to generate thread-safe objects.
15014 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15015
15016 # Library versioning type.
15017 version_type=$version_type
15018
15019 # Format of library name prefix.
15020 libname_spec=$lt_libname_spec
15021
15022 # List of archive names.  First name is the real one, the rest are links.
15023 # The last name is the one that the linker finds with -lNAME.
15024 library_names_spec=$lt_library_names_spec
15025
15026 # The coded name of the library, if different from the real name.
15027 soname_spec=$lt_soname_spec
15028
15029 # Commands used to build and install an old-style archive.
15030 RANLIB=$lt_RANLIB
15031 old_archive_cmds=$lt_old_archive_cmds_F77
15032 old_postinstall_cmds=$lt_old_postinstall_cmds
15033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15034
15035 # Create an old-style archive from a shared archive.
15036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15037
15038 # Create a temporary old-style archive to link instead of a shared archive.
15039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15040
15041 # Commands used to build and install a shared archive.
15042 archive_cmds=$lt_archive_cmds_F77
15043 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15044 postinstall_cmds=$lt_postinstall_cmds
15045 postuninstall_cmds=$lt_postuninstall_cmds
15046
15047 # Commands used to build a loadable module (assumed same as above if empty)
15048 module_cmds=$lt_module_cmds_F77
15049 module_expsym_cmds=$lt_module_expsym_cmds_F77
15050
15051 # Commands to strip libraries.
15052 old_striplib=$lt_old_striplib
15053 striplib=$lt_striplib
15054
15055 # Dependencies to place before the objects being linked to create a
15056 # shared library.
15057 predep_objects=$lt_predep_objects_F77
15058
15059 # Dependencies to place after the objects being linked to create a
15060 # shared library.
15061 postdep_objects=$lt_postdep_objects_F77
15062
15063 # Dependencies to place before the objects being linked to create a
15064 # shared library.
15065 predeps=$lt_predeps_F77
15066
15067 # Dependencies to place after the objects being linked to create a
15068 # shared library.
15069 postdeps=$lt_postdeps_F77
15070
15071 # The library search path used internally by the compiler when linking
15072 # a shared library.
15073 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15074
15075 # Method to check whether dependent libraries are shared objects.
15076 deplibs_check_method=$lt_deplibs_check_method
15077
15078 # Command to use when deplibs_check_method == file_magic.
15079 file_magic_cmd=$lt_file_magic_cmd
15080
15081 # Flag that allows shared libraries with undefined symbols to be built.
15082 allow_undefined_flag=$lt_allow_undefined_flag_F77
15083
15084 # Flag that forces no undefined symbols.
15085 no_undefined_flag=$lt_no_undefined_flag_F77
15086
15087 # Commands used to finish a libtool library installation in a directory.
15088 finish_cmds=$lt_finish_cmds
15089
15090 # Same as above, but a single script fragment to be evaled but not shown.
15091 finish_eval=$lt_finish_eval
15092
15093 # Take the output of nm and produce a listing of raw symbols and C names.
15094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15095
15096 # Transform the output of nm in a proper C declaration
15097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15098
15099 # Transform the output of nm in a C name address pair
15100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15101
15102 # This is the shared library runtime path variable.
15103 runpath_var=$runpath_var
15104
15105 # This is the shared library path variable.
15106 shlibpath_var=$shlibpath_var
15107
15108 # Is shlibpath searched before the hard-coded library search path?
15109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15110
15111 # How to hardcode a shared library path into an executable.
15112 hardcode_action=$hardcode_action_F77
15113
15114 # Whether we should hardcode library paths into libraries.
15115 hardcode_into_libs=$hardcode_into_libs
15116
15117 # Flag to hardcode \$libdir into a binary during linking.
15118 # This must work even if \$libdir does not exist.
15119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15120
15121 # If ld is used when linking, flag to hardcode \$libdir into
15122 # a binary during linking. This must work even if \$libdir does
15123 # not exist.
15124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15125
15126 # Whether we need a single -rpath flag with a separated argument.
15127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15128
15129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15130 # resulting binary.
15131 hardcode_direct=$hardcode_direct_F77
15132
15133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15134 # resulting binary.
15135 hardcode_minus_L=$hardcode_minus_L_F77
15136
15137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15138 # the resulting binary.
15139 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15140
15141 # Set to yes if building a shared library automatically hardcodes DIR into the library
15142 # and all subsequent libraries and executables linked against it.
15143 hardcode_automatic=$hardcode_automatic_F77
15144
15145 # Variables whose values should be saved in libtool wrapper scripts and
15146 # restored at relink time.
15147 variables_saved_for_relink="$variables_saved_for_relink"
15148
15149 # Whether libtool must link a program against all its dependency libraries.
15150 link_all_deplibs=$link_all_deplibs_F77
15151
15152 # Compile-time system search path for libraries
15153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15154
15155 # Run-time system search path for libraries
15156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15157
15158 # Fix the shell variable \$srcfile for the compiler.
15159 fix_srcfile_path="$fix_srcfile_path_F77"
15160
15161 # Set to yes if exported symbols are required.
15162 always_export_symbols=$always_export_symbols_F77
15163
15164 # The commands to list exported symbols.
15165 export_symbols_cmds=$lt_export_symbols_cmds_F77
15166
15167 # The commands to extract the exported symbol list from a shared archive.
15168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15169
15170 # Symbols that should not be listed in the preloaded symbols.
15171 exclude_expsyms=$lt_exclude_expsyms_F77
15172
15173 # Symbols that must always be exported.
15174 include_expsyms=$lt_include_expsyms_F77
15175
15176 # ### END LIBTOOL TAG CONFIG: $tagname
15177
15178 __EOF__
15179
15180
15181 else
15182   # If there is no Makefile yet, we rely on a make rule to execute
15183   # `config.status --recheck' to rerun these tests and create the
15184   # libtool script then.
15185   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15186   if test -f "$ltmain_in"; then
15187     test -f Makefile && make "$ltmain"
15188   fi
15189 fi
15190
15191
15192 ac_ext=c
15193 ac_cpp='$CPP $CPPFLAGS'
15194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15197
15198 CC="$lt_save_CC"
15199
15200         else
15201           tagname=""
15202         fi
15203         ;;
15204
15205       GCJ)
15206         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15207
15208
15209
15210 # Source file extension for Java test sources.
15211 ac_ext=java
15212
15213 # Object file extension for compiled Java test sources.
15214 objext=o
15215 objext_GCJ=$objext
15216
15217 # Code to be used in simple compile tests
15218 lt_simple_compile_test_code="class foo {}\n"
15219
15220 # Code to be used in simple link tests
15221 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15222
15223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15224
15225 # If no C compiler was specified, use CC.
15226 LTCC=${LTCC-"$CC"}
15227
15228 # Allow CC to be a program name with arguments.
15229 compiler=$CC
15230
15231
15232 # save warnings/boilerplate of simple test code
15233 ac_outfile=conftest.$ac_objext
15234 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15235 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15236 _lt_compiler_boilerplate=`cat conftest.err`
15237 $rm conftest*
15238
15239 ac_outfile=conftest.$ac_objext
15240 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15241 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15242 _lt_linker_boilerplate=`cat conftest.err`
15243 $rm conftest*
15244
15245
15246 # Allow CC to be a program name with arguments.
15247 lt_save_CC="$CC"
15248 CC=${GCJ-"gcj"}
15249 compiler=$CC
15250 compiler_GCJ=$CC
15251 for cc_temp in $compiler""; do
15252   case $cc_temp in
15253     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15254     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15255     \-*) ;;
15256     *) break;;
15257   esac
15258 done
15259 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15260
15261
15262 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15263 archive_cmds_need_lc_GCJ=no
15264
15265 old_archive_cmds_GCJ=$old_archive_cmds
15266
15267
15268 lt_prog_compiler_no_builtin_flag_GCJ=
15269
15270 if test "$GCC" = yes; then
15271   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15272
15273
15274 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15275 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15276 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15277   echo $ECHO_N "(cached) $ECHO_C" >&6
15278 else
15279   lt_cv_prog_compiler_rtti_exceptions=no
15280   ac_outfile=conftest.$ac_objext
15281    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15282    lt_compiler_flag="-fno-rtti -fno-exceptions"
15283    # Insert the option either (1) after the last *FLAGS variable, or
15284    # (2) before a word containing "conftest.", or (3) at the end.
15285    # Note that $ac_compile itself does not contain backslashes and begins
15286    # with a dollar sign (not a hyphen), so the echo should work correctly.
15287    # The option is referenced via a variable to avoid confusing sed.
15288    lt_compile=`echo "$ac_compile" | $SED \
15289    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15290    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15291    -e 's:$: $lt_compiler_flag:'`
15292    (eval echo "\"\$as_me:15292: $lt_compile\"" >&5)
15293    (eval "$lt_compile" 2>conftest.err)
15294    ac_status=$?
15295    cat conftest.err >&5
15296    echo "$as_me:15296: \$? = $ac_status" >&5
15297    if (exit $ac_status) && test -s "$ac_outfile"; then
15298      # The compiler can only warn and ignore the option if not recognized
15299      # So say no if there are warnings other than the usual output.
15300      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15301      $SED '/^$/d' conftest.err >conftest.er2
15302      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15303        lt_cv_prog_compiler_rtti_exceptions=yes
15304      fi
15305    fi
15306    $rm conftest*
15307
15308 fi
15309 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15310 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15311
15312 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15313     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15314 else
15315     :
15316 fi
15317
15318 fi
15319
15320 lt_prog_compiler_wl_GCJ=
15321 lt_prog_compiler_pic_GCJ=
15322 lt_prog_compiler_static_GCJ=
15323
15324 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15325 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15326
15327   if test "$GCC" = yes; then
15328     lt_prog_compiler_wl_GCJ='-Wl,'
15329     lt_prog_compiler_static_GCJ='-static'
15330
15331     case $host_os in
15332       aix*)
15333       # All AIX code is PIC.
15334       if test "$host_cpu" = ia64; then
15335         # AIX 5 now supports IA64 processor
15336         lt_prog_compiler_static_GCJ='-Bstatic'
15337       fi
15338       ;;
15339
15340     amigaos*)
15341       # FIXME: we need at least 68020 code to build shared libraries, but
15342       # adding the `-m68020' flag to GCC prevents building anything better,
15343       # like `-m68040'.
15344       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15345       ;;
15346
15347     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15348       # PIC is the default for these OSes.
15349       ;;
15350
15351     mingw* | pw32* | os2*)
15352       # This hack is so that the source file can tell whether it is being
15353       # built for inclusion in a dll (and should export symbols for example).
15354       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15355       ;;
15356
15357     darwin* | rhapsody*)
15358       # PIC is the default on this platform
15359       # Common symbols not allowed in MH_DYLIB files
15360       lt_prog_compiler_pic_GCJ='-fno-common'
15361       ;;
15362
15363     msdosdjgpp*)
15364       # Just because we use GCC doesn't mean we suddenly get shared libraries
15365       # on systems that don't support them.
15366       lt_prog_compiler_can_build_shared_GCJ=no
15367       enable_shared=no
15368       ;;
15369
15370     sysv4*MP*)
15371       if test -d /usr/nec; then
15372         lt_prog_compiler_pic_GCJ=-Kconform_pic
15373       fi
15374       ;;
15375
15376     hpux*)
15377       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15378       # not for PA HP-UX.
15379       case $host_cpu in
15380       hppa*64*|ia64*)
15381         # +Z the default
15382         ;;
15383       *)
15384         lt_prog_compiler_pic_GCJ='-fPIC'
15385         ;;
15386       esac
15387       ;;
15388
15389     *)
15390       lt_prog_compiler_pic_GCJ='-fPIC'
15391       ;;
15392     esac
15393   else
15394     # PORTME Check for flag to pass linker flags through the system compiler.
15395     case $host_os in
15396     aix*)
15397       lt_prog_compiler_wl_GCJ='-Wl,'
15398       if test "$host_cpu" = ia64; then
15399         # AIX 5 now supports IA64 processor
15400         lt_prog_compiler_static_GCJ='-Bstatic'
15401       else
15402         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15403       fi
15404       ;;
15405       darwin*)
15406         # PIC is the default on this platform
15407         # Common symbols not allowed in MH_DYLIB files
15408        case $cc_basename in
15409          xlc*)
15410          lt_prog_compiler_pic_GCJ='-qnocommon'
15411          lt_prog_compiler_wl_GCJ='-Wl,'
15412          ;;
15413        esac
15414        ;;
15415
15416     mingw* | pw32* | os2*)
15417       # This hack is so that the source file can tell whether it is being
15418       # built for inclusion in a dll (and should export symbols for example).
15419       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15420       ;;
15421
15422     hpux9* | hpux10* | hpux11*)
15423       lt_prog_compiler_wl_GCJ='-Wl,'
15424       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15425       # not for PA HP-UX.
15426       case $host_cpu in
15427       hppa*64*|ia64*)
15428         # +Z the default
15429         ;;
15430       *)
15431         lt_prog_compiler_pic_GCJ='+Z'
15432         ;;
15433       esac
15434       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15435       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15436       ;;
15437
15438     irix5* | irix6* | nonstopux*)
15439       lt_prog_compiler_wl_GCJ='-Wl,'
15440       # PIC (with -KPIC) is the default.
15441       lt_prog_compiler_static_GCJ='-non_shared'
15442       ;;
15443
15444     newsos6)
15445       lt_prog_compiler_pic_GCJ='-KPIC'
15446       lt_prog_compiler_static_GCJ='-Bstatic'
15447       ;;
15448
15449     linux*)
15450       case $cc_basename in
15451       icc* | ecc*)
15452         lt_prog_compiler_wl_GCJ='-Wl,'
15453         lt_prog_compiler_pic_GCJ='-KPIC'
15454         lt_prog_compiler_static_GCJ='-static'
15455         ;;
15456       pgcc* | pgf77* | pgf90* | pgf95*)
15457         # Portland Group compilers (*not* the Pentium gcc compiler,
15458         # which looks to be a dead project)
15459         lt_prog_compiler_wl_GCJ='-Wl,'
15460         lt_prog_compiler_pic_GCJ='-fpic'
15461         lt_prog_compiler_static_GCJ='-Bstatic'
15462         ;;
15463       ccc*)
15464         lt_prog_compiler_wl_GCJ='-Wl,'
15465         # All Alpha code is PIC.
15466         lt_prog_compiler_static_GCJ='-non_shared'
15467         ;;
15468       esac
15469       ;;
15470
15471     osf3* | osf4* | osf5*)
15472       lt_prog_compiler_wl_GCJ='-Wl,'
15473       # All OSF/1 code is PIC.
15474       lt_prog_compiler_static_GCJ='-non_shared'
15475       ;;
15476
15477     sco3.2v5*)
15478       lt_prog_compiler_pic_GCJ='-Kpic'
15479       lt_prog_compiler_static_GCJ='-dn'
15480       ;;
15481
15482     solaris*)
15483       lt_prog_compiler_pic_GCJ='-KPIC'
15484       lt_prog_compiler_static_GCJ='-Bstatic'
15485       case $cc_basename in
15486       f77* | f90* | f95*)
15487         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15488       *)
15489         lt_prog_compiler_wl_GCJ='-Wl,';;
15490       esac
15491       ;;
15492
15493     sunos4*)
15494       lt_prog_compiler_wl_GCJ='-Qoption ld '
15495       lt_prog_compiler_pic_GCJ='-PIC'
15496       lt_prog_compiler_static_GCJ='-Bstatic'
15497       ;;
15498
15499     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15500       lt_prog_compiler_wl_GCJ='-Wl,'
15501       lt_prog_compiler_pic_GCJ='-KPIC'
15502       lt_prog_compiler_static_GCJ='-Bstatic'
15503       ;;
15504
15505     sysv4*MP*)
15506       if test -d /usr/nec ;then
15507         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15508         lt_prog_compiler_static_GCJ='-Bstatic'
15509       fi
15510       ;;
15511
15512     unicos*)
15513       lt_prog_compiler_wl_GCJ='-Wl,'
15514       lt_prog_compiler_can_build_shared_GCJ=no
15515       ;;
15516
15517     uts4*)
15518       lt_prog_compiler_pic_GCJ='-pic'
15519       lt_prog_compiler_static_GCJ='-Bstatic'
15520       ;;
15521
15522     *)
15523       lt_prog_compiler_can_build_shared_GCJ=no
15524       ;;
15525     esac
15526   fi
15527
15528 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15529 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15530
15531 #
15532 # Check to make sure the PIC flag actually works.
15533 #
15534 if test -n "$lt_prog_compiler_pic_GCJ"; then
15535
15536 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15537 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15538 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15539   echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541   lt_prog_compiler_pic_works_GCJ=no
15542   ac_outfile=conftest.$ac_objext
15543    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15544    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15545    # Insert the option either (1) after the last *FLAGS variable, or
15546    # (2) before a word containing "conftest.", or (3) at the end.
15547    # Note that $ac_compile itself does not contain backslashes and begins
15548    # with a dollar sign (not a hyphen), so the echo should work correctly.
15549    # The option is referenced via a variable to avoid confusing sed.
15550    lt_compile=`echo "$ac_compile" | $SED \
15551    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15553    -e 's:$: $lt_compiler_flag:'`
15554    (eval echo "\"\$as_me:15554: $lt_compile\"" >&5)
15555    (eval "$lt_compile" 2>conftest.err)
15556    ac_status=$?
15557    cat conftest.err >&5
15558    echo "$as_me:15558: \$? = $ac_status" >&5
15559    if (exit $ac_status) && test -s "$ac_outfile"; then
15560      # The compiler can only warn and ignore the option if not recognized
15561      # So say no if there are warnings other than the usual output.
15562      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15563      $SED '/^$/d' conftest.err >conftest.er2
15564      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15565        lt_prog_compiler_pic_works_GCJ=yes
15566      fi
15567    fi
15568    $rm conftest*
15569
15570 fi
15571 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15572 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15573
15574 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15575     case $lt_prog_compiler_pic_GCJ in
15576      "" | " "*) ;;
15577      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15578      esac
15579 else
15580     lt_prog_compiler_pic_GCJ=
15581      lt_prog_compiler_can_build_shared_GCJ=no
15582 fi
15583
15584 fi
15585 case $host_os in
15586   # For platforms which do not support PIC, -DPIC is meaningless:
15587   *djgpp*)
15588     lt_prog_compiler_pic_GCJ=
15589     ;;
15590   *)
15591     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15592     ;;
15593 esac
15594
15595 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15596 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15597 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15598   echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600   lt_cv_prog_compiler_c_o_GCJ=no
15601    $rm -r conftest 2>/dev/null
15602    mkdir conftest
15603    cd conftest
15604    mkdir out
15605    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15606
15607    lt_compiler_flag="-o out/conftest2.$ac_objext"
15608    # Insert the option either (1) after the last *FLAGS variable, or
15609    # (2) before a word containing "conftest.", or (3) at the end.
15610    # Note that $ac_compile itself does not contain backslashes and begins
15611    # with a dollar sign (not a hyphen), so the echo should work correctly.
15612    lt_compile=`echo "$ac_compile" | $SED \
15613    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15614    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15615    -e 's:$: $lt_compiler_flag:'`
15616    (eval echo "\"\$as_me:15616: $lt_compile\"" >&5)
15617    (eval "$lt_compile" 2>out/conftest.err)
15618    ac_status=$?
15619    cat out/conftest.err >&5
15620    echo "$as_me:15620: \$? = $ac_status" >&5
15621    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15622    then
15623      # The compiler can only warn and ignore the option if not recognized
15624      # So say no if there are warnings
15625      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15626      $SED '/^$/d' out/conftest.err >out/conftest.er2
15627      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15628        lt_cv_prog_compiler_c_o_GCJ=yes
15629      fi
15630    fi
15631    chmod u+w . 2>&5
15632    $rm conftest*
15633    # SGI C++ compiler will create directory out/ii_files/ for
15634    # template instantiation
15635    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15636    $rm out/* && rmdir out
15637    cd ..
15638    rmdir conftest
15639    $rm conftest*
15640
15641 fi
15642 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15643 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15644
15645
15646 hard_links="nottested"
15647 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15648   # do not overwrite the value of need_locks provided by the user
15649   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15650 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15651   hard_links=yes
15652   $rm conftest*
15653   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15654   touch conftest.a
15655   ln conftest.a conftest.b 2>&5 || hard_links=no
15656   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15657   echo "$as_me:$LINENO: result: $hard_links" >&5
15658 echo "${ECHO_T}$hard_links" >&6
15659   if test "$hard_links" = no; then
15660     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15661 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15662     need_locks=warn
15663   fi
15664 else
15665   need_locks=no
15666 fi
15667
15668 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15669 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15670
15671   runpath_var=
15672   allow_undefined_flag_GCJ=
15673   enable_shared_with_static_runtimes_GCJ=no
15674   archive_cmds_GCJ=
15675   archive_expsym_cmds_GCJ=
15676   old_archive_From_new_cmds_GCJ=
15677   old_archive_from_expsyms_cmds_GCJ=
15678   export_dynamic_flag_spec_GCJ=
15679   whole_archive_flag_spec_GCJ=
15680   thread_safe_flag_spec_GCJ=
15681   hardcode_libdir_flag_spec_GCJ=
15682   hardcode_libdir_flag_spec_ld_GCJ=
15683   hardcode_libdir_separator_GCJ=
15684   hardcode_direct_GCJ=no
15685   hardcode_minus_L_GCJ=no
15686   hardcode_shlibpath_var_GCJ=unsupported
15687   link_all_deplibs_GCJ=unknown
15688   hardcode_automatic_GCJ=no
15689   module_cmds_GCJ=
15690   module_expsym_cmds_GCJ=
15691   always_export_symbols_GCJ=no
15692   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15693   # include_expsyms should be a list of space-separated symbols to be *always*
15694   # included in the symbol list
15695   include_expsyms_GCJ=
15696   # exclude_expsyms can be an extended regexp of symbols to exclude
15697   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15698   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15699   # as well as any symbol that contains `d'.
15700   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15701   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15702   # platforms (ab)use it in PIC code, but their linkers get confused if
15703   # the symbol is explicitly referenced.  Since portable code cannot
15704   # rely on this symbol name, it's probably fine to never include it in
15705   # preloaded symbol tables.
15706   extract_expsyms_cmds=
15707   # Just being paranoid about ensuring that cc_basename is set.
15708   for cc_temp in $compiler""; do
15709   case $cc_temp in
15710     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15711     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15712     \-*) ;;
15713     *) break;;
15714   esac
15715 done
15716 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15717
15718   case $host_os in
15719   cygwin* | mingw* | pw32*)
15720     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15721     # When not using gcc, we currently assume that we are using
15722     # Microsoft Visual C++.
15723     if test "$GCC" != yes; then
15724       with_gnu_ld=no
15725     fi
15726     ;;
15727   openbsd*)
15728     with_gnu_ld=no
15729     ;;
15730   esac
15731
15732   ld_shlibs_GCJ=yes
15733   if test "$with_gnu_ld" = yes; then
15734     # If archive_cmds runs LD, not CC, wlarc should be empty
15735     wlarc='${wl}'
15736
15737     # Set some defaults for GNU ld with shared library support. These
15738     # are reset later if shared libraries are not supported. Putting them
15739     # here allows them to be overridden if necessary.
15740     runpath_var=LD_RUN_PATH
15741     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15742     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15743     # ancient GNU ld didn't support --whole-archive et. al.
15744     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15745         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15746       else
15747         whole_archive_flag_spec_GCJ=
15748     fi
15749     supports_anon_versioning=no
15750     case `$LD -v 2>/dev/null` in
15751       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15752       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15753       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15754       *\ 2.11.*) ;; # other 2.11 versions
15755       *) supports_anon_versioning=yes ;;
15756     esac
15757
15758     # See if GNU ld supports shared libraries.
15759     case $host_os in
15760     aix3* | aix4* | aix5*)
15761       # On AIX/PPC, the GNU linker is very broken
15762       if test "$host_cpu" != ia64; then
15763         ld_shlibs_GCJ=no
15764         cat <<EOF 1>&2
15765
15766 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15767 *** to be unable to reliably create shared libraries on AIX.
15768 *** Therefore, libtool is disabling shared libraries support.  If you
15769 *** really care for shared libraries, you may want to modify your PATH
15770 *** so that a non-GNU linker is found, and then restart.
15771
15772 EOF
15773       fi
15774       ;;
15775
15776     amigaos*)
15777       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)'
15778       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15779       hardcode_minus_L_GCJ=yes
15780
15781       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15782       # that the semantics of dynamic libraries on AmigaOS, at least up
15783       # to version 4, is to share data among multiple programs linked
15784       # with the same dynamic library.  Since this doesn't match the
15785       # behavior of shared libraries on other platforms, we can't use
15786       # them.
15787       ld_shlibs_GCJ=no
15788       ;;
15789
15790     beos*)
15791       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15792         allow_undefined_flag_GCJ=unsupported
15793         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15794         # support --undefined.  This deserves some investigation.  FIXME
15795         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796       else
15797         ld_shlibs_GCJ=no
15798       fi
15799       ;;
15800
15801     cygwin* | mingw* | pw32*)
15802       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15803       # as there is no search path for DLLs.
15804       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15805       allow_undefined_flag_GCJ=unsupported
15806       always_export_symbols_GCJ=no
15807       enable_shared_with_static_runtimes_GCJ=yes
15808       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15809
15810       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15811         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15812         # If the export-symbols file already is a .def file (1st line
15813         # is EXPORTS), use it as is; otherwise, prepend...
15814         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15815           cp $export_symbols $output_objdir/$soname.def;
15816         else
15817           echo EXPORTS > $output_objdir/$soname.def;
15818           cat $export_symbols >> $output_objdir/$soname.def;
15819         fi~
15820         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15821       else
15822         ld_shlibs_GCJ=no
15823       fi
15824       ;;
15825
15826     linux*)
15827       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15828         tmp_addflag=
15829         case $cc_basename,$host_cpu in
15830         pgcc*)                          # Portland Group C compiler
15831           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15832           tmp_addflag=' $pic_flag'
15833           ;;
15834         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15835           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15836           tmp_addflag=' $pic_flag -Mnomain' ;;
15837         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15838           tmp_addflag=' -i_dynamic' ;;
15839         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15840           tmp_addflag=' -i_dynamic -nofor_main' ;;
15841         ifc* | ifort*)                  # Intel Fortran compiler
15842           tmp_addflag=' -nofor_main' ;;
15843         esac
15844         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15845
15846         if test $supports_anon_versioning = yes; then
15847           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15848   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15849   $echo "local: *; };" >> $output_objdir/$libname.ver~
15850           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15851         fi
15852       else
15853         ld_shlibs_GCJ=no
15854       fi
15855       ;;
15856
15857     netbsd*)
15858       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15859         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15860         wlarc=
15861       else
15862         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15863         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15864       fi
15865       ;;
15866
15867     solaris* | sysv5*)
15868       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15869         ld_shlibs_GCJ=no
15870         cat <<EOF 1>&2
15871
15872 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15873 *** create shared libraries on Solaris systems.  Therefore, libtool
15874 *** is disabling shared libraries support.  We urge you to upgrade GNU
15875 *** binutils to release 2.9.1 or newer.  Another option is to modify
15876 *** your PATH or compiler configuration so that the native linker is
15877 *** used, and then restart.
15878
15879 EOF
15880       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15881         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15882         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15883       else
15884         ld_shlibs_GCJ=no
15885       fi
15886       ;;
15887
15888     sunos4*)
15889       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15890       wlarc=
15891       hardcode_direct_GCJ=yes
15892       hardcode_shlibpath_var_GCJ=no
15893       ;;
15894
15895     *)
15896       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15897         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15898         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15899       else
15900         ld_shlibs_GCJ=no
15901       fi
15902       ;;
15903     esac
15904
15905     if test "$ld_shlibs_GCJ" = no; then
15906       runpath_var=
15907       hardcode_libdir_flag_spec_GCJ=
15908       export_dynamic_flag_spec_GCJ=
15909       whole_archive_flag_spec_GCJ=
15910     fi
15911   else
15912     # PORTME fill in a description of your system's linker (not GNU ld)
15913     case $host_os in
15914     aix3*)
15915       allow_undefined_flag_GCJ=unsupported
15916       always_export_symbols_GCJ=yes
15917       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'
15918       # Note: this linker hardcodes the directories in LIBPATH if there
15919       # are no directories specified by -L.
15920       hardcode_minus_L_GCJ=yes
15921       if test "$GCC" = yes && test -z "$link_static_flag"; then
15922         # Neither direct hardcoding nor static linking is supported with a
15923         # broken collect2.
15924         hardcode_direct_GCJ=unsupported
15925       fi
15926       ;;
15927
15928     aix4* | aix5*)
15929       if test "$host_cpu" = ia64; then
15930         # On IA64, the linker does run time linking by default, so we don't
15931         # have to do anything special.
15932         aix_use_runtimelinking=no
15933         exp_sym_flag='-Bexport'
15934         no_entry_flag=""
15935       else
15936         # If we're using GNU nm, then we don't want the "-C" option.
15937         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15938         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15939           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'
15940         else
15941           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'
15942         fi
15943         aix_use_runtimelinking=no
15944
15945         # Test if we are trying to use run time linking or normal
15946         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15947         # need to do runtime linking.
15948         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15949           for ld_flag in $LDFLAGS; do
15950           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15951             aix_use_runtimelinking=yes
15952             break
15953           fi
15954           done
15955         esac
15956
15957         exp_sym_flag='-bexport'
15958         no_entry_flag='-bnoentry'
15959       fi
15960
15961       # When large executables or shared objects are built, AIX ld can
15962       # have problems creating the table of contents.  If linking a library
15963       # or program results in "error TOC overflow" add -mminimal-toc to
15964       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15965       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15966
15967       archive_cmds_GCJ=''
15968       hardcode_direct_GCJ=yes
15969       hardcode_libdir_separator_GCJ=':'
15970       link_all_deplibs_GCJ=yes
15971
15972       if test "$GCC" = yes; then
15973         case $host_os in aix4.[012]|aix4.[012].*)
15974         # We only want to do this on AIX 4.2 and lower, the check
15975         # below for broken collect2 doesn't work under 4.3+
15976           collect2name=`${CC} -print-prog-name=collect2`
15977           if test -f "$collect2name" && \
15978            strings "$collect2name" | grep resolve_lib_name >/dev/null
15979           then
15980           # We have reworked collect2
15981           hardcode_direct_GCJ=yes
15982           else
15983           # We have old collect2
15984           hardcode_direct_GCJ=unsupported
15985           # It fails to find uninstalled libraries when the uninstalled
15986           # path is not listed in the libpath.  Setting hardcode_minus_L
15987           # to unsupported forces relinking
15988           hardcode_minus_L_GCJ=yes
15989           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15990           hardcode_libdir_separator_GCJ=
15991           fi
15992         esac
15993         shared_flag='-shared'
15994         if test "$aix_use_runtimelinking" = yes; then
15995           shared_flag="$shared_flag "'${wl}-G'
15996         fi
15997       else
15998         # not using gcc
15999         if test "$host_cpu" = ia64; then
16000         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16001         # chokes on -Wl,-G. The following line is correct:
16002           shared_flag='-G'
16003         else
16004         if test "$aix_use_runtimelinking" = yes; then
16005             shared_flag='${wl}-G'
16006           else
16007             shared_flag='${wl}-bM:SRE'
16008         fi
16009         fi
16010       fi
16011
16012       # It seems that -bexpall does not export symbols beginning with
16013       # underscore (_), so it is better to generate a list of symbols to export.
16014       always_export_symbols_GCJ=yes
16015       if test "$aix_use_runtimelinking" = yes; then
16016         # Warning - without using the other runtime loading flags (-brtl),
16017         # -berok will link without error, but may produce a broken library.
16018         allow_undefined_flag_GCJ='-berok'
16019        # Determine the default libpath from the value encoded in an empty executable.
16020        cat >conftest.$ac_ext <<_ACEOF
16021 /* confdefs.h.  */
16022 _ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h.  */
16026
16027 int
16028 main ()
16029 {
16030
16031   ;
16032   return 0;
16033 }
16034 _ACEOF
16035 rm -f conftest.$ac_objext conftest$ac_exeext
16036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16037   (eval $ac_link) 2>conftest.er1
16038   ac_status=$?
16039   grep -v '^ *+' conftest.er1 >conftest.err
16040   rm -f conftest.er1
16041   cat conftest.err >&5
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); } &&
16044          { ac_try='test -z "$ac_c_werror_flag"
16045                          || test ! -s conftest.err'
16046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047   (eval $ac_try) 2>&5
16048   ac_status=$?
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); }; } &&
16051          { ac_try='test -s conftest$ac_exeext'
16052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053   (eval $ac_try) 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; }; then
16057
16058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16059 }'`
16060 # Check for a 64-bit object if we didn't find anything.
16061 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; }
16062 }'`; fi
16063 else
16064   echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 fi
16068 rm -f conftest.err conftest.$ac_objext \
16069       conftest$ac_exeext conftest.$ac_ext
16070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16071
16072        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16073         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"
16074        else
16075         if test "$host_cpu" = ia64; then
16076           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16077           allow_undefined_flag_GCJ="-z nodefs"
16078           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"
16079         else
16080          # Determine the default libpath from the value encoded in an empty executable.
16081          cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h.  */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h.  */
16087
16088 int
16089 main ()
16090 {
16091
16092   ;
16093   return 0;
16094 }
16095 _ACEOF
16096 rm -f conftest.$ac_objext conftest$ac_exeext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16098   (eval $ac_link) 2>conftest.er1
16099   ac_status=$?
16100   grep -v '^ *+' conftest.er1 >conftest.err
16101   rm -f conftest.er1
16102   cat conftest.err >&5
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); } &&
16105          { ac_try='test -z "$ac_c_werror_flag"
16106                          || test ! -s conftest.err'
16107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108   (eval $ac_try) 2>&5
16109   ac_status=$?
16110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111   (exit $ac_status); }; } &&
16112          { ac_try='test -s conftest$ac_exeext'
16113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114   (eval $ac_try) 2>&5
16115   ac_status=$?
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); }; }; then
16118
16119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16120 }'`
16121 # Check for a 64-bit object if we didn't find anything.
16122 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; }
16123 }'`; fi
16124 else
16125   echo "$as_me: failed program was:" >&5
16126 sed 's/^/| /' conftest.$ac_ext >&5
16127
16128 fi
16129 rm -f conftest.err conftest.$ac_objext \
16130       conftest$ac_exeext conftest.$ac_ext
16131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16132
16133          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16134           # Warning - without using the other run time loading flags,
16135           # -berok will link without error, but may produce a broken library.
16136           no_undefined_flag_GCJ=' ${wl}-bernotok'
16137           allow_undefined_flag_GCJ=' ${wl}-berok'
16138           # -bexpall does not export symbols beginning with underscore (_)
16139           always_export_symbols_GCJ=yes
16140           # Exported symbols can be pulled into shared objects from archives
16141           whole_archive_flag_spec_GCJ=' '
16142           archive_cmds_need_lc_GCJ=yes
16143           # This is similar to how AIX traditionally builds its shared libraries.
16144           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'
16145         fi
16146       fi
16147       ;;
16148
16149     amigaos*)
16150       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)'
16151       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16152       hardcode_minus_L_GCJ=yes
16153       # see comment about different semantics on the GNU ld section
16154       ld_shlibs_GCJ=no
16155       ;;
16156
16157     bsdi[45]*)
16158       export_dynamic_flag_spec_GCJ=-rdynamic
16159       ;;
16160
16161     cygwin* | mingw* | pw32*)
16162       # When not using gcc, we currently assume that we are using
16163       # Microsoft Visual C++.
16164       # hardcode_libdir_flag_spec is actually meaningless, as there is
16165       # no search path for DLLs.
16166       hardcode_libdir_flag_spec_GCJ=' '
16167       allow_undefined_flag_GCJ=unsupported
16168       # Tell ltmain to make .lib files, not .a files.
16169       libext=lib
16170       # Tell ltmain to make .dll files, not .so files.
16171       shrext_cmds=".dll"
16172       # FIXME: Setting linknames here is a bad hack.
16173       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16174       # The linker will automatically build a .lib file if we build a DLL.
16175       old_archive_From_new_cmds_GCJ='true'
16176       # FIXME: Should let the user specify the lib program.
16177       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16178       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16179       enable_shared_with_static_runtimes_GCJ=yes
16180       ;;
16181
16182     darwin* | rhapsody*)
16183       case $host_os in
16184         rhapsody* | darwin1.[012])
16185          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16186          ;;
16187        *) # Darwin 1.3 on
16188          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16189            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16190          else
16191            case ${MACOSX_DEPLOYMENT_TARGET} in
16192              10.[012])
16193                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16194                ;;
16195              10.*)
16196                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16197                ;;
16198            esac
16199          fi
16200          ;;
16201       esac
16202       archive_cmds_need_lc_GCJ=no
16203       hardcode_direct_GCJ=no
16204       hardcode_automatic_GCJ=yes
16205       hardcode_shlibpath_var_GCJ=unsupported
16206       whole_archive_flag_spec_GCJ=''
16207       link_all_deplibs_GCJ=yes
16208     if test "$GCC" = yes ; then
16209         output_verbose_link_cmd='echo'
16210         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16211       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16212       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16213       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}'
16214       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}'
16215     else
16216       case $cc_basename in
16217         xlc*)
16218          output_verbose_link_cmd='echo'
16219          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16220          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16221           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16222          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}'
16223           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}'
16224           ;;
16225        *)
16226          ld_shlibs_GCJ=no
16227           ;;
16228       esac
16229     fi
16230       ;;
16231
16232     dgux*)
16233       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16234       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16235       hardcode_shlibpath_var_GCJ=no
16236       ;;
16237
16238     freebsd1*)
16239       ld_shlibs_GCJ=no
16240       ;;
16241
16242     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16243     # support.  Future versions do this automatically, but an explicit c++rt0.o
16244     # does not break anything, and helps significantly (at the cost of a little
16245     # extra space).
16246     freebsd2.2*)
16247       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16248       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16249       hardcode_direct_GCJ=yes
16250       hardcode_shlibpath_var_GCJ=no
16251       ;;
16252
16253     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16254     freebsd2*)
16255       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16256       hardcode_direct_GCJ=yes
16257       hardcode_minus_L_GCJ=yes
16258       hardcode_shlibpath_var_GCJ=no
16259       ;;
16260
16261     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16262     freebsd* | kfreebsd*-gnu | dragonfly*)
16263       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16264       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16265       hardcode_direct_GCJ=yes
16266       hardcode_shlibpath_var_GCJ=no
16267       ;;
16268
16269     hpux9*)
16270       if test "$GCC" = yes; then
16271         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'
16272       else
16273         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'
16274       fi
16275       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16276       hardcode_libdir_separator_GCJ=:
16277       hardcode_direct_GCJ=yes
16278
16279       # hardcode_minus_L: Not really in the search PATH,
16280       # but as the default location of the library.
16281       hardcode_minus_L_GCJ=yes
16282       export_dynamic_flag_spec_GCJ='${wl}-E'
16283       ;;
16284
16285     hpux10* | hpux11*)
16286       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16287         case $host_cpu in
16288         hppa*64*|ia64*)
16289           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16290           ;;
16291         *)
16292           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16293           ;;
16294         esac
16295       else
16296         case $host_cpu in
16297         hppa*64*|ia64*)
16298           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16299           ;;
16300         *)
16301           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16302           ;;
16303         esac
16304       fi
16305       if test "$with_gnu_ld" = no; then
16306         case $host_cpu in
16307         hppa*64*)
16308           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16309           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16310           hardcode_libdir_separator_GCJ=:
16311           hardcode_direct_GCJ=no
16312           hardcode_shlibpath_var_GCJ=no
16313           ;;
16314         ia64*)
16315           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16316           hardcode_direct_GCJ=no
16317           hardcode_shlibpath_var_GCJ=no
16318
16319           # hardcode_minus_L: Not really in the search PATH,
16320           # but as the default location of the library.
16321           hardcode_minus_L_GCJ=yes
16322           ;;
16323         *)
16324           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16325           hardcode_libdir_separator_GCJ=:
16326           hardcode_direct_GCJ=yes
16327           export_dynamic_flag_spec_GCJ='${wl}-E'
16328
16329           # hardcode_minus_L: Not really in the search PATH,
16330           # but as the default location of the library.
16331           hardcode_minus_L_GCJ=yes
16332           ;;
16333         esac
16334       fi
16335       ;;
16336
16337     irix5* | irix6* | nonstopux*)
16338       if test "$GCC" = yes; then
16339         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'
16340       else
16341         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'
16342         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16343       fi
16344       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16345       hardcode_libdir_separator_GCJ=:
16346       link_all_deplibs_GCJ=yes
16347       ;;
16348
16349     netbsd*)
16350       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16351         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16352       else
16353         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16354       fi
16355       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16356       hardcode_direct_GCJ=yes
16357       hardcode_shlibpath_var_GCJ=no
16358       ;;
16359
16360     newsos6)
16361       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16362       hardcode_direct_GCJ=yes
16363       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16364       hardcode_libdir_separator_GCJ=:
16365       hardcode_shlibpath_var_GCJ=no
16366       ;;
16367
16368     openbsd*)
16369       hardcode_direct_GCJ=yes
16370       hardcode_shlibpath_var_GCJ=no
16371       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16372         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16373         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16374         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16375         export_dynamic_flag_spec_GCJ='${wl}-E'
16376       else
16377        case $host_os in
16378          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16379            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16380            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16381            ;;
16382          *)
16383            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16384            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16385            ;;
16386        esac
16387       fi
16388       ;;
16389
16390     os2*)
16391       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16392       hardcode_minus_L_GCJ=yes
16393       allow_undefined_flag_GCJ=unsupported
16394       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'
16395       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16396       ;;
16397
16398     osf3*)
16399       if test "$GCC" = yes; then
16400         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16401         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'
16402       else
16403         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16404         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'
16405       fi
16406       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16407       hardcode_libdir_separator_GCJ=:
16408       ;;
16409
16410     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16411       if test "$GCC" = yes; then
16412         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16413         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'
16414         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16415       else
16416         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16417         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'
16418         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~
16419         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16420
16421         # Both c and cxx compiler support -rpath directly
16422         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16423       fi
16424       hardcode_libdir_separator_GCJ=:
16425       ;;
16426
16427     sco3.2v5*)
16428       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16429       hardcode_shlibpath_var_GCJ=no
16430       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16431       runpath_var=LD_RUN_PATH
16432       hardcode_runpath_var=yes
16433       ;;
16434
16435     solaris*)
16436       no_undefined_flag_GCJ=' -z text'
16437       if test "$GCC" = yes; then
16438         wlarc='${wl}'
16439         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16440         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16441           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16442       else
16443         wlarc=''
16444         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16445         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16446         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16447       fi
16448       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16449       hardcode_shlibpath_var_GCJ=no
16450       case $host_os in
16451       solaris2.[0-5] | solaris2.[0-5].*) ;;
16452       *)
16453         # The compiler driver will combine linker options so we
16454         # cannot just pass the convience library names through
16455         # without $wl, iff we do not link with $LD.
16456         # Luckily, gcc supports the same syntax we need for Sun Studio.
16457         # Supported since Solaris 2.6 (maybe 2.5.1?)
16458         case $wlarc in
16459         '')
16460           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16461         *)
16462           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16463         esac ;;
16464       esac
16465       link_all_deplibs_GCJ=yes
16466       ;;
16467
16468     sunos4*)
16469       if test "x$host_vendor" = xsequent; then
16470         # Use $CC to link under sequent, because it throws in some extra .o
16471         # files that make .init and .fini sections work.
16472         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16473       else
16474         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16475       fi
16476       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16477       hardcode_direct_GCJ=yes
16478       hardcode_minus_L_GCJ=yes
16479       hardcode_shlibpath_var_GCJ=no
16480       ;;
16481
16482     sysv4)
16483       case $host_vendor in
16484         sni)
16485           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486           hardcode_direct_GCJ=yes # is this really true???
16487         ;;
16488         siemens)
16489           ## LD is ld it makes a PLAMLIB
16490           ## CC just makes a GrossModule.
16491           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16492           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16493           hardcode_direct_GCJ=no
16494         ;;
16495         motorola)
16496           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16497           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16498         ;;
16499       esac
16500       runpath_var='LD_RUN_PATH'
16501       hardcode_shlibpath_var_GCJ=no
16502       ;;
16503
16504     sysv4.3*)
16505       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16506       hardcode_shlibpath_var_GCJ=no
16507       export_dynamic_flag_spec_GCJ='-Bexport'
16508       ;;
16509
16510     sysv4*MP*)
16511       if test -d /usr/nec; then
16512         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513         hardcode_shlibpath_var_GCJ=no
16514         runpath_var=LD_RUN_PATH
16515         hardcode_runpath_var=yes
16516         ld_shlibs_GCJ=yes
16517       fi
16518       ;;
16519
16520     sysv4.2uw2*)
16521       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16522       hardcode_direct_GCJ=yes
16523       hardcode_minus_L_GCJ=no
16524       hardcode_shlibpath_var_GCJ=no
16525       hardcode_runpath_var=yes
16526       runpath_var=LD_RUN_PATH
16527       ;;
16528
16529    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16530       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16531       if test "$GCC" = yes; then
16532         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16533       else
16534         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16535       fi
16536       runpath_var='LD_RUN_PATH'
16537       hardcode_shlibpath_var_GCJ=no
16538       ;;
16539
16540     sysv5*)
16541       no_undefined_flag_GCJ=' -z text'
16542       # $CC -shared without GNU ld will not create a library from C++
16543       # object files and a static libstdc++, better avoid it by now
16544       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16545       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16546                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16547       hardcode_libdir_flag_spec_GCJ=
16548       hardcode_shlibpath_var_GCJ=no
16549       runpath_var='LD_RUN_PATH'
16550       ;;
16551
16552     uts4*)
16553       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16554       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16555       hardcode_shlibpath_var_GCJ=no
16556       ;;
16557
16558     *)
16559       ld_shlibs_GCJ=no
16560       ;;
16561     esac
16562   fi
16563
16564 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16565 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16566 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16567
16568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16569 if test "$GCC" = yes; then
16570   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16571 fi
16572
16573 #
16574 # Do we need to explicitly link libc?
16575 #
16576 case "x$archive_cmds_need_lc_GCJ" in
16577 x|xyes)
16578   # Assume -lc should be added
16579   archive_cmds_need_lc_GCJ=yes
16580
16581   if test "$enable_shared" = yes && test "$GCC" = yes; then
16582     case $archive_cmds_GCJ in
16583     *'~'*)
16584       # FIXME: we may have to deal with multi-command sequences.
16585       ;;
16586     '$CC '*)
16587       # Test whether the compiler implicitly links with -lc since on some
16588       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16589       # to ld, don't add -lc before -lgcc.
16590       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16591 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16592       $rm conftest*
16593       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16594
16595       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16596   (eval $ac_compile) 2>&5
16597   ac_status=$?
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); } 2>conftest.err; then
16600         soname=conftest
16601         lib=conftest
16602         libobjs=conftest.$ac_objext
16603         deplibs=
16604         wl=$lt_prog_compiler_wl_GCJ
16605         compiler_flags=-v
16606         linker_flags=-v
16607         verstring=
16608         output_objdir=.
16609         libname=conftest
16610         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16611         allow_undefined_flag_GCJ=
16612         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16613   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }
16617         then
16618           archive_cmds_need_lc_GCJ=no
16619         else
16620           archive_cmds_need_lc_GCJ=yes
16621         fi
16622         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16623       else
16624         cat conftest.err 1>&5
16625       fi
16626       $rm conftest*
16627       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16628 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16629       ;;
16630     esac
16631   fi
16632   ;;
16633 esac
16634
16635 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16636 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16637 library_names_spec=
16638 libname_spec='lib$name'
16639 soname_spec=
16640 shrext_cmds=".so"
16641 postinstall_cmds=
16642 postuninstall_cmds=
16643 finish_cmds=
16644 finish_eval=
16645 shlibpath_var=
16646 shlibpath_overrides_runpath=unknown
16647 version_type=none
16648 dynamic_linker="$host_os ld.so"
16649 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16650 if test "$GCC" = yes; then
16651   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16652   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16653     # if the path contains ";" then we assume it to be the separator
16654     # otherwise default to the standard path separator (i.e. ":") - it is
16655     # assumed that no part of a normal pathname contains ";" but that should
16656     # okay in the real world where ";" in dirpaths is itself problematic.
16657     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16658   else
16659     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16660   fi
16661 else
16662   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16663 fi
16664 need_lib_prefix=unknown
16665 hardcode_into_libs=no
16666
16667 # when you set need_version to no, make sure it does not cause -set_version
16668 # flags to be left without arguments
16669 need_version=unknown
16670
16671 case $host_os in
16672 aix3*)
16673   version_type=linux
16674   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16675   shlibpath_var=LIBPATH
16676
16677   # AIX 3 has no versioning support, so we append a major version to the name.
16678   soname_spec='${libname}${release}${shared_ext}$major'
16679   ;;
16680
16681 aix4* | aix5*)
16682   version_type=linux
16683   need_lib_prefix=no
16684   need_version=no
16685   hardcode_into_libs=yes
16686   if test "$host_cpu" = ia64; then
16687     # AIX 5 supports IA64
16688     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16689     shlibpath_var=LD_LIBRARY_PATH
16690   else
16691     # With GCC up to 2.95.x, collect2 would create an import file
16692     # for dependence libraries.  The import file would start with
16693     # the line `#! .'.  This would cause the generated library to
16694     # depend on `.', always an invalid library.  This was fixed in
16695     # development snapshots of GCC prior to 3.0.
16696     case $host_os in
16697       aix4 | aix4.[01] | aix4.[01].*)
16698       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16699            echo ' yes '
16700            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16701         :
16702       else
16703         can_build_shared=no
16704       fi
16705       ;;
16706     esac
16707     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16708     # soname into executable. Probably we can add versioning support to
16709     # collect2, so additional links can be useful in future.
16710     if test "$aix_use_runtimelinking" = yes; then
16711       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16712       # instead of lib<name>.a to let people know that these are not
16713       # typical AIX shared libraries.
16714       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715     else
16716       # We preserve .a as extension for shared libraries through AIX4.2
16717       # and later when we are not doing run time linking.
16718       library_names_spec='${libname}${release}.a $libname.a'
16719       soname_spec='${libname}${release}${shared_ext}$major'
16720     fi
16721     shlibpath_var=LIBPATH
16722   fi
16723   ;;
16724
16725 amigaos*)
16726   library_names_spec='$libname.ixlibrary $libname.a'
16727   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16728   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'
16729   ;;
16730
16731 beos*)
16732   library_names_spec='${libname}${shared_ext}'
16733   dynamic_linker="$host_os ld.so"
16734   shlibpath_var=LIBRARY_PATH
16735   ;;
16736
16737 bsdi[45]*)
16738   version_type=linux
16739   need_version=no
16740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741   soname_spec='${libname}${release}${shared_ext}$major'
16742   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16743   shlibpath_var=LD_LIBRARY_PATH
16744   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16745   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16746   # the default ld.so.conf also contains /usr/contrib/lib and
16747   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16748   # libtool to hard-code these into programs
16749   ;;
16750
16751 cygwin* | mingw* | pw32*)
16752   version_type=windows
16753   shrext_cmds=".dll"
16754   need_version=no
16755   need_lib_prefix=no
16756
16757   case $GCC,$host_os in
16758   yes,cygwin* | yes,mingw* | yes,pw32*)
16759     library_names_spec='$libname.dll.a'
16760     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16761     postinstall_cmds='base_file=`basename \${file}`~
16762       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16763       dldir=$destdir/`dirname \$dlpath`~
16764       test -d \$dldir || mkdir -p \$dldir~
16765       $install_prog $dir/$dlname \$dldir/$dlname~
16766       chmod a+x \$dldir/$dlname'
16767     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16768       dlpath=$dir/\$dldll~
16769        $rm \$dlpath'
16770     shlibpath_overrides_runpath=yes
16771
16772     case $host_os in
16773     cygwin*)
16774       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16775       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16776       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16777       ;;
16778     mingw*)
16779       # MinGW DLLs use traditional 'lib' prefix
16780       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16781       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16782       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16783         # It is most probably a Windows format PATH printed by
16784         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16785         # path with ; separators, and with drive letters. We can handle the
16786         # drive letters (cygwin fileutils understands them), so leave them,
16787         # especially as we might pass files found there to a mingw objdump,
16788         # which wouldn't understand a cygwinified path. Ahh.
16789         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16790       else
16791         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16792       fi
16793       ;;
16794     pw32*)
16795       # pw32 DLLs use 'pw' prefix rather than 'lib'
16796       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16797       ;;
16798     esac
16799     ;;
16800
16801   *)
16802     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16803     ;;
16804   esac
16805   dynamic_linker='Win32 ld.exe'
16806   # FIXME: first we should search . and the directory the executable is in
16807   shlibpath_var=PATH
16808   ;;
16809
16810 darwin* | rhapsody*)
16811   dynamic_linker="$host_os dyld"
16812   version_type=darwin
16813   need_lib_prefix=no
16814   need_version=no
16815   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16816   soname_spec='${libname}${release}${major}$shared_ext'
16817   shlibpath_overrides_runpath=yes
16818   shlibpath_var=DYLD_LIBRARY_PATH
16819   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16820   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16821   if test "$GCC" = yes; then
16822     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"`
16823   else
16824     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16825   fi
16826   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16827   ;;
16828
16829 dgux*)
16830   version_type=linux
16831   need_lib_prefix=no
16832   need_version=no
16833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16834   soname_spec='${libname}${release}${shared_ext}$major'
16835   shlibpath_var=LD_LIBRARY_PATH
16836   ;;
16837
16838 freebsd1*)
16839   dynamic_linker=no
16840   ;;
16841
16842 kfreebsd*-gnu)
16843   version_type=linux
16844   need_lib_prefix=no
16845   need_version=no
16846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16847   soname_spec='${libname}${release}${shared_ext}$major'
16848   shlibpath_var=LD_LIBRARY_PATH
16849   shlibpath_overrides_runpath=no
16850   hardcode_into_libs=yes
16851   dynamic_linker='GNU ld.so'
16852   ;;
16853
16854 freebsd* | dragonfly*)
16855   # DragonFly does not have aout.  When/if they implement a new
16856   # versioning mechanism, adjust this.
16857   if test -x /usr/bin/objformat; then
16858     objformat=`/usr/bin/objformat`
16859   else
16860     case $host_os in
16861     freebsd[123]*) objformat=aout ;;
16862     *) objformat=elf ;;
16863     esac
16864   fi
16865   version_type=freebsd-$objformat
16866   case $version_type in
16867     freebsd-elf*)
16868       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16869       need_version=no
16870       need_lib_prefix=no
16871       ;;
16872     freebsd-*)
16873       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16874       need_version=yes
16875       ;;
16876   esac
16877   shlibpath_var=LD_LIBRARY_PATH
16878   case $host_os in
16879   freebsd2*)
16880     shlibpath_overrides_runpath=yes
16881     ;;
16882   freebsd3.[01]* | freebsdelf3.[01]*)
16883     shlibpath_overrides_runpath=yes
16884     hardcode_into_libs=yes
16885     ;;
16886   *) # from 3.2 on
16887     shlibpath_overrides_runpath=no
16888     hardcode_into_libs=yes
16889     ;;
16890   esac
16891   ;;
16892
16893 gnu*)
16894   version_type=linux
16895   need_lib_prefix=no
16896   need_version=no
16897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16898   soname_spec='${libname}${release}${shared_ext}$major'
16899   shlibpath_var=LD_LIBRARY_PATH
16900   hardcode_into_libs=yes
16901   ;;
16902
16903 hpux9* | hpux10* | hpux11*)
16904   # Give a soname corresponding to the major version so that dld.sl refuses to
16905   # link against other versions.
16906   version_type=sunos
16907   need_lib_prefix=no
16908   need_version=no
16909   case $host_cpu in
16910   ia64*)
16911     shrext_cmds='.so'
16912     hardcode_into_libs=yes
16913     dynamic_linker="$host_os dld.so"
16914     shlibpath_var=LD_LIBRARY_PATH
16915     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16916     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917     soname_spec='${libname}${release}${shared_ext}$major'
16918     if test "X$HPUX_IA64_MODE" = X32; then
16919       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16920     else
16921       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16922     fi
16923     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16924     ;;
16925    hppa*64*)
16926      shrext_cmds='.sl'
16927      hardcode_into_libs=yes
16928      dynamic_linker="$host_os dld.sl"
16929      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16930      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16931      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932      soname_spec='${libname}${release}${shared_ext}$major'
16933      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16934      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16935      ;;
16936    *)
16937     shrext_cmds='.sl'
16938     dynamic_linker="$host_os dld.sl"
16939     shlibpath_var=SHLIB_PATH
16940     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942     soname_spec='${libname}${release}${shared_ext}$major'
16943     ;;
16944   esac
16945   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16946   postinstall_cmds='chmod 555 $lib'
16947   ;;
16948
16949 irix5* | irix6* | nonstopux*)
16950   case $host_os in
16951     nonstopux*) version_type=nonstopux ;;
16952     *)
16953         if test "$lt_cv_prog_gnu_ld" = yes; then
16954                 version_type=linux
16955         else
16956                 version_type=irix
16957         fi ;;
16958   esac
16959   need_lib_prefix=no
16960   need_version=no
16961   soname_spec='${libname}${release}${shared_ext}$major'
16962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16963   case $host_os in
16964   irix5* | nonstopux*)
16965     libsuff= shlibsuff=
16966     ;;
16967   *)
16968     case $LD in # libtool.m4 will add one of these switches to LD
16969     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16970       libsuff= shlibsuff= libmagic=32-bit;;
16971     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16972       libsuff=32 shlibsuff=N32 libmagic=N32;;
16973     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16974       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16975     *) libsuff= shlibsuff= libmagic=never-match;;
16976     esac
16977     ;;
16978   esac
16979   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16980   shlibpath_overrides_runpath=no
16981   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16982   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16983   hardcode_into_libs=yes
16984   ;;
16985
16986 # No shared lib support for Linux oldld, aout, or coff.
16987 linux*oldld* | linux*aout* | linux*coff*)
16988   dynamic_linker=no
16989   ;;
16990
16991 # This must be Linux ELF.
16992 linux*)
16993   version_type=linux
16994   need_lib_prefix=no
16995   need_version=no
16996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997   soname_spec='${libname}${release}${shared_ext}$major'
16998   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16999   shlibpath_var=LD_LIBRARY_PATH
17000   shlibpath_overrides_runpath=no
17001   # This implies no fast_install, which is unacceptable.
17002   # Some rework will be needed to allow for fast_install
17003   # before this can be enabled.
17004   hardcode_into_libs=yes
17005
17006   # Append ld.so.conf contents to the search path
17007   if test -f /etc/ld.so.conf; then
17008     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17009     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17010   fi
17011
17012   # We used to test for /lib/ld.so.1 and disable shared libraries on
17013   # powerpc, because MkLinux only supported shared libraries with the
17014   # GNU dynamic linker.  Since this was broken with cross compilers,
17015   # most powerpc-linux boxes support dynamic linking these days and
17016   # people can always --disable-shared, the test was removed, and we
17017   # assume the GNU/Linux dynamic linker is in use.
17018   dynamic_linker='GNU/Linux ld.so'
17019   ;;
17020
17021 knetbsd*-gnu)
17022   version_type=linux
17023   need_lib_prefix=no
17024   need_version=no
17025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17026   soname_spec='${libname}${release}${shared_ext}$major'
17027   shlibpath_var=LD_LIBRARY_PATH
17028   shlibpath_overrides_runpath=no
17029   hardcode_into_libs=yes
17030   dynamic_linker='GNU ld.so'
17031   ;;
17032
17033 netbsd*)
17034   version_type=sunos
17035   need_lib_prefix=no
17036   need_version=no
17037   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17038     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17039     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17040     dynamic_linker='NetBSD (a.out) ld.so'
17041   else
17042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17043     soname_spec='${libname}${release}${shared_ext}$major'
17044     dynamic_linker='NetBSD ld.elf_so'
17045   fi
17046   shlibpath_var=LD_LIBRARY_PATH
17047   shlibpath_overrides_runpath=yes
17048   hardcode_into_libs=yes
17049   ;;
17050
17051 newsos6)
17052   version_type=linux
17053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17054   shlibpath_var=LD_LIBRARY_PATH
17055   shlibpath_overrides_runpath=yes
17056   ;;
17057
17058 nto-qnx*)
17059   version_type=linux
17060   need_lib_prefix=no
17061   need_version=no
17062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063   soname_spec='${libname}${release}${shared_ext}$major'
17064   shlibpath_var=LD_LIBRARY_PATH
17065   shlibpath_overrides_runpath=yes
17066   ;;
17067
17068 openbsd*)
17069   version_type=sunos
17070   need_lib_prefix=no
17071   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17072   case $host_os in
17073     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17074     *)                         need_version=no  ;;
17075   esac
17076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17077   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17078   shlibpath_var=LD_LIBRARY_PATH
17079   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17080     case $host_os in
17081       openbsd2.[89] | openbsd2.[89].*)
17082         shlibpath_overrides_runpath=no
17083         ;;
17084       *)
17085         shlibpath_overrides_runpath=yes
17086         ;;
17087       esac
17088   else
17089     shlibpath_overrides_runpath=yes
17090   fi
17091   ;;
17092
17093 os2*)
17094   libname_spec='$name'
17095   shrext_cmds=".dll"
17096   need_lib_prefix=no
17097   library_names_spec='$libname${shared_ext} $libname.a'
17098   dynamic_linker='OS/2 ld.exe'
17099   shlibpath_var=LIBPATH
17100   ;;
17101
17102 osf3* | osf4* | osf5*)
17103   version_type=osf
17104   need_lib_prefix=no
17105   need_version=no
17106   soname_spec='${libname}${release}${shared_ext}$major'
17107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108   shlibpath_var=LD_LIBRARY_PATH
17109   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17110   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17111   ;;
17112
17113 sco3.2v5*)
17114   version_type=osf
17115   soname_spec='${libname}${release}${shared_ext}$major'
17116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117   shlibpath_var=LD_LIBRARY_PATH
17118   ;;
17119
17120 solaris*)
17121   version_type=linux
17122   need_lib_prefix=no
17123   need_version=no
17124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125   soname_spec='${libname}${release}${shared_ext}$major'
17126   shlibpath_var=LD_LIBRARY_PATH
17127   shlibpath_overrides_runpath=yes
17128   hardcode_into_libs=yes
17129   # ldd complains unless libraries are executable
17130   postinstall_cmds='chmod +x $lib'
17131   ;;
17132
17133 sunos4*)
17134   version_type=sunos
17135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17136   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17137   shlibpath_var=LD_LIBRARY_PATH
17138   shlibpath_overrides_runpath=yes
17139   if test "$with_gnu_ld" = yes; then
17140     need_lib_prefix=no
17141   fi
17142   need_version=yes
17143   ;;
17144
17145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17146   version_type=linux
17147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148   soname_spec='${libname}${release}${shared_ext}$major'
17149   shlibpath_var=LD_LIBRARY_PATH
17150   case $host_vendor in
17151     sni)
17152       shlibpath_overrides_runpath=no
17153       need_lib_prefix=no
17154       export_dynamic_flag_spec='${wl}-Blargedynsym'
17155       runpath_var=LD_RUN_PATH
17156       ;;
17157     siemens)
17158       need_lib_prefix=no
17159       ;;
17160     motorola)
17161       need_lib_prefix=no
17162       need_version=no
17163       shlibpath_overrides_runpath=no
17164       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17165       ;;
17166   esac
17167   ;;
17168
17169 sysv4*MP*)
17170   if test -d /usr/nec ;then
17171     version_type=linux
17172     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17173     soname_spec='$libname${shared_ext}.$major'
17174     shlibpath_var=LD_LIBRARY_PATH
17175   fi
17176   ;;
17177
17178 uts4*)
17179   version_type=linux
17180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181   soname_spec='${libname}${release}${shared_ext}$major'
17182   shlibpath_var=LD_LIBRARY_PATH
17183   ;;
17184
17185 *)
17186   dynamic_linker=no
17187   ;;
17188 esac
17189 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17190 echo "${ECHO_T}$dynamic_linker" >&6
17191 test "$dynamic_linker" = no && can_build_shared=no
17192
17193 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17194 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17195 hardcode_action_GCJ=
17196 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17197    test -n "$runpath_var_GCJ" || \
17198    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17199
17200   # We can hardcode non-existant directories.
17201   if test "$hardcode_direct_GCJ" != no &&
17202      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17203      # have to relink, otherwise we might link with an installed library
17204      # when we should be linking with a yet-to-be-installed one
17205      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17206      test "$hardcode_minus_L_GCJ" != no; then
17207     # Linking always hardcodes the temporary library directory.
17208     hardcode_action_GCJ=relink
17209   else
17210     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17211     hardcode_action_GCJ=immediate
17212   fi
17213 else
17214   # We cannot hardcode anything, or else we can only hardcode existing
17215   # directories.
17216   hardcode_action_GCJ=unsupported
17217 fi
17218 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17219 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17220
17221 if test "$hardcode_action_GCJ" = relink; then
17222   # Fast installation is not supported
17223   enable_fast_install=no
17224 elif test "$shlibpath_overrides_runpath" = yes ||
17225      test "$enable_shared" = no; then
17226   # Fast installation is not necessary
17227   enable_fast_install=needless
17228 fi
17229
17230 striplib=
17231 old_striplib=
17232 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17233 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17234 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17235   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17236   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17237   echo "$as_me:$LINENO: result: yes" >&5
17238 echo "${ECHO_T}yes" >&6
17239 else
17240 # FIXME - insert some real tests, host_os isn't really good enough
17241   case $host_os in
17242    darwin*)
17243        if test -n "$STRIP" ; then
17244          striplib="$STRIP -x"
17245          echo "$as_me:$LINENO: result: yes" >&5
17246 echo "${ECHO_T}yes" >&6
17247        else
17248   echo "$as_me:$LINENO: result: no" >&5
17249 echo "${ECHO_T}no" >&6
17250 fi
17251        ;;
17252    *)
17253   echo "$as_me:$LINENO: result: no" >&5
17254 echo "${ECHO_T}no" >&6
17255     ;;
17256   esac
17257 fi
17258
17259 if test "x$enable_dlopen" != xyes; then
17260   enable_dlopen=unknown
17261   enable_dlopen_self=unknown
17262   enable_dlopen_self_static=unknown
17263 else
17264   lt_cv_dlopen=no
17265   lt_cv_dlopen_libs=
17266
17267   case $host_os in
17268   beos*)
17269     lt_cv_dlopen="load_add_on"
17270     lt_cv_dlopen_libs=
17271     lt_cv_dlopen_self=yes
17272     ;;
17273
17274   mingw* | pw32*)
17275     lt_cv_dlopen="LoadLibrary"
17276     lt_cv_dlopen_libs=
17277    ;;
17278
17279   cygwin*)
17280     lt_cv_dlopen="dlopen"
17281     lt_cv_dlopen_libs=
17282    ;;
17283
17284   darwin*)
17285   # if libdl is installed we need to link against it
17286     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17287 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17288 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17289   echo $ECHO_N "(cached) $ECHO_C" >&6
17290 else
17291   ac_check_lib_save_LIBS=$LIBS
17292 LIBS="-ldl  $LIBS"
17293 cat >conftest.$ac_ext <<_ACEOF
17294 /* confdefs.h.  */
17295 _ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h.  */
17299
17300 /* Override any gcc2 internal prototype to avoid an error.  */
17301 #ifdef __cplusplus
17302 extern "C"
17303 #endif
17304 /* We use char because int might match the return type of a gcc2
17305    builtin and then its argument prototype would still apply.  */
17306 char dlopen ();
17307 int
17308 main ()
17309 {
17310 dlopen ();
17311   ;
17312   return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17317   (eval $ac_link) 2>conftest.er1
17318   ac_status=$?
17319   grep -v '^ *+' conftest.er1 >conftest.err
17320   rm -f conftest.er1
17321   cat conftest.err >&5
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); } &&
17324          { ac_try='test -z "$ac_c_werror_flag"
17325                          || test ! -s conftest.err'
17326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327   (eval $ac_try) 2>&5
17328   ac_status=$?
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); }; } &&
17331          { ac_try='test -s conftest$ac_exeext'
17332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333   (eval $ac_try) 2>&5
17334   ac_status=$?
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); }; }; then
17337   ac_cv_lib_dl_dlopen=yes
17338 else
17339   echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17341
17342 ac_cv_lib_dl_dlopen=no
17343 fi
17344 rm -f conftest.err conftest.$ac_objext \
17345       conftest$ac_exeext conftest.$ac_ext
17346 LIBS=$ac_check_lib_save_LIBS
17347 fi
17348 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17349 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17350 if test $ac_cv_lib_dl_dlopen = yes; then
17351   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17352 else
17353
17354     lt_cv_dlopen="dyld"
17355     lt_cv_dlopen_libs=
17356     lt_cv_dlopen_self=yes
17357
17358 fi
17359
17360    ;;
17361
17362   *)
17363     echo "$as_me:$LINENO: checking for shl_load" >&5
17364 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17365 if test "${ac_cv_func_shl_load+set}" = set; then
17366   echo $ECHO_N "(cached) $ECHO_C" >&6
17367 else
17368   cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h.  */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h.  */
17374 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17376 #define shl_load innocuous_shl_load
17377
17378 /* System header to define __stub macros and hopefully few prototypes,
17379     which can conflict with char shl_load (); below.
17380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381     <limits.h> exists even on freestanding compilers.  */
17382
17383 #ifdef __STDC__
17384 # include <limits.h>
17385 #else
17386 # include <assert.h>
17387 #endif
17388
17389 #undef shl_load
17390
17391 /* Override any gcc2 internal prototype to avoid an error.  */
17392 #ifdef __cplusplus
17393 extern "C"
17394 {
17395 #endif
17396 /* We use char because int might match the return type of a gcc2
17397    builtin and then its argument prototype would still apply.  */
17398 char shl_load ();
17399 /* The GNU C library defines this for functions which it implements
17400     to always fail with ENOSYS.  Some functions are actually named
17401     something starting with __ and the normal name is an alias.  */
17402 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17403 choke me
17404 #else
17405 char (*f) () = shl_load;
17406 #endif
17407 #ifdef __cplusplus
17408 }
17409 #endif
17410
17411 int
17412 main ()
17413 {
17414 return f != shl_load;
17415   ;
17416   return 0;
17417 }
17418 _ACEOF
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421   (eval $ac_link) 2>conftest.er1
17422   ac_status=$?
17423   grep -v '^ *+' conftest.er1 >conftest.err
17424   rm -f conftest.er1
17425   cat conftest.err >&5
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); } &&
17428          { ac_try='test -z "$ac_c_werror_flag"
17429                          || test ! -s conftest.err'
17430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431   (eval $ac_try) 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); }; } &&
17435          { ac_try='test -s conftest$ac_exeext'
17436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437   (eval $ac_try) 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); }; }; then
17441   ac_cv_func_shl_load=yes
17442 else
17443   echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17445
17446 ac_cv_func_shl_load=no
17447 fi
17448 rm -f conftest.err conftest.$ac_objext \
17449       conftest$ac_exeext conftest.$ac_ext
17450 fi
17451 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17452 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17453 if test $ac_cv_func_shl_load = yes; then
17454   lt_cv_dlopen="shl_load"
17455 else
17456   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17457 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17458 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17459   echo $ECHO_N "(cached) $ECHO_C" >&6
17460 else
17461   ac_check_lib_save_LIBS=$LIBS
17462 LIBS="-ldld  $LIBS"
17463 cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h.  */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h.  */
17469
17470 /* Override any gcc2 internal prototype to avoid an error.  */
17471 #ifdef __cplusplus
17472 extern "C"
17473 #endif
17474 /* We use char because int might match the return type of a gcc2
17475    builtin and then its argument prototype would still apply.  */
17476 char shl_load ();
17477 int
17478 main ()
17479 {
17480 shl_load ();
17481   ;
17482   return 0;
17483 }
17484 _ACEOF
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17487   (eval $ac_link) 2>conftest.er1
17488   ac_status=$?
17489   grep -v '^ *+' conftest.er1 >conftest.err
17490   rm -f conftest.er1
17491   cat conftest.err >&5
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   (exit $ac_status); } &&
17494          { ac_try='test -z "$ac_c_werror_flag"
17495                          || test ! -s conftest.err'
17496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497   (eval $ac_try) 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; } &&
17501          { ac_try='test -s conftest$ac_exeext'
17502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503   (eval $ac_try) 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); }; }; then
17507   ac_cv_lib_dld_shl_load=yes
17508 else
17509   echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17511
17512 ac_cv_lib_dld_shl_load=no
17513 fi
17514 rm -f conftest.err conftest.$ac_objext \
17515       conftest$ac_exeext conftest.$ac_ext
17516 LIBS=$ac_check_lib_save_LIBS
17517 fi
17518 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17519 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17520 if test $ac_cv_lib_dld_shl_load = yes; then
17521   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17522 else
17523   echo "$as_me:$LINENO: checking for dlopen" >&5
17524 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17525 if test "${ac_cv_func_dlopen+set}" = set; then
17526   echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528   cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h.  */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h.  */
17534 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17536 #define dlopen innocuous_dlopen
17537
17538 /* System header to define __stub macros and hopefully few prototypes,
17539     which can conflict with char dlopen (); below.
17540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17541     <limits.h> exists even on freestanding compilers.  */
17542
17543 #ifdef __STDC__
17544 # include <limits.h>
17545 #else
17546 # include <assert.h>
17547 #endif
17548
17549 #undef dlopen
17550
17551 /* Override any gcc2 internal prototype to avoid an error.  */
17552 #ifdef __cplusplus
17553 extern "C"
17554 {
17555 #endif
17556 /* We use char because int might match the return type of a gcc2
17557    builtin and then its argument prototype would still apply.  */
17558 char dlopen ();
17559 /* The GNU C library defines this for functions which it implements
17560     to always fail with ENOSYS.  Some functions are actually named
17561     something starting with __ and the normal name is an alias.  */
17562 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17563 choke me
17564 #else
17565 char (*f) () = dlopen;
17566 #endif
17567 #ifdef __cplusplus
17568 }
17569 #endif
17570
17571 int
17572 main ()
17573 {
17574 return f != dlopen;
17575   ;
17576   return 0;
17577 }
17578 _ACEOF
17579 rm -f conftest.$ac_objext conftest$ac_exeext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17581   (eval $ac_link) 2>conftest.er1
17582   ac_status=$?
17583   grep -v '^ *+' conftest.er1 >conftest.err
17584   rm -f conftest.er1
17585   cat conftest.err >&5
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); } &&
17588          { ac_try='test -z "$ac_c_werror_flag"
17589                          || test ! -s conftest.err'
17590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591   (eval $ac_try) 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); }; } &&
17595          { ac_try='test -s conftest$ac_exeext'
17596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597   (eval $ac_try) 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; }; then
17601   ac_cv_func_dlopen=yes
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 ac_cv_func_dlopen=no
17607 fi
17608 rm -f conftest.err conftest.$ac_objext \
17609       conftest$ac_exeext conftest.$ac_ext
17610 fi
17611 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17612 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17613 if test $ac_cv_func_dlopen = yes; then
17614   lt_cv_dlopen="dlopen"
17615 else
17616   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17617 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17618 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17619   echo $ECHO_N "(cached) $ECHO_C" >&6
17620 else
17621   ac_check_lib_save_LIBS=$LIBS
17622 LIBS="-ldl  $LIBS"
17623 cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h.  */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h.  */
17629
17630 /* Override any gcc2 internal prototype to avoid an error.  */
17631 #ifdef __cplusplus
17632 extern "C"
17633 #endif
17634 /* We use char because int might match the return type of a gcc2
17635    builtin and then its argument prototype would still apply.  */
17636 char dlopen ();
17637 int
17638 main ()
17639 {
17640 dlopen ();
17641   ;
17642   return 0;
17643 }
17644 _ACEOF
17645 rm -f conftest.$ac_objext conftest$ac_exeext
17646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17647   (eval $ac_link) 2>conftest.er1
17648   ac_status=$?
17649   grep -v '^ *+' conftest.er1 >conftest.err
17650   rm -f conftest.er1
17651   cat conftest.err >&5
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); } &&
17654          { ac_try='test -z "$ac_c_werror_flag"
17655                          || test ! -s conftest.err'
17656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657   (eval $ac_try) 2>&5
17658   ac_status=$?
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); }; } &&
17661          { ac_try='test -s conftest$ac_exeext'
17662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663   (eval $ac_try) 2>&5
17664   ac_status=$?
17665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); }; }; then
17667   ac_cv_lib_dl_dlopen=yes
17668 else
17669   echo "$as_me: failed program was:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17671
17672 ac_cv_lib_dl_dlopen=no
17673 fi
17674 rm -f conftest.err conftest.$ac_objext \
17675       conftest$ac_exeext conftest.$ac_ext
17676 LIBS=$ac_check_lib_save_LIBS
17677 fi
17678 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17679 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17680 if test $ac_cv_lib_dl_dlopen = yes; then
17681   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17682 else
17683   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17684 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17685 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688   ac_check_lib_save_LIBS=$LIBS
17689 LIBS="-lsvld  $LIBS"
17690 cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h.  */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h.  */
17696
17697 /* Override any gcc2 internal prototype to avoid an error.  */
17698 #ifdef __cplusplus
17699 extern "C"
17700 #endif
17701 /* We use char because int might match the return type of a gcc2
17702    builtin and then its argument prototype would still apply.  */
17703 char dlopen ();
17704 int
17705 main ()
17706 {
17707 dlopen ();
17708   ;
17709   return 0;
17710 }
17711 _ACEOF
17712 rm -f conftest.$ac_objext conftest$ac_exeext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714   (eval $ac_link) 2>conftest.er1
17715   ac_status=$?
17716   grep -v '^ *+' conftest.er1 >conftest.err
17717   rm -f conftest.er1
17718   cat conftest.err >&5
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } &&
17721          { ac_try='test -z "$ac_c_werror_flag"
17722                          || test ! -s conftest.err'
17723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724   (eval $ac_try) 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); }; } &&
17728          { ac_try='test -s conftest$ac_exeext'
17729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730   (eval $ac_try) 2>&5
17731   ac_status=$?
17732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733   (exit $ac_status); }; }; then
17734   ac_cv_lib_svld_dlopen=yes
17735 else
17736   echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17738
17739 ac_cv_lib_svld_dlopen=no
17740 fi
17741 rm -f conftest.err conftest.$ac_objext \
17742       conftest$ac_exeext conftest.$ac_ext
17743 LIBS=$ac_check_lib_save_LIBS
17744 fi
17745 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17746 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17747 if test $ac_cv_lib_svld_dlopen = yes; then
17748   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17749 else
17750   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17751 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17752 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17753   echo $ECHO_N "(cached) $ECHO_C" >&6
17754 else
17755   ac_check_lib_save_LIBS=$LIBS
17756 LIBS="-ldld  $LIBS"
17757 cat >conftest.$ac_ext <<_ACEOF
17758 /* confdefs.h.  */
17759 _ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h.  */
17763
17764 /* Override any gcc2 internal prototype to avoid an error.  */
17765 #ifdef __cplusplus
17766 extern "C"
17767 #endif
17768 /* We use char because int might match the return type of a gcc2
17769    builtin and then its argument prototype would still apply.  */
17770 char dld_link ();
17771 int
17772 main ()
17773 {
17774 dld_link ();
17775   ;
17776   return 0;
17777 }
17778 _ACEOF
17779 rm -f conftest.$ac_objext conftest$ac_exeext
17780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17781   (eval $ac_link) 2>conftest.er1
17782   ac_status=$?
17783   grep -v '^ *+' conftest.er1 >conftest.err
17784   rm -f conftest.er1
17785   cat conftest.err >&5
17786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787   (exit $ac_status); } &&
17788          { ac_try='test -z "$ac_c_werror_flag"
17789                          || test ! -s conftest.err'
17790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791   (eval $ac_try) 2>&5
17792   ac_status=$?
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); }; } &&
17795          { ac_try='test -s conftest$ac_exeext'
17796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797   (eval $ac_try) 2>&5
17798   ac_status=$?
17799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); }; }; then
17801   ac_cv_lib_dld_dld_link=yes
17802 else
17803   echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17805
17806 ac_cv_lib_dld_dld_link=no
17807 fi
17808 rm -f conftest.err conftest.$ac_objext \
17809       conftest$ac_exeext conftest.$ac_ext
17810 LIBS=$ac_check_lib_save_LIBS
17811 fi
17812 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17813 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17814 if test $ac_cv_lib_dld_dld_link = yes; then
17815   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17816 fi
17817
17818
17819 fi
17820
17821
17822 fi
17823
17824
17825 fi
17826
17827
17828 fi
17829
17830
17831 fi
17832
17833     ;;
17834   esac
17835
17836   if test "x$lt_cv_dlopen" != xno; then
17837     enable_dlopen=yes
17838   else
17839     enable_dlopen=no
17840   fi
17841
17842   case $lt_cv_dlopen in
17843   dlopen)
17844     save_CPPFLAGS="$CPPFLAGS"
17845     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17846
17847     save_LDFLAGS="$LDFLAGS"
17848     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17849
17850     save_LIBS="$LIBS"
17851     LIBS="$lt_cv_dlopen_libs $LIBS"
17852
17853     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17854 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17855 if test "${lt_cv_dlopen_self+set}" = set; then
17856   echo $ECHO_N "(cached) $ECHO_C" >&6
17857 else
17858           if test "$cross_compiling" = yes; then :
17859   lt_cv_dlopen_self=cross
17860 else
17861   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17862   lt_status=$lt_dlunknown
17863   cat > conftest.$ac_ext <<EOF
17864 #line 17864 "configure"
17865 #include "confdefs.h"
17866
17867 #if HAVE_DLFCN_H
17868 #include <dlfcn.h>
17869 #endif
17870
17871 #include <stdio.h>
17872
17873 #ifdef RTLD_GLOBAL
17874 #  define LT_DLGLOBAL           RTLD_GLOBAL
17875 #else
17876 #  ifdef DL_GLOBAL
17877 #    define LT_DLGLOBAL         DL_GLOBAL
17878 #  else
17879 #    define LT_DLGLOBAL         0
17880 #  endif
17881 #endif
17882
17883 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17884    find out it does not work in some platform. */
17885 #ifndef LT_DLLAZY_OR_NOW
17886 #  ifdef RTLD_LAZY
17887 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17888 #  else
17889 #    ifdef DL_LAZY
17890 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17891 #    else
17892 #      ifdef RTLD_NOW
17893 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17894 #      else
17895 #        ifdef DL_NOW
17896 #          define LT_DLLAZY_OR_NOW      DL_NOW
17897 #        else
17898 #          define LT_DLLAZY_OR_NOW      0
17899 #        endif
17900 #      endif
17901 #    endif
17902 #  endif
17903 #endif
17904
17905 #ifdef __cplusplus
17906 extern "C" void exit (int);
17907 #endif
17908
17909 void fnord() { int i=42;}
17910 int main ()
17911 {
17912   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17913   int status = $lt_dlunknown;
17914
17915   if (self)
17916     {
17917       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17918       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17919       /* dlclose (self); */
17920     }
17921
17922     exit (status);
17923 }
17924 EOF
17925   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17926   (eval $ac_link) 2>&5
17927   ac_status=$?
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17930     (./conftest; exit; ) >&5 2>/dev/null
17931     lt_status=$?
17932     case x$lt_status in
17933       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17934       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17935       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17936     esac
17937   else :
17938     # compilation failed
17939     lt_cv_dlopen_self=no
17940   fi
17941 fi
17942 rm -fr conftest*
17943
17944
17945 fi
17946 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17947 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17948
17949     if test "x$lt_cv_dlopen_self" = xyes; then
17950       LDFLAGS="$LDFLAGS $link_static_flag"
17951       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17952 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17953 if test "${lt_cv_dlopen_self_static+set}" = set; then
17954   echo $ECHO_N "(cached) $ECHO_C" >&6
17955 else
17956           if test "$cross_compiling" = yes; then :
17957   lt_cv_dlopen_self_static=cross
17958 else
17959   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17960   lt_status=$lt_dlunknown
17961   cat > conftest.$ac_ext <<EOF
17962 #line 17962 "configure"
17963 #include "confdefs.h"
17964
17965 #if HAVE_DLFCN_H
17966 #include <dlfcn.h>
17967 #endif
17968
17969 #include <stdio.h>
17970
17971 #ifdef RTLD_GLOBAL
17972 #  define LT_DLGLOBAL           RTLD_GLOBAL
17973 #else
17974 #  ifdef DL_GLOBAL
17975 #    define LT_DLGLOBAL         DL_GLOBAL
17976 #  else
17977 #    define LT_DLGLOBAL         0
17978 #  endif
17979 #endif
17980
17981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17982    find out it does not work in some platform. */
17983 #ifndef LT_DLLAZY_OR_NOW
17984 #  ifdef RTLD_LAZY
17985 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17986 #  else
17987 #    ifdef DL_LAZY
17988 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17989 #    else
17990 #      ifdef RTLD_NOW
17991 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17992 #      else
17993 #        ifdef DL_NOW
17994 #          define LT_DLLAZY_OR_NOW      DL_NOW
17995 #        else
17996 #          define LT_DLLAZY_OR_NOW      0
17997 #        endif
17998 #      endif
17999 #    endif
18000 #  endif
18001 #endif
18002
18003 #ifdef __cplusplus
18004 extern "C" void exit (int);
18005 #endif
18006
18007 void fnord() { int i=42;}
18008 int main ()
18009 {
18010   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18011   int status = $lt_dlunknown;
18012
18013   if (self)
18014     {
18015       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18016       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18017       /* dlclose (self); */
18018     }
18019
18020     exit (status);
18021 }
18022 EOF
18023   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18024   (eval $ac_link) 2>&5
18025   ac_status=$?
18026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18028     (./conftest; exit; ) >&5 2>/dev/null
18029     lt_status=$?
18030     case x$lt_status in
18031       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18032       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18033       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18034     esac
18035   else :
18036     # compilation failed
18037     lt_cv_dlopen_self_static=no
18038   fi
18039 fi
18040 rm -fr conftest*
18041
18042
18043 fi
18044 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18045 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18046     fi
18047
18048     CPPFLAGS="$save_CPPFLAGS"
18049     LDFLAGS="$save_LDFLAGS"
18050     LIBS="$save_LIBS"
18051     ;;
18052   esac
18053
18054   case $lt_cv_dlopen_self in
18055   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18056   *) enable_dlopen_self=unknown ;;
18057   esac
18058
18059   case $lt_cv_dlopen_self_static in
18060   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18061   *) enable_dlopen_self_static=unknown ;;
18062   esac
18063 fi
18064
18065
18066 # The else clause should only fire when bootstrapping the
18067 # libtool distribution, otherwise you forgot to ship ltmain.sh
18068 # with your package, and you will get complaints that there are
18069 # no rules to generate ltmain.sh.
18070 if test -f "$ltmain"; then
18071   # See if we are running on zsh, and set the options which allow our commands through
18072   # without removal of \ escapes.
18073   if test -n "${ZSH_VERSION+set}" ; then
18074     setopt NO_GLOB_SUBST
18075   fi
18076   # Now quote all the things that may contain metacharacters while being
18077   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18078   # variables and quote the copies for generation of the libtool script.
18079   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18080     SED SHELL STRIP \
18081     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18082     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18083     deplibs_check_method reload_flag reload_cmds need_locks \
18084     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18085     lt_cv_sys_global_symbol_to_c_name_address \
18086     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18087     old_postinstall_cmds old_postuninstall_cmds \
18088     compiler_GCJ \
18089     CC_GCJ \
18090     LD_GCJ \
18091     lt_prog_compiler_wl_GCJ \
18092     lt_prog_compiler_pic_GCJ \
18093     lt_prog_compiler_static_GCJ \
18094     lt_prog_compiler_no_builtin_flag_GCJ \
18095     export_dynamic_flag_spec_GCJ \
18096     thread_safe_flag_spec_GCJ \
18097     whole_archive_flag_spec_GCJ \
18098     enable_shared_with_static_runtimes_GCJ \
18099     old_archive_cmds_GCJ \
18100     old_archive_from_new_cmds_GCJ \
18101     predep_objects_GCJ \
18102     postdep_objects_GCJ \
18103     predeps_GCJ \
18104     postdeps_GCJ \
18105     compiler_lib_search_path_GCJ \
18106     archive_cmds_GCJ \
18107     archive_expsym_cmds_GCJ \
18108     postinstall_cmds_GCJ \
18109     postuninstall_cmds_GCJ \
18110     old_archive_from_expsyms_cmds_GCJ \
18111     allow_undefined_flag_GCJ \
18112     no_undefined_flag_GCJ \
18113     export_symbols_cmds_GCJ \
18114     hardcode_libdir_flag_spec_GCJ \
18115     hardcode_libdir_flag_spec_ld_GCJ \
18116     hardcode_libdir_separator_GCJ \
18117     hardcode_automatic_GCJ \
18118     module_cmds_GCJ \
18119     module_expsym_cmds_GCJ \
18120     lt_cv_prog_compiler_c_o_GCJ \
18121     exclude_expsyms_GCJ \
18122     include_expsyms_GCJ; do
18123
18124     case $var in
18125     old_archive_cmds_GCJ | \
18126     old_archive_from_new_cmds_GCJ | \
18127     archive_cmds_GCJ | \
18128     archive_expsym_cmds_GCJ | \
18129     module_cmds_GCJ | \
18130     module_expsym_cmds_GCJ | \
18131     old_archive_from_expsyms_cmds_GCJ | \
18132     export_symbols_cmds_GCJ | \
18133     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18134     postinstall_cmds | postuninstall_cmds | \
18135     old_postinstall_cmds | old_postuninstall_cmds | \
18136     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18137       # Double-quote double-evaled strings.
18138       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18139       ;;
18140     *)
18141       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18142       ;;
18143     esac
18144   done
18145
18146   case $lt_echo in
18147   *'\$0 --fallback-echo"')
18148     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18149     ;;
18150   esac
18151
18152 cfgfile="$ofile"
18153
18154   cat <<__EOF__ >> "$cfgfile"
18155 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18156
18157 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18158
18159 # Shell to use when invoking shell scripts.
18160 SHELL=$lt_SHELL
18161
18162 # Whether or not to build shared libraries.
18163 build_libtool_libs=$enable_shared
18164
18165 # Whether or not to build static libraries.
18166 build_old_libs=$enable_static
18167
18168 # Whether or not to add -lc for building shared libraries.
18169 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18170
18171 # Whether or not to disallow shared libs when runtime libs are static
18172 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18173
18174 # Whether or not to optimize for fast installation.
18175 fast_install=$enable_fast_install
18176
18177 # The host system.
18178 host_alias=$host_alias
18179 host=$host
18180 host_os=$host_os
18181
18182 # The build system.
18183 build_alias=$build_alias
18184 build=$build
18185 build_os=$build_os
18186
18187 # An echo program that does not interpret backslashes.
18188 echo=$lt_echo
18189
18190 # The archiver.
18191 AR=$lt_AR
18192 AR_FLAGS=$lt_AR_FLAGS
18193
18194 # A C compiler.
18195 LTCC=$lt_LTCC
18196
18197 # A language-specific compiler.
18198 CC=$lt_compiler_GCJ
18199
18200 # Is the compiler the GNU C compiler?
18201 with_gcc=$GCC_GCJ
18202
18203 # An ERE matcher.
18204 EGREP=$lt_EGREP
18205
18206 # The linker used to build libraries.
18207 LD=$lt_LD_GCJ
18208
18209 # Whether we need hard or soft links.
18210 LN_S=$lt_LN_S
18211
18212 # A BSD-compatible nm program.
18213 NM=$lt_NM
18214
18215 # A symbol stripping program
18216 STRIP=$lt_STRIP
18217
18218 # Used to examine libraries when file_magic_cmd begins "file"
18219 MAGIC_CMD=$MAGIC_CMD
18220
18221 # Used on cygwin: DLL creation program.
18222 DLLTOOL="$DLLTOOL"
18223
18224 # Used on cygwin: object dumper.
18225 OBJDUMP="$OBJDUMP"
18226
18227 # Used on cygwin: assembler.
18228 AS="$AS"
18229
18230 # The name of the directory that contains temporary libtool files.
18231 objdir=$objdir
18232
18233 # How to create reloadable object files.
18234 reload_flag=$lt_reload_flag
18235 reload_cmds=$lt_reload_cmds
18236
18237 # How to pass a linker flag through the compiler.
18238 wl=$lt_lt_prog_compiler_wl_GCJ
18239
18240 # Object file suffix (normally "o").
18241 objext="$ac_objext"
18242
18243 # Old archive suffix (normally "a").
18244 libext="$libext"
18245
18246 # Shared library suffix (normally ".so").
18247 shrext_cmds='$shrext_cmds'
18248
18249 # Executable file suffix (normally "").
18250 exeext="$exeext"
18251
18252 # Additional compiler flags for building library objects.
18253 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18254 pic_mode=$pic_mode
18255
18256 # What is the maximum length of a command?
18257 max_cmd_len=$lt_cv_sys_max_cmd_len
18258
18259 # Does compiler simultaneously support -c and -o options?
18260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18261
18262 # Must we lock files when doing compilation?
18263 need_locks=$lt_need_locks
18264
18265 # Do we need the lib prefix for modules?
18266 need_lib_prefix=$need_lib_prefix
18267
18268 # Do we need a version for libraries?
18269 need_version=$need_version
18270
18271 # Whether dlopen is supported.
18272 dlopen_support=$enable_dlopen
18273
18274 # Whether dlopen of programs is supported.
18275 dlopen_self=$enable_dlopen_self
18276
18277 # Whether dlopen of statically linked programs is supported.
18278 dlopen_self_static=$enable_dlopen_self_static
18279
18280 # Compiler flag to prevent dynamic linking.
18281 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18282
18283 # Compiler flag to turn off builtin functions.
18284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18285
18286 # Compiler flag to allow reflexive dlopens.
18287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18288
18289 # Compiler flag to generate shared objects directly from archives.
18290 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18291
18292 # Compiler flag to generate thread-safe objects.
18293 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18294
18295 # Library versioning type.
18296 version_type=$version_type
18297
18298 # Format of library name prefix.
18299 libname_spec=$lt_libname_spec
18300
18301 # List of archive names.  First name is the real one, the rest are links.
18302 # The last name is the one that the linker finds with -lNAME.
18303 library_names_spec=$lt_library_names_spec
18304
18305 # The coded name of the library, if different from the real name.
18306 soname_spec=$lt_soname_spec
18307
18308 # Commands used to build and install an old-style archive.
18309 RANLIB=$lt_RANLIB
18310 old_archive_cmds=$lt_old_archive_cmds_GCJ
18311 old_postinstall_cmds=$lt_old_postinstall_cmds
18312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18313
18314 # Create an old-style archive from a shared archive.
18315 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18316
18317 # Create a temporary old-style archive to link instead of a shared archive.
18318 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18319
18320 # Commands used to build and install a shared archive.
18321 archive_cmds=$lt_archive_cmds_GCJ
18322 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18323 postinstall_cmds=$lt_postinstall_cmds
18324 postuninstall_cmds=$lt_postuninstall_cmds
18325
18326 # Commands used to build a loadable module (assumed same as above if empty)
18327 module_cmds=$lt_module_cmds_GCJ
18328 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18329
18330 # Commands to strip libraries.
18331 old_striplib=$lt_old_striplib
18332 striplib=$lt_striplib
18333
18334 # Dependencies to place before the objects being linked to create a
18335 # shared library.
18336 predep_objects=$lt_predep_objects_GCJ
18337
18338 # Dependencies to place after the objects being linked to create a
18339 # shared library.
18340 postdep_objects=$lt_postdep_objects_GCJ
18341
18342 # Dependencies to place before the objects being linked to create a
18343 # shared library.
18344 predeps=$lt_predeps_GCJ
18345
18346 # Dependencies to place after the objects being linked to create a
18347 # shared library.
18348 postdeps=$lt_postdeps_GCJ
18349
18350 # The library search path used internally by the compiler when linking
18351 # a shared library.
18352 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18353
18354 # Method to check whether dependent libraries are shared objects.
18355 deplibs_check_method=$lt_deplibs_check_method
18356
18357 # Command to use when deplibs_check_method == file_magic.
18358 file_magic_cmd=$lt_file_magic_cmd
18359
18360 # Flag that allows shared libraries with undefined symbols to be built.
18361 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18362
18363 # Flag that forces no undefined symbols.
18364 no_undefined_flag=$lt_no_undefined_flag_GCJ
18365
18366 # Commands used to finish a libtool library installation in a directory.
18367 finish_cmds=$lt_finish_cmds
18368
18369 # Same as above, but a single script fragment to be evaled but not shown.
18370 finish_eval=$lt_finish_eval
18371
18372 # Take the output of nm and produce a listing of raw symbols and C names.
18373 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18374
18375 # Transform the output of nm in a proper C declaration
18376 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18377
18378 # Transform the output of nm in a C name address pair
18379 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18380
18381 # This is the shared library runtime path variable.
18382 runpath_var=$runpath_var
18383
18384 # This is the shared library path variable.
18385 shlibpath_var=$shlibpath_var
18386
18387 # Is shlibpath searched before the hard-coded library search path?
18388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18389
18390 # How to hardcode a shared library path into an executable.
18391 hardcode_action=$hardcode_action_GCJ
18392
18393 # Whether we should hardcode library paths into libraries.
18394 hardcode_into_libs=$hardcode_into_libs
18395
18396 # Flag to hardcode \$libdir into a binary during linking.
18397 # This must work even if \$libdir does not exist.
18398 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18399
18400 # If ld is used when linking, flag to hardcode \$libdir into
18401 # a binary during linking. This must work even if \$libdir does
18402 # not exist.
18403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18404
18405 # Whether we need a single -rpath flag with a separated argument.
18406 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18407
18408 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18409 # resulting binary.
18410 hardcode_direct=$hardcode_direct_GCJ
18411
18412 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18413 # resulting binary.
18414 hardcode_minus_L=$hardcode_minus_L_GCJ
18415
18416 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18417 # the resulting binary.
18418 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18419
18420 # Set to yes if building a shared library automatically hardcodes DIR into the library
18421 # and all subsequent libraries and executables linked against it.
18422 hardcode_automatic=$hardcode_automatic_GCJ
18423
18424 # Variables whose values should be saved in libtool wrapper scripts and
18425 # restored at relink time.
18426 variables_saved_for_relink="$variables_saved_for_relink"
18427
18428 # Whether libtool must link a program against all its dependency libraries.
18429 link_all_deplibs=$link_all_deplibs_GCJ
18430
18431 # Compile-time system search path for libraries
18432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18433
18434 # Run-time system search path for libraries
18435 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18436
18437 # Fix the shell variable \$srcfile for the compiler.
18438 fix_srcfile_path="$fix_srcfile_path_GCJ"
18439
18440 # Set to yes if exported symbols are required.
18441 always_export_symbols=$always_export_symbols_GCJ
18442
18443 # The commands to list exported symbols.
18444 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18445
18446 # The commands to extract the exported symbol list from a shared archive.
18447 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18448
18449 # Symbols that should not be listed in the preloaded symbols.
18450 exclude_expsyms=$lt_exclude_expsyms_GCJ
18451
18452 # Symbols that must always be exported.
18453 include_expsyms=$lt_include_expsyms_GCJ
18454
18455 # ### END LIBTOOL TAG CONFIG: $tagname
18456
18457 __EOF__
18458
18459
18460 else
18461   # If there is no Makefile yet, we rely on a make rule to execute
18462   # `config.status --recheck' to rerun these tests and create the
18463   # libtool script then.
18464   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18465   if test -f "$ltmain_in"; then
18466     test -f Makefile && make "$ltmain"
18467   fi
18468 fi
18469
18470
18471 ac_ext=c
18472 ac_cpp='$CPP $CPPFLAGS'
18473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18476
18477 CC="$lt_save_CC"
18478
18479         else
18480           tagname=""
18481         fi
18482         ;;
18483
18484       RC)
18485
18486
18487
18488 # Source file extension for RC test sources.
18489 ac_ext=rc
18490
18491 # Object file extension for compiled RC test sources.
18492 objext=o
18493 objext_RC=$objext
18494
18495 # Code to be used in simple compile tests
18496 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18497
18498 # Code to be used in simple link tests
18499 lt_simple_link_test_code="$lt_simple_compile_test_code"
18500
18501 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18502
18503 # If no C compiler was specified, use CC.
18504 LTCC=${LTCC-"$CC"}
18505
18506 # Allow CC to be a program name with arguments.
18507 compiler=$CC
18508
18509
18510 # save warnings/boilerplate of simple test code
18511 ac_outfile=conftest.$ac_objext
18512 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18513 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18514 _lt_compiler_boilerplate=`cat conftest.err`
18515 $rm conftest*
18516
18517 ac_outfile=conftest.$ac_objext
18518 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18519 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18520 _lt_linker_boilerplate=`cat conftest.err`
18521 $rm conftest*
18522
18523
18524 # Allow CC to be a program name with arguments.
18525 lt_save_CC="$CC"
18526 CC=${RC-"windres"}
18527 compiler=$CC
18528 compiler_RC=$CC
18529 for cc_temp in $compiler""; do
18530   case $cc_temp in
18531     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18532     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18533     \-*) ;;
18534     *) break;;
18535   esac
18536 done
18537 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18538
18539 lt_cv_prog_compiler_c_o_RC=yes
18540
18541 # The else clause should only fire when bootstrapping the
18542 # libtool distribution, otherwise you forgot to ship ltmain.sh
18543 # with your package, and you will get complaints that there are
18544 # no rules to generate ltmain.sh.
18545 if test -f "$ltmain"; then
18546   # See if we are running on zsh, and set the options which allow our commands through
18547   # without removal of \ escapes.
18548   if test -n "${ZSH_VERSION+set}" ; then
18549     setopt NO_GLOB_SUBST
18550   fi
18551   # Now quote all the things that may contain metacharacters while being
18552   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18553   # variables and quote the copies for generation of the libtool script.
18554   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18555     SED SHELL STRIP \
18556     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18557     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18558     deplibs_check_method reload_flag reload_cmds need_locks \
18559     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18560     lt_cv_sys_global_symbol_to_c_name_address \
18561     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18562     old_postinstall_cmds old_postuninstall_cmds \
18563     compiler_RC \
18564     CC_RC \
18565     LD_RC \
18566     lt_prog_compiler_wl_RC \
18567     lt_prog_compiler_pic_RC \
18568     lt_prog_compiler_static_RC \
18569     lt_prog_compiler_no_builtin_flag_RC \
18570     export_dynamic_flag_spec_RC \
18571     thread_safe_flag_spec_RC \
18572     whole_archive_flag_spec_RC \
18573     enable_shared_with_static_runtimes_RC \
18574     old_archive_cmds_RC \
18575     old_archive_from_new_cmds_RC \
18576     predep_objects_RC \
18577     postdep_objects_RC \
18578     predeps_RC \
18579     postdeps_RC \
18580     compiler_lib_search_path_RC \
18581     archive_cmds_RC \
18582     archive_expsym_cmds_RC \
18583     postinstall_cmds_RC \
18584     postuninstall_cmds_RC \
18585     old_archive_from_expsyms_cmds_RC \
18586     allow_undefined_flag_RC \
18587     no_undefined_flag_RC \
18588     export_symbols_cmds_RC \
18589     hardcode_libdir_flag_spec_RC \
18590     hardcode_libdir_flag_spec_ld_RC \
18591     hardcode_libdir_separator_RC \
18592     hardcode_automatic_RC \
18593     module_cmds_RC \
18594     module_expsym_cmds_RC \
18595     lt_cv_prog_compiler_c_o_RC \
18596     exclude_expsyms_RC \
18597     include_expsyms_RC; do
18598
18599     case $var in
18600     old_archive_cmds_RC | \
18601     old_archive_from_new_cmds_RC | \
18602     archive_cmds_RC | \
18603     archive_expsym_cmds_RC | \
18604     module_cmds_RC | \
18605     module_expsym_cmds_RC | \
18606     old_archive_from_expsyms_cmds_RC | \
18607     export_symbols_cmds_RC | \
18608     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18609     postinstall_cmds | postuninstall_cmds | \
18610     old_postinstall_cmds | old_postuninstall_cmds | \
18611     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18612       # Double-quote double-evaled strings.
18613       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18614       ;;
18615     *)
18616       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18617       ;;
18618     esac
18619   done
18620
18621   case $lt_echo in
18622   *'\$0 --fallback-echo"')
18623     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18624     ;;
18625   esac
18626
18627 cfgfile="$ofile"
18628
18629   cat <<__EOF__ >> "$cfgfile"
18630 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18631
18632 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18633
18634 # Shell to use when invoking shell scripts.
18635 SHELL=$lt_SHELL
18636
18637 # Whether or not to build shared libraries.
18638 build_libtool_libs=$enable_shared
18639
18640 # Whether or not to build static libraries.
18641 build_old_libs=$enable_static
18642
18643 # Whether or not to add -lc for building shared libraries.
18644 build_libtool_need_lc=$archive_cmds_need_lc_RC
18645
18646 # Whether or not to disallow shared libs when runtime libs are static
18647 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18648
18649 # Whether or not to optimize for fast installation.
18650 fast_install=$enable_fast_install
18651
18652 # The host system.
18653 host_alias=$host_alias
18654 host=$host
18655 host_os=$host_os
18656
18657 # The build system.
18658 build_alias=$build_alias
18659 build=$build
18660 build_os=$build_os
18661
18662 # An echo program that does not interpret backslashes.
18663 echo=$lt_echo
18664
18665 # The archiver.
18666 AR=$lt_AR
18667 AR_FLAGS=$lt_AR_FLAGS
18668
18669 # A C compiler.
18670 LTCC=$lt_LTCC
18671
18672 # A language-specific compiler.
18673 CC=$lt_compiler_RC
18674
18675 # Is the compiler the GNU C compiler?
18676 with_gcc=$GCC_RC
18677
18678 # An ERE matcher.
18679 EGREP=$lt_EGREP
18680
18681 # The linker used to build libraries.
18682 LD=$lt_LD_RC
18683
18684 # Whether we need hard or soft links.
18685 LN_S=$lt_LN_S
18686
18687 # A BSD-compatible nm program.
18688 NM=$lt_NM
18689
18690 # A symbol stripping program
18691 STRIP=$lt_STRIP
18692
18693 # Used to examine libraries when file_magic_cmd begins "file"
18694 MAGIC_CMD=$MAGIC_CMD
18695
18696 # Used on cygwin: DLL creation program.
18697 DLLTOOL="$DLLTOOL"
18698
18699 # Used on cygwin: object dumper.
18700 OBJDUMP="$OBJDUMP"
18701
18702 # Used on cygwin: assembler.
18703 AS="$AS"
18704
18705 # The name of the directory that contains temporary libtool files.
18706 objdir=$objdir
18707
18708 # How to create reloadable object files.
18709 reload_flag=$lt_reload_flag
18710 reload_cmds=$lt_reload_cmds
18711
18712 # How to pass a linker flag through the compiler.
18713 wl=$lt_lt_prog_compiler_wl_RC
18714
18715 # Object file suffix (normally "o").
18716 objext="$ac_objext"
18717
18718 # Old archive suffix (normally "a").
18719 libext="$libext"
18720
18721 # Shared library suffix (normally ".so").
18722 shrext_cmds='$shrext_cmds'
18723
18724 # Executable file suffix (normally "").
18725 exeext="$exeext"
18726
18727 # Additional compiler flags for building library objects.
18728 pic_flag=$lt_lt_prog_compiler_pic_RC
18729 pic_mode=$pic_mode
18730
18731 # What is the maximum length of a command?
18732 max_cmd_len=$lt_cv_sys_max_cmd_len
18733
18734 # Does compiler simultaneously support -c and -o options?
18735 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18736
18737 # Must we lock files when doing compilation?
18738 need_locks=$lt_need_locks
18739
18740 # Do we need the lib prefix for modules?
18741 need_lib_prefix=$need_lib_prefix
18742
18743 # Do we need a version for libraries?
18744 need_version=$need_version
18745
18746 # Whether dlopen is supported.
18747 dlopen_support=$enable_dlopen
18748
18749 # Whether dlopen of programs is supported.
18750 dlopen_self=$enable_dlopen_self
18751
18752 # Whether dlopen of statically linked programs is supported.
18753 dlopen_self_static=$enable_dlopen_self_static
18754
18755 # Compiler flag to prevent dynamic linking.
18756 link_static_flag=$lt_lt_prog_compiler_static_RC
18757
18758 # Compiler flag to turn off builtin functions.
18759 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18760
18761 # Compiler flag to allow reflexive dlopens.
18762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18763
18764 # Compiler flag to generate shared objects directly from archives.
18765 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18766
18767 # Compiler flag to generate thread-safe objects.
18768 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18769
18770 # Library versioning type.
18771 version_type=$version_type
18772
18773 # Format of library name prefix.
18774 libname_spec=$lt_libname_spec
18775
18776 # List of archive names.  First name is the real one, the rest are links.
18777 # The last name is the one that the linker finds with -lNAME.
18778 library_names_spec=$lt_library_names_spec
18779
18780 # The coded name of the library, if different from the real name.
18781 soname_spec=$lt_soname_spec
18782
18783 # Commands used to build and install an old-style archive.
18784 RANLIB=$lt_RANLIB
18785 old_archive_cmds=$lt_old_archive_cmds_RC
18786 old_postinstall_cmds=$lt_old_postinstall_cmds
18787 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18788
18789 # Create an old-style archive from a shared archive.
18790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18791
18792 # Create a temporary old-style archive to link instead of a shared archive.
18793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18794
18795 # Commands used to build and install a shared archive.
18796 archive_cmds=$lt_archive_cmds_RC
18797 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18798 postinstall_cmds=$lt_postinstall_cmds
18799 postuninstall_cmds=$lt_postuninstall_cmds
18800
18801 # Commands used to build a loadable module (assumed same as above if empty)
18802 module_cmds=$lt_module_cmds_RC
18803 module_expsym_cmds=$lt_module_expsym_cmds_RC
18804
18805 # Commands to strip libraries.
18806 old_striplib=$lt_old_striplib
18807 striplib=$lt_striplib
18808
18809 # Dependencies to place before the objects being linked to create a
18810 # shared library.
18811 predep_objects=$lt_predep_objects_RC
18812
18813 # Dependencies to place after the objects being linked to create a
18814 # shared library.
18815 postdep_objects=$lt_postdep_objects_RC
18816
18817 # Dependencies to place before the objects being linked to create a
18818 # shared library.
18819 predeps=$lt_predeps_RC
18820
18821 # Dependencies to place after the objects being linked to create a
18822 # shared library.
18823 postdeps=$lt_postdeps_RC
18824
18825 # The library search path used internally by the compiler when linking
18826 # a shared library.
18827 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18828
18829 # Method to check whether dependent libraries are shared objects.
18830 deplibs_check_method=$lt_deplibs_check_method
18831
18832 # Command to use when deplibs_check_method == file_magic.
18833 file_magic_cmd=$lt_file_magic_cmd
18834
18835 # Flag that allows shared libraries with undefined symbols to be built.
18836 allow_undefined_flag=$lt_allow_undefined_flag_RC
18837
18838 # Flag that forces no undefined symbols.
18839 no_undefined_flag=$lt_no_undefined_flag_RC
18840
18841 # Commands used to finish a libtool library installation in a directory.
18842 finish_cmds=$lt_finish_cmds
18843
18844 # Same as above, but a single script fragment to be evaled but not shown.
18845 finish_eval=$lt_finish_eval
18846
18847 # Take the output of nm and produce a listing of raw symbols and C names.
18848 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18849
18850 # Transform the output of nm in a proper C declaration
18851 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18852
18853 # Transform the output of nm in a C name address pair
18854 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18855
18856 # This is the shared library runtime path variable.
18857 runpath_var=$runpath_var
18858
18859 # This is the shared library path variable.
18860 shlibpath_var=$shlibpath_var
18861
18862 # Is shlibpath searched before the hard-coded library search path?
18863 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18864
18865 # How to hardcode a shared library path into an executable.
18866 hardcode_action=$hardcode_action_RC
18867
18868 # Whether we should hardcode library paths into libraries.
18869 hardcode_into_libs=$hardcode_into_libs
18870
18871 # Flag to hardcode \$libdir into a binary during linking.
18872 # This must work even if \$libdir does not exist.
18873 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18874
18875 # If ld is used when linking, flag to hardcode \$libdir into
18876 # a binary during linking. This must work even if \$libdir does
18877 # not exist.
18878 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18879
18880 # Whether we need a single -rpath flag with a separated argument.
18881 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18882
18883 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18884 # resulting binary.
18885 hardcode_direct=$hardcode_direct_RC
18886
18887 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18888 # resulting binary.
18889 hardcode_minus_L=$hardcode_minus_L_RC
18890
18891 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18892 # the resulting binary.
18893 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18894
18895 # Set to yes if building a shared library automatically hardcodes DIR into the library
18896 # and all subsequent libraries and executables linked against it.
18897 hardcode_automatic=$hardcode_automatic_RC
18898
18899 # Variables whose values should be saved in libtool wrapper scripts and
18900 # restored at relink time.
18901 variables_saved_for_relink="$variables_saved_for_relink"
18902
18903 # Whether libtool must link a program against all its dependency libraries.
18904 link_all_deplibs=$link_all_deplibs_RC
18905
18906 # Compile-time system search path for libraries
18907 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18908
18909 # Run-time system search path for libraries
18910 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18911
18912 # Fix the shell variable \$srcfile for the compiler.
18913 fix_srcfile_path="$fix_srcfile_path_RC"
18914
18915 # Set to yes if exported symbols are required.
18916 always_export_symbols=$always_export_symbols_RC
18917
18918 # The commands to list exported symbols.
18919 export_symbols_cmds=$lt_export_symbols_cmds_RC
18920
18921 # The commands to extract the exported symbol list from a shared archive.
18922 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18923
18924 # Symbols that should not be listed in the preloaded symbols.
18925 exclude_expsyms=$lt_exclude_expsyms_RC
18926
18927 # Symbols that must always be exported.
18928 include_expsyms=$lt_include_expsyms_RC
18929
18930 # ### END LIBTOOL TAG CONFIG: $tagname
18931
18932 __EOF__
18933
18934
18935 else
18936   # If there is no Makefile yet, we rely on a make rule to execute
18937   # `config.status --recheck' to rerun these tests and create the
18938   # libtool script then.
18939   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18940   if test -f "$ltmain_in"; then
18941     test -f Makefile && make "$ltmain"
18942   fi
18943 fi
18944
18945
18946 ac_ext=c
18947 ac_cpp='$CPP $CPPFLAGS'
18948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18951
18952 CC="$lt_save_CC"
18953
18954         ;;
18955
18956       *)
18957         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18958 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18959    { (exit 1); exit 1; }; }
18960         ;;
18961       esac
18962
18963       # Append the new tag name to the list of available tags.
18964       if test -n "$tagname" ; then
18965       available_tags="$available_tags $tagname"
18966     fi
18967     fi
18968   done
18969   IFS="$lt_save_ifs"
18970
18971   # Now substitute the updated list of available tags.
18972   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18973     mv "${ofile}T" "$ofile"
18974     chmod +x "$ofile"
18975   else
18976     rm -f "${ofile}T"
18977     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18978 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18979    { (exit 1); exit 1; }; }
18980   fi
18981 fi
18982
18983
18984
18985 # This can be used to rebuild libtool when needed
18986 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18987
18988 # Always use our own libtool.
18989 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18990
18991 # Prevent multiple expansion
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013 am__api_version="1.9"
19014 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19015 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19016 # Just in case
19017 sleep 1
19018 echo timestamp > conftest.file
19019 # Do `set' in a subshell so we don't clobber the current shell's
19020 # arguments.  Must try -L first in case configure is actually a
19021 # symlink; some systems play weird games with the mod time of symlinks
19022 # (eg FreeBSD returns the mod time of the symlink's containing
19023 # directory).
19024 if (
19025    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19026    if test "$*" = "X"; then
19027       # -L didn't work.
19028       set X `ls -t $srcdir/configure conftest.file`
19029    fi
19030    rm -f conftest.file
19031    if test "$*" != "X $srcdir/configure conftest.file" \
19032       && test "$*" != "X conftest.file $srcdir/configure"; then
19033
19034       # If neither matched, then we have a broken ls.  This can happen
19035       # if, for instance, CONFIG_SHELL is bash and it inherits a
19036       # broken ls alias from the environment.  This has actually
19037       # happened.  Such a system could not be considered "sane".
19038       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19039 alias in your environment" >&5
19040 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19041 alias in your environment" >&2;}
19042    { (exit 1); exit 1; }; }
19043    fi
19044
19045    test "$2" = conftest.file
19046    )
19047 then
19048    # Ok.
19049    :
19050 else
19051    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19052 Check your system clock" >&5
19053 echo "$as_me: error: newly created file is older than distributed files!
19054 Check your system clock" >&2;}
19055    { (exit 1); exit 1; }; }
19056 fi
19057 echo "$as_me:$LINENO: result: yes" >&5
19058 echo "${ECHO_T}yes" >&6
19059 test "$program_prefix" != NONE &&
19060   program_transform_name="s,^,$program_prefix,;$program_transform_name"
19061 # Use a double $ so make ignores it.
19062 test "$program_suffix" != NONE &&
19063   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
19064 # Double any \ or $.  echo might interpret backslashes.
19065 # By default was `s,x,x', remove it if useless.
19066 cat <<\_ACEOF >conftest.sed
19067 s/[\\$]/&&/g;s/;s,x,x,$//
19068 _ACEOF
19069 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
19070 rm conftest.sed
19071
19072 # expand $ac_aux_dir to an absolute path
19073 am_aux_dir=`cd $ac_aux_dir && pwd`
19074
19075 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19076 # Use eval to expand $SHELL
19077 if eval "$MISSING --run true"; then
19078   am_missing_run="$MISSING --run "
19079 else
19080   am_missing_run=
19081   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19082 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19083 fi
19084
19085 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
19086   # We used to keeping the `.' as first argument, in order to
19087   # allow $(mkdir_p) to be used without argument.  As in
19088   #   $(mkdir_p) $(somedir)
19089   # where $(somedir) is conditionally defined.  However this is wrong
19090   # for two reasons:
19091   #  1. if the package is installed by a user who cannot write `.'
19092   #     make install will fail,
19093   #  2. the above comment should most certainly read
19094   #     $(mkdir_p) $(DESTDIR)$(somedir)
19095   #     so it does not work when $(somedir) is undefined and
19096   #     $(DESTDIR) is not.
19097   #  To support the latter case, we have to write
19098   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
19099   #  so the `.' trick is pointless.
19100   mkdir_p='mkdir -p --'
19101 else
19102   # On NextStep and OpenStep, the `mkdir' command does not
19103   # recognize any option.  It will interpret all options as
19104   # directories to create, and then abort because `.' already
19105   # exists.
19106   for d in ./-p ./--version;
19107   do
19108     test -d $d && rmdir $d
19109   done
19110   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
19111   if test -f "$ac_aux_dir/mkinstalldirs"; then
19112     mkdir_p='$(mkinstalldirs)'
19113   else
19114     mkdir_p='$(install_sh) -d'
19115   fi
19116 fi
19117
19118 for ac_prog in gawk mawk nawk awk
19119 do
19120   # Extract the first word of "$ac_prog", so it can be a program name with args.
19121 set dummy $ac_prog; ac_word=$2
19122 echo "$as_me:$LINENO: checking for $ac_word" >&5
19123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19124 if test "${ac_cv_prog_AWK+set}" = set; then
19125   echo $ECHO_N "(cached) $ECHO_C" >&6
19126 else
19127   if test -n "$AWK"; then
19128   ac_cv_prog_AWK="$AWK" # Let the user override the test.
19129 else
19130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19131 for as_dir in $PATH
19132 do
19133   IFS=$as_save_IFS
19134   test -z "$as_dir" && as_dir=.
19135   for ac_exec_ext in '' $ac_executable_extensions; do
19136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19137     ac_cv_prog_AWK="$ac_prog"
19138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19139     break 2
19140   fi
19141 done
19142 done
19143
19144 fi
19145 fi
19146 AWK=$ac_cv_prog_AWK
19147 if test -n "$AWK"; then
19148   echo "$as_me:$LINENO: result: $AWK" >&5
19149 echo "${ECHO_T}$AWK" >&6
19150 else
19151   echo "$as_me:$LINENO: result: no" >&5
19152 echo "${ECHO_T}no" >&6
19153 fi
19154
19155   test -n "$AWK" && break
19156 done
19157
19158 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19159 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19160 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19161 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164   cat >conftest.make <<\_ACEOF
19165 all:
19166         @echo 'ac_maketemp="$(MAKE)"'
19167 _ACEOF
19168 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19169 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19170 if test -n "$ac_maketemp"; then
19171   eval ac_cv_prog_make_${ac_make}_set=yes
19172 else
19173   eval ac_cv_prog_make_${ac_make}_set=no
19174 fi
19175 rm -f conftest.make
19176 fi
19177 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19178   echo "$as_me:$LINENO: result: yes" >&5
19179 echo "${ECHO_T}yes" >&6
19180   SET_MAKE=
19181 else
19182   echo "$as_me:$LINENO: result: no" >&5
19183 echo "${ECHO_T}no" >&6
19184   SET_MAKE="MAKE=${MAKE-make}"
19185 fi
19186
19187 rm -rf .tst 2>/dev/null
19188 mkdir .tst 2>/dev/null
19189 if test -d .tst; then
19190   am__leading_dot=.
19191 else
19192   am__leading_dot=_
19193 fi
19194 rmdir .tst 2>/dev/null
19195
19196 DEPDIR="${am__leading_dot}deps"
19197
19198           ac_config_commands="$ac_config_commands depfiles"
19199
19200
19201 am_make=${MAKE-make}
19202 cat > confinc << 'END'
19203 am__doit:
19204         @echo done
19205 .PHONY: am__doit
19206 END
19207 # If we don't find an include directive, just comment out the code.
19208 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19209 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
19210 am__include="#"
19211 am__quote=
19212 _am_result=none
19213 # First try GNU make style include.
19214 echo "include confinc" > confmf
19215 # We grep out `Entering directory' and `Leaving directory'
19216 # messages which can occur if `w' ends up in MAKEFLAGS.
19217 # In particular we don't look at `^make:' because GNU make might
19218 # be invoked under some other name (usually "gmake"), in which
19219 # case it prints its new name instead of `make'.
19220 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
19221    am__include=include
19222    am__quote=
19223    _am_result=GNU
19224 fi
19225 # Now try BSD make style include.
19226 if test "$am__include" = "#"; then
19227    echo '.include "confinc"' > confmf
19228    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
19229       am__include=.include
19230       am__quote="\""
19231       _am_result=BSD
19232    fi
19233 fi
19234
19235
19236 echo "$as_me:$LINENO: result: $_am_result" >&5
19237 echo "${ECHO_T}$_am_result" >&6
19238 rm -f confinc confmf
19239
19240 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
19241 if test "${enable_dependency_tracking+set}" = set; then
19242   enableval="$enable_dependency_tracking"
19243
19244 fi;
19245 if test "x$enable_dependency_tracking" != xno; then
19246   am_depcomp="$ac_aux_dir/depcomp"
19247   AMDEPBACKSLASH='\'
19248 fi
19249
19250
19251 if test "x$enable_dependency_tracking" != xno; then
19252   AMDEP_TRUE=
19253   AMDEP_FALSE='#'
19254 else
19255   AMDEP_TRUE='#'
19256   AMDEP_FALSE=
19257 fi
19258
19259
19260
19261 # test to see if srcdir already configured
19262 if test "`cd $srcdir && pwd`" != "`pwd`" &&
19263    test -f $srcdir/config.status; then
19264   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19265 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19266    { (exit 1); exit 1; }; }
19267 fi
19268
19269 # test whether we have cygpath
19270 if test -z "$CYGPATH_W"; then
19271   if (cygpath --version) >/dev/null 2>/dev/null; then
19272     CYGPATH_W='cygpath -w'
19273   else
19274     CYGPATH_W=echo
19275   fi
19276 fi
19277
19278
19279 # Define the identity of the package.
19280  PACKAGE=OpenBSM
19281  VERSION=1.0alpha15
19282
19283
19284 cat >>confdefs.h <<_ACEOF
19285 #define PACKAGE "$PACKAGE"
19286 _ACEOF
19287
19288
19289 cat >>confdefs.h <<_ACEOF
19290 #define VERSION "$VERSION"
19291 _ACEOF
19292
19293 # Some tools Automake needs.
19294
19295 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19296
19297
19298 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19299
19300
19301 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19302
19303
19304 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19305
19306
19307 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19308
19309 install_sh=${install_sh-"$am_aux_dir/install-sh"}
19310
19311 # Installed binaries are usually stripped using `strip' when the user
19312 # run `make install-strip'.  However `strip' might not be the right
19313 # tool to use in cross-compilation environments, therefore Automake
19314 # will honor the `STRIP' environment variable to overrule this program.
19315 if test "$cross_compiling" != no; then
19316   if test -n "$ac_tool_prefix"; then
19317   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19318 set dummy ${ac_tool_prefix}strip; ac_word=$2
19319 echo "$as_me:$LINENO: checking for $ac_word" >&5
19320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19321 if test "${ac_cv_prog_STRIP+set}" = set; then
19322   echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324   if test -n "$STRIP"; then
19325   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19326 else
19327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19328 for as_dir in $PATH
19329 do
19330   IFS=$as_save_IFS
19331   test -z "$as_dir" && as_dir=.
19332   for ac_exec_ext in '' $ac_executable_extensions; do
19333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19334     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19336     break 2
19337   fi
19338 done
19339 done
19340
19341 fi
19342 fi
19343 STRIP=$ac_cv_prog_STRIP
19344 if test -n "$STRIP"; then
19345   echo "$as_me:$LINENO: result: $STRIP" >&5
19346 echo "${ECHO_T}$STRIP" >&6
19347 else
19348   echo "$as_me:$LINENO: result: no" >&5
19349 echo "${ECHO_T}no" >&6
19350 fi
19351
19352 fi
19353 if test -z "$ac_cv_prog_STRIP"; then
19354   ac_ct_STRIP=$STRIP
19355   # Extract the first word of "strip", so it can be a program name with args.
19356 set dummy strip; ac_word=$2
19357 echo "$as_me:$LINENO: checking for $ac_word" >&5
19358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19359 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19360   echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362   if test -n "$ac_ct_STRIP"; then
19363   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19364 else
19365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19366 for as_dir in $PATH
19367 do
19368   IFS=$as_save_IFS
19369   test -z "$as_dir" && as_dir=.
19370   for ac_exec_ext in '' $ac_executable_extensions; do
19371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19372     ac_cv_prog_ac_ct_STRIP="strip"
19373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19374     break 2
19375   fi
19376 done
19377 done
19378
19379   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
19380 fi
19381 fi
19382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19383 if test -n "$ac_ct_STRIP"; then
19384   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19385 echo "${ECHO_T}$ac_ct_STRIP" >&6
19386 else
19387   echo "$as_me:$LINENO: result: no" >&5
19388 echo "${ECHO_T}no" >&6
19389 fi
19390
19391   STRIP=$ac_ct_STRIP
19392 else
19393   STRIP="$ac_cv_prog_STRIP"
19394 fi
19395
19396 fi
19397 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
19398
19399 # We need awk for the "check" target.  The system "awk" is bad on
19400 # some platforms.
19401 # Always define AMTAR for backward compatibility.
19402
19403 AMTAR=${AMTAR-"${am_missing_run}tar"}
19404
19405 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19406
19407
19408
19409
19410 depcc="$CC"   am_compiler_list=
19411
19412 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19413 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19414 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19415   echo $ECHO_N "(cached) $ECHO_C" >&6
19416 else
19417   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19418   # We make a subdir and do the tests there.  Otherwise we can end up
19419   # making bogus files that we don't know about and never remove.  For
19420   # instance it was reported that on HP-UX the gcc test will end up
19421   # making a dummy file named `D' -- because `-MD' means `put the output
19422   # in D'.
19423   mkdir conftest.dir
19424   # Copy depcomp to subdir because otherwise we won't find it if we're
19425   # using a relative directory.
19426   cp "$am_depcomp" conftest.dir
19427   cd conftest.dir
19428   # We will build objects and dependencies in a subdirectory because
19429   # it helps to detect inapplicable dependency modes.  For instance
19430   # both Tru64's cc and ICC support -MD to output dependencies as a
19431   # side effect of compilation, but ICC will put the dependencies in
19432   # the current directory while Tru64 will put them in the object
19433   # directory.
19434   mkdir sub
19435
19436   am_cv_CC_dependencies_compiler_type=none
19437   if test "$am_compiler_list" = ""; then
19438      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19439   fi
19440   for depmode in $am_compiler_list; do
19441     # Setup a source with many dependencies, because some compilers
19442     # like to wrap large dependency lists on column 80 (with \), and
19443     # we should not choose a depcomp mode which is confused by this.
19444     #
19445     # We need to recreate these files for each test, as the compiler may
19446     # overwrite some of them when testing with obscure command lines.
19447     # This happens at least with the AIX C compiler.
19448     : > sub/conftest.c
19449     for i in 1 2 3 4 5 6; do
19450       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19451       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19452       # Solaris 8's {/usr,}/bin/sh.
19453       touch sub/conftst$i.h
19454     done
19455     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19456
19457     case $depmode in
19458     nosideeffect)
19459       # after this tag, mechanisms are not by side-effect, so they'll
19460       # only be used when explicitly requested
19461       if test "x$enable_dependency_tracking" = xyes; then
19462         continue
19463       else
19464         break
19465       fi
19466       ;;
19467     none) break ;;
19468     esac
19469     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19470     # mode.  It turns out that the SunPro C++ compiler does not properly
19471     # handle `-M -o', and we need to detect this.
19472     if depmode=$depmode \
19473        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19474        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19475        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19476          >/dev/null 2>conftest.err &&
19477        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19478        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19479        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19480       # icc doesn't choke on unknown options, it will just issue warnings
19481       # or remarks (even with -Werror).  So we grep stderr for any message
19482       # that says an option was ignored or not supported.
19483       # When given -MP, icc 7.0 and 7.1 complain thusly:
19484       #   icc: Command line warning: ignoring option '-M'; no argument required
19485       # The diagnosis changed in icc 8.0:
19486       #   icc: Command line remark: option '-MP' not supported
19487       if (grep 'ignoring option' conftest.err ||
19488           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19489         am_cv_CC_dependencies_compiler_type=$depmode
19490         break
19491       fi
19492     fi
19493   done
19494
19495   cd ..
19496   rm -rf conftest.dir
19497 else
19498   am_cv_CC_dependencies_compiler_type=none
19499 fi
19500
19501 fi
19502 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19503 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19504 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19505
19506
19507
19508 if
19509   test "x$enable_dependency_tracking" != xno \
19510   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19511   am__fastdepCC_TRUE=
19512   am__fastdepCC_FALSE='#'
19513 else
19514   am__fastdepCC_TRUE='#'
19515   am__fastdepCC_FALSE=
19516 fi
19517
19518
19519 depcc="$CXX"  am_compiler_list=
19520
19521 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19522 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19523 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19524   echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19527   # We make a subdir and do the tests there.  Otherwise we can end up
19528   # making bogus files that we don't know about and never remove.  For
19529   # instance it was reported that on HP-UX the gcc test will end up
19530   # making a dummy file named `D' -- because `-MD' means `put the output
19531   # in D'.
19532   mkdir conftest.dir
19533   # Copy depcomp to subdir because otherwise we won't find it if we're
19534   # using a relative directory.
19535   cp "$am_depcomp" conftest.dir
19536   cd conftest.dir
19537   # We will build objects and dependencies in a subdirectory because
19538   # it helps to detect inapplicable dependency modes.  For instance
19539   # both Tru64's cc and ICC support -MD to output dependencies as a
19540   # side effect of compilation, but ICC will put the dependencies in
19541   # the current directory while Tru64 will put them in the object
19542   # directory.
19543   mkdir sub
19544
19545   am_cv_CXX_dependencies_compiler_type=none
19546   if test "$am_compiler_list" = ""; then
19547      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19548   fi
19549   for depmode in $am_compiler_list; do
19550     # Setup a source with many dependencies, because some compilers
19551     # like to wrap large dependency lists on column 80 (with \), and
19552     # we should not choose a depcomp mode which is confused by this.
19553     #
19554     # We need to recreate these files for each test, as the compiler may
19555     # overwrite some of them when testing with obscure command lines.
19556     # This happens at least with the AIX C compiler.
19557     : > sub/conftest.c
19558     for i in 1 2 3 4 5 6; do
19559       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19560       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19561       # Solaris 8's {/usr,}/bin/sh.
19562       touch sub/conftst$i.h
19563     done
19564     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19565
19566     case $depmode in
19567     nosideeffect)
19568       # after this tag, mechanisms are not by side-effect, so they'll
19569       # only be used when explicitly requested
19570       if test "x$enable_dependency_tracking" = xyes; then
19571         continue
19572       else
19573         break
19574       fi
19575       ;;
19576     none) break ;;
19577     esac
19578     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19579     # mode.  It turns out that the SunPro C++ compiler does not properly
19580     # handle `-M -o', and we need to detect this.
19581     if depmode=$depmode \
19582        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19583        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19584        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19585          >/dev/null 2>conftest.err &&
19586        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19587        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19588        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19589       # icc doesn't choke on unknown options, it will just issue warnings
19590       # or remarks (even with -Werror).  So we grep stderr for any message
19591       # that says an option was ignored or not supported.
19592       # When given -MP, icc 7.0 and 7.1 complain thusly:
19593       #   icc: Command line warning: ignoring option '-M'; no argument required
19594       # The diagnosis changed in icc 8.0:
19595       #   icc: Command line remark: option '-MP' not supported
19596       if (grep 'ignoring option' conftest.err ||
19597           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19598         am_cv_CXX_dependencies_compiler_type=$depmode
19599         break
19600       fi
19601     fi
19602   done
19603
19604   cd ..
19605   rm -rf conftest.dir
19606 else
19607   am_cv_CXX_dependencies_compiler_type=none
19608 fi
19609
19610 fi
19611 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19612 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19613 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19614
19615
19616
19617 if
19618   test "x$enable_dependency_tracking" != xno \
19619   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19620   am__fastdepCXX_TRUE=
19621   am__fastdepCXX_FALSE='#'
19622 else
19623   am__fastdepCXX_TRUE='#'
19624   am__fastdepCXX_FALSE=
19625 fi
19626
19627
19628
19629
19630 echo "$as_me:$LINENO: checking for library containing dlsym" >&5
19631 echo $ECHO_N "checking for library containing dlsym... $ECHO_C" >&6
19632 if test "${ac_cv_search_dlsym+set}" = set; then
19633   echo $ECHO_N "(cached) $ECHO_C" >&6
19634 else
19635   ac_func_search_save_LIBS=$LIBS
19636 ac_cv_search_dlsym=no
19637 cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h.  */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h.  */
19643
19644 /* Override any gcc2 internal prototype to avoid an error.  */
19645 #ifdef __cplusplus
19646 extern "C"
19647 #endif
19648 /* We use char because int might match the return type of a gcc2
19649    builtin and then its argument prototype would still apply.  */
19650 char dlsym ();
19651 int
19652 main ()
19653 {
19654 dlsym ();
19655   ;
19656   return 0;
19657 }
19658 _ACEOF
19659 rm -f conftest.$ac_objext conftest$ac_exeext
19660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19661   (eval $ac_link) 2>conftest.er1
19662   ac_status=$?
19663   grep -v '^ *+' conftest.er1 >conftest.err
19664   rm -f conftest.er1
19665   cat conftest.err >&5
19666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667   (exit $ac_status); } &&
19668          { ac_try='test -z "$ac_c_werror_flag"
19669                          || test ! -s conftest.err'
19670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671   (eval $ac_try) 2>&5
19672   ac_status=$?
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); }; } &&
19675          { ac_try='test -s conftest$ac_exeext'
19676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677   (eval $ac_try) 2>&5
19678   ac_status=$?
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); }; }; then
19681   ac_cv_search_dlsym="none required"
19682 else
19683   echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19685
19686 fi
19687 rm -f conftest.err conftest.$ac_objext \
19688       conftest$ac_exeext conftest.$ac_ext
19689 if test "$ac_cv_search_dlsym" = no; then
19690   for ac_lib in dl; do
19691     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19692     cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h.  */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h.  */
19698
19699 /* Override any gcc2 internal prototype to avoid an error.  */
19700 #ifdef __cplusplus
19701 extern "C"
19702 #endif
19703 /* We use char because int might match the return type of a gcc2
19704    builtin and then its argument prototype would still apply.  */
19705 char dlsym ();
19706 int
19707 main ()
19708 {
19709 dlsym ();
19710   ;
19711   return 0;
19712 }
19713 _ACEOF
19714 rm -f conftest.$ac_objext conftest$ac_exeext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716   (eval $ac_link) 2>conftest.er1
19717   ac_status=$?
19718   grep -v '^ *+' conftest.er1 >conftest.err
19719   rm -f conftest.er1
19720   cat conftest.err >&5
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); } &&
19723          { ac_try='test -z "$ac_c_werror_flag"
19724                          || test ! -s conftest.err'
19725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726   (eval $ac_try) 2>&5
19727   ac_status=$?
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); }; } &&
19730          { ac_try='test -s conftest$ac_exeext'
19731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732   (eval $ac_try) 2>&5
19733   ac_status=$?
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); }; }; then
19736   ac_cv_search_dlsym="-l$ac_lib"
19737 break
19738 else
19739   echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19741
19742 fi
19743 rm -f conftest.err conftest.$ac_objext \
19744       conftest$ac_exeext conftest.$ac_ext
19745   done
19746 fi
19747 LIBS=$ac_func_search_save_LIBS
19748 fi
19749 echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
19750 echo "${ECHO_T}$ac_cv_search_dlsym" >&6
19751 if test "$ac_cv_search_dlsym" != no; then
19752   test "$ac_cv_search_dlsym" = "none required" || LIBS="$ac_cv_search_dlsym $LIBS"
19753
19754 fi
19755
19756 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19757 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
19758 if test "${ac_cv_search_clock_gettime+set}" = set; then
19759   echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761   ac_func_search_save_LIBS=$LIBS
19762 ac_cv_search_clock_gettime=no
19763 cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h.  */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h.  */
19769
19770 /* Override any gcc2 internal prototype to avoid an error.  */
19771 #ifdef __cplusplus
19772 extern "C"
19773 #endif
19774 /* We use char because int might match the return type of a gcc2
19775    builtin and then its argument prototype would still apply.  */
19776 char clock_gettime ();
19777 int
19778 main ()
19779 {
19780 clock_gettime ();
19781   ;
19782   return 0;
19783 }
19784 _ACEOF
19785 rm -f conftest.$ac_objext conftest$ac_exeext
19786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19787   (eval $ac_link) 2>conftest.er1
19788   ac_status=$?
19789   grep -v '^ *+' conftest.er1 >conftest.err
19790   rm -f conftest.er1
19791   cat conftest.err >&5
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); } &&
19794          { ac_try='test -z "$ac_c_werror_flag"
19795                          || test ! -s conftest.err'
19796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797   (eval $ac_try) 2>&5
19798   ac_status=$?
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); }; } &&
19801          { ac_try='test -s conftest$ac_exeext'
19802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803   (eval $ac_try) 2>&5
19804   ac_status=$?
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); }; }; then
19807   ac_cv_search_clock_gettime="none required"
19808 else
19809   echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19811
19812 fi
19813 rm -f conftest.err conftest.$ac_objext \
19814       conftest$ac_exeext conftest.$ac_ext
19815 if test "$ac_cv_search_clock_gettime" = no; then
19816   for ac_lib in rt; do
19817     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19818     cat >conftest.$ac_ext <<_ACEOF
19819 /* confdefs.h.  */
19820 _ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h.  */
19824
19825 /* Override any gcc2 internal prototype to avoid an error.  */
19826 #ifdef __cplusplus
19827 extern "C"
19828 #endif
19829 /* We use char because int might match the return type of a gcc2
19830    builtin and then its argument prototype would still apply.  */
19831 char clock_gettime ();
19832 int
19833 main ()
19834 {
19835 clock_gettime ();
19836   ;
19837   return 0;
19838 }
19839 _ACEOF
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19842   (eval $ac_link) 2>conftest.er1
19843   ac_status=$?
19844   grep -v '^ *+' conftest.er1 >conftest.err
19845   rm -f conftest.er1
19846   cat conftest.err >&5
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); } &&
19849          { ac_try='test -z "$ac_c_werror_flag"
19850                          || test ! -s conftest.err'
19851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852   (eval $ac_try) 2>&5
19853   ac_status=$?
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); }; } &&
19856          { ac_try='test -s conftest$ac_exeext'
19857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858   (eval $ac_try) 2>&5
19859   ac_status=$?
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); }; }; then
19862   ac_cv_search_clock_gettime="-l$ac_lib"
19863 break
19864 else
19865   echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19867
19868 fi
19869 rm -f conftest.err conftest.$ac_objext \
19870       conftest$ac_exeext conftest.$ac_ext
19871   done
19872 fi
19873 LIBS=$ac_func_search_save_LIBS
19874 fi
19875 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19876 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
19877 if test "$ac_cv_search_clock_gettime" != no; then
19878   test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
19879
19880 fi
19881
19882
19883 # Checks for header files.
19884 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19885 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19886 if test "${ac_cv_header_stdc+set}" = set; then
19887   echo $ECHO_N "(cached) $ECHO_C" >&6
19888 else
19889   cat >conftest.$ac_ext <<_ACEOF
19890 /* confdefs.h.  */
19891 _ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h.  */
19895 #include <stdlib.h>
19896 #include <stdarg.h>
19897 #include <string.h>
19898 #include <float.h>
19899
19900 int
19901 main ()
19902 {
19903
19904   ;
19905   return 0;
19906 }
19907 _ACEOF
19908 rm -f conftest.$ac_objext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910   (eval $ac_compile) 2>conftest.er1
19911   ac_status=$?
19912   grep -v '^ *+' conftest.er1 >conftest.err
19913   rm -f conftest.er1
19914   cat conftest.err >&5
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); } &&
19917          { ac_try='test -z "$ac_c_werror_flag"
19918                          || test ! -s conftest.err'
19919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920   (eval $ac_try) 2>&5
19921   ac_status=$?
19922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923   (exit $ac_status); }; } &&
19924          { ac_try='test -s conftest.$ac_objext'
19925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926   (eval $ac_try) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); }; }; then
19930   ac_cv_header_stdc=yes
19931 else
19932   echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935 ac_cv_header_stdc=no
19936 fi
19937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19938
19939 if test $ac_cv_header_stdc = yes; then
19940   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19941   cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h.  */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h.  */
19947 #include <string.h>
19948
19949 _ACEOF
19950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19951   $EGREP "memchr" >/dev/null 2>&1; then
19952   :
19953 else
19954   ac_cv_header_stdc=no
19955 fi
19956 rm -f conftest*
19957
19958 fi
19959
19960 if test $ac_cv_header_stdc = yes; then
19961   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19962   cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 #include <stdlib.h>
19969
19970 _ACEOF
19971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19972   $EGREP "free" >/dev/null 2>&1; then
19973   :
19974 else
19975   ac_cv_header_stdc=no
19976 fi
19977 rm -f conftest*
19978
19979 fi
19980
19981 if test $ac_cv_header_stdc = yes; then
19982   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19983   if test "$cross_compiling" = yes; then
19984   :
19985 else
19986   cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992 #include <ctype.h>
19993 #if ((' ' & 0x0FF) == 0x020)
19994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19996 #else
19997 # define ISLOWER(c) \
19998                    (('a' <= (c) && (c) <= 'i') \
19999                      || ('j' <= (c) && (c) <= 'r') \
20000                      || ('s' <= (c) && (c) <= 'z'))
20001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20002 #endif
20003
20004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20005 int
20006 main ()
20007 {
20008   int i;
20009   for (i = 0; i < 256; i++)
20010     if (XOR (islower (i), ISLOWER (i))
20011         || toupper (i) != TOUPPER (i))
20012       exit(2);
20013   exit (0);
20014 }
20015 _ACEOF
20016 rm -f conftest$ac_exeext
20017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20018   (eval $ac_link) 2>&5
20019   ac_status=$?
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023   (eval $ac_try) 2>&5
20024   ac_status=$?
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); }; }; then
20027   :
20028 else
20029   echo "$as_me: program exited with status $ac_status" >&5
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20032
20033 ( exit $ac_status )
20034 ac_cv_header_stdc=no
20035 fi
20036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20037 fi
20038 fi
20039 fi
20040 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20041 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20042 if test $ac_cv_header_stdc = yes; then
20043
20044 cat >>confdefs.h <<\_ACEOF
20045 #define STDC_HEADERS 1
20046 _ACEOF
20047
20048 fi
20049
20050 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20051 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20052 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20053   echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055   cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h.  */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h.  */
20061 #include <sys/types.h>
20062 #include <sys/wait.h>
20063 #ifndef WEXITSTATUS
20064 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20065 #endif
20066 #ifndef WIFEXITED
20067 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20068 #endif
20069
20070 int
20071 main ()
20072 {
20073   int s;
20074   wait (&s);
20075   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20076   ;
20077   return 0;
20078 }
20079 _ACEOF
20080 rm -f conftest.$ac_objext
20081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082   (eval $ac_compile) 2>conftest.er1
20083   ac_status=$?
20084   grep -v '^ *+' conftest.er1 >conftest.err
20085   rm -f conftest.er1
20086   cat conftest.err >&5
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); } &&
20089          { ac_try='test -z "$ac_c_werror_flag"
20090                          || test ! -s conftest.err'
20091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092   (eval $ac_try) 2>&5
20093   ac_status=$?
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); }; } &&
20096          { ac_try='test -s conftest.$ac_objext'
20097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098   (eval $ac_try) 2>&5
20099   ac_status=$?
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); }; }; then
20102   ac_cv_header_sys_wait_h=yes
20103 else
20104   echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20106
20107 ac_cv_header_sys_wait_h=no
20108 fi
20109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20110 fi
20111 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20112 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20113 if test $ac_cv_header_sys_wait_h = yes; then
20114
20115 cat >>confdefs.h <<\_ACEOF
20116 #define HAVE_SYS_WAIT_H 1
20117 _ACEOF
20118
20119 fi
20120
20121
20122
20123
20124
20125 for ac_header in endian.h mach/mach.h machine/endian.h sys/endian.h
20126 do
20127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20129   echo "$as_me:$LINENO: checking for $ac_header" >&5
20130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20132   echo $ECHO_N "(cached) $ECHO_C" >&6
20133 fi
20134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20136 else
20137   # Is the header compilable?
20138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20140 cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h.  */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h.  */
20146 $ac_includes_default
20147 #include <$ac_header>
20148 _ACEOF
20149 rm -f conftest.$ac_objext
20150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20151   (eval $ac_compile) 2>conftest.er1
20152   ac_status=$?
20153   grep -v '^ *+' conftest.er1 >conftest.err
20154   rm -f conftest.er1
20155   cat conftest.err >&5
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); } &&
20158          { ac_try='test -z "$ac_c_werror_flag"
20159                          || test ! -s conftest.err'
20160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161   (eval $ac_try) 2>&5
20162   ac_status=$?
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); }; } &&
20165          { ac_try='test -s conftest.$ac_objext'
20166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167   (eval $ac_try) 2>&5
20168   ac_status=$?
20169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170   (exit $ac_status); }; }; then
20171   ac_header_compiler=yes
20172 else
20173   echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176 ac_header_compiler=no
20177 fi
20178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20180 echo "${ECHO_T}$ac_header_compiler" >&6
20181
20182 # Is the header present?
20183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20185 cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h.  */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h.  */
20191 #include <$ac_header>
20192 _ACEOF
20193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20195   ac_status=$?
20196   grep -v '^ *+' conftest.er1 >conftest.err
20197   rm -f conftest.er1
20198   cat conftest.err >&5
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); } >/dev/null; then
20201   if test -s conftest.err; then
20202     ac_cpp_err=$ac_c_preproc_warn_flag
20203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20204   else
20205     ac_cpp_err=
20206   fi
20207 else
20208   ac_cpp_err=yes
20209 fi
20210 if test -z "$ac_cpp_err"; then
20211   ac_header_preproc=yes
20212 else
20213   echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20215
20216   ac_header_preproc=no
20217 fi
20218 rm -f conftest.err conftest.$ac_ext
20219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20220 echo "${ECHO_T}$ac_header_preproc" >&6
20221
20222 # So?  What about this header?
20223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20224   yes:no: )
20225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20229     ac_header_preproc=yes
20230     ;;
20231   no:yes:* )
20232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20244     (
20245       cat <<\_ASBOX
20246 ## ----------------------------------------------- ##
20247 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
20248 ## ----------------------------------------------- ##
20249 _ASBOX
20250     ) |
20251       sed "s/^/$as_me: WARNING:     /" >&2
20252     ;;
20253 esac
20254 echo "$as_me:$LINENO: checking for $ac_header" >&5
20255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20257   echo $ECHO_N "(cached) $ECHO_C" >&6
20258 else
20259   eval "$as_ac_Header=\$ac_header_preproc"
20260 fi
20261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20263
20264 fi
20265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20266   cat >>confdefs.h <<_ACEOF
20267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20268 _ACEOF
20269
20270 fi
20271
20272 done
20273
20274
20275 # Checks for typedefs, structures, and compiler characteristics.
20276 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20277 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20278 if test "${ac_cv_c_const+set}" = set; then
20279   echo $ECHO_N "(cached) $ECHO_C" >&6
20280 else
20281   cat >conftest.$ac_ext <<_ACEOF
20282 /* confdefs.h.  */
20283 _ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h.  */
20287
20288 int
20289 main ()
20290 {
20291 /* FIXME: Include the comments suggested by Paul. */
20292 #ifndef __cplusplus
20293   /* Ultrix mips cc rejects this.  */
20294   typedef int charset[2];
20295   const charset x;
20296   /* SunOS 4.1.1 cc rejects this.  */
20297   char const *const *ccp;
20298   char **p;
20299   /* NEC SVR4.0.2 mips cc rejects this.  */
20300   struct point {int x, y;};
20301   static struct point const zero = {0,0};
20302   /* AIX XL C 1.02.0.0 rejects this.
20303      It does not let you subtract one const X* pointer from another in
20304      an arm of an if-expression whose if-part is not a constant
20305      expression */
20306   const char *g = "string";
20307   ccp = &g + (g ? g-g : 0);
20308   /* HPUX 7.0 cc rejects these. */
20309   ++ccp;
20310   p = (char**) ccp;
20311   ccp = (char const *const *) p;
20312   { /* SCO 3.2v4 cc rejects this.  */
20313     char *t;
20314     char const *s = 0 ? (char *) 0 : (char const *) 0;
20315
20316     *t++ = 0;
20317   }
20318   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20319     int x[] = {25, 17};
20320     const int *foo = &x[0];
20321     ++foo;
20322   }
20323   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20324     typedef const int *iptr;
20325     iptr p = 0;
20326     ++p;
20327   }
20328   { /* AIX XL C 1.02.0.0 rejects this saying
20329        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20330     struct s { int j; const int *ap[3]; };
20331     struct s *b; b->j = 5;
20332   }
20333   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20334     const int foo = 10;
20335   }
20336 #endif
20337
20338   ;
20339   return 0;
20340 }
20341 _ACEOF
20342 rm -f conftest.$ac_objext
20343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20344   (eval $ac_compile) 2>conftest.er1
20345   ac_status=$?
20346   grep -v '^ *+' conftest.er1 >conftest.err
20347   rm -f conftest.er1
20348   cat conftest.err >&5
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); } &&
20351          { ac_try='test -z "$ac_c_werror_flag"
20352                          || test ! -s conftest.err'
20353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354   (eval $ac_try) 2>&5
20355   ac_status=$?
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); }; } &&
20358          { ac_try='test -s conftest.$ac_objext'
20359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360   (eval $ac_try) 2>&5
20361   ac_status=$?
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); }; }; then
20364   ac_cv_c_const=yes
20365 else
20366   echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20368
20369 ac_cv_c_const=no
20370 fi
20371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20372 fi
20373 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20374 echo "${ECHO_T}$ac_cv_c_const" >&6
20375 if test $ac_cv_c_const = no; then
20376
20377 cat >>confdefs.h <<\_ACEOF
20378 #define const
20379 _ACEOF
20380
20381 fi
20382
20383 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20384 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20385 if test "${ac_cv_type_uid_t+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394 #include <sys/types.h>
20395
20396 _ACEOF
20397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20398   $EGREP "uid_t" >/dev/null 2>&1; then
20399   ac_cv_type_uid_t=yes
20400 else
20401   ac_cv_type_uid_t=no
20402 fi
20403 rm -f conftest*
20404
20405 fi
20406 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20407 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20408 if test $ac_cv_type_uid_t = no; then
20409
20410 cat >>confdefs.h <<\_ACEOF
20411 #define uid_t int
20412 _ACEOF
20413
20414
20415 cat >>confdefs.h <<\_ACEOF
20416 #define gid_t int
20417 _ACEOF
20418
20419 fi
20420
20421 echo "$as_me:$LINENO: checking for pid_t" >&5
20422 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20423 if test "${ac_cv_type_pid_t+set}" = set; then
20424   echo $ECHO_N "(cached) $ECHO_C" >&6
20425 else
20426   cat >conftest.$ac_ext <<_ACEOF
20427 /* confdefs.h.  */
20428 _ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h.  */
20432 $ac_includes_default
20433 int
20434 main ()
20435 {
20436 if ((pid_t *) 0)
20437   return 0;
20438 if (sizeof (pid_t))
20439   return 0;
20440   ;
20441   return 0;
20442 }
20443 _ACEOF
20444 rm -f conftest.$ac_objext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20446   (eval $ac_compile) 2>conftest.er1
20447   ac_status=$?
20448   grep -v '^ *+' conftest.er1 >conftest.err
20449   rm -f conftest.er1
20450   cat conftest.err >&5
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); } &&
20453          { ac_try='test -z "$ac_c_werror_flag"
20454                          || test ! -s conftest.err'
20455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456   (eval $ac_try) 2>&5
20457   ac_status=$?
20458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); }; } &&
20460          { ac_try='test -s conftest.$ac_objext'
20461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462   (eval $ac_try) 2>&5
20463   ac_status=$?
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); }; }; then
20466   ac_cv_type_pid_t=yes
20467 else
20468   echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 ac_cv_type_pid_t=no
20472 fi
20473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20474 fi
20475 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20476 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20477 if test $ac_cv_type_pid_t = yes; then
20478   :
20479 else
20480
20481 cat >>confdefs.h <<_ACEOF
20482 #define pid_t int
20483 _ACEOF
20484
20485 fi
20486
20487 echo "$as_me:$LINENO: checking for size_t" >&5
20488 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20489 if test "${ac_cv_type_size_t+set}" = set; then
20490   echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492   cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498 $ac_includes_default
20499 int
20500 main ()
20501 {
20502 if ((size_t *) 0)
20503   return 0;
20504 if (sizeof (size_t))
20505   return 0;
20506   ;
20507   return 0;
20508 }
20509 _ACEOF
20510 rm -f conftest.$ac_objext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20512   (eval $ac_compile) 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } &&
20519          { ac_try='test -z "$ac_c_werror_flag"
20520                          || test ! -s conftest.err'
20521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522   (eval $ac_try) 2>&5
20523   ac_status=$?
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); }; } &&
20526          { ac_try='test -s conftest.$ac_objext'
20527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528   (eval $ac_try) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; }; then
20532   ac_cv_type_size_t=yes
20533 else
20534   echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 ac_cv_type_size_t=no
20538 fi
20539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20540 fi
20541 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20542 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20543 if test $ac_cv_type_size_t = yes; then
20544   :
20545 else
20546
20547 cat >>confdefs.h <<_ACEOF
20548 #define size_t unsigned
20549 _ACEOF
20550
20551 fi
20552
20553 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20554 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
20555 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20556   echo $ECHO_N "(cached) $ECHO_C" >&6
20557 else
20558   cat >conftest.$ac_ext <<_ACEOF
20559 /* confdefs.h.  */
20560 _ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h.  */
20564 $ac_includes_default
20565 int
20566 main ()
20567 {
20568 static struct stat ac_aggr;
20569 if (ac_aggr.st_rdev)
20570 return 0;
20571   ;
20572   return 0;
20573 }
20574 _ACEOF
20575 rm -f conftest.$ac_objext
20576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20577   (eval $ac_compile) 2>conftest.er1
20578   ac_status=$?
20579   grep -v '^ *+' conftest.er1 >conftest.err
20580   rm -f conftest.er1
20581   cat conftest.err >&5
20582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583   (exit $ac_status); } &&
20584          { ac_try='test -z "$ac_c_werror_flag"
20585                          || test ! -s conftest.err'
20586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587   (eval $ac_try) 2>&5
20588   ac_status=$?
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); }; } &&
20591          { ac_try='test -s conftest.$ac_objext'
20592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593   (eval $ac_try) 2>&5
20594   ac_status=$?
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); }; }; then
20597   ac_cv_member_struct_stat_st_rdev=yes
20598 else
20599   echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20601
20602 cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h.  */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h.  */
20608 $ac_includes_default
20609 int
20610 main ()
20611 {
20612 static struct stat ac_aggr;
20613 if (sizeof ac_aggr.st_rdev)
20614 return 0;
20615   ;
20616   return 0;
20617 }
20618 _ACEOF
20619 rm -f conftest.$ac_objext
20620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20621   (eval $ac_compile) 2>conftest.er1
20622   ac_status=$?
20623   grep -v '^ *+' conftest.er1 >conftest.err
20624   rm -f conftest.er1
20625   cat conftest.err >&5
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); } &&
20628          { ac_try='test -z "$ac_c_werror_flag"
20629                          || test ! -s conftest.err'
20630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631   (eval $ac_try) 2>&5
20632   ac_status=$?
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); }; } &&
20635          { ac_try='test -s conftest.$ac_objext'
20636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637   (eval $ac_try) 2>&5
20638   ac_status=$?
20639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640   (exit $ac_status); }; }; then
20641   ac_cv_member_struct_stat_st_rdev=yes
20642 else
20643   echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646 ac_cv_member_struct_stat_st_rdev=no
20647 fi
20648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20649 fi
20650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20651 fi
20652 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20653 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
20654 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20655
20656 cat >>confdefs.h <<_ACEOF
20657 #define HAVE_STRUCT_STAT_ST_RDEV 1
20658 _ACEOF
20659
20660
20661 fi
20662
20663
20664 echo "$as_me:$LINENO: checking for struct ipc_perm.__key" >&5
20665 echo $ECHO_N "checking for struct ipc_perm.__key... $ECHO_C" >&6
20666 if test "${ac_cv_member_struct_ipc_perm___key+set}" = set; then
20667   echo $ECHO_N "(cached) $ECHO_C" >&6
20668 else
20669   cat >conftest.$ac_ext <<_ACEOF
20670 /* confdefs.h.  */
20671 _ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h.  */
20675
20676 #include <sys/types.h>
20677 #include <sys/ipc.h>
20678
20679
20680 int
20681 main ()
20682 {
20683 static struct ipc_perm ac_aggr;
20684 if (ac_aggr.__key)
20685 return 0;
20686   ;
20687   return 0;
20688 }
20689 _ACEOF
20690 rm -f conftest.$ac_objext
20691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20692   (eval $ac_compile) 2>conftest.er1
20693   ac_status=$?
20694   grep -v '^ *+' conftest.er1 >conftest.err
20695   rm -f conftest.er1
20696   cat conftest.err >&5
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); } &&
20699          { ac_try='test -z "$ac_c_werror_flag"
20700                          || test ! -s conftest.err'
20701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702   (eval $ac_try) 2>&5
20703   ac_status=$?
20704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705   (exit $ac_status); }; } &&
20706          { ac_try='test -s conftest.$ac_objext'
20707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708   (eval $ac_try) 2>&5
20709   ac_status=$?
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); }; }; then
20712   ac_cv_member_struct_ipc_perm___key=yes
20713 else
20714   echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20716
20717 cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h.  */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h.  */
20723
20724 #include <sys/types.h>
20725 #include <sys/ipc.h>
20726
20727
20728 int
20729 main ()
20730 {
20731 static struct ipc_perm ac_aggr;
20732 if (sizeof ac_aggr.__key)
20733 return 0;
20734   ;
20735   return 0;
20736 }
20737 _ACEOF
20738 rm -f conftest.$ac_objext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20740   (eval $ac_compile) 2>conftest.er1
20741   ac_status=$?
20742   grep -v '^ *+' conftest.er1 >conftest.err
20743   rm -f conftest.er1
20744   cat conftest.err >&5
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } &&
20747          { ac_try='test -z "$ac_c_werror_flag"
20748                          || test ! -s conftest.err'
20749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750   (eval $ac_try) 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; } &&
20754          { ac_try='test -s conftest.$ac_objext'
20755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756   (eval $ac_try) 2>&5
20757   ac_status=$?
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); }; }; then
20760   ac_cv_member_struct_ipc_perm___key=yes
20761 else
20762   echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765 ac_cv_member_struct_ipc_perm___key=no
20766 fi
20767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20768 fi
20769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20770 fi
20771 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___key" >&5
20772 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___key" >&6
20773 if test $ac_cv_member_struct_ipc_perm___key = yes; then
20774
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_IPC_PERM___KEY
20777 _ACEOF
20778
20779 fi
20780
20781
20782 echo "$as_me:$LINENO: checking for struct ipc_perm.__seq" >&5
20783 echo $ECHO_N "checking for struct ipc_perm.__seq... $ECHO_C" >&6
20784 if test "${ac_cv_member_struct_ipc_perm___seq+set}" = set; then
20785   echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787   cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793
20794 #include <sys/types.h>
20795 #include <sys/ipc.h>
20796
20797
20798 int
20799 main ()
20800 {
20801 static struct ipc_perm ac_aggr;
20802 if (ac_aggr.__seq)
20803 return 0;
20804   ;
20805   return 0;
20806 }
20807 _ACEOF
20808 rm -f conftest.$ac_objext
20809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20810   (eval $ac_compile) 2>conftest.er1
20811   ac_status=$?
20812   grep -v '^ *+' conftest.er1 >conftest.err
20813   rm -f conftest.er1
20814   cat conftest.err >&5
20815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816   (exit $ac_status); } &&
20817          { ac_try='test -z "$ac_c_werror_flag"
20818                          || test ! -s conftest.err'
20819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820   (eval $ac_try) 2>&5
20821   ac_status=$?
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); }; } &&
20824          { ac_try='test -s conftest.$ac_objext'
20825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826   (eval $ac_try) 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); }; }; then
20830   ac_cv_member_struct_ipc_perm___seq=yes
20831 else
20832   echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20834
20835 cat >conftest.$ac_ext <<_ACEOF
20836 /* confdefs.h.  */
20837 _ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h.  */
20841
20842 #include <sys/types.h>
20843 #include <sys/ipc.h>
20844
20845
20846 int
20847 main ()
20848 {
20849 static struct ipc_perm ac_aggr;
20850 if (sizeof ac_aggr.__seq)
20851 return 0;
20852   ;
20853   return 0;
20854 }
20855 _ACEOF
20856 rm -f conftest.$ac_objext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20858   (eval $ac_compile) 2>conftest.er1
20859   ac_status=$?
20860   grep -v '^ *+' conftest.er1 >conftest.err
20861   rm -f conftest.er1
20862   cat conftest.err >&5
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); } &&
20865          { ac_try='test -z "$ac_c_werror_flag"
20866                          || test ! -s conftest.err'
20867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868   (eval $ac_try) 2>&5
20869   ac_status=$?
20870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871   (exit $ac_status); }; } &&
20872          { ac_try='test -s conftest.$ac_objext'
20873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874   (eval $ac_try) 2>&5
20875   ac_status=$?
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); }; }; then
20878   ac_cv_member_struct_ipc_perm___seq=yes
20879 else
20880   echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20882
20883 ac_cv_member_struct_ipc_perm___seq=no
20884 fi
20885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20886 fi
20887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20888 fi
20889 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___seq" >&5
20890 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___seq" >&6
20891 if test $ac_cv_member_struct_ipc_perm___seq = yes; then
20892
20893 cat >>confdefs.h <<\_ACEOF
20894 #define HAVE_IPC_PERM___SEQ
20895 _ACEOF
20896
20897 fi
20898
20899
20900 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20901 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20902 if test "${ac_cv_header_time+set}" = set; then
20903   echo $ECHO_N "(cached) $ECHO_C" >&6
20904 else
20905   cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h.  */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h.  */
20911 #include <sys/types.h>
20912 #include <sys/time.h>
20913 #include <time.h>
20914
20915 int
20916 main ()
20917 {
20918 if ((struct tm *) 0)
20919 return 0;
20920   ;
20921   return 0;
20922 }
20923 _ACEOF
20924 rm -f conftest.$ac_objext
20925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20926   (eval $ac_compile) 2>conftest.er1
20927   ac_status=$?
20928   grep -v '^ *+' conftest.er1 >conftest.err
20929   rm -f conftest.er1
20930   cat conftest.err >&5
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); } &&
20933          { ac_try='test -z "$ac_c_werror_flag"
20934                          || test ! -s conftest.err'
20935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936   (eval $ac_try) 2>&5
20937   ac_status=$?
20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939   (exit $ac_status); }; } &&
20940          { ac_try='test -s conftest.$ac_objext'
20941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942   (eval $ac_try) 2>&5
20943   ac_status=$?
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); }; }; then
20946   ac_cv_header_time=yes
20947 else
20948   echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20950
20951 ac_cv_header_time=no
20952 fi
20953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20954 fi
20955 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20956 echo "${ECHO_T}$ac_cv_header_time" >&6
20957 if test $ac_cv_header_time = yes; then
20958
20959 cat >>confdefs.h <<\_ACEOF
20960 #define TIME_WITH_SYS_TIME 1
20961 _ACEOF
20962
20963 fi
20964
20965 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20966 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20967 if test "${ac_cv_struct_tm+set}" = set; then
20968   echo $ECHO_N "(cached) $ECHO_C" >&6
20969 else
20970   cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h.  */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h.  */
20976 #include <sys/types.h>
20977 #include <time.h>
20978
20979 int
20980 main ()
20981 {
20982 struct tm *tp; tp->tm_sec;
20983   ;
20984   return 0;
20985 }
20986 _ACEOF
20987 rm -f conftest.$ac_objext
20988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20989   (eval $ac_compile) 2>conftest.er1
20990   ac_status=$?
20991   grep -v '^ *+' conftest.er1 >conftest.err
20992   rm -f conftest.er1
20993   cat conftest.err >&5
20994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995   (exit $ac_status); } &&
20996          { ac_try='test -z "$ac_c_werror_flag"
20997                          || test ! -s conftest.err'
20998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999   (eval $ac_try) 2>&5
21000   ac_status=$?
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); }; } &&
21003          { ac_try='test -s conftest.$ac_objext'
21004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005   (eval $ac_try) 2>&5
21006   ac_status=$?
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); }; }; then
21009   ac_cv_struct_tm=time.h
21010 else
21011   echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014 ac_cv_struct_tm=sys/time.h
21015 fi
21016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21017 fi
21018 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21019 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21020 if test $ac_cv_struct_tm = sys/time.h; then
21021
21022 cat >>confdefs.h <<\_ACEOF
21023 #define TM_IN_SYS_TIME 1
21024 _ACEOF
21025
21026 fi
21027
21028
21029 # Checks for library functions.
21030
21031 for ac_header in unistd.h
21032 do
21033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21035   echo "$as_me:$LINENO: checking for $ac_header" >&5
21036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21038   echo $ECHO_N "(cached) $ECHO_C" >&6
21039 fi
21040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21042 else
21043   # Is the header compilable?
21044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052 $ac_includes_default
21053 #include <$ac_header>
21054 _ACEOF
21055 rm -f conftest.$ac_objext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057   (eval $ac_compile) 2>conftest.er1
21058   ac_status=$?
21059   grep -v '^ *+' conftest.er1 >conftest.err
21060   rm -f conftest.er1
21061   cat conftest.err >&5
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); } &&
21064          { ac_try='test -z "$ac_c_werror_flag"
21065                          || test ! -s conftest.err'
21066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067   (eval $ac_try) 2>&5
21068   ac_status=$?
21069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); }; } &&
21071          { ac_try='test -s conftest.$ac_objext'
21072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073   (eval $ac_try) 2>&5
21074   ac_status=$?
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); }; }; then
21077   ac_header_compiler=yes
21078 else
21079   echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21081
21082 ac_header_compiler=no
21083 fi
21084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21086 echo "${ECHO_T}$ac_header_compiler" >&6
21087
21088 # Is the header present?
21089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21091 cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 #include <$ac_header>
21098 _ACEOF
21099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } >/dev/null; then
21107   if test -s conftest.err; then
21108     ac_cpp_err=$ac_c_preproc_warn_flag
21109     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21110   else
21111     ac_cpp_err=
21112   fi
21113 else
21114   ac_cpp_err=yes
21115 fi
21116 if test -z "$ac_cpp_err"; then
21117   ac_header_preproc=yes
21118 else
21119   echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21121
21122   ac_header_preproc=no
21123 fi
21124 rm -f conftest.err conftest.$ac_ext
21125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21126 echo "${ECHO_T}$ac_header_preproc" >&6
21127
21128 # So?  What about this header?
21129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21130   yes:no: )
21131     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21135     ac_header_preproc=yes
21136     ;;
21137   no:yes:* )
21138     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21140     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21141 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21142     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21144     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21145 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21148     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21150     (
21151       cat <<\_ASBOX
21152 ## ----------------------------------------------- ##
21153 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21154 ## ----------------------------------------------- ##
21155 _ASBOX
21156     ) |
21157       sed "s/^/$as_me: WARNING:     /" >&2
21158     ;;
21159 esac
21160 echo "$as_me:$LINENO: checking for $ac_header" >&5
21161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21163   echo $ECHO_N "(cached) $ECHO_C" >&6
21164 else
21165   eval "$as_ac_Header=\$ac_header_preproc"
21166 fi
21167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21169
21170 fi
21171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21172   cat >>confdefs.h <<_ACEOF
21173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21174 _ACEOF
21175
21176 fi
21177
21178 done
21179
21180 echo "$as_me:$LINENO: checking for working chown" >&5
21181 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21182 if test "${ac_cv_func_chown_works+set}" = set; then
21183   echo $ECHO_N "(cached) $ECHO_C" >&6
21184 else
21185   if test "$cross_compiling" = yes; then
21186   ac_cv_func_chown_works=no
21187 else
21188   cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h.  */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h.  */
21194 $ac_includes_default
21195 #include <fcntl.h>
21196
21197 int
21198 main ()
21199 {
21200   char *f = "conftest.chown";
21201   struct stat before, after;
21202
21203   if (creat (f, 0600) < 0)
21204     exit (1);
21205   if (stat (f, &before) < 0)
21206     exit (1);
21207   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21208     exit (1);
21209   if (stat (f, &after) < 0)
21210     exit (1);
21211   exit ((before.st_uid == after.st_uid
21212          && before.st_gid == after.st_gid) ? 0 : 1);
21213
21214   ;
21215   return 0;
21216 }
21217 _ACEOF
21218 rm -f conftest$ac_exeext
21219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21220   (eval $ac_link) 2>&5
21221   ac_status=$?
21222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225   (eval $ac_try) 2>&5
21226   ac_status=$?
21227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228   (exit $ac_status); }; }; then
21229   ac_cv_func_chown_works=yes
21230 else
21231   echo "$as_me: program exited with status $ac_status" >&5
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21234
21235 ( exit $ac_status )
21236 ac_cv_func_chown_works=no
21237 fi
21238 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21239 fi
21240 rm -f conftest.chown
21241
21242 fi
21243 echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
21244 echo "${ECHO_T}$ac_cv_func_chown_works" >&6
21245 if test $ac_cv_func_chown_works = yes; then
21246
21247 cat >>confdefs.h <<\_ACEOF
21248 #define HAVE_CHOWN 1
21249 _ACEOF
21250
21251 fi
21252
21253
21254
21255 for ac_header in unistd.h vfork.h
21256 do
21257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21259   echo "$as_me:$LINENO: checking for $ac_header" >&5
21260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21262   echo $ECHO_N "(cached) $ECHO_C" >&6
21263 fi
21264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21266 else
21267   # Is the header compilable?
21268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21270 cat >conftest.$ac_ext <<_ACEOF
21271 /* confdefs.h.  */
21272 _ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h.  */
21276 $ac_includes_default
21277 #include <$ac_header>
21278 _ACEOF
21279 rm -f conftest.$ac_objext
21280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21281   (eval $ac_compile) 2>conftest.er1
21282   ac_status=$?
21283   grep -v '^ *+' conftest.er1 >conftest.err
21284   rm -f conftest.er1
21285   cat conftest.err >&5
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); } &&
21288          { ac_try='test -z "$ac_c_werror_flag"
21289                          || test ! -s conftest.err'
21290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291   (eval $ac_try) 2>&5
21292   ac_status=$?
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); }; } &&
21295          { ac_try='test -s conftest.$ac_objext'
21296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297   (eval $ac_try) 2>&5
21298   ac_status=$?
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); }; }; then
21301   ac_header_compiler=yes
21302 else
21303   echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21305
21306 ac_header_compiler=no
21307 fi
21308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21310 echo "${ECHO_T}$ac_header_compiler" >&6
21311
21312 # Is the header present?
21313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21315 cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h.  */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h.  */
21321 #include <$ac_header>
21322 _ACEOF
21323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21325   ac_status=$?
21326   grep -v '^ *+' conftest.er1 >conftest.err
21327   rm -f conftest.er1
21328   cat conftest.err >&5
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); } >/dev/null; then
21331   if test -s conftest.err; then
21332     ac_cpp_err=$ac_c_preproc_warn_flag
21333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21334   else
21335     ac_cpp_err=
21336   fi
21337 else
21338   ac_cpp_err=yes
21339 fi
21340 if test -z "$ac_cpp_err"; then
21341   ac_header_preproc=yes
21342 else
21343   echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21345
21346   ac_header_preproc=no
21347 fi
21348 rm -f conftest.err conftest.$ac_ext
21349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21350 echo "${ECHO_T}$ac_header_preproc" >&6
21351
21352 # So?  What about this header?
21353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21354   yes:no: )
21355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21359     ac_header_preproc=yes
21360     ;;
21361   no:yes:* )
21362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21374     (
21375       cat <<\_ASBOX
21376 ## ----------------------------------------------- ##
21377 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21378 ## ----------------------------------------------- ##
21379 _ASBOX
21380     ) |
21381       sed "s/^/$as_me: WARNING:     /" >&2
21382     ;;
21383 esac
21384 echo "$as_me:$LINENO: checking for $ac_header" >&5
21385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21387   echo $ECHO_N "(cached) $ECHO_C" >&6
21388 else
21389   eval "$as_ac_Header=\$ac_header_preproc"
21390 fi
21391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21393
21394 fi
21395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21396   cat >>confdefs.h <<_ACEOF
21397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21398 _ACEOF
21399
21400 fi
21401
21402 done
21403
21404
21405
21406 for ac_func in fork vfork
21407 do
21408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21409 echo "$as_me:$LINENO: checking for $ac_func" >&5
21410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21411 if eval "test \"\${$as_ac_var+set}\" = set"; then
21412   echo $ECHO_N "(cached) $ECHO_C" >&6
21413 else
21414   cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h.  */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h.  */
21420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21422 #define $ac_func innocuous_$ac_func
21423
21424 /* System header to define __stub macros and hopefully few prototypes,
21425     which can conflict with char $ac_func (); below.
21426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21427     <limits.h> exists even on freestanding compilers.  */
21428
21429 #ifdef __STDC__
21430 # include <limits.h>
21431 #else
21432 # include <assert.h>
21433 #endif
21434
21435 #undef $ac_func
21436
21437 /* Override any gcc2 internal prototype to avoid an error.  */
21438 #ifdef __cplusplus
21439 extern "C"
21440 {
21441 #endif
21442 /* We use char because int might match the return type of a gcc2
21443    builtin and then its argument prototype would still apply.  */
21444 char $ac_func ();
21445 /* The GNU C library defines this for functions which it implements
21446     to always fail with ENOSYS.  Some functions are actually named
21447     something starting with __ and the normal name is an alias.  */
21448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21449 choke me
21450 #else
21451 char (*f) () = $ac_func;
21452 #endif
21453 #ifdef __cplusplus
21454 }
21455 #endif
21456
21457 int
21458 main ()
21459 {
21460 return f != $ac_func;
21461   ;
21462   return 0;
21463 }
21464 _ACEOF
21465 rm -f conftest.$ac_objext conftest$ac_exeext
21466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21467   (eval $ac_link) 2>conftest.er1
21468   ac_status=$?
21469   grep -v '^ *+' conftest.er1 >conftest.err
21470   rm -f conftest.er1
21471   cat conftest.err >&5
21472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   (exit $ac_status); } &&
21474          { ac_try='test -z "$ac_c_werror_flag"
21475                          || test ! -s conftest.err'
21476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477   (eval $ac_try) 2>&5
21478   ac_status=$?
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); }; } &&
21481          { ac_try='test -s conftest$ac_exeext'
21482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483   (eval $ac_try) 2>&5
21484   ac_status=$?
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); }; }; then
21487   eval "$as_ac_var=yes"
21488 else
21489   echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21491
21492 eval "$as_ac_var=no"
21493 fi
21494 rm -f conftest.err conftest.$ac_objext \
21495       conftest$ac_exeext conftest.$ac_ext
21496 fi
21497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21499 if test `eval echo '${'$as_ac_var'}'` = yes; then
21500   cat >>confdefs.h <<_ACEOF
21501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21502 _ACEOF
21503
21504 fi
21505 done
21506
21507 if test "x$ac_cv_func_fork" = xyes; then
21508   echo "$as_me:$LINENO: checking for working fork" >&5
21509 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21510 if test "${ac_cv_func_fork_works+set}" = set; then
21511   echo $ECHO_N "(cached) $ECHO_C" >&6
21512 else
21513   if test "$cross_compiling" = yes; then
21514   ac_cv_func_fork_works=cross
21515 else
21516   cat >conftest.$ac_ext <<_ACEOF
21517 /* By Ruediger Kuhlmann. */
21518       #include <sys/types.h>
21519       #if HAVE_UNISTD_H
21520       # include <unistd.h>
21521       #endif
21522       /* Some systems only have a dummy stub for fork() */
21523       int main ()
21524       {
21525         if (fork() < 0)
21526           exit (1);
21527         exit (0);
21528       }
21529 _ACEOF
21530 rm -f conftest$ac_exeext
21531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21532   (eval $ac_link) 2>&5
21533   ac_status=$?
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537   (eval $ac_try) 2>&5
21538   ac_status=$?
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); }; }; then
21541   ac_cv_func_fork_works=yes
21542 else
21543   echo "$as_me: program exited with status $ac_status" >&5
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21546
21547 ( exit $ac_status )
21548 ac_cv_func_fork_works=no
21549 fi
21550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21551 fi
21552 fi
21553 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21554 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21555
21556 else
21557   ac_cv_func_fork_works=$ac_cv_func_fork
21558 fi
21559 if test "x$ac_cv_func_fork_works" = xcross; then
21560   case $host in
21561     *-*-amigaos* | *-*-msdosdjgpp*)
21562       # Override, as these systems have only a dummy fork() stub
21563       ac_cv_func_fork_works=no
21564       ;;
21565     *)
21566       ac_cv_func_fork_works=yes
21567       ;;
21568   esac
21569   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21570 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21571 fi
21572 ac_cv_func_vfork_works=$ac_cv_func_vfork
21573 if test "x$ac_cv_func_vfork" = xyes; then
21574   echo "$as_me:$LINENO: checking for working vfork" >&5
21575 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21576 if test "${ac_cv_func_vfork_works+set}" = set; then
21577   echo $ECHO_N "(cached) $ECHO_C" >&6
21578 else
21579   if test "$cross_compiling" = yes; then
21580   ac_cv_func_vfork_works=cross
21581 else
21582   cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h.  */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h.  */
21588 /* Thanks to Paul Eggert for this test.  */
21589 #include <stdio.h>
21590 #include <stdlib.h>
21591 #include <sys/types.h>
21592 #include <sys/stat.h>
21593 #include <sys/wait.h>
21594 #if HAVE_UNISTD_H
21595 # include <unistd.h>
21596 #endif
21597 #if HAVE_VFORK_H
21598 # include <vfork.h>
21599 #endif
21600 /* On some sparc systems, changes by the child to local and incoming
21601    argument registers are propagated back to the parent.  The compiler
21602    is told about this with #include <vfork.h>, but some compilers
21603    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21604    static variable whose address is put into a register that is
21605    clobbered by the vfork.  */
21606 static void
21607 #ifdef __cplusplus
21608 sparc_address_test (int arg)
21609 # else
21610 sparc_address_test (arg) int arg;
21611 #endif
21612 {
21613   static pid_t child;
21614   if (!child) {
21615     child = vfork ();
21616     if (child < 0) {
21617       perror ("vfork");
21618       _exit(2);
21619     }
21620     if (!child) {
21621       arg = getpid();
21622       write(-1, "", 0);
21623       _exit (arg);
21624     }
21625   }
21626 }
21627
21628 int
21629 main ()
21630 {
21631   pid_t parent = getpid ();
21632   pid_t child;
21633
21634   sparc_address_test (0);
21635
21636   child = vfork ();
21637
21638   if (child == 0) {
21639     /* Here is another test for sparc vfork register problems.  This
21640        test uses lots of local variables, at least as many local
21641        variables as main has allocated so far including compiler
21642        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21643        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21644        reuse the register of parent for one of the local variables,
21645        since it will think that parent can't possibly be used any more
21646        in this routine.  Assigning to the local variable will thus
21647        munge parent in the parent process.  */
21648     pid_t
21649       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21650       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21651     /* Convince the compiler that p..p7 are live; otherwise, it might
21652        use the same hardware register for all 8 local variables.  */
21653     if (p != p1 || p != p2 || p != p3 || p != p4
21654         || p != p5 || p != p6 || p != p7)
21655       _exit(1);
21656
21657     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21658        from child file descriptors.  If the child closes a descriptor
21659        before it execs or exits, this munges the parent's descriptor
21660        as well.  Test for this by closing stdout in the child.  */
21661     _exit(close(fileno(stdout)) != 0);
21662   } else {
21663     int status;
21664     struct stat st;
21665
21666     while (wait(&status) != child)
21667       ;
21668     exit(
21669          /* Was there some problem with vforking?  */
21670          child < 0
21671
21672          /* Did the child fail?  (This shouldn't happen.)  */
21673          || status
21674
21675          /* Did the vfork/compiler bug occur?  */
21676          || parent != getpid()
21677
21678          /* Did the file descriptor bug occur?  */
21679          || fstat(fileno(stdout), &st) != 0
21680          );
21681   }
21682 }
21683 _ACEOF
21684 rm -f conftest$ac_exeext
21685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21686   (eval $ac_link) 2>&5
21687   ac_status=$?
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691   (eval $ac_try) 2>&5
21692   ac_status=$?
21693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694   (exit $ac_status); }; }; then
21695   ac_cv_func_vfork_works=yes
21696 else
21697   echo "$as_me: program exited with status $ac_status" >&5
21698 echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21700
21701 ( exit $ac_status )
21702 ac_cv_func_vfork_works=no
21703 fi
21704 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21705 fi
21706 fi
21707 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21708 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21709
21710 fi;
21711 if test "x$ac_cv_func_fork_works" = xcross; then
21712   ac_cv_func_vfork_works=$ac_cv_func_vfork
21713   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21714 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21715 fi
21716
21717 if test "x$ac_cv_func_vfork_works" = xyes; then
21718
21719 cat >>confdefs.h <<\_ACEOF
21720 #define HAVE_WORKING_VFORK 1
21721 _ACEOF
21722
21723 else
21724
21725 cat >>confdefs.h <<\_ACEOF
21726 #define vfork fork
21727 _ACEOF
21728
21729 fi
21730 if test "x$ac_cv_func_fork_works" = xyes; then
21731
21732 cat >>confdefs.h <<\_ACEOF
21733 #define HAVE_WORKING_FORK 1
21734 _ACEOF
21735
21736 fi
21737
21738
21739 for ac_header in stdlib.h
21740 do
21741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21743   echo "$as_me:$LINENO: checking for $ac_header" >&5
21744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21746   echo $ECHO_N "(cached) $ECHO_C" >&6
21747 fi
21748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21750 else
21751   # Is the header compilable?
21752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21754 cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h.  */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h.  */
21760 $ac_includes_default
21761 #include <$ac_header>
21762 _ACEOF
21763 rm -f conftest.$ac_objext
21764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21765   (eval $ac_compile) 2>conftest.er1
21766   ac_status=$?
21767   grep -v '^ *+' conftest.er1 >conftest.err
21768   rm -f conftest.er1
21769   cat conftest.err >&5
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); } &&
21772          { ac_try='test -z "$ac_c_werror_flag"
21773                          || test ! -s conftest.err'
21774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775   (eval $ac_try) 2>&5
21776   ac_status=$?
21777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778   (exit $ac_status); }; } &&
21779          { ac_try='test -s conftest.$ac_objext'
21780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781   (eval $ac_try) 2>&5
21782   ac_status=$?
21783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784   (exit $ac_status); }; }; then
21785   ac_header_compiler=yes
21786 else
21787   echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21789
21790 ac_header_compiler=no
21791 fi
21792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21794 echo "${ECHO_T}$ac_header_compiler" >&6
21795
21796 # Is the header present?
21797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21799 cat >conftest.$ac_ext <<_ACEOF
21800 /* confdefs.h.  */
21801 _ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h.  */
21805 #include <$ac_header>
21806 _ACEOF
21807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21809   ac_status=$?
21810   grep -v '^ *+' conftest.er1 >conftest.err
21811   rm -f conftest.er1
21812   cat conftest.err >&5
21813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814   (exit $ac_status); } >/dev/null; then
21815   if test -s conftest.err; then
21816     ac_cpp_err=$ac_c_preproc_warn_flag
21817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21818   else
21819     ac_cpp_err=
21820   fi
21821 else
21822   ac_cpp_err=yes
21823 fi
21824 if test -z "$ac_cpp_err"; then
21825   ac_header_preproc=yes
21826 else
21827   echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.$ac_ext >&5
21829
21830   ac_header_preproc=no
21831 fi
21832 rm -f conftest.err conftest.$ac_ext
21833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21834 echo "${ECHO_T}$ac_header_preproc" >&6
21835
21836 # So?  What about this header?
21837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21838   yes:no: )
21839     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21843     ac_header_preproc=yes
21844     ;;
21845   no:yes:* )
21846     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21848     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21849 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21850     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21852     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21853 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21856     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21858     (
21859       cat <<\_ASBOX
21860 ## ----------------------------------------------- ##
21861 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21862 ## ----------------------------------------------- ##
21863 _ASBOX
21864     ) |
21865       sed "s/^/$as_me: WARNING:     /" >&2
21866     ;;
21867 esac
21868 echo "$as_me:$LINENO: checking for $ac_header" >&5
21869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21871   echo $ECHO_N "(cached) $ECHO_C" >&6
21872 else
21873   eval "$as_ac_Header=\$ac_header_preproc"
21874 fi
21875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21877
21878 fi
21879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21880   cat >>confdefs.h <<_ACEOF
21881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21882 _ACEOF
21883
21884 fi
21885
21886 done
21887
21888 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21889 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21890 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21891   echo $ECHO_N "(cached) $ECHO_C" >&6
21892 else
21893   if test "$cross_compiling" = yes; then
21894   ac_cv_func_malloc_0_nonnull=no
21895 else
21896   cat >conftest.$ac_ext <<_ACEOF
21897 /* confdefs.h.  */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h.  */
21902 #if STDC_HEADERS || HAVE_STDLIB_H
21903 # include <stdlib.h>
21904 #else
21905 char *malloc ();
21906 #endif
21907
21908 int
21909 main ()
21910 {
21911 exit (malloc (0) ? 0 : 1);
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest$ac_exeext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918   (eval $ac_link) 2>&5
21919   ac_status=$?
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923   (eval $ac_try) 2>&5
21924   ac_status=$?
21925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926   (exit $ac_status); }; }; then
21927   ac_cv_func_malloc_0_nonnull=yes
21928 else
21929   echo "$as_me: program exited with status $ac_status" >&5
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933 ( exit $ac_status )
21934 ac_cv_func_malloc_0_nonnull=no
21935 fi
21936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21937 fi
21938 fi
21939 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21940 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21941 if test $ac_cv_func_malloc_0_nonnull = yes; then
21942
21943 cat >>confdefs.h <<\_ACEOF
21944 #define HAVE_MALLOC 1
21945 _ACEOF
21946
21947 else
21948   cat >>confdefs.h <<\_ACEOF
21949 #define HAVE_MALLOC 0
21950 _ACEOF
21951
21952    case $LIBOBJS in
21953     "malloc.$ac_objext"   | \
21954   *" malloc.$ac_objext"   | \
21955     "malloc.$ac_objext "* | \
21956   *" malloc.$ac_objext "* ) ;;
21957   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
21958 esac
21959
21960
21961 cat >>confdefs.h <<\_ACEOF
21962 #define malloc rpl_malloc
21963 _ACEOF
21964
21965 fi
21966
21967
21968
21969
21970
21971
21972 for ac_header in stdlib.h sys/time.h unistd.h
21973 do
21974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21976   echo "$as_me:$LINENO: checking for $ac_header" >&5
21977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21979   echo $ECHO_N "(cached) $ECHO_C" >&6
21980 fi
21981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21983 else
21984   # Is the header compilable?
21985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21987 cat >conftest.$ac_ext <<_ACEOF
21988 /* confdefs.h.  */
21989 _ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h.  */
21993 $ac_includes_default
21994 #include <$ac_header>
21995 _ACEOF
21996 rm -f conftest.$ac_objext
21997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21998   (eval $ac_compile) 2>conftest.er1
21999   ac_status=$?
22000   grep -v '^ *+' conftest.er1 >conftest.err
22001   rm -f conftest.er1
22002   cat conftest.err >&5
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); } &&
22005          { ac_try='test -z "$ac_c_werror_flag"
22006                          || test ! -s conftest.err'
22007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008   (eval $ac_try) 2>&5
22009   ac_status=$?
22010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011   (exit $ac_status); }; } &&
22012          { ac_try='test -s conftest.$ac_objext'
22013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014   (eval $ac_try) 2>&5
22015   ac_status=$?
22016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017   (exit $ac_status); }; }; then
22018   ac_header_compiler=yes
22019 else
22020   echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22022
22023 ac_header_compiler=no
22024 fi
22025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22027 echo "${ECHO_T}$ac_header_compiler" >&6
22028
22029 # Is the header present?
22030 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22032 cat >conftest.$ac_ext <<_ACEOF
22033 /* confdefs.h.  */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h.  */
22038 #include <$ac_header>
22039 _ACEOF
22040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22041   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22042   ac_status=$?
22043   grep -v '^ *+' conftest.er1 >conftest.err
22044   rm -f conftest.er1
22045   cat conftest.err >&5
22046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047   (exit $ac_status); } >/dev/null; then
22048   if test -s conftest.err; then
22049     ac_cpp_err=$ac_c_preproc_warn_flag
22050     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22051   else
22052     ac_cpp_err=
22053   fi
22054 else
22055   ac_cpp_err=yes
22056 fi
22057 if test -z "$ac_cpp_err"; then
22058   ac_header_preproc=yes
22059 else
22060   echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22062
22063   ac_header_preproc=no
22064 fi
22065 rm -f conftest.err conftest.$ac_ext
22066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22067 echo "${ECHO_T}$ac_header_preproc" >&6
22068
22069 # So?  What about this header?
22070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22071   yes:no: )
22072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22076     ac_header_preproc=yes
22077     ;;
22078   no:yes:* )
22079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22091     (
22092       cat <<\_ASBOX
22093 ## ----------------------------------------------- ##
22094 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
22095 ## ----------------------------------------------- ##
22096 _ASBOX
22097     ) |
22098       sed "s/^/$as_me: WARNING:     /" >&2
22099     ;;
22100 esac
22101 echo "$as_me:$LINENO: checking for $ac_header" >&5
22102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22104   echo $ECHO_N "(cached) $ECHO_C" >&6
22105 else
22106   eval "$as_ac_Header=\$ac_header_preproc"
22107 fi
22108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22110
22111 fi
22112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22113   cat >>confdefs.h <<_ACEOF
22114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22115 _ACEOF
22116
22117 fi
22118
22119 done
22120
22121
22122 for ac_func in alarm
22123 do
22124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22125 echo "$as_me:$LINENO: checking for $ac_func" >&5
22126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22127 if eval "test \"\${$as_ac_var+set}\" = set"; then
22128   echo $ECHO_N "(cached) $ECHO_C" >&6
22129 else
22130   cat >conftest.$ac_ext <<_ACEOF
22131 /* confdefs.h.  */
22132 _ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h.  */
22136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22138 #define $ac_func innocuous_$ac_func
22139
22140 /* System header to define __stub macros and hopefully few prototypes,
22141     which can conflict with char $ac_func (); below.
22142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22143     <limits.h> exists even on freestanding compilers.  */
22144
22145 #ifdef __STDC__
22146 # include <limits.h>
22147 #else
22148 # include <assert.h>
22149 #endif
22150
22151 #undef $ac_func
22152
22153 /* Override any gcc2 internal prototype to avoid an error.  */
22154 #ifdef __cplusplus
22155 extern "C"
22156 {
22157 #endif
22158 /* We use char because int might match the return type of a gcc2
22159    builtin and then its argument prototype would still apply.  */
22160 char $ac_func ();
22161 /* The GNU C library defines this for functions which it implements
22162     to always fail with ENOSYS.  Some functions are actually named
22163     something starting with __ and the normal name is an alias.  */
22164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22165 choke me
22166 #else
22167 char (*f) () = $ac_func;
22168 #endif
22169 #ifdef __cplusplus
22170 }
22171 #endif
22172
22173 int
22174 main ()
22175 {
22176 return f != $ac_func;
22177   ;
22178   return 0;
22179 }
22180 _ACEOF
22181 rm -f conftest.$ac_objext conftest$ac_exeext
22182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22183   (eval $ac_link) 2>conftest.er1
22184   ac_status=$?
22185   grep -v '^ *+' conftest.er1 >conftest.err
22186   rm -f conftest.er1
22187   cat conftest.err >&5
22188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189   (exit $ac_status); } &&
22190          { ac_try='test -z "$ac_c_werror_flag"
22191                          || test ! -s conftest.err'
22192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193   (eval $ac_try) 2>&5
22194   ac_status=$?
22195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196   (exit $ac_status); }; } &&
22197          { ac_try='test -s conftest$ac_exeext'
22198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22199   (eval $ac_try) 2>&5
22200   ac_status=$?
22201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202   (exit $ac_status); }; }; then
22203   eval "$as_ac_var=yes"
22204 else
22205   echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22207
22208 eval "$as_ac_var=no"
22209 fi
22210 rm -f conftest.err conftest.$ac_objext \
22211       conftest$ac_exeext conftest.$ac_ext
22212 fi
22213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22215 if test `eval echo '${'$as_ac_var'}'` = yes; then
22216   cat >>confdefs.h <<_ACEOF
22217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22218 _ACEOF
22219
22220 fi
22221 done
22222
22223 echo "$as_me:$LINENO: checking for working mktime" >&5
22224 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
22225 if test "${ac_cv_func_working_mktime+set}" = set; then
22226   echo $ECHO_N "(cached) $ECHO_C" >&6
22227 else
22228   if test "$cross_compiling" = yes; then
22229   ac_cv_func_working_mktime=no
22230 else
22231   cat >conftest.$ac_ext <<_ACEOF
22232 /* confdefs.h.  */
22233 _ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h.  */
22237 /* Test program from Paul Eggert and Tony Leneis.  */
22238 #if TIME_WITH_SYS_TIME
22239 # include <sys/time.h>
22240 # include <time.h>
22241 #else
22242 # if HAVE_SYS_TIME_H
22243 #  include <sys/time.h>
22244 # else
22245 #  include <time.h>
22246 # endif
22247 #endif
22248
22249 #if HAVE_STDLIB_H
22250 # include <stdlib.h>
22251 #endif
22252
22253 #if HAVE_UNISTD_H
22254 # include <unistd.h>
22255 #endif
22256
22257 #if !HAVE_ALARM
22258 # define alarm(X) /* empty */
22259 #endif
22260
22261 /* Work around redefinition to rpl_putenv by other config tests.  */
22262 #undef putenv
22263
22264 static time_t time_t_max;
22265 static time_t time_t_min;
22266
22267 /* Values we'll use to set the TZ environment variable.  */
22268 static char *tz_strings[] = {
22269   (char *) 0, "TZ=GMT0", "TZ=JST-9",
22270   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22271 };
22272 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22273
22274 /* Fail if mktime fails to convert a date in the spring-forward gap.
22275    Based on a problem report from Andreas Jaeger.  */
22276 static void
22277 spring_forward_gap ()
22278 {
22279   /* glibc (up to about 1998-10-07) failed this test. */
22280   struct tm tm;
22281
22282   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22283      instead of "TZ=America/Vancouver" in order to detect the bug even
22284      on systems that don't support the Olson extension, or don't have the
22285      full zoneinfo tables installed.  */
22286   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22287
22288   tm.tm_year = 98;
22289   tm.tm_mon = 3;
22290   tm.tm_mday = 5;
22291   tm.tm_hour = 2;
22292   tm.tm_min = 0;
22293   tm.tm_sec = 0;
22294   tm.tm_isdst = -1;
22295   if (mktime (&tm) == (time_t)-1)
22296     exit (1);
22297 }
22298
22299 static void
22300 mktime_test1 (now)
22301      time_t now;
22302 {
22303   struct tm *lt;
22304   if ((lt = localtime (&now)) && mktime (lt) != now)
22305     exit (1);
22306 }
22307
22308 static void
22309 mktime_test (now)
22310      time_t now;
22311 {
22312   mktime_test1 (now);
22313   mktime_test1 ((time_t) (time_t_max - now));
22314   mktime_test1 ((time_t) (time_t_min + now));
22315 }
22316
22317 static void
22318 irix_6_4_bug ()
22319 {
22320   /* Based on code from Ariel Faigon.  */
22321   struct tm tm;
22322   tm.tm_year = 96;
22323   tm.tm_mon = 3;
22324   tm.tm_mday = 0;
22325   tm.tm_hour = 0;
22326   tm.tm_min = 0;
22327   tm.tm_sec = 0;
22328   tm.tm_isdst = -1;
22329   mktime (&tm);
22330   if (tm.tm_mon != 2 || tm.tm_mday != 31)
22331     exit (1);
22332 }
22333
22334 static void
22335 bigtime_test (j)
22336      int j;
22337 {
22338   struct tm tm;
22339   time_t now;
22340   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22341   now = mktime (&tm);
22342   if (now != (time_t) -1)
22343     {
22344       struct tm *lt = localtime (&now);
22345       if (! (lt
22346              && lt->tm_year == tm.tm_year
22347              && lt->tm_mon == tm.tm_mon
22348              && lt->tm_mday == tm.tm_mday
22349              && lt->tm_hour == tm.tm_hour
22350              && lt->tm_min == tm.tm_min
22351              && lt->tm_sec == tm.tm_sec
22352              && lt->tm_yday == tm.tm_yday
22353              && lt->tm_wday == tm.tm_wday
22354              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22355                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22356         exit (1);
22357     }
22358 }
22359
22360 int
22361 main ()
22362 {
22363   time_t t, delta;
22364   int i, j;
22365
22366   /* This test makes some buggy mktime implementations loop.
22367      Give up after 60 seconds; a mktime slower than that
22368      isn't worth using anyway.  */
22369   alarm (60);
22370
22371   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22372     continue;
22373   time_t_max--;
22374   if ((time_t) -1 < 0)
22375     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
22376       continue;
22377   delta = time_t_max / 997; /* a suitable prime number */
22378   for (i = 0; i < N_STRINGS; i++)
22379     {
22380       if (tz_strings[i])
22381         putenv (tz_strings[i]);
22382
22383       for (t = 0; t <= time_t_max - delta; t += delta)
22384         mktime_test (t);
22385       mktime_test ((time_t) 1);
22386       mktime_test ((time_t) (60 * 60));
22387       mktime_test ((time_t) (60 * 60 * 24));
22388
22389       for (j = 1; 0 < j; j *= 2)
22390         bigtime_test (j);
22391       bigtime_test (j - 1);
22392     }
22393   irix_6_4_bug ();
22394   spring_forward_gap ();
22395   exit (0);
22396 }
22397 _ACEOF
22398 rm -f conftest$ac_exeext
22399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22400   (eval $ac_link) 2>&5
22401   ac_status=$?
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405   (eval $ac_try) 2>&5
22406   ac_status=$?
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); }; }; then
22409   ac_cv_func_working_mktime=yes
22410 else
22411   echo "$as_me: program exited with status $ac_status" >&5
22412 echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415 ( exit $ac_status )
22416 ac_cv_func_working_mktime=no
22417 fi
22418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22419 fi
22420 fi
22421 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22422 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
22423 if test $ac_cv_func_working_mktime = no; then
22424   case $LIBOBJS in
22425     "mktime.$ac_objext"   | \
22426   *" mktime.$ac_objext"   | \
22427     "mktime.$ac_objext "* | \
22428   *" mktime.$ac_objext "* ) ;;
22429   *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
22430 esac
22431
22432 fi
22433
22434 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22435 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22436 if test "${ac_cv_type_signal+set}" = set; then
22437   echo $ECHO_N "(cached) $ECHO_C" >&6
22438 else
22439   cat >conftest.$ac_ext <<_ACEOF
22440 /* confdefs.h.  */
22441 _ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h.  */
22445 #include <sys/types.h>
22446 #include <signal.h>
22447 #ifdef signal
22448 # undef signal
22449 #endif
22450 #ifdef __cplusplus
22451 extern "C" void (*signal (int, void (*)(int)))(int);
22452 #else
22453 void (*signal ()) ();
22454 #endif
22455
22456 int
22457 main ()
22458 {
22459 int i;
22460   ;
22461   return 0;
22462 }
22463 _ACEOF
22464 rm -f conftest.$ac_objext
22465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22466   (eval $ac_compile) 2>conftest.er1
22467   ac_status=$?
22468   grep -v '^ *+' conftest.er1 >conftest.err
22469   rm -f conftest.er1
22470   cat conftest.err >&5
22471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472   (exit $ac_status); } &&
22473          { ac_try='test -z "$ac_c_werror_flag"
22474                          || test ! -s conftest.err'
22475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476   (eval $ac_try) 2>&5
22477   ac_status=$?
22478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479   (exit $ac_status); }; } &&
22480          { ac_try='test -s conftest.$ac_objext'
22481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482   (eval $ac_try) 2>&5
22483   ac_status=$?
22484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); }; }; then
22486   ac_cv_type_signal=void
22487 else
22488   echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22490
22491 ac_cv_type_signal=int
22492 fi
22493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22494 fi
22495 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22496 echo "${ECHO_T}$ac_cv_type_signal" >&6
22497
22498 cat >>confdefs.h <<_ACEOF
22499 #define RETSIGTYPE $ac_cv_type_signal
22500 _ACEOF
22501
22502
22503 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22504 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
22505 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22506   echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22508   rm -f conftest.sym conftest.file
22509 echo >conftest.file
22510 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22511   if test "$cross_compiling" = yes; then
22512   ac_cv_func_lstat_dereferences_slashed_symlink=no
22513 else
22514   cat >conftest.$ac_ext <<_ACEOF
22515 /* confdefs.h.  */
22516 _ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h.  */
22520 $ac_includes_default
22521 int
22522 main ()
22523 {
22524 struct stat sbuf;
22525      /* Linux will dereference the symlink and fail.
22526         That is better in the sense that it means we will not
22527         have to compile and use the lstat wrapper.  */
22528      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
22529   ;
22530   return 0;
22531 }
22532 _ACEOF
22533 rm -f conftest$ac_exeext
22534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22535   (eval $ac_link) 2>&5
22536   ac_status=$?
22537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540   (eval $ac_try) 2>&5
22541   ac_status=$?
22542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543   (exit $ac_status); }; }; then
22544   ac_cv_func_lstat_dereferences_slashed_symlink=yes
22545 else
22546   echo "$as_me: program exited with status $ac_status" >&5
22547 echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22549
22550 ( exit $ac_status )
22551 ac_cv_func_lstat_dereferences_slashed_symlink=no
22552 fi
22553 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22554 fi
22555 else
22556   # If the `ln -s' command failed, then we probably don't even
22557   # have an lstat function.
22558   ac_cv_func_lstat_dereferences_slashed_symlink=no
22559 fi
22560 rm -f conftest.sym conftest.file
22561
22562 fi
22563 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22564 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
22565
22566 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22567
22568 cat >>confdefs.h <<_ACEOF
22569 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22570 _ACEOF
22571
22572
22573 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22574   case $LIBOBJS in
22575     "lstat.$ac_objext"   | \
22576   *" lstat.$ac_objext"   | \
22577     "lstat.$ac_objext "* | \
22578   *" lstat.$ac_objext "* ) ;;
22579   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
22580 esac
22581
22582 fi
22583
22584 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22585 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
22586 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22587   echo $ECHO_N "(cached) $ECHO_C" >&6
22588 else
22589   if test "$cross_compiling" = yes; then
22590   ac_cv_func_stat_empty_string_bug=yes
22591 else
22592   cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h.  */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h.  */
22598 $ac_includes_default
22599 int
22600 main ()
22601 {
22602 struct stat sbuf;
22603   exit (stat ("", &sbuf) ? 1 : 0);
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest$ac_exeext
22609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22610   (eval $ac_link) 2>&5
22611   ac_status=$?
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615   (eval $ac_try) 2>&5
22616   ac_status=$?
22617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618   (exit $ac_status); }; }; then
22619   ac_cv_func_stat_empty_string_bug=yes
22620 else
22621   echo "$as_me: program exited with status $ac_status" >&5
22622 echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22624
22625 ( exit $ac_status )
22626 ac_cv_func_stat_empty_string_bug=no
22627 fi
22628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22629 fi
22630 fi
22631 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
22632 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
22633 if test $ac_cv_func_stat_empty_string_bug = yes; then
22634   case $LIBOBJS in
22635     "stat.$ac_objext"   | \
22636   *" stat.$ac_objext"   | \
22637     "stat.$ac_objext "* | \
22638   *" stat.$ac_objext "* ) ;;
22639   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
22640 esac
22641
22642
22643 cat >>confdefs.h <<_ACEOF
22644 #define HAVE_STAT_EMPTY_STRING_BUG 1
22645 _ACEOF
22646
22647 fi
22648
22649
22650 for ac_func in strftime
22651 do
22652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22653 echo "$as_me:$LINENO: checking for $ac_func" >&5
22654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22655 if eval "test \"\${$as_ac_var+set}\" = set"; then
22656   echo $ECHO_N "(cached) $ECHO_C" >&6
22657 else
22658   cat >conftest.$ac_ext <<_ACEOF
22659 /* confdefs.h.  */
22660 _ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h.  */
22664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22666 #define $ac_func innocuous_$ac_func
22667
22668 /* System header to define __stub macros and hopefully few prototypes,
22669     which can conflict with char $ac_func (); below.
22670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22671     <limits.h> exists even on freestanding compilers.  */
22672
22673 #ifdef __STDC__
22674 # include <limits.h>
22675 #else
22676 # include <assert.h>
22677 #endif
22678
22679 #undef $ac_func
22680
22681 /* Override any gcc2 internal prototype to avoid an error.  */
22682 #ifdef __cplusplus
22683 extern "C"
22684 {
22685 #endif
22686 /* We use char because int might match the return type of a gcc2
22687    builtin and then its argument prototype would still apply.  */
22688 char $ac_func ();
22689 /* The GNU C library defines this for functions which it implements
22690     to always fail with ENOSYS.  Some functions are actually named
22691     something starting with __ and the normal name is an alias.  */
22692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22693 choke me
22694 #else
22695 char (*f) () = $ac_func;
22696 #endif
22697 #ifdef __cplusplus
22698 }
22699 #endif
22700
22701 int
22702 main ()
22703 {
22704 return f != $ac_func;
22705   ;
22706   return 0;
22707 }
22708 _ACEOF
22709 rm -f conftest.$ac_objext conftest$ac_exeext
22710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22711   (eval $ac_link) 2>conftest.er1
22712   ac_status=$?
22713   grep -v '^ *+' conftest.er1 >conftest.err
22714   rm -f conftest.er1
22715   cat conftest.err >&5
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); } &&
22718          { ac_try='test -z "$ac_c_werror_flag"
22719                          || test ! -s conftest.err'
22720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22721   (eval $ac_try) 2>&5
22722   ac_status=$?
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); }; } &&
22725          { ac_try='test -s conftest$ac_exeext'
22726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22727   (eval $ac_try) 2>&5
22728   ac_status=$?
22729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730   (exit $ac_status); }; }; then
22731   eval "$as_ac_var=yes"
22732 else
22733   echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22735
22736 eval "$as_ac_var=no"
22737 fi
22738 rm -f conftest.err conftest.$ac_objext \
22739       conftest$ac_exeext conftest.$ac_ext
22740 fi
22741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22743 if test `eval echo '${'$as_ac_var'}'` = yes; then
22744   cat >>confdefs.h <<_ACEOF
22745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22746 _ACEOF
22747
22748 else
22749   # strftime is in -lintl on SCO UNIX.
22750 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22751 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
22752 if test "${ac_cv_lib_intl_strftime+set}" = set; then
22753   echo $ECHO_N "(cached) $ECHO_C" >&6
22754 else
22755   ac_check_lib_save_LIBS=$LIBS
22756 LIBS="-lintl  $LIBS"
22757 cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h.  */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h.  */
22763
22764 /* Override any gcc2 internal prototype to avoid an error.  */
22765 #ifdef __cplusplus
22766 extern "C"
22767 #endif
22768 /* We use char because int might match the return type of a gcc2
22769    builtin and then its argument prototype would still apply.  */
22770 char strftime ();
22771 int
22772 main ()
22773 {
22774 strftime ();
22775   ;
22776   return 0;
22777 }
22778 _ACEOF
22779 rm -f conftest.$ac_objext conftest$ac_exeext
22780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22781   (eval $ac_link) 2>conftest.er1
22782   ac_status=$?
22783   grep -v '^ *+' conftest.er1 >conftest.err
22784   rm -f conftest.er1
22785   cat conftest.err >&5
22786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787   (exit $ac_status); } &&
22788          { ac_try='test -z "$ac_c_werror_flag"
22789                          || test ! -s conftest.err'
22790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791   (eval $ac_try) 2>&5
22792   ac_status=$?
22793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794   (exit $ac_status); }; } &&
22795          { ac_try='test -s conftest$ac_exeext'
22796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797   (eval $ac_try) 2>&5
22798   ac_status=$?
22799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); }; }; then
22801   ac_cv_lib_intl_strftime=yes
22802 else
22803   echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22805
22806 ac_cv_lib_intl_strftime=no
22807 fi
22808 rm -f conftest.err conftest.$ac_objext \
22809       conftest$ac_exeext conftest.$ac_ext
22810 LIBS=$ac_check_lib_save_LIBS
22811 fi
22812 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22813 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
22814 if test $ac_cv_lib_intl_strftime = yes; then
22815   cat >>confdefs.h <<\_ACEOF
22816 #define HAVE_STRFTIME 1
22817 _ACEOF
22818
22819 LIBS="-lintl $LIBS"
22820 fi
22821
22822 fi
22823 done
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838 for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strrchr strstr strtol strtoul
22839 do
22840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22841 echo "$as_me:$LINENO: checking for $ac_func" >&5
22842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22843 if eval "test \"\${$as_ac_var+set}\" = set"; then
22844   echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846   cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h.  */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h.  */
22852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22854 #define $ac_func innocuous_$ac_func
22855
22856 /* System header to define __stub macros and hopefully few prototypes,
22857     which can conflict with char $ac_func (); below.
22858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22859     <limits.h> exists even on freestanding compilers.  */
22860
22861 #ifdef __STDC__
22862 # include <limits.h>
22863 #else
22864 # include <assert.h>
22865 #endif
22866
22867 #undef $ac_func
22868
22869 /* Override any gcc2 internal prototype to avoid an error.  */
22870 #ifdef __cplusplus
22871 extern "C"
22872 {
22873 #endif
22874 /* We use char because int might match the return type of a gcc2
22875    builtin and then its argument prototype would still apply.  */
22876 char $ac_func ();
22877 /* The GNU C library defines this for functions which it implements
22878     to always fail with ENOSYS.  Some functions are actually named
22879     something starting with __ and the normal name is an alias.  */
22880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22881 choke me
22882 #else
22883 char (*f) () = $ac_func;
22884 #endif
22885 #ifdef __cplusplus
22886 }
22887 #endif
22888
22889 int
22890 main ()
22891 {
22892 return f != $ac_func;
22893   ;
22894   return 0;
22895 }
22896 _ACEOF
22897 rm -f conftest.$ac_objext conftest$ac_exeext
22898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22899   (eval $ac_link) 2>conftest.er1
22900   ac_status=$?
22901   grep -v '^ *+' conftest.er1 >conftest.err
22902   rm -f conftest.er1
22903   cat conftest.err >&5
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); } &&
22906          { ac_try='test -z "$ac_c_werror_flag"
22907                          || test ! -s conftest.err'
22908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909   (eval $ac_try) 2>&5
22910   ac_status=$?
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); }; } &&
22913          { ac_try='test -s conftest$ac_exeext'
22914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915   (eval $ac_try) 2>&5
22916   ac_status=$?
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); }; }; then
22919   eval "$as_ac_var=yes"
22920 else
22921   echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22923
22924 eval "$as_ac_var=no"
22925 fi
22926 rm -f conftest.err conftest.$ac_objext \
22927       conftest$ac_exeext conftest.$ac_ext
22928 fi
22929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22931 if test `eval echo '${'$as_ac_var'}'` = yes; then
22932   cat >>confdefs.h <<_ACEOF
22933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22934 _ACEOF
22935
22936 fi
22937 done
22938
22939
22940 # sys/queue.h exists on most systems, but its capabilities vary a great deal.
22941 # test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
22942 # all of them, and are necessary for OpenBSM.
22943 cat >conftest.$ac_ext <<_ACEOF
22944 /* confdefs.h.  */
22945 _ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h.  */
22949
22950         #include <sys/queue.h>
22951
22952 int
22953 main ()
22954 {
22955
22956
22957         #ifndef LIST_FIRST
22958         #error LIST_FIRST missing
22959         #endif
22960         #ifndef TAILQ_FOREACH_SAFE
22961         #error TAILQ_FOREACH_SAFE
22962         #endif
22963
22964   ;
22965   return 0;
22966 }
22967 _ACEOF
22968 rm -f conftest.$ac_objext conftest$ac_exeext
22969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22970   (eval $ac_link) 2>conftest.er1
22971   ac_status=$?
22972   grep -v '^ *+' conftest.er1 >conftest.err
22973   rm -f conftest.er1
22974   cat conftest.err >&5
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); } &&
22977          { ac_try='test -z "$ac_c_werror_flag"
22978                          || test ! -s conftest.err'
22979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22980   (eval $ac_try) 2>&5
22981   ac_status=$?
22982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983   (exit $ac_status); }; } &&
22984          { ac_try='test -s conftest$ac_exeext'
22985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986   (eval $ac_try) 2>&5
22987   ac_status=$?
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); }; }; then
22990
22991
22992 cat >>confdefs.h <<\_ACEOF
22993 #define HAVE_FULL_QUEUE_H
22994 _ACEOF
22995
22996
22997 else
22998   echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23000
23001 fi
23002 rm -f conftest.err conftest.$ac_objext \
23003       conftest$ac_exeext conftest.$ac_ext
23004
23005 # Systems may not define key audit system calls, in which case libbsm cannot
23006 # depend on them or it will generate link-time or run-time errors.  Test for
23007 # just one.
23008 cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h.  */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h.  */
23014
23015         #include <stdlib.h>
23016
23017         extern int auditon(int, void *, int);
23018
23019 int
23020 main ()
23021 {
23022
23023         int err;
23024
23025         err = auditon(0, NULL, 0);
23026
23027   ;
23028   return 0;
23029 }
23030 _ACEOF
23031 rm -f conftest.$ac_objext conftest$ac_exeext
23032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23033   (eval $ac_link) 2>conftest.er1
23034   ac_status=$?
23035   grep -v '^ *+' conftest.er1 >conftest.err
23036   rm -f conftest.er1
23037   cat conftest.err >&5
23038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039   (exit $ac_status); } &&
23040          { ac_try='test -z "$ac_c_werror_flag"
23041                          || test ! -s conftest.err'
23042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043   (eval $ac_try) 2>&5
23044   ac_status=$?
23045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046   (exit $ac_status); }; } &&
23047          { ac_try='test -s conftest$ac_exeext'
23048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049   (eval $ac_try) 2>&5
23050   ac_status=$?
23051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052   (exit $ac_status); }; }; then
23053
23054
23055 cat >>confdefs.h <<\_ACEOF
23056 #define HAVE_AUDIT_SYSCALLS
23057 _ACEOF
23058
23059 have_audit_syscalls=true
23060
23061 else
23062   echo "$as_me: failed program was:" >&5
23063 sed 's/^/| /' conftest.$ac_ext >&5
23064
23065
23066 have_audit_syscalls=false
23067
23068 fi
23069 rm -f conftest.err conftest.$ac_objext \
23070       conftest$ac_exeext conftest.$ac_ext
23071
23072
23073 if $have_audit_syscalls; then
23074   HAVE_AUDIT_SYSCALLS_TRUE=
23075   HAVE_AUDIT_SYSCALLS_FALSE='#'
23076 else
23077   HAVE_AUDIT_SYSCALLS_TRUE='#'
23078   HAVE_AUDIT_SYSCALLS_FALSE=
23079 fi
23080
23081
23082                                                                                                                                                       ac_config_files="$ac_config_files Makefile bin/Makefile bin/audit/Makefile bin/auditd/Makefile bin/auditfilterd/Makefile bin/auditreduce/Makefile bin/praudit/Makefile bsm/Makefile libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
23083
23084
23085 cat >confcache <<\_ACEOF
23086 # This file is a shell script that caches the results of configure
23087 # tests run on this system so they can be shared between configure
23088 # scripts and configure runs, see configure's option --config-cache.
23089 # It is not useful on other systems.  If it contains results you don't
23090 # want to keep, you may remove or edit it.
23091 #
23092 # config.status only pays attention to the cache file if you give it
23093 # the --recheck option to rerun configure.
23094 #
23095 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23096 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23097 # following values.
23098
23099 _ACEOF
23100
23101 # The following way of writing the cache mishandles newlines in values,
23102 # but we know of no workaround that is simple, portable, and efficient.
23103 # So, don't put newlines in cache variables' values.
23104 # Ultrix sh set writes to stderr and can't be redirected directly,
23105 # and sets the high bit in the cache file unless we assign to the vars.
23106 {
23107   (set) 2>&1 |
23108     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23109     *ac_space=\ *)
23110       # `set' does not quote correctly, so add quotes (double-quote
23111       # substitution turns \\\\ into \\, and sed turns \\ into \).
23112       sed -n \
23113         "s/'/'\\\\''/g;
23114           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23115       ;;
23116     *)
23117       # `set' quotes correctly as required by POSIX, so do not add quotes.
23118       sed -n \
23119         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23120       ;;
23121     esac;
23122 } |
23123   sed '
23124      t clear
23125      : clear
23126      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23127      t end
23128      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23129      : end' >>confcache
23130 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23131   if test -w $cache_file; then
23132     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23133     cat confcache >$cache_file
23134   else
23135     echo "not updating unwritable cache $cache_file"
23136   fi
23137 fi
23138 rm -f confcache
23139
23140 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23141 # Let make expand exec_prefix.
23142 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23143
23144 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23145 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23146 # trailing colons and then remove the whole line if VPATH becomes empty
23147 # (actually we leave an empty line to preserve line numbers).
23148 if test "x$srcdir" = x.; then
23149   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23150 s/:*\$(srcdir):*/:/;
23151 s/:*\${srcdir}:*/:/;
23152 s/:*@srcdir@:*/:/;
23153 s/^\([^=]*=[     ]*\):*/\1/;
23154 s/:*$//;
23155 s/^[^=]*=[       ]*$//;
23156 }'
23157 fi
23158
23159 DEFS=-DHAVE_CONFIG_H
23160
23161 ac_libobjs=
23162 ac_ltlibobjs=
23163 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23164   # 1. Remove the extension, and $U if already installed.
23165   ac_i=`echo "$ac_i" |
23166          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23167   # 2. Add them.
23168   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23169   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23170 done
23171 LIBOBJS=$ac_libobjs
23172
23173 LTLIBOBJS=$ac_ltlibobjs
23174
23175
23176 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23177   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23178 Usually this means the macro was only invoked conditionally." >&5
23179 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23180 Usually this means the macro was only invoked conditionally." >&2;}
23181    { (exit 1); exit 1; }; }
23182 fi
23183 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23184   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23185 Usually this means the macro was only invoked conditionally." >&5
23186 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23187 Usually this means the macro was only invoked conditionally." >&2;}
23188    { (exit 1); exit 1; }; }
23189 fi
23190 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23191   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23192 Usually this means the macro was only invoked conditionally." >&5
23193 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23194 Usually this means the macro was only invoked conditionally." >&2;}
23195    { (exit 1); exit 1; }; }
23196 fi
23197 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23198   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23199 Usually this means the macro was only invoked conditionally." >&5
23200 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23201 Usually this means the macro was only invoked conditionally." >&2;}
23202    { (exit 1); exit 1; }; }
23203 fi
23204 if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
23205   { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
23206 Usually this means the macro was only invoked conditionally." >&5
23207 echo "$as_me: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
23208 Usually this means the macro was only invoked conditionally." >&2;}
23209    { (exit 1); exit 1; }; }
23210 fi
23211
23212 : ${CONFIG_STATUS=./config.status}
23213 ac_clean_files_save=$ac_clean_files
23214 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23215 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23216 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23217 cat >$CONFIG_STATUS <<_ACEOF
23218 #! $SHELL
23219 # Generated by $as_me.
23220 # Run this file to recreate the current configuration.
23221 # Compiler output produced by configure, useful for debugging
23222 # configure, is in config.log if it exists.
23223
23224 debug=false
23225 ac_cs_recheck=false
23226 ac_cs_silent=false
23227 SHELL=\${CONFIG_SHELL-$SHELL}
23228 _ACEOF
23229
23230 cat >>$CONFIG_STATUS <<\_ACEOF
23231 ## --------------------- ##
23232 ## M4sh Initialization.  ##
23233 ## --------------------- ##
23234
23235 # Be Bourne compatible
23236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23237   emulate sh
23238   NULLCMD=:
23239   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23240   # is contrary to our usage.  Disable this feature.
23241   alias -g '${1+"$@"}'='"$@"'
23242 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23243   set -o posix
23244 fi
23245 DUALCASE=1; export DUALCASE # for MKS sh
23246
23247 # Support unset when possible.
23248 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23249   as_unset=unset
23250 else
23251   as_unset=false
23252 fi
23253
23254
23255 # Work around bugs in pre-3.0 UWIN ksh.
23256 $as_unset ENV MAIL MAILPATH
23257 PS1='$ '
23258 PS2='> '
23259 PS4='+ '
23260
23261 # NLS nuisances.
23262 for as_var in \
23263   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23264   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23265   LC_TELEPHONE LC_TIME
23266 do
23267   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23268     eval $as_var=C; export $as_var
23269   else
23270     $as_unset $as_var
23271   fi
23272 done
23273
23274 # Required to use basename.
23275 if expr a : '\(a\)' >/dev/null 2>&1; then
23276   as_expr=expr
23277 else
23278   as_expr=false
23279 fi
23280
23281 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23282   as_basename=basename
23283 else
23284   as_basename=false
23285 fi
23286
23287
23288 # Name of the executable.
23289 as_me=`$as_basename "$0" ||
23290 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23291          X"$0" : 'X\(//\)$' \| \
23292          X"$0" : 'X\(/\)$' \| \
23293          .     : '\(.\)' 2>/dev/null ||
23294 echo X/"$0" |
23295     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23296           /^X\/\(\/\/\)$/{ s//\1/; q; }
23297           /^X\/\(\/\).*/{ s//\1/; q; }
23298           s/.*/./; q'`
23299
23300
23301 # PATH needs CR, and LINENO needs CR and PATH.
23302 # Avoid depending upon Character Ranges.
23303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23306 as_cr_digits='0123456789'
23307 as_cr_alnum=$as_cr_Letters$as_cr_digits
23308
23309 # The user is always right.
23310 if test "${PATH_SEPARATOR+set}" != set; then
23311   echo "#! /bin/sh" >conf$$.sh
23312   echo  "exit 0"   >>conf$$.sh
23313   chmod +x conf$$.sh
23314   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23315     PATH_SEPARATOR=';'
23316   else
23317     PATH_SEPARATOR=:
23318   fi
23319   rm -f conf$$.sh
23320 fi
23321
23322
23323   as_lineno_1=$LINENO
23324   as_lineno_2=$LINENO
23325   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23326   test "x$as_lineno_1" != "x$as_lineno_2" &&
23327   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23328   # Find who we are.  Look in the path if we contain no path at all
23329   # relative or not.
23330   case $0 in
23331     *[\\/]* ) as_myself=$0 ;;
23332     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23333 for as_dir in $PATH
23334 do
23335   IFS=$as_save_IFS
23336   test -z "$as_dir" && as_dir=.
23337   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23338 done
23339
23340        ;;
23341   esac
23342   # We did not find ourselves, most probably we were run as `sh COMMAND'
23343   # in which case we are not to be found in the path.
23344   if test "x$as_myself" = x; then
23345     as_myself=$0
23346   fi
23347   if test ! -f "$as_myself"; then
23348     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23349 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23350    { (exit 1); exit 1; }; }
23351   fi
23352   case $CONFIG_SHELL in
23353   '')
23354     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23355 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23356 do
23357   IFS=$as_save_IFS
23358   test -z "$as_dir" && as_dir=.
23359   for as_base in sh bash ksh sh5; do
23360          case $as_dir in
23361          /*)
23362            if ("$as_dir/$as_base" -c '
23363   as_lineno_1=$LINENO
23364   as_lineno_2=$LINENO
23365   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23366   test "x$as_lineno_1" != "x$as_lineno_2" &&
23367   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23368              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23369              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23370              CONFIG_SHELL=$as_dir/$as_base
23371              export CONFIG_SHELL
23372              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23373            fi;;
23374          esac
23375        done
23376 done
23377 ;;
23378   esac
23379
23380   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23381   # uniformly replaced by the line number.  The first 'sed' inserts a
23382   # line-number line before each line; the second 'sed' does the real
23383   # work.  The second script uses 'N' to pair each line-number line
23384   # with the numbered line, and appends trailing '-' during
23385   # substitution so that $LINENO is not a special case at line end.
23386   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23387   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23388   sed '=' <$as_myself |
23389     sed '
23390       N
23391       s,$,-,
23392       : loop
23393       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23394       t loop
23395       s,-$,,
23396       s,^['$as_cr_digits']*\n,,
23397     ' >$as_me.lineno &&
23398   chmod +x $as_me.lineno ||
23399     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23400 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23401    { (exit 1); exit 1; }; }
23402
23403   # Don't try to exec as it changes $[0], causing all sort of problems
23404   # (the dirname of $[0] is not the place where we might find the
23405   # original and so on.  Autoconf is especially sensible to this).
23406   . ./$as_me.lineno
23407   # Exit status is that of the last command.
23408   exit
23409 }
23410
23411
23412 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23413   *c*,-n*) ECHO_N= ECHO_C='
23414 ' ECHO_T='      ' ;;
23415   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23416   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23417 esac
23418
23419 if expr a : '\(a\)' >/dev/null 2>&1; then
23420   as_expr=expr
23421 else
23422   as_expr=false
23423 fi
23424
23425 rm -f conf$$ conf$$.exe conf$$.file
23426 echo >conf$$.file
23427 if ln -s conf$$.file conf$$ 2>/dev/null; then
23428   # We could just check for DJGPP; but this test a) works b) is more generic
23429   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23430   if test -f conf$$.exe; then
23431     # Don't use ln at all; we don't have any links
23432     as_ln_s='cp -p'
23433   else
23434     as_ln_s='ln -s'
23435   fi
23436 elif ln conf$$.file conf$$ 2>/dev/null; then
23437   as_ln_s=ln
23438 else
23439   as_ln_s='cp -p'
23440 fi
23441 rm -f conf$$ conf$$.exe conf$$.file
23442
23443 if mkdir -p . 2>/dev/null; then
23444   as_mkdir_p=:
23445 else
23446   test -d ./-p && rmdir ./-p
23447   as_mkdir_p=false
23448 fi
23449
23450 as_executable_p="test -f"
23451
23452 # Sed expression to map a string onto a valid CPP name.
23453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23454
23455 # Sed expression to map a string onto a valid variable name.
23456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23457
23458
23459 # IFS
23460 # We need space, tab and new line, in precisely that order.
23461 as_nl='
23462 '
23463 IFS="   $as_nl"
23464
23465 # CDPATH.
23466 $as_unset CDPATH
23467
23468 exec 6>&1
23469
23470 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23471 # report actual input values of CONFIG_FILES etc. instead of their
23472 # values after options handling.  Logging --version etc. is OK.
23473 exec 5>>config.log
23474 {
23475   echo
23476   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23477 ## Running $as_me. ##
23478 _ASBOX
23479 } >&5
23480 cat >&5 <<_CSEOF
23481
23482 This file was extended by OpenBSM $as_me 1.0alpha15, which was
23483 generated by GNU Autoconf 2.59.  Invocation command line was
23484
23485   CONFIG_FILES    = $CONFIG_FILES
23486   CONFIG_HEADERS  = $CONFIG_HEADERS
23487   CONFIG_LINKS    = $CONFIG_LINKS
23488   CONFIG_COMMANDS = $CONFIG_COMMANDS
23489   $ $0 $@
23490
23491 _CSEOF
23492 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23493 echo >&5
23494 _ACEOF
23495
23496 # Files that config.status was made for.
23497 if test -n "$ac_config_files"; then
23498   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23499 fi
23500
23501 if test -n "$ac_config_headers"; then
23502   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23503 fi
23504
23505 if test -n "$ac_config_links"; then
23506   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23507 fi
23508
23509 if test -n "$ac_config_commands"; then
23510   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23511 fi
23512
23513 cat >>$CONFIG_STATUS <<\_ACEOF
23514
23515 ac_cs_usage="\
23516 \`$as_me' instantiates files from templates according to the
23517 current configuration.
23518
23519 Usage: $0 [OPTIONS] [FILE]...
23520
23521   -h, --help       print this help, then exit
23522   -V, --version    print version number, then exit
23523   -q, --quiet      do not print progress messages
23524   -d, --debug      don't remove temporary files
23525       --recheck    update $as_me by reconfiguring in the same conditions
23526   --file=FILE[:TEMPLATE]
23527                    instantiate the configuration file FILE
23528   --header=FILE[:TEMPLATE]
23529                    instantiate the configuration header FILE
23530
23531 Configuration files:
23532 $config_files
23533
23534 Configuration headers:
23535 $config_headers
23536
23537 Configuration commands:
23538 $config_commands
23539
23540 Report bugs to <bug-autoconf@gnu.org>."
23541 _ACEOF
23542
23543 cat >>$CONFIG_STATUS <<_ACEOF
23544 ac_cs_version="\\
23545 OpenBSM config.status 1.0alpha15
23546 configured by $0, generated by GNU Autoconf 2.59,
23547   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23548
23549 Copyright (C) 2003 Free Software Foundation, Inc.
23550 This config.status script is free software; the Free Software Foundation
23551 gives unlimited permission to copy, distribute and modify it."
23552 srcdir=$srcdir
23553 INSTALL="$INSTALL"
23554 _ACEOF
23555
23556 cat >>$CONFIG_STATUS <<\_ACEOF
23557 # If no file are specified by the user, then we need to provide default
23558 # value.  By we need to know if files were specified by the user.
23559 ac_need_defaults=:
23560 while test $# != 0
23561 do
23562   case $1 in
23563   --*=*)
23564     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23565     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23566     ac_shift=:
23567     ;;
23568   -*)
23569     ac_option=$1
23570     ac_optarg=$2
23571     ac_shift=shift
23572     ;;
23573   *) # This is not an option, so the user has probably given explicit
23574      # arguments.
23575      ac_option=$1
23576      ac_need_defaults=false;;
23577   esac
23578
23579   case $ac_option in
23580   # Handling of the options.
23581 _ACEOF
23582 cat >>$CONFIG_STATUS <<\_ACEOF
23583   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23584     ac_cs_recheck=: ;;
23585   --version | --vers* | -V )
23586     echo "$ac_cs_version"; exit 0 ;;
23587   --he | --h)
23588     # Conflict between --help and --header
23589     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23590 Try \`$0 --help' for more information." >&5
23591 echo "$as_me: error: ambiguous option: $1
23592 Try \`$0 --help' for more information." >&2;}
23593    { (exit 1); exit 1; }; };;
23594   --help | --hel | -h )
23595     echo "$ac_cs_usage"; exit 0 ;;
23596   --debug | --d* | -d )
23597     debug=: ;;
23598   --file | --fil | --fi | --f )
23599     $ac_shift
23600     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23601     ac_need_defaults=false;;
23602   --header | --heade | --head | --hea )
23603     $ac_shift
23604     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23605     ac_need_defaults=false;;
23606   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23607   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23608     ac_cs_silent=: ;;
23609
23610   # This is an error.
23611   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23612 Try \`$0 --help' for more information." >&5
23613 echo "$as_me: error: unrecognized option: $1
23614 Try \`$0 --help' for more information." >&2;}
23615    { (exit 1); exit 1; }; } ;;
23616
23617   *) ac_config_targets="$ac_config_targets $1" ;;
23618
23619   esac
23620   shift
23621 done
23622
23623 ac_configure_extra_args=
23624
23625 if $ac_cs_silent; then
23626   exec 6>/dev/null
23627   ac_configure_extra_args="$ac_configure_extra_args --silent"
23628 fi
23629
23630 _ACEOF
23631 cat >>$CONFIG_STATUS <<_ACEOF
23632 if \$ac_cs_recheck; then
23633   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23634   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23635 fi
23636
23637 _ACEOF
23638
23639 cat >>$CONFIG_STATUS <<_ACEOF
23640 #
23641 # INIT-COMMANDS section.
23642 #
23643
23644 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23645
23646 _ACEOF
23647
23648
23649
23650 cat >>$CONFIG_STATUS <<\_ACEOF
23651 for ac_config_target in $ac_config_targets
23652 do
23653   case "$ac_config_target" in
23654   # Handling of arguments.
23655   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23656   "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
23657   "bin/audit/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
23658   "bin/auditd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
23659   "bin/auditfilterd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
23660   "bin/auditreduce/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
23661   "bin/praudit/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
23662   "bsm/Makefile" ) CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
23663   "libbsm/Makefile" ) CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
23664   "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
23665   "modules/auditfilter_noop/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
23666   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23667   "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23668   "test/bsm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
23669   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23670   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23671   "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
23672   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23673 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23674    { (exit 1); exit 1; }; };;
23675   esac
23676 done
23677
23678 # If the user did not use the arguments to specify the items to instantiate,
23679 # then the envvar interface is used.  Set only those that are not.
23680 # We use the long form for the default assignment because of an extremely
23681 # bizarre bug on SunOS 4.1.3.
23682 if $ac_need_defaults; then
23683   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23684   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23685   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23686 fi
23687
23688 # Have a temporary directory for convenience.  Make it in the build tree
23689 # simply because there is no reason to put it here, and in addition,
23690 # creating and moving files from /tmp can sometimes cause problems.
23691 # Create a temporary directory, and hook for its removal unless debugging.
23692 $debug ||
23693 {
23694   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23695   trap '{ (exit 1); exit 1; }' 1 2 13 15
23696 }
23697
23698 # Create a (secure) tmp directory for tmp files.
23699
23700 {
23701   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23702   test -n "$tmp" && test -d "$tmp"
23703 }  ||
23704 {
23705   tmp=./confstat$$-$RANDOM
23706   (umask 077 && mkdir $tmp)
23707 } ||
23708 {
23709    echo "$me: cannot create a temporary directory in ." >&2
23710    { (exit 1); exit 1; }
23711 }
23712
23713 _ACEOF
23714
23715 cat >>$CONFIG_STATUS <<_ACEOF
23716
23717 #
23718 # CONFIG_FILES section.
23719 #
23720
23721 # No need to generate the scripts if there are no CONFIG_FILES.
23722 # This happens for instance when ./config.status config.h
23723 if test -n "\$CONFIG_FILES"; then
23724   # Protect against being on the right side of a sed subst in config.status.
23725   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23726    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23727 s,@SHELL@,$SHELL,;t t
23728 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23729 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23730 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23731 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23732 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23733 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23734 s,@exec_prefix@,$exec_prefix,;t t
23735 s,@prefix@,$prefix,;t t
23736 s,@program_transform_name@,$program_transform_name,;t t
23737 s,@bindir@,$bindir,;t t
23738 s,@sbindir@,$sbindir,;t t
23739 s,@libexecdir@,$libexecdir,;t t
23740 s,@datadir@,$datadir,;t t
23741 s,@sysconfdir@,$sysconfdir,;t t
23742 s,@sharedstatedir@,$sharedstatedir,;t t
23743 s,@localstatedir@,$localstatedir,;t t
23744 s,@libdir@,$libdir,;t t
23745 s,@includedir@,$includedir,;t t
23746 s,@oldincludedir@,$oldincludedir,;t t
23747 s,@infodir@,$infodir,;t t
23748 s,@mandir@,$mandir,;t t
23749 s,@build_alias@,$build_alias,;t t
23750 s,@host_alias@,$host_alias,;t t
23751 s,@target_alias@,$target_alias,;t t
23752 s,@DEFS@,$DEFS,;t t
23753 s,@ECHO_C@,$ECHO_C,;t t
23754 s,@ECHO_N@,$ECHO_N,;t t
23755 s,@ECHO_T@,$ECHO_T,;t t
23756 s,@LIBS@,$LIBS,;t t
23757 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23758 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23759 s,@MAINT@,$MAINT,;t t
23760 s,@CC@,$CC,;t t
23761 s,@CFLAGS@,$CFLAGS,;t t
23762 s,@LDFLAGS@,$LDFLAGS,;t t
23763 s,@CPPFLAGS@,$CPPFLAGS,;t t
23764 s,@ac_ct_CC@,$ac_ct_CC,;t t
23765 s,@EXEEXT@,$EXEEXT,;t t
23766 s,@OBJEXT@,$OBJEXT,;t t
23767 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23768 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23769 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23770 s,@build@,$build,;t t
23771 s,@build_cpu@,$build_cpu,;t t
23772 s,@build_vendor@,$build_vendor,;t t
23773 s,@build_os@,$build_os,;t t
23774 s,@host@,$host,;t t
23775 s,@host_cpu@,$host_cpu,;t t
23776 s,@host_vendor@,$host_vendor,;t t
23777 s,@host_os@,$host_os,;t t
23778 s,@EGREP@,$EGREP,;t t
23779 s,@LN_S@,$LN_S,;t t
23780 s,@ECHO@,$ECHO,;t t
23781 s,@AR@,$AR,;t t
23782 s,@ac_ct_AR@,$ac_ct_AR,;t t
23783 s,@RANLIB@,$RANLIB,;t t
23784 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23785 s,@STRIP@,$STRIP,;t t
23786 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23787 s,@CPP@,$CPP,;t t
23788 s,@CXX@,$CXX,;t t
23789 s,@CXXFLAGS@,$CXXFLAGS,;t t
23790 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23791 s,@CXXCPP@,$CXXCPP,;t t
23792 s,@F77@,$F77,;t t
23793 s,@FFLAGS@,$FFLAGS,;t t
23794 s,@ac_ct_F77@,$ac_ct_F77,;t t
23795 s,@LIBTOOL@,$LIBTOOL,;t t
23796 s,@CYGPATH_W@,$CYGPATH_W,;t t
23797 s,@PACKAGE@,$PACKAGE,;t t
23798 s,@VERSION@,$VERSION,;t t
23799 s,@ACLOCAL@,$ACLOCAL,;t t
23800 s,@AUTOCONF@,$AUTOCONF,;t t
23801 s,@AUTOMAKE@,$AUTOMAKE,;t t
23802 s,@AUTOHEADER@,$AUTOHEADER,;t t
23803 s,@MAKEINFO@,$MAKEINFO,;t t
23804 s,@install_sh@,$install_sh,;t t
23805 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23806 s,@mkdir_p@,$mkdir_p,;t t
23807 s,@AWK@,$AWK,;t t
23808 s,@SET_MAKE@,$SET_MAKE,;t t
23809 s,@am__leading_dot@,$am__leading_dot,;t t
23810 s,@AMTAR@,$AMTAR,;t t
23811 s,@am__tar@,$am__tar,;t t
23812 s,@am__untar@,$am__untar,;t t
23813 s,@DEPDIR@,$DEPDIR,;t t
23814 s,@am__include@,$am__include,;t t
23815 s,@am__quote@,$am__quote,;t t
23816 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23817 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23818 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23819 s,@CCDEPMODE@,$CCDEPMODE,;t t
23820 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23821 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23822 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23823 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23824 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23825 s,@LIBOBJS@,$LIBOBJS,;t t
23826 s,@HAVE_AUDIT_SYSCALLS_TRUE@,$HAVE_AUDIT_SYSCALLS_TRUE,;t t
23827 s,@HAVE_AUDIT_SYSCALLS_FALSE@,$HAVE_AUDIT_SYSCALLS_FALSE,;t t
23828 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23829 CEOF
23830
23831 _ACEOF
23832
23833   cat >>$CONFIG_STATUS <<\_ACEOF
23834   # Split the substitutions into bite-sized pieces for seds with
23835   # small command number limits, like on Digital OSF/1 and HP-UX.
23836   ac_max_sed_lines=48
23837   ac_sed_frag=1 # Number of current file.
23838   ac_beg=1 # First line for current file.
23839   ac_end=$ac_max_sed_lines # Line after last line for current file.
23840   ac_more_lines=:
23841   ac_sed_cmds=
23842   while $ac_more_lines; do
23843     if test $ac_beg -gt 1; then
23844       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23845     else
23846       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23847     fi
23848     if test ! -s $tmp/subs.frag; then
23849       ac_more_lines=false
23850     else
23851       # The purpose of the label and of the branching condition is to
23852       # speed up the sed processing (if there are no `@' at all, there
23853       # is no need to browse any of the substitutions).
23854       # These are the two extra sed commands mentioned above.
23855       (echo ':t
23856   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23857       if test -z "$ac_sed_cmds"; then
23858         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23859       else
23860         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23861       fi
23862       ac_sed_frag=`expr $ac_sed_frag + 1`
23863       ac_beg=$ac_end
23864       ac_end=`expr $ac_end + $ac_max_sed_lines`
23865     fi
23866   done
23867   if test -z "$ac_sed_cmds"; then
23868     ac_sed_cmds=cat
23869   fi
23870 fi # test -n "$CONFIG_FILES"
23871
23872 _ACEOF
23873 cat >>$CONFIG_STATUS <<\_ACEOF
23874 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23875   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23876   case $ac_file in
23877   - | *:- | *:-:* ) # input from stdin
23878         cat >$tmp/stdin
23879         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23880         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23881   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23882         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23883   * )   ac_file_in=$ac_file.in ;;
23884   esac
23885
23886   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23887   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23889          X"$ac_file" : 'X\(//\)[^/]' \| \
23890          X"$ac_file" : 'X\(//\)$' \| \
23891          X"$ac_file" : 'X\(/\)' \| \
23892          .     : '\(.\)' 2>/dev/null ||
23893 echo X"$ac_file" |
23894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23895           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23896           /^X\(\/\/\)$/{ s//\1/; q; }
23897           /^X\(\/\).*/{ s//\1/; q; }
23898           s/.*/./; q'`
23899   { if $as_mkdir_p; then
23900     mkdir -p "$ac_dir"
23901   else
23902     as_dir="$ac_dir"
23903     as_dirs=
23904     while test ! -d "$as_dir"; do
23905       as_dirs="$as_dir $as_dirs"
23906       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23908          X"$as_dir" : 'X\(//\)[^/]' \| \
23909          X"$as_dir" : 'X\(//\)$' \| \
23910          X"$as_dir" : 'X\(/\)' \| \
23911          .     : '\(.\)' 2>/dev/null ||
23912 echo X"$as_dir" |
23913     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23914           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23915           /^X\(\/\/\)$/{ s//\1/; q; }
23916           /^X\(\/\).*/{ s//\1/; q; }
23917           s/.*/./; q'`
23918     done
23919     test ! -n "$as_dirs" || mkdir $as_dirs
23920   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23921 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23922    { (exit 1); exit 1; }; }; }
23923
23924   ac_builddir=.
23925
23926 if test "$ac_dir" != .; then
23927   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23928   # A "../" for each directory in $ac_dir_suffix.
23929   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23930 else
23931   ac_dir_suffix= ac_top_builddir=
23932 fi
23933
23934 case $srcdir in
23935   .)  # No --srcdir option.  We are building in place.
23936     ac_srcdir=.
23937     if test -z "$ac_top_builddir"; then
23938        ac_top_srcdir=.
23939     else
23940        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23941     fi ;;
23942   [\\/]* | ?:[\\/]* )  # Absolute path.
23943     ac_srcdir=$srcdir$ac_dir_suffix;
23944     ac_top_srcdir=$srcdir ;;
23945   *) # Relative path.
23946     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23947     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23948 esac
23949
23950 # Do not use `cd foo && pwd` to compute absolute paths, because
23951 # the directories may not exist.
23952 case `pwd` in
23953 .) ac_abs_builddir="$ac_dir";;
23954 *)
23955   case "$ac_dir" in
23956   .) ac_abs_builddir=`pwd`;;
23957   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23958   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23959   esac;;
23960 esac
23961 case $ac_abs_builddir in
23962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23963 *)
23964   case ${ac_top_builddir}. in
23965   .) ac_abs_top_builddir=$ac_abs_builddir;;
23966   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23967   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23968   esac;;
23969 esac
23970 case $ac_abs_builddir in
23971 .) ac_abs_srcdir=$ac_srcdir;;
23972 *)
23973   case $ac_srcdir in
23974   .) ac_abs_srcdir=$ac_abs_builddir;;
23975   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23976   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23977   esac;;
23978 esac
23979 case $ac_abs_builddir in
23980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23981 *)
23982   case $ac_top_srcdir in
23983   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23984   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23985   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23986   esac;;
23987 esac
23988
23989
23990   case $INSTALL in
23991   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23992   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23993   esac
23994
23995   if test x"$ac_file" != x-; then
23996     { echo "$as_me:$LINENO: creating $ac_file" >&5
23997 echo "$as_me: creating $ac_file" >&6;}
23998     rm -f "$ac_file"
23999   fi
24000   # Let's still pretend it is `configure' which instantiates (i.e., don't
24001   # use $as_me), people would be surprised to read:
24002   #    /* config.h.  Generated by config.status.  */
24003   if test x"$ac_file" = x-; then
24004     configure_input=
24005   else
24006     configure_input="$ac_file.  "
24007   fi
24008   configure_input=$configure_input"Generated from `echo $ac_file_in |
24009                                      sed 's,.*/,,'` by configure."
24010
24011   # First look for the input files in the build tree, otherwise in the
24012   # src tree.
24013   ac_file_inputs=`IFS=:
24014     for f in $ac_file_in; do
24015       case $f in
24016       -) echo $tmp/stdin ;;
24017       [\\/$]*)
24018          # Absolute (can't be DOS-style, as IFS=:)
24019          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24020 echo "$as_me: error: cannot find input file: $f" >&2;}
24021    { (exit 1); exit 1; }; }
24022          echo "$f";;
24023       *) # Relative
24024          if test -f "$f"; then
24025            # Build tree
24026            echo "$f"
24027          elif test -f "$srcdir/$f"; then
24028            # Source tree
24029            echo "$srcdir/$f"
24030          else
24031            # /dev/null tree
24032            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24033 echo "$as_me: error: cannot find input file: $f" >&2;}
24034    { (exit 1); exit 1; }; }
24035          fi;;
24036       esac
24037     done` || { (exit 1); exit 1; }
24038 _ACEOF
24039 cat >>$CONFIG_STATUS <<_ACEOF
24040   sed "$ac_vpsub
24041 $extrasub
24042 _ACEOF
24043 cat >>$CONFIG_STATUS <<\_ACEOF
24044 :t
24045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24046 s,@configure_input@,$configure_input,;t t
24047 s,@srcdir@,$ac_srcdir,;t t
24048 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24049 s,@top_srcdir@,$ac_top_srcdir,;t t
24050 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24051 s,@builddir@,$ac_builddir,;t t
24052 s,@abs_builddir@,$ac_abs_builddir,;t t
24053 s,@top_builddir@,$ac_top_builddir,;t t
24054 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24055 s,@INSTALL@,$ac_INSTALL,;t t
24056 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24057   rm -f $tmp/stdin
24058   if test x"$ac_file" != x-; then
24059     mv $tmp/out $ac_file
24060   else
24061     cat $tmp/out
24062     rm -f $tmp/out
24063   fi
24064
24065 done
24066 _ACEOF
24067 cat >>$CONFIG_STATUS <<\_ACEOF
24068
24069 #
24070 # CONFIG_HEADER section.
24071 #
24072
24073 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24074 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24075 #
24076 # ac_d sets the value in "#define NAME VALUE" lines.
24077 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24078 ac_dB='[         ].*$,\1#\2'
24079 ac_dC=' '
24080 ac_dD=',;t'
24081 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24082 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24083 ac_uB='$,\1#\2define\3'
24084 ac_uC=' '
24085 ac_uD=',;t'
24086
24087 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24088   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24089   case $ac_file in
24090   - | *:- | *:-:* ) # input from stdin
24091         cat >$tmp/stdin
24092         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24093         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24094   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24095         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24096   * )   ac_file_in=$ac_file.in ;;
24097   esac
24098
24099   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24100 echo "$as_me: creating $ac_file" >&6;}
24101
24102   # First look for the input files in the build tree, otherwise in the
24103   # src tree.
24104   ac_file_inputs=`IFS=:
24105     for f in $ac_file_in; do
24106       case $f in
24107       -) echo $tmp/stdin ;;
24108       [\\/$]*)
24109          # Absolute (can't be DOS-style, as IFS=:)
24110          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24111 echo "$as_me: error: cannot find input file: $f" >&2;}
24112    { (exit 1); exit 1; }; }
24113          # Do quote $f, to prevent DOS paths from being IFS'd.
24114          echo "$f";;
24115       *) # Relative
24116          if test -f "$f"; then
24117            # Build tree
24118            echo "$f"
24119          elif test -f "$srcdir/$f"; then
24120            # Source tree
24121            echo "$srcdir/$f"
24122          else
24123            # /dev/null tree
24124            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24125 echo "$as_me: error: cannot find input file: $f" >&2;}
24126    { (exit 1); exit 1; }; }
24127          fi;;
24128       esac
24129     done` || { (exit 1); exit 1; }
24130   # Remove the trailing spaces.
24131   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24132
24133 _ACEOF
24134
24135 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24136 # `conftest.undefs', that substitutes the proper values into
24137 # config.h.in to produce config.h.  The first handles `#define'
24138 # templates, and the second `#undef' templates.
24139 # And first: Protect against being on the right side of a sed subst in
24140 # config.status.  Protect against being in an unquoted here document
24141 # in config.status.
24142 rm -f conftest.defines conftest.undefs
24143 # Using a here document instead of a string reduces the quoting nightmare.
24144 # Putting comments in sed scripts is not portable.
24145 #
24146 # `end' is used to avoid that the second main sed command (meant for
24147 # 0-ary CPP macros) applies to n-ary macro definitions.
24148 # See the Autoconf documentation for `clear'.
24149 cat >confdef2sed.sed <<\_ACEOF
24150 s/[\\&,]/\\&/g
24151 s,[\\$`],\\&,g
24152 t clear
24153 : clear
24154 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24155 t end
24156 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24157 : end
24158 _ACEOF
24159 # If some macros were called several times there might be several times
24160 # the same #defines, which is useless.  Nevertheless, we may not want to
24161 # sort them, since we want the *last* AC-DEFINE to be honored.
24162 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24163 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24164 rm -f confdef2sed.sed
24165
24166 # This sed command replaces #undef with comments.  This is necessary, for
24167 # example, in the case of _POSIX_SOURCE, which is predefined and required
24168 # on some systems where configure will not decide to define it.
24169 cat >>conftest.undefs <<\_ACEOF
24170 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24171 _ACEOF
24172
24173 # Break up conftest.defines because some shells have a limit on the size
24174 # of here documents, and old seds have small limits too (100 cmds).
24175 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24176 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24177 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24178 echo '  :' >>$CONFIG_STATUS
24179 rm -f conftest.tail
24180 while grep . conftest.defines >/dev/null
24181 do
24182   # Write a limited-size here document to $tmp/defines.sed.
24183   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24184   # Speed up: don't consider the non `#define' lines.
24185   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24186   # Work around the forget-to-reset-the-flag bug.
24187   echo 't clr' >>$CONFIG_STATUS
24188   echo ': clr' >>$CONFIG_STATUS
24189   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24190   echo 'CEOF
24191   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24192   rm -f $tmp/in
24193   mv $tmp/out $tmp/in
24194 ' >>$CONFIG_STATUS
24195   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24196   rm -f conftest.defines
24197   mv conftest.tail conftest.defines
24198 done
24199 rm -f conftest.defines
24200 echo '  fi # grep' >>$CONFIG_STATUS
24201 echo >>$CONFIG_STATUS
24202
24203 # Break up conftest.undefs because some shells have a limit on the size
24204 # of here documents, and old seds have small limits too (100 cmds).
24205 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24206 rm -f conftest.tail
24207 while grep . conftest.undefs >/dev/null
24208 do
24209   # Write a limited-size here document to $tmp/undefs.sed.
24210   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24211   # Speed up: don't consider the non `#undef'
24212   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24213   # Work around the forget-to-reset-the-flag bug.
24214   echo 't clr' >>$CONFIG_STATUS
24215   echo ': clr' >>$CONFIG_STATUS
24216   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24217   echo 'CEOF
24218   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24219   rm -f $tmp/in
24220   mv $tmp/out $tmp/in
24221 ' >>$CONFIG_STATUS
24222   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24223   rm -f conftest.undefs
24224   mv conftest.tail conftest.undefs
24225 done
24226 rm -f conftest.undefs
24227
24228 cat >>$CONFIG_STATUS <<\_ACEOF
24229   # Let's still pretend it is `configure' which instantiates (i.e., don't
24230   # use $as_me), people would be surprised to read:
24231   #    /* config.h.  Generated by config.status.  */
24232   if test x"$ac_file" = x-; then
24233     echo "/* Generated by configure.  */" >$tmp/config.h
24234   else
24235     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24236   fi
24237   cat $tmp/in >>$tmp/config.h
24238   rm -f $tmp/in
24239   if test x"$ac_file" != x-; then
24240     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24241       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24242 echo "$as_me: $ac_file is unchanged" >&6;}
24243     else
24244       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24246          X"$ac_file" : 'X\(//\)[^/]' \| \
24247          X"$ac_file" : 'X\(//\)$' \| \
24248          X"$ac_file" : 'X\(/\)' \| \
24249          .     : '\(.\)' 2>/dev/null ||
24250 echo X"$ac_file" |
24251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24252           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24253           /^X\(\/\/\)$/{ s//\1/; q; }
24254           /^X\(\/\).*/{ s//\1/; q; }
24255           s/.*/./; q'`
24256       { if $as_mkdir_p; then
24257     mkdir -p "$ac_dir"
24258   else
24259     as_dir="$ac_dir"
24260     as_dirs=
24261     while test ! -d "$as_dir"; do
24262       as_dirs="$as_dir $as_dirs"
24263       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24265          X"$as_dir" : 'X\(//\)[^/]' \| \
24266          X"$as_dir" : 'X\(//\)$' \| \
24267          X"$as_dir" : 'X\(/\)' \| \
24268          .     : '\(.\)' 2>/dev/null ||
24269 echo X"$as_dir" |
24270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24271           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24272           /^X\(\/\/\)$/{ s//\1/; q; }
24273           /^X\(\/\).*/{ s//\1/; q; }
24274           s/.*/./; q'`
24275     done
24276     test ! -n "$as_dirs" || mkdir $as_dirs
24277   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24278 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24279    { (exit 1); exit 1; }; }; }
24280
24281       rm -f $ac_file
24282       mv $tmp/config.h $ac_file
24283     fi
24284   else
24285     cat $tmp/config.h
24286     rm -f $tmp/config.h
24287   fi
24288 # Compute $ac_file's index in $config_headers.
24289 _am_stamp_count=1
24290 for _am_header in $config_headers :; do
24291   case $_am_header in
24292     $ac_file | $ac_file:* )
24293       break ;;
24294     * )
24295       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24296   esac
24297 done
24298 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24299 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24300          X$ac_file : 'X\(//\)[^/]' \| \
24301          X$ac_file : 'X\(//\)$' \| \
24302          X$ac_file : 'X\(/\)' \| \
24303          .     : '\(.\)' 2>/dev/null ||
24304 echo X$ac_file |
24305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24306           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24307           /^X\(\/\/\)$/{ s//\1/; q; }
24308           /^X\(\/\).*/{ s//\1/; q; }
24309           s/.*/./; q'`/stamp-h$_am_stamp_count
24310 done
24311 _ACEOF
24312 cat >>$CONFIG_STATUS <<\_ACEOF
24313
24314 #
24315 # CONFIG_COMMANDS section.
24316 #
24317 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24318   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24319   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24320   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24321 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24322          X"$ac_dest" : 'X\(//\)[^/]' \| \
24323          X"$ac_dest" : 'X\(//\)$' \| \
24324          X"$ac_dest" : 'X\(/\)' \| \
24325          .     : '\(.\)' 2>/dev/null ||
24326 echo X"$ac_dest" |
24327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24328           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24329           /^X\(\/\/\)$/{ s//\1/; q; }
24330           /^X\(\/\).*/{ s//\1/; q; }
24331           s/.*/./; q'`
24332   { if $as_mkdir_p; then
24333     mkdir -p "$ac_dir"
24334   else
24335     as_dir="$ac_dir"
24336     as_dirs=
24337     while test ! -d "$as_dir"; do
24338       as_dirs="$as_dir $as_dirs"
24339       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24341          X"$as_dir" : 'X\(//\)[^/]' \| \
24342          X"$as_dir" : 'X\(//\)$' \| \
24343          X"$as_dir" : 'X\(/\)' \| \
24344          .     : '\(.\)' 2>/dev/null ||
24345 echo X"$as_dir" |
24346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24347           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24348           /^X\(\/\/\)$/{ s//\1/; q; }
24349           /^X\(\/\).*/{ s//\1/; q; }
24350           s/.*/./; q'`
24351     done
24352     test ! -n "$as_dirs" || mkdir $as_dirs
24353   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24354 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24355    { (exit 1); exit 1; }; }; }
24356
24357   ac_builddir=.
24358
24359 if test "$ac_dir" != .; then
24360   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24361   # A "../" for each directory in $ac_dir_suffix.
24362   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24363 else
24364   ac_dir_suffix= ac_top_builddir=
24365 fi
24366
24367 case $srcdir in
24368   .)  # No --srcdir option.  We are building in place.
24369     ac_srcdir=.
24370     if test -z "$ac_top_builddir"; then
24371        ac_top_srcdir=.
24372     else
24373        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24374     fi ;;
24375   [\\/]* | ?:[\\/]* )  # Absolute path.
24376     ac_srcdir=$srcdir$ac_dir_suffix;
24377     ac_top_srcdir=$srcdir ;;
24378   *) # Relative path.
24379     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24380     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24381 esac
24382
24383 # Do not use `cd foo && pwd` to compute absolute paths, because
24384 # the directories may not exist.
24385 case `pwd` in
24386 .) ac_abs_builddir="$ac_dir";;
24387 *)
24388   case "$ac_dir" in
24389   .) ac_abs_builddir=`pwd`;;
24390   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24391   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24392   esac;;
24393 esac
24394 case $ac_abs_builddir in
24395 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24396 *)
24397   case ${ac_top_builddir}. in
24398   .) ac_abs_top_builddir=$ac_abs_builddir;;
24399   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24400   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24401   esac;;
24402 esac
24403 case $ac_abs_builddir in
24404 .) ac_abs_srcdir=$ac_srcdir;;
24405 *)
24406   case $ac_srcdir in
24407   .) ac_abs_srcdir=$ac_abs_builddir;;
24408   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24409   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24410   esac;;
24411 esac
24412 case $ac_abs_builddir in
24413 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24414 *)
24415   case $ac_top_srcdir in
24416   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24417   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24418   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24419   esac;;
24420 esac
24421
24422
24423   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24424 echo "$as_me: executing $ac_dest commands" >&6;}
24425   case $ac_dest in
24426     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24427   # Strip MF so we end up with the name of the file.
24428   mf=`echo "$mf" | sed -e 's/:.*$//'`
24429   # Check whether this is an Automake generated Makefile or not.
24430   # We used to match only the files named `Makefile.in', but
24431   # some people rename them; so instead we look at the file content.
24432   # Grep'ing the first line is not enough: some people post-process
24433   # each Makefile.in and add a new line on top of each file to say so.
24434   # So let's grep whole file.
24435   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24436     dirpart=`(dirname "$mf") 2>/dev/null ||
24437 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24438          X"$mf" : 'X\(//\)[^/]' \| \
24439          X"$mf" : 'X\(//\)$' \| \
24440          X"$mf" : 'X\(/\)' \| \
24441          .     : '\(.\)' 2>/dev/null ||
24442 echo X"$mf" |
24443     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24444           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24445           /^X\(\/\/\)$/{ s//\1/; q; }
24446           /^X\(\/\).*/{ s//\1/; q; }
24447           s/.*/./; q'`
24448   else
24449     continue
24450   fi
24451   # Extract the definition of DEPDIR, am__include, and am__quote
24452   # from the Makefile without running `make'.
24453   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24454   test -z "$DEPDIR" && continue
24455   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24456   test -z "am__include" && continue
24457   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24458   # When using ansi2knr, U may be empty or an underscore; expand it
24459   U=`sed -n 's/^U = //p' < "$mf"`
24460   # Find all dependency output files, they are included files with
24461   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24462   # simplest approach to changing $(DEPDIR) to its actual value in the
24463   # expansion.
24464   for file in `sed -n "
24465     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24466        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24467     # Make sure the directory exists.
24468     test -f "$dirpart/$file" && continue
24469     fdir=`(dirname "$file") 2>/dev/null ||
24470 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24471          X"$file" : 'X\(//\)[^/]' \| \
24472          X"$file" : 'X\(//\)$' \| \
24473          X"$file" : 'X\(/\)' \| \
24474          .     : '\(.\)' 2>/dev/null ||
24475 echo X"$file" |
24476     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24477           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24478           /^X\(\/\/\)$/{ s//\1/; q; }
24479           /^X\(\/\).*/{ s//\1/; q; }
24480           s/.*/./; q'`
24481     { if $as_mkdir_p; then
24482     mkdir -p $dirpart/$fdir
24483   else
24484     as_dir=$dirpart/$fdir
24485     as_dirs=
24486     while test ! -d "$as_dir"; do
24487       as_dirs="$as_dir $as_dirs"
24488       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24490          X"$as_dir" : 'X\(//\)[^/]' \| \
24491          X"$as_dir" : 'X\(//\)$' \| \
24492          X"$as_dir" : 'X\(/\)' \| \
24493          .     : '\(.\)' 2>/dev/null ||
24494 echo X"$as_dir" |
24495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24496           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24497           /^X\(\/\/\)$/{ s//\1/; q; }
24498           /^X\(\/\).*/{ s//\1/; q; }
24499           s/.*/./; q'`
24500     done
24501     test ! -n "$as_dirs" || mkdir $as_dirs
24502   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24503 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24504    { (exit 1); exit 1; }; }; }
24505
24506     # echo "creating $dirpart/$file"
24507     echo '# dummy' > "$dirpart/$file"
24508   done
24509 done
24510  ;;
24511   esac
24512 done
24513 _ACEOF
24514
24515 cat >>$CONFIG_STATUS <<\_ACEOF
24516
24517 { (exit 0); exit 0; }
24518 _ACEOF
24519 chmod +x $CONFIG_STATUS
24520 ac_clean_files=$ac_clean_files_save
24521
24522
24523 # configure is writing to config.log, and then calls config.status.
24524 # config.status does its own redirection, appending to config.log.
24525 # Unfortunately, on DOS this fails, as config.log is still kept open
24526 # by configure, so config.status won't be able to write to it; its
24527 # output is simply discarded.  So we exec the FD to /dev/null,
24528 # effectively closing config.log, so it can be properly (re)opened and
24529 # appended to by config.status.  When coming back to configure, we
24530 # need to make the FD available again.
24531 if test "$no_create" != yes; then
24532   ac_cs_success=:
24533   ac_config_status_args=
24534   test "$silent" = yes &&
24535     ac_config_status_args="$ac_config_status_args --quiet"
24536   exec 5>/dev/null
24537   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24538   exec 5>>config.log
24539   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24540   # would make configure fail if this is the last instruction.
24541   $ac_cs_success || { (exit 1); exit 1; }
24542 fi
24543