]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/file/configure
This commit was generated by cvs2svn to compensate for changes in r172314,
[FreeBSD/FreeBSD.git] / contrib / file / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="src/file.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT fsect FSECT5_TRUE FSECT5_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL IS_CROSS_COMPILE_TRUE IS_CROSS_COMPILE_FALSE LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 System types:
1014   --build=BUILD     configure for building on BUILD [guessed]
1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-maintainer-mode  enable make rules and dependencies not useful
1027                           (and sometimes confusing) to the casual installer
1028   --disable-elf            disable builtin ELF support
1029   --disable-elf-core       disable ELF core file support
1030   --enable-fsect-man5      enable file formats in man section 5
1031   --disable-dependency-tracking  speeds up one-time build
1032   --enable-dependency-tracking   do not reject slow dependency extractors
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-largefile     omit support for large files
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050
1051 Some influential environment variables:
1052   CC          C compiler command
1053   CFLAGS      C compiler flags
1054   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055               nonstandard directory <lib dir>
1056   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057               headers in a nonstandard directory <include dir>
1058   CPP         C preprocessor
1059   CXX         C++ compiler command
1060   CXXFLAGS    C++ compiler flags
1061   CXXCPP      C++ preprocessor
1062   F77         Fortran 77 compiler command
1063   FFLAGS      Fortran 77 compiler flags
1064
1065 Use these variables to override the choices made by `configure' or to help
1066 it to find libraries and programs with nonstandard names/locations.
1067
1068 _ACEOF
1069 fi
1070
1071 if test "$ac_init_help" = "recursive"; then
1072   # If there are subdirs, report their specific --help.
1073   ac_popdir=`pwd`
1074   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075     test -d $ac_dir || continue
1076     ac_builddir=.
1077
1078 if test "$ac_dir" != .; then
1079   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080   # A "../" for each directory in $ac_dir_suffix.
1081   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082 else
1083   ac_dir_suffix= ac_top_builddir=
1084 fi
1085
1086 case $srcdir in
1087   .)  # No --srcdir option.  We are building in place.
1088     ac_srcdir=.
1089     if test -z "$ac_top_builddir"; then
1090        ac_top_srcdir=.
1091     else
1092        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093     fi ;;
1094   [\\/]* | ?:[\\/]* )  # Absolute path.
1095     ac_srcdir=$srcdir$ac_dir_suffix;
1096     ac_top_srcdir=$srcdir ;;
1097   *) # Relative path.
1098     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100 esac
1101
1102 # Do not use `cd foo && pwd` to compute absolute paths, because
1103 # the directories may not exist.
1104 case `pwd` in
1105 .) ac_abs_builddir="$ac_dir";;
1106 *)
1107   case "$ac_dir" in
1108   .) ac_abs_builddir=`pwd`;;
1109   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111   esac;;
1112 esac
1113 case $ac_abs_builddir in
1114 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1115 *)
1116   case ${ac_top_builddir}. in
1117   .) ac_abs_top_builddir=$ac_abs_builddir;;
1118   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120   esac;;
1121 esac
1122 case $ac_abs_builddir in
1123 .) ac_abs_srcdir=$ac_srcdir;;
1124 *)
1125   case $ac_srcdir in
1126   .) ac_abs_srcdir=$ac_abs_builddir;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1133 *)
1134   case $ac_top_srcdir in
1135   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138   esac;;
1139 esac
1140
1141     cd $ac_dir
1142     # Check for guested configure; otherwise get Cygnus style configure.
1143     if test -f $ac_srcdir/configure.gnu; then
1144       echo
1145       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1146     elif test -f $ac_srcdir/configure; then
1147       echo
1148       $SHELL $ac_srcdir/configure  --help=recursive
1149     elif test -f $ac_srcdir/configure.ac ||
1150            test -f $ac_srcdir/configure.in; then
1151       echo
1152       $ac_configure --help
1153     else
1154       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155     fi
1156     cd $ac_popdir
1157   done
1158 fi
1159
1160 test -n "$ac_init_help" && exit 0
1161 if $ac_init_version; then
1162   cat <<\_ACEOF
1163
1164 Copyright (C) 2003 Free Software Foundation, Inc.
1165 This configure script is free software; the Free Software Foundation
1166 gives unlimited permission to copy, distribute and modify it.
1167 _ACEOF
1168   exit 0
1169 fi
1170 exec 5>config.log
1171 cat >&5 <<_ACEOF
1172 This file contains any messages produced by compilers while
1173 running configure, to aid debugging if configure makes a mistake.
1174
1175 It was created by $as_me, which was
1176 generated by GNU Autoconf 2.59.  Invocation command line was
1177
1178   $ $0 $@
1179
1180 _ACEOF
1181 {
1182 cat <<_ASUNAME
1183 ## --------- ##
1184 ## Platform. ##
1185 ## --------- ##
1186
1187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192
1193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1195
1196 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1197 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1200 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1201 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1202 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1203
1204 _ASUNAME
1205
1206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207 for as_dir in $PATH
1208 do
1209   IFS=$as_save_IFS
1210   test -z "$as_dir" && as_dir=.
1211   echo "PATH: $as_dir"
1212 done
1213
1214 } >&5
1215
1216 cat >&5 <<_ACEOF
1217
1218
1219 ## ----------- ##
1220 ## Core tests. ##
1221 ## ----------- ##
1222
1223 _ACEOF
1224
1225
1226 # Keep a trace of the command line.
1227 # Strip out --no-create and --no-recursion so they do not pile up.
1228 # Strip out --silent because we don't want to record it for future runs.
1229 # Also quote any args containing shell meta-characters.
1230 # Make two passes to allow for proper duplicate-argument suppression.
1231 ac_configure_args=
1232 ac_configure_args0=
1233 ac_configure_args1=
1234 ac_sep=
1235 ac_must_keep_next=false
1236 for ac_pass in 1 2
1237 do
1238   for ac_arg
1239   do
1240     case $ac_arg in
1241     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243     | -silent | --silent | --silen | --sile | --sil)
1244       continue ;;
1245     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247     esac
1248     case $ac_pass in
1249     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250     2)
1251       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252       if test $ac_must_keep_next = true; then
1253         ac_must_keep_next=false # Got value, back to normal.
1254       else
1255         case $ac_arg in
1256           *=* | --config-cache | -C | -disable-* | --disable-* \
1257           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259           | -with-* | --with-* | -without-* | --without-* | --x)
1260             case "$ac_configure_args0 " in
1261               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262             esac
1263             ;;
1264           -* ) ac_must_keep_next=true ;;
1265         esac
1266       fi
1267       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268       # Get rid of the leading space.
1269       ac_sep=" "
1270       ;;
1271     esac
1272   done
1273 done
1274 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276
1277 # When interrupted or exit'd, cleanup temporary files, and complete
1278 # config.log.  We remove comments because anyway the quotes in there
1279 # would cause problems or look ugly.
1280 # WARNING: Be sure not to use single quotes in there, as some shells,
1281 # such as our DU 5.0 friend, will then `close' the trap.
1282 trap 'exit_status=$?
1283   # Save into config.log some information that might help in debugging.
1284   {
1285     echo
1286
1287     cat <<\_ASBOX
1288 ## ---------------- ##
1289 ## Cache variables. ##
1290 ## ---------------- ##
1291 _ASBOX
1292     echo
1293     # The following way of writing the cache mishandles newlines in values,
1294 {
1295   (set) 2>&1 |
1296     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297     *ac_space=\ *)
1298       sed -n \
1299         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301       ;;
1302     *)
1303       sed -n \
1304         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1305       ;;
1306     esac;
1307 }
1308     echo
1309
1310     cat <<\_ASBOX
1311 ## ----------------- ##
1312 ## Output variables. ##
1313 ## ----------------- ##
1314 _ASBOX
1315     echo
1316     for ac_var in $ac_subst_vars
1317     do
1318       eval ac_val=$`echo $ac_var`
1319       echo "$ac_var='"'"'$ac_val'"'"'"
1320     done | sort
1321     echo
1322
1323     if test -n "$ac_subst_files"; then
1324       cat <<\_ASBOX
1325 ## ------------- ##
1326 ## Output files. ##
1327 ## ------------- ##
1328 _ASBOX
1329       echo
1330       for ac_var in $ac_subst_files
1331       do
1332         eval ac_val=$`echo $ac_var`
1333         echo "$ac_var='"'"'$ac_val'"'"'"
1334       done | sort
1335       echo
1336     fi
1337
1338     if test -s confdefs.h; then
1339       cat <<\_ASBOX
1340 ## ----------- ##
1341 ## confdefs.h. ##
1342 ## ----------- ##
1343 _ASBOX
1344       echo
1345       sed "/^$/d" confdefs.h | sort
1346       echo
1347     fi
1348     test "$ac_signal" != 0 &&
1349       echo "$as_me: caught signal $ac_signal"
1350     echo "$as_me: exit $exit_status"
1351   } >&5
1352   rm -f core *.core &&
1353   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354     exit $exit_status
1355      ' 0
1356 for ac_signal in 1 2 13 15; do
1357   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358 done
1359 ac_signal=0
1360
1361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1362 rm -rf conftest* confdefs.h
1363 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364 echo >confdefs.h
1365
1366 # Predefined preprocessor variables.
1367
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_NAME "$PACKAGE_NAME"
1370 _ACEOF
1371
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_STRING "$PACKAGE_STRING"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390 _ACEOF
1391
1392
1393 # Let the site file select an alternate cache file if it wants to.
1394 # Prefer explicitly selected file to automatically selected ones.
1395 if test -z "$CONFIG_SITE"; then
1396   if test "x$prefix" != xNONE; then
1397     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398   else
1399     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400   fi
1401 fi
1402 for ac_site_file in $CONFIG_SITE; do
1403   if test -r "$ac_site_file"; then
1404     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405 echo "$as_me: loading site script $ac_site_file" >&6;}
1406     sed 's/^/| /' "$ac_site_file" >&5
1407     . "$ac_site_file"
1408   fi
1409 done
1410
1411 if test -r "$cache_file"; then
1412   # Some versions of bash will fail to source /dev/null (special
1413   # files actually), so we avoid doing that.
1414   if test -f "$cache_file"; then
1415     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416 echo "$as_me: loading cache $cache_file" >&6;}
1417     case $cache_file in
1418       [\\/]* | ?:[\\/]* ) . $cache_file;;
1419       *)                      . ./$cache_file;;
1420     esac
1421   fi
1422 else
1423   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424 echo "$as_me: creating cache $cache_file" >&6;}
1425   >$cache_file
1426 fi
1427
1428 # Check that the precious variables saved in the cache have kept the same
1429 # value.
1430 ac_cache_corrupted=false
1431 for ac_var in `(set) 2>&1 |
1432                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434   eval ac_new_set=\$ac_env_${ac_var}_set
1435   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436   eval ac_new_val="\$ac_env_${ac_var}_value"
1437   case $ac_old_set,$ac_new_set in
1438     set,)
1439       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441       ac_cache_corrupted=: ;;
1442     ,set)
1443       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445       ac_cache_corrupted=: ;;
1446     ,);;
1447     *)
1448       if test "x$ac_old_val" != "x$ac_new_val"; then
1449         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1452 echo "$as_me:   former value:  $ac_old_val" >&2;}
1453         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1454 echo "$as_me:   current value: $ac_new_val" >&2;}
1455         ac_cache_corrupted=:
1456       fi;;
1457   esac
1458   # Pass precious variables to config.status.
1459   if test "$ac_new_set" = set; then
1460     case $ac_new_val in
1461     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463     *) ac_arg=$ac_var=$ac_new_val ;;
1464     esac
1465     case " $ac_configure_args " in
1466       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1467       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468     esac
1469   fi
1470 done
1471 if $ac_cache_corrupted; then
1472   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476    { (exit 1); exit 1; }; }
1477 fi
1478
1479 ac_ext=c
1480 ac_cpp='$CPP $CPPFLAGS'
1481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504 am__api_version="1.9"
1505 ac_aux_dir=
1506 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1507   if test -f $ac_dir/install-sh; then
1508     ac_aux_dir=$ac_dir
1509     ac_install_sh="$ac_aux_dir/install-sh -c"
1510     break
1511   elif test -f $ac_dir/install.sh; then
1512     ac_aux_dir=$ac_dir
1513     ac_install_sh="$ac_aux_dir/install.sh -c"
1514     break
1515   elif test -f $ac_dir/shtool; then
1516     ac_aux_dir=$ac_dir
1517     ac_install_sh="$ac_aux_dir/shtool install -c"
1518     break
1519   fi
1520 done
1521 if test -z "$ac_aux_dir"; then
1522   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1523 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1524    { (exit 1); exit 1; }; }
1525 fi
1526 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1527 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1528 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1529
1530 # Find a good install program.  We prefer a C program (faster),
1531 # so one script is as good as another.  But avoid the broken or
1532 # incompatible versions:
1533 # SysV /etc/install, /usr/sbin/install
1534 # SunOS /usr/etc/install
1535 # IRIX /sbin/install
1536 # AIX /bin/install
1537 # AmigaOS /C/install, which installs bootblocks on floppy discs
1538 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1539 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1540 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1541 # OS/2's system install, which has a completely different semantic
1542 # ./install, which can be erroneously created by make from ./install.sh.
1543 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1544 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1545 if test -z "$INSTALL"; then
1546 if test "${ac_cv_path_install+set}" = set; then
1547   echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552   IFS=$as_save_IFS
1553   test -z "$as_dir" && as_dir=.
1554   # Account for people who put trailing slashes in PATH elements.
1555 case $as_dir/ in
1556   ./ | .// | /cC/* | \
1557   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1558   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1559   /usr/ucb/* ) ;;
1560   *)
1561     # OSF1 and SCO ODT 3.0 have their own names for install.
1562     # Don't use installbsd from OSF since it installs stuff as root
1563     # by default.
1564     for ac_prog in ginstall scoinst install; do
1565       for ac_exec_ext in '' $ac_executable_extensions; do
1566         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1567           if test $ac_prog = install &&
1568             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569             # AIX install.  It has an incompatible calling convention.
1570             :
1571           elif test $ac_prog = install &&
1572             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1573             # program-specific install script used by HP pwplus--don't use.
1574             :
1575           else
1576             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1577             break 3
1578           fi
1579         fi
1580       done
1581     done
1582     ;;
1583 esac
1584 done
1585
1586
1587 fi
1588   if test "${ac_cv_path_install+set}" = set; then
1589     INSTALL=$ac_cv_path_install
1590   else
1591     # As a last resort, use the slow shell script.  We don't cache a
1592     # path for INSTALL within a source directory, because that will
1593     # break other packages using the cache if that directory is
1594     # removed, or if the path is relative.
1595     INSTALL=$ac_install_sh
1596   fi
1597 fi
1598 echo "$as_me:$LINENO: result: $INSTALL" >&5
1599 echo "${ECHO_T}$INSTALL" >&6
1600
1601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1602 # It thinks the first close brace ends the variable substitution.
1603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1604
1605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1606
1607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1608
1609 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1610 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1611 # Just in case
1612 sleep 1
1613 echo timestamp > conftest.file
1614 # Do `set' in a subshell so we don't clobber the current shell's
1615 # arguments.  Must try -L first in case configure is actually a
1616 # symlink; some systems play weird games with the mod time of symlinks
1617 # (eg FreeBSD returns the mod time of the symlink's containing
1618 # directory).
1619 if (
1620    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1621    if test "$*" = "X"; then
1622       # -L didn't work.
1623       set X `ls -t $srcdir/configure conftest.file`
1624    fi
1625    rm -f conftest.file
1626    if test "$*" != "X $srcdir/configure conftest.file" \
1627       && test "$*" != "X conftest.file $srcdir/configure"; then
1628
1629       # If neither matched, then we have a broken ls.  This can happen
1630       # if, for instance, CONFIG_SHELL is bash and it inherits a
1631       # broken ls alias from the environment.  This has actually
1632       # happened.  Such a system could not be considered "sane".
1633       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1634 alias in your environment" >&5
1635 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1636 alias in your environment" >&2;}
1637    { (exit 1); exit 1; }; }
1638    fi
1639
1640    test "$2" = conftest.file
1641    )
1642 then
1643    # Ok.
1644    :
1645 else
1646    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1647 Check your system clock" >&5
1648 echo "$as_me: error: newly created file is older than distributed files!
1649 Check your system clock" >&2;}
1650    { (exit 1); exit 1; }; }
1651 fi
1652 echo "$as_me:$LINENO: result: yes" >&5
1653 echo "${ECHO_T}yes" >&6
1654 test "$program_prefix" != NONE &&
1655   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1656 # Use a double $ so make ignores it.
1657 test "$program_suffix" != NONE &&
1658   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1659 # Double any \ or $.  echo might interpret backslashes.
1660 # By default was `s,x,x', remove it if useless.
1661 cat <<\_ACEOF >conftest.sed
1662 s/[\\$]/&&/g;s/;s,x,x,$//
1663 _ACEOF
1664 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1665 rm conftest.sed
1666
1667 # expand $ac_aux_dir to an absolute path
1668 am_aux_dir=`cd $ac_aux_dir && pwd`
1669
1670 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1671 # Use eval to expand $SHELL
1672 if eval "$MISSING --run true"; then
1673   am_missing_run="$MISSING --run "
1674 else
1675   am_missing_run=
1676   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1677 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1678 fi
1679
1680 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1681   # We used to keeping the `.' as first argument, in order to
1682   # allow $(mkdir_p) to be used without argument.  As in
1683   #   $(mkdir_p) $(somedir)
1684   # where $(somedir) is conditionally defined.  However this is wrong
1685   # for two reasons:
1686   #  1. if the package is installed by a user who cannot write `.'
1687   #     make install will fail,
1688   #  2. the above comment should most certainly read
1689   #     $(mkdir_p) $(DESTDIR)$(somedir)
1690   #     so it does not work when $(somedir) is undefined and
1691   #     $(DESTDIR) is not.
1692   #  To support the latter case, we have to write
1693   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1694   #  so the `.' trick is pointless.
1695   mkdir_p='mkdir -p --'
1696 else
1697   # On NextStep and OpenStep, the `mkdir' command does not
1698   # recognize any option.  It will interpret all options as
1699   # directories to create, and then abort because `.' already
1700   # exists.
1701   for d in ./-p ./--version;
1702   do
1703     test -d $d && rmdir $d
1704   done
1705   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1706   if test -f "$ac_aux_dir/mkinstalldirs"; then
1707     mkdir_p='$(mkinstalldirs)'
1708   else
1709     mkdir_p='$(install_sh) -d'
1710   fi
1711 fi
1712
1713 for ac_prog in gawk mawk nawk awk
1714 do
1715   # Extract the first word of "$ac_prog", so it can be a program name with args.
1716 set dummy $ac_prog; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_AWK+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   if test -n "$AWK"; then
1723   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728   IFS=$as_save_IFS
1729   test -z "$as_dir" && as_dir=.
1730   for ac_exec_ext in '' $ac_executable_extensions; do
1731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732     ac_cv_prog_AWK="$ac_prog"
1733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734     break 2
1735   fi
1736 done
1737 done
1738
1739 fi
1740 fi
1741 AWK=$ac_cv_prog_AWK
1742 if test -n "$AWK"; then
1743   echo "$as_me:$LINENO: result: $AWK" >&5
1744 echo "${ECHO_T}$AWK" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750   test -n "$AWK" && break
1751 done
1752
1753 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1754 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1755 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1756 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1757   echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759   cat >conftest.make <<\_ACEOF
1760 all:
1761         @echo 'ac_maketemp="$(MAKE)"'
1762 _ACEOF
1763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1764 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1765 if test -n "$ac_maketemp"; then
1766   eval ac_cv_prog_make_${ac_make}_set=yes
1767 else
1768   eval ac_cv_prog_make_${ac_make}_set=no
1769 fi
1770 rm -f conftest.make
1771 fi
1772 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1773   echo "$as_me:$LINENO: result: yes" >&5
1774 echo "${ECHO_T}yes" >&6
1775   SET_MAKE=
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779   SET_MAKE="MAKE=${MAKE-make}"
1780 fi
1781
1782 rm -rf .tst 2>/dev/null
1783 mkdir .tst 2>/dev/null
1784 if test -d .tst; then
1785   am__leading_dot=.
1786 else
1787   am__leading_dot=_
1788 fi
1789 rmdir .tst 2>/dev/null
1790
1791 # test to see if srcdir already configured
1792 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1793    test -f $srcdir/config.status; then
1794   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1795 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1796    { (exit 1); exit 1; }; }
1797 fi
1798
1799 # test whether we have cygpath
1800 if test -z "$CYGPATH_W"; then
1801   if (cygpath --version) >/dev/null 2>/dev/null; then
1802     CYGPATH_W='cygpath -w'
1803   else
1804     CYGPATH_W=echo
1805   fi
1806 fi
1807
1808
1809 # Define the identity of the package.
1810  PACKAGE=file
1811  VERSION=4.21
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE "$PACKAGE"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define VERSION "$VERSION"
1821 _ACEOF
1822
1823 # Some tools Automake needs.
1824
1825 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1826
1827
1828 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1829
1830
1831 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1832
1833
1834 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1835
1836
1837 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1838
1839 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1840
1841 # Installed binaries are usually stripped using `strip' when the user
1842 # run `make install-strip'.  However `strip' might not be the right
1843 # tool to use in cross-compilation environments, therefore Automake
1844 # will honor the `STRIP' environment variable to overrule this program.
1845 if test "$cross_compiling" != no; then
1846   if test -n "$ac_tool_prefix"; then
1847   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1848 set dummy ${ac_tool_prefix}strip; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_STRIP+set}" = set; then
1852   echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854   if test -n "$STRIP"; then
1855   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1856 else
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860   IFS=$as_save_IFS
1861   test -z "$as_dir" && as_dir=.
1862   for ac_exec_ext in '' $ac_executable_extensions; do
1863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866     break 2
1867   fi
1868 done
1869 done
1870
1871 fi
1872 fi
1873 STRIP=$ac_cv_prog_STRIP
1874 if test -n "$STRIP"; then
1875   echo "$as_me:$LINENO: result: $STRIP" >&5
1876 echo "${ECHO_T}$STRIP" >&6
1877 else
1878   echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1880 fi
1881
1882 fi
1883 if test -z "$ac_cv_prog_STRIP"; then
1884   ac_ct_STRIP=$STRIP
1885   # Extract the first word of "strip", so it can be a program name with args.
1886 set dummy strip; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   if test -n "$ac_ct_STRIP"; then
1893   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898   IFS=$as_save_IFS
1899   test -z "$as_dir" && as_dir=.
1900   for ac_exec_ext in '' $ac_executable_extensions; do
1901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902     ac_cv_prog_ac_ct_STRIP="strip"
1903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904     break 2
1905   fi
1906 done
1907 done
1908
1909   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1910 fi
1911 fi
1912 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1913 if test -n "$ac_ct_STRIP"; then
1914   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1915 echo "${ECHO_T}$ac_ct_STRIP" >&6
1916 else
1917   echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1919 fi
1920
1921   STRIP=$ac_ct_STRIP
1922 else
1923   STRIP="$ac_cv_prog_STRIP"
1924 fi
1925
1926 fi
1927 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1928
1929 # We need awk for the "check" target.  The system "awk" is bad on
1930 # some platforms.
1931 # Always define AMTAR for backward compatibility.
1932
1933 AMTAR=${AMTAR-"${am_missing_run}tar"}
1934
1935 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1936
1937
1938
1939
1940
1941           ac_config_headers="$ac_config_headers config.h"
1942
1943 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1944 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1945     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1946 if test "${enable_maintainer_mode+set}" = set; then
1947   enableval="$enable_maintainer_mode"
1948   USE_MAINTAINER_MODE=$enableval
1949 else
1950   USE_MAINTAINER_MODE=no
1951 fi;
1952   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1953 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1954
1955
1956 if test $USE_MAINTAINER_MODE = yes; then
1957   MAINTAINER_MODE_TRUE=
1958   MAINTAINER_MODE_FALSE='#'
1959 else
1960   MAINTAINER_MODE_TRUE='#'
1961   MAINTAINER_MODE_FALSE=
1962 fi
1963
1964   MAINT=$MAINTAINER_MODE_TRUE
1965
1966
1967
1968 echo "$as_me:$LINENO: checking for builtin ELF support" >&5
1969 echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6
1970 # Check whether --enable-elf or --disable-elf was given.
1971 if test "${enable_elf+set}" = set; then
1972   enableval="$enable_elf"
1973   if test "${enableval}" = yes; then
1974   echo "$as_me:$LINENO: result: yes" >&5
1975 echo "${ECHO_T}yes" >&6
1976   cat >>confdefs.h <<\_ACEOF
1977 #define BUILTIN_ELF 1
1978 _ACEOF
1979
1980 else
1981   echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1983 fi
1984 else
1985
1986   # enable by default
1987   echo "$as_me:$LINENO: result: yes" >&5
1988 echo "${ECHO_T}yes" >&6
1989   cat >>confdefs.h <<\_ACEOF
1990 #define BUILTIN_ELF 1
1991 _ACEOF
1992
1993
1994 fi;
1995
1996 echo "$as_me:$LINENO: checking for ELF core file support" >&5
1997 echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6
1998 # Check whether --enable-elf-core or --disable-elf-core was given.
1999 if test "${enable_elf_core+set}" = set; then
2000   enableval="$enable_elf_core"
2001   if test "${enableval}" = yes; then
2002   echo "$as_me:$LINENO: result: yes" >&5
2003 echo "${ECHO_T}yes" >&6
2004   cat >>confdefs.h <<\_ACEOF
2005 #define ELFCORE 1
2006 _ACEOF
2007
2008 else
2009   echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2011 fi
2012 else
2013
2014   # enable by default
2015   echo "$as_me:$LINENO: result: yes" >&5
2016 echo "${ECHO_T}yes" >&6
2017   cat >>confdefs.h <<\_ACEOF
2018 #define ELFCORE 1
2019 _ACEOF
2020
2021
2022 fi;
2023
2024 echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
2025 echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6
2026 # Check whether --enable-fsect-man5 or --disable-fsect-man5 was given.
2027 if test "${enable_fsect_man5+set}" = set; then
2028   enableval="$enable_fsect_man5"
2029   if test "${enableval}" = yes; then
2030   echo "$as_me:$LINENO: result: yes" >&5
2031 echo "${ECHO_T}yes" >&6
2032   fsect=5
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036   fsect=4
2037 fi
2038 else
2039
2040   # disable by default
2041   echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2043   fsect=4
2044
2045 fi;
2046
2047
2048
2049 if test x$fsect = x5; then
2050   FSECT5_TRUE=
2051   FSECT5_FALSE='#'
2052 else
2053   FSECT5_TRUE='#'
2054   FSECT5_FALSE=
2055 fi
2056
2057
2058 ac_ext=c
2059 ac_cpp='$CPP $CPPFLAGS'
2060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063 if test -n "$ac_tool_prefix"; then
2064   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2065 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_CC+set}" = set; then
2069   echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071   if test -n "$CC"; then
2072   ac_cv_prog_CC="$CC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2076 do
2077   IFS=$as_save_IFS
2078   test -z "$as_dir" && as_dir=.
2079   for ac_exec_ext in '' $ac_executable_extensions; do
2080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083     break 2
2084   fi
2085 done
2086 done
2087
2088 fi
2089 fi
2090 CC=$ac_cv_prog_CC
2091 if test -n "$CC"; then
2092   echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6
2094 else
2095   echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2097 fi
2098
2099 fi
2100 if test -z "$ac_cv_prog_CC"; then
2101   ac_ct_CC=$CC
2102   # Extract the first word of "gcc", so it can be a program name with args.
2103 set dummy gcc; ac_word=$2
2104 echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2107   echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109   if test -n "$ac_ct_CC"; then
2110   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2111 else
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115   IFS=$as_save_IFS
2116   test -z "$as_dir" && as_dir=.
2117   for ac_exec_ext in '' $ac_executable_extensions; do
2118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119     ac_cv_prog_ac_ct_CC="gcc"
2120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121     break 2
2122   fi
2123 done
2124 done
2125
2126 fi
2127 fi
2128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2129 if test -n "$ac_ct_CC"; then
2130   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2131 echo "${ECHO_T}$ac_ct_CC" >&6
2132 else
2133   echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6
2135 fi
2136
2137   CC=$ac_ct_CC
2138 else
2139   CC="$ac_cv_prog_CC"
2140 fi
2141
2142 if test -z "$CC"; then
2143   if test -n "$ac_tool_prefix"; then
2144   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2145 set dummy ${ac_tool_prefix}cc; ac_word=$2
2146 echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148 if test "${ac_cv_prog_CC+set}" = set; then
2149   echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151   if test -n "$CC"; then
2152   ac_cv_prog_CC="$CC" # Let the user override the test.
2153 else
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2156 do
2157   IFS=$as_save_IFS
2158   test -z "$as_dir" && as_dir=.
2159   for ac_exec_ext in '' $ac_executable_extensions; do
2160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161     ac_cv_prog_CC="${ac_tool_prefix}cc"
2162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163     break 2
2164   fi
2165 done
2166 done
2167
2168 fi
2169 fi
2170 CC=$ac_cv_prog_CC
2171 if test -n "$CC"; then
2172   echo "$as_me:$LINENO: result: $CC" >&5
2173 echo "${ECHO_T}$CC" >&6
2174 else
2175   echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2177 fi
2178
2179 fi
2180 if test -z "$ac_cv_prog_CC"; then
2181   ac_ct_CC=$CC
2182   # Extract the first word of "cc", so it can be a program name with args.
2183 set dummy cc; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2187   echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189   if test -n "$ac_ct_CC"; then
2190   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191 else
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195   IFS=$as_save_IFS
2196   test -z "$as_dir" && as_dir=.
2197   for ac_exec_ext in '' $ac_executable_extensions; do
2198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199     ac_cv_prog_ac_ct_CC="cc"
2200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201     break 2
2202   fi
2203 done
2204 done
2205
2206 fi
2207 fi
2208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 if test -n "$ac_ct_CC"; then
2210   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2211 echo "${ECHO_T}$ac_ct_CC" >&6
2212 else
2213   echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2215 fi
2216
2217   CC=$ac_ct_CC
2218 else
2219   CC="$ac_cv_prog_CC"
2220 fi
2221
2222 fi
2223 if test -z "$CC"; then
2224   # Extract the first word of "cc", so it can be a program name with args.
2225 set dummy cc; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test -n "$CC"; then
2232   ac_cv_prog_CC="$CC" # Let the user override the test.
2233 else
2234   ac_prog_rejected=no
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238   IFS=$as_save_IFS
2239   test -z "$as_dir" && as_dir=.
2240   for ac_exec_ext in '' $ac_executable_extensions; do
2241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2243        ac_prog_rejected=yes
2244        continue
2245      fi
2246     ac_cv_prog_CC="cc"
2247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248     break 2
2249   fi
2250 done
2251 done
2252
2253 if test $ac_prog_rejected = yes; then
2254   # We found a bogon in the path, so make sure we never use it.
2255   set dummy $ac_cv_prog_CC
2256   shift
2257   if test $# != 0; then
2258     # We chose a different compiler from the bogus one.
2259     # However, it has the same basename, so the bogon will be chosen
2260     # first if we set CC to just the basename; use the full file name.
2261     shift
2262     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2263   fi
2264 fi
2265 fi
2266 fi
2267 CC=$ac_cv_prog_CC
2268 if test -n "$CC"; then
2269   echo "$as_me:$LINENO: result: $CC" >&5
2270 echo "${ECHO_T}$CC" >&6
2271 else
2272   echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2274 fi
2275
2276 fi
2277 if test -z "$CC"; then
2278   if test -n "$ac_tool_prefix"; then
2279   for ac_prog in cl
2280   do
2281     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2283 echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285 if test "${ac_cv_prog_CC+set}" = set; then
2286   echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288   if test -n "$CC"; then
2289   ac_cv_prog_CC="$CC" # Let the user override the test.
2290 else
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294   IFS=$as_save_IFS
2295   test -z "$as_dir" && as_dir=.
2296   for ac_exec_ext in '' $ac_executable_extensions; do
2297   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2298     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300     break 2
2301   fi
2302 done
2303 done
2304
2305 fi
2306 fi
2307 CC=$ac_cv_prog_CC
2308 if test -n "$CC"; then
2309   echo "$as_me:$LINENO: result: $CC" >&5
2310 echo "${ECHO_T}$CC" >&6
2311 else
2312   echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6
2314 fi
2315
2316     test -n "$CC" && break
2317   done
2318 fi
2319 if test -z "$CC"; then
2320   ac_ct_CC=$CC
2321   for ac_prog in cl
2322 do
2323   # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$ac_ct_CC"; then
2331   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340     ac_cv_prog_ac_ct_CC="$ac_prog"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346
2347 fi
2348 fi
2349 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2350 if test -n "$ac_ct_CC"; then
2351   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2352 echo "${ECHO_T}$ac_ct_CC" >&6
2353 else
2354   echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2356 fi
2357
2358   test -n "$ac_ct_CC" && break
2359 done
2360
2361   CC=$ac_ct_CC
2362 fi
2363
2364 fi
2365
2366
2367 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: no acceptable C compiler found in \$PATH
2370 See \`config.log' for more details." >&2;}
2371    { (exit 1); exit 1; }; }
2372
2373 # Provide some information about the compiler.
2374 echo "$as_me:$LINENO:" \
2375      "checking for C compiler version" >&5
2376 ac_compiler=`set X $ac_compile; echo $2`
2377 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2378   (eval $ac_compiler --version </dev/null >&5) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }
2382 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2383   (eval $ac_compiler -v </dev/null >&5) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }
2387 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2388   (eval $ac_compiler -V </dev/null >&5) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }
2392
2393 cat >conftest.$ac_ext <<_ACEOF
2394 /* confdefs.h.  */
2395 _ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h.  */
2399
2400 int
2401 main ()
2402 {
2403
2404   ;
2405   return 0;
2406 }
2407 _ACEOF
2408 ac_clean_files_save=$ac_clean_files
2409 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2410 # Try to create an executable without -o first, disregard a.out.
2411 # It will help us diagnose broken compilers, and finding out an intuition
2412 # of exeext.
2413 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2414 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2415 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2416 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2417   (eval $ac_link_default) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; then
2421   # Find the output, starting from the most likely.  This scheme is
2422 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2423 # resort.
2424
2425 # Be careful to initialize this variable, since it used to be cached.
2426 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2427 ac_cv_exeext=
2428 # b.out is created by i960 compilers.
2429 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2430 do
2431   test -f "$ac_file" || continue
2432   case $ac_file in
2433     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2434         ;;
2435     conftest.$ac_ext )
2436         # This is the source file.
2437         ;;
2438     [ab].out )
2439         # We found the default executable, but exeext='' is most
2440         # certainly right.
2441         break;;
2442     *.* )
2443         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444         # FIXME: I believe we export ac_cv_exeext for Libtool,
2445         # but it would be cool to find out if it's true.  Does anybody
2446         # maintain Libtool? --akim.
2447         export ac_cv_exeext
2448         break;;
2449     * )
2450         break;;
2451   esac
2452 done
2453 else
2454   echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456
2457 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: C compiler cannot create executables
2460 See \`config.log' for more details." >&2;}
2461    { (exit 77); exit 77; }; }
2462 fi
2463
2464 ac_exeext=$ac_cv_exeext
2465 echo "$as_me:$LINENO: result: $ac_file" >&5
2466 echo "${ECHO_T}$ac_file" >&6
2467
2468 # Check the compiler produces executables we can run.  If not, either
2469 # the compiler is broken, or we cross compile.
2470 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2471 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2472 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2473 # If not cross compiling, check that we can run a simple program.
2474 if test "$cross_compiling" != yes; then
2475   if { ac_try='./$ac_file'
2476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; }; then
2481     cross_compiling=no
2482   else
2483     if test "$cross_compiling" = maybe; then
2484         cross_compiling=yes
2485     else
2486         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2487 If you meant to cross compile, use \`--host'.
2488 See \`config.log' for more details." >&5
2489 echo "$as_me: error: cannot run C compiled programs.
2490 If you meant to cross compile, use \`--host'.
2491 See \`config.log' for more details." >&2;}
2492    { (exit 1); exit 1; }; }
2493     fi
2494   fi
2495 fi
2496 echo "$as_me:$LINENO: result: yes" >&5
2497 echo "${ECHO_T}yes" >&6
2498
2499 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2500 ac_clean_files=$ac_clean_files_save
2501 # Check the compiler produces executables we can run.  If not, either
2502 # the compiler is broken, or we cross compile.
2503 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2504 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2505 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2506 echo "${ECHO_T}$cross_compiling" >&6
2507
2508 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2509 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2511   (eval $ac_link) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; then
2515   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2516 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2517 # work properly (i.e., refer to `conftest.exe'), while it won't with
2518 # `rm'.
2519 for ac_file in conftest.exe conftest conftest.*; do
2520   test -f "$ac_file" || continue
2521   case $ac_file in
2522     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2523     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2524           export ac_cv_exeext
2525           break;;
2526     * ) break;;
2527   esac
2528 done
2529 else
2530   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details." >&2;}
2534    { (exit 1); exit 1; }; }
2535 fi
2536
2537 rm -f conftest$ac_cv_exeext
2538 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539 echo "${ECHO_T}$ac_cv_exeext" >&6
2540
2541 rm -f conftest.$ac_ext
2542 EXEEXT=$ac_cv_exeext
2543 ac_exeext=$EXEEXT
2544 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2546 if test "${ac_cv_objext+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h.  */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h.  */
2555
2556 int
2557 main ()
2558 {
2559
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 rm -f conftest.o conftest.obj
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566   (eval $ac_compile) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; then
2570   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2571   case $ac_file in
2572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2573     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2574        break;;
2575   esac
2576 done
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2582 See \`config.log' for more details." >&5
2583 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2584 See \`config.log' for more details." >&2;}
2585    { (exit 1); exit 1; }; }
2586 fi
2587
2588 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2589 fi
2590 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2591 echo "${ECHO_T}$ac_cv_objext" >&6
2592 OBJEXT=$ac_cv_objext
2593 ac_objext=$OBJEXT
2594 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2595 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2596 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h.  */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h.  */
2605
2606 int
2607 main ()
2608 {
2609 #ifndef __GNUC__
2610        choke me
2611 #endif
2612
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>conftest.er1
2620   ac_status=$?
2621   grep -v '^ *+' conftest.er1 >conftest.err
2622   rm -f conftest.er1
2623   cat conftest.err >&5
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); } &&
2626          { ac_try='test -z "$ac_c_werror_flag"
2627                          || test ! -s conftest.err'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   ac_compiler_gnu=yes
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 ac_compiler_gnu=no
2645 fi
2646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2648
2649 fi
2650 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2651 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2652 GCC=`test $ac_compiler_gnu = yes && echo yes`
2653 ac_test_CFLAGS=${CFLAGS+set}
2654 ac_save_CFLAGS=$CFLAGS
2655 CFLAGS="-g"
2656 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2657 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2658 if test "${ac_cv_prog_cc_g+set}" = set; then
2659   echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661   cat >conftest.$ac_ext <<_ACEOF
2662 /* confdefs.h.  */
2663 _ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h.  */
2667
2668 int
2669 main ()
2670 {
2671
2672   ;
2673   return 0;
2674 }
2675 _ACEOF
2676 rm -f conftest.$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678   (eval $ac_compile) 2>conftest.er1
2679   ac_status=$?
2680   grep -v '^ *+' conftest.er1 >conftest.err
2681   rm -f conftest.er1
2682   cat conftest.err >&5
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); } &&
2685          { ac_try='test -z "$ac_c_werror_flag"
2686                          || test ! -s conftest.err'
2687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688   (eval $ac_try) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }; } &&
2692          { ac_try='test -s conftest.$ac_objext'
2693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694   (eval $ac_try) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }; }; then
2698   ac_cv_prog_cc_g=yes
2699 else
2700   echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2702
2703 ac_cv_prog_cc_g=no
2704 fi
2705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2706 fi
2707 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2708 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2709 if test "$ac_test_CFLAGS" = set; then
2710   CFLAGS=$ac_save_CFLAGS
2711 elif test $ac_cv_prog_cc_g = yes; then
2712   if test "$GCC" = yes; then
2713     CFLAGS="-g -O2"
2714   else
2715     CFLAGS="-g"
2716   fi
2717 else
2718   if test "$GCC" = yes; then
2719     CFLAGS="-O2"
2720   else
2721     CFLAGS=
2722   fi
2723 fi
2724 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2725 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2726 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2727   echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729   ac_cv_prog_cc_stdc=no
2730 ac_save_CC=$CC
2731 cat >conftest.$ac_ext <<_ACEOF
2732 /* confdefs.h.  */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h.  */
2737 #include <stdarg.h>
2738 #include <stdio.h>
2739 #include <sys/types.h>
2740 #include <sys/stat.h>
2741 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2742 struct buf { int x; };
2743 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2744 static char *e (p, i)
2745      char **p;
2746      int i;
2747 {
2748   return p[i];
2749 }
2750 static char *f (char * (*g) (char **, int), char **p, ...)
2751 {
2752   char *s;
2753   va_list v;
2754   va_start (v,p);
2755   s = g (p, va_arg (v,int));
2756   va_end (v);
2757   return s;
2758 }
2759
2760 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2761    function prototypes and stuff, but not '\xHH' hex character constants.
2762    These don't provoke an error unfortunately, instead are silently treated
2763    as 'x'.  The following induces an error, until -std1 is added to get
2764    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2765    array size at least.  It's necessary to write '\x00'==0 to get something
2766    that's true only with -std1.  */
2767 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2768
2769 int test (int i, double x);
2770 struct s1 {int (*f) (int a);};
2771 struct s2 {int (*f) (double a);};
2772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2773 int argc;
2774 char **argv;
2775 int
2776 main ()
2777 {
2778 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 # Don't try gcc -ansi; that turns off useful extensions and
2784 # breaks some systems' header files.
2785 # AIX                   -qlanglvl=ansi
2786 # Ultrix and OSF/1      -std1
2787 # HP-UX 10.20 and later -Ae
2788 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2789 # SVR4                  -Xc -D__EXTENSIONS__
2790 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2791 do
2792   CC="$ac_save_CC $ac_arg"
2793   rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795   (eval $ac_compile) 2>conftest.er1
2796   ac_status=$?
2797   grep -v '^ *+' conftest.er1 >conftest.err
2798   rm -f conftest.er1
2799   cat conftest.err >&5
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); } &&
2802          { ac_try='test -z "$ac_c_werror_flag"
2803                          || test ! -s conftest.err'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; } &&
2809          { ac_try='test -s conftest.$ac_objext'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; }; then
2815   ac_cv_prog_cc_stdc=$ac_arg
2816 break
2817 else
2818   echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2820
2821 fi
2822 rm -f conftest.err conftest.$ac_objext
2823 done
2824 rm -f conftest.$ac_ext conftest.$ac_objext
2825 CC=$ac_save_CC
2826
2827 fi
2828
2829 case "x$ac_cv_prog_cc_stdc" in
2830   x|xno)
2831     echo "$as_me:$LINENO: result: none needed" >&5
2832 echo "${ECHO_T}none needed" >&6 ;;
2833   *)
2834     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2836     CC="$CC $ac_cv_prog_cc_stdc" ;;
2837 esac
2838
2839 # Some people use a C++ compiler to compile C.  Since we use `exit',
2840 # in C++ we need to declare it.  In case someone uses the same compiler
2841 # for both compiling C and C++ we need to have the C++ compiler decide
2842 # the declaration of exit, since it's the most demanding environment.
2843 cat >conftest.$ac_ext <<_ACEOF
2844 #ifndef __cplusplus
2845   choke me
2846 #endif
2847 _ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850   (eval $ac_compile) 2>conftest.er1
2851   ac_status=$?
2852   grep -v '^ *+' conftest.er1 >conftest.err
2853   rm -f conftest.er1
2854   cat conftest.err >&5
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); } &&
2857          { ac_try='test -z "$ac_c_werror_flag"
2858                          || test ! -s conftest.err'
2859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860   (eval $ac_try) 2>&5
2861   ac_status=$?
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); }; } &&
2864          { ac_try='test -s conftest.$ac_objext'
2865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866   (eval $ac_try) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }; }; then
2870   for ac_declaration in \
2871    '' \
2872    'extern "C" void std::exit (int) throw (); using std::exit;' \
2873    'extern "C" void std::exit (int); using std::exit;' \
2874    'extern "C" void exit (int) throw ();' \
2875    'extern "C" void exit (int);' \
2876    'void exit (int);'
2877 do
2878   cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h.  */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h.  */
2884 $ac_declaration
2885 #include <stdlib.h>
2886 int
2887 main ()
2888 {
2889 exit (42);
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896   (eval $ac_compile) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } &&
2903          { ac_try='test -z "$ac_c_werror_flag"
2904                          || test ! -s conftest.err'
2905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906   (eval $ac_try) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; } &&
2910          { ac_try='test -s conftest.$ac_objext'
2911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   :
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 continue
2922 fi
2923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2924   cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h.  */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h.  */
2930 $ac_declaration
2931 int
2932 main ()
2933 {
2934 exit (42);
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941   (eval $ac_compile) 2>conftest.er1
2942   ac_status=$?
2943   grep -v '^ *+' conftest.er1 >conftest.err
2944   rm -f conftest.er1
2945   cat conftest.err >&5
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); } &&
2948          { ac_try='test -z "$ac_c_werror_flag"
2949                          || test ! -s conftest.err'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; } &&
2955          { ac_try='test -s conftest.$ac_objext'
2956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957   (eval $ac_try) 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }; }; then
2961   break
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 fi
2967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968 done
2969 rm -f conftest*
2970 if test -n "$ac_declaration"; then
2971   echo '#ifdef __cplusplus' >>confdefs.h
2972   echo $ac_declaration      >>confdefs.h
2973   echo '#endif'             >>confdefs.h
2974 fi
2975
2976 else
2977   echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980 fi
2981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2982 ac_ext=c
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 DEPDIR="${am__leading_dot}deps"
2988
2989           ac_config_commands="$ac_config_commands depfiles"
2990
2991
2992 am_make=${MAKE-make}
2993 cat > confinc << 'END'
2994 am__doit:
2995         @echo done
2996 .PHONY: am__doit
2997 END
2998 # If we don't find an include directive, just comment out the code.
2999 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3000 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3001 am__include="#"
3002 am__quote=
3003 _am_result=none
3004 # First try GNU make style include.
3005 echo "include confinc" > confmf
3006 # We grep out `Entering directory' and `Leaving directory'
3007 # messages which can occur if `w' ends up in MAKEFLAGS.
3008 # In particular we don't look at `^make:' because GNU make might
3009 # be invoked under some other name (usually "gmake"), in which
3010 # case it prints its new name instead of `make'.
3011 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3012    am__include=include
3013    am__quote=
3014    _am_result=GNU
3015 fi
3016 # Now try BSD make style include.
3017 if test "$am__include" = "#"; then
3018    echo '.include "confinc"' > confmf
3019    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3020       am__include=.include
3021       am__quote="\""
3022       _am_result=BSD
3023    fi
3024 fi
3025
3026
3027 echo "$as_me:$LINENO: result: $_am_result" >&5
3028 echo "${ECHO_T}$_am_result" >&6
3029 rm -f confinc confmf
3030
3031 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3032 if test "${enable_dependency_tracking+set}" = set; then
3033   enableval="$enable_dependency_tracking"
3034
3035 fi;
3036 if test "x$enable_dependency_tracking" != xno; then
3037   am_depcomp="$ac_aux_dir/depcomp"
3038   AMDEPBACKSLASH='\'
3039 fi
3040
3041
3042 if test "x$enable_dependency_tracking" != xno; then
3043   AMDEP_TRUE=
3044   AMDEP_FALSE='#'
3045 else
3046   AMDEP_TRUE='#'
3047   AMDEP_FALSE=
3048 fi
3049
3050
3051
3052
3053 depcc="$CC"   am_compiler_list=
3054
3055 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3056 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3057 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3058   echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3061   # We make a subdir and do the tests there.  Otherwise we can end up
3062   # making bogus files that we don't know about and never remove.  For
3063   # instance it was reported that on HP-UX the gcc test will end up
3064   # making a dummy file named `D' -- because `-MD' means `put the output
3065   # in D'.
3066   mkdir conftest.dir
3067   # Copy depcomp to subdir because otherwise we won't find it if we're
3068   # using a relative directory.
3069   cp "$am_depcomp" conftest.dir
3070   cd conftest.dir
3071   # We will build objects and dependencies in a subdirectory because
3072   # it helps to detect inapplicable dependency modes.  For instance
3073   # both Tru64's cc and ICC support -MD to output dependencies as a
3074   # side effect of compilation, but ICC will put the dependencies in
3075   # the current directory while Tru64 will put them in the object
3076   # directory.
3077   mkdir sub
3078
3079   am_cv_CC_dependencies_compiler_type=none
3080   if test "$am_compiler_list" = ""; then
3081      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3082   fi
3083   for depmode in $am_compiler_list; do
3084     # Setup a source with many dependencies, because some compilers
3085     # like to wrap large dependency lists on column 80 (with \), and
3086     # we should not choose a depcomp mode which is confused by this.
3087     #
3088     # We need to recreate these files for each test, as the compiler may
3089     # overwrite some of them when testing with obscure command lines.
3090     # This happens at least with the AIX C compiler.
3091     : > sub/conftest.c
3092     for i in 1 2 3 4 5 6; do
3093       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3094       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3095       # Solaris 8's {/usr,}/bin/sh.
3096       touch sub/conftst$i.h
3097     done
3098     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3099
3100     case $depmode in
3101     nosideeffect)
3102       # after this tag, mechanisms are not by side-effect, so they'll
3103       # only be used when explicitly requested
3104       if test "x$enable_dependency_tracking" = xyes; then
3105         continue
3106       else
3107         break
3108       fi
3109       ;;
3110     none) break ;;
3111     esac
3112     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3113     # mode.  It turns out that the SunPro C++ compiler does not properly
3114     # handle `-M -o', and we need to detect this.
3115     if depmode=$depmode \
3116        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3117        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3118        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3119          >/dev/null 2>conftest.err &&
3120        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3121        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3122        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3123       # icc doesn't choke on unknown options, it will just issue warnings
3124       # or remarks (even with -Werror).  So we grep stderr for any message
3125       # that says an option was ignored or not supported.
3126       # When given -MP, icc 7.0 and 7.1 complain thusly:
3127       #   icc: Command line warning: ignoring option '-M'; no argument required
3128       # The diagnosis changed in icc 8.0:
3129       #   icc: Command line remark: option '-MP' not supported
3130       if (grep 'ignoring option' conftest.err ||
3131           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3132         am_cv_CC_dependencies_compiler_type=$depmode
3133         break
3134       fi
3135     fi
3136   done
3137
3138   cd ..
3139   rm -rf conftest.dir
3140 else
3141   am_cv_CC_dependencies_compiler_type=none
3142 fi
3143
3144 fi
3145 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3146 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3147 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3148
3149
3150
3151 if
3152   test "x$enable_dependency_tracking" != xno \
3153   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3154   am__fastdepCC_TRUE=
3155   am__fastdepCC_FALSE='#'
3156 else
3157   am__fastdepCC_TRUE='#'
3158   am__fastdepCC_FALSE=
3159 fi
3160
3161
3162 # Find a good install program.  We prefer a C program (faster),
3163 # so one script is as good as another.  But avoid the broken or
3164 # incompatible versions:
3165 # SysV /etc/install, /usr/sbin/install
3166 # SunOS /usr/etc/install
3167 # IRIX /sbin/install
3168 # AIX /bin/install
3169 # AmigaOS /C/install, which installs bootblocks on floppy discs
3170 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3171 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3172 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3173 # OS/2's system install, which has a completely different semantic
3174 # ./install, which can be erroneously created by make from ./install.sh.
3175 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3176 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3177 if test -z "$INSTALL"; then
3178 if test "${ac_cv_path_install+set}" = set; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186   # Account for people who put trailing slashes in PATH elements.
3187 case $as_dir/ in
3188   ./ | .// | /cC/* | \
3189   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3190   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3191   /usr/ucb/* ) ;;
3192   *)
3193     # OSF1 and SCO ODT 3.0 have their own names for install.
3194     # Don't use installbsd from OSF since it installs stuff as root
3195     # by default.
3196     for ac_prog in ginstall scoinst install; do
3197       for ac_exec_ext in '' $ac_executable_extensions; do
3198         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3199           if test $ac_prog = install &&
3200             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3201             # AIX install.  It has an incompatible calling convention.
3202             :
3203           elif test $ac_prog = install &&
3204             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3205             # program-specific install script used by HP pwplus--don't use.
3206             :
3207           else
3208             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3209             break 3
3210           fi
3211         fi
3212       done
3213     done
3214     ;;
3215 esac
3216 done
3217
3218
3219 fi
3220   if test "${ac_cv_path_install+set}" = set; then
3221     INSTALL=$ac_cv_path_install
3222   else
3223     # As a last resort, use the slow shell script.  We don't cache a
3224     # path for INSTALL within a source directory, because that will
3225     # break other packages using the cache if that directory is
3226     # removed, or if the path is relative.
3227     INSTALL=$ac_install_sh
3228   fi
3229 fi
3230 echo "$as_me:$LINENO: result: $INSTALL" >&5
3231 echo "${ECHO_T}$INSTALL" >&6
3232
3233 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3234 # It thinks the first close brace ends the variable substitution.
3235 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3236
3237 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3238
3239 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3240
3241 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3242 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3243 LN_S=$as_ln_s
3244 if test "$LN_S" = "ln -s"; then
3245   echo "$as_me:$LINENO: result: yes" >&5
3246 echo "${ECHO_T}yes" >&6
3247 else
3248   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3249 echo "${ECHO_T}no, using $LN_S" >&6
3250 fi
3251
3252 # Check whether --enable-shared or --disable-shared was given.
3253 if test "${enable_shared+set}" = set; then
3254   enableval="$enable_shared"
3255   p=${PACKAGE-default}
3256     case $enableval in
3257     yes) enable_shared=yes ;;
3258     no) enable_shared=no ;;
3259     *)
3260       enable_shared=no
3261       # Look at the argument we got.  We use all the common list separators.
3262       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3263       for pkg in $enableval; do
3264         IFS="$lt_save_ifs"
3265         if test "X$pkg" = "X$p"; then
3266           enable_shared=yes
3267         fi
3268       done
3269       IFS="$lt_save_ifs"
3270       ;;
3271     esac
3272 else
3273   enable_shared=yes
3274 fi;
3275
3276 # Check whether --enable-static or --disable-static was given.
3277 if test "${enable_static+set}" = set; then
3278   enableval="$enable_static"
3279   p=${PACKAGE-default}
3280     case $enableval in
3281     yes) enable_static=yes ;;
3282     no) enable_static=no ;;
3283     *)
3284      enable_static=no
3285       # Look at the argument we got.  We use all the common list separators.
3286       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3287       for pkg in $enableval; do
3288         IFS="$lt_save_ifs"
3289         if test "X$pkg" = "X$p"; then
3290           enable_static=yes
3291         fi
3292       done
3293       IFS="$lt_save_ifs"
3294       ;;
3295     esac
3296 else
3297   enable_static=yes
3298 fi;
3299
3300 # Check whether --enable-fast-install or --disable-fast-install was given.
3301 if test "${enable_fast_install+set}" = set; then
3302   enableval="$enable_fast_install"
3303   p=${PACKAGE-default}
3304     case $enableval in
3305     yes) enable_fast_install=yes ;;
3306     no) enable_fast_install=no ;;
3307     *)
3308       enable_fast_install=no
3309       # Look at the argument we got.  We use all the common list separators.
3310       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3311       for pkg in $enableval; do
3312         IFS="$lt_save_ifs"
3313         if test "X$pkg" = "X$p"; then
3314           enable_fast_install=yes
3315         fi
3316       done
3317       IFS="$lt_save_ifs"
3318       ;;
3319     esac
3320 else
3321   enable_fast_install=yes
3322 fi;
3323
3324 # Make sure we can run config.sub.
3325 $ac_config_sub sun4 >/dev/null 2>&1 ||
3326   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3327 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3328    { (exit 1); exit 1; }; }
3329
3330 echo "$as_me:$LINENO: checking build system type" >&5
3331 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3332 if test "${ac_cv_build+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   ac_cv_build_alias=$build_alias
3336 test -z "$ac_cv_build_alias" &&
3337   ac_cv_build_alias=`$ac_config_guess`
3338 test -z "$ac_cv_build_alias" &&
3339   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3340 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3341    { (exit 1); exit 1; }; }
3342 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3343   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3344 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3345    { (exit 1); exit 1; }; }
3346
3347 fi
3348 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3349 echo "${ECHO_T}$ac_cv_build" >&6
3350 build=$ac_cv_build
3351 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3352 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3353 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3354
3355
3356 echo "$as_me:$LINENO: checking host system type" >&5
3357 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3358 if test "${ac_cv_host+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   ac_cv_host_alias=$host_alias
3362 test -z "$ac_cv_host_alias" &&
3363   ac_cv_host_alias=$ac_cv_build_alias
3364 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3365   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3366 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3367    { (exit 1); exit 1; }; }
3368
3369 fi
3370 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3371 echo "${ECHO_T}$ac_cv_host" >&6
3372 host=$ac_cv_host
3373 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3374 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3375 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3376
3377
3378 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3379 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3380 if test "${lt_cv_path_SED+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   # Loop through the user's path and test for sed and gsed.
3384 # Then use that list of sed's as ones to test for truncation.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for lt_ac_prog in sed gsed; do
3391     for ac_exec_ext in '' $ac_executable_extensions; do
3392       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3393         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3394       fi
3395     done
3396   done
3397 done
3398 lt_ac_max=0
3399 lt_ac_count=0
3400 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3401 # along with /bin/sed that truncates output.
3402 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3403   test ! -f $lt_ac_sed && continue
3404   cat /dev/null > conftest.in
3405   lt_ac_count=0
3406   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3407   # Check for GNU sed and select it if it is found.
3408   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3409     lt_cv_path_SED=$lt_ac_sed
3410     break
3411   fi
3412   while true; do
3413     cat conftest.in conftest.in >conftest.tmp
3414     mv conftest.tmp conftest.in
3415     cp conftest.in conftest.nl
3416     echo >>conftest.nl
3417     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3418     cmp -s conftest.out conftest.nl || break
3419     # 10000 chars as input seems more than enough
3420     test $lt_ac_count -gt 10 && break
3421     lt_ac_count=`expr $lt_ac_count + 1`
3422     if test $lt_ac_count -gt $lt_ac_max; then
3423       lt_ac_max=$lt_ac_count
3424       lt_cv_path_SED=$lt_ac_sed
3425     fi
3426   done
3427 done
3428
3429 fi
3430
3431 SED=$lt_cv_path_SED
3432 echo "$as_me:$LINENO: result: $SED" >&5
3433 echo "${ECHO_T}$SED" >&6
3434
3435 echo "$as_me:$LINENO: checking for egrep" >&5
3436 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3437 if test "${ac_cv_prog_egrep+set}" = set; then
3438   echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3441     then ac_cv_prog_egrep='grep -E'
3442     else ac_cv_prog_egrep='egrep'
3443     fi
3444 fi
3445 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3446 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3447  EGREP=$ac_cv_prog_egrep
3448
3449
3450
3451 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3452 if test "${with_gnu_ld+set}" = set; then
3453   withval="$with_gnu_ld"
3454   test "$withval" = no || with_gnu_ld=yes
3455 else
3456   with_gnu_ld=no
3457 fi;
3458 ac_prog=ld
3459 if test "$GCC" = yes; then
3460   # Check if gcc -print-prog-name=ld gives a path.
3461   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3462 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3463   case $host in
3464   *-*-mingw*)
3465     # gcc leaves a trailing carriage return which upsets mingw
3466     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3467   *)
3468     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3469   esac
3470   case $ac_prog in
3471     # Accept absolute paths.
3472     [\\/]* | ?:[\\/]*)
3473       re_direlt='/[^/][^/]*/\.\./'
3474       # Canonicalize the pathname of ld
3475       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3476       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3477         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3478       done
3479       test -z "$LD" && LD="$ac_prog"
3480       ;;
3481   "")
3482     # If it fails, then pretend we aren't using GCC.
3483     ac_prog=ld
3484     ;;
3485   *)
3486     # If it is relative, then search for the first ld in PATH.
3487     with_gnu_ld=unknown
3488     ;;
3489   esac
3490 elif test "$with_gnu_ld" = yes; then
3491   echo "$as_me:$LINENO: checking for GNU ld" >&5
3492 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3493 else
3494   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3495 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3496 fi
3497 if test "${lt_cv_path_LD+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   if test -z "$LD"; then
3501   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3502   for ac_dir in $PATH; do
3503     IFS="$lt_save_ifs"
3504     test -z "$ac_dir" && ac_dir=.
3505     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3506       lt_cv_path_LD="$ac_dir/$ac_prog"
3507       # Check to see if the program is GNU ld.  I'd rather use --version,
3508       # but apparently some GNU ld's only accept -v.
3509       # Break only if it was the GNU/non-GNU ld that we prefer.
3510       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3511       *GNU* | *'with BFD'*)
3512         test "$with_gnu_ld" != no && break
3513         ;;
3514       *)
3515         test "$with_gnu_ld" != yes && break
3516         ;;
3517       esac
3518     fi
3519   done
3520   IFS="$lt_save_ifs"
3521 else
3522   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3523 fi
3524 fi
3525
3526 LD="$lt_cv_path_LD"
3527 if test -n "$LD"; then
3528   echo "$as_me:$LINENO: result: $LD" >&5
3529 echo "${ECHO_T}$LD" >&6
3530 else
3531   echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3533 fi
3534 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3535 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3536    { (exit 1); exit 1; }; }
3537 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3538 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3539 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3543 case `$LD -v 2>&1 </dev/null` in
3544 *GNU* | *'with BFD'*)
3545   lt_cv_prog_gnu_ld=yes
3546   ;;
3547 *)
3548   lt_cv_prog_gnu_ld=no
3549   ;;
3550 esac
3551 fi
3552 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3553 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3554 with_gnu_ld=$lt_cv_prog_gnu_ld
3555
3556
3557 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3558 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3559 if test "${lt_cv_ld_reload_flag+set}" = set; then
3560   echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562   lt_cv_ld_reload_flag='-r'
3563 fi
3564 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3565 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3566 reload_flag=$lt_cv_ld_reload_flag
3567 case $reload_flag in
3568 "" | " "*) ;;
3569 *) reload_flag=" $reload_flag" ;;
3570 esac
3571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3572 case $host_os in
3573   darwin*)
3574     if test "$GCC" = yes; then
3575       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3576     else
3577       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3578     fi
3579     ;;
3580 esac
3581
3582 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3583 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3584 if test "${lt_cv_path_NM+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   if test -n "$NM"; then
3588   # Let the user override the test.
3589   lt_cv_path_NM="$NM"
3590 else
3591   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3592   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3593     IFS="$lt_save_ifs"
3594     test -z "$ac_dir" && ac_dir=.
3595     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3596     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3597       # Check to see if the nm accepts a BSD-compat flag.
3598       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3599       #   nm: unknown option "B" ignored
3600       # Tru64's nm complains that /dev/null is an invalid object file
3601       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3602       */dev/null* | *'Invalid file or object type'*)
3603         lt_cv_path_NM="$tmp_nm -B"
3604         break
3605         ;;
3606       *)
3607         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3608         */dev/null*)
3609           lt_cv_path_NM="$tmp_nm -p"
3610           break
3611           ;;
3612         *)
3613           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3614           continue # so that we can try to find one that supports BSD flags
3615           ;;
3616         esac
3617       esac
3618     fi
3619   done
3620   IFS="$lt_save_ifs"
3621   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3622 fi
3623 fi
3624 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3625 echo "${ECHO_T}$lt_cv_path_NM" >&6
3626 NM="$lt_cv_path_NM"
3627
3628 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3629 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3630 if test "${lt_cv_deplibs_check_method+set}" = set; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   lt_cv_file_magic_cmd='$MAGIC_CMD'
3634 lt_cv_file_magic_test_file=
3635 lt_cv_deplibs_check_method='unknown'
3636 # Need to set the preceding variable on all platforms that support
3637 # interlibrary dependencies.
3638 # 'none' -- dependencies not supported.
3639 # `unknown' -- same as none, but documents that we really don't know.
3640 # 'pass_all' -- all dependencies passed with no checks.
3641 # 'test_compile' -- check by making test program.
3642 # 'file_magic [[regex]]' -- check by looking for files in library path
3643 # which responds to the $file_magic_cmd with a given extended regex.
3644 # If you have `file' or equivalent on your system and you're not sure
3645 # whether `pass_all' will *always* work, you probably want this one.
3646
3647 case $host_os in
3648 aix4* | aix5*)
3649   lt_cv_deplibs_check_method=pass_all
3650   ;;
3651
3652 beos*)
3653   lt_cv_deplibs_check_method=pass_all
3654   ;;
3655
3656 bsdi[45]*)
3657   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3658   lt_cv_file_magic_cmd='/usr/bin/file -L'
3659   lt_cv_file_magic_test_file=/shlib/libc.so
3660   ;;
3661
3662 cygwin*)
3663   # func_win32_libid is a shell function defined in ltmain.sh
3664   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3665   lt_cv_file_magic_cmd='func_win32_libid'
3666   ;;
3667
3668 mingw* | pw32*)
3669   # Base MSYS/MinGW do not provide the 'file' command needed by
3670   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3671   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3672   lt_cv_file_magic_cmd='$OBJDUMP -f'
3673   ;;
3674
3675 darwin* | rhapsody*)
3676   lt_cv_deplibs_check_method=pass_all
3677   ;;
3678
3679 freebsd* | kfreebsd*-gnu | dragonfly*)
3680   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3681     case $host_cpu in
3682     i*86 )
3683       # Not sure whether the presence of OpenBSD here was a mistake.
3684       # Let's accept both of them until this is cleared up.
3685       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3686       lt_cv_file_magic_cmd=/usr/bin/file
3687       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3688       ;;
3689     esac
3690   else
3691     lt_cv_deplibs_check_method=pass_all
3692   fi
3693   ;;
3694
3695 gnu*)
3696   lt_cv_deplibs_check_method=pass_all
3697   ;;
3698
3699 hpux10.20* | hpux11*)
3700   lt_cv_file_magic_cmd=/usr/bin/file
3701   case "$host_cpu" in
3702   ia64*)
3703     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3704     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3705     ;;
3706   hppa*64*)
3707     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]'
3708     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3709     ;;
3710   *)
3711     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3712     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3713     ;;
3714   esac
3715   ;;
3716
3717 irix5* | irix6* | nonstopux*)
3718   case $LD in
3719   *-32|*"-32 ") libmagic=32-bit;;
3720   *-n32|*"-n32 ") libmagic=N32;;
3721   *-64|*"-64 ") libmagic=64-bit;;
3722   *) libmagic=never-match;;
3723   esac
3724   lt_cv_deplibs_check_method=pass_all
3725   ;;
3726
3727 # This must be Linux ELF.
3728 linux*)
3729   lt_cv_deplibs_check_method=pass_all
3730   ;;
3731
3732 netbsd*)
3733   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3734     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3735   else
3736     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3737   fi
3738   ;;
3739
3740 newos6*)
3741   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3742   lt_cv_file_magic_cmd=/usr/bin/file
3743   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3744   ;;
3745
3746 nto-qnx*)
3747   lt_cv_deplibs_check_method=unknown
3748   ;;
3749
3750 openbsd*)
3751   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3752     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3753   else
3754     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3755   fi
3756   ;;
3757
3758 osf3* | osf4* | osf5*)
3759   lt_cv_deplibs_check_method=pass_all
3760   ;;
3761
3762 sco3.2v5*)
3763   lt_cv_deplibs_check_method=pass_all
3764   ;;
3765
3766 solaris*)
3767   lt_cv_deplibs_check_method=pass_all
3768   ;;
3769
3770 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3771   case $host_vendor in
3772   motorola)
3773     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]'
3774     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3775     ;;
3776   ncr)
3777     lt_cv_deplibs_check_method=pass_all
3778     ;;
3779   sequent)
3780     lt_cv_file_magic_cmd='/bin/file'
3781     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3782     ;;
3783   sni)
3784     lt_cv_file_magic_cmd='/bin/file'
3785     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3786     lt_cv_file_magic_test_file=/lib/libc.so
3787     ;;
3788   siemens)
3789     lt_cv_deplibs_check_method=pass_all
3790     ;;
3791   esac
3792   ;;
3793
3794 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3795   lt_cv_deplibs_check_method=pass_all
3796   ;;
3797 esac
3798
3799 fi
3800 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3801 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3802 file_magic_cmd=$lt_cv_file_magic_cmd
3803 deplibs_check_method=$lt_cv_deplibs_check_method
3804 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3805
3806
3807
3808
3809 # If no C compiler was specified, use CC.
3810 LTCC=${LTCC-"$CC"}
3811
3812 # Allow CC to be a program name with arguments.
3813 compiler=$CC
3814
3815
3816 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3817 if test "${enable_libtool_lock+set}" = set; then
3818   enableval="$enable_libtool_lock"
3819
3820 fi;
3821 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3822
3823 # Some flags need to be propagated to the compiler or linker for good
3824 # libtool support.
3825 case $host in
3826 ia64-*-hpux*)
3827   # Find out which ABI we are using.
3828   echo 'int i;' > conftest.$ac_ext
3829   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830   (eval $ac_compile) 2>&5
3831   ac_status=$?
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); }; then
3834     case `/usr/bin/file conftest.$ac_objext` in
3835     *ELF-32*)
3836       HPUX_IA64_MODE="32"
3837       ;;
3838     *ELF-64*)
3839       HPUX_IA64_MODE="64"
3840       ;;
3841     esac
3842   fi
3843   rm -rf conftest*
3844   ;;
3845 *-*-irix6*)
3846   # Find out which ABI we are using.
3847   echo '#line 3847 "configure"' > conftest.$ac_ext
3848   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849   (eval $ac_compile) 2>&5
3850   ac_status=$?
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); }; then
3853    if test "$lt_cv_prog_gnu_ld" = yes; then
3854     case `/usr/bin/file conftest.$ac_objext` in
3855     *32-bit*)
3856       LD="${LD-ld} -melf32bsmip"
3857       ;;
3858     *N32*)
3859       LD="${LD-ld} -melf32bmipn32"
3860       ;;
3861     *64-bit*)
3862       LD="${LD-ld} -melf64bmip"
3863       ;;
3864     esac
3865    else
3866     case `/usr/bin/file conftest.$ac_objext` in
3867     *32-bit*)
3868       LD="${LD-ld} -32"
3869       ;;
3870     *N32*)
3871       LD="${LD-ld} -n32"
3872       ;;
3873     *64-bit*)
3874       LD="${LD-ld} -64"
3875       ;;
3876     esac
3877    fi
3878   fi
3879   rm -rf conftest*
3880   ;;
3881
3882 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3883   # Find out which ABI we are using.
3884   echo 'int i;' > conftest.$ac_ext
3885   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886   (eval $ac_compile) 2>&5
3887   ac_status=$?
3888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889   (exit $ac_status); }; then
3890     case "`/usr/bin/file conftest.o`" in
3891     *32-bit*)
3892       case $host in
3893         x86_64-*linux*)
3894           LD="${LD-ld} -m elf_i386"
3895           ;;
3896         ppc64-*linux*|powerpc64-*linux*)
3897           LD="${LD-ld} -m elf32ppclinux"
3898           ;;
3899         s390x-*linux*)
3900           LD="${LD-ld} -m elf_s390"
3901           ;;
3902         sparc64-*linux*)
3903           LD="${LD-ld} -m elf32_sparc"
3904           ;;
3905       esac
3906       ;;
3907     *64-bit*)
3908       case $host in
3909         x86_64-*linux*)
3910           LD="${LD-ld} -m elf_x86_64"
3911           ;;
3912         ppc*-*linux*|powerpc*-*linux*)
3913           LD="${LD-ld} -m elf64ppc"
3914           ;;
3915         s390*-*linux*)
3916           LD="${LD-ld} -m elf64_s390"
3917           ;;
3918         sparc*-*linux*)
3919           LD="${LD-ld} -m elf64_sparc"
3920           ;;
3921       esac
3922       ;;
3923     esac
3924   fi
3925   rm -rf conftest*
3926   ;;
3927
3928 *-*-sco3.2v5*)
3929   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3930   SAVE_CFLAGS="$CFLAGS"
3931   CFLAGS="$CFLAGS -belf"
3932   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3933 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3934 if test "${lt_cv_cc_needs_belf+set}" = set; then
3935   echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937   ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943      cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949
3950 int
3951 main ()
3952 {
3953
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 rm -f conftest.$ac_objext conftest$ac_exeext
3959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3960   (eval $ac_link) 2>conftest.er1
3961   ac_status=$?
3962   grep -v '^ *+' conftest.er1 >conftest.err
3963   rm -f conftest.er1
3964   cat conftest.err >&5
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); } &&
3967          { ac_try='test -z "$ac_c_werror_flag"
3968                          || test ! -s conftest.err'
3969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970   (eval $ac_try) 2>&5
3971   ac_status=$?
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); }; } &&
3974          { ac_try='test -s conftest$ac_exeext'
3975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976   (eval $ac_try) 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); }; }; then
3980   lt_cv_cc_needs_belf=yes
3981 else
3982   echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 lt_cv_cc_needs_belf=no
3986 fi
3987 rm -f conftest.err conftest.$ac_objext \
3988       conftest$ac_exeext conftest.$ac_ext
3989      ac_ext=c
3990 ac_cpp='$CPP $CPPFLAGS'
3991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995 fi
3996 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3997 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3998   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3999     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4000     CFLAGS="$SAVE_CFLAGS"
4001   fi
4002   ;;
4003
4004 esac
4005
4006 need_locks="$enable_libtool_lock"
4007
4008
4009 ac_ext=c
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4015 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4016 # On Suns, sometimes $CPP names a directory.
4017 if test -n "$CPP" && test -d "$CPP"; then
4018   CPP=
4019 fi
4020 if test -z "$CPP"; then
4021   if test "${ac_cv_prog_CPP+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024       # Double quotes because CPP needs to be expanded
4025     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4026     do
4027       ac_preproc_ok=false
4028 for ac_c_preproc_warn_flag in '' yes
4029 do
4030   # Use a header file that comes with gcc, so configuring glibc
4031   # with a fresh cross-compiler works.
4032   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4033   # <limits.h> exists even on freestanding compilers.
4034   # On the NeXT, cc -E runs the code through the compiler's parser,
4035   # not just through cpp. "Syntax error" is here to catch this case.
4036   cat >conftest.$ac_ext <<_ACEOF
4037 /* confdefs.h.  */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h.  */
4042 #ifdef __STDC__
4043 # include <limits.h>
4044 #else
4045 # include <assert.h>
4046 #endif
4047                      Syntax error
4048 _ACEOF
4049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4051   ac_status=$?
4052   grep -v '^ *+' conftest.er1 >conftest.err
4053   rm -f conftest.er1
4054   cat conftest.err >&5
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); } >/dev/null; then
4057   if test -s conftest.err; then
4058     ac_cpp_err=$ac_c_preproc_warn_flag
4059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4060   else
4061     ac_cpp_err=
4062   fi
4063 else
4064   ac_cpp_err=yes
4065 fi
4066 if test -z "$ac_cpp_err"; then
4067   :
4068 else
4069   echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4071
4072   # Broken: fails on valid input.
4073 continue
4074 fi
4075 rm -f conftest.err conftest.$ac_ext
4076
4077   # OK, works on sane cases.  Now check whether non-existent headers
4078   # can be detected and how.
4079   cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h.  */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h.  */
4085 #include <ac_nonexistent.h>
4086 _ACEOF
4087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4089   ac_status=$?
4090   grep -v '^ *+' conftest.er1 >conftest.err
4091   rm -f conftest.er1
4092   cat conftest.err >&5
4093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094   (exit $ac_status); } >/dev/null; then
4095   if test -s conftest.err; then
4096     ac_cpp_err=$ac_c_preproc_warn_flag
4097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4098   else
4099     ac_cpp_err=
4100   fi
4101 else
4102   ac_cpp_err=yes
4103 fi
4104 if test -z "$ac_cpp_err"; then
4105   # Broken: success on invalid input.
4106 continue
4107 else
4108   echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111   # Passes both tests.
4112 ac_preproc_ok=:
4113 break
4114 fi
4115 rm -f conftest.err conftest.$ac_ext
4116
4117 done
4118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4119 rm -f conftest.err conftest.$ac_ext
4120 if $ac_preproc_ok; then
4121   break
4122 fi
4123
4124     done
4125     ac_cv_prog_CPP=$CPP
4126
4127 fi
4128   CPP=$ac_cv_prog_CPP
4129 else
4130   ac_cv_prog_CPP=$CPP
4131 fi
4132 echo "$as_me:$LINENO: result: $CPP" >&5
4133 echo "${ECHO_T}$CPP" >&6
4134 ac_preproc_ok=false
4135 for ac_c_preproc_warn_flag in '' yes
4136 do
4137   # Use a header file that comes with gcc, so configuring glibc
4138   # with a fresh cross-compiler works.
4139   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140   # <limits.h> exists even on freestanding compilers.
4141   # On the NeXT, cc -E runs the code through the compiler's parser,
4142   # not just through cpp. "Syntax error" is here to catch this case.
4143   cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 #ifdef __STDC__
4150 # include <limits.h>
4151 #else
4152 # include <assert.h>
4153 #endif
4154                      Syntax error
4155 _ACEOF
4156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4158   ac_status=$?
4159   grep -v '^ *+' conftest.er1 >conftest.err
4160   rm -f conftest.er1
4161   cat conftest.err >&5
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } >/dev/null; then
4164   if test -s conftest.err; then
4165     ac_cpp_err=$ac_c_preproc_warn_flag
4166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4167   else
4168     ac_cpp_err=
4169   fi
4170 else
4171   ac_cpp_err=yes
4172 fi
4173 if test -z "$ac_cpp_err"; then
4174   :
4175 else
4176   echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179   # Broken: fails on valid input.
4180 continue
4181 fi
4182 rm -f conftest.err conftest.$ac_ext
4183
4184   # OK, works on sane cases.  Now check whether non-existent headers
4185   # can be detected and how.
4186   cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 #include <ac_nonexistent.h>
4193 _ACEOF
4194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4196   ac_status=$?
4197   grep -v '^ *+' conftest.er1 >conftest.err
4198   rm -f conftest.er1
4199   cat conftest.err >&5
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); } >/dev/null; then
4202   if test -s conftest.err; then
4203     ac_cpp_err=$ac_c_preproc_warn_flag
4204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4205   else
4206     ac_cpp_err=
4207   fi
4208 else
4209   ac_cpp_err=yes
4210 fi
4211 if test -z "$ac_cpp_err"; then
4212   # Broken: success on invalid input.
4213 continue
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218   # Passes both tests.
4219 ac_preproc_ok=:
4220 break
4221 fi
4222 rm -f conftest.err conftest.$ac_ext
4223
4224 done
4225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4226 rm -f conftest.err conftest.$ac_ext
4227 if $ac_preproc_ok; then
4228   :
4229 else
4230   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details." >&5
4232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4233 See \`config.log' for more details." >&2;}
4234    { (exit 1); exit 1; }; }
4235 fi
4236
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242
4243
4244 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4245 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4246 if test "${ac_cv_header_stdc+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255 #include <stdlib.h>
4256 #include <stdarg.h>
4257 #include <string.h>
4258 #include <float.h>
4259
4260 int
4261 main ()
4262 {
4263
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 rm -f conftest.$ac_objext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270   (eval $ac_compile) 2>conftest.er1
4271   ac_status=$?
4272   grep -v '^ *+' conftest.er1 >conftest.err
4273   rm -f conftest.er1
4274   cat conftest.err >&5
4275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276   (exit $ac_status); } &&
4277          { ac_try='test -z "$ac_c_werror_flag"
4278                          || test ! -s conftest.err'
4279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280   (eval $ac_try) 2>&5
4281   ac_status=$?
4282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283   (exit $ac_status); }; } &&
4284          { ac_try='test -s conftest.$ac_objext'
4285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286   (eval $ac_try) 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; }; then
4290   ac_cv_header_stdc=yes
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 ac_cv_header_stdc=no
4296 fi
4297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4298
4299 if test $ac_cv_header_stdc = yes; then
4300   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4301   cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h.  */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h.  */
4307 #include <string.h>
4308
4309 _ACEOF
4310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311   $EGREP "memchr" >/dev/null 2>&1; then
4312   :
4313 else
4314   ac_cv_header_stdc=no
4315 fi
4316 rm -f conftest*
4317
4318 fi
4319
4320 if test $ac_cv_header_stdc = yes; then
4321   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4322   cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h.  */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h.  */
4328 #include <stdlib.h>
4329
4330 _ACEOF
4331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332   $EGREP "free" >/dev/null 2>&1; then
4333   :
4334 else
4335   ac_cv_header_stdc=no
4336 fi
4337 rm -f conftest*
4338
4339 fi
4340
4341 if test $ac_cv_header_stdc = yes; then
4342   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4343   if test "$cross_compiling" = yes; then
4344   :
4345 else
4346   cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h.  */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h.  */
4352 #include <ctype.h>
4353 #if ((' ' & 0x0FF) == 0x020)
4354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4356 #else
4357 # define ISLOWER(c) \
4358                    (('a' <= (c) && (c) <= 'i') \
4359                      || ('j' <= (c) && (c) <= 'r') \
4360                      || ('s' <= (c) && (c) <= 'z'))
4361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4362 #endif
4363
4364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4365 int
4366 main ()
4367 {
4368   int i;
4369   for (i = 0; i < 256; i++)
4370     if (XOR (islower (i), ISLOWER (i))
4371         || toupper (i) != TOUPPER (i))
4372       exit(2);
4373   exit (0);
4374 }
4375 _ACEOF
4376 rm -f conftest$ac_exeext
4377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4378   (eval $ac_link) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383   (eval $ac_try) 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); }; }; then
4387   :
4388 else
4389   echo "$as_me: program exited with status $ac_status" >&5
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 ( exit $ac_status )
4394 ac_cv_header_stdc=no
4395 fi
4396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4397 fi
4398 fi
4399 fi
4400 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4401 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4402 if test $ac_cv_header_stdc = yes; then
4403
4404 cat >>confdefs.h <<\_ACEOF
4405 #define STDC_HEADERS 1
4406 _ACEOF
4407
4408 fi
4409
4410 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4421                   inttypes.h stdint.h unistd.h
4422 do
4423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4424 echo "$as_me:$LINENO: checking for $ac_header" >&5
4425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h.  */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h.  */
4435 $ac_includes_default
4436
4437 #include <$ac_header>
4438 _ACEOF
4439 rm -f conftest.$ac_objext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441   (eval $ac_compile) 2>conftest.er1
4442   ac_status=$?
4443   grep -v '^ *+' conftest.er1 >conftest.err
4444   rm -f conftest.er1
4445   cat conftest.err >&5
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); } &&
4448          { ac_try='test -z "$ac_c_werror_flag"
4449                          || test ! -s conftest.err'
4450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451   (eval $ac_try) 2>&5
4452   ac_status=$?
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); }; } &&
4455          { ac_try='test -s conftest.$ac_objext'
4456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457   (eval $ac_try) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; }; then
4461   eval "$as_ac_Header=yes"
4462 else
4463   echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4465
4466 eval "$as_ac_Header=no"
4467 fi
4468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4469 fi
4470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4473   cat >>confdefs.h <<_ACEOF
4474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475 _ACEOF
4476
4477 fi
4478
4479 done
4480
4481
4482
4483 for ac_header in dlfcn.h
4484 do
4485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4487   echo "$as_me:$LINENO: checking for $ac_header" >&5
4488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 fi
4492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4494 else
4495   # Is the header compilable?
4496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4498 cat >conftest.$ac_ext <<_ACEOF
4499 /* confdefs.h.  */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h.  */
4504 $ac_includes_default
4505 #include <$ac_header>
4506 _ACEOF
4507 rm -f conftest.$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509   (eval $ac_compile) 2>conftest.er1
4510   ac_status=$?
4511   grep -v '^ *+' conftest.er1 >conftest.err
4512   rm -f conftest.er1
4513   cat conftest.err >&5
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); } &&
4516          { ac_try='test -z "$ac_c_werror_flag"
4517                          || test ! -s conftest.err'
4518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519   (eval $ac_try) 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; } &&
4523          { ac_try='test -s conftest.$ac_objext'
4524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525   (eval $ac_try) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); }; }; then
4529   ac_header_compiler=yes
4530 else
4531   echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 ac_header_compiler=no
4535 fi
4536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4538 echo "${ECHO_T}$ac_header_compiler" >&6
4539
4540 # Is the header present?
4541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4543 cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h.  */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h.  */
4549 #include <$ac_header>
4550 _ACEOF
4551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4552   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4553   ac_status=$?
4554   grep -v '^ *+' conftest.er1 >conftest.err
4555   rm -f conftest.er1
4556   cat conftest.err >&5
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); } >/dev/null; then
4559   if test -s conftest.err; then
4560     ac_cpp_err=$ac_c_preproc_warn_flag
4561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4562   else
4563     ac_cpp_err=
4564   fi
4565 else
4566   ac_cpp_err=yes
4567 fi
4568 if test -z "$ac_cpp_err"; then
4569   ac_header_preproc=yes
4570 else
4571   echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574   ac_header_preproc=no
4575 fi
4576 rm -f conftest.err conftest.$ac_ext
4577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4578 echo "${ECHO_T}$ac_header_preproc" >&6
4579
4580 # So?  What about this header?
4581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4582   yes:no: )
4583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4587     ac_header_preproc=yes
4588     ;;
4589   no:yes:* )
4590     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4592     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4593 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4594     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4596     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4597 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4600     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4602     (
4603       cat <<\_ASBOX
4604 ## ------------------------------------------ ##
4605 ## Report this to the AC_PACKAGE_NAME lists.  ##
4606 ## ------------------------------------------ ##
4607 _ASBOX
4608     ) |
4609       sed "s/^/$as_me: WARNING:     /" >&2
4610     ;;
4611 esac
4612 echo "$as_me:$LINENO: checking for $ac_header" >&5
4613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   eval "$as_ac_Header=\$ac_header_preproc"
4618 fi
4619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4621
4622 fi
4623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4624   cat >>confdefs.h <<_ACEOF
4625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4626 _ACEOF
4627
4628 fi
4629
4630 done
4631
4632 ac_ext=cc
4633 ac_cpp='$CXXCPP $CPPFLAGS'
4634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4637 if test -n "$ac_tool_prefix"; then
4638   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4639   do
4640     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4642 echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644 if test "${ac_cv_prog_CXX+set}" = set; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   if test -n "$CXX"; then
4648   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655   for ac_exec_ext in '' $ac_executable_extensions; do
4656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662 done
4663
4664 fi
4665 fi
4666 CXX=$ac_cv_prog_CXX
4667 if test -n "$CXX"; then
4668   echo "$as_me:$LINENO: result: $CXX" >&5
4669 echo "${ECHO_T}$CXX" >&6
4670 else
4671   echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6
4673 fi
4674
4675     test -n "$CXX" && break
4676   done
4677 fi
4678 if test -z "$CXX"; then
4679   ac_ct_CXX=$CXX
4680   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4681 do
4682   # Extract the first word of "$ac_prog", so it can be a program name with args.
4683 set dummy $ac_prog; ac_word=$2
4684 echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   if test -n "$ac_ct_CXX"; then
4690   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4694 do
4695   IFS=$as_save_IFS
4696   test -z "$as_dir" && as_dir=.
4697   for ac_exec_ext in '' $ac_executable_extensions; do
4698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4699     ac_cv_prog_ac_ct_CXX="$ac_prog"
4700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701     break 2
4702   fi
4703 done
4704 done
4705
4706 fi
4707 fi
4708 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4709 if test -n "$ac_ct_CXX"; then
4710   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4711 echo "${ECHO_T}$ac_ct_CXX" >&6
4712 else
4713   echo "$as_me:$LINENO: result: no" >&5
4714 echo "${ECHO_T}no" >&6
4715 fi
4716
4717   test -n "$ac_ct_CXX" && break
4718 done
4719 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4720
4721   CXX=$ac_ct_CXX
4722 fi
4723
4724
4725 # Provide some information about the compiler.
4726 echo "$as_me:$LINENO:" \
4727      "checking for C++ compiler version" >&5
4728 ac_compiler=`set X $ac_compile; echo $2`
4729 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4730   (eval $ac_compiler --version </dev/null >&5) 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }
4734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4735   (eval $ac_compiler -v </dev/null >&5) 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); }
4739 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4740   (eval $ac_compiler -V </dev/null >&5) 2>&5
4741   ac_status=$?
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); }
4744
4745 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4746 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4747 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h.  */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h.  */
4756
4757 int
4758 main ()
4759 {
4760 #ifndef __GNUC__
4761        choke me
4762 #endif
4763
4764   ;
4765   return 0;
4766 }
4767 _ACEOF
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770   (eval $ac_compile) 2>conftest.er1
4771   ac_status=$?
4772   grep -v '^ *+' conftest.er1 >conftest.err
4773   rm -f conftest.er1
4774   cat conftest.err >&5
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); } &&
4777          { ac_try='test -z "$ac_cxx_werror_flag"
4778                          || test ! -s conftest.err'
4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780   (eval $ac_try) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); }; } &&
4784          { ac_try='test -s conftest.$ac_objext'
4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; }; then
4790   ac_compiler_gnu=yes
4791 else
4792   echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795 ac_compiler_gnu=no
4796 fi
4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4799
4800 fi
4801 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4802 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4803 GXX=`test $ac_compiler_gnu = yes && echo yes`
4804 ac_test_CXXFLAGS=${CXXFLAGS+set}
4805 ac_save_CXXFLAGS=$CXXFLAGS
4806 CXXFLAGS="-g"
4807 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4808 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4809 if test "${ac_cv_prog_cxx_g+set}" = set; then
4810   echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812   cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h.  */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h.  */
4818
4819 int
4820 main ()
4821 {
4822
4823   ;
4824   return 0;
4825 }
4826 _ACEOF
4827 rm -f conftest.$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829   (eval $ac_compile) 2>conftest.er1
4830   ac_status=$?
4831   grep -v '^ *+' conftest.er1 >conftest.err
4832   rm -f conftest.er1
4833   cat conftest.err >&5
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); } &&
4836          { ac_try='test -z "$ac_cxx_werror_flag"
4837                          || test ! -s conftest.err'
4838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839   (eval $ac_try) 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }; } &&
4843          { ac_try='test -s conftest.$ac_objext'
4844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845   (eval $ac_try) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); }; }; then
4849   ac_cv_prog_cxx_g=yes
4850 else
4851   echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 ac_cv_prog_cxx_g=no
4855 fi
4856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857 fi
4858 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4859 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4860 if test "$ac_test_CXXFLAGS" = set; then
4861   CXXFLAGS=$ac_save_CXXFLAGS
4862 elif test $ac_cv_prog_cxx_g = yes; then
4863   if test "$GXX" = yes; then
4864     CXXFLAGS="-g -O2"
4865   else
4866     CXXFLAGS="-g"
4867   fi
4868 else
4869   if test "$GXX" = yes; then
4870     CXXFLAGS="-O2"
4871   else
4872     CXXFLAGS=
4873   fi
4874 fi
4875 for ac_declaration in \
4876    '' \
4877    'extern "C" void std::exit (int) throw (); using std::exit;' \
4878    'extern "C" void std::exit (int); using std::exit;' \
4879    'extern "C" void exit (int) throw ();' \
4880    'extern "C" void exit (int);' \
4881    'void exit (int);'
4882 do
4883   cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h.  */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h.  */
4889 $ac_declaration
4890 #include <stdlib.h>
4891 int
4892 main ()
4893 {
4894 exit (42);
4895   ;
4896   return 0;
4897 }
4898 _ACEOF
4899 rm -f conftest.$ac_objext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4901   (eval $ac_compile) 2>conftest.er1
4902   ac_status=$?
4903   grep -v '^ *+' conftest.er1 >conftest.err
4904   rm -f conftest.er1
4905   cat conftest.err >&5
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); } &&
4908          { ac_try='test -z "$ac_cxx_werror_flag"
4909                          || test ! -s conftest.err'
4910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911   (eval $ac_try) 2>&5
4912   ac_status=$?
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); }; } &&
4915          { ac_try='test -s conftest.$ac_objext'
4916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917   (eval $ac_try) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; }; then
4921   :
4922 else
4923   echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4925
4926 continue
4927 fi
4928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4929   cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935 $ac_declaration
4936 int
4937 main ()
4938 {
4939 exit (42);
4940   ;
4941   return 0;
4942 }
4943 _ACEOF
4944 rm -f conftest.$ac_objext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946   (eval $ac_compile) 2>conftest.er1
4947   ac_status=$?
4948   grep -v '^ *+' conftest.er1 >conftest.err
4949   rm -f conftest.er1
4950   cat conftest.err >&5
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); } &&
4953          { ac_try='test -z "$ac_cxx_werror_flag"
4954                          || test ! -s conftest.err'
4955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956   (eval $ac_try) 2>&5
4957   ac_status=$?
4958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959   (exit $ac_status); }; } &&
4960          { ac_try='test -s conftest.$ac_objext'
4961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962   (eval $ac_try) 2>&5
4963   ac_status=$?
4964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); }; }; then
4966   break
4967 else
4968   echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971 fi
4972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4973 done
4974 rm -f conftest*
4975 if test -n "$ac_declaration"; then
4976   echo '#ifdef __cplusplus' >>confdefs.h
4977   echo $ac_declaration      >>confdefs.h
4978   echo '#endif'             >>confdefs.h
4979 fi
4980
4981 ac_ext=cc
4982 ac_cpp='$CXXCPP $CPPFLAGS'
4983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4986
4987 depcc="$CXX"  am_compiler_list=
4988
4989 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4990 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4991 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4995   # We make a subdir and do the tests there.  Otherwise we can end up
4996   # making bogus files that we don't know about and never remove.  For
4997   # instance it was reported that on HP-UX the gcc test will end up
4998   # making a dummy file named `D' -- because `-MD' means `put the output
4999   # in D'.
5000   mkdir conftest.dir
5001   # Copy depcomp to subdir because otherwise we won't find it if we're
5002   # using a relative directory.
5003   cp "$am_depcomp" conftest.dir
5004   cd conftest.dir
5005   # We will build objects and dependencies in a subdirectory because
5006   # it helps to detect inapplicable dependency modes.  For instance
5007   # both Tru64's cc and ICC support -MD to output dependencies as a
5008   # side effect of compilation, but ICC will put the dependencies in
5009   # the current directory while Tru64 will put them in the object
5010   # directory.
5011   mkdir sub
5012
5013   am_cv_CXX_dependencies_compiler_type=none
5014   if test "$am_compiler_list" = ""; then
5015      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5016   fi
5017   for depmode in $am_compiler_list; do
5018     # Setup a source with many dependencies, because some compilers
5019     # like to wrap large dependency lists on column 80 (with \), and
5020     # we should not choose a depcomp mode which is confused by this.
5021     #
5022     # We need to recreate these files for each test, as the compiler may
5023     # overwrite some of them when testing with obscure command lines.
5024     # This happens at least with the AIX C compiler.
5025     : > sub/conftest.c
5026     for i in 1 2 3 4 5 6; do
5027       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5028       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5029       # Solaris 8's {/usr,}/bin/sh.
5030       touch sub/conftst$i.h
5031     done
5032     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5033
5034     case $depmode in
5035     nosideeffect)
5036       # after this tag, mechanisms are not by side-effect, so they'll
5037       # only be used when explicitly requested
5038       if test "x$enable_dependency_tracking" = xyes; then
5039         continue
5040       else
5041         break
5042       fi
5043       ;;
5044     none) break ;;
5045     esac
5046     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5047     # mode.  It turns out that the SunPro C++ compiler does not properly
5048     # handle `-M -o', and we need to detect this.
5049     if depmode=$depmode \
5050        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5051        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5052        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5053          >/dev/null 2>conftest.err &&
5054        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5055        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5056        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5057       # icc doesn't choke on unknown options, it will just issue warnings
5058       # or remarks (even with -Werror).  So we grep stderr for any message
5059       # that says an option was ignored or not supported.
5060       # When given -MP, icc 7.0 and 7.1 complain thusly:
5061       #   icc: Command line warning: ignoring option '-M'; no argument required
5062       # The diagnosis changed in icc 8.0:
5063       #   icc: Command line remark: option '-MP' not supported
5064       if (grep 'ignoring option' conftest.err ||
5065           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5066         am_cv_CXX_dependencies_compiler_type=$depmode
5067         break
5068       fi
5069     fi
5070   done
5071
5072   cd ..
5073   rm -rf conftest.dir
5074 else
5075   am_cv_CXX_dependencies_compiler_type=none
5076 fi
5077
5078 fi
5079 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5080 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5081 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5082
5083
5084
5085 if
5086   test "x$enable_dependency_tracking" != xno \
5087   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5088   am__fastdepCXX_TRUE=
5089   am__fastdepCXX_FALSE='#'
5090 else
5091   am__fastdepCXX_TRUE='#'
5092   am__fastdepCXX_FALSE=
5093 fi
5094
5095
5096
5097
5098 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5099     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5100     (test "X$CXX" != "Xg++"))) ; then
5101   ac_ext=cc
5102 ac_cpp='$CXXCPP $CPPFLAGS'
5103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5106 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5107 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5108 if test -z "$CXXCPP"; then
5109   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5110   echo $ECHO_N "(cached) $ECHO_C" >&6
5111 else
5112       # Double quotes because CXXCPP needs to be expanded
5113     for CXXCPP in "$CXX -E" "/lib/cpp"
5114     do
5115       ac_preproc_ok=false
5116 for ac_cxx_preproc_warn_flag in '' yes
5117 do
5118   # Use a header file that comes with gcc, so configuring glibc
5119   # with a fresh cross-compiler works.
5120   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5121   # <limits.h> exists even on freestanding compilers.
5122   # On the NeXT, cc -E runs the code through the compiler's parser,
5123   # not just through cpp. "Syntax error" is here to catch this case.
5124   cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h.  */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h.  */
5130 #ifdef __STDC__
5131 # include <limits.h>
5132 #else
5133 # include <assert.h>
5134 #endif
5135                      Syntax error
5136 _ACEOF
5137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5139   ac_status=$?
5140   grep -v '^ *+' conftest.er1 >conftest.err
5141   rm -f conftest.er1
5142   cat conftest.err >&5
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); } >/dev/null; then
5145   if test -s conftest.err; then
5146     ac_cpp_err=$ac_cxx_preproc_warn_flag
5147     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5148   else
5149     ac_cpp_err=
5150   fi
5151 else
5152   ac_cpp_err=yes
5153 fi
5154 if test -z "$ac_cpp_err"; then
5155   :
5156 else
5157   echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160   # Broken: fails on valid input.
5161 continue
5162 fi
5163 rm -f conftest.err conftest.$ac_ext
5164
5165   # OK, works on sane cases.  Now check whether non-existent headers
5166   # can be detected and how.
5167   cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h.  */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h.  */
5173 #include <ac_nonexistent.h>
5174 _ACEOF
5175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5176   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5177   ac_status=$?
5178   grep -v '^ *+' conftest.er1 >conftest.err
5179   rm -f conftest.er1
5180   cat conftest.err >&5
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); } >/dev/null; then
5183   if test -s conftest.err; then
5184     ac_cpp_err=$ac_cxx_preproc_warn_flag
5185     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5186   else
5187     ac_cpp_err=
5188   fi
5189 else
5190   ac_cpp_err=yes
5191 fi
5192 if test -z "$ac_cpp_err"; then
5193   # Broken: success on invalid input.
5194 continue
5195 else
5196   echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199   # Passes both tests.
5200 ac_preproc_ok=:
5201 break
5202 fi
5203 rm -f conftest.err conftest.$ac_ext
5204
5205 done
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.err conftest.$ac_ext
5208 if $ac_preproc_ok; then
5209   break
5210 fi
5211
5212     done
5213     ac_cv_prog_CXXCPP=$CXXCPP
5214
5215 fi
5216   CXXCPP=$ac_cv_prog_CXXCPP
5217 else
5218   ac_cv_prog_CXXCPP=$CXXCPP
5219 fi
5220 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5221 echo "${ECHO_T}$CXXCPP" >&6
5222 ac_preproc_ok=false
5223 for ac_cxx_preproc_warn_flag in '' yes
5224 do
5225   # Use a header file that comes with gcc, so configuring glibc
5226   # with a fresh cross-compiler works.
5227   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5228   # <limits.h> exists even on freestanding compilers.
5229   # On the NeXT, cc -E runs the code through the compiler's parser,
5230   # not just through cpp. "Syntax error" is here to catch this case.
5231   cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h.  */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h.  */
5237 #ifdef __STDC__
5238 # include <limits.h>
5239 #else
5240 # include <assert.h>
5241 #endif
5242                      Syntax error
5243 _ACEOF
5244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5246   ac_status=$?
5247   grep -v '^ *+' conftest.er1 >conftest.err
5248   rm -f conftest.er1
5249   cat conftest.err >&5
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); } >/dev/null; then
5252   if test -s conftest.err; then
5253     ac_cpp_err=$ac_cxx_preproc_warn_flag
5254     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5255   else
5256     ac_cpp_err=
5257   fi
5258 else
5259   ac_cpp_err=yes
5260 fi
5261 if test -z "$ac_cpp_err"; then
5262   :
5263 else
5264   echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267   # Broken: fails on valid input.
5268 continue
5269 fi
5270 rm -f conftest.err conftest.$ac_ext
5271
5272   # OK, works on sane cases.  Now check whether non-existent headers
5273   # can be detected and how.
5274   cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h.  */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h.  */
5280 #include <ac_nonexistent.h>
5281 _ACEOF
5282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5283   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5284   ac_status=$?
5285   grep -v '^ *+' conftest.er1 >conftest.err
5286   rm -f conftest.er1
5287   cat conftest.err >&5
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); } >/dev/null; then
5290   if test -s conftest.err; then
5291     ac_cpp_err=$ac_cxx_preproc_warn_flag
5292     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5293   else
5294     ac_cpp_err=
5295   fi
5296 else
5297   ac_cpp_err=yes
5298 fi
5299 if test -z "$ac_cpp_err"; then
5300   # Broken: success on invalid input.
5301 continue
5302 else
5303   echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5305
5306   # Passes both tests.
5307 ac_preproc_ok=:
5308 break
5309 fi
5310 rm -f conftest.err conftest.$ac_ext
5311
5312 done
5313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5314 rm -f conftest.err conftest.$ac_ext
5315 if $ac_preproc_ok; then
5316   :
5317 else
5318   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5319 See \`config.log' for more details." >&5
5320 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5321 See \`config.log' for more details." >&2;}
5322    { (exit 1); exit 1; }; }
5323 fi
5324
5325 ac_ext=cc
5326 ac_cpp='$CXXCPP $CPPFLAGS'
5327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5330
5331 fi
5332
5333
5334 ac_ext=f
5335 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5336 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5338 if test -n "$ac_tool_prefix"; then
5339   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5340   do
5341     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5343 echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345 if test "${ac_cv_prog_F77+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   if test -n "$F77"; then
5349   ac_cv_prog_F77="$F77" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5353 do
5354   IFS=$as_save_IFS
5355   test -z "$as_dir" && as_dir=.
5356   for ac_exec_ext in '' $ac_executable_extensions; do
5357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360     break 2
5361   fi
5362 done
5363 done
5364
5365 fi
5366 fi
5367 F77=$ac_cv_prog_F77
5368 if test -n "$F77"; then
5369   echo "$as_me:$LINENO: result: $F77" >&5
5370 echo "${ECHO_T}$F77" >&6
5371 else
5372   echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5374 fi
5375
5376     test -n "$F77" && break
5377   done
5378 fi
5379 if test -z "$F77"; then
5380   ac_ct_F77=$F77
5381   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5382 do
5383   # Extract the first word of "$ac_prog", so it can be a program name with args.
5384 set dummy $ac_prog; ac_word=$2
5385 echo "$as_me:$LINENO: checking for $ac_word" >&5
5386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5387 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390   if test -n "$ac_ct_F77"; then
5391   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398   for ac_exec_ext in '' $ac_executable_extensions; do
5399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400     ac_cv_prog_ac_ct_F77="$ac_prog"
5401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402     break 2
5403   fi
5404 done
5405 done
5406
5407 fi
5408 fi
5409 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5410 if test -n "$ac_ct_F77"; then
5411   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5412 echo "${ECHO_T}$ac_ct_F77" >&6
5413 else
5414   echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5416 fi
5417
5418   test -n "$ac_ct_F77" && break
5419 done
5420
5421   F77=$ac_ct_F77
5422 fi
5423
5424
5425 # Provide some information about the compiler.
5426 echo "$as_me:5426:" \
5427      "checking for Fortran 77 compiler version" >&5
5428 ac_compiler=`set X $ac_compile; echo $2`
5429 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5430   (eval $ac_compiler --version </dev/null >&5) 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); }
5434 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5435   (eval $ac_compiler -v </dev/null >&5) 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); }
5439 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5440   (eval $ac_compiler -V </dev/null >&5) 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }
5444 rm -f a.out
5445
5446 # If we don't use `.F' as extension, the preprocessor is not run on the
5447 # input file.  (Note that this only needs to work for GNU compilers.)
5448 ac_save_ext=$ac_ext
5449 ac_ext=F
5450 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5451 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5452 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5453   echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455   cat >conftest.$ac_ext <<_ACEOF
5456       program main
5457 #ifndef __GNUC__
5458        choke me
5459 #endif
5460
5461       end
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5465   (eval $ac_compile) 2>conftest.er1
5466   ac_status=$?
5467   grep -v '^ *+' conftest.er1 >conftest.err
5468   rm -f conftest.er1
5469   cat conftest.err >&5
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); } &&
5472          { ac_try='test -z "$ac_f77_werror_flag"
5473                          || test ! -s conftest.err'
5474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475   (eval $ac_try) 2>&5
5476   ac_status=$?
5477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); }; } &&
5479          { ac_try='test -s conftest.$ac_objext'
5480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481   (eval $ac_try) 2>&5
5482   ac_status=$?
5483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); }; }; then
5485   ac_compiler_gnu=yes
5486 else
5487   echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.$ac_ext >&5
5489
5490 ac_compiler_gnu=no
5491 fi
5492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5493 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5494
5495 fi
5496 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5497 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5498 ac_ext=$ac_save_ext
5499 ac_test_FFLAGS=${FFLAGS+set}
5500 ac_save_FFLAGS=$FFLAGS
5501 FFLAGS=
5502 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5503 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5504 if test "${ac_cv_prog_f77_g+set}" = set; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507   FFLAGS=-g
5508 cat >conftest.$ac_ext <<_ACEOF
5509       program main
5510
5511       end
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5515   (eval $ac_compile) 2>conftest.er1
5516   ac_status=$?
5517   grep -v '^ *+' conftest.er1 >conftest.err
5518   rm -f conftest.er1
5519   cat conftest.err >&5
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } &&
5522          { ac_try='test -z "$ac_f77_werror_flag"
5523                          || test ! -s conftest.err'
5524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525   (eval $ac_try) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; } &&
5529          { ac_try='test -s conftest.$ac_objext'
5530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531   (eval $ac_try) 2>&5
5532   ac_status=$?
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); }; }; then
5535   ac_cv_prog_f77_g=yes
5536 else
5537   echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540 ac_cv_prog_f77_g=no
5541 fi
5542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5543
5544 fi
5545 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5546 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5547 if test "$ac_test_FFLAGS" = set; then
5548   FFLAGS=$ac_save_FFLAGS
5549 elif test $ac_cv_prog_f77_g = yes; then
5550   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5551     FFLAGS="-g -O2"
5552   else
5553     FFLAGS="-g"
5554   fi
5555 else
5556   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5557     FFLAGS="-O2"
5558   else
5559     FFLAGS=
5560   fi
5561 fi
5562
5563 G77=`test $ac_compiler_gnu = yes && echo yes`
5564 ac_ext=c
5565 ac_cpp='$CPP $CPPFLAGS'
5566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5569
5570
5571
5572 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5573
5574 # find the maximum length of command line arguments
5575 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5576 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5577 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580     i=0
5581   teststring="ABCD"
5582
5583   case $build_os in
5584   msdosdjgpp*)
5585     # On DJGPP, this test can blow up pretty badly due to problems in libc
5586     # (any single argument exceeding 2000 bytes causes a buffer overrun
5587     # during glob expansion).  Even if it were fixed, the result of this
5588     # check would be larger than it should be.
5589     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5590     ;;
5591
5592   gnu*)
5593     # Under GNU Hurd, this test is not required because there is
5594     # no limit to the length of command line arguments.
5595     # Libtool will interpret -1 as no limit whatsoever
5596     lt_cv_sys_max_cmd_len=-1;
5597     ;;
5598
5599   cygwin* | mingw*)
5600     # On Win9x/ME, this test blows up -- it succeeds, but takes
5601     # about 5 minutes as the teststring grows exponentially.
5602     # Worse, since 9x/ME are not pre-emptively multitasking,
5603     # you end up with a "frozen" computer, even though with patience
5604     # the test eventually succeeds (with a max line length of 256k).
5605     # Instead, let's just punt: use the minimum linelength reported by
5606     # all of the supported platforms: 8192 (on NT/2K/XP).
5607     lt_cv_sys_max_cmd_len=8192;
5608     ;;
5609
5610   amigaos*)
5611     # On AmigaOS with pdksh, this test takes hours, literally.
5612     # So we just punt and use a minimum line length of 8192.
5613     lt_cv_sys_max_cmd_len=8192;
5614     ;;
5615
5616   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5617     # This has been around since 386BSD, at least.  Likely further.
5618     if test -x /sbin/sysctl; then
5619       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5620     elif test -x /usr/sbin/sysctl; then
5621       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5622     else
5623       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5624     fi
5625     # And add a safety zone
5626     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5627     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5628     ;;
5629   osf*)
5630     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5631     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5632     # nice to cause kernel panics so lets avoid the loop below.
5633     # First set a reasonable default.
5634     lt_cv_sys_max_cmd_len=16384
5635     #
5636     if test -x /sbin/sysconfig; then
5637       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5638         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5639       esac
5640     fi
5641     ;;
5642   *)
5643     # If test is not a shell built-in, we'll probably end up computing a
5644     # maximum length that is only half of the actual maximum length, but
5645     # we can't tell.
5646     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5647     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5648                = "XX$teststring") >/dev/null 2>&1 &&
5649             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5650             lt_cv_sys_max_cmd_len=$new_result &&
5651             test $i != 17 # 1/2 MB should be enough
5652     do
5653       i=`expr $i + 1`
5654       teststring=$teststring$teststring
5655     done
5656     teststring=
5657     # Add a significant safety factor because C++ compilers can tack on massive
5658     # amounts of additional arguments before passing them to the linker.
5659     # It appears as though 1/2 is a usable value.
5660     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5661     ;;
5662   esac
5663
5664 fi
5665
5666 if test -n $lt_cv_sys_max_cmd_len ; then
5667   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5668 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5669 else
5670   echo "$as_me:$LINENO: result: none" >&5
5671 echo "${ECHO_T}none" >&6
5672 fi
5673
5674
5675
5676
5677 # Check for command to grab the raw symbol name followed by C symbol from nm.
5678 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5679 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5680 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683
5684 # These are sane defaults that work on at least a few old systems.
5685 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5686
5687 # Character class describing NM global symbol codes.
5688 symcode='[BCDEGRST]'
5689
5690 # Regexp to match symbols that can be accessed directly from C.
5691 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5692
5693 # Transform an extracted symbol line into a proper C declaration
5694 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5695
5696 # Transform an extracted symbol line into symbol name and symbol address
5697 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'"
5698
5699 # Define system-specific variables.
5700 case $host_os in
5701 aix*)
5702   symcode='[BCDT]'
5703   ;;
5704 cygwin* | mingw* | pw32*)
5705   symcode='[ABCDGISTW]'
5706   ;;
5707 hpux*) # Its linker distinguishes data from code symbols
5708   if test "$host_cpu" = ia64; then
5709     symcode='[ABCDEGRST]'
5710   fi
5711   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5712   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'"
5713   ;;
5714 linux*)
5715   if test "$host_cpu" = ia64; then
5716     symcode='[ABCDGIRSTW]'
5717     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5718     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'"
5719   fi
5720   ;;
5721 irix* | nonstopux*)
5722   symcode='[BCDEGRST]'
5723   ;;
5724 osf*)
5725   symcode='[BCDEGQRST]'
5726   ;;
5727 solaris* | sysv5*)
5728   symcode='[BDRT]'
5729   ;;
5730 sysv4)
5731   symcode='[DFNSTU]'
5732   ;;
5733 esac
5734
5735 # Handle CRLF in mingw tool chain
5736 opt_cr=
5737 case $build_os in
5738 mingw*)
5739   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5740   ;;
5741 esac
5742
5743 # If we're using GNU nm, then use its standard symbol codes.
5744 case `$NM -V 2>&1` in
5745 *GNU* | *'with BFD'*)
5746   symcode='[ABCDGIRSTW]' ;;
5747 esac
5748
5749 # Try without a prefix undercore, then with it.
5750 for ac_symprfx in "" "_"; do
5751
5752   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5753   symxfrm="\\1 $ac_symprfx\\2 \\2"
5754
5755   # Write the raw and C identifiers.
5756   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5757
5758   # Check to see that the pipe works correctly.
5759   pipe_works=no
5760
5761   rm -f conftest*
5762   cat > conftest.$ac_ext <<EOF
5763 #ifdef __cplusplus
5764 extern "C" {
5765 #endif
5766 char nm_test_var;
5767 void nm_test_func(){}
5768 #ifdef __cplusplus
5769 }
5770 #endif
5771 int main(){nm_test_var='a';nm_test_func();return(0);}
5772 EOF
5773
5774   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775   (eval $ac_compile) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; then
5779     # Now try to grab the symbols.
5780     nlist=conftest.nm
5781     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5782   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } && test -s "$nlist"; then
5786       # Try sorting and uniquifying the output.
5787       if sort "$nlist" | uniq > "$nlist"T; then
5788         mv -f "$nlist"T "$nlist"
5789       else
5790         rm -f "$nlist"T
5791       fi
5792
5793       # Make sure that we snagged all the symbols we need.
5794       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5795         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5796           cat <<EOF > conftest.$ac_ext
5797 #ifdef __cplusplus
5798 extern "C" {
5799 #endif
5800
5801 EOF
5802           # Now generate the symbol file.
5803           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5804
5805           cat <<EOF >> conftest.$ac_ext
5806 #if defined (__STDC__) && __STDC__
5807 # define lt_ptr_t void *
5808 #else
5809 # define lt_ptr_t char *
5810 # define const
5811 #endif
5812
5813 /* The mapping between symbol names and symbols. */
5814 const struct {
5815   const char *name;
5816   lt_ptr_t address;
5817 }
5818 lt_preloaded_symbols[] =
5819 {
5820 EOF
5821           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5822           cat <<\EOF >> conftest.$ac_ext
5823   {0, (lt_ptr_t) 0}
5824 };
5825
5826 #ifdef __cplusplus
5827 }
5828 #endif
5829 EOF
5830           # Now try linking the two files.
5831           mv conftest.$ac_objext conftstm.$ac_objext
5832           lt_save_LIBS="$LIBS"
5833           lt_save_CFLAGS="$CFLAGS"
5834           LIBS="conftstm.$ac_objext"
5835           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5836           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837   (eval $ac_link) 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5841             pipe_works=yes
5842           fi
5843           LIBS="$lt_save_LIBS"
5844           CFLAGS="$lt_save_CFLAGS"
5845         else
5846           echo "cannot find nm_test_func in $nlist" >&5
5847         fi
5848       else
5849         echo "cannot find nm_test_var in $nlist" >&5
5850       fi
5851     else
5852       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5853     fi
5854   else
5855     echo "$progname: failed program was:" >&5
5856     cat conftest.$ac_ext >&5
5857   fi
5858   rm -f conftest* conftst*
5859
5860   # Do not use the global_symbol_pipe unless it works.
5861   if test "$pipe_works" = yes; then
5862     break
5863   else
5864     lt_cv_sys_global_symbol_pipe=
5865   fi
5866 done
5867
5868 fi
5869
5870 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5871   lt_cv_sys_global_symbol_to_cdecl=
5872 fi
5873 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5874   echo "$as_me:$LINENO: result: failed" >&5
5875 echo "${ECHO_T}failed" >&6
5876 else
5877   echo "$as_me:$LINENO: result: ok" >&5
5878 echo "${ECHO_T}ok" >&6
5879 fi
5880
5881 echo "$as_me:$LINENO: checking for objdir" >&5
5882 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5883 if test "${lt_cv_objdir+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   rm -f .libs 2>/dev/null
5887 mkdir .libs 2>/dev/null
5888 if test -d .libs; then
5889   lt_cv_objdir=.libs
5890 else
5891   # MS-DOS does not allow filenames that begin with a dot.
5892   lt_cv_objdir=_libs
5893 fi
5894 rmdir .libs 2>/dev/null
5895 fi
5896 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5897 echo "${ECHO_T}$lt_cv_objdir" >&6
5898 objdir=$lt_cv_objdir
5899
5900
5901
5902
5903
5904 case $host_os in
5905 aix3*)
5906   # AIX sometimes has problems with the GCC collect2 program.  For some
5907   # reason, if we set the COLLECT_NAMES environment variable, the problems
5908   # vanish in a puff of smoke.
5909   if test "X${COLLECT_NAMES+set}" != Xset; then
5910     COLLECT_NAMES=
5911     export COLLECT_NAMES
5912   fi
5913   ;;
5914 esac
5915
5916 # Sed substitution that helps us do robust quoting.  It backslashifies
5917 # metacharacters that are still active within double-quoted strings.
5918 Xsed='sed -e 1s/^X//'
5919 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5920
5921 # Same as above, but do not quote variable references.
5922 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5923
5924 # Sed substitution to delay expansion of an escaped shell variable in a
5925 # double_quote_subst'ed string.
5926 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5927
5928 # Sed substitution to avoid accidental globbing in evaled expressions
5929 no_glob_subst='s/\*/\\\*/g'
5930
5931 # Constants:
5932 rm="rm -f"
5933
5934 # Global variables:
5935 default_ofile=libtool
5936 can_build_shared=yes
5937
5938 # All known linkers require a `.a' archive for static linking (except M$VC,
5939 # which needs '.lib').
5940 libext=a
5941 ltmain="$ac_aux_dir/ltmain.sh"
5942 ofile="$default_ofile"
5943 with_gnu_ld="$lt_cv_prog_gnu_ld"
5944
5945 if test -n "$ac_tool_prefix"; then
5946   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5947 set dummy ${ac_tool_prefix}ar; ac_word=$2
5948 echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950 if test "${ac_cv_prog_AR+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   if test -n "$AR"; then
5954   ac_cv_prog_AR="$AR" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959   IFS=$as_save_IFS
5960   test -z "$as_dir" && as_dir=.
5961   for ac_exec_ext in '' $ac_executable_extensions; do
5962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963     ac_cv_prog_AR="${ac_tool_prefix}ar"
5964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965     break 2
5966   fi
5967 done
5968 done
5969
5970 fi
5971 fi
5972 AR=$ac_cv_prog_AR
5973 if test -n "$AR"; then
5974   echo "$as_me:$LINENO: result: $AR" >&5
5975 echo "${ECHO_T}$AR" >&6
5976 else
5977   echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6
5979 fi
5980
5981 fi
5982 if test -z "$ac_cv_prog_AR"; then
5983   ac_ct_AR=$AR
5984   # Extract the first word of "ar", so it can be a program name with args.
5985 set dummy ar; ac_word=$2
5986 echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5988 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   if test -n "$ac_ct_AR"; then
5992   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999   for ac_exec_ext in '' $ac_executable_extensions; do
6000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6001     ac_cv_prog_ac_ct_AR="ar"
6002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006 done
6007
6008   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6009 fi
6010 fi
6011 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6012 if test -n "$ac_ct_AR"; then
6013   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6014 echo "${ECHO_T}$ac_ct_AR" >&6
6015 else
6016   echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6
6018 fi
6019
6020   AR=$ac_ct_AR
6021 else
6022   AR="$ac_cv_prog_AR"
6023 fi
6024
6025 if test -n "$ac_tool_prefix"; then
6026   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6027 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6028 echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030 if test "${ac_cv_prog_RANLIB+set}" = set; then
6031   echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033   if test -n "$RANLIB"; then
6034   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039   IFS=$as_save_IFS
6040   test -z "$as_dir" && as_dir=.
6041   for ac_exec_ext in '' $ac_executable_extensions; do
6042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045     break 2
6046   fi
6047 done
6048 done
6049
6050 fi
6051 fi
6052 RANLIB=$ac_cv_prog_RANLIB
6053 if test -n "$RANLIB"; then
6054   echo "$as_me:$LINENO: result: $RANLIB" >&5
6055 echo "${ECHO_T}$RANLIB" >&6
6056 else
6057   echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6
6059 fi
6060
6061 fi
6062 if test -z "$ac_cv_prog_RANLIB"; then
6063   ac_ct_RANLIB=$RANLIB
6064   # Extract the first word of "ranlib", so it can be a program name with args.
6065 set dummy ranlib; ac_word=$2
6066 echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   if test -n "$ac_ct_RANLIB"; then
6072   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079   for ac_exec_ext in '' $ac_executable_extensions; do
6080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081     ac_cv_prog_ac_ct_RANLIB="ranlib"
6082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086 done
6087
6088   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6089 fi
6090 fi
6091 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6092 if test -n "$ac_ct_RANLIB"; then
6093   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6094 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6095 else
6096   echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6098 fi
6099
6100   RANLIB=$ac_ct_RANLIB
6101 else
6102   RANLIB="$ac_cv_prog_RANLIB"
6103 fi
6104
6105 if test -n "$ac_tool_prefix"; then
6106   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6107 set dummy ${ac_tool_prefix}strip; ac_word=$2
6108 echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6110 if test "${ac_cv_prog_STRIP+set}" = set; then
6111   echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113   if test -n "$STRIP"; then
6114   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121   for ac_exec_ext in '' $ac_executable_extensions; do
6122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128 done
6129
6130 fi
6131 fi
6132 STRIP=$ac_cv_prog_STRIP
6133 if test -n "$STRIP"; then
6134   echo "$as_me:$LINENO: result: $STRIP" >&5
6135 echo "${ECHO_T}$STRIP" >&6
6136 else
6137   echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6
6139 fi
6140
6141 fi
6142 if test -z "$ac_cv_prog_STRIP"; then
6143   ac_ct_STRIP=$STRIP
6144   # Extract the first word of "strip", so it can be a program name with args.
6145 set dummy strip; ac_word=$2
6146 echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   if test -n "$ac_ct_STRIP"; then
6152   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157   IFS=$as_save_IFS
6158   test -z "$as_dir" && as_dir=.
6159   for ac_exec_ext in '' $ac_executable_extensions; do
6160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161     ac_cv_prog_ac_ct_STRIP="strip"
6162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163     break 2
6164   fi
6165 done
6166 done
6167
6168   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6169 fi
6170 fi
6171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6172 if test -n "$ac_ct_STRIP"; then
6173   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6174 echo "${ECHO_T}$ac_ct_STRIP" >&6
6175 else
6176   echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6
6178 fi
6179
6180   STRIP=$ac_ct_STRIP
6181 else
6182   STRIP="$ac_cv_prog_STRIP"
6183 fi
6184
6185
6186 old_CC="$CC"
6187 old_CFLAGS="$CFLAGS"
6188
6189 # Set sane defaults for various variables
6190 test -z "$AR" && AR=ar
6191 test -z "$AR_FLAGS" && AR_FLAGS=cru
6192 test -z "$AS" && AS=as
6193 test -z "$CC" && CC=cc
6194 test -z "$LTCC" && LTCC=$CC
6195 test -z "$DLLTOOL" && DLLTOOL=dlltool
6196 test -z "$LD" && LD=ld
6197 test -z "$LN_S" && LN_S="ln -s"
6198 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6199 test -z "$NM" && NM=nm
6200 test -z "$SED" && SED=sed
6201 test -z "$OBJDUMP" && OBJDUMP=objdump
6202 test -z "$RANLIB" && RANLIB=:
6203 test -z "$STRIP" && STRIP=:
6204 test -z "$ac_objext" && ac_objext=o
6205
6206 # Determine commands to create old-style static archives.
6207 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6208 old_postinstall_cmds='chmod 644 $oldlib'
6209 old_postuninstall_cmds=
6210
6211 if test -n "$RANLIB"; then
6212   case $host_os in
6213   openbsd*)
6214     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6215     ;;
6216   *)
6217     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6218     ;;
6219   esac
6220   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6221 fi
6222
6223 for cc_temp in $compiler""; do
6224   case $cc_temp in
6225     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6226     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6227     \-*) ;;
6228     *) break;;
6229   esac
6230 done
6231 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6232
6233
6234 # Only perform the check for file, if the check method requires it
6235 case $deplibs_check_method in
6236 file_magic*)
6237   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6238     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6239 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6240 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6241   echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243   case $MAGIC_CMD in
6244 [\\/*] |  ?:[\\/]*)
6245   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6246   ;;
6247 *)
6248   lt_save_MAGIC_CMD="$MAGIC_CMD"
6249   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6250   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6251   for ac_dir in $ac_dummy; do
6252     IFS="$lt_save_ifs"
6253     test -z "$ac_dir" && ac_dir=.
6254     if test -f $ac_dir/${ac_tool_prefix}file; then
6255       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6256       if test -n "$file_magic_test_file"; then
6257         case $deplibs_check_method in
6258         "file_magic "*)
6259           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6260           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6261           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6262             $EGREP "$file_magic_regex" > /dev/null; then
6263             :
6264           else
6265             cat <<EOF 1>&2
6266
6267 *** Warning: the command libtool uses to detect shared libraries,
6268 *** $file_magic_cmd, produces output that libtool cannot recognize.
6269 *** The result is that libtool may fail to recognize shared libraries
6270 *** as such.  This will affect the creation of libtool libraries that
6271 *** depend on shared libraries, but programs linked with such libtool
6272 *** libraries will work regardless of this problem.  Nevertheless, you
6273 *** may want to report the problem to your system manager and/or to
6274 *** bug-libtool@gnu.org
6275
6276 EOF
6277           fi ;;
6278         esac
6279       fi
6280       break
6281     fi
6282   done
6283   IFS="$lt_save_ifs"
6284   MAGIC_CMD="$lt_save_MAGIC_CMD"
6285   ;;
6286 esac
6287 fi
6288
6289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6290 if test -n "$MAGIC_CMD"; then
6291   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6292 echo "${ECHO_T}$MAGIC_CMD" >&6
6293 else
6294   echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6
6296 fi
6297
6298 if test -z "$lt_cv_path_MAGIC_CMD"; then
6299   if test -n "$ac_tool_prefix"; then
6300     echo "$as_me:$LINENO: checking for file" >&5
6301 echo $ECHO_N "checking for file... $ECHO_C" >&6
6302 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   case $MAGIC_CMD in
6306 [\\/*] |  ?:[\\/]*)
6307   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6308   ;;
6309 *)
6310   lt_save_MAGIC_CMD="$MAGIC_CMD"
6311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6312   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6313   for ac_dir in $ac_dummy; do
6314     IFS="$lt_save_ifs"
6315     test -z "$ac_dir" && ac_dir=.
6316     if test -f $ac_dir/file; then
6317       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6318       if test -n "$file_magic_test_file"; then
6319         case $deplibs_check_method in
6320         "file_magic "*)
6321           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6322           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6323           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6324             $EGREP "$file_magic_regex" > /dev/null; then
6325             :
6326           else
6327             cat <<EOF 1>&2
6328
6329 *** Warning: the command libtool uses to detect shared libraries,
6330 *** $file_magic_cmd, produces output that libtool cannot recognize.
6331 *** The result is that libtool may fail to recognize shared libraries
6332 *** as such.  This will affect the creation of libtool libraries that
6333 *** depend on shared libraries, but programs linked with such libtool
6334 *** libraries will work regardless of this problem.  Nevertheless, you
6335 *** may want to report the problem to your system manager and/or to
6336 *** bug-libtool@gnu.org
6337
6338 EOF
6339           fi ;;
6340         esac
6341       fi
6342       break
6343     fi
6344   done
6345   IFS="$lt_save_ifs"
6346   MAGIC_CMD="$lt_save_MAGIC_CMD"
6347   ;;
6348 esac
6349 fi
6350
6351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6352 if test -n "$MAGIC_CMD"; then
6353   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6354 echo "${ECHO_T}$MAGIC_CMD" >&6
6355 else
6356   echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6358 fi
6359
6360   else
6361     MAGIC_CMD=:
6362   fi
6363 fi
6364
6365   fi
6366   ;;
6367 esac
6368
6369 enable_dlopen=no
6370 enable_win32_dll=no
6371
6372 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6373 if test "${enable_libtool_lock+set}" = set; then
6374   enableval="$enable_libtool_lock"
6375
6376 fi;
6377 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6378
6379
6380 # Check whether --with-pic or --without-pic was given.
6381 if test "${with_pic+set}" = set; then
6382   withval="$with_pic"
6383   pic_mode="$withval"
6384 else
6385   pic_mode=default
6386 fi;
6387 test -z "$pic_mode" && pic_mode=default
6388
6389 # Use C for the default configuration in the libtool script
6390 tagname=
6391 lt_save_CC="$CC"
6392 ac_ext=c
6393 ac_cpp='$CPP $CPPFLAGS'
6394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6397
6398
6399 # Source file extension for C test sources.
6400 ac_ext=c
6401
6402 # Object file extension for compiled C test sources.
6403 objext=o
6404 objext=$objext
6405
6406 # Code to be used in simple compile tests
6407 lt_simple_compile_test_code="int some_variable = 0;\n"
6408
6409 # Code to be used in simple link tests
6410 lt_simple_link_test_code='int main(){return(0);}\n'
6411
6412
6413 # If no C compiler was specified, use CC.
6414 LTCC=${LTCC-"$CC"}
6415
6416 # Allow CC to be a program name with arguments.
6417 compiler=$CC
6418
6419
6420 # save warnings/boilerplate of simple test code
6421 ac_outfile=conftest.$ac_objext
6422 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6423 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6424 _lt_compiler_boilerplate=`cat conftest.err`
6425 $rm conftest*
6426
6427 ac_outfile=conftest.$ac_objext
6428 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6429 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6430 _lt_linker_boilerplate=`cat conftest.err`
6431 $rm conftest*
6432
6433
6434 #
6435 # Check for any special shared library compilation flags.
6436 #
6437 lt_prog_cc_shlib=
6438 if test "$GCC" = no; then
6439   case $host_os in
6440   sco3.2v5*)
6441     lt_prog_cc_shlib='-belf'
6442     ;;
6443   esac
6444 fi
6445 if test -n "$lt_prog_cc_shlib"; then
6446   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6447 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6448   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6449   else
6450     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6451 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6452     lt_cv_prog_cc_can_build_shared=no
6453   fi
6454 fi
6455
6456
6457 #
6458 # Check to make sure the static flag actually works.
6459 #
6460 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6461 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6462 if test "${lt_prog_compiler_static_works+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   lt_prog_compiler_static_works=no
6466    save_LDFLAGS="$LDFLAGS"
6467    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6468    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6469    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6470      # The compiler can only warn and ignore the option if not recognized
6471      # So say no if there are warnings
6472      if test -s conftest.err; then
6473        # Append any errors to the config.log.
6474        cat conftest.err 1>&5
6475        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6476        $SED '/^$/d' conftest.err >conftest.er2
6477        if diff conftest.exp conftest.er2 >/dev/null; then
6478          lt_prog_compiler_static_works=yes
6479        fi
6480      else
6481        lt_prog_compiler_static_works=yes
6482      fi
6483    fi
6484    $rm conftest*
6485    LDFLAGS="$save_LDFLAGS"
6486
6487 fi
6488 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6489 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6490
6491 if test x"$lt_prog_compiler_static_works" = xyes; then
6492     :
6493 else
6494     lt_prog_compiler_static=
6495 fi
6496
6497
6498
6499
6500 lt_prog_compiler_no_builtin_flag=
6501
6502 if test "$GCC" = yes; then
6503   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6504
6505
6506 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6507 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6508 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6509   echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511   lt_cv_prog_compiler_rtti_exceptions=no
6512   ac_outfile=conftest.$ac_objext
6513    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6514    lt_compiler_flag="-fno-rtti -fno-exceptions"
6515    # Insert the option either (1) after the last *FLAGS variable, or
6516    # (2) before a word containing "conftest.", or (3) at the end.
6517    # Note that $ac_compile itself does not contain backslashes and begins
6518    # with a dollar sign (not a hyphen), so the echo should work correctly.
6519    # The option is referenced via a variable to avoid confusing sed.
6520    lt_compile=`echo "$ac_compile" | $SED \
6521    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6522    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6523    -e 's:$: $lt_compiler_flag:'`
6524    (eval echo "\"\$as_me:6524: $lt_compile\"" >&5)
6525    (eval "$lt_compile" 2>conftest.err)
6526    ac_status=$?
6527    cat conftest.err >&5
6528    echo "$as_me:6528: \$? = $ac_status" >&5
6529    if (exit $ac_status) && test -s "$ac_outfile"; then
6530      # The compiler can only warn and ignore the option if not recognized
6531      # So say no if there are warnings other than the usual output.
6532      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6533      $SED '/^$/d' conftest.err >conftest.er2
6534      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6535        lt_cv_prog_compiler_rtti_exceptions=yes
6536      fi
6537    fi
6538    $rm conftest*
6539
6540 fi
6541 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6542 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6543
6544 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6545     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6546 else
6547     :
6548 fi
6549
6550 fi
6551
6552 lt_prog_compiler_wl=
6553 lt_prog_compiler_pic=
6554 lt_prog_compiler_static=
6555
6556 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6557 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6558
6559   if test "$GCC" = yes; then
6560     lt_prog_compiler_wl='-Wl,'
6561     lt_prog_compiler_static='-static'
6562
6563     case $host_os in
6564       aix*)
6565       # All AIX code is PIC.
6566       if test "$host_cpu" = ia64; then
6567         # AIX 5 now supports IA64 processor
6568         lt_prog_compiler_static='-Bstatic'
6569       fi
6570       ;;
6571
6572     amigaos*)
6573       # FIXME: we need at least 68020 code to build shared libraries, but
6574       # adding the `-m68020' flag to GCC prevents building anything better,
6575       # like `-m68040'.
6576       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6577       ;;
6578
6579     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6580       # PIC is the default for these OSes.
6581       ;;
6582
6583     mingw* | pw32* | os2*)
6584       # This hack is so that the source file can tell whether it is being
6585       # built for inclusion in a dll (and should export symbols for example).
6586       lt_prog_compiler_pic='-DDLL_EXPORT'
6587       ;;
6588
6589     darwin* | rhapsody*)
6590       # PIC is the default on this platform
6591       # Common symbols not allowed in MH_DYLIB files
6592       lt_prog_compiler_pic='-fno-common'
6593       ;;
6594
6595     msdosdjgpp*)
6596       # Just because we use GCC doesn't mean we suddenly get shared libraries
6597       # on systems that don't support them.
6598       lt_prog_compiler_can_build_shared=no
6599       enable_shared=no
6600       ;;
6601
6602     sysv4*MP*)
6603       if test -d /usr/nec; then
6604         lt_prog_compiler_pic=-Kconform_pic
6605       fi
6606       ;;
6607
6608     hpux*)
6609       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6610       # not for PA HP-UX.
6611       case "$host_cpu" in
6612       hppa*64*|ia64*)
6613         # +Z the default
6614         ;;
6615       *)
6616         lt_prog_compiler_pic='-fPIC'
6617         ;;
6618       esac
6619       ;;
6620
6621     *)
6622       lt_prog_compiler_pic='-fPIC'
6623       ;;
6624     esac
6625   else
6626     # PORTME Check for flag to pass linker flags through the system compiler.
6627     case $host_os in
6628     aix*)
6629       lt_prog_compiler_wl='-Wl,'
6630       if test "$host_cpu" = ia64; then
6631         # AIX 5 now supports IA64 processor
6632         lt_prog_compiler_static='-Bstatic'
6633       else
6634         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6635       fi
6636       ;;
6637       darwin*)
6638         # PIC is the default on this platform
6639         # Common symbols not allowed in MH_DYLIB files
6640        case $cc_basename in
6641          xlc*)
6642          lt_prog_compiler_pic='-qnocommon'
6643          lt_prog_compiler_wl='-Wl,'
6644          ;;
6645        esac
6646        ;;
6647
6648     mingw* | pw32* | os2*)
6649       # This hack is so that the source file can tell whether it is being
6650       # built for inclusion in a dll (and should export symbols for example).
6651       lt_prog_compiler_pic='-DDLL_EXPORT'
6652       ;;
6653
6654     hpux9* | hpux10* | hpux11*)
6655       lt_prog_compiler_wl='-Wl,'
6656       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6657       # not for PA HP-UX.
6658       case "$host_cpu" in
6659       hppa*64*|ia64*)
6660         # +Z the default
6661         ;;
6662       *)
6663         lt_prog_compiler_pic='+Z'
6664         ;;
6665       esac
6666       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6667       lt_prog_compiler_static='${wl}-a ${wl}archive'
6668       ;;
6669
6670     irix5* | irix6* | nonstopux*)
6671       lt_prog_compiler_wl='-Wl,'
6672       # PIC (with -KPIC) is the default.
6673       lt_prog_compiler_static='-non_shared'
6674       ;;
6675
6676     newsos6)
6677       lt_prog_compiler_pic='-KPIC'
6678       lt_prog_compiler_static='-Bstatic'
6679       ;;
6680
6681     linux*)
6682       case $cc_basename in
6683       icc* | ecc*)
6684         lt_prog_compiler_wl='-Wl,'
6685         lt_prog_compiler_pic='-KPIC'
6686         lt_prog_compiler_static='-static'
6687         ;;
6688       pgcc* | pgf77* | pgf90*)
6689         # Portland Group compilers (*not* the Pentium gcc compiler,
6690         # which looks to be a dead project)
6691         lt_prog_compiler_wl='-Wl,'
6692         lt_prog_compiler_pic='-fpic'
6693         lt_prog_compiler_static='-static'
6694         ;;
6695       ccc*)
6696         lt_prog_compiler_wl='-Wl,'
6697         # All Alpha code is PIC.
6698         lt_prog_compiler_static='-non_shared'
6699         ;;
6700       esac
6701       ;;
6702
6703     osf3* | osf4* | osf5*)
6704       lt_prog_compiler_wl='-Wl,'
6705       # All OSF/1 code is PIC.
6706       lt_prog_compiler_static='-non_shared'
6707       ;;
6708
6709     sco3.2v5*)
6710       lt_prog_compiler_pic='-Kpic'
6711       lt_prog_compiler_static='-dn'
6712       ;;
6713
6714     solaris*)
6715       lt_prog_compiler_pic='-KPIC'
6716       lt_prog_compiler_static='-Bstatic'
6717       case $cc_basename in
6718       f77* | f90* | f95*)
6719         lt_prog_compiler_wl='-Qoption ld ';;
6720       *)
6721         lt_prog_compiler_wl='-Wl,';;
6722       esac
6723       ;;
6724
6725     sunos4*)
6726       lt_prog_compiler_wl='-Qoption ld '
6727       lt_prog_compiler_pic='-PIC'
6728       lt_prog_compiler_static='-Bstatic'
6729       ;;
6730
6731     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6732       lt_prog_compiler_wl='-Wl,'
6733       lt_prog_compiler_pic='-KPIC'
6734       lt_prog_compiler_static='-Bstatic'
6735       ;;
6736
6737     sysv4*MP*)
6738       if test -d /usr/nec ;then
6739         lt_prog_compiler_pic='-Kconform_pic'
6740         lt_prog_compiler_static='-Bstatic'
6741       fi
6742       ;;
6743
6744     unicos*)
6745       lt_prog_compiler_wl='-Wl,'
6746       lt_prog_compiler_can_build_shared=no
6747       ;;
6748
6749     uts4*)
6750       lt_prog_compiler_pic='-pic'
6751       lt_prog_compiler_static='-Bstatic'
6752       ;;
6753
6754     *)
6755       lt_prog_compiler_can_build_shared=no
6756       ;;
6757     esac
6758   fi
6759
6760 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6761 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6762
6763 #
6764 # Check to make sure the PIC flag actually works.
6765 #
6766 if test -n "$lt_prog_compiler_pic"; then
6767
6768 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6769 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6770 if test "${lt_prog_compiler_pic_works+set}" = set; then
6771   echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773   lt_prog_compiler_pic_works=no
6774   ac_outfile=conftest.$ac_objext
6775    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6776    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6777    # Insert the option either (1) after the last *FLAGS variable, or
6778    # (2) before a word containing "conftest.", or (3) at the end.
6779    # Note that $ac_compile itself does not contain backslashes and begins
6780    # with a dollar sign (not a hyphen), so the echo should work correctly.
6781    # The option is referenced via a variable to avoid confusing sed.
6782    lt_compile=`echo "$ac_compile" | $SED \
6783    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6784    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6785    -e 's:$: $lt_compiler_flag:'`
6786    (eval echo "\"\$as_me:6786: $lt_compile\"" >&5)
6787    (eval "$lt_compile" 2>conftest.err)
6788    ac_status=$?
6789    cat conftest.err >&5
6790    echo "$as_me:6790: \$? = $ac_status" >&5
6791    if (exit $ac_status) && test -s "$ac_outfile"; then
6792      # The compiler can only warn and ignore the option if not recognized
6793      # So say no if there are warnings other than the usual output.
6794      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6795      $SED '/^$/d' conftest.err >conftest.er2
6796      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6797        lt_prog_compiler_pic_works=yes
6798      fi
6799    fi
6800    $rm conftest*
6801
6802 fi
6803 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6804 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6805
6806 if test x"$lt_prog_compiler_pic_works" = xyes; then
6807     case $lt_prog_compiler_pic in
6808      "" | " "*) ;;
6809      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6810      esac
6811 else
6812     lt_prog_compiler_pic=
6813      lt_prog_compiler_can_build_shared=no
6814 fi
6815
6816 fi
6817 case "$host_os" in
6818   # For platforms which do not support PIC, -DPIC is meaningless:
6819   *djgpp*)
6820     lt_prog_compiler_pic=
6821     ;;
6822   *)
6823     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6824     ;;
6825 esac
6826
6827 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6828 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6829 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   lt_cv_prog_compiler_c_o=no
6833    $rm -r conftest 2>/dev/null
6834    mkdir conftest
6835    cd conftest
6836    mkdir out
6837    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6838
6839    lt_compiler_flag="-o out/conftest2.$ac_objext"
6840    # Insert the option either (1) after the last *FLAGS variable, or
6841    # (2) before a word containing "conftest.", or (3) at the end.
6842    # Note that $ac_compile itself does not contain backslashes and begins
6843    # with a dollar sign (not a hyphen), so the echo should work correctly.
6844    lt_compile=`echo "$ac_compile" | $SED \
6845    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6846    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6847    -e 's:$: $lt_compiler_flag:'`
6848    (eval echo "\"\$as_me:6848: $lt_compile\"" >&5)
6849    (eval "$lt_compile" 2>out/conftest.err)
6850    ac_status=$?
6851    cat out/conftest.err >&5
6852    echo "$as_me:6852: \$? = $ac_status" >&5
6853    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6854    then
6855      # The compiler can only warn and ignore the option if not recognized
6856      # So say no if there are warnings
6857      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6858      $SED '/^$/d' out/conftest.err >out/conftest.er2
6859      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6860        lt_cv_prog_compiler_c_o=yes
6861      fi
6862    fi
6863    chmod u+w .
6864    $rm conftest*
6865    # SGI C++ compiler will create directory out/ii_files/ for
6866    # template instantiation
6867    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6868    $rm out/* && rmdir out
6869    cd ..
6870    rmdir conftest
6871    $rm conftest*
6872
6873 fi
6874 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6875 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6876
6877
6878 hard_links="nottested"
6879 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6880   # do not overwrite the value of need_locks provided by the user
6881   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6882 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6883   hard_links=yes
6884   $rm conftest*
6885   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6886   touch conftest.a
6887   ln conftest.a conftest.b 2>&5 || hard_links=no
6888   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6889   echo "$as_me:$LINENO: result: $hard_links" >&5
6890 echo "${ECHO_T}$hard_links" >&6
6891   if test "$hard_links" = no; then
6892     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6893 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6894     need_locks=warn
6895   fi
6896 else
6897   need_locks=no
6898 fi
6899
6900 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6901 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6902
6903   runpath_var=
6904   allow_undefined_flag=
6905   enable_shared_with_static_runtimes=no
6906   archive_cmds=
6907   archive_expsym_cmds=
6908   old_archive_From_new_cmds=
6909   old_archive_from_expsyms_cmds=
6910   export_dynamic_flag_spec=
6911   whole_archive_flag_spec=
6912   thread_safe_flag_spec=
6913   hardcode_libdir_flag_spec=
6914   hardcode_libdir_flag_spec_ld=
6915   hardcode_libdir_separator=
6916   hardcode_direct=no
6917   hardcode_minus_L=no
6918   hardcode_shlibpath_var=unsupported
6919   link_all_deplibs=unknown
6920   hardcode_automatic=no
6921   module_cmds=
6922   module_expsym_cmds=
6923   always_export_symbols=no
6924   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6925   # include_expsyms should be a list of space-separated symbols to be *always*
6926   # included in the symbol list
6927   include_expsyms=
6928   # exclude_expsyms can be an extended regexp of symbols to exclude
6929   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6930   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6931   # as well as any symbol that contains `d'.
6932   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6933   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6934   # platforms (ab)use it in PIC code, but their linkers get confused if
6935   # the symbol is explicitly referenced.  Since portable code cannot
6936   # rely on this symbol name, it's probably fine to never include it in
6937   # preloaded symbol tables.
6938   extract_expsyms_cmds=
6939   # Just being paranoid about ensuring that cc_basename is set.
6940   for cc_temp in $compiler""; do
6941   case $cc_temp in
6942     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6943     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6944     \-*) ;;
6945     *) break;;
6946   esac
6947 done
6948 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6949
6950   case $host_os in
6951   cygwin* | mingw* | pw32*)
6952     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6953     # When not using gcc, we currently assume that we are using
6954     # Microsoft Visual C++.
6955     if test "$GCC" != yes; then
6956       with_gnu_ld=no
6957     fi
6958     ;;
6959   openbsd*)
6960     with_gnu_ld=no
6961     ;;
6962   esac
6963
6964   ld_shlibs=yes
6965   if test "$with_gnu_ld" = yes; then
6966     # If archive_cmds runs LD, not CC, wlarc should be empty
6967     wlarc='${wl}'
6968
6969     # Set some defaults for GNU ld with shared library support. These
6970     # are reset later if shared libraries are not supported. Putting them
6971     # here allows them to be overridden if necessary.
6972     runpath_var=LD_RUN_PATH
6973     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6974     export_dynamic_flag_spec='${wl}--export-dynamic'
6975     # ancient GNU ld didn't support --whole-archive et. al.
6976     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6977         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6978       else
6979         whole_archive_flag_spec=
6980     fi
6981     supports_anon_versioning=no
6982     case `$LD -v 2>/dev/null` in
6983       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6984       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6985       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6986       *\ 2.11.*) ;; # other 2.11 versions
6987       *) supports_anon_versioning=yes ;;
6988     esac
6989
6990     # See if GNU ld supports shared libraries.
6991     case $host_os in
6992     aix3* | aix4* | aix5*)
6993       # On AIX/PPC, the GNU linker is very broken
6994       if test "$host_cpu" != ia64; then
6995         ld_shlibs=no
6996         cat <<EOF 1>&2
6997
6998 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6999 *** to be unable to reliably create shared libraries on AIX.
7000 *** Therefore, libtool is disabling shared libraries support.  If you
7001 *** really care for shared libraries, you may want to modify your PATH
7002 *** so that a non-GNU linker is found, and then restart.
7003
7004 EOF
7005       fi
7006       ;;
7007
7008     amigaos*)
7009       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)'
7010       hardcode_libdir_flag_spec='-L$libdir'
7011       hardcode_minus_L=yes
7012
7013       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7014       # that the semantics of dynamic libraries on AmigaOS, at least up
7015       # to version 4, is to share data among multiple programs linked
7016       # with the same dynamic library.  Since this doesn't match the
7017       # behavior of shared libraries on other platforms, we can't use
7018       # them.
7019       ld_shlibs=no
7020       ;;
7021
7022     beos*)
7023       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7024         allow_undefined_flag=unsupported
7025         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7026         # support --undefined.  This deserves some investigation.  FIXME
7027         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7028       else
7029         ld_shlibs=no
7030       fi
7031       ;;
7032
7033     cygwin* | mingw* | pw32*)
7034       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7035       # as there is no search path for DLLs.
7036       hardcode_libdir_flag_spec='-L$libdir'
7037       allow_undefined_flag=unsupported
7038       always_export_symbols=no
7039       enable_shared_with_static_runtimes=yes
7040       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7041
7042       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7043         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7044         # If the export-symbols file already is a .def file (1st line
7045         # is EXPORTS), use it as is; otherwise, prepend...
7046         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7047           cp $export_symbols $output_objdir/$soname.def;
7048         else
7049           echo EXPORTS > $output_objdir/$soname.def;
7050           cat $export_symbols >> $output_objdir/$soname.def;
7051         fi~
7052         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7053       else
7054         ld_shlibs=no
7055       fi
7056       ;;
7057
7058     linux*)
7059       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7060         tmp_addflag=
7061         case $cc_basename,$host_cpu in
7062         pgcc*)                          # Portland Group C compiler
7063           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'
7064           tmp_addflag=' $pic_flag'
7065           ;;
7066         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
7067           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'
7068           tmp_addflag=' $pic_flag -Mnomain' ;;
7069         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7070           tmp_addflag=' -i_dynamic' ;;
7071         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7072           tmp_addflag=' -i_dynamic -nofor_main' ;;
7073         ifc* | ifort*)                  # Intel Fortran compiler
7074           tmp_addflag=' -nofor_main' ;;
7075         esac
7076         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7077
7078         if test $supports_anon_versioning = yes; then
7079           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7080   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7081   $echo "local: *; };" >> $output_objdir/$libname.ver~
7082           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7083         fi
7084       else
7085         ld_shlibs=no
7086       fi
7087       ;;
7088
7089     netbsd*)
7090       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7091         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7092         wlarc=
7093       else
7094         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7095         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7096       fi
7097       ;;
7098
7099     solaris* | sysv5*)
7100       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7101         ld_shlibs=no
7102         cat <<EOF 1>&2
7103
7104 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7105 *** create shared libraries on Solaris systems.  Therefore, libtool
7106 *** is disabling shared libraries support.  We urge you to upgrade GNU
7107 *** binutils to release 2.9.1 or newer.  Another option is to modify
7108 *** your PATH or compiler configuration so that the native linker is
7109 *** used, and then restart.
7110
7111 EOF
7112       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7113         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7114         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7115       else
7116         ld_shlibs=no
7117       fi
7118       ;;
7119
7120     sunos4*)
7121       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7122       wlarc=
7123       hardcode_direct=yes
7124       hardcode_shlibpath_var=no
7125       ;;
7126
7127     *)
7128       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7129         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7130         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7131       else
7132         ld_shlibs=no
7133       fi
7134       ;;
7135     esac
7136
7137     if test "$ld_shlibs" = no; then
7138       runpath_var=
7139       hardcode_libdir_flag_spec=
7140       export_dynamic_flag_spec=
7141       whole_archive_flag_spec=
7142     fi
7143   else
7144     # PORTME fill in a description of your system's linker (not GNU ld)
7145     case $host_os in
7146     aix3*)
7147       allow_undefined_flag=unsupported
7148       always_export_symbols=yes
7149       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'
7150       # Note: this linker hardcodes the directories in LIBPATH if there
7151       # are no directories specified by -L.
7152       hardcode_minus_L=yes
7153       if test "$GCC" = yes && test -z "$link_static_flag"; then
7154         # Neither direct hardcoding nor static linking is supported with a
7155         # broken collect2.
7156         hardcode_direct=unsupported
7157       fi
7158       ;;
7159
7160     aix4* | aix5*)
7161       if test "$host_cpu" = ia64; then
7162         # On IA64, the linker does run time linking by default, so we don't
7163         # have to do anything special.
7164         aix_use_runtimelinking=no
7165         exp_sym_flag='-Bexport'
7166         no_entry_flag=""
7167       else
7168         # If we're using GNU nm, then we don't want the "-C" option.
7169         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7170         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7171           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'
7172         else
7173           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'
7174         fi
7175         aix_use_runtimelinking=no
7176
7177         # Test if we are trying to use run time linking or normal
7178         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7179         # need to do runtime linking.
7180         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7181           for ld_flag in $LDFLAGS; do
7182           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7183             aix_use_runtimelinking=yes
7184             break
7185           fi
7186           done
7187         esac
7188
7189         exp_sym_flag='-bexport'
7190         no_entry_flag='-bnoentry'
7191       fi
7192
7193       # When large executables or shared objects are built, AIX ld can
7194       # have problems creating the table of contents.  If linking a library
7195       # or program results in "error TOC overflow" add -mminimal-toc to
7196       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7197       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7198
7199       archive_cmds=''
7200       hardcode_direct=yes
7201       hardcode_libdir_separator=':'
7202       link_all_deplibs=yes
7203
7204       if test "$GCC" = yes; then
7205         case $host_os in aix4.[012]|aix4.[012].*)
7206         # We only want to do this on AIX 4.2 and lower, the check
7207         # below for broken collect2 doesn't work under 4.3+
7208           collect2name=`${CC} -print-prog-name=collect2`
7209           if test -f "$collect2name" && \
7210            strings "$collect2name" | grep resolve_lib_name >/dev/null
7211           then
7212           # We have reworked collect2
7213           hardcode_direct=yes
7214           else
7215           # We have old collect2
7216           hardcode_direct=unsupported
7217           # It fails to find uninstalled libraries when the uninstalled
7218           # path is not listed in the libpath.  Setting hardcode_minus_L
7219           # to unsupported forces relinking
7220           hardcode_minus_L=yes
7221           hardcode_libdir_flag_spec='-L$libdir'
7222           hardcode_libdir_separator=
7223           fi
7224         esac
7225         shared_flag='-shared'
7226         if test "$aix_use_runtimelinking" = yes; then
7227           shared_flag="$shared_flag "'${wl}-G'
7228         fi
7229       else
7230         # not using gcc
7231         if test "$host_cpu" = ia64; then
7232         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7233         # chokes on -Wl,-G. The following line is correct:
7234           shared_flag='-G'
7235         else
7236         if test "$aix_use_runtimelinking" = yes; then
7237             shared_flag='${wl}-G'
7238           else
7239             shared_flag='${wl}-bM:SRE'
7240         fi
7241         fi
7242       fi
7243
7244       # It seems that -bexpall does not export symbols beginning with
7245       # underscore (_), so it is better to generate a list of symbols to export.
7246       always_export_symbols=yes
7247       if test "$aix_use_runtimelinking" = yes; then
7248         # Warning - without using the other runtime loading flags (-brtl),
7249         # -berok will link without error, but may produce a broken library.
7250         allow_undefined_flag='-berok'
7251        # Determine the default libpath from the value encoded in an empty executable.
7252        cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h.  */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h.  */
7258
7259 int
7260 main ()
7261 {
7262
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 rm -f conftest.$ac_objext conftest$ac_exeext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7269   (eval $ac_link) 2>conftest.er1
7270   ac_status=$?
7271   grep -v '^ *+' conftest.er1 >conftest.err
7272   rm -f conftest.er1
7273   cat conftest.err >&5
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); } &&
7276          { ac_try='test -z "$ac_c_werror_flag"
7277                          || test ! -s conftest.err'
7278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279   (eval $ac_try) 2>&5
7280   ac_status=$?
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); }; } &&
7283          { ac_try='test -s conftest$ac_exeext'
7284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285   (eval $ac_try) 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); }; }; then
7289
7290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7291 }'`
7292 # Check for a 64-bit object if we didn't find anything.
7293 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; }
7294 }'`; fi
7295 else
7296   echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7298
7299 fi
7300 rm -f conftest.err conftest.$ac_objext \
7301       conftest$ac_exeext conftest.$ac_ext
7302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7303
7304        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7305         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"
7306        else
7307         if test "$host_cpu" = ia64; then
7308           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7309           allow_undefined_flag="-z nodefs"
7310           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"
7311         else
7312          # Determine the default libpath from the value encoded in an empty executable.
7313          cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h.  */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h.  */
7319
7320 int
7321 main ()
7322 {
7323
7324   ;
7325   return 0;
7326 }
7327 _ACEOF
7328 rm -f conftest.$ac_objext conftest$ac_exeext
7329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7330   (eval $ac_link) 2>conftest.er1
7331   ac_status=$?
7332   grep -v '^ *+' conftest.er1 >conftest.err
7333   rm -f conftest.er1
7334   cat conftest.err >&5
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); } &&
7337          { ac_try='test -z "$ac_c_werror_flag"
7338                          || test ! -s conftest.err'
7339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340   (eval $ac_try) 2>&5
7341   ac_status=$?
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); }; } &&
7344          { ac_try='test -s conftest$ac_exeext'
7345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346   (eval $ac_try) 2>&5
7347   ac_status=$?
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); }; }; then
7350
7351 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7352 }'`
7353 # Check for a 64-bit object if we didn't find anything.
7354 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; }
7355 }'`; fi
7356 else
7357   echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360 fi
7361 rm -f conftest.err conftest.$ac_objext \
7362       conftest$ac_exeext conftest.$ac_ext
7363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7364
7365          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7366           # Warning - without using the other run time loading flags,
7367           # -berok will link without error, but may produce a broken library.
7368           no_undefined_flag=' ${wl}-bernotok'
7369           allow_undefined_flag=' ${wl}-berok'
7370           # -bexpall does not export symbols beginning with underscore (_)
7371           always_export_symbols=yes
7372           # Exported symbols can be pulled into shared objects from archives
7373           whole_archive_flag_spec=' '
7374           archive_cmds_need_lc=yes
7375           # This is similar to how AIX traditionally builds it's shared libraries.
7376           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'
7377         fi
7378       fi
7379       ;;
7380
7381     amigaos*)
7382       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)'
7383       hardcode_libdir_flag_spec='-L$libdir'
7384       hardcode_minus_L=yes
7385       # see comment about different semantics on the GNU ld section
7386       ld_shlibs=no
7387       ;;
7388
7389     bsdi[45]*)
7390       export_dynamic_flag_spec=-rdynamic
7391       ;;
7392
7393     cygwin* | mingw* | pw32*)
7394       # When not using gcc, we currently assume that we are using
7395       # Microsoft Visual C++.
7396       # hardcode_libdir_flag_spec is actually meaningless, as there is
7397       # no search path for DLLs.
7398       hardcode_libdir_flag_spec=' '
7399       allow_undefined_flag=unsupported
7400       # Tell ltmain to make .lib files, not .a files.
7401       libext=lib
7402       # Tell ltmain to make .dll files, not .so files.
7403       shrext_cmds=".dll"
7404       # FIXME: Setting linknames here is a bad hack.
7405       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7406       # The linker will automatically build a .lib file if we build a DLL.
7407       old_archive_From_new_cmds='true'
7408       # FIXME: Should let the user specify the lib program.
7409       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7410       fix_srcfile_path='`cygpath -w "$srcfile"`'
7411       enable_shared_with_static_runtimes=yes
7412       ;;
7413
7414     darwin* | rhapsody*)
7415       case "$host_os" in
7416         rhapsody* | darwin1.[012])
7417          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7418          ;;
7419        *) # Darwin 1.3 on
7420          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7421            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7422          else
7423            case ${MACOSX_DEPLOYMENT_TARGET} in
7424              10.[012])
7425                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7426                ;;
7427              10.*)
7428                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7429                ;;
7430            esac
7431          fi
7432          ;;
7433       esac
7434       archive_cmds_need_lc=no
7435       hardcode_direct=no
7436       hardcode_automatic=yes
7437       hardcode_shlibpath_var=unsupported
7438       whole_archive_flag_spec=''
7439       link_all_deplibs=yes
7440     if test "$GCC" = yes ; then
7441         output_verbose_link_cmd='echo'
7442         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7443       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7444       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7445       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}'
7446       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}'
7447     else
7448       case $cc_basename in
7449         xlc*)
7450          output_verbose_link_cmd='echo'
7451          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7452          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7453           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7454          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}'
7455           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}'
7456           ;;
7457        *)
7458          ld_shlibs=no
7459           ;;
7460       esac
7461     fi
7462       ;;
7463
7464     dgux*)
7465       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7466       hardcode_libdir_flag_spec='-L$libdir'
7467       hardcode_shlibpath_var=no
7468       ;;
7469
7470     freebsd1*)
7471       ld_shlibs=no
7472       ;;
7473
7474     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7475     # support.  Future versions do this automatically, but an explicit c++rt0.o
7476     # does not break anything, and helps significantly (at the cost of a little
7477     # extra space).
7478     freebsd2.2*)
7479       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7480       hardcode_libdir_flag_spec='-R$libdir'
7481       hardcode_direct=yes
7482       hardcode_shlibpath_var=no
7483       ;;
7484
7485     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7486     freebsd2*)
7487       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7488       hardcode_direct=yes
7489       hardcode_minus_L=yes
7490       hardcode_shlibpath_var=no
7491       ;;
7492
7493     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7494     freebsd* | kfreebsd*-gnu | dragonfly*)
7495       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7496       hardcode_libdir_flag_spec='-R$libdir'
7497       hardcode_direct=yes
7498       hardcode_shlibpath_var=no
7499       ;;
7500
7501     hpux9*)
7502       if test "$GCC" = yes; then
7503         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'
7504       else
7505         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'
7506       fi
7507       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7508       hardcode_libdir_separator=:
7509       hardcode_direct=yes
7510
7511       # hardcode_minus_L: Not really in the search PATH,
7512       # but as the default location of the library.
7513       hardcode_minus_L=yes
7514       export_dynamic_flag_spec='${wl}-E'
7515       ;;
7516
7517     hpux10* | hpux11*)
7518       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7519         case "$host_cpu" in
7520         hppa*64*|ia64*)
7521           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7522           ;;
7523         *)
7524           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7525           ;;
7526         esac
7527       else
7528         case "$host_cpu" in
7529         hppa*64*|ia64*)
7530           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7531           ;;
7532         *)
7533           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7534           ;;
7535         esac
7536       fi
7537       if test "$with_gnu_ld" = no; then
7538         case "$host_cpu" in
7539         hppa*64*)
7540           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7541           hardcode_libdir_flag_spec_ld='+b $libdir'
7542           hardcode_libdir_separator=:
7543           hardcode_direct=no
7544           hardcode_shlibpath_var=no
7545           ;;
7546         ia64*)
7547           hardcode_libdir_flag_spec='-L$libdir'
7548           hardcode_direct=no
7549           hardcode_shlibpath_var=no
7550
7551           # hardcode_minus_L: Not really in the search PATH,
7552           # but as the default location of the library.
7553           hardcode_minus_L=yes
7554           ;;
7555         *)
7556           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7557           hardcode_libdir_separator=:
7558           hardcode_direct=yes
7559           export_dynamic_flag_spec='${wl}-E'
7560
7561           # hardcode_minus_L: Not really in the search PATH,
7562           # but as the default location of the library.
7563           hardcode_minus_L=yes
7564           ;;
7565         esac
7566       fi
7567       ;;
7568
7569     irix5* | irix6* | nonstopux*)
7570       if test "$GCC" = yes; then
7571         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'
7572       else
7573         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'
7574         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7575       fi
7576       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7577       hardcode_libdir_separator=:
7578       link_all_deplibs=yes
7579       ;;
7580
7581     netbsd*)
7582       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7583         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7584       else
7585         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7586       fi
7587       hardcode_libdir_flag_spec='-R$libdir'
7588       hardcode_direct=yes
7589       hardcode_shlibpath_var=no
7590       ;;
7591
7592     newsos6)
7593       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7594       hardcode_direct=yes
7595       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7596       hardcode_libdir_separator=:
7597       hardcode_shlibpath_var=no
7598       ;;
7599
7600     openbsd*)
7601       hardcode_direct=yes
7602       hardcode_shlibpath_var=no
7603       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7604         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7605         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7606         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7607         export_dynamic_flag_spec='${wl}-E'
7608       else
7609        case $host_os in
7610          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7611            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7612            hardcode_libdir_flag_spec='-R$libdir'
7613            ;;
7614          *)
7615            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7616            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7617            ;;
7618        esac
7619       fi
7620       ;;
7621
7622     os2*)
7623       hardcode_libdir_flag_spec='-L$libdir'
7624       hardcode_minus_L=yes
7625       allow_undefined_flag=unsupported
7626       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'
7627       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7628       ;;
7629
7630     osf3*)
7631       if test "$GCC" = yes; then
7632         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7633         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'
7634       else
7635         allow_undefined_flag=' -expect_unresolved \*'
7636         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'
7637       fi
7638       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7639       hardcode_libdir_separator=:
7640       ;;
7641
7642     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7643       if test "$GCC" = yes; then
7644         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7645         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'
7646         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7647       else
7648         allow_undefined_flag=' -expect_unresolved \*'
7649         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'
7650         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7651         $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'
7652
7653         # Both c and cxx compiler support -rpath directly
7654         hardcode_libdir_flag_spec='-rpath $libdir'
7655       fi
7656       hardcode_libdir_separator=:
7657       ;;
7658
7659     sco3.2v5*)
7660       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7661       hardcode_shlibpath_var=no
7662       export_dynamic_flag_spec='${wl}-Bexport'
7663       runpath_var=LD_RUN_PATH
7664       hardcode_runpath_var=yes
7665       ;;
7666
7667     solaris*)
7668       no_undefined_flag=' -z text'
7669       if test "$GCC" = yes; then
7670         wlarc='${wl}'
7671         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7672         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7673           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7674       else
7675         wlarc=''
7676         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7677         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7678         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7679       fi
7680       hardcode_libdir_flag_spec='-R$libdir'
7681       hardcode_shlibpath_var=no
7682       case $host_os in
7683       solaris2.[0-5] | solaris2.[0-5].*) ;;
7684       *)
7685         # The compiler driver will combine linker options so we
7686         # cannot just pass the convience library names through
7687         # without $wl, iff we do not link with $LD.
7688         # Luckily, gcc supports the same syntax we need for Sun Studio.
7689         # Supported since Solaris 2.6 (maybe 2.5.1?)
7690         case $wlarc in
7691         '')
7692           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7693         *)
7694           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' ;;
7695         esac ;;
7696       esac
7697       link_all_deplibs=yes
7698       ;;
7699
7700     sunos4*)
7701       if test "x$host_vendor" = xsequent; then
7702         # Use $CC to link under sequent, because it throws in some extra .o
7703         # files that make .init and .fini sections work.
7704         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7705       else
7706         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7707       fi
7708       hardcode_libdir_flag_spec='-L$libdir'
7709       hardcode_direct=yes
7710       hardcode_minus_L=yes
7711       hardcode_shlibpath_var=no
7712       ;;
7713
7714     sysv4)
7715       case $host_vendor in
7716         sni)
7717           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7718           hardcode_direct=yes # is this really true???
7719         ;;
7720         siemens)
7721           ## LD is ld it makes a PLAMLIB
7722           ## CC just makes a GrossModule.
7723           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7724           reload_cmds='$CC -r -o $output$reload_objs'
7725           hardcode_direct=no
7726         ;;
7727         motorola)
7728           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7729           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7730         ;;
7731       esac
7732       runpath_var='LD_RUN_PATH'
7733       hardcode_shlibpath_var=no
7734       ;;
7735
7736     sysv4.3*)
7737       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7738       hardcode_shlibpath_var=no
7739       export_dynamic_flag_spec='-Bexport'
7740       ;;
7741
7742     sysv4*MP*)
7743       if test -d /usr/nec; then
7744         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7745         hardcode_shlibpath_var=no
7746         runpath_var=LD_RUN_PATH
7747         hardcode_runpath_var=yes
7748         ld_shlibs=yes
7749       fi
7750       ;;
7751
7752     sysv4.2uw2*)
7753       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7754       hardcode_direct=yes
7755       hardcode_minus_L=no
7756       hardcode_shlibpath_var=no
7757       hardcode_runpath_var=yes
7758       runpath_var=LD_RUN_PATH
7759       ;;
7760
7761    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7762       no_undefined_flag='${wl}-z ${wl}text'
7763       if test "$GCC" = yes; then
7764         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7765       else
7766         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7767       fi
7768       runpath_var='LD_RUN_PATH'
7769       hardcode_shlibpath_var=no
7770       ;;
7771
7772     sysv5*)
7773       no_undefined_flag=' -z text'
7774       # $CC -shared without GNU ld will not create a library from C++
7775       # object files and a static libstdc++, better avoid it by now
7776       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7777       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7778                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7779       hardcode_libdir_flag_spec=
7780       hardcode_shlibpath_var=no
7781       runpath_var='LD_RUN_PATH'
7782       ;;
7783
7784     uts4*)
7785       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7786       hardcode_libdir_flag_spec='-L$libdir'
7787       hardcode_shlibpath_var=no
7788       ;;
7789
7790     *)
7791       ld_shlibs=no
7792       ;;
7793     esac
7794   fi
7795
7796 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7797 echo "${ECHO_T}$ld_shlibs" >&6
7798 test "$ld_shlibs" = no && can_build_shared=no
7799
7800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7801 if test "$GCC" = yes; then
7802   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7803 fi
7804
7805 #
7806 # Do we need to explicitly link libc?
7807 #
7808 case "x$archive_cmds_need_lc" in
7809 x|xyes)
7810   # Assume -lc should be added
7811   archive_cmds_need_lc=yes
7812
7813   if test "$enable_shared" = yes && test "$GCC" = yes; then
7814     case $archive_cmds in
7815     *'~'*)
7816       # FIXME: we may have to deal with multi-command sequences.
7817       ;;
7818     '$CC '*)
7819       # Test whether the compiler implicitly links with -lc since on some
7820       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7821       # to ld, don't add -lc before -lgcc.
7822       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7823 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7824       $rm conftest*
7825       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7826
7827       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7828   (eval $ac_compile) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); } 2>conftest.err; then
7832         soname=conftest
7833         lib=conftest
7834         libobjs=conftest.$ac_objext
7835         deplibs=
7836         wl=$lt_prog_compiler_wl
7837         compiler_flags=-v
7838         linker_flags=-v
7839         verstring=
7840         output_objdir=.
7841         libname=conftest
7842         lt_save_allow_undefined_flag=$allow_undefined_flag
7843         allow_undefined_flag=
7844         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7845   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }
7849         then
7850           archive_cmds_need_lc=no
7851         else
7852           archive_cmds_need_lc=yes
7853         fi
7854         allow_undefined_flag=$lt_save_allow_undefined_flag
7855       else
7856         cat conftest.err 1>&5
7857       fi
7858       $rm conftest*
7859       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7860 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7861       ;;
7862     esac
7863   fi
7864   ;;
7865 esac
7866
7867 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7868 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7869 library_names_spec=
7870 libname_spec='lib$name'
7871 soname_spec=
7872 shrext_cmds=".so"
7873 postinstall_cmds=
7874 postuninstall_cmds=
7875 finish_cmds=
7876 finish_eval=
7877 shlibpath_var=
7878 shlibpath_overrides_runpath=unknown
7879 version_type=none
7880 dynamic_linker="$host_os ld.so"
7881 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7882 if test "$GCC" = yes; then
7883   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7884   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7885     # if the path contains ";" then we assume it to be the separator
7886     # otherwise default to the standard path separator (i.e. ":") - it is
7887     # assumed that no part of a normal pathname contains ";" but that should
7888     # okay in the real world where ";" in dirpaths is itself problematic.
7889     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7890   else
7891     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7892   fi
7893 else
7894   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7895 fi
7896 need_lib_prefix=unknown
7897 hardcode_into_libs=no
7898
7899 # when you set need_version to no, make sure it does not cause -set_version
7900 # flags to be left without arguments
7901 need_version=unknown
7902
7903 case $host_os in
7904 aix3*)
7905   version_type=linux
7906   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7907   shlibpath_var=LIBPATH
7908
7909   # AIX 3 has no versioning support, so we append a major version to the name.
7910   soname_spec='${libname}${release}${shared_ext}$major'
7911   ;;
7912
7913 aix4* | aix5*)
7914   version_type=linux
7915   need_lib_prefix=no
7916   need_version=no
7917   hardcode_into_libs=yes
7918   if test "$host_cpu" = ia64; then
7919     # AIX 5 supports IA64
7920     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7921     shlibpath_var=LD_LIBRARY_PATH
7922   else
7923     # With GCC up to 2.95.x, collect2 would create an import file
7924     # for dependence libraries.  The import file would start with
7925     # the line `#! .'.  This would cause the generated library to
7926     # depend on `.', always an invalid library.  This was fixed in
7927     # development snapshots of GCC prior to 3.0.
7928     case $host_os in
7929       aix4 | aix4.[01] | aix4.[01].*)
7930       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7931            echo ' yes '
7932            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7933         :
7934       else
7935         can_build_shared=no
7936       fi
7937       ;;
7938     esac
7939     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7940     # soname into executable. Probably we can add versioning support to
7941     # collect2, so additional links can be useful in future.
7942     if test "$aix_use_runtimelinking" = yes; then
7943       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7944       # instead of lib<name>.a to let people know that these are not
7945       # typical AIX shared libraries.
7946       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7947     else
7948       # We preserve .a as extension for shared libraries through AIX4.2
7949       # and later when we are not doing run time linking.
7950       library_names_spec='${libname}${release}.a $libname.a'
7951       soname_spec='${libname}${release}${shared_ext}$major'
7952     fi
7953     shlibpath_var=LIBPATH
7954   fi
7955   ;;
7956
7957 amigaos*)
7958   library_names_spec='$libname.ixlibrary $libname.a'
7959   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7960   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'
7961   ;;
7962
7963 beos*)
7964   library_names_spec='${libname}${shared_ext}'
7965   dynamic_linker="$host_os ld.so"
7966   shlibpath_var=LIBRARY_PATH
7967   ;;
7968
7969 bsdi[45]*)
7970   version_type=linux
7971   need_version=no
7972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7973   soname_spec='${libname}${release}${shared_ext}$major'
7974   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7975   shlibpath_var=LD_LIBRARY_PATH
7976   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7977   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7978   # the default ld.so.conf also contains /usr/contrib/lib and
7979   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7980   # libtool to hard-code these into programs
7981   ;;
7982
7983 cygwin* | mingw* | pw32*)
7984   version_type=windows
7985   shrext_cmds=".dll"
7986   need_version=no
7987   need_lib_prefix=no
7988
7989   case $GCC,$host_os in
7990   yes,cygwin* | yes,mingw* | yes,pw32*)
7991     library_names_spec='$libname.dll.a'
7992     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7993     postinstall_cmds='base_file=`basename \${file}`~
7994       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7995       dldir=$destdir/`dirname \$dlpath`~
7996       test -d \$dldir || mkdir -p \$dldir~
7997       $install_prog $dir/$dlname \$dldir/$dlname'
7998     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7999       dlpath=$dir/\$dldll~
8000        $rm \$dlpath'
8001     shlibpath_overrides_runpath=yes
8002
8003     case $host_os in
8004     cygwin*)
8005       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8006       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8007       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8008       ;;
8009     mingw*)
8010       # MinGW DLLs use traditional 'lib' prefix
8011       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8012       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8013       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8014         # It is most probably a Windows format PATH printed by
8015         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8016         # path with ; separators, and with drive letters. We can handle the
8017         # drive letters (cygwin fileutils understands them), so leave them,
8018         # especially as we might pass files found there to a mingw objdump,
8019         # which wouldn't understand a cygwinified path. Ahh.
8020         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8021       else
8022         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8023       fi
8024       ;;
8025     pw32*)
8026       # pw32 DLLs use 'pw' prefix rather than 'lib'
8027       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8028       ;;
8029     esac
8030     ;;
8031
8032   *)
8033     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8034     ;;
8035   esac
8036   dynamic_linker='Win32 ld.exe'
8037   # FIXME: first we should search . and the directory the executable is in
8038   shlibpath_var=PATH
8039   ;;
8040
8041 darwin* | rhapsody*)
8042   dynamic_linker="$host_os dyld"
8043   version_type=darwin
8044   need_lib_prefix=no
8045   need_version=no
8046   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8047   soname_spec='${libname}${release}${major}$shared_ext'
8048   shlibpath_overrides_runpath=yes
8049   shlibpath_var=DYLD_LIBRARY_PATH
8050   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8051   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8052   if test "$GCC" = yes; then
8053     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"`
8054   else
8055     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8056   fi
8057   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8058   ;;
8059
8060 dgux*)
8061   version_type=linux
8062   need_lib_prefix=no
8063   need_version=no
8064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8065   soname_spec='${libname}${release}${shared_ext}$major'
8066   shlibpath_var=LD_LIBRARY_PATH
8067   ;;
8068
8069 freebsd1*)
8070   dynamic_linker=no
8071   ;;
8072
8073 kfreebsd*-gnu)
8074   version_type=linux
8075   need_lib_prefix=no
8076   need_version=no
8077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8078   soname_spec='${libname}${release}${shared_ext}$major'
8079   shlibpath_var=LD_LIBRARY_PATH
8080   shlibpath_overrides_runpath=no
8081   hardcode_into_libs=yes
8082   dynamic_linker='GNU ld.so'
8083   ;;
8084
8085 freebsd* | dragonfly*)
8086   # DragonFly does not have aout.  When/if they implement a new
8087   # versioning mechanism, adjust this.
8088   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8089   version_type=freebsd-$objformat
8090   case $version_type in
8091     freebsd-elf*)
8092       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8093       need_version=no
8094       need_lib_prefix=no
8095       ;;
8096     freebsd-*)
8097       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8098       need_version=yes
8099       ;;
8100   esac
8101   shlibpath_var=LD_LIBRARY_PATH
8102   case $host_os in
8103   freebsd2*)
8104     shlibpath_overrides_runpath=yes
8105     ;;
8106   freebsd3.[01]* | freebsdelf3.[01]*)
8107     shlibpath_overrides_runpath=yes
8108     hardcode_into_libs=yes
8109     ;;
8110   *) # from 3.2 on
8111     shlibpath_overrides_runpath=no
8112     hardcode_into_libs=yes
8113     ;;
8114   esac
8115   ;;
8116
8117 gnu*)
8118   version_type=linux
8119   need_lib_prefix=no
8120   need_version=no
8121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8122   soname_spec='${libname}${release}${shared_ext}$major'
8123   shlibpath_var=LD_LIBRARY_PATH
8124   hardcode_into_libs=yes
8125   ;;
8126
8127 hpux9* | hpux10* | hpux11*)
8128   # Give a soname corresponding to the major version so that dld.sl refuses to
8129   # link against other versions.
8130   version_type=sunos
8131   need_lib_prefix=no
8132   need_version=no
8133   case "$host_cpu" in
8134   ia64*)
8135     shrext_cmds='.so'
8136     hardcode_into_libs=yes
8137     dynamic_linker="$host_os dld.so"
8138     shlibpath_var=LD_LIBRARY_PATH
8139     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8141     soname_spec='${libname}${release}${shared_ext}$major'
8142     if test "X$HPUX_IA64_MODE" = X32; then
8143       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8144     else
8145       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8146     fi
8147     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8148     ;;
8149    hppa*64*)
8150      shrext_cmds='.sl'
8151      hardcode_into_libs=yes
8152      dynamic_linker="$host_os dld.sl"
8153      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8154      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8155      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8156      soname_spec='${libname}${release}${shared_ext}$major'
8157      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8158      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8159      ;;
8160    *)
8161     shrext_cmds='.sl'
8162     dynamic_linker="$host_os dld.sl"
8163     shlibpath_var=SHLIB_PATH
8164     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8166     soname_spec='${libname}${release}${shared_ext}$major'
8167     ;;
8168   esac
8169   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8170   postinstall_cmds='chmod 555 $lib'
8171   ;;
8172
8173 irix5* | irix6* | nonstopux*)
8174   case $host_os in
8175     nonstopux*) version_type=nonstopux ;;
8176     *)
8177         if test "$lt_cv_prog_gnu_ld" = yes; then
8178                 version_type=linux
8179         else
8180                 version_type=irix
8181         fi ;;
8182   esac
8183   need_lib_prefix=no
8184   need_version=no
8185   soname_spec='${libname}${release}${shared_ext}$major'
8186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8187   case $host_os in
8188   irix5* | nonstopux*)
8189     libsuff= shlibsuff=
8190     ;;
8191   *)
8192     case $LD in # libtool.m4 will add one of these switches to LD
8193     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8194       libsuff= shlibsuff= libmagic=32-bit;;
8195     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8196       libsuff=32 shlibsuff=N32 libmagic=N32;;
8197     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8198       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8199     *) libsuff= shlibsuff= libmagic=never-match;;
8200     esac
8201     ;;
8202   esac
8203   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8204   shlibpath_overrides_runpath=no
8205   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8206   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8207   hardcode_into_libs=yes
8208   ;;
8209
8210 # No shared lib support for Linux oldld, aout, or coff.
8211 linux*oldld* | linux*aout* | linux*coff*)
8212   dynamic_linker=no
8213   ;;
8214
8215 # This must be Linux ELF.
8216 linux*)
8217   version_type=linux
8218   need_lib_prefix=no
8219   need_version=no
8220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8221   soname_spec='${libname}${release}${shared_ext}$major'
8222   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8223   shlibpath_var=LD_LIBRARY_PATH
8224   shlibpath_overrides_runpath=no
8225   # This implies no fast_install, which is unacceptable.
8226   # Some rework will be needed to allow for fast_install
8227   # before this can be enabled.
8228   hardcode_into_libs=yes
8229
8230   # Append ld.so.conf contents to the search path
8231   if test -f /etc/ld.so.conf; then
8232     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' ' '`
8233     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8234   fi
8235
8236   # We used to test for /lib/ld.so.1 and disable shared libraries on
8237   # powerpc, because MkLinux only supported shared libraries with the
8238   # GNU dynamic linker.  Since this was broken with cross compilers,
8239   # most powerpc-linux boxes support dynamic linking these days and
8240   # people can always --disable-shared, the test was removed, and we
8241   # assume the GNU/Linux dynamic linker is in use.
8242   dynamic_linker='GNU/Linux ld.so'
8243   ;;
8244
8245 knetbsd*-gnu)
8246   version_type=linux
8247   need_lib_prefix=no
8248   need_version=no
8249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8250   soname_spec='${libname}${release}${shared_ext}$major'
8251   shlibpath_var=LD_LIBRARY_PATH
8252   shlibpath_overrides_runpath=no
8253   hardcode_into_libs=yes
8254   dynamic_linker='GNU ld.so'
8255   ;;
8256
8257 netbsd*)
8258   version_type=sunos
8259   need_lib_prefix=no
8260   need_version=no
8261   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8263     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8264     dynamic_linker='NetBSD (a.out) ld.so'
8265   else
8266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8267     soname_spec='${libname}${release}${shared_ext}$major'
8268     dynamic_linker='NetBSD ld.elf_so'
8269   fi
8270   shlibpath_var=LD_LIBRARY_PATH
8271   shlibpath_overrides_runpath=yes
8272   hardcode_into_libs=yes
8273   ;;
8274
8275 newsos6)
8276   version_type=linux
8277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8278   shlibpath_var=LD_LIBRARY_PATH
8279   shlibpath_overrides_runpath=yes
8280   ;;
8281
8282 nto-qnx*)
8283   version_type=linux
8284   need_lib_prefix=no
8285   need_version=no
8286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8287   soname_spec='${libname}${release}${shared_ext}$major'
8288   shlibpath_var=LD_LIBRARY_PATH
8289   shlibpath_overrides_runpath=yes
8290   ;;
8291
8292 openbsd*)
8293   version_type=sunos
8294   need_lib_prefix=no
8295   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8296   case $host_os in
8297     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8298     *)                         need_version=no  ;;
8299   esac
8300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8301   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8302   shlibpath_var=LD_LIBRARY_PATH
8303   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8304     case $host_os in
8305       openbsd2.[89] | openbsd2.[89].*)
8306         shlibpath_overrides_runpath=no
8307         ;;
8308       *)
8309         shlibpath_overrides_runpath=yes
8310         ;;
8311       esac
8312   else
8313     shlibpath_overrides_runpath=yes
8314   fi
8315   ;;
8316
8317 os2*)
8318   libname_spec='$name'
8319   shrext_cmds=".dll"
8320   need_lib_prefix=no
8321   library_names_spec='$libname${shared_ext} $libname.a'
8322   dynamic_linker='OS/2 ld.exe'
8323   shlibpath_var=LIBPATH
8324   ;;
8325
8326 osf3* | osf4* | osf5*)
8327   version_type=osf
8328   need_lib_prefix=no
8329   need_version=no
8330   soname_spec='${libname}${release}${shared_ext}$major'
8331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8332   shlibpath_var=LD_LIBRARY_PATH
8333   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8334   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8335   ;;
8336
8337 sco3.2v5*)
8338   version_type=osf
8339   soname_spec='${libname}${release}${shared_ext}$major'
8340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8341   shlibpath_var=LD_LIBRARY_PATH
8342   ;;
8343
8344 solaris*)
8345   version_type=linux
8346   need_lib_prefix=no
8347   need_version=no
8348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8349   soname_spec='${libname}${release}${shared_ext}$major'
8350   shlibpath_var=LD_LIBRARY_PATH
8351   shlibpath_overrides_runpath=yes
8352   hardcode_into_libs=yes
8353   # ldd complains unless libraries are executable
8354   postinstall_cmds='chmod +x $lib'
8355   ;;
8356
8357 sunos4*)
8358   version_type=sunos
8359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8360   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8361   shlibpath_var=LD_LIBRARY_PATH
8362   shlibpath_overrides_runpath=yes
8363   if test "$with_gnu_ld" = yes; then
8364     need_lib_prefix=no
8365   fi
8366   need_version=yes
8367   ;;
8368
8369 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8370   version_type=linux
8371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8372   soname_spec='${libname}${release}${shared_ext}$major'
8373   shlibpath_var=LD_LIBRARY_PATH
8374   case $host_vendor in
8375     sni)
8376       shlibpath_overrides_runpath=no
8377       need_lib_prefix=no
8378       export_dynamic_flag_spec='${wl}-Blargedynsym'
8379       runpath_var=LD_RUN_PATH
8380       ;;
8381     siemens)
8382       need_lib_prefix=no
8383       ;;
8384     motorola)
8385       need_lib_prefix=no
8386       need_version=no
8387       shlibpath_overrides_runpath=no
8388       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8389       ;;
8390   esac
8391   ;;
8392
8393 sysv4*MP*)
8394   if test -d /usr/nec ;then
8395     version_type=linux
8396     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8397     soname_spec='$libname${shared_ext}.$major'
8398     shlibpath_var=LD_LIBRARY_PATH
8399   fi
8400   ;;
8401
8402 uts4*)
8403   version_type=linux
8404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8405   soname_spec='${libname}${release}${shared_ext}$major'
8406   shlibpath_var=LD_LIBRARY_PATH
8407   ;;
8408
8409 *)
8410   dynamic_linker=no
8411   ;;
8412 esac
8413 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8414 echo "${ECHO_T}$dynamic_linker" >&6
8415 test "$dynamic_linker" = no && can_build_shared=no
8416
8417 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8418 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8419 hardcode_action=
8420 if test -n "$hardcode_libdir_flag_spec" || \
8421    test -n "$runpath_var" || \
8422    test "X$hardcode_automatic" = "Xyes" ; then
8423
8424   # We can hardcode non-existant directories.
8425   if test "$hardcode_direct" != no &&
8426      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8427      # have to relink, otherwise we might link with an installed library
8428      # when we should be linking with a yet-to-be-installed one
8429      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8430      test "$hardcode_minus_L" != no; then
8431     # Linking always hardcodes the temporary library directory.
8432     hardcode_action=relink
8433   else
8434     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8435     hardcode_action=immediate
8436   fi
8437 else
8438   # We cannot hardcode anything, or else we can only hardcode existing
8439   # directories.
8440   hardcode_action=unsupported
8441 fi
8442 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8443 echo "${ECHO_T}$hardcode_action" >&6
8444
8445 if test "$hardcode_action" = relink; then
8446   # Fast installation is not supported
8447   enable_fast_install=no
8448 elif test "$shlibpath_overrides_runpath" = yes ||
8449      test "$enable_shared" = no; then
8450   # Fast installation is not necessary
8451   enable_fast_install=needless
8452 fi
8453
8454 striplib=
8455 old_striplib=
8456 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8457 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8458 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8459   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8460   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8461   echo "$as_me:$LINENO: result: yes" >&5
8462 echo "${ECHO_T}yes" >&6
8463 else
8464 # FIXME - insert some real tests, host_os isn't really good enough
8465   case $host_os in
8466    darwin*)
8467        if test -n "$STRIP" ; then
8468          striplib="$STRIP -x"
8469          echo "$as_me:$LINENO: result: yes" >&5
8470 echo "${ECHO_T}yes" >&6
8471        else
8472   echo "$as_me:$LINENO: result: no" >&5
8473 echo "${ECHO_T}no" >&6
8474 fi
8475        ;;
8476    *)
8477   echo "$as_me:$LINENO: result: no" >&5
8478 echo "${ECHO_T}no" >&6
8479     ;;
8480   esac
8481 fi
8482
8483 if test "x$enable_dlopen" != xyes; then
8484   enable_dlopen=unknown
8485   enable_dlopen_self=unknown
8486   enable_dlopen_self_static=unknown
8487 else
8488   lt_cv_dlopen=no
8489   lt_cv_dlopen_libs=
8490
8491   case $host_os in
8492   beos*)
8493     lt_cv_dlopen="load_add_on"
8494     lt_cv_dlopen_libs=
8495     lt_cv_dlopen_self=yes
8496     ;;
8497
8498   mingw* | pw32*)
8499     lt_cv_dlopen="LoadLibrary"
8500     lt_cv_dlopen_libs=
8501    ;;
8502
8503   cygwin*)
8504     lt_cv_dlopen="dlopen"
8505     lt_cv_dlopen_libs=
8506    ;;
8507
8508   darwin*)
8509   # if libdl is installed we need to link against it
8510     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8511 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8512 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515   ac_check_lib_save_LIBS=$LIBS
8516 LIBS="-ldl  $LIBS"
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h.  */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h.  */
8523
8524 /* Override any gcc2 internal prototype to avoid an error.  */
8525 #ifdef __cplusplus
8526 extern "C"
8527 #endif
8528 /* We use char because int might match the return type of a gcc2
8529    builtin and then its argument prototype would still apply.  */
8530 char dlopen ();
8531 int
8532 main ()
8533 {
8534 dlopen ();
8535   ;
8536   return 0;
8537 }
8538 _ACEOF
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8541   (eval $ac_link) 2>conftest.er1
8542   ac_status=$?
8543   grep -v '^ *+' conftest.er1 >conftest.err
8544   rm -f conftest.er1
8545   cat conftest.err >&5
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); } &&
8548          { ac_try='test -z "$ac_c_werror_flag"
8549                          || test ! -s conftest.err'
8550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551   (eval $ac_try) 2>&5
8552   ac_status=$?
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; } &&
8555          { ac_try='test -s conftest$ac_exeext'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; }; then
8561   ac_cv_lib_dl_dlopen=yes
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 ac_cv_lib_dl_dlopen=no
8567 fi
8568 rm -f conftest.err conftest.$ac_objext \
8569       conftest$ac_exeext conftest.$ac_ext
8570 LIBS=$ac_check_lib_save_LIBS
8571 fi
8572 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8573 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8574 if test $ac_cv_lib_dl_dlopen = yes; then
8575   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8576 else
8577
8578     lt_cv_dlopen="dyld"
8579     lt_cv_dlopen_libs=
8580     lt_cv_dlopen_self=yes
8581
8582 fi
8583
8584    ;;
8585
8586   *)
8587     echo "$as_me:$LINENO: checking for shl_load" >&5
8588 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8589 if test "${ac_cv_func_shl_load+set}" = set; then
8590   echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592   cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h.  */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h.  */
8598 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8600 #define shl_load innocuous_shl_load
8601
8602 /* System header to define __stub macros and hopefully few prototypes,
8603     which can conflict with char shl_load (); below.
8604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8605     <limits.h> exists even on freestanding compilers.  */
8606
8607 #ifdef __STDC__
8608 # include <limits.h>
8609 #else
8610 # include <assert.h>
8611 #endif
8612
8613 #undef shl_load
8614
8615 /* Override any gcc2 internal prototype to avoid an error.  */
8616 #ifdef __cplusplus
8617 extern "C"
8618 {
8619 #endif
8620 /* We use char because int might match the return type of a gcc2
8621    builtin and then its argument prototype would still apply.  */
8622 char shl_load ();
8623 /* The GNU C library defines this for functions which it implements
8624     to always fail with ENOSYS.  Some functions are actually named
8625     something starting with __ and the normal name is an alias.  */
8626 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8627 choke me
8628 #else
8629 char (*f) () = shl_load;
8630 #endif
8631 #ifdef __cplusplus
8632 }
8633 #endif
8634
8635 int
8636 main ()
8637 {
8638 return f != shl_load;
8639   ;
8640   return 0;
8641 }
8642 _ACEOF
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8645   (eval $ac_link) 2>conftest.er1
8646   ac_status=$?
8647   grep -v '^ *+' conftest.er1 >conftest.err
8648   rm -f conftest.er1
8649   cat conftest.err >&5
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); } &&
8652          { ac_try='test -z "$ac_c_werror_flag"
8653                          || test ! -s conftest.err'
8654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655   (eval $ac_try) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); }; } &&
8659          { ac_try='test -s conftest$ac_exeext'
8660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661   (eval $ac_try) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); }; }; then
8665   ac_cv_func_shl_load=yes
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670 ac_cv_func_shl_load=no
8671 fi
8672 rm -f conftest.err conftest.$ac_objext \
8673       conftest$ac_exeext conftest.$ac_ext
8674 fi
8675 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8676 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8677 if test $ac_cv_func_shl_load = yes; then
8678   lt_cv_dlopen="shl_load"
8679 else
8680   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8681 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8682 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8683   echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685   ac_check_lib_save_LIBS=$LIBS
8686 LIBS="-ldld  $LIBS"
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h.  */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h.  */
8693
8694 /* Override any gcc2 internal prototype to avoid an error.  */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 /* We use char because int might match the return type of a gcc2
8699    builtin and then its argument prototype would still apply.  */
8700 char shl_load ();
8701 int
8702 main ()
8703 {
8704 shl_load ();
8705   ;
8706   return 0;
8707 }
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711   (eval $ac_link) 2>conftest.er1
8712   ac_status=$?
8713   grep -v '^ *+' conftest.er1 >conftest.err
8714   rm -f conftest.er1
8715   cat conftest.err >&5
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } &&
8718          { ac_try='test -z "$ac_c_werror_flag"
8719                          || test ! -s conftest.err'
8720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721   (eval $ac_try) 2>&5
8722   ac_status=$?
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); }; } &&
8725          { ac_try='test -s conftest$ac_exeext'
8726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727   (eval $ac_try) 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; }; then
8731   ac_cv_lib_dld_shl_load=yes
8732 else
8733   echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736 ac_cv_lib_dld_shl_load=no
8737 fi
8738 rm -f conftest.err conftest.$ac_objext \
8739       conftest$ac_exeext conftest.$ac_ext
8740 LIBS=$ac_check_lib_save_LIBS
8741 fi
8742 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8743 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8744 if test $ac_cv_lib_dld_shl_load = yes; then
8745   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8746 else
8747   echo "$as_me:$LINENO: checking for dlopen" >&5
8748 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8749 if test "${ac_cv_func_dlopen+set}" = set; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752   cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h.  */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h.  */
8758 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8760 #define dlopen innocuous_dlopen
8761
8762 /* System header to define __stub macros and hopefully few prototypes,
8763     which can conflict with char dlopen (); below.
8764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8765     <limits.h> exists even on freestanding compilers.  */
8766
8767 #ifdef __STDC__
8768 # include <limits.h>
8769 #else
8770 # include <assert.h>
8771 #endif
8772
8773 #undef dlopen
8774
8775 /* Override any gcc2 internal prototype to avoid an error.  */
8776 #ifdef __cplusplus
8777 extern "C"
8778 {
8779 #endif
8780 /* We use char because int might match the return type of a gcc2
8781    builtin and then its argument prototype would still apply.  */
8782 char dlopen ();
8783 /* The GNU C library defines this for functions which it implements
8784     to always fail with ENOSYS.  Some functions are actually named
8785     something starting with __ and the normal name is an alias.  */
8786 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8787 choke me
8788 #else
8789 char (*f) () = dlopen;
8790 #endif
8791 #ifdef __cplusplus
8792 }
8793 #endif
8794
8795 int
8796 main ()
8797 {
8798 return f != dlopen;
8799   ;
8800   return 0;
8801 }
8802 _ACEOF
8803 rm -f conftest.$ac_objext conftest$ac_exeext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8805   (eval $ac_link) 2>conftest.er1
8806   ac_status=$?
8807   grep -v '^ *+' conftest.er1 >conftest.err
8808   rm -f conftest.er1
8809   cat conftest.err >&5
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); } &&
8812          { ac_try='test -z "$ac_c_werror_flag"
8813                          || test ! -s conftest.err'
8814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815   (eval $ac_try) 2>&5
8816   ac_status=$?
8817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818   (exit $ac_status); }; } &&
8819          { ac_try='test -s conftest$ac_exeext'
8820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821   (eval $ac_try) 2>&5
8822   ac_status=$?
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); }; }; then
8825   ac_cv_func_dlopen=yes
8826 else
8827   echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8829
8830 ac_cv_func_dlopen=no
8831 fi
8832 rm -f conftest.err conftest.$ac_objext \
8833       conftest$ac_exeext conftest.$ac_ext
8834 fi
8835 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8836 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8837 if test $ac_cv_func_dlopen = yes; then
8838   lt_cv_dlopen="dlopen"
8839 else
8840   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8841 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8843   echo $ECHO_N "(cached) $ECHO_C" >&6
8844 else
8845   ac_check_lib_save_LIBS=$LIBS
8846 LIBS="-ldl  $LIBS"
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h.  */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h.  */
8853
8854 /* Override any gcc2 internal prototype to avoid an error.  */
8855 #ifdef __cplusplus
8856 extern "C"
8857 #endif
8858 /* We use char because int might match the return type of a gcc2
8859    builtin and then its argument prototype would still apply.  */
8860 char dlopen ();
8861 int
8862 main ()
8863 {
8864 dlopen ();
8865   ;
8866   return 0;
8867 }
8868 _ACEOF
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871   (eval $ac_link) 2>conftest.er1
8872   ac_status=$?
8873   grep -v '^ *+' conftest.er1 >conftest.err
8874   rm -f conftest.er1
8875   cat conftest.err >&5
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); } &&
8878          { ac_try='test -z "$ac_c_werror_flag"
8879                          || test ! -s conftest.err'
8880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881   (eval $ac_try) 2>&5
8882   ac_status=$?
8883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884   (exit $ac_status); }; } &&
8885          { ac_try='test -s conftest$ac_exeext'
8886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887   (eval $ac_try) 2>&5
8888   ac_status=$?
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); }; }; then
8891   ac_cv_lib_dl_dlopen=yes
8892 else
8893   echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8895
8896 ac_cv_lib_dl_dlopen=no
8897 fi
8898 rm -f conftest.err conftest.$ac_objext \
8899       conftest$ac_exeext conftest.$ac_ext
8900 LIBS=$ac_check_lib_save_LIBS
8901 fi
8902 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8903 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8904 if test $ac_cv_lib_dl_dlopen = yes; then
8905   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8906 else
8907   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8908 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8909 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8910   echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912   ac_check_lib_save_LIBS=$LIBS
8913 LIBS="-lsvld  $LIBS"
8914 cat >conftest.$ac_ext <<_ACEOF
8915 /* confdefs.h.  */
8916 _ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h.  */
8920
8921 /* Override any gcc2 internal prototype to avoid an error.  */
8922 #ifdef __cplusplus
8923 extern "C"
8924 #endif
8925 /* We use char because int might match the return type of a gcc2
8926    builtin and then its argument prototype would still apply.  */
8927 char dlopen ();
8928 int
8929 main ()
8930 {
8931 dlopen ();
8932   ;
8933   return 0;
8934 }
8935 _ACEOF
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938   (eval $ac_link) 2>conftest.er1
8939   ac_status=$?
8940   grep -v '^ *+' conftest.er1 >conftest.err
8941   rm -f conftest.er1
8942   cat conftest.err >&5
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); } &&
8945          { ac_try='test -z "$ac_c_werror_flag"
8946                          || test ! -s conftest.err'
8947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948   (eval $ac_try) 2>&5
8949   ac_status=$?
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); }; } &&
8952          { ac_try='test -s conftest$ac_exeext'
8953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954   (eval $ac_try) 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }; }; then
8958   ac_cv_lib_svld_dlopen=yes
8959 else
8960   echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963 ac_cv_lib_svld_dlopen=no
8964 fi
8965 rm -f conftest.err conftest.$ac_objext \
8966       conftest$ac_exeext conftest.$ac_ext
8967 LIBS=$ac_check_lib_save_LIBS
8968 fi
8969 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8970 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8971 if test $ac_cv_lib_svld_dlopen = yes; then
8972   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8973 else
8974   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8975 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8976 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8977   echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979   ac_check_lib_save_LIBS=$LIBS
8980 LIBS="-ldld  $LIBS"
8981 cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h.  */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h.  */
8987
8988 /* Override any gcc2 internal prototype to avoid an error.  */
8989 #ifdef __cplusplus
8990 extern "C"
8991 #endif
8992 /* We use char because int might match the return type of a gcc2
8993    builtin and then its argument prototype would still apply.  */
8994 char dld_link ();
8995 int
8996 main ()
8997 {
8998 dld_link ();
8999   ;
9000   return 0;
9001 }
9002 _ACEOF
9003 rm -f conftest.$ac_objext conftest$ac_exeext
9004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9005   (eval $ac_link) 2>conftest.er1
9006   ac_status=$?
9007   grep -v '^ *+' conftest.er1 >conftest.err
9008   rm -f conftest.er1
9009   cat conftest.err >&5
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); } &&
9012          { ac_try='test -z "$ac_c_werror_flag"
9013                          || test ! -s conftest.err'
9014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015   (eval $ac_try) 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); }; } &&
9019          { ac_try='test -s conftest$ac_exeext'
9020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021   (eval $ac_try) 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; }; then
9025   ac_cv_lib_dld_dld_link=yes
9026 else
9027   echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9029
9030 ac_cv_lib_dld_dld_link=no
9031 fi
9032 rm -f conftest.err conftest.$ac_objext \
9033       conftest$ac_exeext conftest.$ac_ext
9034 LIBS=$ac_check_lib_save_LIBS
9035 fi
9036 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9037 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9038 if test $ac_cv_lib_dld_dld_link = yes; then
9039   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9040 fi
9041
9042
9043 fi
9044
9045
9046 fi
9047
9048
9049 fi
9050
9051
9052 fi
9053
9054
9055 fi
9056
9057     ;;
9058   esac
9059
9060   if test "x$lt_cv_dlopen" != xno; then
9061     enable_dlopen=yes
9062   else
9063     enable_dlopen=no
9064   fi
9065
9066   case $lt_cv_dlopen in
9067   dlopen)
9068     save_CPPFLAGS="$CPPFLAGS"
9069     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9070
9071     save_LDFLAGS="$LDFLAGS"
9072     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9073
9074     save_LIBS="$LIBS"
9075     LIBS="$lt_cv_dlopen_libs $LIBS"
9076
9077     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9078 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9079 if test "${lt_cv_dlopen_self+set}" = set; then
9080   echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082           if test "$cross_compiling" = yes; then :
9083   lt_cv_dlopen_self=cross
9084 else
9085   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9086   lt_status=$lt_dlunknown
9087   cat > conftest.$ac_ext <<EOF
9088 #line 9088 "configure"
9089 #include "confdefs.h"
9090
9091 #if HAVE_DLFCN_H
9092 #include <dlfcn.h>
9093 #endif
9094
9095 #include <stdio.h>
9096
9097 #ifdef RTLD_GLOBAL
9098 #  define LT_DLGLOBAL           RTLD_GLOBAL
9099 #else
9100 #  ifdef DL_GLOBAL
9101 #    define LT_DLGLOBAL         DL_GLOBAL
9102 #  else
9103 #    define LT_DLGLOBAL         0
9104 #  endif
9105 #endif
9106
9107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9108    find out it does not work in some platform. */
9109 #ifndef LT_DLLAZY_OR_NOW
9110 #  ifdef RTLD_LAZY
9111 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9112 #  else
9113 #    ifdef DL_LAZY
9114 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9115 #    else
9116 #      ifdef RTLD_NOW
9117 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9118 #      else
9119 #        ifdef DL_NOW
9120 #          define LT_DLLAZY_OR_NOW      DL_NOW
9121 #        else
9122 #          define LT_DLLAZY_OR_NOW      0
9123 #        endif
9124 #      endif
9125 #    endif
9126 #  endif
9127 #endif
9128
9129 #ifdef __cplusplus
9130 extern "C" void exit (int);
9131 #endif
9132
9133 void fnord() { int i=42;}
9134 int main ()
9135 {
9136   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9137   int status = $lt_dlunknown;
9138
9139   if (self)
9140     {
9141       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9142       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9143       /* dlclose (self); */
9144     }
9145
9146     exit (status);
9147 }
9148 EOF
9149   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150   (eval $ac_link) 2>&5
9151   ac_status=$?
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9154     (./conftest; exit; ) 2>/dev/null
9155     lt_status=$?
9156     case x$lt_status in
9157       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9158       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9159       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9160     esac
9161   else :
9162     # compilation failed
9163     lt_cv_dlopen_self=no
9164   fi
9165 fi
9166 rm -fr conftest*
9167
9168
9169 fi
9170 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9171 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9172
9173     if test "x$lt_cv_dlopen_self" = xyes; then
9174       LDFLAGS="$LDFLAGS $link_static_flag"
9175       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9176 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9177 if test "${lt_cv_dlopen_self_static+set}" = set; then
9178   echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180           if test "$cross_compiling" = yes; then :
9181   lt_cv_dlopen_self_static=cross
9182 else
9183   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9184   lt_status=$lt_dlunknown
9185   cat > conftest.$ac_ext <<EOF
9186 #line 9186 "configure"
9187 #include "confdefs.h"
9188
9189 #if HAVE_DLFCN_H
9190 #include <dlfcn.h>
9191 #endif
9192
9193 #include <stdio.h>
9194
9195 #ifdef RTLD_GLOBAL
9196 #  define LT_DLGLOBAL           RTLD_GLOBAL
9197 #else
9198 #  ifdef DL_GLOBAL
9199 #    define LT_DLGLOBAL         DL_GLOBAL
9200 #  else
9201 #    define LT_DLGLOBAL         0
9202 #  endif
9203 #endif
9204
9205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9206    find out it does not work in some platform. */
9207 #ifndef LT_DLLAZY_OR_NOW
9208 #  ifdef RTLD_LAZY
9209 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9210 #  else
9211 #    ifdef DL_LAZY
9212 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9213 #    else
9214 #      ifdef RTLD_NOW
9215 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9216 #      else
9217 #        ifdef DL_NOW
9218 #          define LT_DLLAZY_OR_NOW      DL_NOW
9219 #        else
9220 #          define LT_DLLAZY_OR_NOW      0
9221 #        endif
9222 #      endif
9223 #    endif
9224 #  endif
9225 #endif
9226
9227 #ifdef __cplusplus
9228 extern "C" void exit (int);
9229 #endif
9230
9231 void fnord() { int i=42;}
9232 int main ()
9233 {
9234   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9235   int status = $lt_dlunknown;
9236
9237   if (self)
9238     {
9239       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9240       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9241       /* dlclose (self); */
9242     }
9243
9244     exit (status);
9245 }
9246 EOF
9247   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248   (eval $ac_link) 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9252     (./conftest; exit; ) 2>/dev/null
9253     lt_status=$?
9254     case x$lt_status in
9255       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9256       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9257       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9258     esac
9259   else :
9260     # compilation failed
9261     lt_cv_dlopen_self_static=no
9262   fi
9263 fi
9264 rm -fr conftest*
9265
9266
9267 fi
9268 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9269 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9270     fi
9271
9272     CPPFLAGS="$save_CPPFLAGS"
9273     LDFLAGS="$save_LDFLAGS"
9274     LIBS="$save_LIBS"
9275     ;;
9276   esac
9277
9278   case $lt_cv_dlopen_self in
9279   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9280   *) enable_dlopen_self=unknown ;;
9281   esac
9282
9283   case $lt_cv_dlopen_self_static in
9284   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9285   *) enable_dlopen_self_static=unknown ;;
9286   esac
9287 fi
9288
9289
9290 # Report which librarie types wil actually be built
9291 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9292 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9293 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9294 echo "${ECHO_T}$can_build_shared" >&6
9295
9296 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9297 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9298 test "$can_build_shared" = "no" && enable_shared=no
9299
9300 # On AIX, shared libraries and static libraries use the same namespace, and
9301 # are all built from PIC.
9302 case "$host_os" in
9303 aix3*)
9304   test "$enable_shared" = yes && enable_static=no
9305   if test -n "$RANLIB"; then
9306     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9307     postinstall_cmds='$RANLIB $lib'
9308   fi
9309   ;;
9310
9311 aix4* | aix5*)
9312   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9313     test "$enable_shared" = yes && enable_static=no
9314   fi
9315     ;;
9316 esac
9317 echo "$as_me:$LINENO: result: $enable_shared" >&5
9318 echo "${ECHO_T}$enable_shared" >&6
9319
9320 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9321 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9322 # Make sure either enable_shared or enable_static is yes.
9323 test "$enable_shared" = yes || enable_static=yes
9324 echo "$as_me:$LINENO: result: $enable_static" >&5
9325 echo "${ECHO_T}$enable_static" >&6
9326
9327 # The else clause should only fire when bootstrapping the
9328 # libtool distribution, otherwise you forgot to ship ltmain.sh
9329 # with your package, and you will get complaints that there are
9330 # no rules to generate ltmain.sh.
9331 if test -f "$ltmain"; then
9332   # See if we are running on zsh, and set the options which allow our commands through
9333   # without removal of \ escapes.
9334   if test -n "${ZSH_VERSION+set}" ; then
9335     setopt NO_GLOB_SUBST
9336   fi
9337   # Now quote all the things that may contain metacharacters while being
9338   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9339   # variables and quote the copies for generation of the libtool script.
9340   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9341     SED SHELL STRIP \
9342     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9343     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9344     deplibs_check_method reload_flag reload_cmds need_locks \
9345     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9346     lt_cv_sys_global_symbol_to_c_name_address \
9347     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9348     old_postinstall_cmds old_postuninstall_cmds \
9349     compiler \
9350     CC \
9351     LD \
9352     lt_prog_compiler_wl \
9353     lt_prog_compiler_pic \
9354     lt_prog_compiler_static \
9355     lt_prog_compiler_no_builtin_flag \
9356     export_dynamic_flag_spec \
9357     thread_safe_flag_spec \
9358     whole_archive_flag_spec \
9359     enable_shared_with_static_runtimes \
9360     old_archive_cmds \
9361     old_archive_from_new_cmds \
9362     predep_objects \
9363     postdep_objects \
9364     predeps \
9365     postdeps \
9366     compiler_lib_search_path \
9367     archive_cmds \
9368     archive_expsym_cmds \
9369     postinstall_cmds \
9370     postuninstall_cmds \
9371     old_archive_from_expsyms_cmds \
9372     allow_undefined_flag \
9373     no_undefined_flag \
9374     export_symbols_cmds \
9375     hardcode_libdir_flag_spec \
9376     hardcode_libdir_flag_spec_ld \
9377     hardcode_libdir_separator \
9378     hardcode_automatic \
9379     module_cmds \
9380     module_expsym_cmds \
9381     lt_cv_prog_compiler_c_o \
9382     exclude_expsyms \
9383     include_expsyms; do
9384
9385     case $var in
9386     old_archive_cmds | \
9387     old_archive_from_new_cmds | \
9388     archive_cmds | \
9389     archive_expsym_cmds | \
9390     module_cmds | \
9391     module_expsym_cmds | \
9392     old_archive_from_expsyms_cmds | \
9393     export_symbols_cmds | \
9394     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9395     postinstall_cmds | postuninstall_cmds | \
9396     old_postinstall_cmds | old_postuninstall_cmds | \
9397     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9398       # Double-quote double-evaled strings.
9399       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9400       ;;
9401     *)
9402       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9403       ;;
9404     esac
9405   done
9406
9407   case $lt_echo in
9408   *'\$0 --fallback-echo"')
9409     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9410     ;;
9411   esac
9412
9413 cfgfile="${ofile}T"
9414   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9415   $rm -f "$cfgfile"
9416   { echo "$as_me:$LINENO: creating $ofile" >&5
9417 echo "$as_me: creating $ofile" >&6;}
9418
9419   cat <<__EOF__ >> "$cfgfile"
9420 #! $SHELL
9421
9422 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9423 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9424 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9425 #
9426 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9427 # Free Software Foundation, Inc.
9428 #
9429 # This file is part of GNU Libtool:
9430 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9431 #
9432 # This program is free software; you can redistribute it and/or modify
9433 # it under the terms of the GNU General Public License as published by
9434 # the Free Software Foundation; either version 2 of the License, or
9435 # (at your option) any later version.
9436 #
9437 # This program is distributed in the hope that it will be useful, but
9438 # WITHOUT ANY WARRANTY; without even the implied warranty of
9439 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9440 # General Public License for more details.
9441 #
9442 # You should have received a copy of the GNU General Public License
9443 # along with this program; if not, write to the Free Software
9444 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9445 #
9446 # As a special exception to the GNU General Public License, if you
9447 # distribute this file as part of a program that contains a
9448 # configuration script generated by Autoconf, you may include it under
9449 # the same distribution terms that you use for the rest of that program.
9450
9451 # A sed program that does not truncate output.
9452 SED=$lt_SED
9453
9454 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9455 Xsed="$SED -e 1s/^X//"
9456
9457 # The HP-UX ksh and POSIX shell print the target directory to stdout
9458 # if CDPATH is set.
9459 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9460
9461 # The names of the tagged configurations supported by this script.
9462 available_tags=
9463
9464 # ### BEGIN LIBTOOL CONFIG
9465
9466 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9467
9468 # Shell to use when invoking shell scripts.
9469 SHELL=$lt_SHELL
9470
9471 # Whether or not to build shared libraries.
9472 build_libtool_libs=$enable_shared
9473
9474 # Whether or not to build static libraries.
9475 build_old_libs=$enable_static
9476
9477 # Whether or not to add -lc for building shared libraries.
9478 build_libtool_need_lc=$archive_cmds_need_lc
9479
9480 # Whether or not to disallow shared libs when runtime libs are static
9481 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9482
9483 # Whether or not to optimize for fast installation.
9484 fast_install=$enable_fast_install
9485
9486 # The host system.
9487 host_alias=$host_alias
9488 host=$host
9489 host_os=$host_os
9490
9491 # The build system.
9492 build_alias=$build_alias
9493 build=$build
9494 build_os=$build_os
9495
9496 # An echo program that does not interpret backslashes.
9497 echo=$lt_echo
9498
9499 # The archiver.
9500 AR=$lt_AR
9501 AR_FLAGS=$lt_AR_FLAGS
9502
9503 # A C compiler.
9504 LTCC=$lt_LTCC
9505
9506 # A language-specific compiler.
9507 CC=$lt_compiler
9508
9509 # Is the compiler the GNU C compiler?
9510 with_gcc=$GCC
9511
9512 # An ERE matcher.
9513 EGREP=$lt_EGREP
9514
9515 # The linker used to build libraries.
9516 LD=$lt_LD
9517
9518 # Whether we need hard or soft links.
9519 LN_S=$lt_LN_S
9520
9521 # A BSD-compatible nm program.
9522 NM=$lt_NM
9523
9524 # A symbol stripping program
9525 STRIP=$lt_STRIP
9526
9527 # Used to examine libraries when file_magic_cmd begins "file"
9528 MAGIC_CMD=$MAGIC_CMD
9529
9530 # Used on cygwin: DLL creation program.
9531 DLLTOOL="$DLLTOOL"
9532
9533 # Used on cygwin: object dumper.
9534 OBJDUMP="$OBJDUMP"
9535
9536 # Used on cygwin: assembler.
9537 AS="$AS"
9538
9539 # The name of the directory that contains temporary libtool files.
9540 objdir=$objdir
9541
9542 # How to create reloadable object files.
9543 reload_flag=$lt_reload_flag
9544 reload_cmds=$lt_reload_cmds
9545
9546 # How to pass a linker flag through the compiler.
9547 wl=$lt_lt_prog_compiler_wl
9548
9549 # Object file suffix (normally "o").
9550 objext="$ac_objext"
9551
9552 # Old archive suffix (normally "a").
9553 libext="$libext"
9554
9555 # Shared library suffix (normally ".so").
9556 shrext_cmds='$shrext_cmds'
9557
9558 # Executable file suffix (normally "").
9559 exeext="$exeext"
9560
9561 # Additional compiler flags for building library objects.
9562 pic_flag=$lt_lt_prog_compiler_pic
9563 pic_mode=$pic_mode
9564
9565 # What is the maximum length of a command?
9566 max_cmd_len=$lt_cv_sys_max_cmd_len
9567
9568 # Does compiler simultaneously support -c and -o options?
9569 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9570
9571 # Must we lock files when doing compilation?
9572 need_locks=$lt_need_locks
9573
9574 # Do we need the lib prefix for modules?
9575 need_lib_prefix=$need_lib_prefix
9576
9577 # Do we need a version for libraries?
9578 need_version=$need_version
9579
9580 # Whether dlopen is supported.
9581 dlopen_support=$enable_dlopen
9582
9583 # Whether dlopen of programs is supported.
9584 dlopen_self=$enable_dlopen_self
9585
9586 # Whether dlopen of statically linked programs is supported.
9587 dlopen_self_static=$enable_dlopen_self_static
9588
9589 # Compiler flag to prevent dynamic linking.
9590 link_static_flag=$lt_lt_prog_compiler_static
9591
9592 # Compiler flag to turn off builtin functions.
9593 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9594
9595 # Compiler flag to allow reflexive dlopens.
9596 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9597
9598 # Compiler flag to generate shared objects directly from archives.
9599 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9600
9601 # Compiler flag to generate thread-safe objects.
9602 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9603
9604 # Library versioning type.
9605 version_type=$version_type
9606
9607 # Format of library name prefix.
9608 libname_spec=$lt_libname_spec
9609
9610 # List of archive names.  First name is the real one, the rest are links.
9611 # The last name is the one that the linker finds with -lNAME.
9612 library_names_spec=$lt_library_names_spec
9613
9614 # The coded name of the library, if different from the real name.
9615 soname_spec=$lt_soname_spec
9616
9617 # Commands used to build and install an old-style archive.
9618 RANLIB=$lt_RANLIB
9619 old_archive_cmds=$lt_old_archive_cmds
9620 old_postinstall_cmds=$lt_old_postinstall_cmds
9621 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9622
9623 # Create an old-style archive from a shared archive.
9624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9625
9626 # Create a temporary old-style archive to link instead of a shared archive.
9627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9628
9629 # Commands used to build and install a shared archive.
9630 archive_cmds=$lt_archive_cmds
9631 archive_expsym_cmds=$lt_archive_expsym_cmds
9632 postinstall_cmds=$lt_postinstall_cmds
9633 postuninstall_cmds=$lt_postuninstall_cmds
9634
9635 # Commands used to build a loadable module (assumed same as above if empty)
9636 module_cmds=$lt_module_cmds
9637 module_expsym_cmds=$lt_module_expsym_cmds
9638
9639 # Commands to strip libraries.
9640 old_striplib=$lt_old_striplib
9641 striplib=$lt_striplib
9642
9643 # Dependencies to place before the objects being linked to create a
9644 # shared library.
9645 predep_objects=$lt_predep_objects
9646
9647 # Dependencies to place after the objects being linked to create a
9648 # shared library.
9649 postdep_objects=$lt_postdep_objects
9650
9651 # Dependencies to place before the objects being linked to create a
9652 # shared library.
9653 predeps=$lt_predeps
9654
9655 # Dependencies to place after the objects being linked to create a
9656 # shared library.
9657 postdeps=$lt_postdeps
9658
9659 # The library search path used internally by the compiler when linking
9660 # a shared library.
9661 compiler_lib_search_path=$lt_compiler_lib_search_path
9662
9663 # Method to check whether dependent libraries are shared objects.
9664 deplibs_check_method=$lt_deplibs_check_method
9665
9666 # Command to use when deplibs_check_method == file_magic.
9667 file_magic_cmd=$lt_file_magic_cmd
9668
9669 # Flag that allows shared libraries with undefined symbols to be built.
9670 allow_undefined_flag=$lt_allow_undefined_flag
9671
9672 # Flag that forces no undefined symbols.
9673 no_undefined_flag=$lt_no_undefined_flag
9674
9675 # Commands used to finish a libtool library installation in a directory.
9676 finish_cmds=$lt_finish_cmds
9677
9678 # Same as above, but a single script fragment to be evaled but not shown.
9679 finish_eval=$lt_finish_eval
9680
9681 # Take the output of nm and produce a listing of raw symbols and C names.
9682 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9683
9684 # Transform the output of nm in a proper C declaration
9685 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9686
9687 # Transform the output of nm in a C name address pair
9688 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9689
9690 # This is the shared library runtime path variable.
9691 runpath_var=$runpath_var
9692
9693 # This is the shared library path variable.
9694 shlibpath_var=$shlibpath_var
9695
9696 # Is shlibpath searched before the hard-coded library search path?
9697 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9698
9699 # How to hardcode a shared library path into an executable.
9700 hardcode_action=$hardcode_action
9701
9702 # Whether we should hardcode library paths into libraries.
9703 hardcode_into_libs=$hardcode_into_libs
9704
9705 # Flag to hardcode \$libdir into a binary during linking.
9706 # This must work even if \$libdir does not exist.
9707 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9708
9709 # If ld is used when linking, flag to hardcode \$libdir into
9710 # a binary during linking. This must work even if \$libdir does
9711 # not exist.
9712 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9713
9714 # Whether we need a single -rpath flag with a separated argument.
9715 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9716
9717 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9718 # resulting binary.
9719 hardcode_direct=$hardcode_direct
9720
9721 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9722 # resulting binary.
9723 hardcode_minus_L=$hardcode_minus_L
9724
9725 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9726 # the resulting binary.
9727 hardcode_shlibpath_var=$hardcode_shlibpath_var
9728
9729 # Set to yes if building a shared library automatically hardcodes DIR into the library
9730 # and all subsequent libraries and executables linked against it.
9731 hardcode_automatic=$hardcode_automatic
9732
9733 # Variables whose values should be saved in libtool wrapper scripts and
9734 # restored at relink time.
9735 variables_saved_for_relink="$variables_saved_for_relink"
9736
9737 # Whether libtool must link a program against all its dependency libraries.
9738 link_all_deplibs=$link_all_deplibs
9739
9740 # Compile-time system search path for libraries
9741 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9742
9743 # Run-time system search path for libraries
9744 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9745
9746 # Fix the shell variable \$srcfile for the compiler.
9747 fix_srcfile_path="$fix_srcfile_path"
9748
9749 # Set to yes if exported symbols are required.
9750 always_export_symbols=$always_export_symbols
9751
9752 # The commands to list exported symbols.
9753 export_symbols_cmds=$lt_export_symbols_cmds
9754
9755 # The commands to extract the exported symbol list from a shared archive.
9756 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9757
9758 # Symbols that should not be listed in the preloaded symbols.
9759 exclude_expsyms=$lt_exclude_expsyms
9760
9761 # Symbols that must always be exported.
9762 include_expsyms=$lt_include_expsyms
9763
9764 # ### END LIBTOOL CONFIG
9765
9766 __EOF__
9767
9768
9769   case $host_os in
9770   aix3*)
9771     cat <<\EOF >> "$cfgfile"
9772
9773 # AIX sometimes has problems with the GCC collect2 program.  For some
9774 # reason, if we set the COLLECT_NAMES environment variable, the problems
9775 # vanish in a puff of smoke.
9776 if test "X${COLLECT_NAMES+set}" != Xset; then
9777   COLLECT_NAMES=
9778   export COLLECT_NAMES
9779 fi
9780 EOF
9781     ;;
9782   esac
9783
9784   # We use sed instead of cat because bash on DJGPP gets confused if
9785   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9786   # text mode, it properly converts lines to CR/LF.  This bash problem
9787   # is reportedly fixed, but why not run on old versions too?
9788   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9789
9790   mv -f "$cfgfile" "$ofile" || \
9791     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9792   chmod +x "$ofile"
9793
9794 else
9795   # If there is no Makefile yet, we rely on a make rule to execute
9796   # `config.status --recheck' to rerun these tests and create the
9797   # libtool script then.
9798   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9799   if test -f "$ltmain_in"; then
9800     test -f Makefile && make "$ltmain"
9801   fi
9802 fi
9803
9804
9805 ac_ext=c
9806 ac_cpp='$CPP $CPPFLAGS'
9807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9810
9811 CC="$lt_save_CC"
9812
9813
9814 # Check whether --with-tags or --without-tags was given.
9815 if test "${with_tags+set}" = set; then
9816   withval="$with_tags"
9817   tagnames="$withval"
9818 fi;
9819
9820 if test -f "$ltmain" && test -n "$tagnames"; then
9821   if test ! -f "${ofile}"; then
9822     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9823 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9824   fi
9825
9826   if test -z "$LTCC"; then
9827     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9828     if test -z "$LTCC"; then
9829       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9830 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9831     else
9832       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9833 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9834     fi
9835   fi
9836
9837   # Extract list of available tagged configurations in $ofile.
9838   # Note that this assumes the entire list is on one line.
9839   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9840
9841   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9842   for tagname in $tagnames; do
9843     IFS="$lt_save_ifs"
9844     # Check whether tagname contains only valid characters
9845     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9846     "") ;;
9847     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9848 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9849    { (exit 1); exit 1; }; }
9850         ;;
9851     esac
9852
9853     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9854     then
9855       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9856 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9857    { (exit 1); exit 1; }; }
9858     fi
9859
9860     # Update the list of available tags.
9861     if test -n "$tagname"; then
9862       echo appending configuration tag \"$tagname\" to $ofile
9863
9864       case $tagname in
9865       CXX)
9866         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9867             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9868             (test "X$CXX" != "Xg++"))) ; then
9869           ac_ext=cc
9870 ac_cpp='$CXXCPP $CPPFLAGS'
9871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9874
9875
9876
9877
9878 archive_cmds_need_lc_CXX=no
9879 allow_undefined_flag_CXX=
9880 always_export_symbols_CXX=no
9881 archive_expsym_cmds_CXX=
9882 export_dynamic_flag_spec_CXX=
9883 hardcode_direct_CXX=no
9884 hardcode_libdir_flag_spec_CXX=
9885 hardcode_libdir_flag_spec_ld_CXX=
9886 hardcode_libdir_separator_CXX=
9887 hardcode_minus_L_CXX=no
9888 hardcode_automatic_CXX=no
9889 module_cmds_CXX=
9890 module_expsym_cmds_CXX=
9891 link_all_deplibs_CXX=unknown
9892 old_archive_cmds_CXX=$old_archive_cmds
9893 no_undefined_flag_CXX=
9894 whole_archive_flag_spec_CXX=
9895 enable_shared_with_static_runtimes_CXX=no
9896
9897 # Dependencies to place before and after the object being linked:
9898 predep_objects_CXX=
9899 postdep_objects_CXX=
9900 predeps_CXX=
9901 postdeps_CXX=
9902 compiler_lib_search_path_CXX=
9903
9904 # Source file extension for C++ test sources.
9905 ac_ext=cc
9906
9907 # Object file extension for compiled C++ test sources.
9908 objext=o
9909 objext_CXX=$objext
9910
9911 # Code to be used in simple compile tests
9912 lt_simple_compile_test_code="int some_variable = 0;\n"
9913
9914 # Code to be used in simple link tests
9915 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9916
9917 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9918
9919 # If no C compiler was specified, use CC.
9920 LTCC=${LTCC-"$CC"}
9921
9922 # Allow CC to be a program name with arguments.
9923 compiler=$CC
9924
9925
9926 # save warnings/boilerplate of simple test code
9927 ac_outfile=conftest.$ac_objext
9928 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9929 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9930 _lt_compiler_boilerplate=`cat conftest.err`
9931 $rm conftest*
9932
9933 ac_outfile=conftest.$ac_objext
9934 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9935 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9936 _lt_linker_boilerplate=`cat conftest.err`
9937 $rm conftest*
9938
9939
9940 # Allow CC to be a program name with arguments.
9941 lt_save_CC=$CC
9942 lt_save_LD=$LD
9943 lt_save_GCC=$GCC
9944 GCC=$GXX
9945 lt_save_with_gnu_ld=$with_gnu_ld
9946 lt_save_path_LD=$lt_cv_path_LD
9947 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9948   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9949 else
9950   unset lt_cv_prog_gnu_ld
9951 fi
9952 if test -n "${lt_cv_path_LDCXX+set}"; then
9953   lt_cv_path_LD=$lt_cv_path_LDCXX
9954 else
9955   unset lt_cv_path_LD
9956 fi
9957 test -z "${LDCXX+set}" || LD=$LDCXX
9958 CC=${CXX-"c++"}
9959 compiler=$CC
9960 compiler_CXX=$CC
9961 for cc_temp in $compiler""; do
9962   case $cc_temp in
9963     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9964     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9965     \-*) ;;
9966     *) break;;
9967   esac
9968 done
9969 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9970
9971
9972 # We don't want -fno-exception wen compiling C++ code, so set the
9973 # no_builtin_flag separately
9974 if test "$GXX" = yes; then
9975   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9976 else
9977   lt_prog_compiler_no_builtin_flag_CXX=
9978 fi
9979
9980 if test "$GXX" = yes; then
9981   # Set up default GNU C++ configuration
9982
9983
9984 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9985 if test "${with_gnu_ld+set}" = set; then
9986   withval="$with_gnu_ld"
9987   test "$withval" = no || with_gnu_ld=yes
9988 else
9989   with_gnu_ld=no
9990 fi;
9991 ac_prog=ld
9992 if test "$GCC" = yes; then
9993   # Check if gcc -print-prog-name=ld gives a path.
9994   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9995 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9996   case $host in
9997   *-*-mingw*)
9998     # gcc leaves a trailing carriage return which upsets mingw
9999     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10000   *)
10001     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10002   esac
10003   case $ac_prog in
10004     # Accept absolute paths.
10005     [\\/]* | ?:[\\/]*)
10006       re_direlt='/[^/][^/]*/\.\./'
10007       # Canonicalize the pathname of ld
10008       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10009       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10010         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10011       done
10012       test -z "$LD" && LD="$ac_prog"
10013       ;;
10014   "")
10015     # If it fails, then pretend we aren't using GCC.
10016     ac_prog=ld
10017     ;;
10018   *)
10019     # If it is relative, then search for the first ld in PATH.
10020     with_gnu_ld=unknown
10021     ;;
10022   esac
10023 elif test "$with_gnu_ld" = yes; then
10024   echo "$as_me:$LINENO: checking for GNU ld" >&5
10025 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10026 else
10027   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10028 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10029 fi
10030 if test "${lt_cv_path_LD+set}" = set; then
10031   echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033   if test -z "$LD"; then
10034   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10035   for ac_dir in $PATH; do
10036     IFS="$lt_save_ifs"
10037     test -z "$ac_dir" && ac_dir=.
10038     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10039       lt_cv_path_LD="$ac_dir/$ac_prog"
10040       # Check to see if the program is GNU ld.  I'd rather use --version,
10041       # but apparently some GNU ld's only accept -v.
10042       # Break only if it was the GNU/non-GNU ld that we prefer.
10043       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10044       *GNU* | *'with BFD'*)
10045         test "$with_gnu_ld" != no && break
10046         ;;
10047       *)
10048         test "$with_gnu_ld" != yes && break
10049         ;;
10050       esac
10051     fi
10052   done
10053   IFS="$lt_save_ifs"
10054 else
10055   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10056 fi
10057 fi
10058
10059 LD="$lt_cv_path_LD"
10060 if test -n "$LD"; then
10061   echo "$as_me:$LINENO: result: $LD" >&5
10062 echo "${ECHO_T}$LD" >&6
10063 else
10064   echo "$as_me:$LINENO: result: no" >&5
10065 echo "${ECHO_T}no" >&6
10066 fi
10067 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10068 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10069    { (exit 1); exit 1; }; }
10070 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10071 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10072 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10076 case `$LD -v 2>&1 </dev/null` in
10077 *GNU* | *'with BFD'*)
10078   lt_cv_prog_gnu_ld=yes
10079   ;;
10080 *)
10081   lt_cv_prog_gnu_ld=no
10082   ;;
10083 esac
10084 fi
10085 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10086 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10087 with_gnu_ld=$lt_cv_prog_gnu_ld
10088
10089
10090
10091   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10092   # archiving commands below assume that GNU ld is being used.
10093   if test "$with_gnu_ld" = yes; then
10094     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10095     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'
10096
10097     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10098     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10099
10100     # If archive_cmds runs LD, not CC, wlarc should be empty
10101     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10102     #     investigate it a little bit more. (MM)
10103     wlarc='${wl}'
10104
10105     # ancient GNU ld didn't support --whole-archive et. al.
10106     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10107         grep 'no-whole-archive' > /dev/null; then
10108       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10109     else
10110       whole_archive_flag_spec_CXX=
10111     fi
10112   else
10113     with_gnu_ld=no
10114     wlarc=
10115
10116     # A generic and very simple default shared library creation
10117     # command for GNU C++ for the case where it uses the native
10118     # linker, instead of GNU ld.  If possible, this setting should
10119     # overridden to take advantage of the native linker features on
10120     # the platform it is being used on.
10121     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10122   fi
10123
10124   # Commands to make compiler produce verbose output that lists
10125   # what "hidden" libraries, object files and flags are used when
10126   # linking a shared library.
10127   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10128
10129 else
10130   GXX=no
10131   with_gnu_ld=no
10132   wlarc=
10133 fi
10134
10135 # PORTME: fill in a description of your system's C++ link characteristics
10136 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10137 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10138 ld_shlibs_CXX=yes
10139 case $host_os in
10140   aix3*)
10141     # FIXME: insert proper C++ library support
10142     ld_shlibs_CXX=no
10143     ;;
10144   aix4* | aix5*)
10145     if test "$host_cpu" = ia64; then
10146       # On IA64, the linker does run time linking by default, so we don't
10147       # have to do anything special.
10148       aix_use_runtimelinking=no
10149       exp_sym_flag='-Bexport'
10150       no_entry_flag=""
10151     else
10152       aix_use_runtimelinking=no
10153
10154       # Test if we are trying to use run time linking or normal
10155       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10156       # need to do runtime linking.
10157       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10158         for ld_flag in $LDFLAGS; do
10159           case $ld_flag in
10160           *-brtl*)
10161             aix_use_runtimelinking=yes
10162             break
10163             ;;
10164           esac
10165         done
10166       esac
10167
10168       exp_sym_flag='-bexport'
10169       no_entry_flag='-bnoentry'
10170     fi
10171
10172     # When large executables or shared objects are built, AIX ld can
10173     # have problems creating the table of contents.  If linking a library
10174     # or program results in "error TOC overflow" add -mminimal-toc to
10175     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10176     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10177
10178     archive_cmds_CXX=''
10179     hardcode_direct_CXX=yes
10180     hardcode_libdir_separator_CXX=':'
10181     link_all_deplibs_CXX=yes
10182
10183     if test "$GXX" = yes; then
10184       case $host_os in aix4.[012]|aix4.[012].*)
10185       # We only want to do this on AIX 4.2 and lower, the check
10186       # below for broken collect2 doesn't work under 4.3+
10187         collect2name=`${CC} -print-prog-name=collect2`
10188         if test -f "$collect2name" && \
10189            strings "$collect2name" | grep resolve_lib_name >/dev/null
10190         then
10191           # We have reworked collect2
10192           hardcode_direct_CXX=yes
10193         else
10194           # We have old collect2
10195           hardcode_direct_CXX=unsupported
10196           # It fails to find uninstalled libraries when the uninstalled
10197           # path is not listed in the libpath.  Setting hardcode_minus_L
10198           # to unsupported forces relinking
10199           hardcode_minus_L_CXX=yes
10200           hardcode_libdir_flag_spec_CXX='-L$libdir'
10201           hardcode_libdir_separator_CXX=
10202         fi
10203       esac
10204       shared_flag='-shared'
10205       if test "$aix_use_runtimelinking" = yes; then
10206         shared_flag="$shared_flag "'${wl}-G'
10207       fi
10208     else
10209       # not using gcc
10210       if test "$host_cpu" = ia64; then
10211         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10212         # chokes on -Wl,-G. The following line is correct:
10213         shared_flag='-G'
10214       else
10215         if test "$aix_use_runtimelinking" = yes; then
10216           shared_flag='${wl}-G'
10217         else
10218           shared_flag='${wl}-bM:SRE'
10219         fi
10220       fi
10221     fi
10222
10223     # It seems that -bexpall does not export symbols beginning with
10224     # underscore (_), so it is better to generate a list of symbols to export.
10225     always_export_symbols_CXX=yes
10226     if test "$aix_use_runtimelinking" = yes; then
10227       # Warning - without using the other runtime loading flags (-brtl),
10228       # -berok will link without error, but may produce a broken library.
10229       allow_undefined_flag_CXX='-berok'
10230       # Determine the default libpath from the value encoded in an empty executable.
10231       cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h.  */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h.  */
10237
10238 int
10239 main ()
10240 {
10241
10242   ;
10243   return 0;
10244 }
10245 _ACEOF
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10248   (eval $ac_link) 2>conftest.er1
10249   ac_status=$?
10250   grep -v '^ *+' conftest.er1 >conftest.err
10251   rm -f conftest.er1
10252   cat conftest.err >&5
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } &&
10255          { ac_try='test -z "$ac_cxx_werror_flag"
10256                          || test ! -s conftest.err'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; } &&
10262          { ac_try='test -s conftest$ac_exeext'
10263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264   (eval $ac_try) 2>&5
10265   ac_status=$?
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); }; }; then
10268
10269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10270 }'`
10271 # Check for a 64-bit object if we didn't find anything.
10272 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; }
10273 }'`; fi
10274 else
10275   echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 fi
10279 rm -f conftest.err conftest.$ac_objext \
10280       conftest$ac_exeext conftest.$ac_ext
10281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10282
10283       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10284
10285       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"
10286      else
10287       if test "$host_cpu" = ia64; then
10288         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10289         allow_undefined_flag_CXX="-z nodefs"
10290         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"
10291       else
10292         # Determine the default libpath from the value encoded in an empty executable.
10293         cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299
10300 int
10301 main ()
10302 {
10303
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310   (eval $ac_link) 2>conftest.er1
10311   ac_status=$?
10312   grep -v '^ *+' conftest.er1 >conftest.err
10313   rm -f conftest.er1
10314   cat conftest.err >&5
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); } &&
10317          { ac_try='test -z "$ac_cxx_werror_flag"
10318                          || test ! -s conftest.err'
10319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320   (eval $ac_try) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); }; } &&
10324          { ac_try='test -s conftest$ac_exeext'
10325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326   (eval $ac_try) 2>&5
10327   ac_status=$?
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); }; }; then
10330
10331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10332 }'`
10333 # Check for a 64-bit object if we didn't find anything.
10334 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; }
10335 }'`; fi
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340 fi
10341 rm -f conftest.err conftest.$ac_objext \
10342       conftest$ac_exeext conftest.$ac_ext
10343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10344
10345         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10346         # Warning - without using the other run time loading flags,
10347         # -berok will link without error, but may produce a broken library.
10348         no_undefined_flag_CXX=' ${wl}-bernotok'
10349         allow_undefined_flag_CXX=' ${wl}-berok'
10350         # -bexpall does not export symbols beginning with underscore (_)
10351         always_export_symbols_CXX=yes
10352         # Exported symbols can be pulled into shared objects from archives
10353         whole_archive_flag_spec_CXX=' '
10354         archive_cmds_need_lc_CXX=yes
10355         # This is similar to how AIX traditionally builds it's shared libraries.
10356         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'
10357       fi
10358     fi
10359     ;;
10360   chorus*)
10361     case $cc_basename in
10362       *)
10363         # FIXME: insert proper C++ library support
10364         ld_shlibs_CXX=no
10365         ;;
10366     esac
10367     ;;
10368
10369
10370   cygwin* | mingw* | pw32*)
10371     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10372     # as there is no search path for DLLs.
10373     hardcode_libdir_flag_spec_CXX='-L$libdir'
10374     allow_undefined_flag_CXX=unsupported
10375     always_export_symbols_CXX=no
10376     enable_shared_with_static_runtimes_CXX=yes
10377
10378     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10379       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'
10380       # If the export-symbols file already is a .def file (1st line
10381       # is EXPORTS), use it as is; otherwise, prepend...
10382       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10383         cp $export_symbols $output_objdir/$soname.def;
10384       else
10385         echo EXPORTS > $output_objdir/$soname.def;
10386         cat $export_symbols >> $output_objdir/$soname.def;
10387       fi~
10388       $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'
10389     else
10390       ld_shlibs_CXX=no
10391     fi
10392   ;;
10393       darwin* | rhapsody*)
10394         case "$host_os" in
10395         rhapsody* | darwin1.[012])
10396          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10397          ;;
10398        *) # Darwin 1.3 on
10399          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10400            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10401          else
10402            case ${MACOSX_DEPLOYMENT_TARGET} in
10403              10.[012])
10404                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10405                ;;
10406              10.*)
10407                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10408                ;;
10409            esac
10410          fi
10411          ;;
10412         esac
10413       archive_cmds_need_lc_CXX=no
10414       hardcode_direct_CXX=no
10415       hardcode_automatic_CXX=yes
10416       hardcode_shlibpath_var_CXX=unsupported
10417       whole_archive_flag_spec_CXX=''
10418       link_all_deplibs_CXX=yes
10419
10420     if test "$GXX" = yes ; then
10421       lt_int_apple_cc_single_mod=no
10422       output_verbose_link_cmd='echo'
10423       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10424        lt_int_apple_cc_single_mod=yes
10425       fi
10426       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10427        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10428       else
10429           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'
10430         fi
10431         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10432         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10433           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10434             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}'
10435           else
10436             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}'
10437           fi
10438             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}'
10439       else
10440       case $cc_basename in
10441         xlc*)
10442          output_verbose_link_cmd='echo'
10443           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'
10444           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10445           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10446           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}'
10447           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}'
10448           ;;
10449        *)
10450          ld_shlibs_CXX=no
10451           ;;
10452       esac
10453       fi
10454         ;;
10455
10456   dgux*)
10457     case $cc_basename in
10458       ec++*)
10459         # FIXME: insert proper C++ library support
10460         ld_shlibs_CXX=no
10461         ;;
10462       ghcx*)
10463         # Green Hills C++ Compiler
10464         # FIXME: insert proper C++ library support
10465         ld_shlibs_CXX=no
10466         ;;
10467       *)
10468         # FIXME: insert proper C++ library support
10469         ld_shlibs_CXX=no
10470         ;;
10471     esac
10472     ;;
10473   freebsd[12]*)
10474     # C++ shared libraries reported to be fairly broken before switch to ELF
10475     ld_shlibs_CXX=no
10476     ;;
10477   freebsd-elf*)
10478     archive_cmds_need_lc_CXX=no
10479     ;;
10480   freebsd* | kfreebsd*-gnu | dragonfly*)
10481     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10482     # conventions
10483     ld_shlibs_CXX=yes
10484     ;;
10485   gnu*)
10486     ;;
10487   hpux9*)
10488     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10489     hardcode_libdir_separator_CXX=:
10490     export_dynamic_flag_spec_CXX='${wl}-E'
10491     hardcode_direct_CXX=yes
10492     hardcode_minus_L_CXX=yes # Not in the search PATH,
10493                                 # but as the default
10494                                 # location of the library.
10495
10496     case $cc_basename in
10497     CC*)
10498       # FIXME: insert proper C++ library support
10499       ld_shlibs_CXX=no
10500       ;;
10501     aCC*)
10502       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'
10503       # Commands to make compiler produce verbose output that lists
10504       # what "hidden" libraries, object files and flags are used when
10505       # linking a shared library.
10506       #
10507       # There doesn't appear to be a way to prevent this compiler from
10508       # explicitly linking system object files so we need to strip them
10509       # from the output so that they don't get included in the library
10510       # dependencies.
10511       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'
10512       ;;
10513     *)
10514       if test "$GXX" = yes; then
10515         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'
10516       else
10517         # FIXME: insert proper C++ library support
10518         ld_shlibs_CXX=no
10519       fi
10520       ;;
10521     esac
10522     ;;
10523   hpux10*|hpux11*)
10524     if test $with_gnu_ld = no; then
10525       case "$host_cpu" in
10526       hppa*64*)
10527         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10528         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10529         hardcode_libdir_separator_CXX=:
10530         ;;
10531       ia64*)
10532         hardcode_libdir_flag_spec_CXX='-L$libdir'
10533         ;;
10534       *)
10535         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10536         hardcode_libdir_separator_CXX=:
10537         export_dynamic_flag_spec_CXX='${wl}-E'
10538         ;;
10539       esac
10540     fi
10541     case "$host_cpu" in
10542     hppa*64*)
10543       hardcode_direct_CXX=no
10544       hardcode_shlibpath_var_CXX=no
10545       ;;
10546     ia64*)
10547       hardcode_direct_CXX=no
10548       hardcode_shlibpath_var_CXX=no
10549       hardcode_minus_L_CXX=yes # Not in the search PATH,
10550                                               # but as the default
10551                                               # location of the library.
10552       ;;
10553     *)
10554       hardcode_direct_CXX=yes
10555       hardcode_minus_L_CXX=yes # Not in the search PATH,
10556                                               # but as the default
10557                                               # location of the library.
10558       ;;
10559     esac
10560
10561     case $cc_basename in
10562       CC*)
10563         # FIXME: insert proper C++ library support
10564         ld_shlibs_CXX=no
10565         ;;
10566       aCC*)
10567         case "$host_cpu" in
10568         hppa*64*|ia64*)
10569           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10570           ;;
10571         *)
10572           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10573           ;;
10574         esac
10575         # Commands to make compiler produce verbose output that lists
10576         # what "hidden" libraries, object files and flags are used when
10577         # linking a shared library.
10578         #
10579         # There doesn't appear to be a way to prevent this compiler from
10580         # explicitly linking system object files so we need to strip them
10581         # from the output so that they don't get included in the library
10582         # dependencies.
10583         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'
10584         ;;
10585       *)
10586         if test "$GXX" = yes; then
10587           if test $with_gnu_ld = no; then
10588             case "$host_cpu" in
10589             ia64*|hppa*64*)
10590               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10591               ;;
10592             *)
10593               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'
10594               ;;
10595             esac
10596           fi
10597         else
10598           # FIXME: insert proper C++ library support
10599           ld_shlibs_CXX=no
10600         fi
10601         ;;
10602     esac
10603     ;;
10604   irix5* | irix6*)
10605     case $cc_basename in
10606       CC*)
10607         # SGI C++
10608         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'
10609
10610         # Archives containing C++ object files must be created using
10611         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10612         # necessary to make sure instantiated templates are included
10613         # in the archive.
10614         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10615         ;;
10616       *)
10617         if test "$GXX" = yes; then
10618           if test "$with_gnu_ld" = no; then
10619             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'
10620           else
10621             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'
10622           fi
10623         fi
10624         link_all_deplibs_CXX=yes
10625         ;;
10626     esac
10627     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10628     hardcode_libdir_separator_CXX=:
10629     ;;
10630   linux*)
10631     case $cc_basename in
10632       KCC*)
10633         # Kuck and Associates, Inc. (KAI) C++ Compiler
10634
10635         # KCC will only create a shared library if the output file
10636         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10637         # to its proper name (with version) after linking.
10638         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'
10639         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'
10640         # Commands to make compiler produce verbose output that lists
10641         # what "hidden" libraries, object files and flags are used when
10642         # linking a shared library.
10643         #
10644         # There doesn't appear to be a way to prevent this compiler from
10645         # explicitly linking system object files so we need to strip them
10646         # from the output so that they don't get included in the library
10647         # dependencies.
10648         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'
10649
10650         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10651         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10652
10653         # Archives containing C++ object files must be created using
10654         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10655         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10656         ;;
10657       icpc*)
10658         # Intel C++
10659         with_gnu_ld=yes
10660         # version 8.0 and above of icpc choke on multiply defined symbols
10661         # if we add $predep_objects and $postdep_objects, however 7.1 and
10662         # earlier do not add the objects themselves.
10663         case `$CC -V 2>&1` in
10664         *"Version 7."*)
10665           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10666           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'
10667           ;;
10668         *)  # Version 8.0 or newer
10669           tmp_idyn=
10670           case $host_cpu in
10671             ia64*) tmp_idyn=' -i_dynamic';;
10672           esac
10673           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10674           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'
10675           ;;
10676         esac
10677         archive_cmds_need_lc_CXX=no
10678         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10679         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10680         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10681         ;;
10682       pgCC*)
10683         # Portland Group C++ compiler
10684         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10685         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'
10686
10687         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10688         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10689         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'
10690         ;;
10691       cxx*)
10692         # Compaq C++
10693         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10694         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'
10695
10696         runpath_var=LD_RUN_PATH
10697         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10698         hardcode_libdir_separator_CXX=:
10699
10700         # Commands to make compiler produce verbose output that lists
10701         # what "hidden" libraries, object files and flags are used when
10702         # linking a shared library.
10703         #
10704         # There doesn't appear to be a way to prevent this compiler from
10705         # explicitly linking system object files so we need to strip them
10706         # from the output so that they don't get included in the library
10707         # dependencies.
10708         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'
10709         ;;
10710     esac
10711     ;;
10712   lynxos*)
10713     # FIXME: insert proper C++ library support
10714     ld_shlibs_CXX=no
10715     ;;
10716   m88k*)
10717     # FIXME: insert proper C++ library support
10718     ld_shlibs_CXX=no
10719     ;;
10720   mvs*)
10721     case $cc_basename in
10722       cxx*)
10723         # FIXME: insert proper C++ library support
10724         ld_shlibs_CXX=no
10725         ;;
10726       *)
10727         # FIXME: insert proper C++ library support
10728         ld_shlibs_CXX=no
10729         ;;
10730     esac
10731     ;;
10732   netbsd*)
10733     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10734       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10735       wlarc=
10736       hardcode_libdir_flag_spec_CXX='-R$libdir'
10737       hardcode_direct_CXX=yes
10738       hardcode_shlibpath_var_CXX=no
10739     fi
10740     # Workaround some broken pre-1.5 toolchains
10741     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10742     ;;
10743   openbsd2*)
10744     # C++ shared libraries are fairly broken
10745     ld_shlibs_CXX=no
10746     ;;
10747   openbsd*)
10748     hardcode_direct_CXX=yes
10749     hardcode_shlibpath_var_CXX=no
10750     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10751     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10752     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10753       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10754       export_dynamic_flag_spec_CXX='${wl}-E'
10755       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10756     fi
10757     output_verbose_link_cmd='echo'
10758     ;;
10759   osf3*)
10760     case $cc_basename in
10761       KCC*)
10762         # Kuck and Associates, Inc. (KAI) C++ Compiler
10763
10764         # KCC will only create a shared library if the output file
10765         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10766         # to its proper name (with version) after linking.
10767         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'
10768
10769         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10770         hardcode_libdir_separator_CXX=:
10771
10772         # Archives containing C++ object files must be created using
10773         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10774         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10775
10776         ;;
10777       RCC*)
10778         # Rational C++ 2.4.1
10779         # FIXME: insert proper C++ library support
10780         ld_shlibs_CXX=no
10781         ;;
10782       cxx*)
10783         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10784         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'
10785
10786         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10787         hardcode_libdir_separator_CXX=:
10788
10789         # Commands to make compiler produce verbose output that lists
10790         # what "hidden" libraries, object files and flags are used when
10791         # linking a shared library.
10792         #
10793         # There doesn't appear to be a way to prevent this compiler from
10794         # explicitly linking system object files so we need to strip them
10795         # from the output so that they don't get included in the library
10796         # dependencies.
10797         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'
10798         ;;
10799       *)
10800         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10801           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10802           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'
10803
10804           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10805           hardcode_libdir_separator_CXX=:
10806
10807           # Commands to make compiler produce verbose output that lists
10808           # what "hidden" libraries, object files and flags are used when
10809           # linking a shared library.
10810           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10811
10812         else
10813           # FIXME: insert proper C++ library support
10814           ld_shlibs_CXX=no
10815         fi
10816         ;;
10817     esac
10818     ;;
10819   osf4* | osf5*)
10820     case $cc_basename in
10821       KCC*)
10822         # Kuck and Associates, Inc. (KAI) C++ Compiler
10823
10824         # KCC will only create a shared library if the output file
10825         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10826         # to its proper name (with version) after linking.
10827         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'
10828
10829         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10830         hardcode_libdir_separator_CXX=:
10831
10832         # Archives containing C++ object files must be created using
10833         # the KAI C++ compiler.
10834         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10835         ;;
10836       RCC*)
10837         # Rational C++ 2.4.1
10838         # FIXME: insert proper C++ library support
10839         ld_shlibs_CXX=no
10840         ;;
10841       cxx*)
10842         allow_undefined_flag_CXX=' -expect_unresolved \*'
10843         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'
10844         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10845           echo "-hidden">> $lib.exp~
10846           $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~
10847           $rm $lib.exp'
10848
10849         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10850         hardcode_libdir_separator_CXX=:
10851
10852         # Commands to make compiler produce verbose output that lists
10853         # what "hidden" libraries, object files and flags are used when
10854         # linking a shared library.
10855         #
10856         # There doesn't appear to be a way to prevent this compiler from
10857         # explicitly linking system object files so we need to strip them
10858         # from the output so that they don't get included in the library
10859         # dependencies.
10860         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'
10861         ;;
10862       *)
10863         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10864           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10865          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'
10866
10867           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10868           hardcode_libdir_separator_CXX=:
10869
10870           # Commands to make compiler produce verbose output that lists
10871           # what "hidden" libraries, object files and flags are used when
10872           # linking a shared library.
10873           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10874
10875         else
10876           # FIXME: insert proper C++ library support
10877           ld_shlibs_CXX=no
10878         fi
10879         ;;
10880     esac
10881     ;;
10882   psos*)
10883     # FIXME: insert proper C++ library support
10884     ld_shlibs_CXX=no
10885     ;;
10886   sco*)
10887     archive_cmds_need_lc_CXX=no
10888     case $cc_basename in
10889       CC*)
10890         # FIXME: insert proper C++ library support
10891         ld_shlibs_CXX=no
10892         ;;
10893       *)
10894         # FIXME: insert proper C++ library support
10895         ld_shlibs_CXX=no
10896         ;;
10897     esac
10898     ;;
10899   sunos4*)
10900     case $cc_basename in
10901       CC*)
10902         # Sun C++ 4.x
10903         # FIXME: insert proper C++ library support
10904         ld_shlibs_CXX=no
10905         ;;
10906       lcc*)
10907         # Lucid
10908         # FIXME: insert proper C++ library support
10909         ld_shlibs_CXX=no
10910         ;;
10911       *)
10912         # FIXME: insert proper C++ library support
10913         ld_shlibs_CXX=no
10914         ;;
10915     esac
10916     ;;
10917   solaris*)
10918     case $cc_basename in
10919       CC*)
10920         # Sun C++ 4.2, 5.x and Centerline C++
10921         no_undefined_flag_CXX=' -zdefs'
10922         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10923         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10924         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10925
10926         hardcode_libdir_flag_spec_CXX='-R$libdir'
10927         hardcode_shlibpath_var_CXX=no
10928         case $host_os in
10929           solaris2.[0-5] | solaris2.[0-5].*) ;;
10930           *)
10931             # The C++ compiler is used as linker so we must use $wl
10932             # flag to pass the commands to the underlying system
10933             # linker. We must also pass each convience library through
10934             # to the system linker between allextract/defaultextract.
10935             # The C++ compiler will combine linker options so we
10936             # cannot just pass the convience library names through
10937             # without $wl.
10938             # Supported since Solaris 2.6 (maybe 2.5.1?)
10939             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'
10940             ;;
10941         esac
10942         link_all_deplibs_CXX=yes
10943
10944         # Commands to make compiler produce verbose output that lists
10945         # what "hidden" libraries, object files and flags are used when
10946         # linking a shared library.
10947         #
10948         # There doesn't appear to be a way to prevent this compiler from
10949         # explicitly linking system object files so we need to strip them
10950         # from the output so that they don't get included in the library
10951         # dependencies.
10952         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10953
10954         # Archives containing C++ object files must be created using
10955         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10956         # necessary to make sure instantiated templates are included
10957         # in the archive.
10958         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10959         ;;
10960       gcx*)
10961         # Green Hills C++ Compiler
10962         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10963
10964         # The C++ compiler must be used to create the archive.
10965         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10966         ;;
10967       *)
10968         # GNU C++ compiler with Solaris linker
10969         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10970           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10971           if $CC --version | grep -v '^2\.7' > /dev/null; then
10972             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10973             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10974                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10975
10976             # Commands to make compiler produce verbose output that lists
10977             # what "hidden" libraries, object files and flags are used when
10978             # linking a shared library.
10979             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10980           else
10981             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10982             # platform.
10983             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10984             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10985                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10986
10987             # Commands to make compiler produce verbose output that lists
10988             # what "hidden" libraries, object files and flags are used when
10989             # linking a shared library.
10990             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10991           fi
10992
10993           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10994         fi
10995         ;;
10996     esac
10997     ;;
10998   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10999     archive_cmds_need_lc_CXX=no
11000     ;;
11001   tandem*)
11002     case $cc_basename in
11003       NCC*)
11004         # NonStop-UX NCC 3.20
11005         # FIXME: insert proper C++ library support
11006         ld_shlibs_CXX=no
11007         ;;
11008       *)
11009         # FIXME: insert proper C++ library support
11010         ld_shlibs_CXX=no
11011         ;;
11012     esac
11013     ;;
11014   vxworks*)
11015     # FIXME: insert proper C++ library support
11016     ld_shlibs_CXX=no
11017     ;;
11018   *)
11019     # FIXME: insert proper C++ library support
11020     ld_shlibs_CXX=no
11021     ;;
11022 esac
11023 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11024 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11025 test "$ld_shlibs_CXX" = no && can_build_shared=no
11026
11027 GCC_CXX="$GXX"
11028 LD_CXX="$LD"
11029
11030
11031 cat > conftest.$ac_ext <<EOF
11032 class Foo
11033 {
11034 public:
11035   Foo (void) { a = 0; }
11036 private:
11037   int a;
11038 };
11039 EOF
11040
11041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042   (eval $ac_compile) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; then
11046   # Parse the compiler output and extract the necessary
11047   # objects, libraries and library flags.
11048
11049   # Sentinel used to keep track of whether or not we are before
11050   # the conftest object file.
11051   pre_test_object_deps_done=no
11052
11053   # The `*' in the case matches for architectures that use `case' in
11054   # $output_verbose_cmd can trigger glob expansion during the loop
11055   # eval without this substitution.
11056   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11057
11058   for p in `eval $output_verbose_link_cmd`; do
11059     case $p in
11060
11061     -L* | -R* | -l*)
11062        # Some compilers place space between "-{L,R}" and the path.
11063        # Remove the space.
11064        if test $p = "-L" \
11065           || test $p = "-R"; then
11066          prev=$p
11067          continue
11068        else
11069          prev=
11070        fi
11071
11072        if test "$pre_test_object_deps_done" = no; then
11073          case $p in
11074          -L* | -R*)
11075            # Internal compiler library paths should come after those
11076            # provided the user.  The postdeps already come after the
11077            # user supplied libs so there is no need to process them.
11078            if test -z "$compiler_lib_search_path_CXX"; then
11079              compiler_lib_search_path_CXX="${prev}${p}"
11080            else
11081              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11082            fi
11083            ;;
11084          # The "-l" case would never come before the object being
11085          # linked, so don't bother handling this case.
11086          esac
11087        else
11088          if test -z "$postdeps_CXX"; then
11089            postdeps_CXX="${prev}${p}"
11090          else
11091            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11092          fi
11093        fi
11094        ;;
11095
11096     *.$objext)
11097        # This assumes that the test object file only shows up
11098        # once in the compiler output.
11099        if test "$p" = "conftest.$objext"; then
11100          pre_test_object_deps_done=yes
11101          continue
11102        fi
11103
11104        if test "$pre_test_object_deps_done" = no; then
11105          if test -z "$predep_objects_CXX"; then
11106            predep_objects_CXX="$p"
11107          else
11108            predep_objects_CXX="$predep_objects_CXX $p"
11109          fi
11110        else
11111          if test -z "$postdep_objects_CXX"; then
11112            postdep_objects_CXX="$p"
11113          else
11114            postdep_objects_CXX="$postdep_objects_CXX $p"
11115          fi
11116        fi
11117        ;;
11118
11119     *) ;; # Ignore the rest.
11120
11121     esac
11122   done
11123
11124   # Clean up.
11125   rm -f a.out a.exe
11126 else
11127   echo "libtool.m4: error: problem compiling CXX test program"
11128 fi
11129
11130 $rm -f confest.$objext
11131
11132 case " $postdeps_CXX " in
11133 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11134 esac
11135
11136 lt_prog_compiler_wl_CXX=
11137 lt_prog_compiler_pic_CXX=
11138 lt_prog_compiler_static_CXX=
11139
11140 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11141 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11142
11143   # C++ specific cases for pic, static, wl, etc.
11144   if test "$GXX" = yes; then
11145     lt_prog_compiler_wl_CXX='-Wl,'
11146     lt_prog_compiler_static_CXX='-static'
11147
11148     case $host_os in
11149     aix*)
11150       # All AIX code is PIC.
11151       if test "$host_cpu" = ia64; then
11152         # AIX 5 now supports IA64 processor
11153         lt_prog_compiler_static_CXX='-Bstatic'
11154       fi
11155       ;;
11156     amigaos*)
11157       # FIXME: we need at least 68020 code to build shared libraries, but
11158       # adding the `-m68020' flag to GCC prevents building anything better,
11159       # like `-m68040'.
11160       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11161       ;;
11162     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11163       # PIC is the default for these OSes.
11164       ;;
11165     mingw* | os2* | pw32*)
11166       # This hack is so that the source file can tell whether it is being
11167       # built for inclusion in a dll (and should export symbols for example).
11168       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11169       ;;
11170     darwin* | rhapsody*)
11171       # PIC is the default on this platform
11172       # Common symbols not allowed in MH_DYLIB files
11173       lt_prog_compiler_pic_CXX='-fno-common'
11174       ;;
11175     *djgpp*)
11176       # DJGPP does not support shared libraries at all
11177       lt_prog_compiler_pic_CXX=
11178       ;;
11179     sysv4*MP*)
11180       if test -d /usr/nec; then
11181         lt_prog_compiler_pic_CXX=-Kconform_pic
11182       fi
11183       ;;
11184     hpux*)
11185       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11186       # not for PA HP-UX.
11187       case "$host_cpu" in
11188       hppa*64*|ia64*)
11189         ;;
11190       *)
11191         lt_prog_compiler_pic_CXX='-fPIC'
11192         ;;
11193       esac
11194       ;;
11195     *)
11196       lt_prog_compiler_pic_CXX='-fPIC'
11197       ;;
11198     esac
11199   else
11200     case $host_os in
11201       aix4* | aix5*)
11202         # All AIX code is PIC.
11203         if test "$host_cpu" = ia64; then
11204           # AIX 5 now supports IA64 processor
11205           lt_prog_compiler_static_CXX='-Bstatic'
11206         else
11207           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11208         fi
11209         ;;
11210       chorus*)
11211         case $cc_basename in
11212         cxch68*)
11213           # Green Hills C++ Compiler
11214           # _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"
11215           ;;
11216         esac
11217         ;;
11218        darwin*)
11219          # PIC is the default on this platform
11220          # Common symbols not allowed in MH_DYLIB files
11221          case $cc_basename in
11222            xlc*)
11223            lt_prog_compiler_pic_CXX='-qnocommon'
11224            lt_prog_compiler_wl_CXX='-Wl,'
11225            ;;
11226          esac
11227        ;;
11228       dgux*)
11229         case $cc_basename in
11230           ec++*)
11231             lt_prog_compiler_pic_CXX='-KPIC'
11232             ;;
11233           ghcx*)
11234             # Green Hills C++ Compiler
11235             lt_prog_compiler_pic_CXX='-pic'
11236             ;;
11237           *)
11238             ;;
11239         esac
11240         ;;
11241       freebsd* | kfreebsd*-gnu | dragonfly*)
11242         # FreeBSD uses GNU C++
11243         ;;
11244       hpux9* | hpux10* | hpux11*)
11245         case $cc_basename in
11246           CC*)
11247             lt_prog_compiler_wl_CXX='-Wl,'
11248             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11249             if test "$host_cpu" != ia64; then
11250               lt_prog_compiler_pic_CXX='+Z'
11251             fi
11252             ;;
11253           aCC*)
11254             lt_prog_compiler_wl_CXX='-Wl,'
11255             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11256             case "$host_cpu" in
11257             hppa*64*|ia64*)
11258               # +Z the default
11259               ;;
11260             *)
11261               lt_prog_compiler_pic_CXX='+Z'
11262               ;;
11263             esac
11264             ;;
11265           *)
11266             ;;
11267         esac
11268         ;;
11269       irix5* | irix6* | nonstopux*)
11270         case $cc_basename in
11271           CC*)
11272             lt_prog_compiler_wl_CXX='-Wl,'
11273             lt_prog_compiler_static_CXX='-non_shared'
11274             # CC pic flag -KPIC is the default.
11275             ;;
11276           *)
11277             ;;
11278         esac
11279         ;;
11280       linux*)
11281         case $cc_basename in
11282           KCC*)
11283             # KAI C++ Compiler
11284             lt_prog_compiler_wl_CXX='--backend -Wl,'
11285             lt_prog_compiler_pic_CXX='-fPIC'
11286             ;;
11287           icpc* | ecpc*)
11288             # Intel C++
11289             lt_prog_compiler_wl_CXX='-Wl,'
11290             lt_prog_compiler_pic_CXX='-KPIC'
11291             lt_prog_compiler_static_CXX='-static'
11292             ;;
11293           pgCC*)
11294             # Portland Group C++ compiler.
11295             lt_prog_compiler_wl_CXX='-Wl,'
11296             lt_prog_compiler_pic_CXX='-fpic'
11297             lt_prog_compiler_static_CXX='-static'
11298             ;;
11299           cxx*)
11300             # Compaq C++
11301             # Make sure the PIC flag is empty.  It appears that all Alpha
11302             # Linux and Compaq Tru64 Unix objects are PIC.
11303             lt_prog_compiler_pic_CXX=
11304             lt_prog_compiler_static_CXX='-non_shared'
11305             ;;
11306           *)
11307             ;;
11308         esac
11309         ;;
11310       lynxos*)
11311         ;;
11312       m88k*)
11313         ;;
11314       mvs*)
11315         case $cc_basename in
11316           cxx*)
11317             lt_prog_compiler_pic_CXX='-W c,exportall'
11318             ;;
11319           *)
11320             ;;
11321         esac
11322         ;;
11323       netbsd*)
11324         ;;
11325       osf3* | osf4* | osf5*)
11326         case $cc_basename in
11327           KCC*)
11328             lt_prog_compiler_wl_CXX='--backend -Wl,'
11329             ;;
11330           RCC*)
11331             # Rational C++ 2.4.1
11332             lt_prog_compiler_pic_CXX='-pic'
11333             ;;
11334           cxx*)
11335             # Digital/Compaq C++
11336             lt_prog_compiler_wl_CXX='-Wl,'
11337             # Make sure the PIC flag is empty.  It appears that all Alpha
11338             # Linux and Compaq Tru64 Unix objects are PIC.
11339             lt_prog_compiler_pic_CXX=
11340             lt_prog_compiler_static_CXX='-non_shared'
11341             ;;
11342           *)
11343             ;;
11344         esac
11345         ;;
11346       psos*)
11347         ;;
11348       sco*)
11349         case $cc_basename in
11350           CC*)
11351             lt_prog_compiler_pic_CXX='-fPIC'
11352             ;;
11353           *)
11354             ;;
11355         esac
11356         ;;
11357       solaris*)
11358         case $cc_basename in
11359           CC*)
11360             # Sun C++ 4.2, 5.x and Centerline C++
11361             lt_prog_compiler_pic_CXX='-KPIC'
11362             lt_prog_compiler_static_CXX='-Bstatic'
11363             lt_prog_compiler_wl_CXX='-Qoption ld '
11364             ;;
11365           gcx*)
11366             # Green Hills C++ Compiler
11367             lt_prog_compiler_pic_CXX='-PIC'
11368             ;;
11369           *)
11370             ;;
11371         esac
11372         ;;
11373       sunos4*)
11374         case $cc_basename in
11375           CC*)
11376             # Sun C++ 4.x
11377             lt_prog_compiler_pic_CXX='-pic'
11378             lt_prog_compiler_static_CXX='-Bstatic'
11379             ;;
11380           lcc*)
11381             # Lucid
11382             lt_prog_compiler_pic_CXX='-pic'
11383             ;;
11384           *)
11385             ;;
11386         esac
11387         ;;
11388       tandem*)
11389         case $cc_basename in
11390           NCC*)
11391             # NonStop-UX NCC 3.20
11392             lt_prog_compiler_pic_CXX='-KPIC'
11393             ;;
11394           *)
11395             ;;
11396         esac
11397         ;;
11398       unixware*)
11399         ;;
11400       vxworks*)
11401         ;;
11402       *)
11403         lt_prog_compiler_can_build_shared_CXX=no
11404         ;;
11405     esac
11406   fi
11407
11408 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11409 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11410
11411 #
11412 # Check to make sure the PIC flag actually works.
11413 #
11414 if test -n "$lt_prog_compiler_pic_CXX"; then
11415
11416 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11417 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11418 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11419   echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421   lt_prog_compiler_pic_works_CXX=no
11422   ac_outfile=conftest.$ac_objext
11423    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11424    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11425    # Insert the option either (1) after the last *FLAGS variable, or
11426    # (2) before a word containing "conftest.", or (3) at the end.
11427    # Note that $ac_compile itself does not contain backslashes and begins
11428    # with a dollar sign (not a hyphen), so the echo should work correctly.
11429    # The option is referenced via a variable to avoid confusing sed.
11430    lt_compile=`echo "$ac_compile" | $SED \
11431    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11432    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11433    -e 's:$: $lt_compiler_flag:'`
11434    (eval echo "\"\$as_me:11434: $lt_compile\"" >&5)
11435    (eval "$lt_compile" 2>conftest.err)
11436    ac_status=$?
11437    cat conftest.err >&5
11438    echo "$as_me:11438: \$? = $ac_status" >&5
11439    if (exit $ac_status) && test -s "$ac_outfile"; then
11440      # The compiler can only warn and ignore the option if not recognized
11441      # So say no if there are warnings other than the usual output.
11442      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11443      $SED '/^$/d' conftest.err >conftest.er2
11444      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11445        lt_prog_compiler_pic_works_CXX=yes
11446      fi
11447    fi
11448    $rm conftest*
11449
11450 fi
11451 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11452 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11453
11454 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11455     case $lt_prog_compiler_pic_CXX in
11456      "" | " "*) ;;
11457      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11458      esac
11459 else
11460     lt_prog_compiler_pic_CXX=
11461      lt_prog_compiler_can_build_shared_CXX=no
11462 fi
11463
11464 fi
11465 case "$host_os" in
11466   # For platforms which do not support PIC, -DPIC is meaningless:
11467   *djgpp*)
11468     lt_prog_compiler_pic_CXX=
11469     ;;
11470   *)
11471     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11472     ;;
11473 esac
11474
11475 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11476 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11477 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11478   echo $ECHO_N "(cached) $ECHO_C" >&6
11479 else
11480   lt_cv_prog_compiler_c_o_CXX=no
11481    $rm -r conftest 2>/dev/null
11482    mkdir conftest
11483    cd conftest
11484    mkdir out
11485    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11486
11487    lt_compiler_flag="-o out/conftest2.$ac_objext"
11488    # Insert the option either (1) after the last *FLAGS variable, or
11489    # (2) before a word containing "conftest.", or (3) at the end.
11490    # Note that $ac_compile itself does not contain backslashes and begins
11491    # with a dollar sign (not a hyphen), so the echo should work correctly.
11492    lt_compile=`echo "$ac_compile" | $SED \
11493    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11494    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11495    -e 's:$: $lt_compiler_flag:'`
11496    (eval echo "\"\$as_me:11496: $lt_compile\"" >&5)
11497    (eval "$lt_compile" 2>out/conftest.err)
11498    ac_status=$?
11499    cat out/conftest.err >&5
11500    echo "$as_me:11500: \$? = $ac_status" >&5
11501    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11502    then
11503      # The compiler can only warn and ignore the option if not recognized
11504      # So say no if there are warnings
11505      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11506      $SED '/^$/d' out/conftest.err >out/conftest.er2
11507      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11508        lt_cv_prog_compiler_c_o_CXX=yes
11509      fi
11510    fi
11511    chmod u+w .
11512    $rm conftest*
11513    # SGI C++ compiler will create directory out/ii_files/ for
11514    # template instantiation
11515    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11516    $rm out/* && rmdir out
11517    cd ..
11518    rmdir conftest
11519    $rm conftest*
11520
11521 fi
11522 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11523 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11524
11525
11526 hard_links="nottested"
11527 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11528   # do not overwrite the value of need_locks provided by the user
11529   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11530 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11531   hard_links=yes
11532   $rm conftest*
11533   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11534   touch conftest.a
11535   ln conftest.a conftest.b 2>&5 || hard_links=no
11536   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11537   echo "$as_me:$LINENO: result: $hard_links" >&5
11538 echo "${ECHO_T}$hard_links" >&6
11539   if test "$hard_links" = no; then
11540     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11541 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11542     need_locks=warn
11543   fi
11544 else
11545   need_locks=no
11546 fi
11547
11548 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11549 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11550
11551   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11552   case $host_os in
11553   aix4* | aix5*)
11554     # If we're using GNU nm, then we don't want the "-C" option.
11555     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11556     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11557       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'
11558     else
11559       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'
11560     fi
11561     ;;
11562   pw32*)
11563     export_symbols_cmds_CXX="$ltdll_cmds"
11564   ;;
11565   cygwin* | mingw*)
11566     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'
11567   ;;
11568   *)
11569     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11570   ;;
11571   esac
11572
11573 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11574 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11575 test "$ld_shlibs_CXX" = no && can_build_shared=no
11576
11577 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11578 if test "$GCC" = yes; then
11579   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11580 fi
11581
11582 #
11583 # Do we need to explicitly link libc?
11584 #
11585 case "x$archive_cmds_need_lc_CXX" in
11586 x|xyes)
11587   # Assume -lc should be added
11588   archive_cmds_need_lc_CXX=yes
11589
11590   if test "$enable_shared" = yes && test "$GCC" = yes; then
11591     case $archive_cmds_CXX in
11592     *'~'*)
11593       # FIXME: we may have to deal with multi-command sequences.
11594       ;;
11595     '$CC '*)
11596       # Test whether the compiler implicitly links with -lc since on some
11597       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11598       # to ld, don't add -lc before -lgcc.
11599       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11600 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11601       $rm conftest*
11602       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11603
11604       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11605   (eval $ac_compile) 2>&5
11606   ac_status=$?
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); } 2>conftest.err; then
11609         soname=conftest
11610         lib=conftest
11611         libobjs=conftest.$ac_objext
11612         deplibs=
11613         wl=$lt_prog_compiler_wl_CXX
11614         compiler_flags=-v
11615         linker_flags=-v
11616         verstring=
11617         output_objdir=.
11618         libname=conftest
11619         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11620         allow_undefined_flag_CXX=
11621         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11622   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); }
11626         then
11627           archive_cmds_need_lc_CXX=no
11628         else
11629           archive_cmds_need_lc_CXX=yes
11630         fi
11631         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11632       else
11633         cat conftest.err 1>&5
11634       fi
11635       $rm conftest*
11636       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11637 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11638       ;;
11639     esac
11640   fi
11641   ;;
11642 esac
11643
11644 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11645 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11646 library_names_spec=
11647 libname_spec='lib$name'
11648 soname_spec=
11649 shrext_cmds=".so"
11650 postinstall_cmds=
11651 postuninstall_cmds=
11652 finish_cmds=
11653 finish_eval=
11654 shlibpath_var=
11655 shlibpath_overrides_runpath=unknown
11656 version_type=none
11657 dynamic_linker="$host_os ld.so"
11658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11659 if test "$GCC" = yes; then
11660   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11661   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11662     # if the path contains ";" then we assume it to be the separator
11663     # otherwise default to the standard path separator (i.e. ":") - it is
11664     # assumed that no part of a normal pathname contains ";" but that should
11665     # okay in the real world where ";" in dirpaths is itself problematic.
11666     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11667   else
11668     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11669   fi
11670 else
11671   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11672 fi
11673 need_lib_prefix=unknown
11674 hardcode_into_libs=no
11675
11676 # when you set need_version to no, make sure it does not cause -set_version
11677 # flags to be left without arguments
11678 need_version=unknown
11679
11680 case $host_os in
11681 aix3*)
11682   version_type=linux
11683   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11684   shlibpath_var=LIBPATH
11685
11686   # AIX 3 has no versioning support, so we append a major version to the name.
11687   soname_spec='${libname}${release}${shared_ext}$major'
11688   ;;
11689
11690 aix4* | aix5*)
11691   version_type=linux
11692   need_lib_prefix=no
11693   need_version=no
11694   hardcode_into_libs=yes
11695   if test "$host_cpu" = ia64; then
11696     # AIX 5 supports IA64
11697     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11698     shlibpath_var=LD_LIBRARY_PATH
11699   else
11700     # With GCC up to 2.95.x, collect2 would create an import file
11701     # for dependence libraries.  The import file would start with
11702     # the line `#! .'.  This would cause the generated library to
11703     # depend on `.', always an invalid library.  This was fixed in
11704     # development snapshots of GCC prior to 3.0.
11705     case $host_os in
11706       aix4 | aix4.[01] | aix4.[01].*)
11707       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11708            echo ' yes '
11709            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11710         :
11711       else
11712         can_build_shared=no
11713       fi
11714       ;;
11715     esac
11716     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11717     # soname into executable. Probably we can add versioning support to
11718     # collect2, so additional links can be useful in future.
11719     if test "$aix_use_runtimelinking" = yes; then
11720       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11721       # instead of lib<name>.a to let people know that these are not
11722       # typical AIX shared libraries.
11723       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11724     else
11725       # We preserve .a as extension for shared libraries through AIX4.2
11726       # and later when we are not doing run time linking.
11727       library_names_spec='${libname}${release}.a $libname.a'
11728       soname_spec='${libname}${release}${shared_ext}$major'
11729     fi
11730     shlibpath_var=LIBPATH
11731   fi
11732   ;;
11733
11734 amigaos*)
11735   library_names_spec='$libname.ixlibrary $libname.a'
11736   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11737   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'
11738   ;;
11739
11740 beos*)
11741   library_names_spec='${libname}${shared_ext}'
11742   dynamic_linker="$host_os ld.so"
11743   shlibpath_var=LIBRARY_PATH
11744   ;;
11745
11746 bsdi[45]*)
11747   version_type=linux
11748   need_version=no
11749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750   soname_spec='${libname}${release}${shared_ext}$major'
11751   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11752   shlibpath_var=LD_LIBRARY_PATH
11753   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11754   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11755   # the default ld.so.conf also contains /usr/contrib/lib and
11756   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11757   # libtool to hard-code these into programs
11758   ;;
11759
11760 cygwin* | mingw* | pw32*)
11761   version_type=windows
11762   shrext_cmds=".dll"
11763   need_version=no
11764   need_lib_prefix=no
11765
11766   case $GCC,$host_os in
11767   yes,cygwin* | yes,mingw* | yes,pw32*)
11768     library_names_spec='$libname.dll.a'
11769     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11770     postinstall_cmds='base_file=`basename \${file}`~
11771       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11772       dldir=$destdir/`dirname \$dlpath`~
11773       test -d \$dldir || mkdir -p \$dldir~
11774       $install_prog $dir/$dlname \$dldir/$dlname'
11775     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11776       dlpath=$dir/\$dldll~
11777        $rm \$dlpath'
11778     shlibpath_overrides_runpath=yes
11779
11780     case $host_os in
11781     cygwin*)
11782       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11783       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11784       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11785       ;;
11786     mingw*)
11787       # MinGW DLLs use traditional 'lib' prefix
11788       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11789       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11790       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11791         # It is most probably a Windows format PATH printed by
11792         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11793         # path with ; separators, and with drive letters. We can handle the
11794         # drive letters (cygwin fileutils understands them), so leave them,
11795         # especially as we might pass files found there to a mingw objdump,
11796         # which wouldn't understand a cygwinified path. Ahh.
11797         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11798       else
11799         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11800       fi
11801       ;;
11802     pw32*)
11803       # pw32 DLLs use 'pw' prefix rather than 'lib'
11804       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11805       ;;
11806     esac
11807     ;;
11808
11809   *)
11810     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11811     ;;
11812   esac
11813   dynamic_linker='Win32 ld.exe'
11814   # FIXME: first we should search . and the directory the executable is in
11815   shlibpath_var=PATH
11816   ;;
11817
11818 darwin* | rhapsody*)
11819   dynamic_linker="$host_os dyld"
11820   version_type=darwin
11821   need_lib_prefix=no
11822   need_version=no
11823   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11824   soname_spec='${libname}${release}${major}$shared_ext'
11825   shlibpath_overrides_runpath=yes
11826   shlibpath_var=DYLD_LIBRARY_PATH
11827   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11828   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11829   if test "$GCC" = yes; then
11830     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"`
11831   else
11832     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11833   fi
11834   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11835   ;;
11836
11837 dgux*)
11838   version_type=linux
11839   need_lib_prefix=no
11840   need_version=no
11841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11842   soname_spec='${libname}${release}${shared_ext}$major'
11843   shlibpath_var=LD_LIBRARY_PATH
11844   ;;
11845
11846 freebsd1*)
11847   dynamic_linker=no
11848   ;;
11849
11850 kfreebsd*-gnu)
11851   version_type=linux
11852   need_lib_prefix=no
11853   need_version=no
11854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11855   soname_spec='${libname}${release}${shared_ext}$major'
11856   shlibpath_var=LD_LIBRARY_PATH
11857   shlibpath_overrides_runpath=no
11858   hardcode_into_libs=yes
11859   dynamic_linker='GNU ld.so'
11860   ;;
11861
11862 freebsd* | dragonfly*)
11863   # DragonFly does not have aout.  When/if they implement a new
11864   # versioning mechanism, adjust this.
11865   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11866   version_type=freebsd-$objformat
11867   case $version_type in
11868     freebsd-elf*)
11869       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11870       need_version=no
11871       need_lib_prefix=no
11872       ;;
11873     freebsd-*)
11874       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11875       need_version=yes
11876       ;;
11877   esac
11878   shlibpath_var=LD_LIBRARY_PATH
11879   case $host_os in
11880   freebsd2*)
11881     shlibpath_overrides_runpath=yes
11882     ;;
11883   freebsd3.[01]* | freebsdelf3.[01]*)
11884     shlibpath_overrides_runpath=yes
11885     hardcode_into_libs=yes
11886     ;;
11887   *) # from 3.2 on
11888     shlibpath_overrides_runpath=no
11889     hardcode_into_libs=yes
11890     ;;
11891   esac
11892   ;;
11893
11894 gnu*)
11895   version_type=linux
11896   need_lib_prefix=no
11897   need_version=no
11898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11899   soname_spec='${libname}${release}${shared_ext}$major'
11900   shlibpath_var=LD_LIBRARY_PATH
11901   hardcode_into_libs=yes
11902   ;;
11903
11904 hpux9* | hpux10* | hpux11*)
11905   # Give a soname corresponding to the major version so that dld.sl refuses to
11906   # link against other versions.
11907   version_type=sunos
11908   need_lib_prefix=no
11909   need_version=no
11910   case "$host_cpu" in
11911   ia64*)
11912     shrext_cmds='.so'
11913     hardcode_into_libs=yes
11914     dynamic_linker="$host_os dld.so"
11915     shlibpath_var=LD_LIBRARY_PATH
11916     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918     soname_spec='${libname}${release}${shared_ext}$major'
11919     if test "X$HPUX_IA64_MODE" = X32; then
11920       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11921     else
11922       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11923     fi
11924     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11925     ;;
11926    hppa*64*)
11927      shrext_cmds='.sl'
11928      hardcode_into_libs=yes
11929      dynamic_linker="$host_os dld.sl"
11930      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11931      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11932      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11933      soname_spec='${libname}${release}${shared_ext}$major'
11934      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11935      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11936      ;;
11937    *)
11938     shrext_cmds='.sl'
11939     dynamic_linker="$host_os dld.sl"
11940     shlibpath_var=SHLIB_PATH
11941     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943     soname_spec='${libname}${release}${shared_ext}$major'
11944     ;;
11945   esac
11946   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11947   postinstall_cmds='chmod 555 $lib'
11948   ;;
11949
11950 irix5* | irix6* | nonstopux*)
11951   case $host_os in
11952     nonstopux*) version_type=nonstopux ;;
11953     *)
11954         if test "$lt_cv_prog_gnu_ld" = yes; then
11955                 version_type=linux
11956         else
11957                 version_type=irix
11958         fi ;;
11959   esac
11960   need_lib_prefix=no
11961   need_version=no
11962   soname_spec='${libname}${release}${shared_ext}$major'
11963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11964   case $host_os in
11965   irix5* | nonstopux*)
11966     libsuff= shlibsuff=
11967     ;;
11968   *)
11969     case $LD in # libtool.m4 will add one of these switches to LD
11970     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11971       libsuff= shlibsuff= libmagic=32-bit;;
11972     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11973       libsuff=32 shlibsuff=N32 libmagic=N32;;
11974     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11975       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11976     *) libsuff= shlibsuff= libmagic=never-match;;
11977     esac
11978     ;;
11979   esac
11980   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11981   shlibpath_overrides_runpath=no
11982   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11983   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11984   hardcode_into_libs=yes
11985   ;;
11986
11987 # No shared lib support for Linux oldld, aout, or coff.
11988 linux*oldld* | linux*aout* | linux*coff*)
11989   dynamic_linker=no
11990   ;;
11991
11992 # This must be Linux ELF.
11993 linux*)
11994   version_type=linux
11995   need_lib_prefix=no
11996   need_version=no
11997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11998   soname_spec='${libname}${release}${shared_ext}$major'
11999   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12000   shlibpath_var=LD_LIBRARY_PATH
12001   shlibpath_overrides_runpath=no
12002   # This implies no fast_install, which is unacceptable.
12003   # Some rework will be needed to allow for fast_install
12004   # before this can be enabled.
12005   hardcode_into_libs=yes
12006
12007   # Append ld.so.conf contents to the search path
12008   if test -f /etc/ld.so.conf; then
12009     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' ' '`
12010     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12011   fi
12012
12013   # We used to test for /lib/ld.so.1 and disable shared libraries on
12014   # powerpc, because MkLinux only supported shared libraries with the
12015   # GNU dynamic linker.  Since this was broken with cross compilers,
12016   # most powerpc-linux boxes support dynamic linking these days and
12017   # people can always --disable-shared, the test was removed, and we
12018   # assume the GNU/Linux dynamic linker is in use.
12019   dynamic_linker='GNU/Linux ld.so'
12020   ;;
12021
12022 knetbsd*-gnu)
12023   version_type=linux
12024   need_lib_prefix=no
12025   need_version=no
12026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12027   soname_spec='${libname}${release}${shared_ext}$major'
12028   shlibpath_var=LD_LIBRARY_PATH
12029   shlibpath_overrides_runpath=no
12030   hardcode_into_libs=yes
12031   dynamic_linker='GNU ld.so'
12032   ;;
12033
12034 netbsd*)
12035   version_type=sunos
12036   need_lib_prefix=no
12037   need_version=no
12038   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12040     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12041     dynamic_linker='NetBSD (a.out) ld.so'
12042   else
12043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12044     soname_spec='${libname}${release}${shared_ext}$major'
12045     dynamic_linker='NetBSD ld.elf_so'
12046   fi
12047   shlibpath_var=LD_LIBRARY_PATH
12048   shlibpath_overrides_runpath=yes
12049   hardcode_into_libs=yes
12050   ;;
12051
12052 newsos6)
12053   version_type=linux
12054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055   shlibpath_var=LD_LIBRARY_PATH
12056   shlibpath_overrides_runpath=yes
12057   ;;
12058
12059 nto-qnx*)
12060   version_type=linux
12061   need_lib_prefix=no
12062   need_version=no
12063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12064   soname_spec='${libname}${release}${shared_ext}$major'
12065   shlibpath_var=LD_LIBRARY_PATH
12066   shlibpath_overrides_runpath=yes
12067   ;;
12068
12069 openbsd*)
12070   version_type=sunos
12071   need_lib_prefix=no
12072   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12073   case $host_os in
12074     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12075     *)                         need_version=no  ;;
12076   esac
12077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12078   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12079   shlibpath_var=LD_LIBRARY_PATH
12080   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12081     case $host_os in
12082       openbsd2.[89] | openbsd2.[89].*)
12083         shlibpath_overrides_runpath=no
12084         ;;
12085       *)
12086         shlibpath_overrides_runpath=yes
12087         ;;
12088       esac
12089   else
12090     shlibpath_overrides_runpath=yes
12091   fi
12092   ;;
12093
12094 os2*)
12095   libname_spec='$name'
12096   shrext_cmds=".dll"
12097   need_lib_prefix=no
12098   library_names_spec='$libname${shared_ext} $libname.a'
12099   dynamic_linker='OS/2 ld.exe'
12100   shlibpath_var=LIBPATH
12101   ;;
12102
12103 osf3* | osf4* | osf5*)
12104   version_type=osf
12105   need_lib_prefix=no
12106   need_version=no
12107   soname_spec='${libname}${release}${shared_ext}$major'
12108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12109   shlibpath_var=LD_LIBRARY_PATH
12110   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12111   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12112   ;;
12113
12114 sco3.2v5*)
12115   version_type=osf
12116   soname_spec='${libname}${release}${shared_ext}$major'
12117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118   shlibpath_var=LD_LIBRARY_PATH
12119   ;;
12120
12121 solaris*)
12122   version_type=linux
12123   need_lib_prefix=no
12124   need_version=no
12125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12126   soname_spec='${libname}${release}${shared_ext}$major'
12127   shlibpath_var=LD_LIBRARY_PATH
12128   shlibpath_overrides_runpath=yes
12129   hardcode_into_libs=yes
12130   # ldd complains unless libraries are executable
12131   postinstall_cmds='chmod +x $lib'
12132   ;;
12133
12134 sunos4*)
12135   version_type=sunos
12136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12137   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12138   shlibpath_var=LD_LIBRARY_PATH
12139   shlibpath_overrides_runpath=yes
12140   if test "$with_gnu_ld" = yes; then
12141     need_lib_prefix=no
12142   fi
12143   need_version=yes
12144   ;;
12145
12146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12147   version_type=linux
12148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149   soname_spec='${libname}${release}${shared_ext}$major'
12150   shlibpath_var=LD_LIBRARY_PATH
12151   case $host_vendor in
12152     sni)
12153       shlibpath_overrides_runpath=no
12154       need_lib_prefix=no
12155       export_dynamic_flag_spec='${wl}-Blargedynsym'
12156       runpath_var=LD_RUN_PATH
12157       ;;
12158     siemens)
12159       need_lib_prefix=no
12160       ;;
12161     motorola)
12162       need_lib_prefix=no
12163       need_version=no
12164       shlibpath_overrides_runpath=no
12165       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12166       ;;
12167   esac
12168   ;;
12169
12170 sysv4*MP*)
12171   if test -d /usr/nec ;then
12172     version_type=linux
12173     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12174     soname_spec='$libname${shared_ext}.$major'
12175     shlibpath_var=LD_LIBRARY_PATH
12176   fi
12177   ;;
12178
12179 uts4*)
12180   version_type=linux
12181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12182   soname_spec='${libname}${release}${shared_ext}$major'
12183   shlibpath_var=LD_LIBRARY_PATH
12184   ;;
12185
12186 *)
12187   dynamic_linker=no
12188   ;;
12189 esac
12190 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12191 echo "${ECHO_T}$dynamic_linker" >&6
12192 test "$dynamic_linker" = no && can_build_shared=no
12193
12194 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12195 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12196 hardcode_action_CXX=
12197 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12198    test -n "$runpath_var_CXX" || \
12199    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12200
12201   # We can hardcode non-existant directories.
12202   if test "$hardcode_direct_CXX" != no &&
12203      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12204      # have to relink, otherwise we might link with an installed library
12205      # when we should be linking with a yet-to-be-installed one
12206      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12207      test "$hardcode_minus_L_CXX" != no; then
12208     # Linking always hardcodes the temporary library directory.
12209     hardcode_action_CXX=relink
12210   else
12211     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12212     hardcode_action_CXX=immediate
12213   fi
12214 else
12215   # We cannot hardcode anything, or else we can only hardcode existing
12216   # directories.
12217   hardcode_action_CXX=unsupported
12218 fi
12219 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12220 echo "${ECHO_T}$hardcode_action_CXX" >&6
12221
12222 if test "$hardcode_action_CXX" = relink; then
12223   # Fast installation is not supported
12224   enable_fast_install=no
12225 elif test "$shlibpath_overrides_runpath" = yes ||
12226      test "$enable_shared" = no; then
12227   # Fast installation is not necessary
12228   enable_fast_install=needless
12229 fi
12230
12231 striplib=
12232 old_striplib=
12233 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12234 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12235 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12236   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12237   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12238   echo "$as_me:$LINENO: result: yes" >&5
12239 echo "${ECHO_T}yes" >&6
12240 else
12241 # FIXME - insert some real tests, host_os isn't really good enough
12242   case $host_os in
12243    darwin*)
12244        if test -n "$STRIP" ; then
12245          striplib="$STRIP -x"
12246          echo "$as_me:$LINENO: result: yes" >&5
12247 echo "${ECHO_T}yes" >&6
12248        else
12249   echo "$as_me:$LINENO: result: no" >&5
12250 echo "${ECHO_T}no" >&6
12251 fi
12252        ;;
12253    *)
12254   echo "$as_me:$LINENO: result: no" >&5
12255 echo "${ECHO_T}no" >&6
12256     ;;
12257   esac
12258 fi
12259
12260 if test "x$enable_dlopen" != xyes; then
12261   enable_dlopen=unknown
12262   enable_dlopen_self=unknown
12263   enable_dlopen_self_static=unknown
12264 else
12265   lt_cv_dlopen=no
12266   lt_cv_dlopen_libs=
12267
12268   case $host_os in
12269   beos*)
12270     lt_cv_dlopen="load_add_on"
12271     lt_cv_dlopen_libs=
12272     lt_cv_dlopen_self=yes
12273     ;;
12274
12275   mingw* | pw32*)
12276     lt_cv_dlopen="LoadLibrary"
12277     lt_cv_dlopen_libs=
12278    ;;
12279
12280   cygwin*)
12281     lt_cv_dlopen="dlopen"
12282     lt_cv_dlopen_libs=
12283    ;;
12284
12285   darwin*)
12286   # if libdl is installed we need to link against it
12287     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12288 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12289 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292   ac_check_lib_save_LIBS=$LIBS
12293 LIBS="-ldl  $LIBS"
12294 cat >conftest.$ac_ext <<_ACEOF
12295 /* confdefs.h.  */
12296 _ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h.  */
12300
12301 /* Override any gcc2 internal prototype to avoid an error.  */
12302 #ifdef __cplusplus
12303 extern "C"
12304 #endif
12305 /* We use char because int might match the return type of a gcc2
12306    builtin and then its argument prototype would still apply.  */
12307 char dlopen ();
12308 int
12309 main ()
12310 {
12311 dlopen ();
12312   ;
12313   return 0;
12314 }
12315 _ACEOF
12316 rm -f conftest.$ac_objext conftest$ac_exeext
12317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12318   (eval $ac_link) 2>conftest.er1
12319   ac_status=$?
12320   grep -v '^ *+' conftest.er1 >conftest.err
12321   rm -f conftest.er1
12322   cat conftest.err >&5
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); } &&
12325          { ac_try='test -z "$ac_cxx_werror_flag"
12326                          || test ! -s conftest.err'
12327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328   (eval $ac_try) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); }; } &&
12332          { ac_try='test -s conftest$ac_exeext'
12333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334   (eval $ac_try) 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; }; then
12338   ac_cv_lib_dl_dlopen=yes
12339 else
12340   echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343 ac_cv_lib_dl_dlopen=no
12344 fi
12345 rm -f conftest.err conftest.$ac_objext \
12346       conftest$ac_exeext conftest.$ac_ext
12347 LIBS=$ac_check_lib_save_LIBS
12348 fi
12349 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12350 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12351 if test $ac_cv_lib_dl_dlopen = yes; then
12352   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12353 else
12354
12355     lt_cv_dlopen="dyld"
12356     lt_cv_dlopen_libs=
12357     lt_cv_dlopen_self=yes
12358
12359 fi
12360
12361    ;;
12362
12363   *)
12364     echo "$as_me:$LINENO: checking for shl_load" >&5
12365 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12366 if test "${ac_cv_func_shl_load+set}" = set; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369   cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12377 #define shl_load innocuous_shl_load
12378
12379 /* System header to define __stub macros and hopefully few prototypes,
12380     which can conflict with char shl_load (); below.
12381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12382     <limits.h> exists even on freestanding compilers.  */
12383
12384 #ifdef __STDC__
12385 # include <limits.h>
12386 #else
12387 # include <assert.h>
12388 #endif
12389
12390 #undef shl_load
12391
12392 /* Override any gcc2 internal prototype to avoid an error.  */
12393 #ifdef __cplusplus
12394 extern "C"
12395 {
12396 #endif
12397 /* We use char because int might match the return type of a gcc2
12398    builtin and then its argument prototype would still apply.  */
12399 char shl_load ();
12400 /* The GNU C library defines this for functions which it implements
12401     to always fail with ENOSYS.  Some functions are actually named
12402     something starting with __ and the normal name is an alias.  */
12403 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12404 choke me
12405 #else
12406 char (*f) () = shl_load;
12407 #endif
12408 #ifdef __cplusplus
12409 }
12410 #endif
12411
12412 int
12413 main ()
12414 {
12415 return f != shl_load;
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12422   (eval $ac_link) 2>conftest.er1
12423   ac_status=$?
12424   grep -v '^ *+' conftest.er1 >conftest.err
12425   rm -f conftest.er1
12426   cat conftest.err >&5
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); } &&
12429          { ac_try='test -z "$ac_cxx_werror_flag"
12430                          || test ! -s conftest.err'
12431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432   (eval $ac_try) 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); }; } &&
12436          { ac_try='test -s conftest$ac_exeext'
12437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438   (eval $ac_try) 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; }; then
12442   ac_cv_func_shl_load=yes
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447 ac_cv_func_shl_load=no
12448 fi
12449 rm -f conftest.err conftest.$ac_objext \
12450       conftest$ac_exeext conftest.$ac_ext
12451 fi
12452 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12453 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12454 if test $ac_cv_func_shl_load = yes; then
12455   lt_cv_dlopen="shl_load"
12456 else
12457   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12458 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12459 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12460   echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462   ac_check_lib_save_LIBS=$LIBS
12463 LIBS="-ldld  $LIBS"
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h.  */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h.  */
12470
12471 /* Override any gcc2 internal prototype to avoid an error.  */
12472 #ifdef __cplusplus
12473 extern "C"
12474 #endif
12475 /* We use char because int might match the return type of a gcc2
12476    builtin and then its argument prototype would still apply.  */
12477 char shl_load ();
12478 int
12479 main ()
12480 {
12481 shl_load ();
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488   (eval $ac_link) 2>conftest.er1
12489   ac_status=$?
12490   grep -v '^ *+' conftest.er1 >conftest.err
12491   rm -f conftest.er1
12492   cat conftest.err >&5
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); } &&
12495          { ac_try='test -z "$ac_cxx_werror_flag"
12496                          || test ! -s conftest.err'
12497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498   (eval $ac_try) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); }; } &&
12502          { ac_try='test -s conftest$ac_exeext'
12503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504   (eval $ac_try) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; }; then
12508   ac_cv_lib_dld_shl_load=yes
12509 else
12510   echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12512
12513 ac_cv_lib_dld_shl_load=no
12514 fi
12515 rm -f conftest.err conftest.$ac_objext \
12516       conftest$ac_exeext conftest.$ac_ext
12517 LIBS=$ac_check_lib_save_LIBS
12518 fi
12519 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12520 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12521 if test $ac_cv_lib_dld_shl_load = yes; then
12522   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12523 else
12524   echo "$as_me:$LINENO: checking for dlopen" >&5
12525 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12526 if test "${ac_cv_func_dlopen+set}" = set; then
12527   echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529   cat >conftest.$ac_ext <<_ACEOF
12530 /* confdefs.h.  */
12531 _ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h.  */
12535 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12537 #define dlopen innocuous_dlopen
12538
12539 /* System header to define __stub macros and hopefully few prototypes,
12540     which can conflict with char dlopen (); below.
12541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12542     <limits.h> exists even on freestanding compilers.  */
12543
12544 #ifdef __STDC__
12545 # include <limits.h>
12546 #else
12547 # include <assert.h>
12548 #endif
12549
12550 #undef dlopen
12551
12552 /* Override any gcc2 internal prototype to avoid an error.  */
12553 #ifdef __cplusplus
12554 extern "C"
12555 {
12556 #endif
12557 /* We use char because int might match the return type of a gcc2
12558    builtin and then its argument prototype would still apply.  */
12559 char dlopen ();
12560 /* The GNU C library defines this for functions which it implements
12561     to always fail with ENOSYS.  Some functions are actually named
12562     something starting with __ and the normal name is an alias.  */
12563 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12564 choke me
12565 #else
12566 char (*f) () = dlopen;
12567 #endif
12568 #ifdef __cplusplus
12569 }
12570 #endif
12571
12572 int
12573 main ()
12574 {
12575 return f != dlopen;
12576   ;
12577   return 0;
12578 }
12579 _ACEOF
12580 rm -f conftest.$ac_objext conftest$ac_exeext
12581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12582   (eval $ac_link) 2>conftest.er1
12583   ac_status=$?
12584   grep -v '^ *+' conftest.er1 >conftest.err
12585   rm -f conftest.er1
12586   cat conftest.err >&5
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); } &&
12589          { ac_try='test -z "$ac_cxx_werror_flag"
12590                          || test ! -s conftest.err'
12591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592   (eval $ac_try) 2>&5
12593   ac_status=$?
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); }; } &&
12596          { ac_try='test -s conftest$ac_exeext'
12597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598   (eval $ac_try) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); }; }; then
12602   ac_cv_func_dlopen=yes
12603 else
12604   echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12606
12607 ac_cv_func_dlopen=no
12608 fi
12609 rm -f conftest.err conftest.$ac_objext \
12610       conftest$ac_exeext conftest.$ac_ext
12611 fi
12612 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12613 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12614 if test $ac_cv_func_dlopen = yes; then
12615   lt_cv_dlopen="dlopen"
12616 else
12617   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12618 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12619 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12620   echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622   ac_check_lib_save_LIBS=$LIBS
12623 LIBS="-ldl  $LIBS"
12624 cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h.  */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h.  */
12630
12631 /* Override any gcc2 internal prototype to avoid an error.  */
12632 #ifdef __cplusplus
12633 extern "C"
12634 #endif
12635 /* We use char because int might match the return type of a gcc2
12636    builtin and then its argument prototype would still apply.  */
12637 char dlopen ();
12638 int
12639 main ()
12640 {
12641 dlopen ();
12642   ;
12643   return 0;
12644 }
12645 _ACEOF
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648   (eval $ac_link) 2>conftest.er1
12649   ac_status=$?
12650   grep -v '^ *+' conftest.er1 >conftest.err
12651   rm -f conftest.er1
12652   cat conftest.err >&5
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); } &&
12655          { ac_try='test -z "$ac_cxx_werror_flag"
12656                          || test ! -s conftest.err'
12657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658   (eval $ac_try) 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; } &&
12662          { ac_try='test -s conftest$ac_exeext'
12663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664   (eval $ac_try) 2>&5
12665   ac_status=$?
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); }; }; then
12668   ac_cv_lib_dl_dlopen=yes
12669 else
12670   echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12672
12673 ac_cv_lib_dl_dlopen=no
12674 fi
12675 rm -f conftest.err conftest.$ac_objext \
12676       conftest$ac_exeext conftest.$ac_ext
12677 LIBS=$ac_check_lib_save_LIBS
12678 fi
12679 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12680 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12681 if test $ac_cv_lib_dl_dlopen = yes; then
12682   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12683 else
12684   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12685 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12686 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12687   echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689   ac_check_lib_save_LIBS=$LIBS
12690 LIBS="-lsvld  $LIBS"
12691 cat >conftest.$ac_ext <<_ACEOF
12692 /* confdefs.h.  */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h.  */
12697
12698 /* Override any gcc2 internal prototype to avoid an error.  */
12699 #ifdef __cplusplus
12700 extern "C"
12701 #endif
12702 /* We use char because int might match the return type of a gcc2
12703    builtin and then its argument prototype would still apply.  */
12704 char dlopen ();
12705 int
12706 main ()
12707 {
12708 dlopen ();
12709   ;
12710   return 0;
12711 }
12712 _ACEOF
12713 rm -f conftest.$ac_objext conftest$ac_exeext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715   (eval $ac_link) 2>conftest.er1
12716   ac_status=$?
12717   grep -v '^ *+' conftest.er1 >conftest.err
12718   rm -f conftest.er1
12719   cat conftest.err >&5
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); } &&
12722          { ac_try='test -z "$ac_cxx_werror_flag"
12723                          || test ! -s conftest.err'
12724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725   (eval $ac_try) 2>&5
12726   ac_status=$?
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); }; } &&
12729          { ac_try='test -s conftest$ac_exeext'
12730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731   (eval $ac_try) 2>&5
12732   ac_status=$?
12733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); }; }; then
12735   ac_cv_lib_svld_dlopen=yes
12736 else
12737   echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12739
12740 ac_cv_lib_svld_dlopen=no
12741 fi
12742 rm -f conftest.err conftest.$ac_objext \
12743       conftest$ac_exeext conftest.$ac_ext
12744 LIBS=$ac_check_lib_save_LIBS
12745 fi
12746 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12747 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12748 if test $ac_cv_lib_svld_dlopen = yes; then
12749   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12750 else
12751   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12752 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12753 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12754   echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756   ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-ldld  $LIBS"
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h.  */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h.  */
12764
12765 /* Override any gcc2 internal prototype to avoid an error.  */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 /* We use char because int might match the return type of a gcc2
12770    builtin and then its argument prototype would still apply.  */
12771 char dld_link ();
12772 int
12773 main ()
12774 {
12775 dld_link ();
12776   ;
12777   return 0;
12778 }
12779 _ACEOF
12780 rm -f conftest.$ac_objext conftest$ac_exeext
12781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12782   (eval $ac_link) 2>conftest.er1
12783   ac_status=$?
12784   grep -v '^ *+' conftest.er1 >conftest.err
12785   rm -f conftest.er1
12786   cat conftest.err >&5
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); } &&
12789          { ac_try='test -z "$ac_cxx_werror_flag"
12790                          || test ! -s conftest.err'
12791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792   (eval $ac_try) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; } &&
12796          { ac_try='test -s conftest$ac_exeext'
12797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798   (eval $ac_try) 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; }; then
12802   ac_cv_lib_dld_dld_link=yes
12803 else
12804   echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12806
12807 ac_cv_lib_dld_dld_link=no
12808 fi
12809 rm -f conftest.err conftest.$ac_objext \
12810       conftest$ac_exeext conftest.$ac_ext
12811 LIBS=$ac_check_lib_save_LIBS
12812 fi
12813 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12814 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12815 if test $ac_cv_lib_dld_dld_link = yes; then
12816   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12817 fi
12818
12819
12820 fi
12821
12822
12823 fi
12824
12825
12826 fi
12827
12828
12829 fi
12830
12831
12832 fi
12833
12834     ;;
12835   esac
12836
12837   if test "x$lt_cv_dlopen" != xno; then
12838     enable_dlopen=yes
12839   else
12840     enable_dlopen=no
12841   fi
12842
12843   case $lt_cv_dlopen in
12844   dlopen)
12845     save_CPPFLAGS="$CPPFLAGS"
12846     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12847
12848     save_LDFLAGS="$LDFLAGS"
12849     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12850
12851     save_LIBS="$LIBS"
12852     LIBS="$lt_cv_dlopen_libs $LIBS"
12853
12854     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12855 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12856 if test "${lt_cv_dlopen_self+set}" = set; then
12857   echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859           if test "$cross_compiling" = yes; then :
12860   lt_cv_dlopen_self=cross
12861 else
12862   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12863   lt_status=$lt_dlunknown
12864   cat > conftest.$ac_ext <<EOF
12865 #line 12865 "configure"
12866 #include "confdefs.h"
12867
12868 #if HAVE_DLFCN_H
12869 #include <dlfcn.h>
12870 #endif
12871
12872 #include <stdio.h>
12873
12874 #ifdef RTLD_GLOBAL
12875 #  define LT_DLGLOBAL           RTLD_GLOBAL
12876 #else
12877 #  ifdef DL_GLOBAL
12878 #    define LT_DLGLOBAL         DL_GLOBAL
12879 #  else
12880 #    define LT_DLGLOBAL         0
12881 #  endif
12882 #endif
12883
12884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12885    find out it does not work in some platform. */
12886 #ifndef LT_DLLAZY_OR_NOW
12887 #  ifdef RTLD_LAZY
12888 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12889 #  else
12890 #    ifdef DL_LAZY
12891 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12892 #    else
12893 #      ifdef RTLD_NOW
12894 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12895 #      else
12896 #        ifdef DL_NOW
12897 #          define LT_DLLAZY_OR_NOW      DL_NOW
12898 #        else
12899 #          define LT_DLLAZY_OR_NOW      0
12900 #        endif
12901 #      endif
12902 #    endif
12903 #  endif
12904 #endif
12905
12906 #ifdef __cplusplus
12907 extern "C" void exit (int);
12908 #endif
12909
12910 void fnord() { int i=42;}
12911 int main ()
12912 {
12913   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12914   int status = $lt_dlunknown;
12915
12916   if (self)
12917     {
12918       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12919       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12920       /* dlclose (self); */
12921     }
12922
12923     exit (status);
12924 }
12925 EOF
12926   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12927   (eval $ac_link) 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12931     (./conftest; exit; ) 2>/dev/null
12932     lt_status=$?
12933     case x$lt_status in
12934       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12935       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12936       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12937     esac
12938   else :
12939     # compilation failed
12940     lt_cv_dlopen_self=no
12941   fi
12942 fi
12943 rm -fr conftest*
12944
12945
12946 fi
12947 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12948 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12949
12950     if test "x$lt_cv_dlopen_self" = xyes; then
12951       LDFLAGS="$LDFLAGS $link_static_flag"
12952       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12953 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12954 if test "${lt_cv_dlopen_self_static+set}" = set; then
12955   echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957           if test "$cross_compiling" = yes; then :
12958   lt_cv_dlopen_self_static=cross
12959 else
12960   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12961   lt_status=$lt_dlunknown
12962   cat > conftest.$ac_ext <<EOF
12963 #line 12963 "configure"
12964 #include "confdefs.h"
12965
12966 #if HAVE_DLFCN_H
12967 #include <dlfcn.h>
12968 #endif
12969
12970 #include <stdio.h>
12971
12972 #ifdef RTLD_GLOBAL
12973 #  define LT_DLGLOBAL           RTLD_GLOBAL
12974 #else
12975 #  ifdef DL_GLOBAL
12976 #    define LT_DLGLOBAL         DL_GLOBAL
12977 #  else
12978 #    define LT_DLGLOBAL         0
12979 #  endif
12980 #endif
12981
12982 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12983    find out it does not work in some platform. */
12984 #ifndef LT_DLLAZY_OR_NOW
12985 #  ifdef RTLD_LAZY
12986 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12987 #  else
12988 #    ifdef DL_LAZY
12989 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12990 #    else
12991 #      ifdef RTLD_NOW
12992 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12993 #      else
12994 #        ifdef DL_NOW
12995 #          define LT_DLLAZY_OR_NOW      DL_NOW
12996 #        else
12997 #          define LT_DLLAZY_OR_NOW      0
12998 #        endif
12999 #      endif
13000 #    endif
13001 #  endif
13002 #endif
13003
13004 #ifdef __cplusplus
13005 extern "C" void exit (int);
13006 #endif
13007
13008 void fnord() { int i=42;}
13009 int main ()
13010 {
13011   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13012   int status = $lt_dlunknown;
13013
13014   if (self)
13015     {
13016       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13017       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13018       /* dlclose (self); */
13019     }
13020
13021     exit (status);
13022 }
13023 EOF
13024   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025   (eval $ac_link) 2>&5
13026   ac_status=$?
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13029     (./conftest; exit; ) 2>/dev/null
13030     lt_status=$?
13031     case x$lt_status in
13032       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13033       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13034       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13035     esac
13036   else :
13037     # compilation failed
13038     lt_cv_dlopen_self_static=no
13039   fi
13040 fi
13041 rm -fr conftest*
13042
13043
13044 fi
13045 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13046 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13047     fi
13048
13049     CPPFLAGS="$save_CPPFLAGS"
13050     LDFLAGS="$save_LDFLAGS"
13051     LIBS="$save_LIBS"
13052     ;;
13053   esac
13054
13055   case $lt_cv_dlopen_self in
13056   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13057   *) enable_dlopen_self=unknown ;;
13058   esac
13059
13060   case $lt_cv_dlopen_self_static in
13061   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13062   *) enable_dlopen_self_static=unknown ;;
13063   esac
13064 fi
13065
13066
13067 # The else clause should only fire when bootstrapping the
13068 # libtool distribution, otherwise you forgot to ship ltmain.sh
13069 # with your package, and you will get complaints that there are
13070 # no rules to generate ltmain.sh.
13071 if test -f "$ltmain"; then
13072   # See if we are running on zsh, and set the options which allow our commands through
13073   # without removal of \ escapes.
13074   if test -n "${ZSH_VERSION+set}" ; then
13075     setopt NO_GLOB_SUBST
13076   fi
13077   # Now quote all the things that may contain metacharacters while being
13078   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13079   # variables and quote the copies for generation of the libtool script.
13080   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13081     SED SHELL STRIP \
13082     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13083     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13084     deplibs_check_method reload_flag reload_cmds need_locks \
13085     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13086     lt_cv_sys_global_symbol_to_c_name_address \
13087     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13088     old_postinstall_cmds old_postuninstall_cmds \
13089     compiler_CXX \
13090     CC_CXX \
13091     LD_CXX \
13092     lt_prog_compiler_wl_CXX \
13093     lt_prog_compiler_pic_CXX \
13094     lt_prog_compiler_static_CXX \
13095     lt_prog_compiler_no_builtin_flag_CXX \
13096     export_dynamic_flag_spec_CXX \
13097     thread_safe_flag_spec_CXX \
13098     whole_archive_flag_spec_CXX \
13099     enable_shared_with_static_runtimes_CXX \
13100     old_archive_cmds_CXX \
13101     old_archive_from_new_cmds_CXX \
13102     predep_objects_CXX \
13103     postdep_objects_CXX \
13104     predeps_CXX \
13105     postdeps_CXX \
13106     compiler_lib_search_path_CXX \
13107     archive_cmds_CXX \
13108     archive_expsym_cmds_CXX \
13109     postinstall_cmds_CXX \
13110     postuninstall_cmds_CXX \
13111     old_archive_from_expsyms_cmds_CXX \
13112     allow_undefined_flag_CXX \
13113     no_undefined_flag_CXX \
13114     export_symbols_cmds_CXX \
13115     hardcode_libdir_flag_spec_CXX \
13116     hardcode_libdir_flag_spec_ld_CXX \
13117     hardcode_libdir_separator_CXX \
13118     hardcode_automatic_CXX \
13119     module_cmds_CXX \
13120     module_expsym_cmds_CXX \
13121     lt_cv_prog_compiler_c_o_CXX \
13122     exclude_expsyms_CXX \
13123     include_expsyms_CXX; do
13124
13125     case $var in
13126     old_archive_cmds_CXX | \
13127     old_archive_from_new_cmds_CXX | \
13128     archive_cmds_CXX | \
13129     archive_expsym_cmds_CXX | \
13130     module_cmds_CXX | \
13131     module_expsym_cmds_CXX | \
13132     old_archive_from_expsyms_cmds_CXX | \
13133     export_symbols_cmds_CXX | \
13134     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13135     postinstall_cmds | postuninstall_cmds | \
13136     old_postinstall_cmds | old_postuninstall_cmds | \
13137     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13138       # Double-quote double-evaled strings.
13139       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13140       ;;
13141     *)
13142       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13143       ;;
13144     esac
13145   done
13146
13147   case $lt_echo in
13148   *'\$0 --fallback-echo"')
13149     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13150     ;;
13151   esac
13152
13153 cfgfile="$ofile"
13154
13155   cat <<__EOF__ >> "$cfgfile"
13156 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13157
13158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13159
13160 # Shell to use when invoking shell scripts.
13161 SHELL=$lt_SHELL
13162
13163 # Whether or not to build shared libraries.
13164 build_libtool_libs=$enable_shared
13165
13166 # Whether or not to build static libraries.
13167 build_old_libs=$enable_static
13168
13169 # Whether or not to add -lc for building shared libraries.
13170 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13171
13172 # Whether or not to disallow shared libs when runtime libs are static
13173 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13174
13175 # Whether or not to optimize for fast installation.
13176 fast_install=$enable_fast_install
13177
13178 # The host system.
13179 host_alias=$host_alias
13180 host=$host
13181 host_os=$host_os
13182
13183 # The build system.
13184 build_alias=$build_alias
13185 build=$build
13186 build_os=$build_os
13187
13188 # An echo program that does not interpret backslashes.
13189 echo=$lt_echo
13190
13191 # The archiver.
13192 AR=$lt_AR
13193 AR_FLAGS=$lt_AR_FLAGS
13194
13195 # A C compiler.
13196 LTCC=$lt_LTCC
13197
13198 # A language-specific compiler.
13199 CC=$lt_compiler_CXX
13200
13201 # Is the compiler the GNU C compiler?
13202 with_gcc=$GCC_CXX
13203
13204 # An ERE matcher.
13205 EGREP=$lt_EGREP
13206
13207 # The linker used to build libraries.
13208 LD=$lt_LD_CXX
13209
13210 # Whether we need hard or soft links.
13211 LN_S=$lt_LN_S
13212
13213 # A BSD-compatible nm program.
13214 NM=$lt_NM
13215
13216 # A symbol stripping program
13217 STRIP=$lt_STRIP
13218
13219 # Used to examine libraries when file_magic_cmd begins "file"
13220 MAGIC_CMD=$MAGIC_CMD
13221
13222 # Used on cygwin: DLL creation program.
13223 DLLTOOL="$DLLTOOL"
13224
13225 # Used on cygwin: object dumper.
13226 OBJDUMP="$OBJDUMP"
13227
13228 # Used on cygwin: assembler.
13229 AS="$AS"
13230
13231 # The name of the directory that contains temporary libtool files.
13232 objdir=$objdir
13233
13234 # How to create reloadable object files.
13235 reload_flag=$lt_reload_flag
13236 reload_cmds=$lt_reload_cmds
13237
13238 # How to pass a linker flag through the compiler.
13239 wl=$lt_lt_prog_compiler_wl_CXX
13240
13241 # Object file suffix (normally "o").
13242 objext="$ac_objext"
13243
13244 # Old archive suffix (normally "a").
13245 libext="$libext"
13246
13247 # Shared library suffix (normally ".so").
13248 shrext_cmds='$shrext_cmds'
13249
13250 # Executable file suffix (normally "").
13251 exeext="$exeext"
13252
13253 # Additional compiler flags for building library objects.
13254 pic_flag=$lt_lt_prog_compiler_pic_CXX
13255 pic_mode=$pic_mode
13256
13257 # What is the maximum length of a command?
13258 max_cmd_len=$lt_cv_sys_max_cmd_len
13259
13260 # Does compiler simultaneously support -c and -o options?
13261 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13262
13263 # Must we lock files when doing compilation?
13264 need_locks=$lt_need_locks
13265
13266 # Do we need the lib prefix for modules?
13267 need_lib_prefix=$need_lib_prefix
13268
13269 # Do we need a version for libraries?
13270 need_version=$need_version
13271
13272 # Whether dlopen is supported.
13273 dlopen_support=$enable_dlopen
13274
13275 # Whether dlopen of programs is supported.
13276 dlopen_self=$enable_dlopen_self
13277
13278 # Whether dlopen of statically linked programs is supported.
13279 dlopen_self_static=$enable_dlopen_self_static
13280
13281 # Compiler flag to prevent dynamic linking.
13282 link_static_flag=$lt_lt_prog_compiler_static_CXX
13283
13284 # Compiler flag to turn off builtin functions.
13285 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13286
13287 # Compiler flag to allow reflexive dlopens.
13288 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13289
13290 # Compiler flag to generate shared objects directly from archives.
13291 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13292
13293 # Compiler flag to generate thread-safe objects.
13294 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13295
13296 # Library versioning type.
13297 version_type=$version_type
13298
13299 # Format of library name prefix.
13300 libname_spec=$lt_libname_spec
13301
13302 # List of archive names.  First name is the real one, the rest are links.
13303 # The last name is the one that the linker finds with -lNAME.
13304 library_names_spec=$lt_library_names_spec
13305
13306 # The coded name of the library, if different from the real name.
13307 soname_spec=$lt_soname_spec
13308
13309 # Commands used to build and install an old-style archive.
13310 RANLIB=$lt_RANLIB
13311 old_archive_cmds=$lt_old_archive_cmds_CXX
13312 old_postinstall_cmds=$lt_old_postinstall_cmds
13313 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13314
13315 # Create an old-style archive from a shared archive.
13316 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13317
13318 # Create a temporary old-style archive to link instead of a shared archive.
13319 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13320
13321 # Commands used to build and install a shared archive.
13322 archive_cmds=$lt_archive_cmds_CXX
13323 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13324 postinstall_cmds=$lt_postinstall_cmds
13325 postuninstall_cmds=$lt_postuninstall_cmds
13326
13327 # Commands used to build a loadable module (assumed same as above if empty)
13328 module_cmds=$lt_module_cmds_CXX
13329 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13330
13331 # Commands to strip libraries.
13332 old_striplib=$lt_old_striplib
13333 striplib=$lt_striplib
13334
13335 # Dependencies to place before the objects being linked to create a
13336 # shared library.
13337 predep_objects=$lt_predep_objects_CXX
13338
13339 # Dependencies to place after the objects being linked to create a
13340 # shared library.
13341 postdep_objects=$lt_postdep_objects_CXX
13342
13343 # Dependencies to place before the objects being linked to create a
13344 # shared library.
13345 predeps=$lt_predeps_CXX
13346
13347 # Dependencies to place after the objects being linked to create a
13348 # shared library.
13349 postdeps=$lt_postdeps_CXX
13350
13351 # The library search path used internally by the compiler when linking
13352 # a shared library.
13353 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13354
13355 # Method to check whether dependent libraries are shared objects.
13356 deplibs_check_method=$lt_deplibs_check_method
13357
13358 # Command to use when deplibs_check_method == file_magic.
13359 file_magic_cmd=$lt_file_magic_cmd
13360
13361 # Flag that allows shared libraries with undefined symbols to be built.
13362 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13363
13364 # Flag that forces no undefined symbols.
13365 no_undefined_flag=$lt_no_undefined_flag_CXX
13366
13367 # Commands used to finish a libtool library installation in a directory.
13368 finish_cmds=$lt_finish_cmds
13369
13370 # Same as above, but a single script fragment to be evaled but not shown.
13371 finish_eval=$lt_finish_eval
13372
13373 # Take the output of nm and produce a listing of raw symbols and C names.
13374 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13375
13376 # Transform the output of nm in a proper C declaration
13377 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13378
13379 # Transform the output of nm in a C name address pair
13380 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13381
13382 # This is the shared library runtime path variable.
13383 runpath_var=$runpath_var
13384
13385 # This is the shared library path variable.
13386 shlibpath_var=$shlibpath_var
13387
13388 # Is shlibpath searched before the hard-coded library search path?
13389 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13390
13391 # How to hardcode a shared library path into an executable.
13392 hardcode_action=$hardcode_action_CXX
13393
13394 # Whether we should hardcode library paths into libraries.
13395 hardcode_into_libs=$hardcode_into_libs
13396
13397 # Flag to hardcode \$libdir into a binary during linking.
13398 # This must work even if \$libdir does not exist.
13399 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13400
13401 # If ld is used when linking, flag to hardcode \$libdir into
13402 # a binary during linking. This must work even if \$libdir does
13403 # not exist.
13404 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13405
13406 # Whether we need a single -rpath flag with a separated argument.
13407 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13408
13409 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13410 # resulting binary.
13411 hardcode_direct=$hardcode_direct_CXX
13412
13413 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13414 # resulting binary.
13415 hardcode_minus_L=$hardcode_minus_L_CXX
13416
13417 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13418 # the resulting binary.
13419 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13420
13421 # Set to yes if building a shared library automatically hardcodes DIR into the library
13422 # and all subsequent libraries and executables linked against it.
13423 hardcode_automatic=$hardcode_automatic_CXX
13424
13425 # Variables whose values should be saved in libtool wrapper scripts and
13426 # restored at relink time.
13427 variables_saved_for_relink="$variables_saved_for_relink"
13428
13429 # Whether libtool must link a program against all its dependency libraries.
13430 link_all_deplibs=$link_all_deplibs_CXX
13431
13432 # Compile-time system search path for libraries
13433 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13434
13435 # Run-time system search path for libraries
13436 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13437
13438 # Fix the shell variable \$srcfile for the compiler.
13439 fix_srcfile_path="$fix_srcfile_path_CXX"
13440
13441 # Set to yes if exported symbols are required.
13442 always_export_symbols=$always_export_symbols_CXX
13443
13444 # The commands to list exported symbols.
13445 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13446
13447 # The commands to extract the exported symbol list from a shared archive.
13448 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13449
13450 # Symbols that should not be listed in the preloaded symbols.
13451 exclude_expsyms=$lt_exclude_expsyms_CXX
13452
13453 # Symbols that must always be exported.
13454 include_expsyms=$lt_include_expsyms_CXX
13455
13456 # ### END LIBTOOL TAG CONFIG: $tagname
13457
13458 __EOF__
13459
13460
13461 else
13462   # If there is no Makefile yet, we rely on a make rule to execute
13463   # `config.status --recheck' to rerun these tests and create the
13464   # libtool script then.
13465   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13466   if test -f "$ltmain_in"; then
13467     test -f Makefile && make "$ltmain"
13468   fi
13469 fi
13470
13471
13472 ac_ext=c
13473 ac_cpp='$CPP $CPPFLAGS'
13474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13477
13478 CC=$lt_save_CC
13479 LDCXX=$LD
13480 LD=$lt_save_LD
13481 GCC=$lt_save_GCC
13482 with_gnu_ldcxx=$with_gnu_ld
13483 with_gnu_ld=$lt_save_with_gnu_ld
13484 lt_cv_path_LDCXX=$lt_cv_path_LD
13485 lt_cv_path_LD=$lt_save_path_LD
13486 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13487 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13488
13489         else
13490           tagname=""
13491         fi
13492         ;;
13493
13494       F77)
13495         if test -n "$F77" && test "X$F77" != "Xno"; then
13496
13497 ac_ext=f
13498 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13499 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13500 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13501
13502
13503 archive_cmds_need_lc_F77=no
13504 allow_undefined_flag_F77=
13505 always_export_symbols_F77=no
13506 archive_expsym_cmds_F77=
13507 export_dynamic_flag_spec_F77=
13508 hardcode_direct_F77=no
13509 hardcode_libdir_flag_spec_F77=
13510 hardcode_libdir_flag_spec_ld_F77=
13511 hardcode_libdir_separator_F77=
13512 hardcode_minus_L_F77=no
13513 hardcode_automatic_F77=no
13514 module_cmds_F77=
13515 module_expsym_cmds_F77=
13516 link_all_deplibs_F77=unknown
13517 old_archive_cmds_F77=$old_archive_cmds
13518 no_undefined_flag_F77=
13519 whole_archive_flag_spec_F77=
13520 enable_shared_with_static_runtimes_F77=no
13521
13522 # Source file extension for f77 test sources.
13523 ac_ext=f
13524
13525 # Object file extension for compiled f77 test sources.
13526 objext=o
13527 objext_F77=$objext
13528
13529 # Code to be used in simple compile tests
13530 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13531
13532 # Code to be used in simple link tests
13533 lt_simple_link_test_code="      program t\n      end\n"
13534
13535 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13536
13537 # If no C compiler was specified, use CC.
13538 LTCC=${LTCC-"$CC"}
13539
13540 # Allow CC to be a program name with arguments.
13541 compiler=$CC
13542
13543
13544 # save warnings/boilerplate of simple test code
13545 ac_outfile=conftest.$ac_objext
13546 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13547 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13548 _lt_compiler_boilerplate=`cat conftest.err`
13549 $rm conftest*
13550
13551 ac_outfile=conftest.$ac_objext
13552 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13553 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13554 _lt_linker_boilerplate=`cat conftest.err`
13555 $rm conftest*
13556
13557
13558 # Allow CC to be a program name with arguments.
13559 lt_save_CC="$CC"
13560 CC=${F77-"f77"}
13561 compiler=$CC
13562 compiler_F77=$CC
13563 for cc_temp in $compiler""; do
13564   case $cc_temp in
13565     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13566     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13567     \-*) ;;
13568     *) break;;
13569   esac
13570 done
13571 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13572
13573
13574 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13575 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13576 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13577 echo "${ECHO_T}$can_build_shared" >&6
13578
13579 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13580 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13581 test "$can_build_shared" = "no" && enable_shared=no
13582
13583 # On AIX, shared libraries and static libraries use the same namespace, and
13584 # are all built from PIC.
13585 case "$host_os" in
13586 aix3*)
13587   test "$enable_shared" = yes && enable_static=no
13588   if test -n "$RANLIB"; then
13589     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13590     postinstall_cmds='$RANLIB $lib'
13591   fi
13592   ;;
13593 aix4* | aix5*)
13594   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13595     test "$enable_shared" = yes && enable_static=no
13596   fi
13597   ;;
13598 esac
13599 echo "$as_me:$LINENO: result: $enable_shared" >&5
13600 echo "${ECHO_T}$enable_shared" >&6
13601
13602 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13603 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13604 # Make sure either enable_shared or enable_static is yes.
13605 test "$enable_shared" = yes || enable_static=yes
13606 echo "$as_me:$LINENO: result: $enable_static" >&5
13607 echo "${ECHO_T}$enable_static" >&6
13608
13609 test "$ld_shlibs_F77" = no && can_build_shared=no
13610
13611 GCC_F77="$G77"
13612 LD_F77="$LD"
13613
13614 lt_prog_compiler_wl_F77=
13615 lt_prog_compiler_pic_F77=
13616 lt_prog_compiler_static_F77=
13617
13618 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13619 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13620
13621   if test "$GCC" = yes; then
13622     lt_prog_compiler_wl_F77='-Wl,'
13623     lt_prog_compiler_static_F77='-static'
13624
13625     case $host_os in
13626       aix*)
13627       # All AIX code is PIC.
13628       if test "$host_cpu" = ia64; then
13629         # AIX 5 now supports IA64 processor
13630         lt_prog_compiler_static_F77='-Bstatic'
13631       fi
13632       ;;
13633
13634     amigaos*)
13635       # FIXME: we need at least 68020 code to build shared libraries, but
13636       # adding the `-m68020' flag to GCC prevents building anything better,
13637       # like `-m68040'.
13638       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13639       ;;
13640
13641     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13642       # PIC is the default for these OSes.
13643       ;;
13644
13645     mingw* | pw32* | os2*)
13646       # This hack is so that the source file can tell whether it is being
13647       # built for inclusion in a dll (and should export symbols for example).
13648       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13649       ;;
13650
13651     darwin* | rhapsody*)
13652       # PIC is the default on this platform
13653       # Common symbols not allowed in MH_DYLIB files
13654       lt_prog_compiler_pic_F77='-fno-common'
13655       ;;
13656
13657     msdosdjgpp*)
13658       # Just because we use GCC doesn't mean we suddenly get shared libraries
13659       # on systems that don't support them.
13660       lt_prog_compiler_can_build_shared_F77=no
13661       enable_shared=no
13662       ;;
13663
13664     sysv4*MP*)
13665       if test -d /usr/nec; then
13666         lt_prog_compiler_pic_F77=-Kconform_pic
13667       fi
13668       ;;
13669
13670     hpux*)
13671       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13672       # not for PA HP-UX.
13673       case "$host_cpu" in
13674       hppa*64*|ia64*)
13675         # +Z the default
13676         ;;
13677       *)
13678         lt_prog_compiler_pic_F77='-fPIC'
13679         ;;
13680       esac
13681       ;;
13682
13683     *)
13684       lt_prog_compiler_pic_F77='-fPIC'
13685       ;;
13686     esac
13687   else
13688     # PORTME Check for flag to pass linker flags through the system compiler.
13689     case $host_os in
13690     aix*)
13691       lt_prog_compiler_wl_F77='-Wl,'
13692       if test "$host_cpu" = ia64; then
13693         # AIX 5 now supports IA64 processor
13694         lt_prog_compiler_static_F77='-Bstatic'
13695       else
13696         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13697       fi
13698       ;;
13699       darwin*)
13700         # PIC is the default on this platform
13701         # Common symbols not allowed in MH_DYLIB files
13702        case $cc_basename in
13703          xlc*)
13704          lt_prog_compiler_pic_F77='-qnocommon'
13705          lt_prog_compiler_wl_F77='-Wl,'
13706          ;;
13707        esac
13708        ;;
13709
13710     mingw* | pw32* | os2*)
13711       # This hack is so that the source file can tell whether it is being
13712       # built for inclusion in a dll (and should export symbols for example).
13713       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13714       ;;
13715
13716     hpux9* | hpux10* | hpux11*)
13717       lt_prog_compiler_wl_F77='-Wl,'
13718       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13719       # not for PA HP-UX.
13720       case "$host_cpu" in
13721       hppa*64*|ia64*)
13722         # +Z the default
13723         ;;
13724       *)
13725         lt_prog_compiler_pic_F77='+Z'
13726         ;;
13727       esac
13728       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13729       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13730       ;;
13731
13732     irix5* | irix6* | nonstopux*)
13733       lt_prog_compiler_wl_F77='-Wl,'
13734       # PIC (with -KPIC) is the default.
13735       lt_prog_compiler_static_F77='-non_shared'
13736       ;;
13737
13738     newsos6)
13739       lt_prog_compiler_pic_F77='-KPIC'
13740       lt_prog_compiler_static_F77='-Bstatic'
13741       ;;
13742
13743     linux*)
13744       case $cc_basename in
13745       icc* | ecc*)
13746         lt_prog_compiler_wl_F77='-Wl,'
13747         lt_prog_compiler_pic_F77='-KPIC'
13748         lt_prog_compiler_static_F77='-static'
13749         ;;
13750       pgcc* | pgf77* | pgf90*)
13751         # Portland Group compilers (*not* the Pentium gcc compiler,
13752         # which looks to be a dead project)
13753         lt_prog_compiler_wl_F77='-Wl,'
13754         lt_prog_compiler_pic_F77='-fpic'
13755         lt_prog_compiler_static_F77='-static'
13756         ;;
13757       ccc*)
13758         lt_prog_compiler_wl_F77='-Wl,'
13759         # All Alpha code is PIC.
13760         lt_prog_compiler_static_F77='-non_shared'
13761         ;;
13762       esac
13763       ;;
13764
13765     osf3* | osf4* | osf5*)
13766       lt_prog_compiler_wl_F77='-Wl,'
13767       # All OSF/1 code is PIC.
13768       lt_prog_compiler_static_F77='-non_shared'
13769       ;;
13770
13771     sco3.2v5*)
13772       lt_prog_compiler_pic_F77='-Kpic'
13773       lt_prog_compiler_static_F77='-dn'
13774       ;;
13775
13776     solaris*)
13777       lt_prog_compiler_pic_F77='-KPIC'
13778       lt_prog_compiler_static_F77='-Bstatic'
13779       case $cc_basename in
13780       f77* | f90* | f95*)
13781         lt_prog_compiler_wl_F77='-Qoption ld ';;
13782       *)
13783         lt_prog_compiler_wl_F77='-Wl,';;
13784       esac
13785       ;;
13786
13787     sunos4*)
13788       lt_prog_compiler_wl_F77='-Qoption ld '
13789       lt_prog_compiler_pic_F77='-PIC'
13790       lt_prog_compiler_static_F77='-Bstatic'
13791       ;;
13792
13793     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13794       lt_prog_compiler_wl_F77='-Wl,'
13795       lt_prog_compiler_pic_F77='-KPIC'
13796       lt_prog_compiler_static_F77='-Bstatic'
13797       ;;
13798
13799     sysv4*MP*)
13800       if test -d /usr/nec ;then
13801         lt_prog_compiler_pic_F77='-Kconform_pic'
13802         lt_prog_compiler_static_F77='-Bstatic'
13803       fi
13804       ;;
13805
13806     unicos*)
13807       lt_prog_compiler_wl_F77='-Wl,'
13808       lt_prog_compiler_can_build_shared_F77=no
13809       ;;
13810
13811     uts4*)
13812       lt_prog_compiler_pic_F77='-pic'
13813       lt_prog_compiler_static_F77='-Bstatic'
13814       ;;
13815
13816     *)
13817       lt_prog_compiler_can_build_shared_F77=no
13818       ;;
13819     esac
13820   fi
13821
13822 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13823 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13824
13825 #
13826 # Check to make sure the PIC flag actually works.
13827 #
13828 if test -n "$lt_prog_compiler_pic_F77"; then
13829
13830 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13831 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13832 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13833   echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835   lt_prog_compiler_pic_works_F77=no
13836   ac_outfile=conftest.$ac_objext
13837    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13838    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13839    # Insert the option either (1) after the last *FLAGS variable, or
13840    # (2) before a word containing "conftest.", or (3) at the end.
13841    # Note that $ac_compile itself does not contain backslashes and begins
13842    # with a dollar sign (not a hyphen), so the echo should work correctly.
13843    # The option is referenced via a variable to avoid confusing sed.
13844    lt_compile=`echo "$ac_compile" | $SED \
13845    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13846    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13847    -e 's:$: $lt_compiler_flag:'`
13848    (eval echo "\"\$as_me:13848: $lt_compile\"" >&5)
13849    (eval "$lt_compile" 2>conftest.err)
13850    ac_status=$?
13851    cat conftest.err >&5
13852    echo "$as_me:13852: \$? = $ac_status" >&5
13853    if (exit $ac_status) && test -s "$ac_outfile"; then
13854      # The compiler can only warn and ignore the option if not recognized
13855      # So say no if there are warnings other than the usual output.
13856      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13857      $SED '/^$/d' conftest.err >conftest.er2
13858      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13859        lt_prog_compiler_pic_works_F77=yes
13860      fi
13861    fi
13862    $rm conftest*
13863
13864 fi
13865 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13866 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13867
13868 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13869     case $lt_prog_compiler_pic_F77 in
13870      "" | " "*) ;;
13871      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13872      esac
13873 else
13874     lt_prog_compiler_pic_F77=
13875      lt_prog_compiler_can_build_shared_F77=no
13876 fi
13877
13878 fi
13879 case "$host_os" in
13880   # For platforms which do not support PIC, -DPIC is meaningless:
13881   *djgpp*)
13882     lt_prog_compiler_pic_F77=
13883     ;;
13884   *)
13885     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13886     ;;
13887 esac
13888
13889 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13890 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13891 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13892   echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894   lt_cv_prog_compiler_c_o_F77=no
13895    $rm -r conftest 2>/dev/null
13896    mkdir conftest
13897    cd conftest
13898    mkdir out
13899    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13900
13901    lt_compiler_flag="-o out/conftest2.$ac_objext"
13902    # Insert the option either (1) after the last *FLAGS variable, or
13903    # (2) before a word containing "conftest.", or (3) at the end.
13904    # Note that $ac_compile itself does not contain backslashes and begins
13905    # with a dollar sign (not a hyphen), so the echo should work correctly.
13906    lt_compile=`echo "$ac_compile" | $SED \
13907    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13908    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13909    -e 's:$: $lt_compiler_flag:'`
13910    (eval echo "\"\$as_me:13910: $lt_compile\"" >&5)
13911    (eval "$lt_compile" 2>out/conftest.err)
13912    ac_status=$?
13913    cat out/conftest.err >&5
13914    echo "$as_me:13914: \$? = $ac_status" >&5
13915    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13916    then
13917      # The compiler can only warn and ignore the option if not recognized
13918      # So say no if there are warnings
13919      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13920      $SED '/^$/d' out/conftest.err >out/conftest.er2
13921      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13922        lt_cv_prog_compiler_c_o_F77=yes
13923      fi
13924    fi
13925    chmod u+w .
13926    $rm conftest*
13927    # SGI C++ compiler will create directory out/ii_files/ for
13928    # template instantiation
13929    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13930    $rm out/* && rmdir out
13931    cd ..
13932    rmdir conftest
13933    $rm conftest*
13934
13935 fi
13936 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13937 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13938
13939
13940 hard_links="nottested"
13941 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13942   # do not overwrite the value of need_locks provided by the user
13943   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13944 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13945   hard_links=yes
13946   $rm conftest*
13947   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13948   touch conftest.a
13949   ln conftest.a conftest.b 2>&5 || hard_links=no
13950   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13951   echo "$as_me:$LINENO: result: $hard_links" >&5
13952 echo "${ECHO_T}$hard_links" >&6
13953   if test "$hard_links" = no; then
13954     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13955 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13956     need_locks=warn
13957   fi
13958 else
13959   need_locks=no
13960 fi
13961
13962 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13963 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13964
13965   runpath_var=
13966   allow_undefined_flag_F77=
13967   enable_shared_with_static_runtimes_F77=no
13968   archive_cmds_F77=
13969   archive_expsym_cmds_F77=
13970   old_archive_From_new_cmds_F77=
13971   old_archive_from_expsyms_cmds_F77=
13972   export_dynamic_flag_spec_F77=
13973   whole_archive_flag_spec_F77=
13974   thread_safe_flag_spec_F77=
13975   hardcode_libdir_flag_spec_F77=
13976   hardcode_libdir_flag_spec_ld_F77=
13977   hardcode_libdir_separator_F77=
13978   hardcode_direct_F77=no
13979   hardcode_minus_L_F77=no
13980   hardcode_shlibpath_var_F77=unsupported
13981   link_all_deplibs_F77=unknown
13982   hardcode_automatic_F77=no
13983   module_cmds_F77=
13984   module_expsym_cmds_F77=
13985   always_export_symbols_F77=no
13986   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13987   # include_expsyms should be a list of space-separated symbols to be *always*
13988   # included in the symbol list
13989   include_expsyms_F77=
13990   # exclude_expsyms can be an extended regexp of symbols to exclude
13991   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13992   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13993   # as well as any symbol that contains `d'.
13994   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13995   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13996   # platforms (ab)use it in PIC code, but their linkers get confused if
13997   # the symbol is explicitly referenced.  Since portable code cannot
13998   # rely on this symbol name, it's probably fine to never include it in
13999   # preloaded symbol tables.
14000   extract_expsyms_cmds=
14001   # Just being paranoid about ensuring that cc_basename is set.
14002   for cc_temp in $compiler""; do
14003   case $cc_temp in
14004     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14005     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14006     \-*) ;;
14007     *) break;;
14008   esac
14009 done
14010 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14011
14012   case $host_os in
14013   cygwin* | mingw* | pw32*)
14014     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14015     # When not using gcc, we currently assume that we are using
14016     # Microsoft Visual C++.
14017     if test "$GCC" != yes; then
14018       with_gnu_ld=no
14019     fi
14020     ;;
14021   openbsd*)
14022     with_gnu_ld=no
14023     ;;
14024   esac
14025
14026   ld_shlibs_F77=yes
14027   if test "$with_gnu_ld" = yes; then
14028     # If archive_cmds runs LD, not CC, wlarc should be empty
14029     wlarc='${wl}'
14030
14031     # Set some defaults for GNU ld with shared library support. These
14032     # are reset later if shared libraries are not supported. Putting them
14033     # here allows them to be overridden if necessary.
14034     runpath_var=LD_RUN_PATH
14035     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14036     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14037     # ancient GNU ld didn't support --whole-archive et. al.
14038     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14039         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14040       else
14041         whole_archive_flag_spec_F77=
14042     fi
14043     supports_anon_versioning=no
14044     case `$LD -v 2>/dev/null` in
14045       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14046       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14047       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14048       *\ 2.11.*) ;; # other 2.11 versions
14049       *) supports_anon_versioning=yes ;;
14050     esac
14051
14052     # See if GNU ld supports shared libraries.
14053     case $host_os in
14054     aix3* | aix4* | aix5*)
14055       # On AIX/PPC, the GNU linker is very broken
14056       if test "$host_cpu" != ia64; then
14057         ld_shlibs_F77=no
14058         cat <<EOF 1>&2
14059
14060 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14061 *** to be unable to reliably create shared libraries on AIX.
14062 *** Therefore, libtool is disabling shared libraries support.  If you
14063 *** really care for shared libraries, you may want to modify your PATH
14064 *** so that a non-GNU linker is found, and then restart.
14065
14066 EOF
14067       fi
14068       ;;
14069
14070     amigaos*)
14071       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)'
14072       hardcode_libdir_flag_spec_F77='-L$libdir'
14073       hardcode_minus_L_F77=yes
14074
14075       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14076       # that the semantics of dynamic libraries on AmigaOS, at least up
14077       # to version 4, is to share data among multiple programs linked
14078       # with the same dynamic library.  Since this doesn't match the
14079       # behavior of shared libraries on other platforms, we can't use
14080       # them.
14081       ld_shlibs_F77=no
14082       ;;
14083
14084     beos*)
14085       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14086         allow_undefined_flag_F77=unsupported
14087         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14088         # support --undefined.  This deserves some investigation.  FIXME
14089         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14090       else
14091         ld_shlibs_F77=no
14092       fi
14093       ;;
14094
14095     cygwin* | mingw* | pw32*)
14096       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14097       # as there is no search path for DLLs.
14098       hardcode_libdir_flag_spec_F77='-L$libdir'
14099       allow_undefined_flag_F77=unsupported
14100       always_export_symbols_F77=no
14101       enable_shared_with_static_runtimes_F77=yes
14102       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14103
14104       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14105         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14106         # If the export-symbols file already is a .def file (1st line
14107         # is EXPORTS), use it as is; otherwise, prepend...
14108         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14109           cp $export_symbols $output_objdir/$soname.def;
14110         else
14111           echo EXPORTS > $output_objdir/$soname.def;
14112           cat $export_symbols >> $output_objdir/$soname.def;
14113         fi~
14114         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14115       else
14116         ld_shlibs_F77=no
14117       fi
14118       ;;
14119
14120     linux*)
14121       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14122         tmp_addflag=
14123         case $cc_basename,$host_cpu in
14124         pgcc*)                          # Portland Group C compiler
14125           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'
14126           tmp_addflag=' $pic_flag'
14127           ;;
14128         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
14129           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'
14130           tmp_addflag=' $pic_flag -Mnomain' ;;
14131         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14132           tmp_addflag=' -i_dynamic' ;;
14133         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14134           tmp_addflag=' -i_dynamic -nofor_main' ;;
14135         ifc* | ifort*)                  # Intel Fortran compiler
14136           tmp_addflag=' -nofor_main' ;;
14137         esac
14138         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14139
14140         if test $supports_anon_versioning = yes; then
14141           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14142   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14143   $echo "local: *; };" >> $output_objdir/$libname.ver~
14144           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14145         fi
14146       else
14147         ld_shlibs_F77=no
14148       fi
14149       ;;
14150
14151     netbsd*)
14152       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14153         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14154         wlarc=
14155       else
14156         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14157         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14158       fi
14159       ;;
14160
14161     solaris* | sysv5*)
14162       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14163         ld_shlibs_F77=no
14164         cat <<EOF 1>&2
14165
14166 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14167 *** create shared libraries on Solaris systems.  Therefore, libtool
14168 *** is disabling shared libraries support.  We urge you to upgrade GNU
14169 *** binutils to release 2.9.1 or newer.  Another option is to modify
14170 *** your PATH or compiler configuration so that the native linker is
14171 *** used, and then restart.
14172
14173 EOF
14174       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14175         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14176         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14177       else
14178         ld_shlibs_F77=no
14179       fi
14180       ;;
14181
14182     sunos4*)
14183       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14184       wlarc=
14185       hardcode_direct_F77=yes
14186       hardcode_shlibpath_var_F77=no
14187       ;;
14188
14189     *)
14190       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14191         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14192         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14193       else
14194         ld_shlibs_F77=no
14195       fi
14196       ;;
14197     esac
14198
14199     if test "$ld_shlibs_F77" = no; then
14200       runpath_var=
14201       hardcode_libdir_flag_spec_F77=
14202       export_dynamic_flag_spec_F77=
14203       whole_archive_flag_spec_F77=
14204     fi
14205   else
14206     # PORTME fill in a description of your system's linker (not GNU ld)
14207     case $host_os in
14208     aix3*)
14209       allow_undefined_flag_F77=unsupported
14210       always_export_symbols_F77=yes
14211       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'
14212       # Note: this linker hardcodes the directories in LIBPATH if there
14213       # are no directories specified by -L.
14214       hardcode_minus_L_F77=yes
14215       if test "$GCC" = yes && test -z "$link_static_flag"; then
14216         # Neither direct hardcoding nor static linking is supported with a
14217         # broken collect2.
14218         hardcode_direct_F77=unsupported
14219       fi
14220       ;;
14221
14222     aix4* | aix5*)
14223       if test "$host_cpu" = ia64; then
14224         # On IA64, the linker does run time linking by default, so we don't
14225         # have to do anything special.
14226         aix_use_runtimelinking=no
14227         exp_sym_flag='-Bexport'
14228         no_entry_flag=""
14229       else
14230         # If we're using GNU nm, then we don't want the "-C" option.
14231         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14232         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14233           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'
14234         else
14235           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'
14236         fi
14237         aix_use_runtimelinking=no
14238
14239         # Test if we are trying to use run time linking or normal
14240         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14241         # need to do runtime linking.
14242         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14243           for ld_flag in $LDFLAGS; do
14244           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14245             aix_use_runtimelinking=yes
14246             break
14247           fi
14248           done
14249         esac
14250
14251         exp_sym_flag='-bexport'
14252         no_entry_flag='-bnoentry'
14253       fi
14254
14255       # When large executables or shared objects are built, AIX ld can
14256       # have problems creating the table of contents.  If linking a library
14257       # or program results in "error TOC overflow" add -mminimal-toc to
14258       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14259       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14260
14261       archive_cmds_F77=''
14262       hardcode_direct_F77=yes
14263       hardcode_libdir_separator_F77=':'
14264       link_all_deplibs_F77=yes
14265
14266       if test "$GCC" = yes; then
14267         case $host_os in aix4.[012]|aix4.[012].*)
14268         # We only want to do this on AIX 4.2 and lower, the check
14269         # below for broken collect2 doesn't work under 4.3+
14270           collect2name=`${CC} -print-prog-name=collect2`
14271           if test -f "$collect2name" && \
14272            strings "$collect2name" | grep resolve_lib_name >/dev/null
14273           then
14274           # We have reworked collect2
14275           hardcode_direct_F77=yes
14276           else
14277           # We have old collect2
14278           hardcode_direct_F77=unsupported
14279           # It fails to find uninstalled libraries when the uninstalled
14280           # path is not listed in the libpath.  Setting hardcode_minus_L
14281           # to unsupported forces relinking
14282           hardcode_minus_L_F77=yes
14283           hardcode_libdir_flag_spec_F77='-L$libdir'
14284           hardcode_libdir_separator_F77=
14285           fi
14286         esac
14287         shared_flag='-shared'
14288         if test "$aix_use_runtimelinking" = yes; then
14289           shared_flag="$shared_flag "'${wl}-G'
14290         fi
14291       else
14292         # not using gcc
14293         if test "$host_cpu" = ia64; then
14294         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14295         # chokes on -Wl,-G. The following line is correct:
14296           shared_flag='-G'
14297         else
14298         if test "$aix_use_runtimelinking" = yes; then
14299             shared_flag='${wl}-G'
14300           else
14301             shared_flag='${wl}-bM:SRE'
14302         fi
14303         fi
14304       fi
14305
14306       # It seems that -bexpall does not export symbols beginning with
14307       # underscore (_), so it is better to generate a list of symbols to export.
14308       always_export_symbols_F77=yes
14309       if test "$aix_use_runtimelinking" = yes; then
14310         # Warning - without using the other runtime loading flags (-brtl),
14311         # -berok will link without error, but may produce a broken library.
14312         allow_undefined_flag_F77='-berok'
14313        # Determine the default libpath from the value encoded in an empty executable.
14314        cat >conftest.$ac_ext <<_ACEOF
14315       program main
14316
14317       end
14318 _ACEOF
14319 rm -f conftest.$ac_objext conftest$ac_exeext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14321   (eval $ac_link) 2>conftest.er1
14322   ac_status=$?
14323   grep -v '^ *+' conftest.er1 >conftest.err
14324   rm -f conftest.er1
14325   cat conftest.err >&5
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); } &&
14328          { ac_try='test -z "$ac_f77_werror_flag"
14329                          || test ! -s conftest.err'
14330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331   (eval $ac_try) 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); }; } &&
14335          { ac_try='test -s conftest$ac_exeext'
14336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337   (eval $ac_try) 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); }; }; then
14341
14342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14343 }'`
14344 # Check for a 64-bit object if we didn't find anything.
14345 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; }
14346 }'`; fi
14347 else
14348   echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351 fi
14352 rm -f conftest.err conftest.$ac_objext \
14353       conftest$ac_exeext conftest.$ac_ext
14354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14355
14356        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14357         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"
14358        else
14359         if test "$host_cpu" = ia64; then
14360           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14361           allow_undefined_flag_F77="-z nodefs"
14362           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"
14363         else
14364          # Determine the default libpath from the value encoded in an empty executable.
14365          cat >conftest.$ac_ext <<_ACEOF
14366       program main
14367
14368       end
14369 _ACEOF
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14372   (eval $ac_link) 2>conftest.er1
14373   ac_status=$?
14374   grep -v '^ *+' conftest.er1 >conftest.err
14375   rm -f conftest.er1
14376   cat conftest.err >&5
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); } &&
14379          { ac_try='test -z "$ac_f77_werror_flag"
14380                          || test ! -s conftest.err'
14381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382   (eval $ac_try) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); }; } &&
14386          { ac_try='test -s conftest$ac_exeext'
14387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388   (eval $ac_try) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; }; then
14392
14393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14394 }'`
14395 # Check for a 64-bit object if we didn't find anything.
14396 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; }
14397 }'`; fi
14398 else
14399   echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14401
14402 fi
14403 rm -f conftest.err conftest.$ac_objext \
14404       conftest$ac_exeext conftest.$ac_ext
14405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14406
14407          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14408           # Warning - without using the other run time loading flags,
14409           # -berok will link without error, but may produce a broken library.
14410           no_undefined_flag_F77=' ${wl}-bernotok'
14411           allow_undefined_flag_F77=' ${wl}-berok'
14412           # -bexpall does not export symbols beginning with underscore (_)
14413           always_export_symbols_F77=yes
14414           # Exported symbols can be pulled into shared objects from archives
14415           whole_archive_flag_spec_F77=' '
14416           archive_cmds_need_lc_F77=yes
14417           # This is similar to how AIX traditionally builds it's shared libraries.
14418           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'
14419         fi
14420       fi
14421       ;;
14422
14423     amigaos*)
14424       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)'
14425       hardcode_libdir_flag_spec_F77='-L$libdir'
14426       hardcode_minus_L_F77=yes
14427       # see comment about different semantics on the GNU ld section
14428       ld_shlibs_F77=no
14429       ;;
14430
14431     bsdi[45]*)
14432       export_dynamic_flag_spec_F77=-rdynamic
14433       ;;
14434
14435     cygwin* | mingw* | pw32*)
14436       # When not using gcc, we currently assume that we are using
14437       # Microsoft Visual C++.
14438       # hardcode_libdir_flag_spec is actually meaningless, as there is
14439       # no search path for DLLs.
14440       hardcode_libdir_flag_spec_F77=' '
14441       allow_undefined_flag_F77=unsupported
14442       # Tell ltmain to make .lib files, not .a files.
14443       libext=lib
14444       # Tell ltmain to make .dll files, not .so files.
14445       shrext_cmds=".dll"
14446       # FIXME: Setting linknames here is a bad hack.
14447       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14448       # The linker will automatically build a .lib file if we build a DLL.
14449       old_archive_From_new_cmds_F77='true'
14450       # FIXME: Should let the user specify the lib program.
14451       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14452       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14453       enable_shared_with_static_runtimes_F77=yes
14454       ;;
14455
14456     darwin* | rhapsody*)
14457       case "$host_os" in
14458         rhapsody* | darwin1.[012])
14459          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14460          ;;
14461        *) # Darwin 1.3 on
14462          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14463            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14464          else
14465            case ${MACOSX_DEPLOYMENT_TARGET} in
14466              10.[012])
14467                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14468                ;;
14469              10.*)
14470                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14471                ;;
14472            esac
14473          fi
14474          ;;
14475       esac
14476       archive_cmds_need_lc_F77=no
14477       hardcode_direct_F77=no
14478       hardcode_automatic_F77=yes
14479       hardcode_shlibpath_var_F77=unsupported
14480       whole_archive_flag_spec_F77=''
14481       link_all_deplibs_F77=yes
14482     if test "$GCC" = yes ; then
14483         output_verbose_link_cmd='echo'
14484         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14485       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14486       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14487       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}'
14488       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}'
14489     else
14490       case $cc_basename in
14491         xlc*)
14492          output_verbose_link_cmd='echo'
14493          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14494          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14495           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14496          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}'
14497           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}'
14498           ;;
14499        *)
14500          ld_shlibs_F77=no
14501           ;;
14502       esac
14503     fi
14504       ;;
14505
14506     dgux*)
14507       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14508       hardcode_libdir_flag_spec_F77='-L$libdir'
14509       hardcode_shlibpath_var_F77=no
14510       ;;
14511
14512     freebsd1*)
14513       ld_shlibs_F77=no
14514       ;;
14515
14516     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14517     # support.  Future versions do this automatically, but an explicit c++rt0.o
14518     # does not break anything, and helps significantly (at the cost of a little
14519     # extra space).
14520     freebsd2.2*)
14521       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14522       hardcode_libdir_flag_spec_F77='-R$libdir'
14523       hardcode_direct_F77=yes
14524       hardcode_shlibpath_var_F77=no
14525       ;;
14526
14527     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14528     freebsd2*)
14529       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14530       hardcode_direct_F77=yes
14531       hardcode_minus_L_F77=yes
14532       hardcode_shlibpath_var_F77=no
14533       ;;
14534
14535     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14536     freebsd* | kfreebsd*-gnu | dragonfly*)
14537       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14538       hardcode_libdir_flag_spec_F77='-R$libdir'
14539       hardcode_direct_F77=yes
14540       hardcode_shlibpath_var_F77=no
14541       ;;
14542
14543     hpux9*)
14544       if test "$GCC" = yes; then
14545         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'
14546       else
14547         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'
14548       fi
14549       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14550       hardcode_libdir_separator_F77=:
14551       hardcode_direct_F77=yes
14552
14553       # hardcode_minus_L: Not really in the search PATH,
14554       # but as the default location of the library.
14555       hardcode_minus_L_F77=yes
14556       export_dynamic_flag_spec_F77='${wl}-E'
14557       ;;
14558
14559     hpux10* | hpux11*)
14560       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14561         case "$host_cpu" in
14562         hppa*64*|ia64*)
14563           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14564           ;;
14565         *)
14566           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14567           ;;
14568         esac
14569       else
14570         case "$host_cpu" in
14571         hppa*64*|ia64*)
14572           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14573           ;;
14574         *)
14575           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14576           ;;
14577         esac
14578       fi
14579       if test "$with_gnu_ld" = no; then
14580         case "$host_cpu" in
14581         hppa*64*)
14582           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14583           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14584           hardcode_libdir_separator_F77=:
14585           hardcode_direct_F77=no
14586           hardcode_shlibpath_var_F77=no
14587           ;;
14588         ia64*)
14589           hardcode_libdir_flag_spec_F77='-L$libdir'
14590           hardcode_direct_F77=no
14591           hardcode_shlibpath_var_F77=no
14592
14593           # hardcode_minus_L: Not really in the search PATH,
14594           # but as the default location of the library.
14595           hardcode_minus_L_F77=yes
14596           ;;
14597         *)
14598           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14599           hardcode_libdir_separator_F77=:
14600           hardcode_direct_F77=yes
14601           export_dynamic_flag_spec_F77='${wl}-E'
14602
14603           # hardcode_minus_L: Not really in the search PATH,
14604           # but as the default location of the library.
14605           hardcode_minus_L_F77=yes
14606           ;;
14607         esac
14608       fi
14609       ;;
14610
14611     irix5* | irix6* | nonstopux*)
14612       if test "$GCC" = yes; then
14613         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'
14614       else
14615         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'
14616         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14617       fi
14618       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14619       hardcode_libdir_separator_F77=:
14620       link_all_deplibs_F77=yes
14621       ;;
14622
14623     netbsd*)
14624       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14625         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14626       else
14627         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14628       fi
14629       hardcode_libdir_flag_spec_F77='-R$libdir'
14630       hardcode_direct_F77=yes
14631       hardcode_shlibpath_var_F77=no
14632       ;;
14633
14634     newsos6)
14635       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14636       hardcode_direct_F77=yes
14637       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14638       hardcode_libdir_separator_F77=:
14639       hardcode_shlibpath_var_F77=no
14640       ;;
14641
14642     openbsd*)
14643       hardcode_direct_F77=yes
14644       hardcode_shlibpath_var_F77=no
14645       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14646         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14647         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14648         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14649         export_dynamic_flag_spec_F77='${wl}-E'
14650       else
14651        case $host_os in
14652          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14653            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14654            hardcode_libdir_flag_spec_F77='-R$libdir'
14655            ;;
14656          *)
14657            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14658            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14659            ;;
14660        esac
14661       fi
14662       ;;
14663
14664     os2*)
14665       hardcode_libdir_flag_spec_F77='-L$libdir'
14666       hardcode_minus_L_F77=yes
14667       allow_undefined_flag_F77=unsupported
14668       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'
14669       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14670       ;;
14671
14672     osf3*)
14673       if test "$GCC" = yes; then
14674         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14675         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'
14676       else
14677         allow_undefined_flag_F77=' -expect_unresolved \*'
14678         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'
14679       fi
14680       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14681       hardcode_libdir_separator_F77=:
14682       ;;
14683
14684     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14685       if test "$GCC" = yes; then
14686         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14687         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'
14688         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14689       else
14690         allow_undefined_flag_F77=' -expect_unresolved \*'
14691         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'
14692         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~
14693         $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'
14694
14695         # Both c and cxx compiler support -rpath directly
14696         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14697       fi
14698       hardcode_libdir_separator_F77=:
14699       ;;
14700
14701     sco3.2v5*)
14702       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14703       hardcode_shlibpath_var_F77=no
14704       export_dynamic_flag_spec_F77='${wl}-Bexport'
14705       runpath_var=LD_RUN_PATH
14706       hardcode_runpath_var=yes
14707       ;;
14708
14709     solaris*)
14710       no_undefined_flag_F77=' -z text'
14711       if test "$GCC" = yes; then
14712         wlarc='${wl}'
14713         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14714         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14715           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14716       else
14717         wlarc=''
14718         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14719         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14720         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14721       fi
14722       hardcode_libdir_flag_spec_F77='-R$libdir'
14723       hardcode_shlibpath_var_F77=no
14724       case $host_os in
14725       solaris2.[0-5] | solaris2.[0-5].*) ;;
14726       *)
14727         # The compiler driver will combine linker options so we
14728         # cannot just pass the convience library names through
14729         # without $wl, iff we do not link with $LD.
14730         # Luckily, gcc supports the same syntax we need for Sun Studio.
14731         # Supported since Solaris 2.6 (maybe 2.5.1?)
14732         case $wlarc in
14733         '')
14734           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14735         *)
14736           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' ;;
14737         esac ;;
14738       esac
14739       link_all_deplibs_F77=yes
14740       ;;
14741
14742     sunos4*)
14743       if test "x$host_vendor" = xsequent; then
14744         # Use $CC to link under sequent, because it throws in some extra .o
14745         # files that make .init and .fini sections work.
14746         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14747       else
14748         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14749       fi
14750       hardcode_libdir_flag_spec_F77='-L$libdir'
14751       hardcode_direct_F77=yes
14752       hardcode_minus_L_F77=yes
14753       hardcode_shlibpath_var_F77=no
14754       ;;
14755
14756     sysv4)
14757       case $host_vendor in
14758         sni)
14759           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14760           hardcode_direct_F77=yes # is this really true???
14761         ;;
14762         siemens)
14763           ## LD is ld it makes a PLAMLIB
14764           ## CC just makes a GrossModule.
14765           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14766           reload_cmds_F77='$CC -r -o $output$reload_objs'
14767           hardcode_direct_F77=no
14768         ;;
14769         motorola)
14770           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14771           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14772         ;;
14773       esac
14774       runpath_var='LD_RUN_PATH'
14775       hardcode_shlibpath_var_F77=no
14776       ;;
14777
14778     sysv4.3*)
14779       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14780       hardcode_shlibpath_var_F77=no
14781       export_dynamic_flag_spec_F77='-Bexport'
14782       ;;
14783
14784     sysv4*MP*)
14785       if test -d /usr/nec; then
14786         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14787         hardcode_shlibpath_var_F77=no
14788         runpath_var=LD_RUN_PATH
14789         hardcode_runpath_var=yes
14790         ld_shlibs_F77=yes
14791       fi
14792       ;;
14793
14794     sysv4.2uw2*)
14795       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14796       hardcode_direct_F77=yes
14797       hardcode_minus_L_F77=no
14798       hardcode_shlibpath_var_F77=no
14799       hardcode_runpath_var=yes
14800       runpath_var=LD_RUN_PATH
14801       ;;
14802
14803    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14804       no_undefined_flag_F77='${wl}-z ${wl}text'
14805       if test "$GCC" = yes; then
14806         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14807       else
14808         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14809       fi
14810       runpath_var='LD_RUN_PATH'
14811       hardcode_shlibpath_var_F77=no
14812       ;;
14813
14814     sysv5*)
14815       no_undefined_flag_F77=' -z text'
14816       # $CC -shared without GNU ld will not create a library from C++
14817       # object files and a static libstdc++, better avoid it by now
14818       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14819       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14820                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14821       hardcode_libdir_flag_spec_F77=
14822       hardcode_shlibpath_var_F77=no
14823       runpath_var='LD_RUN_PATH'
14824       ;;
14825
14826     uts4*)
14827       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14828       hardcode_libdir_flag_spec_F77='-L$libdir'
14829       hardcode_shlibpath_var_F77=no
14830       ;;
14831
14832     *)
14833       ld_shlibs_F77=no
14834       ;;
14835     esac
14836   fi
14837
14838 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14839 echo "${ECHO_T}$ld_shlibs_F77" >&6
14840 test "$ld_shlibs_F77" = no && can_build_shared=no
14841
14842 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14843 if test "$GCC" = yes; then
14844   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14845 fi
14846
14847 #
14848 # Do we need to explicitly link libc?
14849 #
14850 case "x$archive_cmds_need_lc_F77" in
14851 x|xyes)
14852   # Assume -lc should be added
14853   archive_cmds_need_lc_F77=yes
14854
14855   if test "$enable_shared" = yes && test "$GCC" = yes; then
14856     case $archive_cmds_F77 in
14857     *'~'*)
14858       # FIXME: we may have to deal with multi-command sequences.
14859       ;;
14860     '$CC '*)
14861       # Test whether the compiler implicitly links with -lc since on some
14862       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14863       # to ld, don't add -lc before -lgcc.
14864       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14865 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14866       $rm conftest*
14867       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14868
14869       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14870   (eval $ac_compile) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); } 2>conftest.err; then
14874         soname=conftest
14875         lib=conftest
14876         libobjs=conftest.$ac_objext
14877         deplibs=
14878         wl=$lt_prog_compiler_wl_F77
14879         compiler_flags=-v
14880         linker_flags=-v
14881         verstring=
14882         output_objdir=.
14883         libname=conftest
14884         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14885         allow_undefined_flag_F77=
14886         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14887   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14888   ac_status=$?
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); }
14891         then
14892           archive_cmds_need_lc_F77=no
14893         else
14894           archive_cmds_need_lc_F77=yes
14895         fi
14896         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14897       else
14898         cat conftest.err 1>&5
14899       fi
14900       $rm conftest*
14901       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14902 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14903       ;;
14904     esac
14905   fi
14906   ;;
14907 esac
14908
14909 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14910 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14911 library_names_spec=
14912 libname_spec='lib$name'
14913 soname_spec=
14914 shrext_cmds=".so"
14915 postinstall_cmds=
14916 postuninstall_cmds=
14917 finish_cmds=
14918 finish_eval=
14919 shlibpath_var=
14920 shlibpath_overrides_runpath=unknown
14921 version_type=none
14922 dynamic_linker="$host_os ld.so"
14923 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14924 if test "$GCC" = yes; then
14925   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14926   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14927     # if the path contains ";" then we assume it to be the separator
14928     # otherwise default to the standard path separator (i.e. ":") - it is
14929     # assumed that no part of a normal pathname contains ";" but that should
14930     # okay in the real world where ";" in dirpaths is itself problematic.
14931     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14932   else
14933     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14934   fi
14935 else
14936   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14937 fi
14938 need_lib_prefix=unknown
14939 hardcode_into_libs=no
14940
14941 # when you set need_version to no, make sure it does not cause -set_version
14942 # flags to be left without arguments
14943 need_version=unknown
14944
14945 case $host_os in
14946 aix3*)
14947   version_type=linux
14948   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14949   shlibpath_var=LIBPATH
14950
14951   # AIX 3 has no versioning support, so we append a major version to the name.
14952   soname_spec='${libname}${release}${shared_ext}$major'
14953   ;;
14954
14955 aix4* | aix5*)
14956   version_type=linux
14957   need_lib_prefix=no
14958   need_version=no
14959   hardcode_into_libs=yes
14960   if test "$host_cpu" = ia64; then
14961     # AIX 5 supports IA64
14962     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14963     shlibpath_var=LD_LIBRARY_PATH
14964   else
14965     # With GCC up to 2.95.x, collect2 would create an import file
14966     # for dependence libraries.  The import file would start with
14967     # the line `#! .'.  This would cause the generated library to
14968     # depend on `.', always an invalid library.  This was fixed in
14969     # development snapshots of GCC prior to 3.0.
14970     case $host_os in
14971       aix4 | aix4.[01] | aix4.[01].*)
14972       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14973            echo ' yes '
14974            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14975         :
14976       else
14977         can_build_shared=no
14978       fi
14979       ;;
14980     esac
14981     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14982     # soname into executable. Probably we can add versioning support to
14983     # collect2, so additional links can be useful in future.
14984     if test "$aix_use_runtimelinking" = yes; then
14985       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14986       # instead of lib<name>.a to let people know that these are not
14987       # typical AIX shared libraries.
14988       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14989     else
14990       # We preserve .a as extension for shared libraries through AIX4.2
14991       # and later when we are not doing run time linking.
14992       library_names_spec='${libname}${release}.a $libname.a'
14993       soname_spec='${libname}${release}${shared_ext}$major'
14994     fi
14995     shlibpath_var=LIBPATH
14996   fi
14997   ;;
14998
14999 amigaos*)
15000   library_names_spec='$libname.ixlibrary $libname.a'
15001   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15002   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'
15003   ;;
15004
15005 beos*)
15006   library_names_spec='${libname}${shared_ext}'
15007   dynamic_linker="$host_os ld.so"
15008   shlibpath_var=LIBRARY_PATH
15009   ;;
15010
15011 bsdi[45]*)
15012   version_type=linux
15013   need_version=no
15014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015   soname_spec='${libname}${release}${shared_ext}$major'
15016   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15017   shlibpath_var=LD_LIBRARY_PATH
15018   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15019   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15020   # the default ld.so.conf also contains /usr/contrib/lib and
15021   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15022   # libtool to hard-code these into programs
15023   ;;
15024
15025 cygwin* | mingw* | pw32*)
15026   version_type=windows
15027   shrext_cmds=".dll"
15028   need_version=no
15029   need_lib_prefix=no
15030
15031   case $GCC,$host_os in
15032   yes,cygwin* | yes,mingw* | yes,pw32*)
15033     library_names_spec='$libname.dll.a'
15034     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15035     postinstall_cmds='base_file=`basename \${file}`~
15036       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15037       dldir=$destdir/`dirname \$dlpath`~
15038       test -d \$dldir || mkdir -p \$dldir~
15039       $install_prog $dir/$dlname \$dldir/$dlname'
15040     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15041       dlpath=$dir/\$dldll~
15042        $rm \$dlpath'
15043     shlibpath_overrides_runpath=yes
15044
15045     case $host_os in
15046     cygwin*)
15047       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15048       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15049       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15050       ;;
15051     mingw*)
15052       # MinGW DLLs use traditional 'lib' prefix
15053       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15054       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15055       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15056         # It is most probably a Windows format PATH printed by
15057         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15058         # path with ; separators, and with drive letters. We can handle the
15059         # drive letters (cygwin fileutils understands them), so leave them,
15060         # especially as we might pass files found there to a mingw objdump,
15061         # which wouldn't understand a cygwinified path. Ahh.
15062         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15063       else
15064         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15065       fi
15066       ;;
15067     pw32*)
15068       # pw32 DLLs use 'pw' prefix rather than 'lib'
15069       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15070       ;;
15071     esac
15072     ;;
15073
15074   *)
15075     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15076     ;;
15077   esac
15078   dynamic_linker='Win32 ld.exe'
15079   # FIXME: first we should search . and the directory the executable is in
15080   shlibpath_var=PATH
15081   ;;
15082
15083 darwin* | rhapsody*)
15084   dynamic_linker="$host_os dyld"
15085   version_type=darwin
15086   need_lib_prefix=no
15087   need_version=no
15088   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15089   soname_spec='${libname}${release}${major}$shared_ext'
15090   shlibpath_overrides_runpath=yes
15091   shlibpath_var=DYLD_LIBRARY_PATH
15092   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15093   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15094   if test "$GCC" = yes; then
15095     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"`
15096   else
15097     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15098   fi
15099   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15100   ;;
15101
15102 dgux*)
15103   version_type=linux
15104   need_lib_prefix=no
15105   need_version=no
15106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15107   soname_spec='${libname}${release}${shared_ext}$major'
15108   shlibpath_var=LD_LIBRARY_PATH
15109   ;;
15110
15111 freebsd1*)
15112   dynamic_linker=no
15113   ;;
15114
15115 kfreebsd*-gnu)
15116   version_type=linux
15117   need_lib_prefix=no
15118   need_version=no
15119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15120   soname_spec='${libname}${release}${shared_ext}$major'
15121   shlibpath_var=LD_LIBRARY_PATH
15122   shlibpath_overrides_runpath=no
15123   hardcode_into_libs=yes
15124   dynamic_linker='GNU ld.so'
15125   ;;
15126
15127 freebsd* | dragonfly*)
15128   # DragonFly does not have aout.  When/if they implement a new
15129   # versioning mechanism, adjust this.
15130   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15131   version_type=freebsd-$objformat
15132   case $version_type in
15133     freebsd-elf*)
15134       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15135       need_version=no
15136       need_lib_prefix=no
15137       ;;
15138     freebsd-*)
15139       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15140       need_version=yes
15141       ;;
15142   esac
15143   shlibpath_var=LD_LIBRARY_PATH
15144   case $host_os in
15145   freebsd2*)
15146     shlibpath_overrides_runpath=yes
15147     ;;
15148   freebsd3.[01]* | freebsdelf3.[01]*)
15149     shlibpath_overrides_runpath=yes
15150     hardcode_into_libs=yes
15151     ;;
15152   *) # from 3.2 on
15153     shlibpath_overrides_runpath=no
15154     hardcode_into_libs=yes
15155     ;;
15156   esac
15157   ;;
15158
15159 gnu*)
15160   version_type=linux
15161   need_lib_prefix=no
15162   need_version=no
15163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15164   soname_spec='${libname}${release}${shared_ext}$major'
15165   shlibpath_var=LD_LIBRARY_PATH
15166   hardcode_into_libs=yes
15167   ;;
15168
15169 hpux9* | hpux10* | hpux11*)
15170   # Give a soname corresponding to the major version so that dld.sl refuses to
15171   # link against other versions.
15172   version_type=sunos
15173   need_lib_prefix=no
15174   need_version=no
15175   case "$host_cpu" in
15176   ia64*)
15177     shrext_cmds='.so'
15178     hardcode_into_libs=yes
15179     dynamic_linker="$host_os dld.so"
15180     shlibpath_var=LD_LIBRARY_PATH
15181     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15182     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183     soname_spec='${libname}${release}${shared_ext}$major'
15184     if test "X$HPUX_IA64_MODE" = X32; then
15185       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15186     else
15187       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15188     fi
15189     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15190     ;;
15191    hppa*64*)
15192      shrext_cmds='.sl'
15193      hardcode_into_libs=yes
15194      dynamic_linker="$host_os dld.sl"
15195      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15196      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15197      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198      soname_spec='${libname}${release}${shared_ext}$major'
15199      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15200      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15201      ;;
15202    *)
15203     shrext_cmds='.sl'
15204     dynamic_linker="$host_os dld.sl"
15205     shlibpath_var=SHLIB_PATH
15206     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15207     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208     soname_spec='${libname}${release}${shared_ext}$major'
15209     ;;
15210   esac
15211   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15212   postinstall_cmds='chmod 555 $lib'
15213   ;;
15214
15215 irix5* | irix6* | nonstopux*)
15216   case $host_os in
15217     nonstopux*) version_type=nonstopux ;;
15218     *)
15219         if test "$lt_cv_prog_gnu_ld" = yes; then
15220                 version_type=linux
15221         else
15222                 version_type=irix
15223         fi ;;
15224   esac
15225   need_lib_prefix=no
15226   need_version=no
15227   soname_spec='${libname}${release}${shared_ext}$major'
15228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15229   case $host_os in
15230   irix5* | nonstopux*)
15231     libsuff= shlibsuff=
15232     ;;
15233   *)
15234     case $LD in # libtool.m4 will add one of these switches to LD
15235     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15236       libsuff= shlibsuff= libmagic=32-bit;;
15237     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15238       libsuff=32 shlibsuff=N32 libmagic=N32;;
15239     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15240       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15241     *) libsuff= shlibsuff= libmagic=never-match;;
15242     esac
15243     ;;
15244   esac
15245   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15246   shlibpath_overrides_runpath=no
15247   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15248   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15249   hardcode_into_libs=yes
15250   ;;
15251
15252 # No shared lib support for Linux oldld, aout, or coff.
15253 linux*oldld* | linux*aout* | linux*coff*)
15254   dynamic_linker=no
15255   ;;
15256
15257 # This must be Linux ELF.
15258 linux*)
15259   version_type=linux
15260   need_lib_prefix=no
15261   need_version=no
15262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263   soname_spec='${libname}${release}${shared_ext}$major'
15264   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15265   shlibpath_var=LD_LIBRARY_PATH
15266   shlibpath_overrides_runpath=no
15267   # This implies no fast_install, which is unacceptable.
15268   # Some rework will be needed to allow for fast_install
15269   # before this can be enabled.
15270   hardcode_into_libs=yes
15271
15272   # Append ld.so.conf contents to the search path
15273   if test -f /etc/ld.so.conf; then
15274     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' ' '`
15275     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15276   fi
15277
15278   # We used to test for /lib/ld.so.1 and disable shared libraries on
15279   # powerpc, because MkLinux only supported shared libraries with the
15280   # GNU dynamic linker.  Since this was broken with cross compilers,
15281   # most powerpc-linux boxes support dynamic linking these days and
15282   # people can always --disable-shared, the test was removed, and we
15283   # assume the GNU/Linux dynamic linker is in use.
15284   dynamic_linker='GNU/Linux ld.so'
15285   ;;
15286
15287 knetbsd*-gnu)
15288   version_type=linux
15289   need_lib_prefix=no
15290   need_version=no
15291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15292   soname_spec='${libname}${release}${shared_ext}$major'
15293   shlibpath_var=LD_LIBRARY_PATH
15294   shlibpath_overrides_runpath=no
15295   hardcode_into_libs=yes
15296   dynamic_linker='GNU ld.so'
15297   ;;
15298
15299 netbsd*)
15300   version_type=sunos
15301   need_lib_prefix=no
15302   need_version=no
15303   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15305     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15306     dynamic_linker='NetBSD (a.out) ld.so'
15307   else
15308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15309     soname_spec='${libname}${release}${shared_ext}$major'
15310     dynamic_linker='NetBSD ld.elf_so'
15311   fi
15312   shlibpath_var=LD_LIBRARY_PATH
15313   shlibpath_overrides_runpath=yes
15314   hardcode_into_libs=yes
15315   ;;
15316
15317 newsos6)
15318   version_type=linux
15319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15320   shlibpath_var=LD_LIBRARY_PATH
15321   shlibpath_overrides_runpath=yes
15322   ;;
15323
15324 nto-qnx*)
15325   version_type=linux
15326   need_lib_prefix=no
15327   need_version=no
15328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15329   soname_spec='${libname}${release}${shared_ext}$major'
15330   shlibpath_var=LD_LIBRARY_PATH
15331   shlibpath_overrides_runpath=yes
15332   ;;
15333
15334 openbsd*)
15335   version_type=sunos
15336   need_lib_prefix=no
15337   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15338   case $host_os in
15339     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15340     *)                         need_version=no  ;;
15341   esac
15342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15343   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15344   shlibpath_var=LD_LIBRARY_PATH
15345   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15346     case $host_os in
15347       openbsd2.[89] | openbsd2.[89].*)
15348         shlibpath_overrides_runpath=no
15349         ;;
15350       *)
15351         shlibpath_overrides_runpath=yes
15352         ;;
15353       esac
15354   else
15355     shlibpath_overrides_runpath=yes
15356   fi
15357   ;;
15358
15359 os2*)
15360   libname_spec='$name'
15361   shrext_cmds=".dll"
15362   need_lib_prefix=no
15363   library_names_spec='$libname${shared_ext} $libname.a'
15364   dynamic_linker='OS/2 ld.exe'
15365   shlibpath_var=LIBPATH
15366   ;;
15367
15368 osf3* | osf4* | osf5*)
15369   version_type=osf
15370   need_lib_prefix=no
15371   need_version=no
15372   soname_spec='${libname}${release}${shared_ext}$major'
15373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15374   shlibpath_var=LD_LIBRARY_PATH
15375   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15376   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15377   ;;
15378
15379 sco3.2v5*)
15380   version_type=osf
15381   soname_spec='${libname}${release}${shared_ext}$major'
15382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383   shlibpath_var=LD_LIBRARY_PATH
15384   ;;
15385
15386 solaris*)
15387   version_type=linux
15388   need_lib_prefix=no
15389   need_version=no
15390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391   soname_spec='${libname}${release}${shared_ext}$major'
15392   shlibpath_var=LD_LIBRARY_PATH
15393   shlibpath_overrides_runpath=yes
15394   hardcode_into_libs=yes
15395   # ldd complains unless libraries are executable
15396   postinstall_cmds='chmod +x $lib'
15397   ;;
15398
15399 sunos4*)
15400   version_type=sunos
15401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15402   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15403   shlibpath_var=LD_LIBRARY_PATH
15404   shlibpath_overrides_runpath=yes
15405   if test "$with_gnu_ld" = yes; then
15406     need_lib_prefix=no
15407   fi
15408   need_version=yes
15409   ;;
15410
15411 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15412   version_type=linux
15413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414   soname_spec='${libname}${release}${shared_ext}$major'
15415   shlibpath_var=LD_LIBRARY_PATH
15416   case $host_vendor in
15417     sni)
15418       shlibpath_overrides_runpath=no
15419       need_lib_prefix=no
15420       export_dynamic_flag_spec='${wl}-Blargedynsym'
15421       runpath_var=LD_RUN_PATH
15422       ;;
15423     siemens)
15424       need_lib_prefix=no
15425       ;;
15426     motorola)
15427       need_lib_prefix=no
15428       need_version=no
15429       shlibpath_overrides_runpath=no
15430       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15431       ;;
15432   esac
15433   ;;
15434
15435 sysv4*MP*)
15436   if test -d /usr/nec ;then
15437     version_type=linux
15438     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15439     soname_spec='$libname${shared_ext}.$major'
15440     shlibpath_var=LD_LIBRARY_PATH
15441   fi
15442   ;;
15443
15444 uts4*)
15445   version_type=linux
15446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15447   soname_spec='${libname}${release}${shared_ext}$major'
15448   shlibpath_var=LD_LIBRARY_PATH
15449   ;;
15450
15451 *)
15452   dynamic_linker=no
15453   ;;
15454 esac
15455 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15456 echo "${ECHO_T}$dynamic_linker" >&6
15457 test "$dynamic_linker" = no && can_build_shared=no
15458
15459 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15460 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15461 hardcode_action_F77=
15462 if test -n "$hardcode_libdir_flag_spec_F77" || \
15463    test -n "$runpath_var_F77" || \
15464    test "X$hardcode_automatic_F77" = "Xyes" ; then
15465
15466   # We can hardcode non-existant directories.
15467   if test "$hardcode_direct_F77" != no &&
15468      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15469      # have to relink, otherwise we might link with an installed library
15470      # when we should be linking with a yet-to-be-installed one
15471      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15472      test "$hardcode_minus_L_F77" != no; then
15473     # Linking always hardcodes the temporary library directory.
15474     hardcode_action_F77=relink
15475   else
15476     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15477     hardcode_action_F77=immediate
15478   fi
15479 else
15480   # We cannot hardcode anything, or else we can only hardcode existing
15481   # directories.
15482   hardcode_action_F77=unsupported
15483 fi
15484 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15485 echo "${ECHO_T}$hardcode_action_F77" >&6
15486
15487 if test "$hardcode_action_F77" = relink; then
15488   # Fast installation is not supported
15489   enable_fast_install=no
15490 elif test "$shlibpath_overrides_runpath" = yes ||
15491      test "$enable_shared" = no; then
15492   # Fast installation is not necessary
15493   enable_fast_install=needless
15494 fi
15495
15496 striplib=
15497 old_striplib=
15498 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15499 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15500 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15501   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15502   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15503   echo "$as_me:$LINENO: result: yes" >&5
15504 echo "${ECHO_T}yes" >&6
15505 else
15506 # FIXME - insert some real tests, host_os isn't really good enough
15507   case $host_os in
15508    darwin*)
15509        if test -n "$STRIP" ; then
15510          striplib="$STRIP -x"
15511          echo "$as_me:$LINENO: result: yes" >&5
15512 echo "${ECHO_T}yes" >&6
15513        else
15514   echo "$as_me:$LINENO: result: no" >&5
15515 echo "${ECHO_T}no" >&6
15516 fi
15517        ;;
15518    *)
15519   echo "$as_me:$LINENO: result: no" >&5
15520 echo "${ECHO_T}no" >&6
15521     ;;
15522   esac
15523 fi
15524
15525
15526
15527 # The else clause should only fire when bootstrapping the
15528 # libtool distribution, otherwise you forgot to ship ltmain.sh
15529 # with your package, and you will get complaints that there are
15530 # no rules to generate ltmain.sh.
15531 if test -f "$ltmain"; then
15532   # See if we are running on zsh, and set the options which allow our commands through
15533   # without removal of \ escapes.
15534   if test -n "${ZSH_VERSION+set}" ; then
15535     setopt NO_GLOB_SUBST
15536   fi
15537   # Now quote all the things that may contain metacharacters while being
15538   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15539   # variables and quote the copies for generation of the libtool script.
15540   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15541     SED SHELL STRIP \
15542     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15543     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15544     deplibs_check_method reload_flag reload_cmds need_locks \
15545     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15546     lt_cv_sys_global_symbol_to_c_name_address \
15547     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15548     old_postinstall_cmds old_postuninstall_cmds \
15549     compiler_F77 \
15550     CC_F77 \
15551     LD_F77 \
15552     lt_prog_compiler_wl_F77 \
15553     lt_prog_compiler_pic_F77 \
15554     lt_prog_compiler_static_F77 \
15555     lt_prog_compiler_no_builtin_flag_F77 \
15556     export_dynamic_flag_spec_F77 \
15557     thread_safe_flag_spec_F77 \
15558     whole_archive_flag_spec_F77 \
15559     enable_shared_with_static_runtimes_F77 \
15560     old_archive_cmds_F77 \
15561     old_archive_from_new_cmds_F77 \
15562     predep_objects_F77 \
15563     postdep_objects_F77 \
15564     predeps_F77 \
15565     postdeps_F77 \
15566     compiler_lib_search_path_F77 \
15567     archive_cmds_F77 \
15568     archive_expsym_cmds_F77 \
15569     postinstall_cmds_F77 \
15570     postuninstall_cmds_F77 \
15571     old_archive_from_expsyms_cmds_F77 \
15572     allow_undefined_flag_F77 \
15573     no_undefined_flag_F77 \
15574     export_symbols_cmds_F77 \
15575     hardcode_libdir_flag_spec_F77 \
15576     hardcode_libdir_flag_spec_ld_F77 \
15577     hardcode_libdir_separator_F77 \
15578     hardcode_automatic_F77 \
15579     module_cmds_F77 \
15580     module_expsym_cmds_F77 \
15581     lt_cv_prog_compiler_c_o_F77 \
15582     exclude_expsyms_F77 \
15583     include_expsyms_F77; do
15584
15585     case $var in
15586     old_archive_cmds_F77 | \
15587     old_archive_from_new_cmds_F77 | \
15588     archive_cmds_F77 | \
15589     archive_expsym_cmds_F77 | \
15590     module_cmds_F77 | \
15591     module_expsym_cmds_F77 | \
15592     old_archive_from_expsyms_cmds_F77 | \
15593     export_symbols_cmds_F77 | \
15594     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15595     postinstall_cmds | postuninstall_cmds | \
15596     old_postinstall_cmds | old_postuninstall_cmds | \
15597     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15598       # Double-quote double-evaled strings.
15599       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15600       ;;
15601     *)
15602       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15603       ;;
15604     esac
15605   done
15606
15607   case $lt_echo in
15608   *'\$0 --fallback-echo"')
15609     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15610     ;;
15611   esac
15612
15613 cfgfile="$ofile"
15614
15615   cat <<__EOF__ >> "$cfgfile"
15616 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15617
15618 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15619
15620 # Shell to use when invoking shell scripts.
15621 SHELL=$lt_SHELL
15622
15623 # Whether or not to build shared libraries.
15624 build_libtool_libs=$enable_shared
15625
15626 # Whether or not to build static libraries.
15627 build_old_libs=$enable_static
15628
15629 # Whether or not to add -lc for building shared libraries.
15630 build_libtool_need_lc=$archive_cmds_need_lc_F77
15631
15632 # Whether or not to disallow shared libs when runtime libs are static
15633 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15634
15635 # Whether or not to optimize for fast installation.
15636 fast_install=$enable_fast_install
15637
15638 # The host system.
15639 host_alias=$host_alias
15640 host=$host
15641 host_os=$host_os
15642
15643 # The build system.
15644 build_alias=$build_alias
15645 build=$build
15646 build_os=$build_os
15647
15648 # An echo program that does not interpret backslashes.
15649 echo=$lt_echo
15650
15651 # The archiver.
15652 AR=$lt_AR
15653 AR_FLAGS=$lt_AR_FLAGS
15654
15655 # A C compiler.
15656 LTCC=$lt_LTCC
15657
15658 # A language-specific compiler.
15659 CC=$lt_compiler_F77
15660
15661 # Is the compiler the GNU C compiler?
15662 with_gcc=$GCC_F77
15663
15664 # An ERE matcher.
15665 EGREP=$lt_EGREP
15666
15667 # The linker used to build libraries.
15668 LD=$lt_LD_F77
15669
15670 # Whether we need hard or soft links.
15671 LN_S=$lt_LN_S
15672
15673 # A BSD-compatible nm program.
15674 NM=$lt_NM
15675
15676 # A symbol stripping program
15677 STRIP=$lt_STRIP
15678
15679 # Used to examine libraries when file_magic_cmd begins "file"
15680 MAGIC_CMD=$MAGIC_CMD
15681
15682 # Used on cygwin: DLL creation program.
15683 DLLTOOL="$DLLTOOL"
15684
15685 # Used on cygwin: object dumper.
15686 OBJDUMP="$OBJDUMP"
15687
15688 # Used on cygwin: assembler.
15689 AS="$AS"
15690
15691 # The name of the directory that contains temporary libtool files.
15692 objdir=$objdir
15693
15694 # How to create reloadable object files.
15695 reload_flag=$lt_reload_flag
15696 reload_cmds=$lt_reload_cmds
15697
15698 # How to pass a linker flag through the compiler.
15699 wl=$lt_lt_prog_compiler_wl_F77
15700
15701 # Object file suffix (normally "o").
15702 objext="$ac_objext"
15703
15704 # Old archive suffix (normally "a").
15705 libext="$libext"
15706
15707 # Shared library suffix (normally ".so").
15708 shrext_cmds='$shrext_cmds'
15709
15710 # Executable file suffix (normally "").
15711 exeext="$exeext"
15712
15713 # Additional compiler flags for building library objects.
15714 pic_flag=$lt_lt_prog_compiler_pic_F77
15715 pic_mode=$pic_mode
15716
15717 # What is the maximum length of a command?
15718 max_cmd_len=$lt_cv_sys_max_cmd_len
15719
15720 # Does compiler simultaneously support -c and -o options?
15721 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15722
15723 # Must we lock files when doing compilation?
15724 need_locks=$lt_need_locks
15725
15726 # Do we need the lib prefix for modules?
15727 need_lib_prefix=$need_lib_prefix
15728
15729 # Do we need a version for libraries?
15730 need_version=$need_version
15731
15732 # Whether dlopen is supported.
15733 dlopen_support=$enable_dlopen
15734
15735 # Whether dlopen of programs is supported.
15736 dlopen_self=$enable_dlopen_self
15737
15738 # Whether dlopen of statically linked programs is supported.
15739 dlopen_self_static=$enable_dlopen_self_static
15740
15741 # Compiler flag to prevent dynamic linking.
15742 link_static_flag=$lt_lt_prog_compiler_static_F77
15743
15744 # Compiler flag to turn off builtin functions.
15745 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15746
15747 # Compiler flag to allow reflexive dlopens.
15748 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15749
15750 # Compiler flag to generate shared objects directly from archives.
15751 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15752
15753 # Compiler flag to generate thread-safe objects.
15754 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15755
15756 # Library versioning type.
15757 version_type=$version_type
15758
15759 # Format of library name prefix.
15760 libname_spec=$lt_libname_spec
15761
15762 # List of archive names.  First name is the real one, the rest are links.
15763 # The last name is the one that the linker finds with -lNAME.
15764 library_names_spec=$lt_library_names_spec
15765
15766 # The coded name of the library, if different from the real name.
15767 soname_spec=$lt_soname_spec
15768
15769 # Commands used to build and install an old-style archive.
15770 RANLIB=$lt_RANLIB
15771 old_archive_cmds=$lt_old_archive_cmds_F77
15772 old_postinstall_cmds=$lt_old_postinstall_cmds
15773 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15774
15775 # Create an old-style archive from a shared archive.
15776 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15777
15778 # Create a temporary old-style archive to link instead of a shared archive.
15779 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15780
15781 # Commands used to build and install a shared archive.
15782 archive_cmds=$lt_archive_cmds_F77
15783 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15784 postinstall_cmds=$lt_postinstall_cmds
15785 postuninstall_cmds=$lt_postuninstall_cmds
15786
15787 # Commands used to build a loadable module (assumed same as above if empty)
15788 module_cmds=$lt_module_cmds_F77
15789 module_expsym_cmds=$lt_module_expsym_cmds_F77
15790
15791 # Commands to strip libraries.
15792 old_striplib=$lt_old_striplib
15793 striplib=$lt_striplib
15794
15795 # Dependencies to place before the objects being linked to create a
15796 # shared library.
15797 predep_objects=$lt_predep_objects_F77
15798
15799 # Dependencies to place after the objects being linked to create a
15800 # shared library.
15801 postdep_objects=$lt_postdep_objects_F77
15802
15803 # Dependencies to place before the objects being linked to create a
15804 # shared library.
15805 predeps=$lt_predeps_F77
15806
15807 # Dependencies to place after the objects being linked to create a
15808 # shared library.
15809 postdeps=$lt_postdeps_F77
15810
15811 # The library search path used internally by the compiler when linking
15812 # a shared library.
15813 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15814
15815 # Method to check whether dependent libraries are shared objects.
15816 deplibs_check_method=$lt_deplibs_check_method
15817
15818 # Command to use when deplibs_check_method == file_magic.
15819 file_magic_cmd=$lt_file_magic_cmd
15820
15821 # Flag that allows shared libraries with undefined symbols to be built.
15822 allow_undefined_flag=$lt_allow_undefined_flag_F77
15823
15824 # Flag that forces no undefined symbols.
15825 no_undefined_flag=$lt_no_undefined_flag_F77
15826
15827 # Commands used to finish a libtool library installation in a directory.
15828 finish_cmds=$lt_finish_cmds
15829
15830 # Same as above, but a single script fragment to be evaled but not shown.
15831 finish_eval=$lt_finish_eval
15832
15833 # Take the output of nm and produce a listing of raw symbols and C names.
15834 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15835
15836 # Transform the output of nm in a proper C declaration
15837 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15838
15839 # Transform the output of nm in a C name address pair
15840 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15841
15842 # This is the shared library runtime path variable.
15843 runpath_var=$runpath_var
15844
15845 # This is the shared library path variable.
15846 shlibpath_var=$shlibpath_var
15847
15848 # Is shlibpath searched before the hard-coded library search path?
15849 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15850
15851 # How to hardcode a shared library path into an executable.
15852 hardcode_action=$hardcode_action_F77
15853
15854 # Whether we should hardcode library paths into libraries.
15855 hardcode_into_libs=$hardcode_into_libs
15856
15857 # Flag to hardcode \$libdir into a binary during linking.
15858 # This must work even if \$libdir does not exist.
15859 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15860
15861 # If ld is used when linking, flag to hardcode \$libdir into
15862 # a binary during linking. This must work even if \$libdir does
15863 # not exist.
15864 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15865
15866 # Whether we need a single -rpath flag with a separated argument.
15867 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15868
15869 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15870 # resulting binary.
15871 hardcode_direct=$hardcode_direct_F77
15872
15873 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15874 # resulting binary.
15875 hardcode_minus_L=$hardcode_minus_L_F77
15876
15877 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15878 # the resulting binary.
15879 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15880
15881 # Set to yes if building a shared library automatically hardcodes DIR into the library
15882 # and all subsequent libraries and executables linked against it.
15883 hardcode_automatic=$hardcode_automatic_F77
15884
15885 # Variables whose values should be saved in libtool wrapper scripts and
15886 # restored at relink time.
15887 variables_saved_for_relink="$variables_saved_for_relink"
15888
15889 # Whether libtool must link a program against all its dependency libraries.
15890 link_all_deplibs=$link_all_deplibs_F77
15891
15892 # Compile-time system search path for libraries
15893 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15894
15895 # Run-time system search path for libraries
15896 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15897
15898 # Fix the shell variable \$srcfile for the compiler.
15899 fix_srcfile_path="$fix_srcfile_path_F77"
15900
15901 # Set to yes if exported symbols are required.
15902 always_export_symbols=$always_export_symbols_F77
15903
15904 # The commands to list exported symbols.
15905 export_symbols_cmds=$lt_export_symbols_cmds_F77
15906
15907 # The commands to extract the exported symbol list from a shared archive.
15908 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15909
15910 # Symbols that should not be listed in the preloaded symbols.
15911 exclude_expsyms=$lt_exclude_expsyms_F77
15912
15913 # Symbols that must always be exported.
15914 include_expsyms=$lt_include_expsyms_F77
15915
15916 # ### END LIBTOOL TAG CONFIG: $tagname
15917
15918 __EOF__
15919
15920
15921 else
15922   # If there is no Makefile yet, we rely on a make rule to execute
15923   # `config.status --recheck' to rerun these tests and create the
15924   # libtool script then.
15925   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15926   if test -f "$ltmain_in"; then
15927     test -f Makefile && make "$ltmain"
15928   fi
15929 fi
15930
15931
15932 ac_ext=c
15933 ac_cpp='$CPP $CPPFLAGS'
15934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15937
15938 CC="$lt_save_CC"
15939
15940         else
15941           tagname=""
15942         fi
15943         ;;
15944
15945       GCJ)
15946         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15947
15948
15949
15950 # Source file extension for Java test sources.
15951 ac_ext=java
15952
15953 # Object file extension for compiled Java test sources.
15954 objext=o
15955 objext_GCJ=$objext
15956
15957 # Code to be used in simple compile tests
15958 lt_simple_compile_test_code="class foo {}\n"
15959
15960 # Code to be used in simple link tests
15961 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15962
15963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15964
15965 # If no C compiler was specified, use CC.
15966 LTCC=${LTCC-"$CC"}
15967
15968 # Allow CC to be a program name with arguments.
15969 compiler=$CC
15970
15971
15972 # save warnings/boilerplate of simple test code
15973 ac_outfile=conftest.$ac_objext
15974 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15975 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15976 _lt_compiler_boilerplate=`cat conftest.err`
15977 $rm conftest*
15978
15979 ac_outfile=conftest.$ac_objext
15980 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15981 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15982 _lt_linker_boilerplate=`cat conftest.err`
15983 $rm conftest*
15984
15985
15986 # Allow CC to be a program name with arguments.
15987 lt_save_CC="$CC"
15988 CC=${GCJ-"gcj"}
15989 compiler=$CC
15990 compiler_GCJ=$CC
15991 for cc_temp in $compiler""; do
15992   case $cc_temp in
15993     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15994     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15995     \-*) ;;
15996     *) break;;
15997   esac
15998 done
15999 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16000
16001
16002 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16003 archive_cmds_need_lc_GCJ=no
16004
16005 old_archive_cmds_GCJ=$old_archive_cmds
16006
16007
16008 lt_prog_compiler_no_builtin_flag_GCJ=
16009
16010 if test "$GCC" = yes; then
16011   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16012
16013
16014 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16015 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16016 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16017   echo $ECHO_N "(cached) $ECHO_C" >&6
16018 else
16019   lt_cv_prog_compiler_rtti_exceptions=no
16020   ac_outfile=conftest.$ac_objext
16021    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16022    lt_compiler_flag="-fno-rtti -fno-exceptions"
16023    # Insert the option either (1) after the last *FLAGS variable, or
16024    # (2) before a word containing "conftest.", or (3) at the end.
16025    # Note that $ac_compile itself does not contain backslashes and begins
16026    # with a dollar sign (not a hyphen), so the echo should work correctly.
16027    # The option is referenced via a variable to avoid confusing sed.
16028    lt_compile=`echo "$ac_compile" | $SED \
16029    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16030    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16031    -e 's:$: $lt_compiler_flag:'`
16032    (eval echo "\"\$as_me:16032: $lt_compile\"" >&5)
16033    (eval "$lt_compile" 2>conftest.err)
16034    ac_status=$?
16035    cat conftest.err >&5
16036    echo "$as_me:16036: \$? = $ac_status" >&5
16037    if (exit $ac_status) && test -s "$ac_outfile"; then
16038      # The compiler can only warn and ignore the option if not recognized
16039      # So say no if there are warnings other than the usual output.
16040      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16041      $SED '/^$/d' conftest.err >conftest.er2
16042      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16043        lt_cv_prog_compiler_rtti_exceptions=yes
16044      fi
16045    fi
16046    $rm conftest*
16047
16048 fi
16049 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16050 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16051
16052 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16053     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16054 else
16055     :
16056 fi
16057
16058 fi
16059
16060 lt_prog_compiler_wl_GCJ=
16061 lt_prog_compiler_pic_GCJ=
16062 lt_prog_compiler_static_GCJ=
16063
16064 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16065 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16066
16067   if test "$GCC" = yes; then
16068     lt_prog_compiler_wl_GCJ='-Wl,'
16069     lt_prog_compiler_static_GCJ='-static'
16070
16071     case $host_os in
16072       aix*)
16073       # All AIX code is PIC.
16074       if test "$host_cpu" = ia64; then
16075         # AIX 5 now supports IA64 processor
16076         lt_prog_compiler_static_GCJ='-Bstatic'
16077       fi
16078       ;;
16079
16080     amigaos*)
16081       # FIXME: we need at least 68020 code to build shared libraries, but
16082       # adding the `-m68020' flag to GCC prevents building anything better,
16083       # like `-m68040'.
16084       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16085       ;;
16086
16087     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16088       # PIC is the default for these OSes.
16089       ;;
16090
16091     mingw* | pw32* | os2*)
16092       # This hack is so that the source file can tell whether it is being
16093       # built for inclusion in a dll (and should export symbols for example).
16094       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16095       ;;
16096
16097     darwin* | rhapsody*)
16098       # PIC is the default on this platform
16099       # Common symbols not allowed in MH_DYLIB files
16100       lt_prog_compiler_pic_GCJ='-fno-common'
16101       ;;
16102
16103     msdosdjgpp*)
16104       # Just because we use GCC doesn't mean we suddenly get shared libraries
16105       # on systems that don't support them.
16106       lt_prog_compiler_can_build_shared_GCJ=no
16107       enable_shared=no
16108       ;;
16109
16110     sysv4*MP*)
16111       if test -d /usr/nec; then
16112         lt_prog_compiler_pic_GCJ=-Kconform_pic
16113       fi
16114       ;;
16115
16116     hpux*)
16117       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16118       # not for PA HP-UX.
16119       case "$host_cpu" in
16120       hppa*64*|ia64*)
16121         # +Z the default
16122         ;;
16123       *)
16124         lt_prog_compiler_pic_GCJ='-fPIC'
16125         ;;
16126       esac
16127       ;;
16128
16129     *)
16130       lt_prog_compiler_pic_GCJ='-fPIC'
16131       ;;
16132     esac
16133   else
16134     # PORTME Check for flag to pass linker flags through the system compiler.
16135     case $host_os in
16136     aix*)
16137       lt_prog_compiler_wl_GCJ='-Wl,'
16138       if test "$host_cpu" = ia64; then
16139         # AIX 5 now supports IA64 processor
16140         lt_prog_compiler_static_GCJ='-Bstatic'
16141       else
16142         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16143       fi
16144       ;;
16145       darwin*)
16146         # PIC is the default on this platform
16147         # Common symbols not allowed in MH_DYLIB files
16148        case $cc_basename in
16149          xlc*)
16150          lt_prog_compiler_pic_GCJ='-qnocommon'
16151          lt_prog_compiler_wl_GCJ='-Wl,'
16152          ;;
16153        esac
16154        ;;
16155
16156     mingw* | pw32* | os2*)
16157       # This hack is so that the source file can tell whether it is being
16158       # built for inclusion in a dll (and should export symbols for example).
16159       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16160       ;;
16161
16162     hpux9* | hpux10* | hpux11*)
16163       lt_prog_compiler_wl_GCJ='-Wl,'
16164       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16165       # not for PA HP-UX.
16166       case "$host_cpu" in
16167       hppa*64*|ia64*)
16168         # +Z the default
16169         ;;
16170       *)
16171         lt_prog_compiler_pic_GCJ='+Z'
16172         ;;
16173       esac
16174       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16175       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16176       ;;
16177
16178     irix5* | irix6* | nonstopux*)
16179       lt_prog_compiler_wl_GCJ='-Wl,'
16180       # PIC (with -KPIC) is the default.
16181       lt_prog_compiler_static_GCJ='-non_shared'
16182       ;;
16183
16184     newsos6)
16185       lt_prog_compiler_pic_GCJ='-KPIC'
16186       lt_prog_compiler_static_GCJ='-Bstatic'
16187       ;;
16188
16189     linux*)
16190       case $cc_basename in
16191       icc* | ecc*)
16192         lt_prog_compiler_wl_GCJ='-Wl,'
16193         lt_prog_compiler_pic_GCJ='-KPIC'
16194         lt_prog_compiler_static_GCJ='-static'
16195         ;;
16196       pgcc* | pgf77* | pgf90*)
16197         # Portland Group compilers (*not* the Pentium gcc compiler,
16198         # which looks to be a dead project)
16199         lt_prog_compiler_wl_GCJ='-Wl,'
16200         lt_prog_compiler_pic_GCJ='-fpic'
16201         lt_prog_compiler_static_GCJ='-static'
16202         ;;
16203       ccc*)
16204         lt_prog_compiler_wl_GCJ='-Wl,'
16205         # All Alpha code is PIC.
16206         lt_prog_compiler_static_GCJ='-non_shared'
16207         ;;
16208       esac
16209       ;;
16210
16211     osf3* | osf4* | osf5*)
16212       lt_prog_compiler_wl_GCJ='-Wl,'
16213       # All OSF/1 code is PIC.
16214       lt_prog_compiler_static_GCJ='-non_shared'
16215       ;;
16216
16217     sco3.2v5*)
16218       lt_prog_compiler_pic_GCJ='-Kpic'
16219       lt_prog_compiler_static_GCJ='-dn'
16220       ;;
16221
16222     solaris*)
16223       lt_prog_compiler_pic_GCJ='-KPIC'
16224       lt_prog_compiler_static_GCJ='-Bstatic'
16225       case $cc_basename in
16226       f77* | f90* | f95*)
16227         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16228       *)
16229         lt_prog_compiler_wl_GCJ='-Wl,';;
16230       esac
16231       ;;
16232
16233     sunos4*)
16234       lt_prog_compiler_wl_GCJ='-Qoption ld '
16235       lt_prog_compiler_pic_GCJ='-PIC'
16236       lt_prog_compiler_static_GCJ='-Bstatic'
16237       ;;
16238
16239     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16240       lt_prog_compiler_wl_GCJ='-Wl,'
16241       lt_prog_compiler_pic_GCJ='-KPIC'
16242       lt_prog_compiler_static_GCJ='-Bstatic'
16243       ;;
16244
16245     sysv4*MP*)
16246       if test -d /usr/nec ;then
16247         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16248         lt_prog_compiler_static_GCJ='-Bstatic'
16249       fi
16250       ;;
16251
16252     unicos*)
16253       lt_prog_compiler_wl_GCJ='-Wl,'
16254       lt_prog_compiler_can_build_shared_GCJ=no
16255       ;;
16256
16257     uts4*)
16258       lt_prog_compiler_pic_GCJ='-pic'
16259       lt_prog_compiler_static_GCJ='-Bstatic'
16260       ;;
16261
16262     *)
16263       lt_prog_compiler_can_build_shared_GCJ=no
16264       ;;
16265     esac
16266   fi
16267
16268 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16269 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16270
16271 #
16272 # Check to make sure the PIC flag actually works.
16273 #
16274 if test -n "$lt_prog_compiler_pic_GCJ"; then
16275
16276 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16277 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16278 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16279   echo $ECHO_N "(cached) $ECHO_C" >&6
16280 else
16281   lt_prog_compiler_pic_works_GCJ=no
16282   ac_outfile=conftest.$ac_objext
16283    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16284    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16285    # Insert the option either (1) after the last *FLAGS variable, or
16286    # (2) before a word containing "conftest.", or (3) at the end.
16287    # Note that $ac_compile itself does not contain backslashes and begins
16288    # with a dollar sign (not a hyphen), so the echo should work correctly.
16289    # The option is referenced via a variable to avoid confusing sed.
16290    lt_compile=`echo "$ac_compile" | $SED \
16291    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16292    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16293    -e 's:$: $lt_compiler_flag:'`
16294    (eval echo "\"\$as_me:16294: $lt_compile\"" >&5)
16295    (eval "$lt_compile" 2>conftest.err)
16296    ac_status=$?
16297    cat conftest.err >&5
16298    echo "$as_me:16298: \$? = $ac_status" >&5
16299    if (exit $ac_status) && test -s "$ac_outfile"; then
16300      # The compiler can only warn and ignore the option if not recognized
16301      # So say no if there are warnings other than the usual output.
16302      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16303      $SED '/^$/d' conftest.err >conftest.er2
16304      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16305        lt_prog_compiler_pic_works_GCJ=yes
16306      fi
16307    fi
16308    $rm conftest*
16309
16310 fi
16311 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16312 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16313
16314 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16315     case $lt_prog_compiler_pic_GCJ in
16316      "" | " "*) ;;
16317      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16318      esac
16319 else
16320     lt_prog_compiler_pic_GCJ=
16321      lt_prog_compiler_can_build_shared_GCJ=no
16322 fi
16323
16324 fi
16325 case "$host_os" in
16326   # For platforms which do not support PIC, -DPIC is meaningless:
16327   *djgpp*)
16328     lt_prog_compiler_pic_GCJ=
16329     ;;
16330   *)
16331     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16332     ;;
16333 esac
16334
16335 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16337 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16338   echo $ECHO_N "(cached) $ECHO_C" >&6
16339 else
16340   lt_cv_prog_compiler_c_o_GCJ=no
16341    $rm -r conftest 2>/dev/null
16342    mkdir conftest
16343    cd conftest
16344    mkdir out
16345    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16346
16347    lt_compiler_flag="-o out/conftest2.$ac_objext"
16348    # Insert the option either (1) after the last *FLAGS variable, or
16349    # (2) before a word containing "conftest.", or (3) at the end.
16350    # Note that $ac_compile itself does not contain backslashes and begins
16351    # with a dollar sign (not a hyphen), so the echo should work correctly.
16352    lt_compile=`echo "$ac_compile" | $SED \
16353    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16355    -e 's:$: $lt_compiler_flag:'`
16356    (eval echo "\"\$as_me:16356: $lt_compile\"" >&5)
16357    (eval "$lt_compile" 2>out/conftest.err)
16358    ac_status=$?
16359    cat out/conftest.err >&5
16360    echo "$as_me:16360: \$? = $ac_status" >&5
16361    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16362    then
16363      # The compiler can only warn and ignore the option if not recognized
16364      # So say no if there are warnings
16365      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16366      $SED '/^$/d' out/conftest.err >out/conftest.er2
16367      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16368        lt_cv_prog_compiler_c_o_GCJ=yes
16369      fi
16370    fi
16371    chmod u+w .
16372    $rm conftest*
16373    # SGI C++ compiler will create directory out/ii_files/ for
16374    # template instantiation
16375    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16376    $rm out/* && rmdir out
16377    cd ..
16378    rmdir conftest
16379    $rm conftest*
16380
16381 fi
16382 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16383 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16384
16385
16386 hard_links="nottested"
16387 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16388   # do not overwrite the value of need_locks provided by the user
16389   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16390 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16391   hard_links=yes
16392   $rm conftest*
16393   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16394   touch conftest.a
16395   ln conftest.a conftest.b 2>&5 || hard_links=no
16396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16397   echo "$as_me:$LINENO: result: $hard_links" >&5
16398 echo "${ECHO_T}$hard_links" >&6
16399   if test "$hard_links" = no; then
16400     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16401 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16402     need_locks=warn
16403   fi
16404 else
16405   need_locks=no
16406 fi
16407
16408 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16410
16411   runpath_var=
16412   allow_undefined_flag_GCJ=
16413   enable_shared_with_static_runtimes_GCJ=no
16414   archive_cmds_GCJ=
16415   archive_expsym_cmds_GCJ=
16416   old_archive_From_new_cmds_GCJ=
16417   old_archive_from_expsyms_cmds_GCJ=
16418   export_dynamic_flag_spec_GCJ=
16419   whole_archive_flag_spec_GCJ=
16420   thread_safe_flag_spec_GCJ=
16421   hardcode_libdir_flag_spec_GCJ=
16422   hardcode_libdir_flag_spec_ld_GCJ=
16423   hardcode_libdir_separator_GCJ=
16424   hardcode_direct_GCJ=no
16425   hardcode_minus_L_GCJ=no
16426   hardcode_shlibpath_var_GCJ=unsupported
16427   link_all_deplibs_GCJ=unknown
16428   hardcode_automatic_GCJ=no
16429   module_cmds_GCJ=
16430   module_expsym_cmds_GCJ=
16431   always_export_symbols_GCJ=no
16432   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16433   # include_expsyms should be a list of space-separated symbols to be *always*
16434   # included in the symbol list
16435   include_expsyms_GCJ=
16436   # exclude_expsyms can be an extended regexp of symbols to exclude
16437   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16438   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16439   # as well as any symbol that contains `d'.
16440   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16441   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16442   # platforms (ab)use it in PIC code, but their linkers get confused if
16443   # the symbol is explicitly referenced.  Since portable code cannot
16444   # rely on this symbol name, it's probably fine to never include it in
16445   # preloaded symbol tables.
16446   extract_expsyms_cmds=
16447   # Just being paranoid about ensuring that cc_basename is set.
16448   for cc_temp in $compiler""; do
16449   case $cc_temp in
16450     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16451     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16452     \-*) ;;
16453     *) break;;
16454   esac
16455 done
16456 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16457
16458   case $host_os in
16459   cygwin* | mingw* | pw32*)
16460     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16461     # When not using gcc, we currently assume that we are using
16462     # Microsoft Visual C++.
16463     if test "$GCC" != yes; then
16464       with_gnu_ld=no
16465     fi
16466     ;;
16467   openbsd*)
16468     with_gnu_ld=no
16469     ;;
16470   esac
16471
16472   ld_shlibs_GCJ=yes
16473   if test "$with_gnu_ld" = yes; then
16474     # If archive_cmds runs LD, not CC, wlarc should be empty
16475     wlarc='${wl}'
16476
16477     # Set some defaults for GNU ld with shared library support. These
16478     # are reset later if shared libraries are not supported. Putting them
16479     # here allows them to be overridden if necessary.
16480     runpath_var=LD_RUN_PATH
16481     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16482     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16483     # ancient GNU ld didn't support --whole-archive et. al.
16484     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16485         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16486       else
16487         whole_archive_flag_spec_GCJ=
16488     fi
16489     supports_anon_versioning=no
16490     case `$LD -v 2>/dev/null` in
16491       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16492       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16493       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16494       *\ 2.11.*) ;; # other 2.11 versions
16495       *) supports_anon_versioning=yes ;;
16496     esac
16497
16498     # See if GNU ld supports shared libraries.
16499     case $host_os in
16500     aix3* | aix4* | aix5*)
16501       # On AIX/PPC, the GNU linker is very broken
16502       if test "$host_cpu" != ia64; then
16503         ld_shlibs_GCJ=no
16504         cat <<EOF 1>&2
16505
16506 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16507 *** to be unable to reliably create shared libraries on AIX.
16508 *** Therefore, libtool is disabling shared libraries support.  If you
16509 *** really care for shared libraries, you may want to modify your PATH
16510 *** so that a non-GNU linker is found, and then restart.
16511
16512 EOF
16513       fi
16514       ;;
16515
16516     amigaos*)
16517       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)'
16518       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16519       hardcode_minus_L_GCJ=yes
16520
16521       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16522       # that the semantics of dynamic libraries on AmigaOS, at least up
16523       # to version 4, is to share data among multiple programs linked
16524       # with the same dynamic library.  Since this doesn't match the
16525       # behavior of shared libraries on other platforms, we can't use
16526       # them.
16527       ld_shlibs_GCJ=no
16528       ;;
16529
16530     beos*)
16531       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16532         allow_undefined_flag_GCJ=unsupported
16533         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16534         # support --undefined.  This deserves some investigation.  FIXME
16535         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16536       else
16537         ld_shlibs_GCJ=no
16538       fi
16539       ;;
16540
16541     cygwin* | mingw* | pw32*)
16542       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16543       # as there is no search path for DLLs.
16544       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16545       allow_undefined_flag_GCJ=unsupported
16546       always_export_symbols_GCJ=no
16547       enable_shared_with_static_runtimes_GCJ=yes
16548       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16549
16550       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16551         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16552         # If the export-symbols file already is a .def file (1st line
16553         # is EXPORTS), use it as is; otherwise, prepend...
16554         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16555           cp $export_symbols $output_objdir/$soname.def;
16556         else
16557           echo EXPORTS > $output_objdir/$soname.def;
16558           cat $export_symbols >> $output_objdir/$soname.def;
16559         fi~
16560         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16561       else
16562         ld_shlibs_GCJ=no
16563       fi
16564       ;;
16565
16566     linux*)
16567       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16568         tmp_addflag=
16569         case $cc_basename,$host_cpu in
16570         pgcc*)                          # Portland Group C compiler
16571           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'
16572           tmp_addflag=' $pic_flag'
16573           ;;
16574         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16575           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'
16576           tmp_addflag=' $pic_flag -Mnomain' ;;
16577         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16578           tmp_addflag=' -i_dynamic' ;;
16579         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16580           tmp_addflag=' -i_dynamic -nofor_main' ;;
16581         ifc* | ifort*)                  # Intel Fortran compiler
16582           tmp_addflag=' -nofor_main' ;;
16583         esac
16584         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16585
16586         if test $supports_anon_versioning = yes; then
16587           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16588   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16589   $echo "local: *; };" >> $output_objdir/$libname.ver~
16590           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16591         fi
16592       else
16593         ld_shlibs_GCJ=no
16594       fi
16595       ;;
16596
16597     netbsd*)
16598       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16599         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16600         wlarc=
16601       else
16602         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16603         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16604       fi
16605       ;;
16606
16607     solaris* | sysv5*)
16608       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16609         ld_shlibs_GCJ=no
16610         cat <<EOF 1>&2
16611
16612 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16613 *** create shared libraries on Solaris systems.  Therefore, libtool
16614 *** is disabling shared libraries support.  We urge you to upgrade GNU
16615 *** binutils to release 2.9.1 or newer.  Another option is to modify
16616 *** your PATH or compiler configuration so that the native linker is
16617 *** used, and then restart.
16618
16619 EOF
16620       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16621         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16622         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16623       else
16624         ld_shlibs_GCJ=no
16625       fi
16626       ;;
16627
16628     sunos4*)
16629       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16630       wlarc=
16631       hardcode_direct_GCJ=yes
16632       hardcode_shlibpath_var_GCJ=no
16633       ;;
16634
16635     *)
16636       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16637         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16638         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16639       else
16640         ld_shlibs_GCJ=no
16641       fi
16642       ;;
16643     esac
16644
16645     if test "$ld_shlibs_GCJ" = no; then
16646       runpath_var=
16647       hardcode_libdir_flag_spec_GCJ=
16648       export_dynamic_flag_spec_GCJ=
16649       whole_archive_flag_spec_GCJ=
16650     fi
16651   else
16652     # PORTME fill in a description of your system's linker (not GNU ld)
16653     case $host_os in
16654     aix3*)
16655       allow_undefined_flag_GCJ=unsupported
16656       always_export_symbols_GCJ=yes
16657       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'
16658       # Note: this linker hardcodes the directories in LIBPATH if there
16659       # are no directories specified by -L.
16660       hardcode_minus_L_GCJ=yes
16661       if test "$GCC" = yes && test -z "$link_static_flag"; then
16662         # Neither direct hardcoding nor static linking is supported with a
16663         # broken collect2.
16664         hardcode_direct_GCJ=unsupported
16665       fi
16666       ;;
16667
16668     aix4* | aix5*)
16669       if test "$host_cpu" = ia64; then
16670         # On IA64, the linker does run time linking by default, so we don't
16671         # have to do anything special.
16672         aix_use_runtimelinking=no
16673         exp_sym_flag='-Bexport'
16674         no_entry_flag=""
16675       else
16676         # If we're using GNU nm, then we don't want the "-C" option.
16677         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16678         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16679           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'
16680         else
16681           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'
16682         fi
16683         aix_use_runtimelinking=no
16684
16685         # Test if we are trying to use run time linking or normal
16686         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16687         # need to do runtime linking.
16688         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16689           for ld_flag in $LDFLAGS; do
16690           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16691             aix_use_runtimelinking=yes
16692             break
16693           fi
16694           done
16695         esac
16696
16697         exp_sym_flag='-bexport'
16698         no_entry_flag='-bnoentry'
16699       fi
16700
16701       # When large executables or shared objects are built, AIX ld can
16702       # have problems creating the table of contents.  If linking a library
16703       # or program results in "error TOC overflow" add -mminimal-toc to
16704       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16705       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16706
16707       archive_cmds_GCJ=''
16708       hardcode_direct_GCJ=yes
16709       hardcode_libdir_separator_GCJ=':'
16710       link_all_deplibs_GCJ=yes
16711
16712       if test "$GCC" = yes; then
16713         case $host_os in aix4.[012]|aix4.[012].*)
16714         # We only want to do this on AIX 4.2 and lower, the check
16715         # below for broken collect2 doesn't work under 4.3+
16716           collect2name=`${CC} -print-prog-name=collect2`
16717           if test -f "$collect2name" && \
16718            strings "$collect2name" | grep resolve_lib_name >/dev/null
16719           then
16720           # We have reworked collect2
16721           hardcode_direct_GCJ=yes
16722           else
16723           # We have old collect2
16724           hardcode_direct_GCJ=unsupported
16725           # It fails to find uninstalled libraries when the uninstalled
16726           # path is not listed in the libpath.  Setting hardcode_minus_L
16727           # to unsupported forces relinking
16728           hardcode_minus_L_GCJ=yes
16729           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16730           hardcode_libdir_separator_GCJ=
16731           fi
16732         esac
16733         shared_flag='-shared'
16734         if test "$aix_use_runtimelinking" = yes; then
16735           shared_flag="$shared_flag "'${wl}-G'
16736         fi
16737       else
16738         # not using gcc
16739         if test "$host_cpu" = ia64; then
16740         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16741         # chokes on -Wl,-G. The following line is correct:
16742           shared_flag='-G'
16743         else
16744         if test "$aix_use_runtimelinking" = yes; then
16745             shared_flag='${wl}-G'
16746           else
16747             shared_flag='${wl}-bM:SRE'
16748         fi
16749         fi
16750       fi
16751
16752       # It seems that -bexpall does not export symbols beginning with
16753       # underscore (_), so it is better to generate a list of symbols to export.
16754       always_export_symbols_GCJ=yes
16755       if test "$aix_use_runtimelinking" = yes; then
16756         # Warning - without using the other runtime loading flags (-brtl),
16757         # -berok will link without error, but may produce a broken library.
16758         allow_undefined_flag_GCJ='-berok'
16759        # Determine the default libpath from the value encoded in an empty executable.
16760        cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h.  */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h.  */
16766
16767 int
16768 main ()
16769 {
16770
16771   ;
16772   return 0;
16773 }
16774 _ACEOF
16775 rm -f conftest.$ac_objext conftest$ac_exeext
16776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16777   (eval $ac_link) 2>conftest.er1
16778   ac_status=$?
16779   grep -v '^ *+' conftest.er1 >conftest.err
16780   rm -f conftest.er1
16781   cat conftest.err >&5
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); } &&
16784          { ac_try='test -z "$ac_c_werror_flag"
16785                          || test ! -s conftest.err'
16786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787   (eval $ac_try) 2>&5
16788   ac_status=$?
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); }; } &&
16791          { ac_try='test -s conftest$ac_exeext'
16792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793   (eval $ac_try) 2>&5
16794   ac_status=$?
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); }; }; then
16797
16798 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16799 }'`
16800 # Check for a 64-bit object if we didn't find anything.
16801 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; }
16802 }'`; fi
16803 else
16804   echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16806
16807 fi
16808 rm -f conftest.err conftest.$ac_objext \
16809       conftest$ac_exeext conftest.$ac_ext
16810 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16811
16812        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16813         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"
16814        else
16815         if test "$host_cpu" = ia64; then
16816           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16817           allow_undefined_flag_GCJ="-z nodefs"
16818           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"
16819         else
16820          # Determine the default libpath from the value encoded in an empty executable.
16821          cat >conftest.$ac_ext <<_ACEOF
16822 /* confdefs.h.  */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h.  */
16827
16828 int
16829 main ()
16830 {
16831
16832   ;
16833   return 0;
16834 }
16835 _ACEOF
16836 rm -f conftest.$ac_objext conftest$ac_exeext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16838   (eval $ac_link) 2>conftest.er1
16839   ac_status=$?
16840   grep -v '^ *+' conftest.er1 >conftest.err
16841   rm -f conftest.er1
16842   cat conftest.err >&5
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); } &&
16845          { ac_try='test -z "$ac_c_werror_flag"
16846                          || test ! -s conftest.err'
16847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848   (eval $ac_try) 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }; } &&
16852          { ac_try='test -s conftest$ac_exeext'
16853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854   (eval $ac_try) 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); }; }; then
16858
16859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16860 }'`
16861 # Check for a 64-bit object if we didn't find anything.
16862 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; }
16863 }'`; fi
16864 else
16865   echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16867
16868 fi
16869 rm -f conftest.err conftest.$ac_objext \
16870       conftest$ac_exeext conftest.$ac_ext
16871 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16872
16873          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16874           # Warning - without using the other run time loading flags,
16875           # -berok will link without error, but may produce a broken library.
16876           no_undefined_flag_GCJ=' ${wl}-bernotok'
16877           allow_undefined_flag_GCJ=' ${wl}-berok'
16878           # -bexpall does not export symbols beginning with underscore (_)
16879           always_export_symbols_GCJ=yes
16880           # Exported symbols can be pulled into shared objects from archives
16881           whole_archive_flag_spec_GCJ=' '
16882           archive_cmds_need_lc_GCJ=yes
16883           # This is similar to how AIX traditionally builds it's shared libraries.
16884           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'
16885         fi
16886       fi
16887       ;;
16888
16889     amigaos*)
16890       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)'
16891       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16892       hardcode_minus_L_GCJ=yes
16893       # see comment about different semantics on the GNU ld section
16894       ld_shlibs_GCJ=no
16895       ;;
16896
16897     bsdi[45]*)
16898       export_dynamic_flag_spec_GCJ=-rdynamic
16899       ;;
16900
16901     cygwin* | mingw* | pw32*)
16902       # When not using gcc, we currently assume that we are using
16903       # Microsoft Visual C++.
16904       # hardcode_libdir_flag_spec is actually meaningless, as there is
16905       # no search path for DLLs.
16906       hardcode_libdir_flag_spec_GCJ=' '
16907       allow_undefined_flag_GCJ=unsupported
16908       # Tell ltmain to make .lib files, not .a files.
16909       libext=lib
16910       # Tell ltmain to make .dll files, not .so files.
16911       shrext_cmds=".dll"
16912       # FIXME: Setting linknames here is a bad hack.
16913       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16914       # The linker will automatically build a .lib file if we build a DLL.
16915       old_archive_From_new_cmds_GCJ='true'
16916       # FIXME: Should let the user specify the lib program.
16917       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16918       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16919       enable_shared_with_static_runtimes_GCJ=yes
16920       ;;
16921
16922     darwin* | rhapsody*)
16923       case "$host_os" in
16924         rhapsody* | darwin1.[012])
16925          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16926          ;;
16927        *) # Darwin 1.3 on
16928          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16929            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16930          else
16931            case ${MACOSX_DEPLOYMENT_TARGET} in
16932              10.[012])
16933                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16934                ;;
16935              10.*)
16936                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16937                ;;
16938            esac
16939          fi
16940          ;;
16941       esac
16942       archive_cmds_need_lc_GCJ=no
16943       hardcode_direct_GCJ=no
16944       hardcode_automatic_GCJ=yes
16945       hardcode_shlibpath_var_GCJ=unsupported
16946       whole_archive_flag_spec_GCJ=''
16947       link_all_deplibs_GCJ=yes
16948     if test "$GCC" = yes ; then
16949         output_verbose_link_cmd='echo'
16950         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16951       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16952       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16953       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}'
16954       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}'
16955     else
16956       case $cc_basename in
16957         xlc*)
16958          output_verbose_link_cmd='echo'
16959          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16960          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16961           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16962          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}'
16963           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}'
16964           ;;
16965        *)
16966          ld_shlibs_GCJ=no
16967           ;;
16968       esac
16969     fi
16970       ;;
16971
16972     dgux*)
16973       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16974       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16975       hardcode_shlibpath_var_GCJ=no
16976       ;;
16977
16978     freebsd1*)
16979       ld_shlibs_GCJ=no
16980       ;;
16981
16982     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16983     # support.  Future versions do this automatically, but an explicit c++rt0.o
16984     # does not break anything, and helps significantly (at the cost of a little
16985     # extra space).
16986     freebsd2.2*)
16987       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16988       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16989       hardcode_direct_GCJ=yes
16990       hardcode_shlibpath_var_GCJ=no
16991       ;;
16992
16993     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16994     freebsd2*)
16995       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16996       hardcode_direct_GCJ=yes
16997       hardcode_minus_L_GCJ=yes
16998       hardcode_shlibpath_var_GCJ=no
16999       ;;
17000
17001     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17002     freebsd* | kfreebsd*-gnu | dragonfly*)
17003       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17004       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17005       hardcode_direct_GCJ=yes
17006       hardcode_shlibpath_var_GCJ=no
17007       ;;
17008
17009     hpux9*)
17010       if test "$GCC" = yes; then
17011         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'
17012       else
17013         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'
17014       fi
17015       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17016       hardcode_libdir_separator_GCJ=:
17017       hardcode_direct_GCJ=yes
17018
17019       # hardcode_minus_L: Not really in the search PATH,
17020       # but as the default location of the library.
17021       hardcode_minus_L_GCJ=yes
17022       export_dynamic_flag_spec_GCJ='${wl}-E'
17023       ;;
17024
17025     hpux10* | hpux11*)
17026       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17027         case "$host_cpu" in
17028         hppa*64*|ia64*)
17029           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17030           ;;
17031         *)
17032           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17033           ;;
17034         esac
17035       else
17036         case "$host_cpu" in
17037         hppa*64*|ia64*)
17038           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17039           ;;
17040         *)
17041           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17042           ;;
17043         esac
17044       fi
17045       if test "$with_gnu_ld" = no; then
17046         case "$host_cpu" in
17047         hppa*64*)
17048           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17049           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17050           hardcode_libdir_separator_GCJ=:
17051           hardcode_direct_GCJ=no
17052           hardcode_shlibpath_var_GCJ=no
17053           ;;
17054         ia64*)
17055           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17056           hardcode_direct_GCJ=no
17057           hardcode_shlibpath_var_GCJ=no
17058
17059           # hardcode_minus_L: Not really in the search PATH,
17060           # but as the default location of the library.
17061           hardcode_minus_L_GCJ=yes
17062           ;;
17063         *)
17064           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17065           hardcode_libdir_separator_GCJ=:
17066           hardcode_direct_GCJ=yes
17067           export_dynamic_flag_spec_GCJ='${wl}-E'
17068
17069           # hardcode_minus_L: Not really in the search PATH,
17070           # but as the default location of the library.
17071           hardcode_minus_L_GCJ=yes
17072           ;;
17073         esac
17074       fi
17075       ;;
17076
17077     irix5* | irix6* | nonstopux*)
17078       if test "$GCC" = yes; then
17079         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'
17080       else
17081         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'
17082         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17083       fi
17084       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17085       hardcode_libdir_separator_GCJ=:
17086       link_all_deplibs_GCJ=yes
17087       ;;
17088
17089     netbsd*)
17090       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17091         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17092       else
17093         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17094       fi
17095       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17096       hardcode_direct_GCJ=yes
17097       hardcode_shlibpath_var_GCJ=no
17098       ;;
17099
17100     newsos6)
17101       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102       hardcode_direct_GCJ=yes
17103       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17104       hardcode_libdir_separator_GCJ=:
17105       hardcode_shlibpath_var_GCJ=no
17106       ;;
17107
17108     openbsd*)
17109       hardcode_direct_GCJ=yes
17110       hardcode_shlibpath_var_GCJ=no
17111       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17112         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17113         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17114         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17115         export_dynamic_flag_spec_GCJ='${wl}-E'
17116       else
17117        case $host_os in
17118          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17119            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17120            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17121            ;;
17122          *)
17123            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17124            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17125            ;;
17126        esac
17127       fi
17128       ;;
17129
17130     os2*)
17131       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17132       hardcode_minus_L_GCJ=yes
17133       allow_undefined_flag_GCJ=unsupported
17134       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'
17135       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17136       ;;
17137
17138     osf3*)
17139       if test "$GCC" = yes; then
17140         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17141         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'
17142       else
17143         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17144         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'
17145       fi
17146       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17147       hardcode_libdir_separator_GCJ=:
17148       ;;
17149
17150     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17151       if test "$GCC" = yes; then
17152         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17153         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'
17154         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17155       else
17156         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17157         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'
17158         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~
17159         $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'
17160
17161         # Both c and cxx compiler support -rpath directly
17162         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17163       fi
17164       hardcode_libdir_separator_GCJ=:
17165       ;;
17166
17167     sco3.2v5*)
17168       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17169       hardcode_shlibpath_var_GCJ=no
17170       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17171       runpath_var=LD_RUN_PATH
17172       hardcode_runpath_var=yes
17173       ;;
17174
17175     solaris*)
17176       no_undefined_flag_GCJ=' -z text'
17177       if test "$GCC" = yes; then
17178         wlarc='${wl}'
17179         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17180         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17181           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17182       else
17183         wlarc=''
17184         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17185         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17186         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17187       fi
17188       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17189       hardcode_shlibpath_var_GCJ=no
17190       case $host_os in
17191       solaris2.[0-5] | solaris2.[0-5].*) ;;
17192       *)
17193         # The compiler driver will combine linker options so we
17194         # cannot just pass the convience library names through
17195         # without $wl, iff we do not link with $LD.
17196         # Luckily, gcc supports the same syntax we need for Sun Studio.
17197         # Supported since Solaris 2.6 (maybe 2.5.1?)
17198         case $wlarc in
17199         '')
17200           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17201         *)
17202           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' ;;
17203         esac ;;
17204       esac
17205       link_all_deplibs_GCJ=yes
17206       ;;
17207
17208     sunos4*)
17209       if test "x$host_vendor" = xsequent; then
17210         # Use $CC to link under sequent, because it throws in some extra .o
17211         # files that make .init and .fini sections work.
17212         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17213       else
17214         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17215       fi
17216       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17217       hardcode_direct_GCJ=yes
17218       hardcode_minus_L_GCJ=yes
17219       hardcode_shlibpath_var_GCJ=no
17220       ;;
17221
17222     sysv4)
17223       case $host_vendor in
17224         sni)
17225           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17226           hardcode_direct_GCJ=yes # is this really true???
17227         ;;
17228         siemens)
17229           ## LD is ld it makes a PLAMLIB
17230           ## CC just makes a GrossModule.
17231           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17232           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17233           hardcode_direct_GCJ=no
17234         ;;
17235         motorola)
17236           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17237           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17238         ;;
17239       esac
17240       runpath_var='LD_RUN_PATH'
17241       hardcode_shlibpath_var_GCJ=no
17242       ;;
17243
17244     sysv4.3*)
17245       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17246       hardcode_shlibpath_var_GCJ=no
17247       export_dynamic_flag_spec_GCJ='-Bexport'
17248       ;;
17249
17250     sysv4*MP*)
17251       if test -d /usr/nec; then
17252         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17253         hardcode_shlibpath_var_GCJ=no
17254         runpath_var=LD_RUN_PATH
17255         hardcode_runpath_var=yes
17256         ld_shlibs_GCJ=yes
17257       fi
17258       ;;
17259
17260     sysv4.2uw2*)
17261       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17262       hardcode_direct_GCJ=yes
17263       hardcode_minus_L_GCJ=no
17264       hardcode_shlibpath_var_GCJ=no
17265       hardcode_runpath_var=yes
17266       runpath_var=LD_RUN_PATH
17267       ;;
17268
17269    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17270       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17271       if test "$GCC" = yes; then
17272         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17273       else
17274         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17275       fi
17276       runpath_var='LD_RUN_PATH'
17277       hardcode_shlibpath_var_GCJ=no
17278       ;;
17279
17280     sysv5*)
17281       no_undefined_flag_GCJ=' -z text'
17282       # $CC -shared without GNU ld will not create a library from C++
17283       # object files and a static libstdc++, better avoid it by now
17284       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17285       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17286                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17287       hardcode_libdir_flag_spec_GCJ=
17288       hardcode_shlibpath_var_GCJ=no
17289       runpath_var='LD_RUN_PATH'
17290       ;;
17291
17292     uts4*)
17293       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17294       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17295       hardcode_shlibpath_var_GCJ=no
17296       ;;
17297
17298     *)
17299       ld_shlibs_GCJ=no
17300       ;;
17301     esac
17302   fi
17303
17304 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17305 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17306 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17307
17308 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17309 if test "$GCC" = yes; then
17310   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17311 fi
17312
17313 #
17314 # Do we need to explicitly link libc?
17315 #
17316 case "x$archive_cmds_need_lc_GCJ" in
17317 x|xyes)
17318   # Assume -lc should be added
17319   archive_cmds_need_lc_GCJ=yes
17320
17321   if test "$enable_shared" = yes && test "$GCC" = yes; then
17322     case $archive_cmds_GCJ in
17323     *'~'*)
17324       # FIXME: we may have to deal with multi-command sequences.
17325       ;;
17326     '$CC '*)
17327       # Test whether the compiler implicitly links with -lc since on some
17328       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17329       # to ld, don't add -lc before -lgcc.
17330       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17331 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17332       $rm conftest*
17333       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17334
17335       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17336   (eval $ac_compile) 2>&5
17337   ac_status=$?
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); } 2>conftest.err; then
17340         soname=conftest
17341         lib=conftest
17342         libobjs=conftest.$ac_objext
17343         deplibs=
17344         wl=$lt_prog_compiler_wl_GCJ
17345         compiler_flags=-v
17346         linker_flags=-v
17347         verstring=
17348         output_objdir=.
17349         libname=conftest
17350         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17351         allow_undefined_flag_GCJ=
17352         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17353   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); }
17357         then
17358           archive_cmds_need_lc_GCJ=no
17359         else
17360           archive_cmds_need_lc_GCJ=yes
17361         fi
17362         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17363       else
17364         cat conftest.err 1>&5
17365       fi
17366       $rm conftest*
17367       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17368 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17369       ;;
17370     esac
17371   fi
17372   ;;
17373 esac
17374
17375 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17376 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17377 library_names_spec=
17378 libname_spec='lib$name'
17379 soname_spec=
17380 shrext_cmds=".so"
17381 postinstall_cmds=
17382 postuninstall_cmds=
17383 finish_cmds=
17384 finish_eval=
17385 shlibpath_var=
17386 shlibpath_overrides_runpath=unknown
17387 version_type=none
17388 dynamic_linker="$host_os ld.so"
17389 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17390 if test "$GCC" = yes; then
17391   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17392   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17393     # if the path contains ";" then we assume it to be the separator
17394     # otherwise default to the standard path separator (i.e. ":") - it is
17395     # assumed that no part of a normal pathname contains ";" but that should
17396     # okay in the real world where ";" in dirpaths is itself problematic.
17397     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17398   else
17399     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17400   fi
17401 else
17402   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17403 fi
17404 need_lib_prefix=unknown
17405 hardcode_into_libs=no
17406
17407 # when you set need_version to no, make sure it does not cause -set_version
17408 # flags to be left without arguments
17409 need_version=unknown
17410
17411 case $host_os in
17412 aix3*)
17413   version_type=linux
17414   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17415   shlibpath_var=LIBPATH
17416
17417   # AIX 3 has no versioning support, so we append a major version to the name.
17418   soname_spec='${libname}${release}${shared_ext}$major'
17419   ;;
17420
17421 aix4* | aix5*)
17422   version_type=linux
17423   need_lib_prefix=no
17424   need_version=no
17425   hardcode_into_libs=yes
17426   if test "$host_cpu" = ia64; then
17427     # AIX 5 supports IA64
17428     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17429     shlibpath_var=LD_LIBRARY_PATH
17430   else
17431     # With GCC up to 2.95.x, collect2 would create an import file
17432     # for dependence libraries.  The import file would start with
17433     # the line `#! .'.  This would cause the generated library to
17434     # depend on `.', always an invalid library.  This was fixed in
17435     # development snapshots of GCC prior to 3.0.
17436     case $host_os in
17437       aix4 | aix4.[01] | aix4.[01].*)
17438       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17439            echo ' yes '
17440            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17441         :
17442       else
17443         can_build_shared=no
17444       fi
17445       ;;
17446     esac
17447     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17448     # soname into executable. Probably we can add versioning support to
17449     # collect2, so additional links can be useful in future.
17450     if test "$aix_use_runtimelinking" = yes; then
17451       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17452       # instead of lib<name>.a to let people know that these are not
17453       # typical AIX shared libraries.
17454       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455     else
17456       # We preserve .a as extension for shared libraries through AIX4.2
17457       # and later when we are not doing run time linking.
17458       library_names_spec='${libname}${release}.a $libname.a'
17459       soname_spec='${libname}${release}${shared_ext}$major'
17460     fi
17461     shlibpath_var=LIBPATH
17462   fi
17463   ;;
17464
17465 amigaos*)
17466   library_names_spec='$libname.ixlibrary $libname.a'
17467   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17468   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'
17469   ;;
17470
17471 beos*)
17472   library_names_spec='${libname}${shared_ext}'
17473   dynamic_linker="$host_os ld.so"
17474   shlibpath_var=LIBRARY_PATH
17475   ;;
17476
17477 bsdi[45]*)
17478   version_type=linux
17479   need_version=no
17480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17481   soname_spec='${libname}${release}${shared_ext}$major'
17482   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17483   shlibpath_var=LD_LIBRARY_PATH
17484   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17485   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17486   # the default ld.so.conf also contains /usr/contrib/lib and
17487   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17488   # libtool to hard-code these into programs
17489   ;;
17490
17491 cygwin* | mingw* | pw32*)
17492   version_type=windows
17493   shrext_cmds=".dll"
17494   need_version=no
17495   need_lib_prefix=no
17496
17497   case $GCC,$host_os in
17498   yes,cygwin* | yes,mingw* | yes,pw32*)
17499     library_names_spec='$libname.dll.a'
17500     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17501     postinstall_cmds='base_file=`basename \${file}`~
17502       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17503       dldir=$destdir/`dirname \$dlpath`~
17504       test -d \$dldir || mkdir -p \$dldir~
17505       $install_prog $dir/$dlname \$dldir/$dlname'
17506     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17507       dlpath=$dir/\$dldll~
17508        $rm \$dlpath'
17509     shlibpath_overrides_runpath=yes
17510
17511     case $host_os in
17512     cygwin*)
17513       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17514       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17515       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17516       ;;
17517     mingw*)
17518       # MinGW DLLs use traditional 'lib' prefix
17519       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17520       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17521       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17522         # It is most probably a Windows format PATH printed by
17523         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17524         # path with ; separators, and with drive letters. We can handle the
17525         # drive letters (cygwin fileutils understands them), so leave them,
17526         # especially as we might pass files found there to a mingw objdump,
17527         # which wouldn't understand a cygwinified path. Ahh.
17528         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17529       else
17530         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17531       fi
17532       ;;
17533     pw32*)
17534       # pw32 DLLs use 'pw' prefix rather than 'lib'
17535       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17536       ;;
17537     esac
17538     ;;
17539
17540   *)
17541     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17542     ;;
17543   esac
17544   dynamic_linker='Win32 ld.exe'
17545   # FIXME: first we should search . and the directory the executable is in
17546   shlibpath_var=PATH
17547   ;;
17548
17549 darwin* | rhapsody*)
17550   dynamic_linker="$host_os dyld"
17551   version_type=darwin
17552   need_lib_prefix=no
17553   need_version=no
17554   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17555   soname_spec='${libname}${release}${major}$shared_ext'
17556   shlibpath_overrides_runpath=yes
17557   shlibpath_var=DYLD_LIBRARY_PATH
17558   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17559   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17560   if test "$GCC" = yes; then
17561     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"`
17562   else
17563     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17564   fi
17565   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17566   ;;
17567
17568 dgux*)
17569   version_type=linux
17570   need_lib_prefix=no
17571   need_version=no
17572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17573   soname_spec='${libname}${release}${shared_ext}$major'
17574   shlibpath_var=LD_LIBRARY_PATH
17575   ;;
17576
17577 freebsd1*)
17578   dynamic_linker=no
17579   ;;
17580
17581 kfreebsd*-gnu)
17582   version_type=linux
17583   need_lib_prefix=no
17584   need_version=no
17585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17586   soname_spec='${libname}${release}${shared_ext}$major'
17587   shlibpath_var=LD_LIBRARY_PATH
17588   shlibpath_overrides_runpath=no
17589   hardcode_into_libs=yes
17590   dynamic_linker='GNU ld.so'
17591   ;;
17592
17593 freebsd* | dragonfly*)
17594   # DragonFly does not have aout.  When/if they implement a new
17595   # versioning mechanism, adjust this.
17596   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17597   version_type=freebsd-$objformat
17598   case $version_type in
17599     freebsd-elf*)
17600       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17601       need_version=no
17602       need_lib_prefix=no
17603       ;;
17604     freebsd-*)
17605       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17606       need_version=yes
17607       ;;
17608   esac
17609   shlibpath_var=LD_LIBRARY_PATH
17610   case $host_os in
17611   freebsd2*)
17612     shlibpath_overrides_runpath=yes
17613     ;;
17614   freebsd3.[01]* | freebsdelf3.[01]*)
17615     shlibpath_overrides_runpath=yes
17616     hardcode_into_libs=yes
17617     ;;
17618   *) # from 3.2 on
17619     shlibpath_overrides_runpath=no
17620     hardcode_into_libs=yes
17621     ;;
17622   esac
17623   ;;
17624
17625 gnu*)
17626   version_type=linux
17627   need_lib_prefix=no
17628   need_version=no
17629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17630   soname_spec='${libname}${release}${shared_ext}$major'
17631   shlibpath_var=LD_LIBRARY_PATH
17632   hardcode_into_libs=yes
17633   ;;
17634
17635 hpux9* | hpux10* | hpux11*)
17636   # Give a soname corresponding to the major version so that dld.sl refuses to
17637   # link against other versions.
17638   version_type=sunos
17639   need_lib_prefix=no
17640   need_version=no
17641   case "$host_cpu" in
17642   ia64*)
17643     shrext_cmds='.so'
17644     hardcode_into_libs=yes
17645     dynamic_linker="$host_os dld.so"
17646     shlibpath_var=LD_LIBRARY_PATH
17647     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17649     soname_spec='${libname}${release}${shared_ext}$major'
17650     if test "X$HPUX_IA64_MODE" = X32; then
17651       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17652     else
17653       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17654     fi
17655     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17656     ;;
17657    hppa*64*)
17658      shrext_cmds='.sl'
17659      hardcode_into_libs=yes
17660      dynamic_linker="$host_os dld.sl"
17661      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17662      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17663      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17664      soname_spec='${libname}${release}${shared_ext}$major'
17665      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17666      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17667      ;;
17668    *)
17669     shrext_cmds='.sl'
17670     dynamic_linker="$host_os dld.sl"
17671     shlibpath_var=SHLIB_PATH
17672     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17674     soname_spec='${libname}${release}${shared_ext}$major'
17675     ;;
17676   esac
17677   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17678   postinstall_cmds='chmod 555 $lib'
17679   ;;
17680
17681 irix5* | irix6* | nonstopux*)
17682   case $host_os in
17683     nonstopux*) version_type=nonstopux ;;
17684     *)
17685         if test "$lt_cv_prog_gnu_ld" = yes; then
17686                 version_type=linux
17687         else
17688                 version_type=irix
17689         fi ;;
17690   esac
17691   need_lib_prefix=no
17692   need_version=no
17693   soname_spec='${libname}${release}${shared_ext}$major'
17694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17695   case $host_os in
17696   irix5* | nonstopux*)
17697     libsuff= shlibsuff=
17698     ;;
17699   *)
17700     case $LD in # libtool.m4 will add one of these switches to LD
17701     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17702       libsuff= shlibsuff= libmagic=32-bit;;
17703     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17704       libsuff=32 shlibsuff=N32 libmagic=N32;;
17705     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17706       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17707     *) libsuff= shlibsuff= libmagic=never-match;;
17708     esac
17709     ;;
17710   esac
17711   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17712   shlibpath_overrides_runpath=no
17713   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17714   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17715   hardcode_into_libs=yes
17716   ;;
17717
17718 # No shared lib support for Linux oldld, aout, or coff.
17719 linux*oldld* | linux*aout* | linux*coff*)
17720   dynamic_linker=no
17721   ;;
17722
17723 # This must be Linux ELF.
17724 linux*)
17725   version_type=linux
17726   need_lib_prefix=no
17727   need_version=no
17728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729   soname_spec='${libname}${release}${shared_ext}$major'
17730   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17731   shlibpath_var=LD_LIBRARY_PATH
17732   shlibpath_overrides_runpath=no
17733   # This implies no fast_install, which is unacceptable.
17734   # Some rework will be needed to allow for fast_install
17735   # before this can be enabled.
17736   hardcode_into_libs=yes
17737
17738   # Append ld.so.conf contents to the search path
17739   if test -f /etc/ld.so.conf; then
17740     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' ' '`
17741     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17742   fi
17743
17744   # We used to test for /lib/ld.so.1 and disable shared libraries on
17745   # powerpc, because MkLinux only supported shared libraries with the
17746   # GNU dynamic linker.  Since this was broken with cross compilers,
17747   # most powerpc-linux boxes support dynamic linking these days and
17748   # people can always --disable-shared, the test was removed, and we
17749   # assume the GNU/Linux dynamic linker is in use.
17750   dynamic_linker='GNU/Linux ld.so'
17751   ;;
17752
17753 knetbsd*-gnu)
17754   version_type=linux
17755   need_lib_prefix=no
17756   need_version=no
17757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17758   soname_spec='${libname}${release}${shared_ext}$major'
17759   shlibpath_var=LD_LIBRARY_PATH
17760   shlibpath_overrides_runpath=no
17761   hardcode_into_libs=yes
17762   dynamic_linker='GNU ld.so'
17763   ;;
17764
17765 netbsd*)
17766   version_type=sunos
17767   need_lib_prefix=no
17768   need_version=no
17769   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17770     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17771     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17772     dynamic_linker='NetBSD (a.out) ld.so'
17773   else
17774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17775     soname_spec='${libname}${release}${shared_ext}$major'
17776     dynamic_linker='NetBSD ld.elf_so'
17777   fi
17778   shlibpath_var=LD_LIBRARY_PATH
17779   shlibpath_overrides_runpath=yes
17780   hardcode_into_libs=yes
17781   ;;
17782
17783 newsos6)
17784   version_type=linux
17785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17786   shlibpath_var=LD_LIBRARY_PATH
17787   shlibpath_overrides_runpath=yes
17788   ;;
17789
17790 nto-qnx*)
17791   version_type=linux
17792   need_lib_prefix=no
17793   need_version=no
17794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17795   soname_spec='${libname}${release}${shared_ext}$major'
17796   shlibpath_var=LD_LIBRARY_PATH
17797   shlibpath_overrides_runpath=yes
17798   ;;
17799
17800 openbsd*)
17801   version_type=sunos
17802   need_lib_prefix=no
17803   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17804   case $host_os in
17805     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17806     *)                         need_version=no  ;;
17807   esac
17808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17809   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17810   shlibpath_var=LD_LIBRARY_PATH
17811   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17812     case $host_os in
17813       openbsd2.[89] | openbsd2.[89].*)
17814         shlibpath_overrides_runpath=no
17815         ;;
17816       *)
17817         shlibpath_overrides_runpath=yes
17818         ;;
17819       esac
17820   else
17821     shlibpath_overrides_runpath=yes
17822   fi
17823   ;;
17824
17825 os2*)
17826   libname_spec='$name'
17827   shrext_cmds=".dll"
17828   need_lib_prefix=no
17829   library_names_spec='$libname${shared_ext} $libname.a'
17830   dynamic_linker='OS/2 ld.exe'
17831   shlibpath_var=LIBPATH
17832   ;;
17833
17834 osf3* | osf4* | osf5*)
17835   version_type=osf
17836   need_lib_prefix=no
17837   need_version=no
17838   soname_spec='${libname}${release}${shared_ext}$major'
17839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17840   shlibpath_var=LD_LIBRARY_PATH
17841   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17842   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17843   ;;
17844
17845 sco3.2v5*)
17846   version_type=osf
17847   soname_spec='${libname}${release}${shared_ext}$major'
17848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849   shlibpath_var=LD_LIBRARY_PATH
17850   ;;
17851
17852 solaris*)
17853   version_type=linux
17854   need_lib_prefix=no
17855   need_version=no
17856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857   soname_spec='${libname}${release}${shared_ext}$major'
17858   shlibpath_var=LD_LIBRARY_PATH
17859   shlibpath_overrides_runpath=yes
17860   hardcode_into_libs=yes
17861   # ldd complains unless libraries are executable
17862   postinstall_cmds='chmod +x $lib'
17863   ;;
17864
17865 sunos4*)
17866   version_type=sunos
17867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17868   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17869   shlibpath_var=LD_LIBRARY_PATH
17870   shlibpath_overrides_runpath=yes
17871   if test "$with_gnu_ld" = yes; then
17872     need_lib_prefix=no
17873   fi
17874   need_version=yes
17875   ;;
17876
17877 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17878   version_type=linux
17879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17880   soname_spec='${libname}${release}${shared_ext}$major'
17881   shlibpath_var=LD_LIBRARY_PATH
17882   case $host_vendor in
17883     sni)
17884       shlibpath_overrides_runpath=no
17885       need_lib_prefix=no
17886       export_dynamic_flag_spec='${wl}-Blargedynsym'
17887       runpath_var=LD_RUN_PATH
17888       ;;
17889     siemens)
17890       need_lib_prefix=no
17891       ;;
17892     motorola)
17893       need_lib_prefix=no
17894       need_version=no
17895       shlibpath_overrides_runpath=no
17896       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17897       ;;
17898   esac
17899   ;;
17900
17901 sysv4*MP*)
17902   if test -d /usr/nec ;then
17903     version_type=linux
17904     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17905     soname_spec='$libname${shared_ext}.$major'
17906     shlibpath_var=LD_LIBRARY_PATH
17907   fi
17908   ;;
17909
17910 uts4*)
17911   version_type=linux
17912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17913   soname_spec='${libname}${release}${shared_ext}$major'
17914   shlibpath_var=LD_LIBRARY_PATH
17915   ;;
17916
17917 *)
17918   dynamic_linker=no
17919   ;;
17920 esac
17921 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17922 echo "${ECHO_T}$dynamic_linker" >&6
17923 test "$dynamic_linker" = no && can_build_shared=no
17924
17925 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17926 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17927 hardcode_action_GCJ=
17928 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17929    test -n "$runpath_var_GCJ" || \
17930    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17931
17932   # We can hardcode non-existant directories.
17933   if test "$hardcode_direct_GCJ" != no &&
17934      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17935      # have to relink, otherwise we might link with an installed library
17936      # when we should be linking with a yet-to-be-installed one
17937      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17938      test "$hardcode_minus_L_GCJ" != no; then
17939     # Linking always hardcodes the temporary library directory.
17940     hardcode_action_GCJ=relink
17941   else
17942     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17943     hardcode_action_GCJ=immediate
17944   fi
17945 else
17946   # We cannot hardcode anything, or else we can only hardcode existing
17947   # directories.
17948   hardcode_action_GCJ=unsupported
17949 fi
17950 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17951 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17952
17953 if test "$hardcode_action_GCJ" = relink; then
17954   # Fast installation is not supported
17955   enable_fast_install=no
17956 elif test "$shlibpath_overrides_runpath" = yes ||
17957      test "$enable_shared" = no; then
17958   # Fast installation is not necessary
17959   enable_fast_install=needless
17960 fi
17961
17962 striplib=
17963 old_striplib=
17964 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17965 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17966 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17967   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17968   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17969   echo "$as_me:$LINENO: result: yes" >&5
17970 echo "${ECHO_T}yes" >&6
17971 else
17972 # FIXME - insert some real tests, host_os isn't really good enough
17973   case $host_os in
17974    darwin*)
17975        if test -n "$STRIP" ; then
17976          striplib="$STRIP -x"
17977          echo "$as_me:$LINENO: result: yes" >&5
17978 echo "${ECHO_T}yes" >&6
17979        else
17980   echo "$as_me:$LINENO: result: no" >&5
17981 echo "${ECHO_T}no" >&6
17982 fi
17983        ;;
17984    *)
17985   echo "$as_me:$LINENO: result: no" >&5
17986 echo "${ECHO_T}no" >&6
17987     ;;
17988   esac
17989 fi
17990
17991 if test "x$enable_dlopen" != xyes; then
17992   enable_dlopen=unknown
17993   enable_dlopen_self=unknown
17994   enable_dlopen_self_static=unknown
17995 else
17996   lt_cv_dlopen=no
17997   lt_cv_dlopen_libs=
17998
17999   case $host_os in
18000   beos*)
18001     lt_cv_dlopen="load_add_on"
18002     lt_cv_dlopen_libs=
18003     lt_cv_dlopen_self=yes
18004     ;;
18005
18006   mingw* | pw32*)
18007     lt_cv_dlopen="LoadLibrary"
18008     lt_cv_dlopen_libs=
18009    ;;
18010
18011   cygwin*)
18012     lt_cv_dlopen="dlopen"
18013     lt_cv_dlopen_libs=
18014    ;;
18015
18016   darwin*)
18017   # if libdl is installed we need to link against it
18018     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18019 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18020 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18021   echo $ECHO_N "(cached) $ECHO_C" >&6
18022 else
18023   ac_check_lib_save_LIBS=$LIBS
18024 LIBS="-ldl  $LIBS"
18025 cat >conftest.$ac_ext <<_ACEOF
18026 /* confdefs.h.  */
18027 _ACEOF
18028 cat confdefs.h >>conftest.$ac_ext
18029 cat >>conftest.$ac_ext <<_ACEOF
18030 /* end confdefs.h.  */
18031
18032 /* Override any gcc2 internal prototype to avoid an error.  */
18033 #ifdef __cplusplus
18034 extern "C"
18035 #endif
18036 /* We use char because int might match the return type of a gcc2
18037    builtin and then its argument prototype would still apply.  */
18038 char dlopen ();
18039 int
18040 main ()
18041 {
18042 dlopen ();
18043   ;
18044   return 0;
18045 }
18046 _ACEOF
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049   (eval $ac_link) 2>conftest.er1
18050   ac_status=$?
18051   grep -v '^ *+' conftest.er1 >conftest.err
18052   rm -f conftest.er1
18053   cat conftest.err >&5
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); } &&
18056          { ac_try='test -z "$ac_c_werror_flag"
18057                          || test ! -s conftest.err'
18058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059   (eval $ac_try) 2>&5
18060   ac_status=$?
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); }; } &&
18063          { ac_try='test -s conftest$ac_exeext'
18064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065   (eval $ac_try) 2>&5
18066   ac_status=$?
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); }; }; then
18069   ac_cv_lib_dl_dlopen=yes
18070 else
18071   echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18073
18074 ac_cv_lib_dl_dlopen=no
18075 fi
18076 rm -f conftest.err conftest.$ac_objext \
18077       conftest$ac_exeext conftest.$ac_ext
18078 LIBS=$ac_check_lib_save_LIBS
18079 fi
18080 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18081 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18082 if test $ac_cv_lib_dl_dlopen = yes; then
18083   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18084 else
18085
18086     lt_cv_dlopen="dyld"
18087     lt_cv_dlopen_libs=
18088     lt_cv_dlopen_self=yes
18089
18090 fi
18091
18092    ;;
18093
18094   *)
18095     echo "$as_me:$LINENO: checking for shl_load" >&5
18096 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18097 if test "${ac_cv_func_shl_load+set}" = set; then
18098   echo $ECHO_N "(cached) $ECHO_C" >&6
18099 else
18100   cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h.  */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h.  */
18106 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18108 #define shl_load innocuous_shl_load
18109
18110 /* System header to define __stub macros and hopefully few prototypes,
18111     which can conflict with char shl_load (); below.
18112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18113     <limits.h> exists even on freestanding compilers.  */
18114
18115 #ifdef __STDC__
18116 # include <limits.h>
18117 #else
18118 # include <assert.h>
18119 #endif
18120
18121 #undef shl_load
18122
18123 /* Override any gcc2 internal prototype to avoid an error.  */
18124 #ifdef __cplusplus
18125 extern "C"
18126 {
18127 #endif
18128 /* We use char because int might match the return type of a gcc2
18129    builtin and then its argument prototype would still apply.  */
18130 char shl_load ();
18131 /* The GNU C library defines this for functions which it implements
18132     to always fail with ENOSYS.  Some functions are actually named
18133     something starting with __ and the normal name is an alias.  */
18134 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18135 choke me
18136 #else
18137 char (*f) () = shl_load;
18138 #endif
18139 #ifdef __cplusplus
18140 }
18141 #endif
18142
18143 int
18144 main ()
18145 {
18146 return f != shl_load;
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18153   (eval $ac_link) 2>conftest.er1
18154   ac_status=$?
18155   grep -v '^ *+' conftest.er1 >conftest.err
18156   rm -f conftest.er1
18157   cat conftest.err >&5
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } &&
18160          { ac_try='test -z "$ac_c_werror_flag"
18161                          || test ! -s conftest.err'
18162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163   (eval $ac_try) 2>&5
18164   ac_status=$?
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); }; } &&
18167          { ac_try='test -s conftest$ac_exeext'
18168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169   (eval $ac_try) 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); }; }; then
18173   ac_cv_func_shl_load=yes
18174 else
18175   echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178 ac_cv_func_shl_load=no
18179 fi
18180 rm -f conftest.err conftest.$ac_objext \
18181       conftest$ac_exeext conftest.$ac_ext
18182 fi
18183 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18184 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18185 if test $ac_cv_func_shl_load = yes; then
18186   lt_cv_dlopen="shl_load"
18187 else
18188   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18189 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18190 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18191   echo $ECHO_N "(cached) $ECHO_C" >&6
18192 else
18193   ac_check_lib_save_LIBS=$LIBS
18194 LIBS="-ldld  $LIBS"
18195 cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h.  */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h.  */
18201
18202 /* Override any gcc2 internal prototype to avoid an error.  */
18203 #ifdef __cplusplus
18204 extern "C"
18205 #endif
18206 /* We use char because int might match the return type of a gcc2
18207    builtin and then its argument prototype would still apply.  */
18208 char shl_load ();
18209 int
18210 main ()
18211 {
18212 shl_load ();
18213   ;
18214   return 0;
18215 }
18216 _ACEOF
18217 rm -f conftest.$ac_objext conftest$ac_exeext
18218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18219   (eval $ac_link) 2>conftest.er1
18220   ac_status=$?
18221   grep -v '^ *+' conftest.er1 >conftest.err
18222   rm -f conftest.er1
18223   cat conftest.err >&5
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); } &&
18226          { ac_try='test -z "$ac_c_werror_flag"
18227                          || test ! -s conftest.err'
18228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229   (eval $ac_try) 2>&5
18230   ac_status=$?
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); }; } &&
18233          { ac_try='test -s conftest$ac_exeext'
18234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235   (eval $ac_try) 2>&5
18236   ac_status=$?
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); }; }; then
18239   ac_cv_lib_dld_shl_load=yes
18240 else
18241   echo "$as_me: failed program was:" >&5
18242 sed 's/^/| /' conftest.$ac_ext >&5
18243
18244 ac_cv_lib_dld_shl_load=no
18245 fi
18246 rm -f conftest.err conftest.$ac_objext \
18247       conftest$ac_exeext conftest.$ac_ext
18248 LIBS=$ac_check_lib_save_LIBS
18249 fi
18250 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18251 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18252 if test $ac_cv_lib_dld_shl_load = yes; then
18253   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18254 else
18255   echo "$as_me:$LINENO: checking for dlopen" >&5
18256 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18257 if test "${ac_cv_func_dlopen+set}" = set; then
18258   echo $ECHO_N "(cached) $ECHO_C" >&6
18259 else
18260   cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h.  */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h.  */
18266 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18268 #define dlopen innocuous_dlopen
18269
18270 /* System header to define __stub macros and hopefully few prototypes,
18271     which can conflict with char dlopen (); below.
18272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18273     <limits.h> exists even on freestanding compilers.  */
18274
18275 #ifdef __STDC__
18276 # include <limits.h>
18277 #else
18278 # include <assert.h>
18279 #endif
18280
18281 #undef dlopen
18282
18283 /* Override any gcc2 internal prototype to avoid an error.  */
18284 #ifdef __cplusplus
18285 extern "C"
18286 {
18287 #endif
18288 /* We use char because int might match the return type of a gcc2
18289    builtin and then its argument prototype would still apply.  */
18290 char dlopen ();
18291 /* The GNU C library defines this for functions which it implements
18292     to always fail with ENOSYS.  Some functions are actually named
18293     something starting with __ and the normal name is an alias.  */
18294 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18295 choke me
18296 #else
18297 char (*f) () = dlopen;
18298 #endif
18299 #ifdef __cplusplus
18300 }
18301 #endif
18302
18303 int
18304 main ()
18305 {
18306 return f != dlopen;
18307   ;
18308   return 0;
18309 }
18310 _ACEOF
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18313   (eval $ac_link) 2>conftest.er1
18314   ac_status=$?
18315   grep -v '^ *+' conftest.er1 >conftest.err
18316   rm -f conftest.er1
18317   cat conftest.err >&5
18318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); } &&
18320          { ac_try='test -z "$ac_c_werror_flag"
18321                          || test ! -s conftest.err'
18322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323   (eval $ac_try) 2>&5
18324   ac_status=$?
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); }; } &&
18327          { ac_try='test -s conftest$ac_exeext'
18328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329   (eval $ac_try) 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); }; }; then
18333   ac_cv_func_dlopen=yes
18334 else
18335   echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18337
18338 ac_cv_func_dlopen=no
18339 fi
18340 rm -f conftest.err conftest.$ac_objext \
18341       conftest$ac_exeext conftest.$ac_ext
18342 fi
18343 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18344 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18345 if test $ac_cv_func_dlopen = yes; then
18346   lt_cv_dlopen="dlopen"
18347 else
18348   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18349 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18350 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18351   echo $ECHO_N "(cached) $ECHO_C" >&6
18352 else
18353   ac_check_lib_save_LIBS=$LIBS
18354 LIBS="-ldl  $LIBS"
18355 cat >conftest.$ac_ext <<_ACEOF
18356 /* confdefs.h.  */
18357 _ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h.  */
18361
18362 /* Override any gcc2 internal prototype to avoid an error.  */
18363 #ifdef __cplusplus
18364 extern "C"
18365 #endif
18366 /* We use char because int might match the return type of a gcc2
18367    builtin and then its argument prototype would still apply.  */
18368 char dlopen ();
18369 int
18370 main ()
18371 {
18372 dlopen ();
18373   ;
18374   return 0;
18375 }
18376 _ACEOF
18377 rm -f conftest.$ac_objext conftest$ac_exeext
18378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18379   (eval $ac_link) 2>conftest.er1
18380   ac_status=$?
18381   grep -v '^ *+' conftest.er1 >conftest.err
18382   rm -f conftest.er1
18383   cat conftest.err >&5
18384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385   (exit $ac_status); } &&
18386          { ac_try='test -z "$ac_c_werror_flag"
18387                          || test ! -s conftest.err'
18388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389   (eval $ac_try) 2>&5
18390   ac_status=$?
18391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392   (exit $ac_status); }; } &&
18393          { ac_try='test -s conftest$ac_exeext'
18394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395   (eval $ac_try) 2>&5
18396   ac_status=$?
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); }; }; then
18399   ac_cv_lib_dl_dlopen=yes
18400 else
18401   echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18403
18404 ac_cv_lib_dl_dlopen=no
18405 fi
18406 rm -f conftest.err conftest.$ac_objext \
18407       conftest$ac_exeext conftest.$ac_ext
18408 LIBS=$ac_check_lib_save_LIBS
18409 fi
18410 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18411 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18412 if test $ac_cv_lib_dl_dlopen = yes; then
18413   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18414 else
18415   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18416 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18417 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18418   echo $ECHO_N "(cached) $ECHO_C" >&6
18419 else
18420   ac_check_lib_save_LIBS=$LIBS
18421 LIBS="-lsvld  $LIBS"
18422 cat >conftest.$ac_ext <<_ACEOF
18423 /* confdefs.h.  */
18424 _ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h.  */
18428
18429 /* Override any gcc2 internal prototype to avoid an error.  */
18430 #ifdef __cplusplus
18431 extern "C"
18432 #endif
18433 /* We use char because int might match the return type of a gcc2
18434    builtin and then its argument prototype would still apply.  */
18435 char dlopen ();
18436 int
18437 main ()
18438 {
18439 dlopen ();
18440   ;
18441   return 0;
18442 }
18443 _ACEOF
18444 rm -f conftest.$ac_objext conftest$ac_exeext
18445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18446   (eval $ac_link) 2>conftest.er1
18447   ac_status=$?
18448   grep -v '^ *+' conftest.er1 >conftest.err
18449   rm -f conftest.er1
18450   cat conftest.err >&5
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); } &&
18453          { ac_try='test -z "$ac_c_werror_flag"
18454                          || test ! -s conftest.err'
18455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456   (eval $ac_try) 2>&5
18457   ac_status=$?
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); }; } &&
18460          { ac_try='test -s conftest$ac_exeext'
18461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462   (eval $ac_try) 2>&5
18463   ac_status=$?
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); }; }; then
18466   ac_cv_lib_svld_dlopen=yes
18467 else
18468   echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18470
18471 ac_cv_lib_svld_dlopen=no
18472 fi
18473 rm -f conftest.err conftest.$ac_objext \
18474       conftest$ac_exeext conftest.$ac_ext
18475 LIBS=$ac_check_lib_save_LIBS
18476 fi
18477 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18478 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18479 if test $ac_cv_lib_svld_dlopen = yes; then
18480   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18481 else
18482   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18483 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18484 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18485   echo $ECHO_N "(cached) $ECHO_C" >&6
18486 else
18487   ac_check_lib_save_LIBS=$LIBS
18488 LIBS="-ldld  $LIBS"
18489 cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h.  */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h.  */
18495
18496 /* Override any gcc2 internal prototype to avoid an error.  */
18497 #ifdef __cplusplus
18498 extern "C"
18499 #endif
18500 /* We use char because int might match the return type of a gcc2
18501    builtin and then its argument prototype would still apply.  */
18502 char dld_link ();
18503 int
18504 main ()
18505 {
18506 dld_link ();
18507   ;
18508   return 0;
18509 }
18510 _ACEOF
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18513   (eval $ac_link) 2>conftest.er1
18514   ac_status=$?
18515   grep -v '^ *+' conftest.er1 >conftest.err
18516   rm -f conftest.er1
18517   cat conftest.err >&5
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); } &&
18520          { ac_try='test -z "$ac_c_werror_flag"
18521                          || test ! -s conftest.err'
18522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523   (eval $ac_try) 2>&5
18524   ac_status=$?
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); }; } &&
18527          { ac_try='test -s conftest$ac_exeext'
18528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529   (eval $ac_try) 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); }; }; then
18533   ac_cv_lib_dld_dld_link=yes
18534 else
18535   echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18537
18538 ac_cv_lib_dld_dld_link=no
18539 fi
18540 rm -f conftest.err conftest.$ac_objext \
18541       conftest$ac_exeext conftest.$ac_ext
18542 LIBS=$ac_check_lib_save_LIBS
18543 fi
18544 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18545 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18546 if test $ac_cv_lib_dld_dld_link = yes; then
18547   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18548 fi
18549
18550
18551 fi
18552
18553
18554 fi
18555
18556
18557 fi
18558
18559
18560 fi
18561
18562
18563 fi
18564
18565     ;;
18566   esac
18567
18568   if test "x$lt_cv_dlopen" != xno; then
18569     enable_dlopen=yes
18570   else
18571     enable_dlopen=no
18572   fi
18573
18574   case $lt_cv_dlopen in
18575   dlopen)
18576     save_CPPFLAGS="$CPPFLAGS"
18577     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18578
18579     save_LDFLAGS="$LDFLAGS"
18580     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18581
18582     save_LIBS="$LIBS"
18583     LIBS="$lt_cv_dlopen_libs $LIBS"
18584
18585     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18586 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18587 if test "${lt_cv_dlopen_self+set}" = set; then
18588   echo $ECHO_N "(cached) $ECHO_C" >&6
18589 else
18590           if test "$cross_compiling" = yes; then :
18591   lt_cv_dlopen_self=cross
18592 else
18593   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18594   lt_status=$lt_dlunknown
18595   cat > conftest.$ac_ext <<EOF
18596 #line 18596 "configure"
18597 #include "confdefs.h"
18598
18599 #if HAVE_DLFCN_H
18600 #include <dlfcn.h>
18601 #endif
18602
18603 #include <stdio.h>
18604
18605 #ifdef RTLD_GLOBAL
18606 #  define LT_DLGLOBAL           RTLD_GLOBAL
18607 #else
18608 #  ifdef DL_GLOBAL
18609 #    define LT_DLGLOBAL         DL_GLOBAL
18610 #  else
18611 #    define LT_DLGLOBAL         0
18612 #  endif
18613 #endif
18614
18615 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18616    find out it does not work in some platform. */
18617 #ifndef LT_DLLAZY_OR_NOW
18618 #  ifdef RTLD_LAZY
18619 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18620 #  else
18621 #    ifdef DL_LAZY
18622 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18623 #    else
18624 #      ifdef RTLD_NOW
18625 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18626 #      else
18627 #        ifdef DL_NOW
18628 #          define LT_DLLAZY_OR_NOW      DL_NOW
18629 #        else
18630 #          define LT_DLLAZY_OR_NOW      0
18631 #        endif
18632 #      endif
18633 #    endif
18634 #  endif
18635 #endif
18636
18637 #ifdef __cplusplus
18638 extern "C" void exit (int);
18639 #endif
18640
18641 void fnord() { int i=42;}
18642 int main ()
18643 {
18644   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18645   int status = $lt_dlunknown;
18646
18647   if (self)
18648     {
18649       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18650       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18651       /* dlclose (self); */
18652     }
18653
18654     exit (status);
18655 }
18656 EOF
18657   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18658   (eval $ac_link) 2>&5
18659   ac_status=$?
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18662     (./conftest; exit; ) 2>/dev/null
18663     lt_status=$?
18664     case x$lt_status in
18665       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18666       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18667       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18668     esac
18669   else :
18670     # compilation failed
18671     lt_cv_dlopen_self=no
18672   fi
18673 fi
18674 rm -fr conftest*
18675
18676
18677 fi
18678 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18679 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18680
18681     if test "x$lt_cv_dlopen_self" = xyes; then
18682       LDFLAGS="$LDFLAGS $link_static_flag"
18683       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18684 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18685 if test "${lt_cv_dlopen_self_static+set}" = set; then
18686   echo $ECHO_N "(cached) $ECHO_C" >&6
18687 else
18688           if test "$cross_compiling" = yes; then :
18689   lt_cv_dlopen_self_static=cross
18690 else
18691   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18692   lt_status=$lt_dlunknown
18693   cat > conftest.$ac_ext <<EOF
18694 #line 18694 "configure"
18695 #include "confdefs.h"
18696
18697 #if HAVE_DLFCN_H
18698 #include <dlfcn.h>
18699 #endif
18700
18701 #include <stdio.h>
18702
18703 #ifdef RTLD_GLOBAL
18704 #  define LT_DLGLOBAL           RTLD_GLOBAL
18705 #else
18706 #  ifdef DL_GLOBAL
18707 #    define LT_DLGLOBAL         DL_GLOBAL
18708 #  else
18709 #    define LT_DLGLOBAL         0
18710 #  endif
18711 #endif
18712
18713 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18714    find out it does not work in some platform. */
18715 #ifndef LT_DLLAZY_OR_NOW
18716 #  ifdef RTLD_LAZY
18717 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18718 #  else
18719 #    ifdef DL_LAZY
18720 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18721 #    else
18722 #      ifdef RTLD_NOW
18723 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18724 #      else
18725 #        ifdef DL_NOW
18726 #          define LT_DLLAZY_OR_NOW      DL_NOW
18727 #        else
18728 #          define LT_DLLAZY_OR_NOW      0
18729 #        endif
18730 #      endif
18731 #    endif
18732 #  endif
18733 #endif
18734
18735 #ifdef __cplusplus
18736 extern "C" void exit (int);
18737 #endif
18738
18739 void fnord() { int i=42;}
18740 int main ()
18741 {
18742   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18743   int status = $lt_dlunknown;
18744
18745   if (self)
18746     {
18747       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18748       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18749       /* dlclose (self); */
18750     }
18751
18752     exit (status);
18753 }
18754 EOF
18755   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18756   (eval $ac_link) 2>&5
18757   ac_status=$?
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18760     (./conftest; exit; ) 2>/dev/null
18761     lt_status=$?
18762     case x$lt_status in
18763       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18764       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18765       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18766     esac
18767   else :
18768     # compilation failed
18769     lt_cv_dlopen_self_static=no
18770   fi
18771 fi
18772 rm -fr conftest*
18773
18774
18775 fi
18776 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18777 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18778     fi
18779
18780     CPPFLAGS="$save_CPPFLAGS"
18781     LDFLAGS="$save_LDFLAGS"
18782     LIBS="$save_LIBS"
18783     ;;
18784   esac
18785
18786   case $lt_cv_dlopen_self in
18787   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18788   *) enable_dlopen_self=unknown ;;
18789   esac
18790
18791   case $lt_cv_dlopen_self_static in
18792   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18793   *) enable_dlopen_self_static=unknown ;;
18794   esac
18795 fi
18796
18797
18798 # The else clause should only fire when bootstrapping the
18799 # libtool distribution, otherwise you forgot to ship ltmain.sh
18800 # with your package, and you will get complaints that there are
18801 # no rules to generate ltmain.sh.
18802 if test -f "$ltmain"; then
18803   # See if we are running on zsh, and set the options which allow our commands through
18804   # without removal of \ escapes.
18805   if test -n "${ZSH_VERSION+set}" ; then
18806     setopt NO_GLOB_SUBST
18807   fi
18808   # Now quote all the things that may contain metacharacters while being
18809   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18810   # variables and quote the copies for generation of the libtool script.
18811   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18812     SED SHELL STRIP \
18813     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18814     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18815     deplibs_check_method reload_flag reload_cmds need_locks \
18816     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18817     lt_cv_sys_global_symbol_to_c_name_address \
18818     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18819     old_postinstall_cmds old_postuninstall_cmds \
18820     compiler_GCJ \
18821     CC_GCJ \
18822     LD_GCJ \
18823     lt_prog_compiler_wl_GCJ \
18824     lt_prog_compiler_pic_GCJ \
18825     lt_prog_compiler_static_GCJ \
18826     lt_prog_compiler_no_builtin_flag_GCJ \
18827     export_dynamic_flag_spec_GCJ \
18828     thread_safe_flag_spec_GCJ \
18829     whole_archive_flag_spec_GCJ \
18830     enable_shared_with_static_runtimes_GCJ \
18831     old_archive_cmds_GCJ \
18832     old_archive_from_new_cmds_GCJ \
18833     predep_objects_GCJ \
18834     postdep_objects_GCJ \
18835     predeps_GCJ \
18836     postdeps_GCJ \
18837     compiler_lib_search_path_GCJ \
18838     archive_cmds_GCJ \
18839     archive_expsym_cmds_GCJ \
18840     postinstall_cmds_GCJ \
18841     postuninstall_cmds_GCJ \
18842     old_archive_from_expsyms_cmds_GCJ \
18843     allow_undefined_flag_GCJ \
18844     no_undefined_flag_GCJ \
18845     export_symbols_cmds_GCJ \
18846     hardcode_libdir_flag_spec_GCJ \
18847     hardcode_libdir_flag_spec_ld_GCJ \
18848     hardcode_libdir_separator_GCJ \
18849     hardcode_automatic_GCJ \
18850     module_cmds_GCJ \
18851     module_expsym_cmds_GCJ \
18852     lt_cv_prog_compiler_c_o_GCJ \
18853     exclude_expsyms_GCJ \
18854     include_expsyms_GCJ; do
18855
18856     case $var in
18857     old_archive_cmds_GCJ | \
18858     old_archive_from_new_cmds_GCJ | \
18859     archive_cmds_GCJ | \
18860     archive_expsym_cmds_GCJ | \
18861     module_cmds_GCJ | \
18862     module_expsym_cmds_GCJ | \
18863     old_archive_from_expsyms_cmds_GCJ | \
18864     export_symbols_cmds_GCJ | \
18865     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18866     postinstall_cmds | postuninstall_cmds | \
18867     old_postinstall_cmds | old_postuninstall_cmds | \
18868     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18869       # Double-quote double-evaled strings.
18870       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18871       ;;
18872     *)
18873       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18874       ;;
18875     esac
18876   done
18877
18878   case $lt_echo in
18879   *'\$0 --fallback-echo"')
18880     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18881     ;;
18882   esac
18883
18884 cfgfile="$ofile"
18885
18886   cat <<__EOF__ >> "$cfgfile"
18887 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18888
18889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18890
18891 # Shell to use when invoking shell scripts.
18892 SHELL=$lt_SHELL
18893
18894 # Whether or not to build shared libraries.
18895 build_libtool_libs=$enable_shared
18896
18897 # Whether or not to build static libraries.
18898 build_old_libs=$enable_static
18899
18900 # Whether or not to add -lc for building shared libraries.
18901 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18902
18903 # Whether or not to disallow shared libs when runtime libs are static
18904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18905
18906 # Whether or not to optimize for fast installation.
18907 fast_install=$enable_fast_install
18908
18909 # The host system.
18910 host_alias=$host_alias
18911 host=$host
18912 host_os=$host_os
18913
18914 # The build system.
18915 build_alias=$build_alias
18916 build=$build
18917 build_os=$build_os
18918
18919 # An echo program that does not interpret backslashes.
18920 echo=$lt_echo
18921
18922 # The archiver.
18923 AR=$lt_AR
18924 AR_FLAGS=$lt_AR_FLAGS
18925
18926 # A C compiler.
18927 LTCC=$lt_LTCC
18928
18929 # A language-specific compiler.
18930 CC=$lt_compiler_GCJ
18931
18932 # Is the compiler the GNU C compiler?
18933 with_gcc=$GCC_GCJ
18934
18935 # An ERE matcher.
18936 EGREP=$lt_EGREP
18937
18938 # The linker used to build libraries.
18939 LD=$lt_LD_GCJ
18940
18941 # Whether we need hard or soft links.
18942 LN_S=$lt_LN_S
18943
18944 # A BSD-compatible nm program.
18945 NM=$lt_NM
18946
18947 # A symbol stripping program
18948 STRIP=$lt_STRIP
18949
18950 # Used to examine libraries when file_magic_cmd begins "file"
18951 MAGIC_CMD=$MAGIC_CMD
18952
18953 # Used on cygwin: DLL creation program.
18954 DLLTOOL="$DLLTOOL"
18955
18956 # Used on cygwin: object dumper.
18957 OBJDUMP="$OBJDUMP"
18958
18959 # Used on cygwin: assembler.
18960 AS="$AS"
18961
18962 # The name of the directory that contains temporary libtool files.
18963 objdir=$objdir
18964
18965 # How to create reloadable object files.
18966 reload_flag=$lt_reload_flag
18967 reload_cmds=$lt_reload_cmds
18968
18969 # How to pass a linker flag through the compiler.
18970 wl=$lt_lt_prog_compiler_wl_GCJ
18971
18972 # Object file suffix (normally "o").
18973 objext="$ac_objext"
18974
18975 # Old archive suffix (normally "a").
18976 libext="$libext"
18977
18978 # Shared library suffix (normally ".so").
18979 shrext_cmds='$shrext_cmds'
18980
18981 # Executable file suffix (normally "").
18982 exeext="$exeext"
18983
18984 # Additional compiler flags for building library objects.
18985 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18986 pic_mode=$pic_mode
18987
18988 # What is the maximum length of a command?
18989 max_cmd_len=$lt_cv_sys_max_cmd_len
18990
18991 # Does compiler simultaneously support -c and -o options?
18992 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18993
18994 # Must we lock files when doing compilation?
18995 need_locks=$lt_need_locks
18996
18997 # Do we need the lib prefix for modules?
18998 need_lib_prefix=$need_lib_prefix
18999
19000 # Do we need a version for libraries?
19001 need_version=$need_version
19002
19003 # Whether dlopen is supported.
19004 dlopen_support=$enable_dlopen
19005
19006 # Whether dlopen of programs is supported.
19007 dlopen_self=$enable_dlopen_self
19008
19009 # Whether dlopen of statically linked programs is supported.
19010 dlopen_self_static=$enable_dlopen_self_static
19011
19012 # Compiler flag to prevent dynamic linking.
19013 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19014
19015 # Compiler flag to turn off builtin functions.
19016 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19017
19018 # Compiler flag to allow reflexive dlopens.
19019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19020
19021 # Compiler flag to generate shared objects directly from archives.
19022 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19023
19024 # Compiler flag to generate thread-safe objects.
19025 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19026
19027 # Library versioning type.
19028 version_type=$version_type
19029
19030 # Format of library name prefix.
19031 libname_spec=$lt_libname_spec
19032
19033 # List of archive names.  First name is the real one, the rest are links.
19034 # The last name is the one that the linker finds with -lNAME.
19035 library_names_spec=$lt_library_names_spec
19036
19037 # The coded name of the library, if different from the real name.
19038 soname_spec=$lt_soname_spec
19039
19040 # Commands used to build and install an old-style archive.
19041 RANLIB=$lt_RANLIB
19042 old_archive_cmds=$lt_old_archive_cmds_GCJ
19043 old_postinstall_cmds=$lt_old_postinstall_cmds
19044 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19045
19046 # Create an old-style archive from a shared archive.
19047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19048
19049 # Create a temporary old-style archive to link instead of a shared archive.
19050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19051
19052 # Commands used to build and install a shared archive.
19053 archive_cmds=$lt_archive_cmds_GCJ
19054 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19055 postinstall_cmds=$lt_postinstall_cmds
19056 postuninstall_cmds=$lt_postuninstall_cmds
19057
19058 # Commands used to build a loadable module (assumed same as above if empty)
19059 module_cmds=$lt_module_cmds_GCJ
19060 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19061
19062 # Commands to strip libraries.
19063 old_striplib=$lt_old_striplib
19064 striplib=$lt_striplib
19065
19066 # Dependencies to place before the objects being linked to create a
19067 # shared library.
19068 predep_objects=$lt_predep_objects_GCJ
19069
19070 # Dependencies to place after the objects being linked to create a
19071 # shared library.
19072 postdep_objects=$lt_postdep_objects_GCJ
19073
19074 # Dependencies to place before the objects being linked to create a
19075 # shared library.
19076 predeps=$lt_predeps_GCJ
19077
19078 # Dependencies to place after the objects being linked to create a
19079 # shared library.
19080 postdeps=$lt_postdeps_GCJ
19081
19082 # The library search path used internally by the compiler when linking
19083 # a shared library.
19084 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19085
19086 # Method to check whether dependent libraries are shared objects.
19087 deplibs_check_method=$lt_deplibs_check_method
19088
19089 # Command to use when deplibs_check_method == file_magic.
19090 file_magic_cmd=$lt_file_magic_cmd
19091
19092 # Flag that allows shared libraries with undefined symbols to be built.
19093 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19094
19095 # Flag that forces no undefined symbols.
19096 no_undefined_flag=$lt_no_undefined_flag_GCJ
19097
19098 # Commands used to finish a libtool library installation in a directory.
19099 finish_cmds=$lt_finish_cmds
19100
19101 # Same as above, but a single script fragment to be evaled but not shown.
19102 finish_eval=$lt_finish_eval
19103
19104 # Take the output of nm and produce a listing of raw symbols and C names.
19105 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19106
19107 # Transform the output of nm in a proper C declaration
19108 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19109
19110 # Transform the output of nm in a C name address pair
19111 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19112
19113 # This is the shared library runtime path variable.
19114 runpath_var=$runpath_var
19115
19116 # This is the shared library path variable.
19117 shlibpath_var=$shlibpath_var
19118
19119 # Is shlibpath searched before the hard-coded library search path?
19120 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19121
19122 # How to hardcode a shared library path into an executable.
19123 hardcode_action=$hardcode_action_GCJ
19124
19125 # Whether we should hardcode library paths into libraries.
19126 hardcode_into_libs=$hardcode_into_libs
19127
19128 # Flag to hardcode \$libdir into a binary during linking.
19129 # This must work even if \$libdir does not exist.
19130 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19131
19132 # If ld is used when linking, flag to hardcode \$libdir into
19133 # a binary during linking. This must work even if \$libdir does
19134 # not exist.
19135 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19136
19137 # Whether we need a single -rpath flag with a separated argument.
19138 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19139
19140 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19141 # resulting binary.
19142 hardcode_direct=$hardcode_direct_GCJ
19143
19144 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19145 # resulting binary.
19146 hardcode_minus_L=$hardcode_minus_L_GCJ
19147
19148 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19149 # the resulting binary.
19150 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19151
19152 # Set to yes if building a shared library automatically hardcodes DIR into the library
19153 # and all subsequent libraries and executables linked against it.
19154 hardcode_automatic=$hardcode_automatic_GCJ
19155
19156 # Variables whose values should be saved in libtool wrapper scripts and
19157 # restored at relink time.
19158 variables_saved_for_relink="$variables_saved_for_relink"
19159
19160 # Whether libtool must link a program against all its dependency libraries.
19161 link_all_deplibs=$link_all_deplibs_GCJ
19162
19163 # Compile-time system search path for libraries
19164 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19165
19166 # Run-time system search path for libraries
19167 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19168
19169 # Fix the shell variable \$srcfile for the compiler.
19170 fix_srcfile_path="$fix_srcfile_path_GCJ"
19171
19172 # Set to yes if exported symbols are required.
19173 always_export_symbols=$always_export_symbols_GCJ
19174
19175 # The commands to list exported symbols.
19176 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19177
19178 # The commands to extract the exported symbol list from a shared archive.
19179 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19180
19181 # Symbols that should not be listed in the preloaded symbols.
19182 exclude_expsyms=$lt_exclude_expsyms_GCJ
19183
19184 # Symbols that must always be exported.
19185 include_expsyms=$lt_include_expsyms_GCJ
19186
19187 # ### END LIBTOOL TAG CONFIG: $tagname
19188
19189 __EOF__
19190
19191
19192 else
19193   # If there is no Makefile yet, we rely on a make rule to execute
19194   # `config.status --recheck' to rerun these tests and create the
19195   # libtool script then.
19196   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19197   if test -f "$ltmain_in"; then
19198     test -f Makefile && make "$ltmain"
19199   fi
19200 fi
19201
19202
19203 ac_ext=c
19204 ac_cpp='$CPP $CPPFLAGS'
19205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19208
19209 CC="$lt_save_CC"
19210
19211         else
19212           tagname=""
19213         fi
19214         ;;
19215
19216       RC)
19217
19218
19219
19220 # Source file extension for RC test sources.
19221 ac_ext=rc
19222
19223 # Object file extension for compiled RC test sources.
19224 objext=o
19225 objext_RC=$objext
19226
19227 # Code to be used in simple compile tests
19228 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19229
19230 # Code to be used in simple link tests
19231 lt_simple_link_test_code="$lt_simple_compile_test_code"
19232
19233 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19234
19235 # If no C compiler was specified, use CC.
19236 LTCC=${LTCC-"$CC"}
19237
19238 # Allow CC to be a program name with arguments.
19239 compiler=$CC
19240
19241
19242 # save warnings/boilerplate of simple test code
19243 ac_outfile=conftest.$ac_objext
19244 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19245 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19246 _lt_compiler_boilerplate=`cat conftest.err`
19247 $rm conftest*
19248
19249 ac_outfile=conftest.$ac_objext
19250 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19251 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19252 _lt_linker_boilerplate=`cat conftest.err`
19253 $rm conftest*
19254
19255
19256 # Allow CC to be a program name with arguments.
19257 lt_save_CC="$CC"
19258 CC=${RC-"windres"}
19259 compiler=$CC
19260 compiler_RC=$CC
19261 for cc_temp in $compiler""; do
19262   case $cc_temp in
19263     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19264     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19265     \-*) ;;
19266     *) break;;
19267   esac
19268 done
19269 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19270
19271 lt_cv_prog_compiler_c_o_RC=yes
19272
19273 # The else clause should only fire when bootstrapping the
19274 # libtool distribution, otherwise you forgot to ship ltmain.sh
19275 # with your package, and you will get complaints that there are
19276 # no rules to generate ltmain.sh.
19277 if test -f "$ltmain"; then
19278   # See if we are running on zsh, and set the options which allow our commands through
19279   # without removal of \ escapes.
19280   if test -n "${ZSH_VERSION+set}" ; then
19281     setopt NO_GLOB_SUBST
19282   fi
19283   # Now quote all the things that may contain metacharacters while being
19284   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19285   # variables and quote the copies for generation of the libtool script.
19286   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19287     SED SHELL STRIP \
19288     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19289     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19290     deplibs_check_method reload_flag reload_cmds need_locks \
19291     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19292     lt_cv_sys_global_symbol_to_c_name_address \
19293     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19294     old_postinstall_cmds old_postuninstall_cmds \
19295     compiler_RC \
19296     CC_RC \
19297     LD_RC \
19298     lt_prog_compiler_wl_RC \
19299     lt_prog_compiler_pic_RC \
19300     lt_prog_compiler_static_RC \
19301     lt_prog_compiler_no_builtin_flag_RC \
19302     export_dynamic_flag_spec_RC \
19303     thread_safe_flag_spec_RC \
19304     whole_archive_flag_spec_RC \
19305     enable_shared_with_static_runtimes_RC \
19306     old_archive_cmds_RC \
19307     old_archive_from_new_cmds_RC \
19308     predep_objects_RC \
19309     postdep_objects_RC \
19310     predeps_RC \
19311     postdeps_RC \
19312     compiler_lib_search_path_RC \
19313     archive_cmds_RC \
19314     archive_expsym_cmds_RC \
19315     postinstall_cmds_RC \
19316     postuninstall_cmds_RC \
19317     old_archive_from_expsyms_cmds_RC \
19318     allow_undefined_flag_RC \
19319     no_undefined_flag_RC \
19320     export_symbols_cmds_RC \
19321     hardcode_libdir_flag_spec_RC \
19322     hardcode_libdir_flag_spec_ld_RC \
19323     hardcode_libdir_separator_RC \
19324     hardcode_automatic_RC \
19325     module_cmds_RC \
19326     module_expsym_cmds_RC \
19327     lt_cv_prog_compiler_c_o_RC \
19328     exclude_expsyms_RC \
19329     include_expsyms_RC; do
19330
19331     case $var in
19332     old_archive_cmds_RC | \
19333     old_archive_from_new_cmds_RC | \
19334     archive_cmds_RC | \
19335     archive_expsym_cmds_RC | \
19336     module_cmds_RC | \
19337     module_expsym_cmds_RC | \
19338     old_archive_from_expsyms_cmds_RC | \
19339     export_symbols_cmds_RC | \
19340     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19341     postinstall_cmds | postuninstall_cmds | \
19342     old_postinstall_cmds | old_postuninstall_cmds | \
19343     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19344       # Double-quote double-evaled strings.
19345       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19346       ;;
19347     *)
19348       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19349       ;;
19350     esac
19351   done
19352
19353   case $lt_echo in
19354   *'\$0 --fallback-echo"')
19355     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19356     ;;
19357   esac
19358
19359 cfgfile="$ofile"
19360
19361   cat <<__EOF__ >> "$cfgfile"
19362 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19363
19364 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19365
19366 # Shell to use when invoking shell scripts.
19367 SHELL=$lt_SHELL
19368
19369 # Whether or not to build shared libraries.
19370 build_libtool_libs=$enable_shared
19371
19372 # Whether or not to build static libraries.
19373 build_old_libs=$enable_static
19374
19375 # Whether or not to add -lc for building shared libraries.
19376 build_libtool_need_lc=$archive_cmds_need_lc_RC
19377
19378 # Whether or not to disallow shared libs when runtime libs are static
19379 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19380
19381 # Whether or not to optimize for fast installation.
19382 fast_install=$enable_fast_install
19383
19384 # The host system.
19385 host_alias=$host_alias
19386 host=$host
19387 host_os=$host_os
19388
19389 # The build system.
19390 build_alias=$build_alias
19391 build=$build
19392 build_os=$build_os
19393
19394 # An echo program that does not interpret backslashes.
19395 echo=$lt_echo
19396
19397 # The archiver.
19398 AR=$lt_AR
19399 AR_FLAGS=$lt_AR_FLAGS
19400
19401 # A C compiler.
19402 LTCC=$lt_LTCC
19403
19404 # A language-specific compiler.
19405 CC=$lt_compiler_RC
19406
19407 # Is the compiler the GNU C compiler?
19408 with_gcc=$GCC_RC
19409
19410 # An ERE matcher.
19411 EGREP=$lt_EGREP
19412
19413 # The linker used to build libraries.
19414 LD=$lt_LD_RC
19415
19416 # Whether we need hard or soft links.
19417 LN_S=$lt_LN_S
19418
19419 # A BSD-compatible nm program.
19420 NM=$lt_NM
19421
19422 # A symbol stripping program
19423 STRIP=$lt_STRIP
19424
19425 # Used to examine libraries when file_magic_cmd begins "file"
19426 MAGIC_CMD=$MAGIC_CMD
19427
19428 # Used on cygwin: DLL creation program.
19429 DLLTOOL="$DLLTOOL"
19430
19431 # Used on cygwin: object dumper.
19432 OBJDUMP="$OBJDUMP"
19433
19434 # Used on cygwin: assembler.
19435 AS="$AS"
19436
19437 # The name of the directory that contains temporary libtool files.
19438 objdir=$objdir
19439
19440 # How to create reloadable object files.
19441 reload_flag=$lt_reload_flag
19442 reload_cmds=$lt_reload_cmds
19443
19444 # How to pass a linker flag through the compiler.
19445 wl=$lt_lt_prog_compiler_wl_RC
19446
19447 # Object file suffix (normally "o").
19448 objext="$ac_objext"
19449
19450 # Old archive suffix (normally "a").
19451 libext="$libext"
19452
19453 # Shared library suffix (normally ".so").
19454 shrext_cmds='$shrext_cmds'
19455
19456 # Executable file suffix (normally "").
19457 exeext="$exeext"
19458
19459 # Additional compiler flags for building library objects.
19460 pic_flag=$lt_lt_prog_compiler_pic_RC
19461 pic_mode=$pic_mode
19462
19463 # What is the maximum length of a command?
19464 max_cmd_len=$lt_cv_sys_max_cmd_len
19465
19466 # Does compiler simultaneously support -c and -o options?
19467 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19468
19469 # Must we lock files when doing compilation?
19470 need_locks=$lt_need_locks
19471
19472 # Do we need the lib prefix for modules?
19473 need_lib_prefix=$need_lib_prefix
19474
19475 # Do we need a version for libraries?
19476 need_version=$need_version
19477
19478 # Whether dlopen is supported.
19479 dlopen_support=$enable_dlopen
19480
19481 # Whether dlopen of programs is supported.
19482 dlopen_self=$enable_dlopen_self
19483
19484 # Whether dlopen of statically linked programs is supported.
19485 dlopen_self_static=$enable_dlopen_self_static
19486
19487 # Compiler flag to prevent dynamic linking.
19488 link_static_flag=$lt_lt_prog_compiler_static_RC
19489
19490 # Compiler flag to turn off builtin functions.
19491 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19492
19493 # Compiler flag to allow reflexive dlopens.
19494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19495
19496 # Compiler flag to generate shared objects directly from archives.
19497 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19498
19499 # Compiler flag to generate thread-safe objects.
19500 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19501
19502 # Library versioning type.
19503 version_type=$version_type
19504
19505 # Format of library name prefix.
19506 libname_spec=$lt_libname_spec
19507
19508 # List of archive names.  First name is the real one, the rest are links.
19509 # The last name is the one that the linker finds with -lNAME.
19510 library_names_spec=$lt_library_names_spec
19511
19512 # The coded name of the library, if different from the real name.
19513 soname_spec=$lt_soname_spec
19514
19515 # Commands used to build and install an old-style archive.
19516 RANLIB=$lt_RANLIB
19517 old_archive_cmds=$lt_old_archive_cmds_RC
19518 old_postinstall_cmds=$lt_old_postinstall_cmds
19519 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19520
19521 # Create an old-style archive from a shared archive.
19522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19523
19524 # Create a temporary old-style archive to link instead of a shared archive.
19525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19526
19527 # Commands used to build and install a shared archive.
19528 archive_cmds=$lt_archive_cmds_RC
19529 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19530 postinstall_cmds=$lt_postinstall_cmds
19531 postuninstall_cmds=$lt_postuninstall_cmds
19532
19533 # Commands used to build a loadable module (assumed same as above if empty)
19534 module_cmds=$lt_module_cmds_RC
19535 module_expsym_cmds=$lt_module_expsym_cmds_RC
19536
19537 # Commands to strip libraries.
19538 old_striplib=$lt_old_striplib
19539 striplib=$lt_striplib
19540
19541 # Dependencies to place before the objects being linked to create a
19542 # shared library.
19543 predep_objects=$lt_predep_objects_RC
19544
19545 # Dependencies to place after the objects being linked to create a
19546 # shared library.
19547 postdep_objects=$lt_postdep_objects_RC
19548
19549 # Dependencies to place before the objects being linked to create a
19550 # shared library.
19551 predeps=$lt_predeps_RC
19552
19553 # Dependencies to place after the objects being linked to create a
19554 # shared library.
19555 postdeps=$lt_postdeps_RC
19556
19557 # The library search path used internally by the compiler when linking
19558 # a shared library.
19559 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19560
19561 # Method to check whether dependent libraries are shared objects.
19562 deplibs_check_method=$lt_deplibs_check_method
19563
19564 # Command to use when deplibs_check_method == file_magic.
19565 file_magic_cmd=$lt_file_magic_cmd
19566
19567 # Flag that allows shared libraries with undefined symbols to be built.
19568 allow_undefined_flag=$lt_allow_undefined_flag_RC
19569
19570 # Flag that forces no undefined symbols.
19571 no_undefined_flag=$lt_no_undefined_flag_RC
19572
19573 # Commands used to finish a libtool library installation in a directory.
19574 finish_cmds=$lt_finish_cmds
19575
19576 # Same as above, but a single script fragment to be evaled but not shown.
19577 finish_eval=$lt_finish_eval
19578
19579 # Take the output of nm and produce a listing of raw symbols and C names.
19580 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19581
19582 # Transform the output of nm in a proper C declaration
19583 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19584
19585 # Transform the output of nm in a C name address pair
19586 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19587
19588 # This is the shared library runtime path variable.
19589 runpath_var=$runpath_var
19590
19591 # This is the shared library path variable.
19592 shlibpath_var=$shlibpath_var
19593
19594 # Is shlibpath searched before the hard-coded library search path?
19595 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19596
19597 # How to hardcode a shared library path into an executable.
19598 hardcode_action=$hardcode_action_RC
19599
19600 # Whether we should hardcode library paths into libraries.
19601 hardcode_into_libs=$hardcode_into_libs
19602
19603 # Flag to hardcode \$libdir into a binary during linking.
19604 # This must work even if \$libdir does not exist.
19605 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19606
19607 # If ld is used when linking, flag to hardcode \$libdir into
19608 # a binary during linking. This must work even if \$libdir does
19609 # not exist.
19610 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19611
19612 # Whether we need a single -rpath flag with a separated argument.
19613 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19614
19615 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19616 # resulting binary.
19617 hardcode_direct=$hardcode_direct_RC
19618
19619 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19620 # resulting binary.
19621 hardcode_minus_L=$hardcode_minus_L_RC
19622
19623 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19624 # the resulting binary.
19625 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19626
19627 # Set to yes if building a shared library automatically hardcodes DIR into the library
19628 # and all subsequent libraries and executables linked against it.
19629 hardcode_automatic=$hardcode_automatic_RC
19630
19631 # Variables whose values should be saved in libtool wrapper scripts and
19632 # restored at relink time.
19633 variables_saved_for_relink="$variables_saved_for_relink"
19634
19635 # Whether libtool must link a program against all its dependency libraries.
19636 link_all_deplibs=$link_all_deplibs_RC
19637
19638 # Compile-time system search path for libraries
19639 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19640
19641 # Run-time system search path for libraries
19642 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19643
19644 # Fix the shell variable \$srcfile for the compiler.
19645 fix_srcfile_path="$fix_srcfile_path_RC"
19646
19647 # Set to yes if exported symbols are required.
19648 always_export_symbols=$always_export_symbols_RC
19649
19650 # The commands to list exported symbols.
19651 export_symbols_cmds=$lt_export_symbols_cmds_RC
19652
19653 # The commands to extract the exported symbol list from a shared archive.
19654 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19655
19656 # Symbols that should not be listed in the preloaded symbols.
19657 exclude_expsyms=$lt_exclude_expsyms_RC
19658
19659 # Symbols that must always be exported.
19660 include_expsyms=$lt_include_expsyms_RC
19661
19662 # ### END LIBTOOL TAG CONFIG: $tagname
19663
19664 __EOF__
19665
19666
19667 else
19668   # If there is no Makefile yet, we rely on a make rule to execute
19669   # `config.status --recheck' to rerun these tests and create the
19670   # libtool script then.
19671   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19672   if test -f "$ltmain_in"; then
19673     test -f Makefile && make "$ltmain"
19674   fi
19675 fi
19676
19677
19678 ac_ext=c
19679 ac_cpp='$CPP $CPPFLAGS'
19680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19683
19684 CC="$lt_save_CC"
19685
19686         ;;
19687
19688       *)
19689         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19690 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19691    { (exit 1); exit 1; }; }
19692         ;;
19693       esac
19694
19695       # Append the new tag name to the list of available tags.
19696       if test -n "$tagname" ; then
19697       available_tags="$available_tags $tagname"
19698     fi
19699     fi
19700   done
19701   IFS="$lt_save_ifs"
19702
19703   # Now substitute the updated list of available tags.
19704   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19705     mv "${ofile}T" "$ofile"
19706     chmod +x "$ofile"
19707   else
19708     rm -f "${ofile}T"
19709     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19710 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19711    { (exit 1); exit 1; }; }
19712   fi
19713 fi
19714
19715
19716
19717 # This can be used to rebuild libtool when needed
19718 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19719
19720 # Always use our own libtool.
19721 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19722
19723 # Prevent multiple expansion
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19775 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19776 if test "${ac_cv_header_stdc+set}" = set; then
19777   echo $ECHO_N "(cached) $ECHO_C" >&6
19778 else
19779   cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785 #include <stdlib.h>
19786 #include <stdarg.h>
19787 #include <string.h>
19788 #include <float.h>
19789
19790 int
19791 main ()
19792 {
19793
19794   ;
19795   return 0;
19796 }
19797 _ACEOF
19798 rm -f conftest.$ac_objext
19799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19800   (eval $ac_compile) 2>conftest.er1
19801   ac_status=$?
19802   grep -v '^ *+' conftest.er1 >conftest.err
19803   rm -f conftest.er1
19804   cat conftest.err >&5
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } &&
19807          { ac_try='test -z "$ac_c_werror_flag"
19808                          || test ! -s conftest.err'
19809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810   (eval $ac_try) 2>&5
19811   ac_status=$?
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); }; } &&
19814          { ac_try='test -s conftest.$ac_objext'
19815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816   (eval $ac_try) 2>&5
19817   ac_status=$?
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); }; }; then
19820   ac_cv_header_stdc=yes
19821 else
19822   echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825 ac_cv_header_stdc=no
19826 fi
19827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19828
19829 if test $ac_cv_header_stdc = yes; then
19830   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19831   cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837 #include <string.h>
19838
19839 _ACEOF
19840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19841   $EGREP "memchr" >/dev/null 2>&1; then
19842   :
19843 else
19844   ac_cv_header_stdc=no
19845 fi
19846 rm -f conftest*
19847
19848 fi
19849
19850 if test $ac_cv_header_stdc = yes; then
19851   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19852   cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h.  */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h.  */
19858 #include <stdlib.h>
19859
19860 _ACEOF
19861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19862   $EGREP "free" >/dev/null 2>&1; then
19863   :
19864 else
19865   ac_cv_header_stdc=no
19866 fi
19867 rm -f conftest*
19868
19869 fi
19870
19871 if test $ac_cv_header_stdc = yes; then
19872   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19873   if test "$cross_compiling" = yes; then
19874   :
19875 else
19876   cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h.  */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h.  */
19882 #include <ctype.h>
19883 #if ((' ' & 0x0FF) == 0x020)
19884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19886 #else
19887 # define ISLOWER(c) \
19888                    (('a' <= (c) && (c) <= 'i') \
19889                      || ('j' <= (c) && (c) <= 'r') \
19890                      || ('s' <= (c) && (c) <= 'z'))
19891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19892 #endif
19893
19894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19895 int
19896 main ()
19897 {
19898   int i;
19899   for (i = 0; i < 256; i++)
19900     if (XOR (islower (i), ISLOWER (i))
19901         || toupper (i) != TOUPPER (i))
19902       exit(2);
19903   exit (0);
19904 }
19905 _ACEOF
19906 rm -f conftest$ac_exeext
19907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19908   (eval $ac_link) 2>&5
19909   ac_status=$?
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913   (eval $ac_try) 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); }; }; then
19917   :
19918 else
19919   echo "$as_me: program exited with status $ac_status" >&5
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923 ( exit $ac_status )
19924 ac_cv_header_stdc=no
19925 fi
19926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19927 fi
19928 fi
19929 fi
19930 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19931 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19932 if test $ac_cv_header_stdc = yes; then
19933
19934 cat >>confdefs.h <<\_ACEOF
19935 #define STDC_HEADERS 1
19936 _ACEOF
19937
19938 fi
19939
19940 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19941 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19942 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19943   echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945   cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h.  */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h.  */
19951 #include <sys/types.h>
19952 int
19953 main ()
19954 {
19955 return makedev(0, 0);
19956   ;
19957   return 0;
19958 }
19959 _ACEOF
19960 rm -f conftest.$ac_objext conftest$ac_exeext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19962   (eval $ac_link) 2>conftest.er1
19963   ac_status=$?
19964   grep -v '^ *+' conftest.er1 >conftest.err
19965   rm -f conftest.er1
19966   cat conftest.err >&5
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); } &&
19969          { ac_try='test -z "$ac_c_werror_flag"
19970                          || test ! -s conftest.err'
19971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19972   (eval $ac_try) 2>&5
19973   ac_status=$?
19974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975   (exit $ac_status); }; } &&
19976          { ac_try='test -s conftest$ac_exeext'
19977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978   (eval $ac_try) 2>&5
19979   ac_status=$?
19980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981   (exit $ac_status); }; }; then
19982   ac_cv_header_sys_types_h_makedev=yes
19983 else
19984   echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19986
19987 ac_cv_header_sys_types_h_makedev=no
19988 fi
19989 rm -f conftest.err conftest.$ac_objext \
19990       conftest$ac_exeext conftest.$ac_ext
19991
19992 fi
19993 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19994 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19995
19996 if test $ac_cv_header_sys_types_h_makedev = no; then
19997 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19998   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19999 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
20000 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20001   echo $ECHO_N "(cached) $ECHO_C" >&6
20002 fi
20003 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20004 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
20005 else
20006   # Is the header compilable?
20007 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20008 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h.  */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h.  */
20015 $ac_includes_default
20016 #include <sys/mkdev.h>
20017 _ACEOF
20018 rm -f conftest.$ac_objext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20020   (eval $ac_compile) 2>conftest.er1
20021   ac_status=$?
20022   grep -v '^ *+' conftest.er1 >conftest.err
20023   rm -f conftest.er1
20024   cat conftest.err >&5
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); } &&
20027          { ac_try='test -z "$ac_c_werror_flag"
20028                          || test ! -s conftest.err'
20029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030   (eval $ac_try) 2>&5
20031   ac_status=$?
20032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033   (exit $ac_status); }; } &&
20034          { ac_try='test -s conftest.$ac_objext'
20035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036   (eval $ac_try) 2>&5
20037   ac_status=$?
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); }; }; then
20040   ac_header_compiler=yes
20041 else
20042   echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20044
20045 ac_header_compiler=no
20046 fi
20047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20049 echo "${ECHO_T}$ac_header_compiler" >&6
20050
20051 # Is the header present?
20052 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20053 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
20054 cat >conftest.$ac_ext <<_ACEOF
20055 /* confdefs.h.  */
20056 _ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h.  */
20060 #include <sys/mkdev.h>
20061 _ACEOF
20062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20064   ac_status=$?
20065   grep -v '^ *+' conftest.er1 >conftest.err
20066   rm -f conftest.er1
20067   cat conftest.err >&5
20068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); } >/dev/null; then
20070   if test -s conftest.err; then
20071     ac_cpp_err=$ac_c_preproc_warn_flag
20072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20073   else
20074     ac_cpp_err=
20075   fi
20076 else
20077   ac_cpp_err=yes
20078 fi
20079 if test -z "$ac_cpp_err"; then
20080   ac_header_preproc=yes
20081 else
20082   echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20084
20085   ac_header_preproc=no
20086 fi
20087 rm -f conftest.err conftest.$ac_ext
20088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20089 echo "${ECHO_T}$ac_header_preproc" >&6
20090
20091 # So?  What about this header?
20092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20093   yes:no: )
20094     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20095 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20096     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20097 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20098     ac_header_preproc=yes
20099     ;;
20100   no:yes:* )
20101     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20102 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20103     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20104 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20105     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20106 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20107     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20108 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20109     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20110 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20111     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20112 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20113     (
20114       cat <<\_ASBOX
20115 ## ------------------------------------------ ##
20116 ## Report this to the AC_PACKAGE_NAME lists.  ##
20117 ## ------------------------------------------ ##
20118 _ASBOX
20119     ) |
20120       sed "s/^/$as_me: WARNING:     /" >&2
20121     ;;
20122 esac
20123 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20124 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
20125 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20126   echo $ECHO_N "(cached) $ECHO_C" >&6
20127 else
20128   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20129 fi
20130 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20131 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
20132
20133 fi
20134 if test $ac_cv_header_sys_mkdev_h = yes; then
20135
20136 cat >>confdefs.h <<\_ACEOF
20137 #define MAJOR_IN_MKDEV 1
20138 _ACEOF
20139
20140 fi
20141
20142
20143
20144   if test $ac_cv_header_sys_mkdev_h = no; then
20145     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20146   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20147 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
20148 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20149   echo $ECHO_N "(cached) $ECHO_C" >&6
20150 fi
20151 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20152 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
20153 else
20154   # Is the header compilable?
20155 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20156 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h.  */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h.  */
20163 $ac_includes_default
20164 #include <sys/sysmacros.h>
20165 _ACEOF
20166 rm -f conftest.$ac_objext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20168   (eval $ac_compile) 2>conftest.er1
20169   ac_status=$?
20170   grep -v '^ *+' conftest.er1 >conftest.err
20171   rm -f conftest.er1
20172   cat conftest.err >&5
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } &&
20175          { ac_try='test -z "$ac_c_werror_flag"
20176                          || test ! -s conftest.err'
20177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178   (eval $ac_try) 2>&5
20179   ac_status=$?
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); }; } &&
20182          { ac_try='test -s conftest.$ac_objext'
20183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184   (eval $ac_try) 2>&5
20185   ac_status=$?
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); }; }; then
20188   ac_header_compiler=yes
20189 else
20190   echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193 ac_header_compiler=no
20194 fi
20195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20197 echo "${ECHO_T}$ac_header_compiler" >&6
20198
20199 # Is the header present?
20200 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20201 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
20202 cat >conftest.$ac_ext <<_ACEOF
20203 /* confdefs.h.  */
20204 _ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h.  */
20208 #include <sys/sysmacros.h>
20209 _ACEOF
20210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20211   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20212   ac_status=$?
20213   grep -v '^ *+' conftest.er1 >conftest.err
20214   rm -f conftest.er1
20215   cat conftest.err >&5
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); } >/dev/null; then
20218   if test -s conftest.err; then
20219     ac_cpp_err=$ac_c_preproc_warn_flag
20220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20221   else
20222     ac_cpp_err=
20223   fi
20224 else
20225   ac_cpp_err=yes
20226 fi
20227 if test -z "$ac_cpp_err"; then
20228   ac_header_preproc=yes
20229 else
20230   echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20232
20233   ac_header_preproc=no
20234 fi
20235 rm -f conftest.err conftest.$ac_ext
20236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20237 echo "${ECHO_T}$ac_header_preproc" >&6
20238
20239 # So?  What about this header?
20240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20241   yes:no: )
20242     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20243 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20244     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20245 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20246     ac_header_preproc=yes
20247     ;;
20248   no:yes:* )
20249     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20250 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20251     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20252 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20253     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20254 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20255     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20256 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20257     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20258 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20259     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20260 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20261     (
20262       cat <<\_ASBOX
20263 ## ------------------------------------------ ##
20264 ## Report this to the AC_PACKAGE_NAME lists.  ##
20265 ## ------------------------------------------ ##
20266 _ASBOX
20267     ) |
20268       sed "s/^/$as_me: WARNING:     /" >&2
20269     ;;
20270 esac
20271 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20272 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
20273 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20274   echo $ECHO_N "(cached) $ECHO_C" >&6
20275 else
20276   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20277 fi
20278 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20279 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
20280
20281 fi
20282 if test $ac_cv_header_sys_sysmacros_h = yes; then
20283
20284 cat >>confdefs.h <<\_ACEOF
20285 #define MAJOR_IN_SYSMACROS 1
20286 _ACEOF
20287
20288 fi
20289
20290
20291   fi
20292 fi
20293
20294 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20295 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20296 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20297   echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299   cat >conftest.$ac_ext <<_ACEOF
20300 /* confdefs.h.  */
20301 _ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h.  */
20305 #include <sys/types.h>
20306 #include <sys/wait.h>
20307 #ifndef WEXITSTATUS
20308 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20309 #endif
20310 #ifndef WIFEXITED
20311 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20312 #endif
20313
20314 int
20315 main ()
20316 {
20317   int s;
20318   wait (&s);
20319   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20320   ;
20321   return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest.$ac_objext
20325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20326   (eval $ac_compile) 2>conftest.er1
20327   ac_status=$?
20328   grep -v '^ *+' conftest.er1 >conftest.err
20329   rm -f conftest.er1
20330   cat conftest.err >&5
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } &&
20333          { ac_try='test -z "$ac_c_werror_flag"
20334                          || test ! -s conftest.err'
20335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336   (eval $ac_try) 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); }; } &&
20340          { ac_try='test -s conftest.$ac_objext'
20341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342   (eval $ac_try) 2>&5
20343   ac_status=$?
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); }; }; then
20346   ac_cv_header_sys_wait_h=yes
20347 else
20348   echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351 ac_cv_header_sys_wait_h=no
20352 fi
20353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20354 fi
20355 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20356 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20357 if test $ac_cv_header_sys_wait_h = yes; then
20358
20359 cat >>confdefs.h <<\_ACEOF
20360 #define HAVE_SYS_WAIT_H 1
20361 _ACEOF
20362
20363 fi
20364
20365
20366 for ac_header in stdint.h
20367 do
20368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20370   echo "$as_me:$LINENO: checking for $ac_header" >&5
20371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20373   echo $ECHO_N "(cached) $ECHO_C" >&6
20374 fi
20375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20377 else
20378   # Is the header compilable?
20379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20381 cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h.  */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h.  */
20387 $ac_includes_default
20388 #include <$ac_header>
20389 _ACEOF
20390 rm -f conftest.$ac_objext
20391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20392   (eval $ac_compile) 2>conftest.er1
20393   ac_status=$?
20394   grep -v '^ *+' conftest.er1 >conftest.err
20395   rm -f conftest.er1
20396   cat conftest.err >&5
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); } &&
20399          { ac_try='test -z "$ac_c_werror_flag"
20400                          || test ! -s conftest.err'
20401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402   (eval $ac_try) 2>&5
20403   ac_status=$?
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); }; } &&
20406          { ac_try='test -s conftest.$ac_objext'
20407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408   (eval $ac_try) 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; }; then
20412   ac_header_compiler=yes
20413 else
20414   echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20416
20417 ac_header_compiler=no
20418 fi
20419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20421 echo "${ECHO_T}$ac_header_compiler" >&6
20422
20423 # Is the header present?
20424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
20433 _ACEOF
20434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20435   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20436   ac_status=$?
20437   grep -v '^ *+' conftest.er1 >conftest.err
20438   rm -f conftest.er1
20439   cat conftest.err >&5
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); } >/dev/null; then
20442   if test -s conftest.err; then
20443     ac_cpp_err=$ac_c_preproc_warn_flag
20444     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20445   else
20446     ac_cpp_err=
20447   fi
20448 else
20449   ac_cpp_err=yes
20450 fi
20451 if test -z "$ac_cpp_err"; then
20452   ac_header_preproc=yes
20453 else
20454   echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20456
20457   ac_header_preproc=no
20458 fi
20459 rm -f conftest.err conftest.$ac_ext
20460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20461 echo "${ECHO_T}$ac_header_preproc" >&6
20462
20463 # So?  What about this header?
20464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20465   yes:no: )
20466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20470     ac_header_preproc=yes
20471     ;;
20472   no:yes:* )
20473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20485     (
20486       cat <<\_ASBOX
20487 ## ------------------------------------------ ##
20488 ## Report this to the AC_PACKAGE_NAME lists.  ##
20489 ## ------------------------------------------ ##
20490 _ASBOX
20491     ) |
20492       sed "s/^/$as_me: WARNING:     /" >&2
20493     ;;
20494 esac
20495 echo "$as_me:$LINENO: checking for $ac_header" >&5
20496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20498   echo $ECHO_N "(cached) $ECHO_C" >&6
20499 else
20500   eval "$as_ac_Header=\$ac_header_preproc"
20501 fi
20502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20504
20505 fi
20506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20507   cat >>confdefs.h <<_ACEOF
20508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20509 _ACEOF
20510
20511 fi
20512
20513 done
20514
20515
20516
20517
20518
20519
20520
20521 for ac_header in fcntl.h locale.h stdint.h inttypes.h unistd.h getopt.h
20522 do
20523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20525   echo "$as_me:$LINENO: checking for $ac_header" >&5
20526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20528   echo $ECHO_N "(cached) $ECHO_C" >&6
20529 fi
20530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20532 else
20533   # Is the header compilable?
20534 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20536 cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542 $ac_includes_default
20543 #include <$ac_header>
20544 _ACEOF
20545 rm -f conftest.$ac_objext
20546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20547   (eval $ac_compile) 2>conftest.er1
20548   ac_status=$?
20549   grep -v '^ *+' conftest.er1 >conftest.err
20550   rm -f conftest.er1
20551   cat conftest.err >&5
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); } &&
20554          { ac_try='test -z "$ac_c_werror_flag"
20555                          || test ! -s conftest.err'
20556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557   (eval $ac_try) 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); }; } &&
20561          { ac_try='test -s conftest.$ac_objext'
20562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563   (eval $ac_try) 2>&5
20564   ac_status=$?
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); }; }; then
20567   ac_header_compiler=yes
20568 else
20569   echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20571
20572 ac_header_compiler=no
20573 fi
20574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20576 echo "${ECHO_T}$ac_header_compiler" >&6
20577
20578 # Is the header present?
20579 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20581 cat >conftest.$ac_ext <<_ACEOF
20582 /* confdefs.h.  */
20583 _ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h.  */
20587 #include <$ac_header>
20588 _ACEOF
20589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20591   ac_status=$?
20592   grep -v '^ *+' conftest.er1 >conftest.err
20593   rm -f conftest.er1
20594   cat conftest.err >&5
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); } >/dev/null; then
20597   if test -s conftest.err; then
20598     ac_cpp_err=$ac_c_preproc_warn_flag
20599     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20600   else
20601     ac_cpp_err=
20602   fi
20603 else
20604   ac_cpp_err=yes
20605 fi
20606 if test -z "$ac_cpp_err"; then
20607   ac_header_preproc=yes
20608 else
20609   echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20611
20612   ac_header_preproc=no
20613 fi
20614 rm -f conftest.err conftest.$ac_ext
20615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20616 echo "${ECHO_T}$ac_header_preproc" >&6
20617
20618 # So?  What about this header?
20619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20620   yes:no: )
20621     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20625     ac_header_preproc=yes
20626     ;;
20627   no:yes:* )
20628     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20630     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20631 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20632     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20634     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20635 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20638     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20640     (
20641       cat <<\_ASBOX
20642 ## ------------------------------------------ ##
20643 ## Report this to the AC_PACKAGE_NAME lists.  ##
20644 ## ------------------------------------------ ##
20645 _ASBOX
20646     ) |
20647       sed "s/^/$as_me: WARNING:     /" >&2
20648     ;;
20649 esac
20650 echo "$as_me:$LINENO: checking for $ac_header" >&5
20651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20653   echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655   eval "$as_ac_Header=\$ac_header_preproc"
20656 fi
20657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20659
20660 fi
20661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20662   cat >>confdefs.h <<_ACEOF
20663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20664 _ACEOF
20665
20666 fi
20667
20668 done
20669
20670
20671
20672
20673
20674 for ac_header in utime.h wchar.h wctype.h limits.h
20675 do
20676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20678   echo "$as_me:$LINENO: checking for $ac_header" >&5
20679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20681   echo $ECHO_N "(cached) $ECHO_C" >&6
20682 fi
20683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20685 else
20686   # Is the header compilable?
20687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20689 cat >conftest.$ac_ext <<_ACEOF
20690 /* confdefs.h.  */
20691 _ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h.  */
20695 $ac_includes_default
20696 #include <$ac_header>
20697 _ACEOF
20698 rm -f conftest.$ac_objext
20699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700   (eval $ac_compile) 2>conftest.er1
20701   ac_status=$?
20702   grep -v '^ *+' conftest.er1 >conftest.err
20703   rm -f conftest.er1
20704   cat conftest.err >&5
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); } &&
20707          { ac_try='test -z "$ac_c_werror_flag"
20708                          || test ! -s conftest.err'
20709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710   (eval $ac_try) 2>&5
20711   ac_status=$?
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); }; } &&
20714          { ac_try='test -s conftest.$ac_objext'
20715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716   (eval $ac_try) 2>&5
20717   ac_status=$?
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); }; }; then
20720   ac_header_compiler=yes
20721 else
20722   echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725 ac_header_compiler=no
20726 fi
20727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20729 echo "${ECHO_T}$ac_header_compiler" >&6
20730
20731 # Is the header present?
20732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20734 cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h.  */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h.  */
20740 #include <$ac_header>
20741 _ACEOF
20742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20743   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20744   ac_status=$?
20745   grep -v '^ *+' conftest.er1 >conftest.err
20746   rm -f conftest.er1
20747   cat conftest.err >&5
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); } >/dev/null; then
20750   if test -s conftest.err; then
20751     ac_cpp_err=$ac_c_preproc_warn_flag
20752     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20753   else
20754     ac_cpp_err=
20755   fi
20756 else
20757   ac_cpp_err=yes
20758 fi
20759 if test -z "$ac_cpp_err"; then
20760   ac_header_preproc=yes
20761 else
20762   echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765   ac_header_preproc=no
20766 fi
20767 rm -f conftest.err conftest.$ac_ext
20768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20769 echo "${ECHO_T}$ac_header_preproc" >&6
20770
20771 # So?  What about this header?
20772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20773   yes:no: )
20774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20778     ac_header_preproc=yes
20779     ;;
20780   no:yes:* )
20781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20793     (
20794       cat <<\_ASBOX
20795 ## ------------------------------------------ ##
20796 ## Report this to the AC_PACKAGE_NAME lists.  ##
20797 ## ------------------------------------------ ##
20798 _ASBOX
20799     ) |
20800       sed "s/^/$as_me: WARNING:     /" >&2
20801     ;;
20802 esac
20803 echo "$as_me:$LINENO: checking for $ac_header" >&5
20804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20806   echo $ECHO_N "(cached) $ECHO_C" >&6
20807 else
20808   eval "$as_ac_Header=\$ac_header_preproc"
20809 fi
20810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20812
20813 fi
20814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20815   cat >>confdefs.h <<_ACEOF
20816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20817 _ACEOF
20818
20819 fi
20820
20821 done
20822
20823
20824
20825
20826
20827
20828 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
20829 do
20830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20832   echo "$as_me:$LINENO: checking for $ac_header" >&5
20833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20835   echo $ECHO_N "(cached) $ECHO_C" >&6
20836 fi
20837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20839 else
20840   # Is the header compilable?
20841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20843 cat >conftest.$ac_ext <<_ACEOF
20844 /* confdefs.h.  */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h.  */
20849 $ac_includes_default
20850 #include <$ac_header>
20851 _ACEOF
20852 rm -f conftest.$ac_objext
20853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20854   (eval $ac_compile) 2>conftest.er1
20855   ac_status=$?
20856   grep -v '^ *+' conftest.er1 >conftest.err
20857   rm -f conftest.er1
20858   cat conftest.err >&5
20859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860   (exit $ac_status); } &&
20861          { ac_try='test -z "$ac_c_werror_flag"
20862                          || test ! -s conftest.err'
20863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864   (eval $ac_try) 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); }; } &&
20868          { ac_try='test -s conftest.$ac_objext'
20869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870   (eval $ac_try) 2>&5
20871   ac_status=$?
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); }; }; then
20874   ac_header_compiler=yes
20875 else
20876   echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879 ac_header_compiler=no
20880 fi
20881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20883 echo "${ECHO_T}$ac_header_compiler" >&6
20884
20885 # Is the header present?
20886 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20888 cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h.  */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h.  */
20894 #include <$ac_header>
20895 _ACEOF
20896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20898   ac_status=$?
20899   grep -v '^ *+' conftest.er1 >conftest.err
20900   rm -f conftest.er1
20901   cat conftest.err >&5
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); } >/dev/null; then
20904   if test -s conftest.err; then
20905     ac_cpp_err=$ac_c_preproc_warn_flag
20906     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20907   else
20908     ac_cpp_err=
20909   fi
20910 else
20911   ac_cpp_err=yes
20912 fi
20913 if test -z "$ac_cpp_err"; then
20914   ac_header_preproc=yes
20915 else
20916   echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919   ac_header_preproc=no
20920 fi
20921 rm -f conftest.err conftest.$ac_ext
20922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20923 echo "${ECHO_T}$ac_header_preproc" >&6
20924
20925 # So?  What about this header?
20926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20927   yes:no: )
20928     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20932     ac_header_preproc=yes
20933     ;;
20934   no:yes:* )
20935     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20937     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20938 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20939     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20941     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20942 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20943     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20945     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20947     (
20948       cat <<\_ASBOX
20949 ## ------------------------------------------ ##
20950 ## Report this to the AC_PACKAGE_NAME lists.  ##
20951 ## ------------------------------------------ ##
20952 _ASBOX
20953     ) |
20954       sed "s/^/$as_me: WARNING:     /" >&2
20955     ;;
20956 esac
20957 echo "$as_me:$LINENO: checking for $ac_header" >&5
20958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20960   echo $ECHO_N "(cached) $ECHO_C" >&6
20961 else
20962   eval "$as_ac_Header=\$ac_header_preproc"
20963 fi
20964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20966
20967 fi
20968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20969   cat >>confdefs.h <<_ACEOF
20970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20971 _ACEOF
20972
20973 fi
20974
20975 done
20976
20977
20978 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20979 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20980 if test "${ac_cv_c_const+set}" = set; then
20981   echo $ECHO_N "(cached) $ECHO_C" >&6
20982 else
20983   cat >conftest.$ac_ext <<_ACEOF
20984 /* confdefs.h.  */
20985 _ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h.  */
20989
20990 int
20991 main ()
20992 {
20993 /* FIXME: Include the comments suggested by Paul. */
20994 #ifndef __cplusplus
20995   /* Ultrix mips cc rejects this.  */
20996   typedef int charset[2];
20997   const charset x;
20998   /* SunOS 4.1.1 cc rejects this.  */
20999   char const *const *ccp;
21000   char **p;
21001   /* NEC SVR4.0.2 mips cc rejects this.  */
21002   struct point {int x, y;};
21003   static struct point const zero = {0,0};
21004   /* AIX XL C 1.02.0.0 rejects this.
21005      It does not let you subtract one const X* pointer from another in
21006      an arm of an if-expression whose if-part is not a constant
21007      expression */
21008   const char *g = "string";
21009   ccp = &g + (g ? g-g : 0);
21010   /* HPUX 7.0 cc rejects these. */
21011   ++ccp;
21012   p = (char**) ccp;
21013   ccp = (char const *const *) p;
21014   { /* SCO 3.2v4 cc rejects this.  */
21015     char *t;
21016     char const *s = 0 ? (char *) 0 : (char const *) 0;
21017
21018     *t++ = 0;
21019   }
21020   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21021     int x[] = {25, 17};
21022     const int *foo = &x[0];
21023     ++foo;
21024   }
21025   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21026     typedef const int *iptr;
21027     iptr p = 0;
21028     ++p;
21029   }
21030   { /* AIX XL C 1.02.0.0 rejects this saying
21031        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21032     struct s { int j; const int *ap[3]; };
21033     struct s *b; b->j = 5;
21034   }
21035   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21036     const int foo = 10;
21037   }
21038 #endif
21039
21040   ;
21041   return 0;
21042 }
21043 _ACEOF
21044 rm -f conftest.$ac_objext
21045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21046   (eval $ac_compile) 2>conftest.er1
21047   ac_status=$?
21048   grep -v '^ *+' conftest.er1 >conftest.err
21049   rm -f conftest.er1
21050   cat conftest.err >&5
21051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052   (exit $ac_status); } &&
21053          { ac_try='test -z "$ac_c_werror_flag"
21054                          || test ! -s conftest.err'
21055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056   (eval $ac_try) 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); }; } &&
21060          { ac_try='test -s conftest.$ac_objext'
21061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062   (eval $ac_try) 2>&5
21063   ac_status=$?
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); }; }; then
21066   ac_cv_c_const=yes
21067 else
21068   echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21070
21071 ac_cv_c_const=no
21072 fi
21073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21074 fi
21075 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21076 echo "${ECHO_T}$ac_cv_c_const" >&6
21077 if test $ac_cv_c_const = no; then
21078
21079 cat >>confdefs.h <<\_ACEOF
21080 #define const
21081 _ACEOF
21082
21083 fi
21084
21085 echo "$as_me:$LINENO: checking for off_t" >&5
21086 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21087 if test "${ac_cv_type_off_t+set}" = set; then
21088   echo $ECHO_N "(cached) $ECHO_C" >&6
21089 else
21090   cat >conftest.$ac_ext <<_ACEOF
21091 /* confdefs.h.  */
21092 _ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h.  */
21096 $ac_includes_default
21097 int
21098 main ()
21099 {
21100 if ((off_t *) 0)
21101   return 0;
21102 if (sizeof (off_t))
21103   return 0;
21104   ;
21105   return 0;
21106 }
21107 _ACEOF
21108 rm -f conftest.$ac_objext
21109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21110   (eval $ac_compile) 2>conftest.er1
21111   ac_status=$?
21112   grep -v '^ *+' conftest.er1 >conftest.err
21113   rm -f conftest.er1
21114   cat conftest.err >&5
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); } &&
21117          { ac_try='test -z "$ac_c_werror_flag"
21118                          || test ! -s conftest.err'
21119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120   (eval $ac_try) 2>&5
21121   ac_status=$?
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); }; } &&
21124          { ac_try='test -s conftest.$ac_objext'
21125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126   (eval $ac_try) 2>&5
21127   ac_status=$?
21128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129   (exit $ac_status); }; }; then
21130   ac_cv_type_off_t=yes
21131 else
21132   echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21134
21135 ac_cv_type_off_t=no
21136 fi
21137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21138 fi
21139 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21140 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21141 if test $ac_cv_type_off_t = yes; then
21142   :
21143 else
21144
21145 cat >>confdefs.h <<_ACEOF
21146 #define off_t long
21147 _ACEOF
21148
21149 fi
21150
21151 echo "$as_me:$LINENO: checking for size_t" >&5
21152 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21153 if test "${ac_cv_type_size_t+set}" = set; then
21154   echo $ECHO_N "(cached) $ECHO_C" >&6
21155 else
21156   cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h.  */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h.  */
21162 $ac_includes_default
21163 int
21164 main ()
21165 {
21166 if ((size_t *) 0)
21167   return 0;
21168 if (sizeof (size_t))
21169   return 0;
21170   ;
21171   return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest.$ac_objext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176   (eval $ac_compile) 2>conftest.er1
21177   ac_status=$?
21178   grep -v '^ *+' conftest.er1 >conftest.err
21179   rm -f conftest.er1
21180   cat conftest.err >&5
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); } &&
21183          { ac_try='test -z "$ac_c_werror_flag"
21184                          || test ! -s conftest.err'
21185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186   (eval $ac_try) 2>&5
21187   ac_status=$?
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); }; } &&
21190          { ac_try='test -s conftest.$ac_objext'
21191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192   (eval $ac_try) 2>&5
21193   ac_status=$?
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); }; }; then
21196   ac_cv_type_size_t=yes
21197 else
21198   echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21200
21201 ac_cv_type_size_t=no
21202 fi
21203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21204 fi
21205 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21206 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21207 if test $ac_cv_type_size_t = yes; then
21208   :
21209 else
21210
21211 cat >>confdefs.h <<_ACEOF
21212 #define size_t unsigned
21213 _ACEOF
21214
21215 fi
21216
21217
21218 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21219 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
21220 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21221   echo $ECHO_N "(cached) $ECHO_C" >&6
21222 else
21223   cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h.  */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h.  */
21229 $ac_includes_default
21230 int
21231 main ()
21232 {
21233 static struct stat ac_aggr;
21234 if (ac_aggr.st_rdev)
21235 return 0;
21236   ;
21237   return 0;
21238 }
21239 _ACEOF
21240 rm -f conftest.$ac_objext
21241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21242   (eval $ac_compile) 2>conftest.er1
21243   ac_status=$?
21244   grep -v '^ *+' conftest.er1 >conftest.err
21245   rm -f conftest.er1
21246   cat conftest.err >&5
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); } &&
21249          { ac_try='test -z "$ac_c_werror_flag"
21250                          || test ! -s conftest.err'
21251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252   (eval $ac_try) 2>&5
21253   ac_status=$?
21254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255   (exit $ac_status); }; } &&
21256          { ac_try='test -s conftest.$ac_objext'
21257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258   (eval $ac_try) 2>&5
21259   ac_status=$?
21260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261   (exit $ac_status); }; }; then
21262   ac_cv_member_struct_stat_st_rdev=yes
21263 else
21264   echo "$as_me: failed program was:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21266
21267 cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h.  */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h.  */
21273 $ac_includes_default
21274 int
21275 main ()
21276 {
21277 static struct stat ac_aggr;
21278 if (sizeof ac_aggr.st_rdev)
21279 return 0;
21280   ;
21281   return 0;
21282 }
21283 _ACEOF
21284 rm -f conftest.$ac_objext
21285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21286   (eval $ac_compile) 2>conftest.er1
21287   ac_status=$?
21288   grep -v '^ *+' conftest.er1 >conftest.err
21289   rm -f conftest.er1
21290   cat conftest.err >&5
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); } &&
21293          { ac_try='test -z "$ac_c_werror_flag"
21294                          || test ! -s conftest.err'
21295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296   (eval $ac_try) 2>&5
21297   ac_status=$?
21298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299   (exit $ac_status); }; } &&
21300          { ac_try='test -s conftest.$ac_objext'
21301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302   (eval $ac_try) 2>&5
21303   ac_status=$?
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); }; }; then
21306   ac_cv_member_struct_stat_st_rdev=yes
21307 else
21308   echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21310
21311 ac_cv_member_struct_stat_st_rdev=no
21312 fi
21313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21314 fi
21315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21316 fi
21317 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21318 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
21319 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21320
21321 cat >>confdefs.h <<_ACEOF
21322 #define HAVE_STRUCT_STAT_ST_RDEV 1
21323 _ACEOF
21324
21325
21326 cat >>confdefs.h <<\_ACEOF
21327 #define HAVE_ST_RDEV 1
21328 _ACEOF
21329
21330 fi
21331
21332
21333 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21334 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21335 if test "${ac_cv_struct_tm+set}" = set; then
21336   echo $ECHO_N "(cached) $ECHO_C" >&6
21337 else
21338   cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h.  */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h.  */
21344 #include <sys/types.h>
21345 #include <time.h>
21346
21347 int
21348 main ()
21349 {
21350 struct tm *tp; tp->tm_sec;
21351   ;
21352   return 0;
21353 }
21354 _ACEOF
21355 rm -f conftest.$ac_objext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21357   (eval $ac_compile) 2>conftest.er1
21358   ac_status=$?
21359   grep -v '^ *+' conftest.er1 >conftest.err
21360   rm -f conftest.er1
21361   cat conftest.err >&5
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); } &&
21364          { ac_try='test -z "$ac_c_werror_flag"
21365                          || test ! -s conftest.err'
21366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367   (eval $ac_try) 2>&5
21368   ac_status=$?
21369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370   (exit $ac_status); }; } &&
21371          { ac_try='test -s conftest.$ac_objext'
21372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373   (eval $ac_try) 2>&5
21374   ac_status=$?
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); }; }; then
21377   ac_cv_struct_tm=time.h
21378 else
21379   echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382 ac_cv_struct_tm=sys/time.h
21383 fi
21384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21385 fi
21386 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21387 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21388 if test $ac_cv_struct_tm = sys/time.h; then
21389
21390 cat >>confdefs.h <<\_ACEOF
21391 #define TM_IN_SYS_TIME 1
21392 _ACEOF
21393
21394 fi
21395
21396 echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
21397 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
21398 if test "${ac_cv_struct_tm_zone+set}" = set; then
21399   echo $ECHO_N "(cached) $ECHO_C" >&6
21400 else
21401   cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h.  */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h.  */
21407 #include <sys/types.h>
21408 #include <$ac_cv_struct_tm>
21409 int
21410 main ()
21411 {
21412 struct tm tm; tm.tm_zone;
21413   ;
21414   return 0;
21415 }
21416 _ACEOF
21417 rm -f conftest.$ac_objext
21418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21419   (eval $ac_compile) 2>conftest.er1
21420   ac_status=$?
21421   grep -v '^ *+' conftest.er1 >conftest.err
21422   rm -f conftest.er1
21423   cat conftest.err >&5
21424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425   (exit $ac_status); } &&
21426          { ac_try='test -z "$ac_c_werror_flag"
21427                          || test ! -s conftest.err'
21428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429   (eval $ac_try) 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); }; } &&
21433          { ac_try='test -s conftest.$ac_objext'
21434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435   (eval $ac_try) 2>&5
21436   ac_status=$?
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); }; }; then
21439   ac_cv_struct_tm_zone=yes
21440 else
21441   echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21443
21444 ac_cv_struct_tm_zone=no
21445 fi
21446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21447 fi
21448 echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
21449 echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6
21450 if test "$ac_cv_struct_tm_zone" = yes; then
21451
21452 cat >>confdefs.h <<\_ACEOF
21453 #define HAVE_TM_ZONE 1
21454 _ACEOF
21455
21456 fi
21457 echo "$as_me:$LINENO: checking for tzname" >&5
21458 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21459 if test "${ac_cv_var_tzname+set}" = set; then
21460   echo $ECHO_N "(cached) $ECHO_C" >&6
21461 else
21462   cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h.  */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h.  */
21468 #include <time.h>
21469 #ifndef tzname /* For SGI.  */
21470 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
21471 #endif
21472 int
21473 main ()
21474 {
21475 atoi(*tzname);
21476   ;
21477   return 0;
21478 }
21479 _ACEOF
21480 rm -f conftest.$ac_objext conftest$ac_exeext
21481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21482   (eval $ac_link) 2>conftest.er1
21483   ac_status=$?
21484   grep -v '^ *+' conftest.er1 >conftest.err
21485   rm -f conftest.er1
21486   cat conftest.err >&5
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); } &&
21489          { ac_try='test -z "$ac_c_werror_flag"
21490                          || test ! -s conftest.err'
21491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492   (eval $ac_try) 2>&5
21493   ac_status=$?
21494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495   (exit $ac_status); }; } &&
21496          { ac_try='test -s conftest$ac_exeext'
21497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498   (eval $ac_try) 2>&5
21499   ac_status=$?
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); }; }; then
21502   ac_cv_var_tzname=yes
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 ac_cv_var_tzname=no
21508 fi
21509 rm -f conftest.err conftest.$ac_objext \
21510       conftest$ac_exeext conftest.$ac_ext
21511 fi
21512 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21513 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21514   if test $ac_cv_var_tzname = yes; then
21515
21516 cat >>confdefs.h <<\_ACEOF
21517 #define HAVE_TZNAME 1
21518 _ACEOF
21519
21520   fi
21521
21522 echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
21523 echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6
21524 if test "${ac_cv_struct_tm_isdst+set}" = set; then
21525   echo $ECHO_N "(cached) $ECHO_C" >&6
21526 else
21527   cat >conftest.$ac_ext <<_ACEOF
21528 /* confdefs.h.  */
21529 _ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h.  */
21533 #include <sys/types.h>
21534 #include <$ac_cv_struct_tm>
21535 int
21536 main ()
21537 {
21538 struct tm tm; tm.tm_isdst;
21539   ;
21540   return 0;
21541 }
21542 _ACEOF
21543 rm -f conftest.$ac_objext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21545   (eval $ac_compile) 2>conftest.er1
21546   ac_status=$?
21547   grep -v '^ *+' conftest.er1 >conftest.err
21548   rm -f conftest.er1
21549   cat conftest.err >&5
21550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); } &&
21552          { ac_try='test -z "$ac_c_werror_flag"
21553                          || test ! -s conftest.err'
21554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555   (eval $ac_try) 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); }; } &&
21559          { ac_try='test -s conftest.$ac_objext'
21560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561   (eval $ac_try) 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); }; }; then
21565   ac_cv_struct_tm_isdst=yes
21566 else
21567   echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 ac_cv_struct_tm_isdst=no
21571 fi
21572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21573 fi
21574 echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
21575 echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6
21576 if test "$ac_cv_struct_tm_isdst" = yes; then
21577   cat >>confdefs.h <<\_ACEOF
21578 #define HAVE_TM_ISDST 1
21579 _ACEOF
21580
21581 fi
21582 echo "$as_me:$LINENO: checking for daylight" >&5
21583 echo $ECHO_N "checking for daylight... $ECHO_C" >&6
21584 if test "${ac_cv_var_daylight+set}" = set; then
21585   echo $ECHO_N "(cached) $ECHO_C" >&6
21586 else
21587   cat >conftest.$ac_ext <<_ACEOF
21588 /* confdefs.h.  */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h.  */
21593 #include <time.h>
21594 #ifndef daylight /* In case IRIX #defines this, too  */
21595 extern int daylight;
21596 #endif
21597 int
21598 main ()
21599 {
21600 atoi(daylight);
21601   ;
21602   return 0;
21603 }
21604 _ACEOF
21605 rm -f conftest.$ac_objext conftest$ac_exeext
21606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21607   (eval $ac_link) 2>conftest.er1
21608   ac_status=$?
21609   grep -v '^ *+' conftest.er1 >conftest.err
21610   rm -f conftest.er1
21611   cat conftest.err >&5
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); } &&
21614          { ac_try='test -z "$ac_c_werror_flag"
21615                          || test ! -s conftest.err'
21616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617   (eval $ac_try) 2>&5
21618   ac_status=$?
21619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620   (exit $ac_status); }; } &&
21621          { ac_try='test -s conftest$ac_exeext'
21622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623   (eval $ac_try) 2>&5
21624   ac_status=$?
21625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); }; }; then
21627   ac_cv_var_daylight=yes
21628 else
21629   echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21631
21632 ac_cv_var_daylight=no
21633 fi
21634 rm -f conftest.err conftest.$ac_objext \
21635       conftest$ac_exeext conftest.$ac_ext
21636 fi
21637 echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
21638 echo "${ECHO_T}$ac_cv_var_daylight" >&6
21639   if test $ac_cv_var_daylight = yes; then
21640     cat >>confdefs.h <<\_ACEOF
21641 #define HAVE_DAYLIGHT 1
21642 _ACEOF
21643
21644   fi
21645
21646
21647    # Check whether --enable-largefile or --disable-largefile was given.
21648 if test "${enable_largefile+set}" = set; then
21649   enableval="$enable_largefile"
21650
21651 fi;
21652    if test "$enable_largefile" != no; then
21653
21654      echo "$as_me:$LINENO: checking for special C compiler options needed for large files=
21655 " >&5
21656 echo $ECHO_N "checking for special C compiler options needed for large files=
21657 ... $ECHO_C" >&6
21658 if test "${ac_cv_sys_largefile_CC+set}" = set; then
21659   echo $ECHO_N "(cached) $ECHO_C" >&6
21660 else
21661   ac_cv_sys_largefile_CC=no
21662         if test "$GCC" != yes; then
21663           # IRIX 6.2 and later do not support large files by default,
21664           # so use the C compiler's -n32 option if that helps.
21665           cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h.  */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h.  */
21671 #include <sys/types.h>
21672     /* Check that off_t can represent 2**63 - 1 correctly.
21673        We can't simply "#define LARGE_OFF_T 9223372036854775807",
21674        since some C++ compilers masquerading as C compilers
21675        incorrectly reject 9223372036854775807.  */
21676 #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21677     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21678                         && LARGE_OFF_T % 2147483647 == 1)
21679                        ? 1 : -1];
21680
21681 int
21682 main ()
21683 {
21684
21685   ;
21686   return 0;
21687 }
21688 _ACEOF
21689 rm -f conftest.$ac_objext
21690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21691   (eval $ac_compile) 2>conftest.er1
21692   ac_status=$?
21693   grep -v '^ *+' conftest.er1 >conftest.err
21694   rm -f conftest.er1
21695   cat conftest.err >&5
21696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697   (exit $ac_status); } &&
21698          { ac_try='test -z "$ac_c_werror_flag"
21699                          || test ! -s conftest.err'
21700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701   (eval $ac_try) 2>&5
21702   ac_status=$?
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); }; } &&
21705          { ac_try='test -s conftest.$ac_objext'
21706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21707   (eval $ac_try) 2>&5
21708   ac_status=$?
21709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710   (exit $ac_status); }; }; then
21711   :
21712 else
21713   echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21715
21716 ac_save_CC="$CC"
21717              CC="$CC -n32"
21718              cat >conftest.$ac_ext <<_ACEOF
21719 /* confdefs.h.  */
21720 _ACEOF
21721 cat confdefs.h >>conftest.$ac_ext
21722 cat >>conftest.$ac_ext <<_ACEOF
21723 /* end confdefs.h.  */
21724 #include <sys/types.h>
21725     /* Check that off_t can represent 2**63 - 1 correctly.
21726        We can't simply "#define LARGE_OFF_T 9223372036854775807",
21727        since some C++ compilers masquerading as C compilers
21728        incorrectly reject 9223372036854775807.  */
21729 #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21730     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21731                         && LARGE_OFF_T % 2147483647 == 1)
21732                        ? 1 : -1];
21733
21734 int
21735 main ()
21736 {
21737
21738   ;
21739   return 0;
21740 }
21741 _ACEOF
21742 rm -f conftest.$ac_objext
21743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21744   (eval $ac_compile) 2>conftest.er1
21745   ac_status=$?
21746   grep -v '^ *+' conftest.er1 >conftest.err
21747   rm -f conftest.er1
21748   cat conftest.err >&5
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } &&
21751          { ac_try='test -z "$ac_c_werror_flag"
21752                          || test ! -s conftest.err'
21753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754   (eval $ac_try) 2>&5
21755   ac_status=$?
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); }; } &&
21758          { ac_try='test -s conftest.$ac_objext'
21759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760   (eval $ac_try) 2>&5
21761   ac_status=$?
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); }; }; then
21764   ac_cv_sys_largefile_CC=' -n32'
21765 else
21766   echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769 fi
21770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21771              CC="$ac_save_CC"
21772 fi
21773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21774         fi
21775 fi
21776 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21777 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21778      if test "$ac_cv_sys_largefile_CC" != no; then
21779        CC="$CC$ac_cv_sys_largefile_CC"
21780      fi
21781
21782      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21783 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21784 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21785   echo $ECHO_N "(cached) $ECHO_C" >&6
21786 else
21787   ac_cv_sys_file_offset_bits=no
21788       cat >conftest.$ac_ext <<_ACEOF
21789 /* confdefs.h.  */
21790 _ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h.  */
21794 #include <sys/types.h>
21795     /* Check that off_t can represent 2**63 - 1 correctly.
21796        We can't simply "#define LARGE_OFF_T 9223372036854775807",
21797        since some C++ compilers masquerading as C compilers
21798        incorrectly reject 9223372036854775807.  */
21799 #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21800     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21801                         && LARGE_OFF_T % 2147483647 == 1)
21802                        ? 1 : -1];
21803
21804 int
21805 main ()
21806 {
21807
21808   ;
21809   return 0;
21810 }
21811 _ACEOF
21812 rm -f conftest.$ac_objext
21813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21814   (eval $ac_compile) 2>conftest.er1
21815   ac_status=$?
21816   grep -v '^ *+' conftest.er1 >conftest.err
21817   rm -f conftest.er1
21818   cat conftest.err >&5
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); } &&
21821          { ac_try='test -z "$ac_c_werror_flag"
21822                          || test ! -s conftest.err'
21823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824   (eval $ac_try) 2>&5
21825   ac_status=$?
21826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827   (exit $ac_status); }; } &&
21828          { ac_try='test -s conftest.$ac_objext'
21829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830   (eval $ac_try) 2>&5
21831   ac_status=$?
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); }; }; then
21834   :
21835 else
21836   echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21838
21839 cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845 #define _FILE_OFFSET_BITS 64
21846 #include <sys/types.h>
21847     /* Check that off_t can represent 2**63 - 1 correctly.
21848        We can't simply "#define LARGE_OFF_T 9223372036854775807",
21849        since some C++ compilers masquerading as C compilers
21850        incorrectly reject 9223372036854775807.  */
21851 #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21852     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21853                         && LARGE_OFF_T % 2147483647 == 1)
21854                        ? 1 : -1];
21855
21856
21857 int
21858 main ()
21859 {
21860
21861   ;
21862   return 0;
21863 }
21864 _ACEOF
21865 rm -f conftest.$ac_objext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21867   (eval $ac_compile) 2>conftest.er1
21868   ac_status=$?
21869   grep -v '^ *+' conftest.er1 >conftest.err
21870   rm -f conftest.er1
21871   cat conftest.err >&5
21872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873   (exit $ac_status); } &&
21874          { ac_try='test -z "$ac_c_werror_flag"
21875                          || test ! -s conftest.err'
21876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877   (eval $ac_try) 2>&5
21878   ac_status=$?
21879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); }; } &&
21881          { ac_try='test -s conftest.$ac_objext'
21882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883   (eval $ac_try) 2>&5
21884   ac_status=$?
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); }; }; then
21887   ac_cv_sys_file_offset_bits=64
21888 else
21889   echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21891
21892 fi
21893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21894 fi
21895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21896 fi
21897 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21898 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21899    if test "$ac_cv_sys_file_offset_bits" != no; then
21900
21901 cat >>confdefs.h <<_ACEOF
21902 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21903 _ACEOF
21904
21905    fi
21906      echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21907 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21908 if test "${ac_cv_sys_large_files+set}" = set; then
21909   echo $ECHO_N "(cached) $ECHO_C" >&6
21910 else
21911   ac_cv_sys_large_files=no
21912       cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h.  */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h.  */
21918 #include <sys/types.h>
21919     /* Check that off_t can represent 2**63 - 1 correctly.
21920        We can't simply "#define LARGE_OFF_T 9223372036854775807",
21921        since some C++ compilers masquerading as C compilers
21922        incorrectly reject 9223372036854775807.  */
21923 #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21924     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21925                         && LARGE_OFF_T % 2147483647 == 1)
21926                        ? 1 : -1];
21927
21928 int
21929 main ()
21930 {
21931
21932   ;
21933   return 0;
21934 }
21935 _ACEOF
21936 rm -f conftest.$ac_objext
21937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21938   (eval $ac_compile) 2>conftest.er1
21939   ac_status=$?
21940   grep -v '^ *+' conftest.er1 >conftest.err
21941   rm -f conftest.er1
21942   cat conftest.err >&5
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); } &&
21945          { ac_try='test -z "$ac_c_werror_flag"
21946                          || test ! -s conftest.err'
21947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948   (eval $ac_try) 2>&5
21949   ac_status=$?
21950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951   (exit $ac_status); }; } &&
21952          { ac_try='test -s conftest.$ac_objext'
21953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954   (eval $ac_try) 2>&5
21955   ac_status=$?
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); }; }; then
21958   :
21959 else
21960   echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21962
21963 cat >conftest.$ac_ext <<_ACEOF
21964 /* confdefs.h.  */
21965 _ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h.  */
21969 #define _LARGE_FILES 1
21970 #include <sys/types.h>
21971     /* Check that off_t can represent 2**63 - 1 correctly.
21972        We can't simply "#define LARGE_OFF_T 9223372036854775807",
21973        since some C++ compilers masquerading as C compilers
21974        incorrectly reject 9223372036854775807.  */
21975 #   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21976     int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21977                         && LARGE_OFF_T % 2147483647 == 1)
21978                        ? 1 : -1];
21979
21980
21981 int
21982 main ()
21983 {
21984
21985   ;
21986   return 0;
21987 }
21988 _ACEOF
21989 rm -f conftest.$ac_objext
21990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21991   (eval $ac_compile) 2>conftest.er1
21992   ac_status=$?
21993   grep -v '^ *+' conftest.er1 >conftest.err
21994   rm -f conftest.er1
21995   cat conftest.err >&5
21996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997   (exit $ac_status); } &&
21998          { ac_try='test -z "$ac_c_werror_flag"
21999                          || test ! -s conftest.err'
22000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001   (eval $ac_try) 2>&5
22002   ac_status=$?
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); }; } &&
22005          { ac_try='test -s conftest.$ac_objext'
22006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007   (eval $ac_try) 2>&5
22008   ac_status=$?
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); }; }; then
22011   ac_cv_sys_large_files=1
22012 else
22013   echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22015
22016 fi
22017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22018 fi
22019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22020 fi
22021 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22022 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22023    if test "$ac_cv_sys_large_files" != no; then
22024
22025 cat >>confdefs.h <<_ACEOF
22026 #define _LARGE_FILES $ac_cv_sys_large_files
22027 _ACEOF
22028
22029    fi
22030    fi
22031
22032 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22033 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22034 if test "${ac_cv_type_mbstate_t+set}" = set; then
22035   echo $ECHO_N "(cached) $ECHO_C" >&6
22036 else
22037   cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h.  */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h.  */
22043 $ac_includes_default
22044 #           include <wchar.h>
22045 int
22046 main ()
22047 {
22048 mbstate_t x; return sizeof x;
22049   ;
22050   return 0;
22051 }
22052 _ACEOF
22053 rm -f conftest.$ac_objext
22054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22055   (eval $ac_compile) 2>conftest.er1
22056   ac_status=$?
22057   grep -v '^ *+' conftest.er1 >conftest.err
22058   rm -f conftest.er1
22059   cat conftest.err >&5
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); } &&
22062          { ac_try='test -z "$ac_c_werror_flag"
22063                          || test ! -s conftest.err'
22064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22065   (eval $ac_try) 2>&5
22066   ac_status=$?
22067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068   (exit $ac_status); }; } &&
22069          { ac_try='test -s conftest.$ac_objext'
22070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071   (eval $ac_try) 2>&5
22072   ac_status=$?
22073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); }; }; then
22075   ac_cv_type_mbstate_t=yes
22076 else
22077   echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22079
22080 ac_cv_type_mbstate_t=no
22081 fi
22082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22083 fi
22084 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22085 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22086    if test $ac_cv_type_mbstate_t = yes; then
22087
22088 cat >>confdefs.h <<\_ACEOF
22089 #define HAVE_MBSTATE_T 1
22090 _ACEOF
22091
22092    else
22093
22094 cat >>confdefs.h <<\_ACEOF
22095 #define mbstate_t int
22096 _ACEOF
22097
22098    fi
22099
22100 echo "$as_me:$LINENO: checking for uint8_t" >&5
22101 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22102 if test "${ac_cv_type_uint8_t+set}" = set; then
22103   echo $ECHO_N "(cached) $ECHO_C" >&6
22104 else
22105   cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h.  */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h.  */
22111 #if HAVE_STDINT_H
22112 #include <stdint.h>
22113 #endif
22114 #include <sys/types.h>
22115 #if STDC_HEADERS
22116 #include <stdlib.h>
22117 #include <stddef.h>
22118 #endif
22119 _ACEOF
22120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22121   $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22122   ac_cv_type_uint8_t=yes
22123 else
22124   ac_cv_type_uint8_t=no
22125 fi
22126 rm -f conftest*
22127
22128 fi
22129 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22130 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22131 if test $ac_cv_type_uint8_t = no; then
22132   cat >>confdefs.h <<\_ACEOF
22133 #define uint8_t unsigned char
22134 _ACEOF
22135
22136 fi
22137
22138 echo "$as_me:$LINENO: checking for uint16_t" >&5
22139 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22140 if test "${ac_cv_type_uint16_t+set}" = set; then
22141   echo $ECHO_N "(cached) $ECHO_C" >&6
22142 else
22143   cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h.  */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h.  */
22149 #if HAVE_STDINT_H
22150 #include <stdint.h>
22151 #endif
22152 #include <sys/types.h>
22153 #if STDC_HEADERS
22154 #include <stdlib.h>
22155 #include <stddef.h>
22156 #endif
22157 _ACEOF
22158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22159   $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22160   ac_cv_type_uint16_t=yes
22161 else
22162   ac_cv_type_uint16_t=no
22163 fi
22164 rm -f conftest*
22165
22166 fi
22167 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22168 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22169 if test $ac_cv_type_uint16_t = no; then
22170   cat >>confdefs.h <<\_ACEOF
22171 #define uint16_t unsigned short
22172 _ACEOF
22173
22174 fi
22175
22176 echo "$as_me:$LINENO: checking for uint32_t" >&5
22177 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22178 if test "${ac_cv_type_uint32_t+set}" = set; then
22179   echo $ECHO_N "(cached) $ECHO_C" >&6
22180 else
22181   cat >conftest.$ac_ext <<_ACEOF
22182 /* confdefs.h.  */
22183 _ACEOF
22184 cat confdefs.h >>conftest.$ac_ext
22185 cat >>conftest.$ac_ext <<_ACEOF
22186 /* end confdefs.h.  */
22187 #if HAVE_STDINT_H
22188 #include <stdint.h>
22189 #endif
22190 #include <sys/types.h>
22191 #if STDC_HEADERS
22192 #include <stdlib.h>
22193 #include <stddef.h>
22194 #endif
22195 _ACEOF
22196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22197   $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22198   ac_cv_type_uint32_t=yes
22199 else
22200   ac_cv_type_uint32_t=no
22201 fi
22202 rm -f conftest*
22203
22204 fi
22205 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22206 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22207 if test $ac_cv_type_uint32_t = no; then
22208   cat >>confdefs.h <<\_ACEOF
22209 #define uint32_t unsigned int
22210 _ACEOF
22211
22212 fi
22213
22214 echo "$as_me:$LINENO: checking for int32_t" >&5
22215 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
22216 if test "${ac_cv_type_int32_t+set}" = set; then
22217   echo $ECHO_N "(cached) $ECHO_C" >&6
22218 else
22219   cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h.  */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h.  */
22225 #if HAVE_STDINT_H
22226 #include <stdint.h>
22227 #endif
22228 #include <sys/types.h>
22229 #if STDC_HEADERS
22230 #include <stdlib.h>
22231 #include <stddef.h>
22232 #endif
22233 _ACEOF
22234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22235   $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22236   ac_cv_type_int32_t=yes
22237 else
22238   ac_cv_type_int32_t=no
22239 fi
22240 rm -f conftest*
22241
22242 fi
22243 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
22244 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
22245 if test $ac_cv_type_int32_t = no; then
22246   cat >>confdefs.h <<\_ACEOF
22247 #define int32_t int
22248 _ACEOF
22249
22250 fi
22251
22252 echo "$as_me:$LINENO: checking for long long" >&5
22253 echo $ECHO_N "checking for long long... $ECHO_C" >&6
22254 if test "${ac_cv_c_long_long+set}" = set; then
22255   echo $ECHO_N "(cached) $ECHO_C" >&6
22256 else
22257   if test "$GCC" = yes; then
22258   ac_cv_c_long_long=yes
22259 else
22260 if test "$cross_compiling" = yes; then
22261   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22262 See \`config.log' for more details." >&5
22263 echo "$as_me: error: cannot run test program while cross compiling
22264 See \`config.log' for more details." >&2;}
22265    { (exit 1); exit 1; }; }
22266 else
22267   cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h.  */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h.  */
22273 int main() {
22274 long long foo = 0;
22275 exit(sizeof(long long) < sizeof(long)); }
22276 _ACEOF
22277 rm -f conftest$ac_exeext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22279   (eval $ac_link) 2>&5
22280   ac_status=$?
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284   (eval $ac_try) 2>&5
22285   ac_status=$?
22286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287   (exit $ac_status); }; }; then
22288   ac_cv_c_long_long=yes
22289 else
22290   echo "$as_me: program exited with status $ac_status" >&5
22291 echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22293
22294 ( exit $ac_status )
22295 ac_cv_c_long_long=no
22296 fi
22297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22298 fi
22299 fi
22300 fi
22301 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
22302 echo "${ECHO_T}$ac_cv_c_long_long" >&6
22303 if test $ac_cv_c_long_long = yes; then
22304   cat >>confdefs.h <<\_ACEOF
22305 #define HAVE_LONG_LONG 1
22306 _ACEOF
22307
22308 fi
22309
22310 if test $ac_cv_c_long_long = yes; then
22311   long64='unsigned long long';
22312 else
22313   long64='unsigned long';
22314 fi
22315 echo "$as_me:$LINENO: checking for uint64_t" >&5
22316 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
22317 if test "${ac_cv_type_uint64_t+set}" = set; then
22318   echo $ECHO_N "(cached) $ECHO_C" >&6
22319 else
22320   cat >conftest.$ac_ext <<_ACEOF
22321 /* confdefs.h.  */
22322 _ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h.  */
22326 #if HAVE_STDINT_H
22327 #include <stdint.h>
22328 #endif
22329 #include <sys/types.h>
22330 #if STDC_HEADERS
22331 #include <stdlib.h>
22332 #include <stddef.h>
22333 #endif
22334 _ACEOF
22335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22336   $EGREP "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22337   eval "ac_cv_type_uint64_t=yes"
22338 else
22339   eval "ac_cv_type_uint64_t=no"
22340 fi
22341 rm -f conftest*
22342
22343 fi
22344 if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
22345   echo "$as_me:$LINENO: result: yes" >&5
22346 echo "${ECHO_T}yes" >&6
22347 else
22348   echo "$as_me:$LINENO: result: no" >&5
22349 echo "${ECHO_T}no" >&6
22350   cat >>confdefs.h <<_ACEOF
22351 #define uint64_t $long64
22352 _ACEOF
22353
22354 fi
22355
22356
22357 echo "$as_me:$LINENO: checking size of uint8_t" >&5
22358 echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6
22359 if test "${ac_cv_sizeof_uint8_t+set}" = set; then
22360   echo $ECHO_N "(cached) $ECHO_C" >&6
22361 else
22362   if test "$cross_compiling" = yes; then
22363   ac_cv_sizeof_uint8_t=0
22364 else
22365   cat >conftest.$ac_ext <<_ACEOF
22366 /* confdefs.h.  */
22367 _ACEOF
22368 cat confdefs.h >>conftest.$ac_ext
22369 cat >>conftest.$ac_ext <<_ACEOF
22370 /* end confdefs.h.  */
22371 #if HAVE_STDINT_H
22372 #include <stdint.h>
22373 #endif
22374 #include <sys/types.h>
22375 #ifdef STDC_HEADERS
22376 #include <stdlib.h>
22377 #endif
22378
22379 #include <stdio.h>
22380 main()
22381 {
22382   FILE *f=fopen("conftestval", "w");
22383   if (!f) exit(1);
22384   fprintf(f, "%d\n", sizeof(uint8_t));
22385   exit(0);
22386 }
22387 _ACEOF
22388 rm -f conftest$ac_exeext
22389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22390   (eval $ac_link) 2>&5
22391   ac_status=$?
22392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395   (eval $ac_try) 2>&5
22396   ac_status=$?
22397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398   (exit $ac_status); }; }; then
22399   ac_cv_sizeof_uint8_t=`cat conftestval`
22400 else
22401   echo "$as_me: program exited with status $ac_status" >&5
22402 echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22404
22405 ( exit $ac_status )
22406 ac_cv_sizeof_uint8_t=0
22407 fi
22408 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22409 fi
22410 fi
22411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5
22412 echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6
22413 cat >>confdefs.h <<_ACEOF
22414 #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
22415 _ACEOF
22416
22417
22418
22419 echo "$as_me:$LINENO: checking size of uint16_t" >&5
22420 echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6
22421 if test "${ac_cv_sizeof_uint16_t+set}" = set; then
22422   echo $ECHO_N "(cached) $ECHO_C" >&6
22423 else
22424   if test "$cross_compiling" = yes; then
22425   ac_cv_sizeof_uint16_t=0
22426 else
22427   cat >conftest.$ac_ext <<_ACEOF
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433 #if HAVE_STDINT_H
22434 #include <stdint.h>
22435 #endif
22436 #include <sys/types.h>
22437 #ifdef STDC_HEADERS
22438 #include <stdlib.h>
22439 #endif
22440
22441 #include <stdio.h>
22442 main()
22443 {
22444   FILE *f=fopen("conftestval", "w");
22445   if (!f) exit(1);
22446   fprintf(f, "%d\n", sizeof(uint16_t));
22447   exit(0);
22448 }
22449 _ACEOF
22450 rm -f conftest$ac_exeext
22451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22452   (eval $ac_link) 2>&5
22453   ac_status=$?
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457   (eval $ac_try) 2>&5
22458   ac_status=$?
22459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460   (exit $ac_status); }; }; then
22461   ac_cv_sizeof_uint16_t=`cat conftestval`
22462 else
22463   echo "$as_me: program exited with status $ac_status" >&5
22464 echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22466
22467 ( exit $ac_status )
22468 ac_cv_sizeof_uint16_t=0
22469 fi
22470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22471 fi
22472 fi
22473 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
22474 echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6
22475 cat >>confdefs.h <<_ACEOF
22476 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
22477 _ACEOF
22478
22479
22480
22481 echo "$as_me:$LINENO: checking size of uint32_t" >&5
22482 echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6
22483 if test "${ac_cv_sizeof_uint32_t+set}" = set; then
22484   echo $ECHO_N "(cached) $ECHO_C" >&6
22485 else
22486   if test "$cross_compiling" = yes; then
22487   ac_cv_sizeof_uint32_t=0
22488 else
22489   cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h.  */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h.  */
22495 #if HAVE_STDINT_H
22496 #include <stdint.h>
22497 #endif
22498 #include <sys/types.h>
22499 #ifdef STDC_HEADERS
22500 #include <stdlib.h>
22501 #endif
22502
22503 #include <stdio.h>
22504 main()
22505 {
22506   FILE *f=fopen("conftestval", "w");
22507   if (!f) exit(1);
22508   fprintf(f, "%d\n", sizeof(uint32_t));
22509   exit(0);
22510 }
22511 _ACEOF
22512 rm -f conftest$ac_exeext
22513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22514   (eval $ac_link) 2>&5
22515   ac_status=$?
22516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519   (eval $ac_try) 2>&5
22520   ac_status=$?
22521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522   (exit $ac_status); }; }; then
22523   ac_cv_sizeof_uint32_t=`cat conftestval`
22524 else
22525   echo "$as_me: program exited with status $ac_status" >&5
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529 ( exit $ac_status )
22530 ac_cv_sizeof_uint32_t=0
22531 fi
22532 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22533 fi
22534 fi
22535 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
22536 echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6
22537 cat >>confdefs.h <<_ACEOF
22538 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
22539 _ACEOF
22540
22541
22542
22543 echo "$as_me:$LINENO: checking size of uint64_t" >&5
22544 echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6
22545 if test "${ac_cv_sizeof_uint64_t+set}" = set; then
22546   echo $ECHO_N "(cached) $ECHO_C" >&6
22547 else
22548   if test "$cross_compiling" = yes; then
22549   ac_cv_sizeof_uint64_t=0
22550 else
22551   cat >conftest.$ac_ext <<_ACEOF
22552 /* confdefs.h.  */
22553 _ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h.  */
22557 #if HAVE_STDINT_H
22558 #include <stdint.h>
22559 #endif
22560 #include <sys/types.h>
22561 #ifdef STDC_HEADERS
22562 #include <stdlib.h>
22563 #endif
22564
22565 #include <stdio.h>
22566 main()
22567 {
22568   FILE *f=fopen("conftestval", "w");
22569   if (!f) exit(1);
22570   fprintf(f, "%d\n", sizeof(uint64_t));
22571   exit(0);
22572 }
22573 _ACEOF
22574 rm -f conftest$ac_exeext
22575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22576   (eval $ac_link) 2>&5
22577   ac_status=$?
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22581   (eval $ac_try) 2>&5
22582   ac_status=$?
22583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584   (exit $ac_status); }; }; then
22585   ac_cv_sizeof_uint64_t=`cat conftestval`
22586 else
22587   echo "$as_me: program exited with status $ac_status" >&5
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22590
22591 ( exit $ac_status )
22592 ac_cv_sizeof_uint64_t=0
22593 fi
22594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22595 fi
22596 fi
22597 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
22598 echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6
22599 cat >>confdefs.h <<_ACEOF
22600 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
22601 _ACEOF
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618 for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp getopt_long utimes utime wcwidth snprintf vsnprintf
22619 do
22620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22621 echo "$as_me:$LINENO: checking for $ac_func" >&5
22622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22623 if eval "test \"\${$as_ac_var+set}\" = set"; then
22624   echo $ECHO_N "(cached) $ECHO_C" >&6
22625 else
22626   cat >conftest.$ac_ext <<_ACEOF
22627 /* confdefs.h.  */
22628 _ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h.  */
22632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22634 #define $ac_func innocuous_$ac_func
22635
22636 /* System header to define __stub macros and hopefully few prototypes,
22637     which can conflict with char $ac_func (); below.
22638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22639     <limits.h> exists even on freestanding compilers.  */
22640
22641 #ifdef __STDC__
22642 # include <limits.h>
22643 #else
22644 # include <assert.h>
22645 #endif
22646
22647 #undef $ac_func
22648
22649 /* Override any gcc2 internal prototype to avoid an error.  */
22650 #ifdef __cplusplus
22651 extern "C"
22652 {
22653 #endif
22654 /* We use char because int might match the return type of a gcc2
22655    builtin and then its argument prototype would still apply.  */
22656 char $ac_func ();
22657 /* The GNU C library defines this for functions which it implements
22658     to always fail with ENOSYS.  Some functions are actually named
22659     something starting with __ and the normal name is an alias.  */
22660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22661 choke me
22662 #else
22663 char (*f) () = $ac_func;
22664 #endif
22665 #ifdef __cplusplus
22666 }
22667 #endif
22668
22669 int
22670 main ()
22671 {
22672 return f != $ac_func;
22673   ;
22674   return 0;
22675 }
22676 _ACEOF
22677 rm -f conftest.$ac_objext conftest$ac_exeext
22678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22679   (eval $ac_link) 2>conftest.er1
22680   ac_status=$?
22681   grep -v '^ *+' conftest.er1 >conftest.err
22682   rm -f conftest.er1
22683   cat conftest.err >&5
22684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685   (exit $ac_status); } &&
22686          { ac_try='test -z "$ac_c_werror_flag"
22687                          || test ! -s conftest.err'
22688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22689   (eval $ac_try) 2>&5
22690   ac_status=$?
22691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22692   (exit $ac_status); }; } &&
22693          { ac_try='test -s conftest$ac_exeext'
22694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695   (eval $ac_try) 2>&5
22696   ac_status=$?
22697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698   (exit $ac_status); }; }; then
22699   eval "$as_ac_var=yes"
22700 else
22701   echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704 eval "$as_ac_var=no"
22705 fi
22706 rm -f conftest.err conftest.$ac_objext \
22707       conftest$ac_exeext conftest.$ac_ext
22708 fi
22709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22711 if test `eval echo '${'$as_ac_var'}'` = yes; then
22712   cat >>confdefs.h <<_ACEOF
22713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22714 _ACEOF
22715
22716 fi
22717 done
22718
22719
22720
22721 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
22722 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
22723 if test "${ac_cv_lib_z_gzopen+set}" = set; then
22724   echo $ECHO_N "(cached) $ECHO_C" >&6
22725 else
22726   ac_check_lib_save_LIBS=$LIBS
22727 LIBS="-lz  $LIBS"
22728 cat >conftest.$ac_ext <<_ACEOF
22729 /* confdefs.h.  */
22730 _ACEOF
22731 cat confdefs.h >>conftest.$ac_ext
22732 cat >>conftest.$ac_ext <<_ACEOF
22733 /* end confdefs.h.  */
22734
22735 /* Override any gcc2 internal prototype to avoid an error.  */
22736 #ifdef __cplusplus
22737 extern "C"
22738 #endif
22739 /* We use char because int might match the return type of a gcc2
22740    builtin and then its argument prototype would still apply.  */
22741 char gzopen ();
22742 int
22743 main ()
22744 {
22745 gzopen ();
22746   ;
22747   return 0;
22748 }
22749 _ACEOF
22750 rm -f conftest.$ac_objext conftest$ac_exeext
22751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22752   (eval $ac_link) 2>conftest.er1
22753   ac_status=$?
22754   grep -v '^ *+' conftest.er1 >conftest.err
22755   rm -f conftest.er1
22756   cat conftest.err >&5
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); } &&
22759          { ac_try='test -z "$ac_c_werror_flag"
22760                          || test ! -s conftest.err'
22761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22762   (eval $ac_try) 2>&5
22763   ac_status=$?
22764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765   (exit $ac_status); }; } &&
22766          { ac_try='test -s conftest$ac_exeext'
22767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768   (eval $ac_try) 2>&5
22769   ac_status=$?
22770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771   (exit $ac_status); }; }; then
22772   ac_cv_lib_z_gzopen=yes
22773 else
22774   echo "$as_me: failed program was:" >&5
22775 sed 's/^/| /' conftest.$ac_ext >&5
22776
22777 ac_cv_lib_z_gzopen=no
22778 fi
22779 rm -f conftest.err conftest.$ac_objext \
22780       conftest$ac_exeext conftest.$ac_ext
22781 LIBS=$ac_check_lib_save_LIBS
22782 fi
22783 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
22784 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
22785 if test $ac_cv_lib_z_gzopen = yes; then
22786   cat >>confdefs.h <<_ACEOF
22787 #define HAVE_LIBZ 1
22788 _ACEOF
22789
22790   LIBS="-lz $LIBS"
22791
22792 fi
22793
22794
22795
22796
22797 if test "$cross_compiling" = yes; then
22798   IS_CROSS_COMPILE_TRUE=
22799   IS_CROSS_COMPILE_FALSE='#'
22800 else
22801   IS_CROSS_COMPILE_TRUE='#'
22802   IS_CROSS_COMPILE_FALSE=
22803 fi
22804
22805
22806                                                   ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile doc/Makefile python/Makefile"
22807
22808 cat >confcache <<\_ACEOF
22809 # This file is a shell script that caches the results of configure
22810 # tests run on this system so they can be shared between configure
22811 # scripts and configure runs, see configure's option --config-cache.
22812 # It is not useful on other systems.  If it contains results you don't
22813 # want to keep, you may remove or edit it.
22814 #
22815 # config.status only pays attention to the cache file if you give it
22816 # the --recheck option to rerun configure.
22817 #
22818 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22819 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22820 # following values.
22821
22822 _ACEOF
22823
22824 # The following way of writing the cache mishandles newlines in values,
22825 # but we know of no workaround that is simple, portable, and efficient.
22826 # So, don't put newlines in cache variables' values.
22827 # Ultrix sh set writes to stderr and can't be redirected directly,
22828 # and sets the high bit in the cache file unless we assign to the vars.
22829 {
22830   (set) 2>&1 |
22831     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22832     *ac_space=\ *)
22833       # `set' does not quote correctly, so add quotes (double-quote
22834       # substitution turns \\\\ into \\, and sed turns \\ into \).
22835       sed -n \
22836         "s/'/'\\\\''/g;
22837           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22838       ;;
22839     *)
22840       # `set' quotes correctly as required by POSIX, so do not add quotes.
22841       sed -n \
22842         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22843       ;;
22844     esac;
22845 } |
22846   sed '
22847      t clear
22848      : clear
22849      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22850      t end
22851      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22852      : end' >>confcache
22853 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22854   if test -w $cache_file; then
22855     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22856     cat confcache >$cache_file
22857   else
22858     echo "not updating unwritable cache $cache_file"
22859   fi
22860 fi
22861 rm -f confcache
22862
22863 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22864 # Let make expand exec_prefix.
22865 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22866
22867 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22868 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22869 # trailing colons and then remove the whole line if VPATH becomes empty
22870 # (actually we leave an empty line to preserve line numbers).
22871 if test "x$srcdir" = x.; then
22872   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22873 s/:*\$(srcdir):*/:/;
22874 s/:*\${srcdir}:*/:/;
22875 s/:*@srcdir@:*/:/;
22876 s/^\([^=]*=[     ]*\):*/\1/;
22877 s/:*$//;
22878 s/^[^=]*=[       ]*$//;
22879 }'
22880 fi
22881
22882 DEFS=-DHAVE_CONFIG_H
22883
22884 ac_libobjs=
22885 ac_ltlibobjs=
22886 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22887   # 1. Remove the extension, and $U if already installed.
22888   ac_i=`echo "$ac_i" |
22889          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22890   # 2. Add them.
22891   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22892   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22893 done
22894 LIBOBJS=$ac_libobjs
22895
22896 LTLIBOBJS=$ac_ltlibobjs
22897
22898
22899 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22900   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22901 Usually this means the macro was only invoked conditionally." >&5
22902 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22903 Usually this means the macro was only invoked conditionally." >&2;}
22904    { (exit 1); exit 1; }; }
22905 fi
22906 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
22907   { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
22908 Usually this means the macro was only invoked conditionally." >&5
22909 echo "$as_me: error: conditional \"FSECT5\" was never defined.
22910 Usually this means the macro was only invoked conditionally." >&2;}
22911    { (exit 1); exit 1; }; }
22912 fi
22913 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22914   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22915 Usually this means the macro was only invoked conditionally." >&5
22916 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22917 Usually this means the macro was only invoked conditionally." >&2;}
22918    { (exit 1); exit 1; }; }
22919 fi
22920 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22921   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22922 Usually this means the macro was only invoked conditionally." >&5
22923 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22924 Usually this means the macro was only invoked conditionally." >&2;}
22925    { (exit 1); exit 1; }; }
22926 fi
22927 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22928   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22929 Usually this means the macro was only invoked conditionally." >&5
22930 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22931 Usually this means the macro was only invoked conditionally." >&2;}
22932    { (exit 1); exit 1; }; }
22933 fi
22934 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
22935   { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
22936 Usually this means the macro was only invoked conditionally." >&5
22937 echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
22938 Usually this means the macro was only invoked conditionally." >&2;}
22939    { (exit 1); exit 1; }; }
22940 fi
22941
22942 : ${CONFIG_STATUS=./config.status}
22943 ac_clean_files_save=$ac_clean_files
22944 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22945 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22946 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22947 cat >$CONFIG_STATUS <<_ACEOF
22948 #! $SHELL
22949 # Generated by $as_me.
22950 # Run this file to recreate the current configuration.
22951 # Compiler output produced by configure, useful for debugging
22952 # configure, is in config.log if it exists.
22953
22954 debug=false
22955 ac_cs_recheck=false
22956 ac_cs_silent=false
22957 SHELL=\${CONFIG_SHELL-$SHELL}
22958 _ACEOF
22959
22960 cat >>$CONFIG_STATUS <<\_ACEOF
22961 ## --------------------- ##
22962 ## M4sh Initialization.  ##
22963 ## --------------------- ##
22964
22965 # Be Bourne compatible
22966 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22967   emulate sh
22968   NULLCMD=:
22969   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22970   # is contrary to our usage.  Disable this feature.
22971   alias -g '${1+"$@"}'='"$@"'
22972 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22973   set -o posix
22974 fi
22975 DUALCASE=1; export DUALCASE # for MKS sh
22976
22977 # Support unset when possible.
22978 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22979   as_unset=unset
22980 else
22981   as_unset=false
22982 fi
22983
22984
22985 # Work around bugs in pre-3.0 UWIN ksh.
22986 $as_unset ENV MAIL MAILPATH
22987 PS1='$ '
22988 PS2='> '
22989 PS4='+ '
22990
22991 # NLS nuisances.
22992 for as_var in \
22993   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22994   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22995   LC_TELEPHONE LC_TIME
22996 do
22997   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22998     eval $as_var=C; export $as_var
22999   else
23000     $as_unset $as_var
23001   fi
23002 done
23003
23004 # Required to use basename.
23005 if expr a : '\(a\)' >/dev/null 2>&1; then
23006   as_expr=expr
23007 else
23008   as_expr=false
23009 fi
23010
23011 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23012   as_basename=basename
23013 else
23014   as_basename=false
23015 fi
23016
23017
23018 # Name of the executable.
23019 as_me=`$as_basename "$0" ||
23020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23021          X"$0" : 'X\(//\)$' \| \
23022          X"$0" : 'X\(/\)$' \| \
23023          .     : '\(.\)' 2>/dev/null ||
23024 echo X/"$0" |
23025     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23026           /^X\/\(\/\/\)$/{ s//\1/; q; }
23027           /^X\/\(\/\).*/{ s//\1/; q; }
23028           s/.*/./; q'`
23029
23030
23031 # PATH needs CR, and LINENO needs CR and PATH.
23032 # Avoid depending upon Character Ranges.
23033 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23035 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23036 as_cr_digits='0123456789'
23037 as_cr_alnum=$as_cr_Letters$as_cr_digits
23038
23039 # The user is always right.
23040 if test "${PATH_SEPARATOR+set}" != set; then
23041   echo "#! /bin/sh" >conf$$.sh
23042   echo  "exit 0"   >>conf$$.sh
23043   chmod +x conf$$.sh
23044   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23045     PATH_SEPARATOR=';'
23046   else
23047     PATH_SEPARATOR=:
23048   fi
23049   rm -f conf$$.sh
23050 fi
23051
23052
23053   as_lineno_1=$LINENO
23054   as_lineno_2=$LINENO
23055   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23056   test "x$as_lineno_1" != "x$as_lineno_2" &&
23057   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23058   # Find who we are.  Look in the path if we contain no path at all
23059   # relative or not.
23060   case $0 in
23061     *[\\/]* ) as_myself=$0 ;;
23062     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23063 for as_dir in $PATH
23064 do
23065   IFS=$as_save_IFS
23066   test -z "$as_dir" && as_dir=.
23067   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23068 done
23069
23070        ;;
23071   esac
23072   # We did not find ourselves, most probably we were run as `sh COMMAND'
23073   # in which case we are not to be found in the path.
23074   if test "x$as_myself" = x; then
23075     as_myself=$0
23076   fi
23077   if test ! -f "$as_myself"; then
23078     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23079 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23080    { (exit 1); exit 1; }; }
23081   fi
23082   case $CONFIG_SHELL in
23083   '')
23084     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23085 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23086 do
23087   IFS=$as_save_IFS
23088   test -z "$as_dir" && as_dir=.
23089   for as_base in sh bash ksh sh5; do
23090          case $as_dir in
23091          /*)
23092            if ("$as_dir/$as_base" -c '
23093   as_lineno_1=$LINENO
23094   as_lineno_2=$LINENO
23095   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23096   test "x$as_lineno_1" != "x$as_lineno_2" &&
23097   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23098              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23099              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23100              CONFIG_SHELL=$as_dir/$as_base
23101              export CONFIG_SHELL
23102              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23103            fi;;
23104          esac
23105        done
23106 done
23107 ;;
23108   esac
23109
23110   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23111   # uniformly replaced by the line number.  The first 'sed' inserts a
23112   # line-number line before each line; the second 'sed' does the real
23113   # work.  The second script uses 'N' to pair each line-number line
23114   # with the numbered line, and appends trailing '-' during
23115   # substitution so that $LINENO is not a special case at line end.
23116   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23117   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23118   sed '=' <$as_myself |
23119     sed '
23120       N
23121       s,$,-,
23122       : loop
23123       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23124       t loop
23125       s,-$,,
23126       s,^['$as_cr_digits']*\n,,
23127     ' >$as_me.lineno &&
23128   chmod +x $as_me.lineno ||
23129     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23130 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23131    { (exit 1); exit 1; }; }
23132
23133   # Don't try to exec as it changes $[0], causing all sort of problems
23134   # (the dirname of $[0] is not the place where we might find the
23135   # original and so on.  Autoconf is especially sensible to this).
23136   . ./$as_me.lineno
23137   # Exit status is that of the last command.
23138   exit
23139 }
23140
23141
23142 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23143   *c*,-n*) ECHO_N= ECHO_C='
23144 ' ECHO_T='      ' ;;
23145   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23146   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23147 esac
23148
23149 if expr a : '\(a\)' >/dev/null 2>&1; then
23150   as_expr=expr
23151 else
23152   as_expr=false
23153 fi
23154
23155 rm -f conf$$ conf$$.exe conf$$.file
23156 echo >conf$$.file
23157 if ln -s conf$$.file conf$$ 2>/dev/null; then
23158   # We could just check for DJGPP; but this test a) works b) is more generic
23159   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23160   if test -f conf$$.exe; then
23161     # Don't use ln at all; we don't have any links
23162     as_ln_s='cp -p'
23163   else
23164     as_ln_s='ln -s'
23165   fi
23166 elif ln conf$$.file conf$$ 2>/dev/null; then
23167   as_ln_s=ln
23168 else
23169   as_ln_s='cp -p'
23170 fi
23171 rm -f conf$$ conf$$.exe conf$$.file
23172
23173 if mkdir -p . 2>/dev/null; then
23174   as_mkdir_p=:
23175 else
23176   test -d ./-p && rmdir ./-p
23177   as_mkdir_p=false
23178 fi
23179
23180 as_executable_p="test -f"
23181
23182 # Sed expression to map a string onto a valid CPP name.
23183 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23184
23185 # Sed expression to map a string onto a valid variable name.
23186 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23187
23188
23189 # IFS
23190 # We need space, tab and new line, in precisely that order.
23191 as_nl='
23192 '
23193 IFS="   $as_nl"
23194
23195 # CDPATH.
23196 $as_unset CDPATH
23197
23198 exec 6>&1
23199
23200 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23201 # report actual input values of CONFIG_FILES etc. instead of their
23202 # values after options handling.  Logging --version etc. is OK.
23203 exec 5>>config.log
23204 {
23205   echo
23206   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23207 ## Running $as_me. ##
23208 _ASBOX
23209 } >&5
23210 cat >&5 <<_CSEOF
23211
23212 This file was extended by $as_me, which was
23213 generated by GNU Autoconf 2.59.  Invocation command line was
23214
23215   CONFIG_FILES    = $CONFIG_FILES
23216   CONFIG_HEADERS  = $CONFIG_HEADERS
23217   CONFIG_LINKS    = $CONFIG_LINKS
23218   CONFIG_COMMANDS = $CONFIG_COMMANDS
23219   $ $0 $@
23220
23221 _CSEOF
23222 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23223 echo >&5
23224 _ACEOF
23225
23226 # Files that config.status was made for.
23227 if test -n "$ac_config_files"; then
23228   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23229 fi
23230
23231 if test -n "$ac_config_headers"; then
23232   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23233 fi
23234
23235 if test -n "$ac_config_links"; then
23236   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23237 fi
23238
23239 if test -n "$ac_config_commands"; then
23240   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23241 fi
23242
23243 cat >>$CONFIG_STATUS <<\_ACEOF
23244
23245 ac_cs_usage="\
23246 \`$as_me' instantiates files from templates according to the
23247 current configuration.
23248
23249 Usage: $0 [OPTIONS] [FILE]...
23250
23251   -h, --help       print this help, then exit
23252   -V, --version    print version number, then exit
23253   -q, --quiet      do not print progress messages
23254   -d, --debug      don't remove temporary files
23255       --recheck    update $as_me by reconfiguring in the same conditions
23256   --file=FILE[:TEMPLATE]
23257                    instantiate the configuration file FILE
23258   --header=FILE[:TEMPLATE]
23259                    instantiate the configuration header FILE
23260
23261 Configuration files:
23262 $config_files
23263
23264 Configuration headers:
23265 $config_headers
23266
23267 Configuration commands:
23268 $config_commands
23269
23270 Report bugs to <bug-autoconf@gnu.org>."
23271 _ACEOF
23272
23273 cat >>$CONFIG_STATUS <<_ACEOF
23274 ac_cs_version="\\
23275 config.status
23276 configured by $0, generated by GNU Autoconf 2.59,
23277   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23278
23279 Copyright (C) 2003 Free Software Foundation, Inc.
23280 This config.status script is free software; the Free Software Foundation
23281 gives unlimited permission to copy, distribute and modify it."
23282 srcdir=$srcdir
23283 INSTALL="$INSTALL"
23284 _ACEOF
23285
23286 cat >>$CONFIG_STATUS <<\_ACEOF
23287 # If no file are specified by the user, then we need to provide default
23288 # value.  By we need to know if files were specified by the user.
23289 ac_need_defaults=:
23290 while test $# != 0
23291 do
23292   case $1 in
23293   --*=*)
23294     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23295     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23296     ac_shift=:
23297     ;;
23298   -*)
23299     ac_option=$1
23300     ac_optarg=$2
23301     ac_shift=shift
23302     ;;
23303   *) # This is not an option, so the user has probably given explicit
23304      # arguments.
23305      ac_option=$1
23306      ac_need_defaults=false;;
23307   esac
23308
23309   case $ac_option in
23310   # Handling of the options.
23311 _ACEOF
23312 cat >>$CONFIG_STATUS <<\_ACEOF
23313   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23314     ac_cs_recheck=: ;;
23315   --version | --vers* | -V )
23316     echo "$ac_cs_version"; exit 0 ;;
23317   --he | --h)
23318     # Conflict between --help and --header
23319     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23320 Try \`$0 --help' for more information." >&5
23321 echo "$as_me: error: ambiguous option: $1
23322 Try \`$0 --help' for more information." >&2;}
23323    { (exit 1); exit 1; }; };;
23324   --help | --hel | -h )
23325     echo "$ac_cs_usage"; exit 0 ;;
23326   --debug | --d* | -d )
23327     debug=: ;;
23328   --file | --fil | --fi | --f )
23329     $ac_shift
23330     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23331     ac_need_defaults=false;;
23332   --header | --heade | --head | --hea )
23333     $ac_shift
23334     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23335     ac_need_defaults=false;;
23336   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23337   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23338     ac_cs_silent=: ;;
23339
23340   # This is an error.
23341   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23342 Try \`$0 --help' for more information." >&5
23343 echo "$as_me: error: unrecognized option: $1
23344 Try \`$0 --help' for more information." >&2;}
23345    { (exit 1); exit 1; }; } ;;
23346
23347   *) ac_config_targets="$ac_config_targets $1" ;;
23348
23349   esac
23350   shift
23351 done
23352
23353 ac_configure_extra_args=
23354
23355 if $ac_cs_silent; then
23356   exec 6>/dev/null
23357   ac_configure_extra_args="$ac_configure_extra_args --silent"
23358 fi
23359
23360 _ACEOF
23361 cat >>$CONFIG_STATUS <<_ACEOF
23362 if \$ac_cs_recheck; then
23363   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23364   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23365 fi
23366
23367 _ACEOF
23368
23369 cat >>$CONFIG_STATUS <<_ACEOF
23370 #
23371 # INIT-COMMANDS section.
23372 #
23373
23374 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23375
23376 _ACEOF
23377
23378
23379
23380 cat >>$CONFIG_STATUS <<\_ACEOF
23381 for ac_config_target in $ac_config_targets
23382 do
23383   case "$ac_config_target" in
23384   # Handling of arguments.
23385   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23386   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23387   "magic/Makefile" ) CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
23388   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23389   "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
23390   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23391   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23392   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23393 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23394    { (exit 1); exit 1; }; };;
23395   esac
23396 done
23397
23398 # If the user did not use the arguments to specify the items to instantiate,
23399 # then the envvar interface is used.  Set only those that are not.
23400 # We use the long form for the default assignment because of an extremely
23401 # bizarre bug on SunOS 4.1.3.
23402 if $ac_need_defaults; then
23403   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23404   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23405   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23406 fi
23407
23408 # Have a temporary directory for convenience.  Make it in the build tree
23409 # simply because there is no reason to put it here, and in addition,
23410 # creating and moving files from /tmp can sometimes cause problems.
23411 # Create a temporary directory, and hook for its removal unless debugging.
23412 $debug ||
23413 {
23414   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23415   trap '{ (exit 1); exit 1; }' 1 2 13 15
23416 }
23417
23418 # Create a (secure) tmp directory for tmp files.
23419
23420 {
23421   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23422   test -n "$tmp" && test -d "$tmp"
23423 }  ||
23424 {
23425   tmp=./confstat$$-$RANDOM
23426   (umask 077 && mkdir $tmp)
23427 } ||
23428 {
23429    echo "$me: cannot create a temporary directory in ." >&2
23430    { (exit 1); exit 1; }
23431 }
23432
23433 _ACEOF
23434
23435 cat >>$CONFIG_STATUS <<_ACEOF
23436
23437 #
23438 # CONFIG_FILES section.
23439 #
23440
23441 # No need to generate the scripts if there are no CONFIG_FILES.
23442 # This happens for instance when ./config.status config.h
23443 if test -n "\$CONFIG_FILES"; then
23444   # Protect against being on the right side of a sed subst in config.status.
23445   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23446    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23447 s,@SHELL@,$SHELL,;t t
23448 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23449 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23450 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23451 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23452 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23453 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23454 s,@exec_prefix@,$exec_prefix,;t t
23455 s,@prefix@,$prefix,;t t
23456 s,@program_transform_name@,$program_transform_name,;t t
23457 s,@bindir@,$bindir,;t t
23458 s,@sbindir@,$sbindir,;t t
23459 s,@libexecdir@,$libexecdir,;t t
23460 s,@datadir@,$datadir,;t t
23461 s,@sysconfdir@,$sysconfdir,;t t
23462 s,@sharedstatedir@,$sharedstatedir,;t t
23463 s,@localstatedir@,$localstatedir,;t t
23464 s,@libdir@,$libdir,;t t
23465 s,@includedir@,$includedir,;t t
23466 s,@oldincludedir@,$oldincludedir,;t t
23467 s,@infodir@,$infodir,;t t
23468 s,@mandir@,$mandir,;t t
23469 s,@build_alias@,$build_alias,;t t
23470 s,@host_alias@,$host_alias,;t t
23471 s,@target_alias@,$target_alias,;t t
23472 s,@DEFS@,$DEFS,;t t
23473 s,@ECHO_C@,$ECHO_C,;t t
23474 s,@ECHO_N@,$ECHO_N,;t t
23475 s,@ECHO_T@,$ECHO_T,;t t
23476 s,@LIBS@,$LIBS,;t t
23477 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23478 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23479 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23480 s,@CYGPATH_W@,$CYGPATH_W,;t t
23481 s,@PACKAGE@,$PACKAGE,;t t
23482 s,@VERSION@,$VERSION,;t t
23483 s,@ACLOCAL@,$ACLOCAL,;t t
23484 s,@AUTOCONF@,$AUTOCONF,;t t
23485 s,@AUTOMAKE@,$AUTOMAKE,;t t
23486 s,@AUTOHEADER@,$AUTOHEADER,;t t
23487 s,@MAKEINFO@,$MAKEINFO,;t t
23488 s,@install_sh@,$install_sh,;t t
23489 s,@STRIP@,$STRIP,;t t
23490 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23491 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23492 s,@mkdir_p@,$mkdir_p,;t t
23493 s,@AWK@,$AWK,;t t
23494 s,@SET_MAKE@,$SET_MAKE,;t t
23495 s,@am__leading_dot@,$am__leading_dot,;t t
23496 s,@AMTAR@,$AMTAR,;t t
23497 s,@am__tar@,$am__tar,;t t
23498 s,@am__untar@,$am__untar,;t t
23499 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23500 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23501 s,@MAINT@,$MAINT,;t t
23502 s,@fsect@,$fsect,;t t
23503 s,@FSECT5_TRUE@,$FSECT5_TRUE,;t t
23504 s,@FSECT5_FALSE@,$FSECT5_FALSE,;t t
23505 s,@CC@,$CC,;t t
23506 s,@CFLAGS@,$CFLAGS,;t t
23507 s,@LDFLAGS@,$LDFLAGS,;t t
23508 s,@CPPFLAGS@,$CPPFLAGS,;t t
23509 s,@ac_ct_CC@,$ac_ct_CC,;t t
23510 s,@EXEEXT@,$EXEEXT,;t t
23511 s,@OBJEXT@,$OBJEXT,;t t
23512 s,@DEPDIR@,$DEPDIR,;t t
23513 s,@am__include@,$am__include,;t t
23514 s,@am__quote@,$am__quote,;t t
23515 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23516 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23517 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23518 s,@CCDEPMODE@,$CCDEPMODE,;t t
23519 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23520 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23521 s,@LN_S@,$LN_S,;t t
23522 s,@build@,$build,;t t
23523 s,@build_cpu@,$build_cpu,;t t
23524 s,@build_vendor@,$build_vendor,;t t
23525 s,@build_os@,$build_os,;t t
23526 s,@host@,$host,;t t
23527 s,@host_cpu@,$host_cpu,;t t
23528 s,@host_vendor@,$host_vendor,;t t
23529 s,@host_os@,$host_os,;t t
23530 s,@EGREP@,$EGREP,;t t
23531 s,@ECHO@,$ECHO,;t t
23532 s,@AR@,$AR,;t t
23533 s,@ac_ct_AR@,$ac_ct_AR,;t t
23534 s,@RANLIB@,$RANLIB,;t t
23535 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23536 s,@CPP@,$CPP,;t t
23537 s,@CXX@,$CXX,;t t
23538 s,@CXXFLAGS@,$CXXFLAGS,;t t
23539 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23540 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23541 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23542 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23543 s,@CXXCPP@,$CXXCPP,;t t
23544 s,@F77@,$F77,;t t
23545 s,@FFLAGS@,$FFLAGS,;t t
23546 s,@ac_ct_F77@,$ac_ct_F77,;t t
23547 s,@LIBTOOL@,$LIBTOOL,;t t
23548 s,@IS_CROSS_COMPILE_TRUE@,$IS_CROSS_COMPILE_TRUE,;t t
23549 s,@IS_CROSS_COMPILE_FALSE@,$IS_CROSS_COMPILE_FALSE,;t t
23550 s,@LIBOBJS@,$LIBOBJS,;t t
23551 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23552 CEOF
23553
23554 _ACEOF
23555
23556   cat >>$CONFIG_STATUS <<\_ACEOF
23557   # Split the substitutions into bite-sized pieces for seds with
23558   # small command number limits, like on Digital OSF/1 and HP-UX.
23559   ac_max_sed_lines=48
23560   ac_sed_frag=1 # Number of current file.
23561   ac_beg=1 # First line for current file.
23562   ac_end=$ac_max_sed_lines # Line after last line for current file.
23563   ac_more_lines=:
23564   ac_sed_cmds=
23565   while $ac_more_lines; do
23566     if test $ac_beg -gt 1; then
23567       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23568     else
23569       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23570     fi
23571     if test ! -s $tmp/subs.frag; then
23572       ac_more_lines=false
23573     else
23574       # The purpose of the label and of the branching condition is to
23575       # speed up the sed processing (if there are no `@' at all, there
23576       # is no need to browse any of the substitutions).
23577       # These are the two extra sed commands mentioned above.
23578       (echo ':t
23579   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23580       if test -z "$ac_sed_cmds"; then
23581         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23582       else
23583         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23584       fi
23585       ac_sed_frag=`expr $ac_sed_frag + 1`
23586       ac_beg=$ac_end
23587       ac_end=`expr $ac_end + $ac_max_sed_lines`
23588     fi
23589   done
23590   if test -z "$ac_sed_cmds"; then
23591     ac_sed_cmds=cat
23592   fi
23593 fi # test -n "$CONFIG_FILES"
23594
23595 _ACEOF
23596 cat >>$CONFIG_STATUS <<\_ACEOF
23597 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23598   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23599   case $ac_file in
23600   - | *:- | *:-:* ) # input from stdin
23601         cat >$tmp/stdin
23602         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23603         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23604   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23605         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23606   * )   ac_file_in=$ac_file.in ;;
23607   esac
23608
23609   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23610   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23612          X"$ac_file" : 'X\(//\)[^/]' \| \
23613          X"$ac_file" : 'X\(//\)$' \| \
23614          X"$ac_file" : 'X\(/\)' \| \
23615          .     : '\(.\)' 2>/dev/null ||
23616 echo X"$ac_file" |
23617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23618           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23619           /^X\(\/\/\)$/{ s//\1/; q; }
23620           /^X\(\/\).*/{ s//\1/; q; }
23621           s/.*/./; q'`
23622   { if $as_mkdir_p; then
23623     mkdir -p "$ac_dir"
23624   else
23625     as_dir="$ac_dir"
23626     as_dirs=
23627     while test ! -d "$as_dir"; do
23628       as_dirs="$as_dir $as_dirs"
23629       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23630 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23631          X"$as_dir" : 'X\(//\)[^/]' \| \
23632          X"$as_dir" : 'X\(//\)$' \| \
23633          X"$as_dir" : 'X\(/\)' \| \
23634          .     : '\(.\)' 2>/dev/null ||
23635 echo X"$as_dir" |
23636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23637           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23638           /^X\(\/\/\)$/{ s//\1/; q; }
23639           /^X\(\/\).*/{ s//\1/; q; }
23640           s/.*/./; q'`
23641     done
23642     test ! -n "$as_dirs" || mkdir $as_dirs
23643   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23644 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23645    { (exit 1); exit 1; }; }; }
23646
23647   ac_builddir=.
23648
23649 if test "$ac_dir" != .; then
23650   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23651   # A "../" for each directory in $ac_dir_suffix.
23652   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23653 else
23654   ac_dir_suffix= ac_top_builddir=
23655 fi
23656
23657 case $srcdir in
23658   .)  # No --srcdir option.  We are building in place.
23659     ac_srcdir=.
23660     if test -z "$ac_top_builddir"; then
23661        ac_top_srcdir=.
23662     else
23663        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23664     fi ;;
23665   [\\/]* | ?:[\\/]* )  # Absolute path.
23666     ac_srcdir=$srcdir$ac_dir_suffix;
23667     ac_top_srcdir=$srcdir ;;
23668   *) # Relative path.
23669     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23670     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23671 esac
23672
23673 # Do not use `cd foo && pwd` to compute absolute paths, because
23674 # the directories may not exist.
23675 case `pwd` in
23676 .) ac_abs_builddir="$ac_dir";;
23677 *)
23678   case "$ac_dir" in
23679   .) ac_abs_builddir=`pwd`;;
23680   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23681   *) ac_abs_builddir=`pwd`/"$ac_dir";;
23682   esac;;
23683 esac
23684 case $ac_abs_builddir in
23685 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23686 *)
23687   case ${ac_top_builddir}. in
23688   .) ac_abs_top_builddir=$ac_abs_builddir;;
23689   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23690   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23691   esac;;
23692 esac
23693 case $ac_abs_builddir in
23694 .) ac_abs_srcdir=$ac_srcdir;;
23695 *)
23696   case $ac_srcdir in
23697   .) ac_abs_srcdir=$ac_abs_builddir;;
23698   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23699   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23700   esac;;
23701 esac
23702 case $ac_abs_builddir in
23703 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23704 *)
23705   case $ac_top_srcdir in
23706   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23707   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23708   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23709   esac;;
23710 esac
23711
23712
23713   case $INSTALL in
23714   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23715   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23716   esac
23717
23718   if test x"$ac_file" != x-; then
23719     { echo "$as_me:$LINENO: creating $ac_file" >&5
23720 echo "$as_me: creating $ac_file" >&6;}
23721     rm -f "$ac_file"
23722   fi
23723   # Let's still pretend it is `configure' which instantiates (i.e., don't
23724   # use $as_me), people would be surprised to read:
23725   #    /* config.h.  Generated by config.status.  */
23726   if test x"$ac_file" = x-; then
23727     configure_input=
23728   else
23729     configure_input="$ac_file.  "
23730   fi
23731   configure_input=$configure_input"Generated from `echo $ac_file_in |
23732                                      sed 's,.*/,,'` by configure."
23733
23734   # First look for the input files in the build tree, otherwise in the
23735   # src tree.
23736   ac_file_inputs=`IFS=:
23737     for f in $ac_file_in; do
23738       case $f in
23739       -) echo $tmp/stdin ;;
23740       [\\/$]*)
23741          # Absolute (can't be DOS-style, as IFS=:)
23742          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23743 echo "$as_me: error: cannot find input file: $f" >&2;}
23744    { (exit 1); exit 1; }; }
23745          echo "$f";;
23746       *) # Relative
23747          if test -f "$f"; then
23748            # Build tree
23749            echo "$f"
23750          elif test -f "$srcdir/$f"; then
23751            # Source tree
23752            echo "$srcdir/$f"
23753          else
23754            # /dev/null tree
23755            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23756 echo "$as_me: error: cannot find input file: $f" >&2;}
23757    { (exit 1); exit 1; }; }
23758          fi;;
23759       esac
23760     done` || { (exit 1); exit 1; }
23761 _ACEOF
23762 cat >>$CONFIG_STATUS <<_ACEOF
23763   sed "$ac_vpsub
23764 $extrasub
23765 _ACEOF
23766 cat >>$CONFIG_STATUS <<\_ACEOF
23767 :t
23768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23769 s,@configure_input@,$configure_input,;t t
23770 s,@srcdir@,$ac_srcdir,;t t
23771 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23772 s,@top_srcdir@,$ac_top_srcdir,;t t
23773 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23774 s,@builddir@,$ac_builddir,;t t
23775 s,@abs_builddir@,$ac_abs_builddir,;t t
23776 s,@top_builddir@,$ac_top_builddir,;t t
23777 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23778 s,@INSTALL@,$ac_INSTALL,;t t
23779 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23780   rm -f $tmp/stdin
23781   if test x"$ac_file" != x-; then
23782     mv $tmp/out $ac_file
23783   else
23784     cat $tmp/out
23785     rm -f $tmp/out
23786   fi
23787
23788 done
23789 _ACEOF
23790 cat >>$CONFIG_STATUS <<\_ACEOF
23791
23792 #
23793 # CONFIG_HEADER section.
23794 #
23795
23796 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23797 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23798 #
23799 # ac_d sets the value in "#define NAME VALUE" lines.
23800 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
23801 ac_dB='[         ].*$,\1#\2'
23802 ac_dC=' '
23803 ac_dD=',;t'
23804 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23805 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23806 ac_uB='$,\1#\2define\3'
23807 ac_uC=' '
23808 ac_uD=',;t'
23809
23810 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23811   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23812   case $ac_file in
23813   - | *:- | *:-:* ) # input from stdin
23814         cat >$tmp/stdin
23815         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23816         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23817   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23818         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23819   * )   ac_file_in=$ac_file.in ;;
23820   esac
23821
23822   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23823 echo "$as_me: creating $ac_file" >&6;}
23824
23825   # First look for the input files in the build tree, otherwise in the
23826   # src tree.
23827   ac_file_inputs=`IFS=:
23828     for f in $ac_file_in; do
23829       case $f in
23830       -) echo $tmp/stdin ;;
23831       [\\/$]*)
23832          # Absolute (can't be DOS-style, as IFS=:)
23833          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23834 echo "$as_me: error: cannot find input file: $f" >&2;}
23835    { (exit 1); exit 1; }; }
23836          # Do quote $f, to prevent DOS paths from being IFS'd.
23837          echo "$f";;
23838       *) # Relative
23839          if test -f "$f"; then
23840            # Build tree
23841            echo "$f"
23842          elif test -f "$srcdir/$f"; then
23843            # Source tree
23844            echo "$srcdir/$f"
23845          else
23846            # /dev/null tree
23847            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23848 echo "$as_me: error: cannot find input file: $f" >&2;}
23849    { (exit 1); exit 1; }; }
23850          fi;;
23851       esac
23852     done` || { (exit 1); exit 1; }
23853   # Remove the trailing spaces.
23854   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
23855
23856 _ACEOF
23857
23858 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23859 # `conftest.undefs', that substitutes the proper values into
23860 # config.h.in to produce config.h.  The first handles `#define'
23861 # templates, and the second `#undef' templates.
23862 # And first: Protect against being on the right side of a sed subst in
23863 # config.status.  Protect against being in an unquoted here document
23864 # in config.status.
23865 rm -f conftest.defines conftest.undefs
23866 # Using a here document instead of a string reduces the quoting nightmare.
23867 # Putting comments in sed scripts is not portable.
23868 #
23869 # `end' is used to avoid that the second main sed command (meant for
23870 # 0-ary CPP macros) applies to n-ary macro definitions.
23871 # See the Autoconf documentation for `clear'.
23872 cat >confdef2sed.sed <<\_ACEOF
23873 s/[\\&,]/\\&/g
23874 s,[\\$`],\\&,g
23875 t clear
23876 : clear
23877 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23878 t end
23879 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23880 : end
23881 _ACEOF
23882 # If some macros were called several times there might be several times
23883 # the same #defines, which is useless.  Nevertheless, we may not want to
23884 # sort them, since we want the *last* AC-DEFINE to be honored.
23885 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23886 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23887 rm -f confdef2sed.sed
23888
23889 # This sed command replaces #undef with comments.  This is necessary, for
23890 # example, in the case of _POSIX_SOURCE, which is predefined and required
23891 # on some systems where configure will not decide to define it.
23892 cat >>conftest.undefs <<\_ACEOF
23893 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23894 _ACEOF
23895
23896 # Break up conftest.defines because some shells have a limit on the size
23897 # of here documents, and old seds have small limits too (100 cmds).
23898 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23899 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23900 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23901 echo '  :' >>$CONFIG_STATUS
23902 rm -f conftest.tail
23903 while grep . conftest.defines >/dev/null
23904 do
23905   # Write a limited-size here document to $tmp/defines.sed.
23906   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23907   # Speed up: don't consider the non `#define' lines.
23908   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
23909   # Work around the forget-to-reset-the-flag bug.
23910   echo 't clr' >>$CONFIG_STATUS
23911   echo ': clr' >>$CONFIG_STATUS
23912   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23913   echo 'CEOF
23914   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23915   rm -f $tmp/in
23916   mv $tmp/out $tmp/in
23917 ' >>$CONFIG_STATUS
23918   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23919   rm -f conftest.defines
23920   mv conftest.tail conftest.defines
23921 done
23922 rm -f conftest.defines
23923 echo '  fi # grep' >>$CONFIG_STATUS
23924 echo >>$CONFIG_STATUS
23925
23926 # Break up conftest.undefs because some shells have a limit on the size
23927 # of here documents, and old seds have small limits too (100 cmds).
23928 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23929 rm -f conftest.tail
23930 while grep . conftest.undefs >/dev/null
23931 do
23932   # Write a limited-size here document to $tmp/undefs.sed.
23933   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23934   # Speed up: don't consider the non `#undef'
23935   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23936   # Work around the forget-to-reset-the-flag bug.
23937   echo 't clr' >>$CONFIG_STATUS
23938   echo ': clr' >>$CONFIG_STATUS
23939   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23940   echo 'CEOF
23941   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23942   rm -f $tmp/in
23943   mv $tmp/out $tmp/in
23944 ' >>$CONFIG_STATUS
23945   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23946   rm -f conftest.undefs
23947   mv conftest.tail conftest.undefs
23948 done
23949 rm -f conftest.undefs
23950
23951 cat >>$CONFIG_STATUS <<\_ACEOF
23952   # Let's still pretend it is `configure' which instantiates (i.e., don't
23953   # use $as_me), people would be surprised to read:
23954   #    /* config.h.  Generated by config.status.  */
23955   if test x"$ac_file" = x-; then
23956     echo "/* Generated by configure.  */" >$tmp/config.h
23957   else
23958     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23959   fi
23960   cat $tmp/in >>$tmp/config.h
23961   rm -f $tmp/in
23962   if test x"$ac_file" != x-; then
23963     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23964       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23965 echo "$as_me: $ac_file is unchanged" >&6;}
23966     else
23967       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23968 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23969          X"$ac_file" : 'X\(//\)[^/]' \| \
23970          X"$ac_file" : 'X\(//\)$' \| \
23971          X"$ac_file" : 'X\(/\)' \| \
23972          .     : '\(.\)' 2>/dev/null ||
23973 echo X"$ac_file" |
23974     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23975           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23976           /^X\(\/\/\)$/{ s//\1/; q; }
23977           /^X\(\/\).*/{ s//\1/; q; }
23978           s/.*/./; q'`
23979       { if $as_mkdir_p; then
23980     mkdir -p "$ac_dir"
23981   else
23982     as_dir="$ac_dir"
23983     as_dirs=
23984     while test ! -d "$as_dir"; do
23985       as_dirs="$as_dir $as_dirs"
23986       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23988          X"$as_dir" : 'X\(//\)[^/]' \| \
23989          X"$as_dir" : 'X\(//\)$' \| \
23990          X"$as_dir" : 'X\(/\)' \| \
23991          .     : '\(.\)' 2>/dev/null ||
23992 echo X"$as_dir" |
23993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23995           /^X\(\/\/\)$/{ s//\1/; q; }
23996           /^X\(\/\).*/{ s//\1/; q; }
23997           s/.*/./; q'`
23998     done
23999     test ! -n "$as_dirs" || mkdir $as_dirs
24000   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24001 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24002    { (exit 1); exit 1; }; }; }
24003
24004       rm -f $ac_file
24005       mv $tmp/config.h $ac_file
24006     fi
24007   else
24008     cat $tmp/config.h
24009     rm -f $tmp/config.h
24010   fi
24011 # Compute $ac_file's index in $config_headers.
24012 _am_stamp_count=1
24013 for _am_header in $config_headers :; do
24014   case $_am_header in
24015     $ac_file | $ac_file:* )
24016       break ;;
24017     * )
24018       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24019   esac
24020 done
24021 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24022 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24023          X$ac_file : 'X\(//\)[^/]' \| \
24024          X$ac_file : 'X\(//\)$' \| \
24025          X$ac_file : 'X\(/\)' \| \
24026          .     : '\(.\)' 2>/dev/null ||
24027 echo X$ac_file |
24028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24029           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24030           /^X\(\/\/\)$/{ s//\1/; q; }
24031           /^X\(\/\).*/{ s//\1/; q; }
24032           s/.*/./; q'`/stamp-h$_am_stamp_count
24033 done
24034 _ACEOF
24035 cat >>$CONFIG_STATUS <<\_ACEOF
24036
24037 #
24038 # CONFIG_COMMANDS section.
24039 #
24040 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24041   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24042   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24043   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24044 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24045          X"$ac_dest" : 'X\(//\)[^/]' \| \
24046          X"$ac_dest" : 'X\(//\)$' \| \
24047          X"$ac_dest" : 'X\(/\)' \| \
24048          .     : '\(.\)' 2>/dev/null ||
24049 echo X"$ac_dest" |
24050     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24051           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24052           /^X\(\/\/\)$/{ s//\1/; q; }
24053           /^X\(\/\).*/{ s//\1/; q; }
24054           s/.*/./; q'`
24055   { if $as_mkdir_p; then
24056     mkdir -p "$ac_dir"
24057   else
24058     as_dir="$ac_dir"
24059     as_dirs=
24060     while test ! -d "$as_dir"; do
24061       as_dirs="$as_dir $as_dirs"
24062       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24064          X"$as_dir" : 'X\(//\)[^/]' \| \
24065          X"$as_dir" : 'X\(//\)$' \| \
24066          X"$as_dir" : 'X\(/\)' \| \
24067          .     : '\(.\)' 2>/dev/null ||
24068 echo X"$as_dir" |
24069     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24070           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24071           /^X\(\/\/\)$/{ s//\1/; q; }
24072           /^X\(\/\).*/{ s//\1/; q; }
24073           s/.*/./; q'`
24074     done
24075     test ! -n "$as_dirs" || mkdir $as_dirs
24076   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24077 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24078    { (exit 1); exit 1; }; }; }
24079
24080   ac_builddir=.
24081
24082 if test "$ac_dir" != .; then
24083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24084   # A "../" for each directory in $ac_dir_suffix.
24085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24086 else
24087   ac_dir_suffix= ac_top_builddir=
24088 fi
24089
24090 case $srcdir in
24091   .)  # No --srcdir option.  We are building in place.
24092     ac_srcdir=.
24093     if test -z "$ac_top_builddir"; then
24094        ac_top_srcdir=.
24095     else
24096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24097     fi ;;
24098   [\\/]* | ?:[\\/]* )  # Absolute path.
24099     ac_srcdir=$srcdir$ac_dir_suffix;
24100     ac_top_srcdir=$srcdir ;;
24101   *) # Relative path.
24102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24104 esac
24105
24106 # Do not use `cd foo && pwd` to compute absolute paths, because
24107 # the directories may not exist.
24108 case `pwd` in
24109 .) ac_abs_builddir="$ac_dir";;
24110 *)
24111   case "$ac_dir" in
24112   .) ac_abs_builddir=`pwd`;;
24113   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24114   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24115   esac;;
24116 esac
24117 case $ac_abs_builddir in
24118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24119 *)
24120   case ${ac_top_builddir}. in
24121   .) ac_abs_top_builddir=$ac_abs_builddir;;
24122   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24123   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24124   esac;;
24125 esac
24126 case $ac_abs_builddir in
24127 .) ac_abs_srcdir=$ac_srcdir;;
24128 *)
24129   case $ac_srcdir in
24130   .) ac_abs_srcdir=$ac_abs_builddir;;
24131   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24132   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24133   esac;;
24134 esac
24135 case $ac_abs_builddir in
24136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24137 *)
24138   case $ac_top_srcdir in
24139   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24140   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24141   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24142   esac;;
24143 esac
24144
24145
24146   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24147 echo "$as_me: executing $ac_dest commands" >&6;}
24148   case $ac_dest in
24149     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24150   # Strip MF so we end up with the name of the file.
24151   mf=`echo "$mf" | sed -e 's/:.*$//'`
24152   # Check whether this is an Automake generated Makefile or not.
24153   # We used to match only the files named `Makefile.in', but
24154   # some people rename them; so instead we look at the file content.
24155   # Grep'ing the first line is not enough: some people post-process
24156   # each Makefile.in and add a new line on top of each file to say so.
24157   # So let's grep whole file.
24158   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24159     dirpart=`(dirname "$mf") 2>/dev/null ||
24160 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24161          X"$mf" : 'X\(//\)[^/]' \| \
24162          X"$mf" : 'X\(//\)$' \| \
24163          X"$mf" : 'X\(/\)' \| \
24164          .     : '\(.\)' 2>/dev/null ||
24165 echo X"$mf" |
24166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24167           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24168           /^X\(\/\/\)$/{ s//\1/; q; }
24169           /^X\(\/\).*/{ s//\1/; q; }
24170           s/.*/./; q'`
24171   else
24172     continue
24173   fi
24174   # Extract the definition of DEPDIR, am__include, and am__quote
24175   # from the Makefile without running `make'.
24176   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24177   test -z "$DEPDIR" && continue
24178   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24179   test -z "am__include" && continue
24180   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24181   # When using ansi2knr, U may be empty or an underscore; expand it
24182   U=`sed -n 's/^U = //p' < "$mf"`
24183   # Find all dependency output files, they are included files with
24184   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24185   # simplest approach to changing $(DEPDIR) to its actual value in the
24186   # expansion.
24187   for file in `sed -n "
24188     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24189        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24190     # Make sure the directory exists.
24191     test -f "$dirpart/$file" && continue
24192     fdir=`(dirname "$file") 2>/dev/null ||
24193 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24194          X"$file" : 'X\(//\)[^/]' \| \
24195          X"$file" : 'X\(//\)$' \| \
24196          X"$file" : 'X\(/\)' \| \
24197          .     : '\(.\)' 2>/dev/null ||
24198 echo X"$file" |
24199     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24200           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24201           /^X\(\/\/\)$/{ s//\1/; q; }
24202           /^X\(\/\).*/{ s//\1/; q; }
24203           s/.*/./; q'`
24204     { if $as_mkdir_p; then
24205     mkdir -p $dirpart/$fdir
24206   else
24207     as_dir=$dirpart/$fdir
24208     as_dirs=
24209     while test ! -d "$as_dir"; do
24210       as_dirs="$as_dir $as_dirs"
24211       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24213          X"$as_dir" : 'X\(//\)[^/]' \| \
24214          X"$as_dir" : 'X\(//\)$' \| \
24215          X"$as_dir" : 'X\(/\)' \| \
24216          .     : '\(.\)' 2>/dev/null ||
24217 echo X"$as_dir" |
24218     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24219           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24220           /^X\(\/\/\)$/{ s//\1/; q; }
24221           /^X\(\/\).*/{ s//\1/; q; }
24222           s/.*/./; q'`
24223     done
24224     test ! -n "$as_dirs" || mkdir $as_dirs
24225   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24226 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24227    { (exit 1); exit 1; }; }; }
24228
24229     # echo "creating $dirpart/$file"
24230     echo '# dummy' > "$dirpart/$file"
24231   done
24232 done
24233  ;;
24234   esac
24235 done
24236 _ACEOF
24237
24238 cat >>$CONFIG_STATUS <<\_ACEOF
24239
24240 { (exit 0); exit 0; }
24241 _ACEOF
24242 chmod +x $CONFIG_STATUS
24243 ac_clean_files=$ac_clean_files_save
24244
24245
24246 # configure is writing to config.log, and then calls config.status.
24247 # config.status does its own redirection, appending to config.log.
24248 # Unfortunately, on DOS this fails, as config.log is still kept open
24249 # by configure, so config.status won't be able to write to it; its
24250 # output is simply discarded.  So we exec the FD to /dev/null,
24251 # effectively closing config.log, so it can be properly (re)opened and
24252 # appended to by config.status.  When coming back to configure, we
24253 # need to make the FD available again.
24254 if test "$no_create" != yes; then
24255   ac_cs_success=:
24256   ac_config_status_args=
24257   test "$silent" = yes &&
24258     ac_config_status_args="$ac_config_status_args --quiet"
24259   exec 5>/dev/null
24260   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24261   exec 5>>config.log
24262   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24263   # would make configure fail if this is the last instruction.
24264   $ac_cs_success || { (exit 1); exit 1; }
24265 fi
24266