Merged in release_15.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.5.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # $LLVM_COPYRIGHT
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME='llvm'
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.5'
429 PACKAGE_STRING='llvm 1.5'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441 # Factoring default headers for most tests.
442 ac_includes_default="\
443 #include <stdio.h>
444 #if HAVE_SYS_TYPES_H
445 # include <sys/types.h>
446 #endif
447 #if HAVE_SYS_STAT_H
448 # include <sys/stat.h>
449 #endif
450 #if STDC_HEADERS
451 # include <stdlib.h>
452 # include <stddef.h>
453 #else
454 # if HAVE_STDLIB_H
455 #  include <stdlib.h>
456 # endif
457 #endif
458 #if HAVE_STRING_H
459 # if !STDC_HEADERS && HAVE_MEMORY_H
460 #  include <memory.h>
461 # endif
462 # include <string.h>
463 #endif
464 #if HAVE_STRINGS_H
465 # include <strings.h>
466 #endif
467 #if HAVE_INTTYPES_H
468 # include <inttypes.h>
469 #else
470 # if HAVE_STDINT_H
471 #  include <stdint.h>
472 # endif
473 #endif
474 #if HAVE_UNISTD_H
475 # include <unistd.h>
476 #endif"
477
478 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 LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
479 ac_subst_files=''
480
481 # Initialize some variables set by options.
482 ac_init_help=
483 ac_init_version=false
484 # The variables have the same names as the options, with
485 # dashes changed to underlines.
486 cache_file=/dev/null
487 exec_prefix=NONE
488 no_create=
489 no_recursion=
490 prefix=NONE
491 program_prefix=NONE
492 program_suffix=NONE
493 program_transform_name=s,x,x,
494 silent=
495 site=
496 srcdir=
497 verbose=
498 x_includes=NONE
499 x_libraries=NONE
500
501 # Installation directory options.
502 # These are left unexpanded so users can "make install exec_prefix=/foo"
503 # and all the variables that are supposed to be based on exec_prefix
504 # by default will actually change.
505 # Use braces instead of parens because sh, perl, etc. also accept them.
506 bindir='${exec_prefix}/bin'
507 sbindir='${exec_prefix}/sbin'
508 libexecdir='${exec_prefix}/libexec'
509 datadir='${prefix}/share'
510 sysconfdir='${prefix}/etc'
511 sharedstatedir='${prefix}/com'
512 localstatedir='${prefix}/var'
513 libdir='${exec_prefix}/lib'
514 includedir='${prefix}/include'
515 oldincludedir='/usr/include'
516 infodir='${prefix}/info'
517 mandir='${prefix}/man'
518
519 ac_prev=
520 for ac_option
521 do
522   # If the previous option needs an argument, assign it.
523   if test -n "$ac_prev"; then
524     eval "$ac_prev=\$ac_option"
525     ac_prev=
526     continue
527   fi
528
529   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
530
531   # Accept the important Cygnus configure options, so we can diagnose typos.
532
533   case $ac_option in
534
535   -bindir | --bindir | --bindi | --bind | --bin | --bi)
536     ac_prev=bindir ;;
537   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
538     bindir=$ac_optarg ;;
539
540   -build | --build | --buil | --bui | --bu)
541     ac_prev=build_alias ;;
542   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
543     build_alias=$ac_optarg ;;
544
545   -cache-file | --cache-file | --cache-fil | --cache-fi \
546   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
547     ac_prev=cache_file ;;
548   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
549   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
550     cache_file=$ac_optarg ;;
551
552   --config-cache | -C)
553     cache_file=config.cache ;;
554
555   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
556     ac_prev=datadir ;;
557   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
558   | --da=*)
559     datadir=$ac_optarg ;;
560
561   -disable-* | --disable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     eval "enable_$ac_feature=no" ;;
569
570   -enable-* | --enable-*)
571     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
572     # Reject names that are not valid shell variable names.
573     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
575    { (exit 1); exit 1; }; }
576     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
577     case $ac_option in
578       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
579       *) ac_optarg=yes ;;
580     esac
581     eval "enable_$ac_feature='$ac_optarg'" ;;
582
583   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
584   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
585   | --exec | --exe | --ex)
586     ac_prev=exec_prefix ;;
587   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
588   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
589   | --exec=* | --exe=* | --ex=*)
590     exec_prefix=$ac_optarg ;;
591
592   -gas | --gas | --ga | --g)
593     # Obsolete; use --with-gas.
594     with_gas=yes ;;
595
596   -help | --help | --hel | --he | -h)
597     ac_init_help=long ;;
598   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
599     ac_init_help=recursive ;;
600   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
601     ac_init_help=short ;;
602
603   -host | --host | --hos | --ho)
604     ac_prev=host_alias ;;
605   -host=* | --host=* | --hos=* | --ho=*)
606     host_alias=$ac_optarg ;;
607
608   -includedir | --includedir | --includedi | --included | --include \
609   | --includ | --inclu | --incl | --inc)
610     ac_prev=includedir ;;
611   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
612   | --includ=* | --inclu=* | --incl=* | --inc=*)
613     includedir=$ac_optarg ;;
614
615   -infodir | --infodir | --infodi | --infod | --info | --inf)
616     ac_prev=infodir ;;
617   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
618     infodir=$ac_optarg ;;
619
620   -libdir | --libdir | --libdi | --libd)
621     ac_prev=libdir ;;
622   -libdir=* | --libdir=* | --libdi=* | --libd=*)
623     libdir=$ac_optarg ;;
624
625   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
626   | --libexe | --libex | --libe)
627     ac_prev=libexecdir ;;
628   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
629   | --libexe=* | --libex=* | --libe=*)
630     libexecdir=$ac_optarg ;;
631
632   -localstatedir | --localstatedir | --localstatedi | --localstated \
633   | --localstate | --localstat | --localsta | --localst \
634   | --locals | --local | --loca | --loc | --lo)
635     ac_prev=localstatedir ;;
636   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
637   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
638   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
639     localstatedir=$ac_optarg ;;
640
641   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
642     ac_prev=mandir ;;
643   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
644     mandir=$ac_optarg ;;
645
646   -nfp | --nfp | --nf)
647     # Obsolete; use --without-fp.
648     with_fp=no ;;
649
650   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
651   | --no-cr | --no-c | -n)
652     no_create=yes ;;
653
654   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
655   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
656     no_recursion=yes ;;
657
658   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
659   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
660   | --oldin | --oldi | --old | --ol | --o)
661     ac_prev=oldincludedir ;;
662   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
663   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
664   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
665     oldincludedir=$ac_optarg ;;
666
667   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
668     ac_prev=prefix ;;
669   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
670     prefix=$ac_optarg ;;
671
672   -program-prefix | --program-prefix | --program-prefi | --program-pref \
673   | --program-pre | --program-pr | --program-p)
674     ac_prev=program_prefix ;;
675   -program-prefix=* | --program-prefix=* | --program-prefi=* \
676   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
677     program_prefix=$ac_optarg ;;
678
679   -program-suffix | --program-suffix | --program-suffi | --program-suff \
680   | --program-suf | --program-su | --program-s)
681     ac_prev=program_suffix ;;
682   -program-suffix=* | --program-suffix=* | --program-suffi=* \
683   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
684     program_suffix=$ac_optarg ;;
685
686   -program-transform-name | --program-transform-name \
687   | --program-transform-nam | --program-transform-na \
688   | --program-transform-n | --program-transform- \
689   | --program-transform | --program-transfor \
690   | --program-transfo | --program-transf \
691   | --program-trans | --program-tran \
692   | --progr-tra | --program-tr | --program-t)
693     ac_prev=program_transform_name ;;
694   -program-transform-name=* | --program-transform-name=* \
695   | --program-transform-nam=* | --program-transform-na=* \
696   | --program-transform-n=* | --program-transform-=* \
697   | --program-transform=* | --program-transfor=* \
698   | --program-transfo=* | --program-transf=* \
699   | --program-trans=* | --program-tran=* \
700   | --progr-tra=* | --program-tr=* | --program-t=*)
701     program_transform_name=$ac_optarg ;;
702
703   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
704   | -silent | --silent | --silen | --sile | --sil)
705     silent=yes ;;
706
707   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
708     ac_prev=sbindir ;;
709   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
710   | --sbi=* | --sb=*)
711     sbindir=$ac_optarg ;;
712
713   -sharedstatedir | --sharedstatedir | --sharedstatedi \
714   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
715   | --sharedst | --shareds | --shared | --share | --shar \
716   | --sha | --sh)
717     ac_prev=sharedstatedir ;;
718   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
719   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
720   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
721   | --sha=* | --sh=*)
722     sharedstatedir=$ac_optarg ;;
723
724   -site | --site | --sit)
725     ac_prev=site ;;
726   -site=* | --site=* | --sit=*)
727     site=$ac_optarg ;;
728
729   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
730     ac_prev=srcdir ;;
731   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
732     srcdir=$ac_optarg ;;
733
734   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
735   | --syscon | --sysco | --sysc | --sys | --sy)
736     ac_prev=sysconfdir ;;
737   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
738   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
739     sysconfdir=$ac_optarg ;;
740
741   -target | --target | --targe | --targ | --tar | --ta | --t)
742     ac_prev=target_alias ;;
743   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
744     target_alias=$ac_optarg ;;
745
746   -v | -verbose | --verbose | --verbos | --verbo | --verb)
747     verbose=yes ;;
748
749   -version | --version | --versio | --versi | --vers | -V)
750     ac_init_version=: ;;
751
752   -with-* | --with-*)
753     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
754     # Reject names that are not valid shell variable names.
755     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756       { echo "$as_me: error: invalid package name: $ac_package" >&2
757    { (exit 1); exit 1; }; }
758     ac_package=`echo $ac_package| sed 's/-/_/g'`
759     case $ac_option in
760       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
761       *) ac_optarg=yes ;;
762     esac
763     eval "with_$ac_package='$ac_optarg'" ;;
764
765   -without-* | --without-*)
766     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
767     # Reject names that are not valid shell variable names.
768     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
769       { echo "$as_me: error: invalid package name: $ac_package" >&2
770    { (exit 1); exit 1; }; }
771     ac_package=`echo $ac_package | sed 's/-/_/g'`
772     eval "with_$ac_package=no" ;;
773
774   --x)
775     # Obsolete; use --with-x.
776     with_x=yes ;;
777
778   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
779   | --x-incl | --x-inc | --x-in | --x-i)
780     ac_prev=x_includes ;;
781   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
782   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
783     x_includes=$ac_optarg ;;
784
785   -x-libraries | --x-libraries | --x-librarie | --x-librari \
786   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
787     ac_prev=x_libraries ;;
788   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
789   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
790     x_libraries=$ac_optarg ;;
791
792   -*) { echo "$as_me: error: unrecognized option: $ac_option
793 Try \`$0 --help' for more information." >&2
794    { (exit 1); exit 1; }; }
795     ;;
796
797   *=*)
798     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
799     # Reject names that are not valid shell variable names.
800     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
801       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
802    { (exit 1); exit 1; }; }
803     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
804     eval "$ac_envvar='$ac_optarg'"
805     export $ac_envvar ;;
806
807   *)
808     # FIXME: should be removed in autoconf 3.0.
809     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
810     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
812     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813     ;;
814
815   esac
816 done
817
818 if test -n "$ac_prev"; then
819   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
820   { echo "$as_me: error: missing argument to $ac_option" >&2
821    { (exit 1); exit 1; }; }
822 fi
823
824 # Be sure to have absolute paths.
825 for ac_var in exec_prefix prefix
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
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 # Be sure to have absolute paths.
836 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
837               localstatedir libdir includedir oldincludedir infodir mandir
838 do
839   eval ac_val=$`echo $ac_var`
840   case $ac_val in
841     [\\/$]* | ?:[\\/]* ) ;;
842     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843    { (exit 1); exit 1; }; };;
844   esac
845 done
846
847 # There might be people who depend on the old broken behavior: `$host'
848 # used to hold the argument of --host etc.
849 # FIXME: To remove some day.
850 build=$build_alias
851 host=$host_alias
852 target=$target_alias
853
854 # FIXME: To remove some day.
855 if test "x$host_alias" != x; then
856   if test "x$build_alias" = x; then
857     cross_compiling=maybe
858     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
859     If a cross compiler is detected then cross compile mode will be used." >&2
860   elif test "x$build_alias" != "x$host_alias"; then
861     cross_compiling=yes
862   fi
863 fi
864
865 ac_tool_prefix=
866 test -n "$host_alias" && ac_tool_prefix=$host_alias-
867
868 test "$silent" = yes && exec 6>/dev/null
869
870
871 # Find the source files, if location was not specified.
872 if test -z "$srcdir"; then
873   ac_srcdir_defaulted=yes
874   # Try the directory containing this script, then its parent.
875   ac_confdir=`(dirname "$0") 2>/dev/null ||
876 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
877          X"$0" : 'X\(//\)[^/]' \| \
878          X"$0" : 'X\(//\)$' \| \
879          X"$0" : 'X\(/\)' \| \
880          .     : '\(.\)' 2>/dev/null ||
881 echo X"$0" |
882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
883           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
884           /^X\(\/\/\)$/{ s//\1/; q; }
885           /^X\(\/\).*/{ s//\1/; q; }
886           s/.*/./; q'`
887   srcdir=$ac_confdir
888   if test ! -r $srcdir/$ac_unique_file; then
889     srcdir=..
890   fi
891 else
892   ac_srcdir_defaulted=no
893 fi
894 if test ! -r $srcdir/$ac_unique_file; then
895   if test "$ac_srcdir_defaulted" = yes; then
896     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
897    { (exit 1); exit 1; }; }
898   else
899     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
900    { (exit 1); exit 1; }; }
901   fi
902 fi
903 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
904   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
905    { (exit 1); exit 1; }; }
906 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
907 ac_env_build_alias_set=${build_alias+set}
908 ac_env_build_alias_value=$build_alias
909 ac_cv_env_build_alias_set=${build_alias+set}
910 ac_cv_env_build_alias_value=$build_alias
911 ac_env_host_alias_set=${host_alias+set}
912 ac_env_host_alias_value=$host_alias
913 ac_cv_env_host_alias_set=${host_alias+set}
914 ac_cv_env_host_alias_value=$host_alias
915 ac_env_target_alias_set=${target_alias+set}
916 ac_env_target_alias_value=$target_alias
917 ac_cv_env_target_alias_set=${target_alias+set}
918 ac_cv_env_target_alias_value=$target_alias
919 ac_env_CC_set=${CC+set}
920 ac_env_CC_value=$CC
921 ac_cv_env_CC_set=${CC+set}
922 ac_cv_env_CC_value=$CC
923 ac_env_CFLAGS_set=${CFLAGS+set}
924 ac_env_CFLAGS_value=$CFLAGS
925 ac_cv_env_CFLAGS_set=${CFLAGS+set}
926 ac_cv_env_CFLAGS_value=$CFLAGS
927 ac_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_env_LDFLAGS_value=$LDFLAGS
929 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_cv_env_LDFLAGS_value=$LDFLAGS
931 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_env_CPPFLAGS_value=$CPPFLAGS
933 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
935 ac_env_CPP_set=${CPP+set}
936 ac_env_CPP_value=$CPP
937 ac_cv_env_CPP_set=${CPP+set}
938 ac_cv_env_CPP_value=$CPP
939 ac_env_CXX_set=${CXX+set}
940 ac_env_CXX_value=$CXX
941 ac_cv_env_CXX_set=${CXX+set}
942 ac_cv_env_CXX_value=$CXX
943 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
944 ac_env_CXXFLAGS_value=$CXXFLAGS
945 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
947 ac_env_CXXCPP_set=${CXXCPP+set}
948 ac_env_CXXCPP_value=$CXXCPP
949 ac_cv_env_CXXCPP_set=${CXXCPP+set}
950 ac_cv_env_CXXCPP_value=$CXXCPP
951 ac_env_F77_set=${F77+set}
952 ac_env_F77_value=$F77
953 ac_cv_env_F77_set=${F77+set}
954 ac_cv_env_F77_value=$F77
955 ac_env_FFLAGS_set=${FFLAGS+set}
956 ac_env_FFLAGS_value=$FFLAGS
957 ac_cv_env_FFLAGS_set=${FFLAGS+set}
958 ac_cv_env_FFLAGS_value=$FFLAGS
959
960 #
961 # Report the --help message.
962 #
963 if test "$ac_init_help" = "long"; then
964   # Omit some internal or obsolete options to make the list less imposing.
965   # This message is too long to be a string in the A/UX 3.1 sh.
966   cat <<_ACEOF
967 \`configure' configures llvm 1.5 to adapt to many kinds of systems.
968
969 Usage: $0 [OPTION]... [VAR=VALUE]...
970
971 To assign environment variables (e.g., CC, CFLAGS...), specify them as
972 VAR=VALUE.  See below for descriptions of some of the useful variables.
973
974 Defaults for the options are specified in brackets.
975
976 Configuration:
977   -h, --help              display this help and exit
978       --help=short        display options specific to this package
979       --help=recursive    display the short help of all the included packages
980   -V, --version           display version information and exit
981   -q, --quiet, --silent   do not print \`checking...' messages
982       --cache-file=FILE   cache test results in FILE [disabled]
983   -C, --config-cache      alias for \`--cache-file=config.cache'
984   -n, --no-create         do not create output files
985       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
986
987 _ACEOF
988
989   cat <<_ACEOF
990 Installation directories:
991   --prefix=PREFIX         install architecture-independent files in PREFIX
992                           [$ac_default_prefix]
993   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
994                           [PREFIX]
995
996 By default, \`make install' will install all the files in
997 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
998 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999 for instance \`--prefix=\$HOME'.
1000
1001 For better control, use the options below.
1002
1003 Fine tuning of the installation directories:
1004   --bindir=DIR           user executables [EPREFIX/bin]
1005   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1006   --libexecdir=DIR       program executables [EPREFIX/libexec]
1007   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1008   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1009   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1010   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1011   --libdir=DIR           object code libraries [EPREFIX/lib]
1012   --includedir=DIR       C header files [PREFIX/include]
1013   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1014   --infodir=DIR          info documentation [PREFIX/info]
1015   --mandir=DIR           man documentation [PREFIX/man]
1016 _ACEOF
1017
1018   cat <<\_ACEOF
1019
1020 System types:
1021   --build=BUILD     configure for building on BUILD [guessed]
1022   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1023   --target=TARGET   configure for building compilers for TARGET [HOST]
1024 _ACEOF
1025 fi
1026
1027 if test -n "$ac_init_help"; then
1028   case $ac_init_help in
1029      short | recursive ) echo "Configuration of llvm 1.5:";;
1030    esac
1031   cat <<\_ACEOF
1032
1033 Optional Features:
1034   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1035   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1036   --enable-optimized
1037   --enable-jit            Enable Just In Time Compiling (default is YES)
1038   --enable-doxygen        Build doxygen documentation (default is NO)
1039   --enable-target         Build specific host targets:
1040                           all,host-only,{target-name} (default=all)
1041   --enable-ltdl-install   install libltdl
1042   --enable-shared[=PKGS]
1043                           build shared libraries [default=yes]
1044   --enable-static[=PKGS]
1045                           build static libraries [default=yes]
1046   --enable-fast-install[=PKGS]
1047                           optimize for fast installation [default=yes]
1048   --disable-libtool-lock  avoid locking (might break parallel builds)
1049
1050 Optional Packages:
1051   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1052   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1053   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1054                           searches PATH)
1055   --with-tclinclude       directory where tcl headers are
1056   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1057   --with-pic              try to use only PIC/non-PIC objects [default=use
1058                           both]
1059   --with-tags[=TAGS]
1060                           include additional configurations [automatic]
1061
1062 Some influential environment variables:
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1066               nonstandard directory <lib dir>
1067   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068               headers in a nonstandard directory <include dir>
1069   CPP         C preprocessor
1070   CXX         C++ compiler command
1071   CXXFLAGS    C++ compiler flags
1072   CXXCPP      C++ preprocessor
1073   F77         Fortran 77 compiler command
1074   FFLAGS      Fortran 77 compiler flags
1075
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1078
1079 Report bugs to <llvmbugs@cs.uiuc.edu>.
1080 _ACEOF
1081 fi
1082
1083 if test "$ac_init_help" = "recursive"; then
1084   # If there are subdirs, report their specific --help.
1085   ac_popdir=`pwd`
1086   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087     test -d $ac_dir || continue
1088     ac_builddir=.
1089
1090 if test "$ac_dir" != .; then
1091   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092   # A "../" for each directory in $ac_dir_suffix.
1093   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 else
1095   ac_dir_suffix= ac_top_builddir=
1096 fi
1097
1098 case $srcdir in
1099   .)  # No --srcdir option.  We are building in place.
1100     ac_srcdir=.
1101     if test -z "$ac_top_builddir"; then
1102        ac_top_srcdir=.
1103     else
1104        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105     fi ;;
1106   [\\/]* | ?:[\\/]* )  # Absolute path.
1107     ac_srcdir=$srcdir$ac_dir_suffix;
1108     ac_top_srcdir=$srcdir ;;
1109   *) # Relative path.
1110     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112 esac
1113
1114 # Do not use `cd foo && pwd` to compute absolute paths, because
1115 # the directories may not exist.
1116 case `pwd` in
1117 .) ac_abs_builddir="$ac_dir";;
1118 *)
1119   case "$ac_dir" in
1120   .) ac_abs_builddir=`pwd`;;
1121   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123   esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 *)
1128   case ${ac_top_builddir}. in
1129   .) ac_abs_top_builddir=$ac_abs_builddir;;
1130   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132   esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_srcdir=$ac_srcdir;;
1136 *)
1137   case $ac_srcdir in
1138   .) ac_abs_srcdir=$ac_abs_builddir;;
1139   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141   esac;;
1142 esac
1143 case $ac_abs_builddir in
1144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 *)
1146   case $ac_top_srcdir in
1147   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150   esac;;
1151 esac
1152
1153     cd $ac_dir
1154     # Check for guested configure; otherwise get Cygnus style configure.
1155     if test -f $ac_srcdir/configure.gnu; then
1156       echo
1157       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1158     elif test -f $ac_srcdir/configure; then
1159       echo
1160       $SHELL $ac_srcdir/configure  --help=recursive
1161     elif test -f $ac_srcdir/configure.ac ||
1162            test -f $ac_srcdir/configure.in; then
1163       echo
1164       $ac_configure --help
1165     else
1166       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167     fi
1168     cd $ac_popdir
1169   done
1170 fi
1171
1172 test -n "$ac_init_help" && exit 0
1173 if $ac_init_version; then
1174   cat <<\_ACEOF
1175 llvm configure 1.5
1176 generated by GNU Autoconf 2.59
1177
1178 Copyright (C) 2003 Free Software Foundation, Inc.
1179 This configure script is free software; the Free Software Foundation
1180 gives unlimited permission to copy, distribute and modify it.
1181
1182 $LLVM_COPYRIGHT
1183 _ACEOF
1184   exit 0
1185 fi
1186 exec 5>config.log
1187 cat >&5 <<_ACEOF
1188 This file contains any messages produced by compilers while
1189 running configure, to aid debugging if configure makes a mistake.
1190
1191 It was created by llvm $as_me 1.5, which was
1192 generated by GNU Autoconf 2.59.  Invocation command line was
1193
1194   $ $0 $@
1195
1196 _ACEOF
1197 {
1198 cat <<_ASUNAME
1199 ## --------- ##
1200 ## Platform. ##
1201 ## --------- ##
1202
1203 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
1209 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1211
1212 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1213 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1214 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1216 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1217 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1218 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1219
1220 _ASUNAME
1221
1222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223 for as_dir in $PATH
1224 do
1225   IFS=$as_save_IFS
1226   test -z "$as_dir" && as_dir=.
1227   echo "PATH: $as_dir"
1228 done
1229
1230 } >&5
1231
1232 cat >&5 <<_ACEOF
1233
1234
1235 ## ----------- ##
1236 ## Core tests. ##
1237 ## ----------- ##
1238
1239 _ACEOF
1240
1241
1242 # Keep a trace of the command line.
1243 # Strip out --no-create and --no-recursion so they do not pile up.
1244 # Strip out --silent because we don't want to record it for future runs.
1245 # Also quote any args containing shell meta-characters.
1246 # Make two passes to allow for proper duplicate-argument suppression.
1247 ac_configure_args=
1248 ac_configure_args0=
1249 ac_configure_args1=
1250 ac_sep=
1251 ac_must_keep_next=false
1252 for ac_pass in 1 2
1253 do
1254   for ac_arg
1255   do
1256     case $ac_arg in
1257     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259     | -silent | --silent | --silen | --sile | --sil)
1260       continue ;;
1261     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263     esac
1264     case $ac_pass in
1265     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266     2)
1267       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268       if test $ac_must_keep_next = true; then
1269         ac_must_keep_next=false # Got value, back to normal.
1270       else
1271         case $ac_arg in
1272           *=* | --config-cache | -C | -disable-* | --disable-* \
1273           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275           | -with-* | --with-* | -without-* | --without-* | --x)
1276             case "$ac_configure_args0 " in
1277               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278             esac
1279             ;;
1280           -* ) ac_must_keep_next=true ;;
1281         esac
1282       fi
1283       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284       # Get rid of the leading space.
1285       ac_sep=" "
1286       ;;
1287     esac
1288   done
1289 done
1290 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292
1293 # When interrupted or exit'd, cleanup temporary files, and complete
1294 # config.log.  We remove comments because anyway the quotes in there
1295 # would cause problems or look ugly.
1296 # WARNING: Be sure not to use single quotes in there, as some shells,
1297 # such as our DU 5.0 friend, will then `close' the trap.
1298 trap 'exit_status=$?
1299   # Save into config.log some information that might help in debugging.
1300   {
1301     echo
1302
1303     cat <<\_ASBOX
1304 ## ---------------- ##
1305 ## Cache variables. ##
1306 ## ---------------- ##
1307 _ASBOX
1308     echo
1309     # The following way of writing the cache mishandles newlines in values,
1310 {
1311   (set) 2>&1 |
1312     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313     *ac_space=\ *)
1314       sed -n \
1315         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317       ;;
1318     *)
1319       sed -n \
1320         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1321       ;;
1322     esac;
1323 }
1324     echo
1325
1326     cat <<\_ASBOX
1327 ## ----------------- ##
1328 ## Output variables. ##
1329 ## ----------------- ##
1330 _ASBOX
1331     echo
1332     for ac_var in $ac_subst_vars
1333     do
1334       eval ac_val=$`echo $ac_var`
1335       echo "$ac_var='"'"'$ac_val'"'"'"
1336     done | sort
1337     echo
1338
1339     if test -n "$ac_subst_files"; then
1340       cat <<\_ASBOX
1341 ## ------------- ##
1342 ## Output files. ##
1343 ## ------------- ##
1344 _ASBOX
1345       echo
1346       for ac_var in $ac_subst_files
1347       do
1348         eval ac_val=$`echo $ac_var`
1349         echo "$ac_var='"'"'$ac_val'"'"'"
1350       done | sort
1351       echo
1352     fi
1353
1354     if test -s confdefs.h; then
1355       cat <<\_ASBOX
1356 ## ----------- ##
1357 ## confdefs.h. ##
1358 ## ----------- ##
1359 _ASBOX
1360       echo
1361       sed "/^$/d" confdefs.h | sort
1362       echo
1363     fi
1364     test "$ac_signal" != 0 &&
1365       echo "$as_me: caught signal $ac_signal"
1366     echo "$as_me: exit $exit_status"
1367   } >&5
1368   rm -f core *.core &&
1369   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370     exit $exit_status
1371      ' 0
1372 for ac_signal in 1 2 13 15; do
1373   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374 done
1375 ac_signal=0
1376
1377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1378 rm -rf conftest* confdefs.h
1379 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380 echo >confdefs.h
1381
1382 # Predefined preprocessor variables.
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_NAME "$PACKAGE_NAME"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1396 _ACEOF
1397
1398
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_STRING "$PACKAGE_STRING"
1401 _ACEOF
1402
1403
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406 _ACEOF
1407
1408
1409 # Let the site file select an alternate cache file if it wants to.
1410 # Prefer explicitly selected file to automatically selected ones.
1411 if test -z "$CONFIG_SITE"; then
1412   if test "x$prefix" != xNONE; then
1413     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414   else
1415     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416   fi
1417 fi
1418 for ac_site_file in $CONFIG_SITE; do
1419   if test -r "$ac_site_file"; then
1420     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421 echo "$as_me: loading site script $ac_site_file" >&6;}
1422     sed 's/^/| /' "$ac_site_file" >&5
1423     . "$ac_site_file"
1424   fi
1425 done
1426
1427 if test -r "$cache_file"; then
1428   # Some versions of bash will fail to source /dev/null (special
1429   # files actually), so we avoid doing that.
1430   if test -f "$cache_file"; then
1431     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432 echo "$as_me: loading cache $cache_file" >&6;}
1433     case $cache_file in
1434       [\\/]* | ?:[\\/]* ) . $cache_file;;
1435       *)                      . ./$cache_file;;
1436     esac
1437   fi
1438 else
1439   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440 echo "$as_me: creating cache $cache_file" >&6;}
1441   >$cache_file
1442 fi
1443
1444 # Check that the precious variables saved in the cache have kept the same
1445 # value.
1446 ac_cache_corrupted=false
1447 for ac_var in `(set) 2>&1 |
1448                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450   eval ac_new_set=\$ac_env_${ac_var}_set
1451   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452   eval ac_new_val="\$ac_env_${ac_var}_value"
1453   case $ac_old_set,$ac_new_set in
1454     set,)
1455       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457       ac_cache_corrupted=: ;;
1458     ,set)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,);;
1463     *)
1464       if test "x$ac_old_val" != "x$ac_new_val"; then
1465         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1468 echo "$as_me:   former value:  $ac_old_val" >&2;}
1469         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1470 echo "$as_me:   current value: $ac_new_val" >&2;}
1471         ac_cache_corrupted=:
1472       fi;;
1473   esac
1474   # Pass precious variables to config.status.
1475   if test "$ac_new_set" = set; then
1476     case $ac_new_val in
1477     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479     *) ac_arg=$ac_var=$ac_new_val ;;
1480     esac
1481     case " $ac_configure_args " in
1482       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1483       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484     esac
1485   fi
1486 done
1487 if $ac_cache_corrupted; then
1488   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492    { (exit 1); exit 1; }; }
1493 fi
1494
1495 ac_ext=c
1496 ac_cpp='$CPP $CPPFLAGS'
1497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1529
1530
1531
1532
1533
1534
1535
1536 ac_aux_dir=
1537 for ac_dir in autoconf $srcdir/autoconf; do
1538   if test -f $ac_dir/install-sh; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/install-sh -c"
1541     break
1542   elif test -f $ac_dir/install.sh; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/install.sh -c"
1545     break
1546   elif test -f $ac_dir/shtool; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/shtool install -c"
1549     break
1550   fi
1551 done
1552 if test -z "$ac_aux_dir"; then
1553   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1555    { (exit 1); exit 1; }; }
1556 fi
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
1561
1562 if test ${srcdir} != "." ; then
1563   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1564     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1565 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1566    { (exit 1); exit 1; }; }
1567   fi
1568 fi
1569
1570 for i in `ls ${srcdir}/projects`
1571 do
1572   if test -d ${srcdir}/projects/${i} ; then
1573     case ${i} in
1574       "CVS") ;;
1575       "sample")
1576
1577 subdirs="$subdirs projects/sample"
1578     ;;
1579       "Stacker")
1580
1581 subdirs="$subdirs projects/Stacker"
1582    ;;
1583       "llvm-test")
1584
1585 subdirs="$subdirs projects/llvm-test"
1586  ;;
1587       "llvm-reopt")
1588
1589 subdirs="$subdirs projects/llvm-reopt"
1590 ;;
1591       "llvm-gcc")
1592
1593 subdirs="$subdirs projects/llvm-gcc"
1594   ;;
1595       "llvm-java")
1596
1597 subdirs="$subdirs projects/llvm-java"
1598  ;;
1599       "llvm-tv")
1600
1601 subdirs="$subdirs projects/llvm-tv"
1602    ;;
1603       "llvm-poolalloc")
1604
1605 subdirs="$subdirs projects/llvm-poolalloc"
1606  ;;
1607       *)
1608         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1609 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1610         ;;
1611     esac
1612   fi
1613 done
1614
1615
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629   ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633    { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637    { (exit 1); exit 1; }; }
1638
1639 fi
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1642 build=$ac_cv_build
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655   ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659    { (exit 1); exit 1; }; }
1660
1661 fi
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1664 host=$ac_cv_host
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668
1669
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673   echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675   ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677   ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681    { (exit 1); exit 1; }; }
1682
1683 fi
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695   test "$program_prefix$program_suffix$program_transform_name" = \
1696     NONENONEs,x,x, &&
1697   program_prefix=${target_alias}-
1698
1699 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1700 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1701 if test "${llvm_cv_os_type+set}" = set; then
1702   echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704   case $build in
1705   *-*-aix*)
1706     llvm_cv_os_type="AIX"
1707     llvm_cv_platform_type="Unix" ;;
1708   *-*-cygwin*)
1709     llvm_cv_os_type="Cygwin"
1710     llvm_cv_platform_type="Unix" ;;
1711   *-*-darwin*)
1712     llvm_cv_os_type="Darwin"
1713     llvm_cv_platform_type="Unix" ;;
1714   *-*-freebsd*)
1715     llvm_cv_os_type="FreeBSD"
1716     llvm_cv_platform_type="Unix" ;;
1717   *-*-hpux*)
1718     llvm_cv_os_type="HP-UX"
1719     llvm_cv_platform_type="Unix" ;;
1720   *-*-interix*)
1721     llvm_cv_os_type="Interix"
1722     llvm_cv_platform_type="Unix" ;;
1723   *-*-linux*)
1724     llvm_cv_os_type="Linux"
1725     llvm_cv_platform_type="Unix" ;;
1726   *-*-solaris*)
1727     llvm_cv_os_type="SunOS"
1728     llvm_cv_platform_type="Unix" ;;
1729   *-*-win32*)
1730     llvm_cv_os_type="Win32"
1731     llvm_cv_platform_type="Win32" ;;
1732   *-*-mingw*)
1733     llvm_cv_os_type="MingW"
1734     llvm_cv_platform_type="Win32" ;;
1735   *)
1736     llvm_cv_os_type="Unknown"
1737     llvm_cv_platform_type="Unknown" ;;
1738 esac
1739 fi
1740 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741 echo "${ECHO_T}$llvm_cv_os_type" >&6
1742
1743 if test "$llvm_cv_os_type" = "Unknown" ; then
1744   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1746    { (exit 1); exit 1; }; }
1747 fi
1748
1749 OS=$llvm_cv_os_type
1750
1751
1752 case $llvm_cv_platform_type in
1753   Unix)
1754
1755 cat >>confdefs.h <<\_ACEOF
1756 #define LLVM_ON_UNIX 1
1757 _ACEOF
1758
1759     LLVM_ON_UNIX=1
1760
1761     LLVM_ON_WIN32=0
1762
1763     ;;
1764   Win32)
1765
1766 cat >>confdefs.h <<\_ACEOF
1767 #define LLVM_ON_WIN32 1
1768 _ACEOF
1769
1770     LLVM_ON_UNIX=0
1771
1772     LLVM_ON_WIN32=1
1773
1774     ;;
1775 esac
1776
1777 case $target in
1778   sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1779
1780   ;;
1781 esac
1782
1783 echo "$as_me:$LINENO: checking target architecture" >&5
1784 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1785 if test "${llvm_cv_target_arch+set}" = set; then
1786   echo $ECHO_N "(cached) $ECHO_C" >&6
1787 else
1788   case $target in
1789   i?86-*)                 llvm_cv_target_arch="x86" ;;
1790   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1791   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1792   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1793   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1794   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1795   *)                      llvm_cv_target_arch="Unknown" ;;
1796 esac
1797 fi
1798 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1799 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1800
1801 if test "$llvm_cv_target_arch" = "Unknown" ; then
1802   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1803 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1804 fi
1805
1806 ARCH=$llvm_cv_target_arch
1807
1808
1809 ac_ext=c
1810 ac_cpp='$CPP $CPPFLAGS'
1811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814 if test -n "$ac_tool_prefix"; then
1815   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_CC+set}" = set; then
1820   echo $ECHO_N "(cached) $ECHO_C" >&6
1821 else
1822   if test -n "$CC"; then
1823   ac_cv_prog_CC="$CC" # Let the user override the test.
1824 else
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1827 do
1828   IFS=$as_save_IFS
1829   test -z "$as_dir" && as_dir=.
1830   for ac_exec_ext in '' $ac_executable_extensions; do
1831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834     break 2
1835   fi
1836 done
1837 done
1838
1839 fi
1840 fi
1841 CC=$ac_cv_prog_CC
1842 if test -n "$CC"; then
1843   echo "$as_me:$LINENO: result: $CC" >&5
1844 echo "${ECHO_T}$CC" >&6
1845 else
1846   echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1848 fi
1849
1850 fi
1851 if test -z "$ac_cv_prog_CC"; then
1852   ac_ct_CC=$CC
1853   # Extract the first word of "gcc", so it can be a program name with args.
1854 set dummy gcc; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   if test -n "$ac_ct_CC"; then
1861   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1862 else
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   test -z "$as_dir" && as_dir=.
1868   for ac_exec_ext in '' $ac_executable_extensions; do
1869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870     ac_cv_prog_ac_ct_CC="gcc"
1871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872     break 2
1873   fi
1874 done
1875 done
1876
1877 fi
1878 fi
1879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1880 if test -n "$ac_ct_CC"; then
1881   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1882 echo "${ECHO_T}$ac_ct_CC" >&6
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 fi
1887
1888   CC=$ac_ct_CC
1889 else
1890   CC="$ac_cv_prog_CC"
1891 fi
1892
1893 if test -z "$CC"; then
1894   if test -n "$ac_tool_prefix"; then
1895   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1896 set dummy ${ac_tool_prefix}cc; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_CC+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   if test -n "$CC"; then
1903   ac_cv_prog_CC="$CC" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908   IFS=$as_save_IFS
1909   test -z "$as_dir" && as_dir=.
1910   for ac_exec_ext in '' $ac_executable_extensions; do
1911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912     ac_cv_prog_CC="${ac_tool_prefix}cc"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 fi
1920 fi
1921 CC=$ac_cv_prog_CC
1922 if test -n "$CC"; then
1923   echo "$as_me:$LINENO: result: $CC" >&5
1924 echo "${ECHO_T}$CC" >&6
1925 else
1926   echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1928 fi
1929
1930 fi
1931 if test -z "$ac_cv_prog_CC"; then
1932   ac_ct_CC=$CC
1933   # Extract the first word of "cc", so it can be a program name with args.
1934 set dummy cc; ac_word=$2
1935 echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   if test -n "$ac_ct_CC"; then
1941   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948   for ac_exec_ext in '' $ac_executable_extensions; do
1949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950     ac_cv_prog_ac_ct_CC="cc"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956
1957 fi
1958 fi
1959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1960 if test -n "$ac_ct_CC"; then
1961   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1962 echo "${ECHO_T}$ac_ct_CC" >&6
1963 else
1964   echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6
1966 fi
1967
1968   CC=$ac_ct_CC
1969 else
1970   CC="$ac_cv_prog_CC"
1971 fi
1972
1973 fi
1974 if test -z "$CC"; then
1975   # Extract the first word of "cc", so it can be a program name with args.
1976 set dummy cc; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   if test -n "$CC"; then
1983   ac_cv_prog_CC="$CC" # Let the user override the test.
1984 else
1985   ac_prog_rejected=no
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989   IFS=$as_save_IFS
1990   test -z "$as_dir" && as_dir=.
1991   for ac_exec_ext in '' $ac_executable_extensions; do
1992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1994        ac_prog_rejected=yes
1995        continue
1996      fi
1997     ac_cv_prog_CC="cc"
1998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999     break 2
2000   fi
2001 done
2002 done
2003
2004 if test $ac_prog_rejected = yes; then
2005   # We found a bogon in the path, so make sure we never use it.
2006   set dummy $ac_cv_prog_CC
2007   shift
2008   if test $# != 0; then
2009     # We chose a different compiler from the bogus one.
2010     # However, it has the same basename, so the bogon will be chosen
2011     # first if we set CC to just the basename; use the full file name.
2012     shift
2013     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2014   fi
2015 fi
2016 fi
2017 fi
2018 CC=$ac_cv_prog_CC
2019 if test -n "$CC"; then
2020   echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6
2022 else
2023   echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2025 fi
2026
2027 fi
2028 if test -z "$CC"; then
2029   if test -n "$ac_tool_prefix"; then
2030   for ac_prog in cl
2031   do
2032     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037   echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039   if test -n "$CC"; then
2040   ac_cv_prog_CC="$CC" # Let the user override the test.
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045   IFS=$as_save_IFS
2046   test -z "$as_dir" && as_dir=.
2047   for ac_exec_ext in '' $ac_executable_extensions; do
2048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2049     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051     break 2
2052   fi
2053 done
2054 done
2055
2056 fi
2057 fi
2058 CC=$ac_cv_prog_CC
2059 if test -n "$CC"; then
2060   echo "$as_me:$LINENO: result: $CC" >&5
2061 echo "${ECHO_T}$CC" >&6
2062 else
2063   echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6
2065 fi
2066
2067     test -n "$CC" && break
2068   done
2069 fi
2070 if test -z "$CC"; then
2071   ac_ct_CC=$CC
2072   for ac_prog in cl
2073 do
2074   # Extract the first word of "$ac_prog", so it can be a program name with args.
2075 set dummy $ac_prog; ac_word=$2
2076 echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2079   echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081   if test -n "$ac_ct_CC"; then
2082   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083 else
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2086 do
2087   IFS=$as_save_IFS
2088   test -z "$as_dir" && as_dir=.
2089   for ac_exec_ext in '' $ac_executable_extensions; do
2090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091     ac_cv_prog_ac_ct_CC="$ac_prog"
2092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093     break 2
2094   fi
2095 done
2096 done
2097
2098 fi
2099 fi
2100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101 if test -n "$ac_ct_CC"; then
2102   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103 echo "${ECHO_T}$ac_ct_CC" >&6
2104 else
2105   echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6
2107 fi
2108
2109   test -n "$ac_ct_CC" && break
2110 done
2111
2112   CC=$ac_ct_CC
2113 fi
2114
2115 fi
2116
2117
2118 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2119 See \`config.log' for more details." >&5
2120 echo "$as_me: error: no acceptable C compiler found in \$PATH
2121 See \`config.log' for more details." >&2;}
2122    { (exit 1); exit 1; }; }
2123
2124 # Provide some information about the compiler.
2125 echo "$as_me:$LINENO:" \
2126      "checking for C compiler version" >&5
2127 ac_compiler=`set X $ac_compile; echo $2`
2128 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2129   (eval $ac_compiler --version </dev/null >&5) 2>&5
2130   ac_status=$?
2131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132   (exit $ac_status); }
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2134   (eval $ac_compiler -v </dev/null >&5) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2139   (eval $ac_compiler -V </dev/null >&5) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }
2143
2144 cat >conftest.$ac_ext <<_ACEOF
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2150
2151 int
2152 main ()
2153 {
2154
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2163 # of exeext.
2164 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2168   (eval $ac_link_default) 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; then
2172   # Find the output, starting from the most likely.  This scheme is
2173 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2174 # resort.
2175
2176 # Be careful to initialize this variable, since it used to be cached.
2177 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2178 ac_cv_exeext=
2179 # b.out is created by i960 compilers.
2180 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2181 do
2182   test -f "$ac_file" || continue
2183   case $ac_file in
2184     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2185         ;;
2186     conftest.$ac_ext )
2187         # This is the source file.
2188         ;;
2189     [ab].out )
2190         # We found the default executable, but exeext='' is most
2191         # certainly right.
2192         break;;
2193     *.* )
2194         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195         # FIXME: I believe we export ac_cv_exeext for Libtool,
2196         # but it would be cool to find out if it's true.  Does anybody
2197         # maintain Libtool? --akim.
2198         export ac_cv_exeext
2199         break;;
2200     * )
2201         break;;
2202   esac
2203 done
2204 else
2205   echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2207
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212    { (exit 77); exit 77; }; }
2213 fi
2214
2215 ac_exeext=$ac_cv_exeext
2216 echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6
2218
2219 # Check the compiler produces executables we can run.  If not, either
2220 # the compiler is broken, or we cross compile.
2221 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226   if { ac_try='./$ac_file'
2227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228   (eval $ac_try) 2>&5
2229   ac_status=$?
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); }; }; then
2232     cross_compiling=no
2233   else
2234     if test "$cross_compiling" = maybe; then
2235         cross_compiling=yes
2236     else
2237         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&2;}
2243    { (exit 1); exit 1; }; }
2244     fi
2245   fi
2246 fi
2247 echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6
2249
2250 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251 ac_clean_files=$ac_clean_files_save
2252 # Check the compiler produces executables we can run.  If not, either
2253 # the compiler is broken, or we cross compile.
2254 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2256 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257 echo "${ECHO_T}$cross_compiling" >&6
2258
2259 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2262   (eval $ac_link) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; then
2266   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2268 # work properly (i.e., refer to `conftest.exe'), while it won't with
2269 # `rm'.
2270 for ac_file in conftest.exe conftest conftest.*; do
2271   test -f "$ac_file" || continue
2272   case $ac_file in
2273     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2274     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2275           export ac_cv_exeext
2276           break;;
2277     * ) break;;
2278   esac
2279 done
2280 else
2281   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&2;}
2285    { (exit 1); exit 1; }; }
2286 fi
2287
2288 rm -f conftest$ac_cv_exeext
2289 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2290 echo "${ECHO_T}$ac_cv_exeext" >&6
2291
2292 rm -f conftest.$ac_ext
2293 EXEEXT=$ac_cv_exeext
2294 ac_exeext=$EXEEXT
2295 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2296 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2297 if test "${ac_cv_objext+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h.  */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h.  */
2306
2307 int
2308 main ()
2309 {
2310
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 rm -f conftest.o conftest.obj
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317   (eval $ac_compile) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; then
2321   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2322   case $ac_file in
2323     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2324     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2325        break;;
2326   esac
2327 done
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2335 See \`config.log' for more details." >&2;}
2336    { (exit 1); exit 1; }; }
2337 fi
2338
2339 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2340 fi
2341 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2342 echo "${ECHO_T}$ac_cv_objext" >&6
2343 OBJEXT=$ac_cv_objext
2344 ac_objext=$OBJEXT
2345 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2346 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2347 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2348   echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350   cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h.  */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h.  */
2356
2357 int
2358 main ()
2359 {
2360 #ifndef __GNUC__
2361        choke me
2362 #endif
2363
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370   (eval $ac_compile) 2>conftest.er1
2371   ac_status=$?
2372   grep -v '^ *+' conftest.er1 >conftest.err
2373   rm -f conftest.er1
2374   cat conftest.err >&5
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } &&
2377          { ac_try='test -z "$ac_c_werror_flag"
2378                          || test ! -s conftest.err'
2379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380   (eval $ac_try) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }; } &&
2384          { ac_try='test -s conftest.$ac_objext'
2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; }; then
2390   ac_compiler_gnu=yes
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 ac_compiler_gnu=no
2396 fi
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2399
2400 fi
2401 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2402 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2403 GCC=`test $ac_compiler_gnu = yes && echo yes`
2404 ac_test_CFLAGS=${CFLAGS+set}
2405 ac_save_CFLAGS=$CFLAGS
2406 CFLAGS="-g"
2407 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2409 if test "${ac_cv_prog_cc_g+set}" = set; then
2410   echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412   cat >conftest.$ac_ext <<_ACEOF
2413 /* confdefs.h.  */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h.  */
2418
2419 int
2420 main ()
2421 {
2422
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429   (eval $ac_compile) 2>conftest.er1
2430   ac_status=$?
2431   grep -v '^ *+' conftest.er1 >conftest.err
2432   rm -f conftest.er1
2433   cat conftest.err >&5
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); } &&
2436          { ac_try='test -z "$ac_c_werror_flag"
2437                          || test ! -s conftest.err'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; } &&
2443          { ac_try='test -s conftest.$ac_objext'
2444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445   (eval $ac_try) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; }; then
2449   ac_cv_prog_cc_g=yes
2450 else
2451   echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 ac_cv_prog_cc_g=no
2455 fi
2456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2457 fi
2458 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2459 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2460 if test "$ac_test_CFLAGS" = set; then
2461   CFLAGS=$ac_save_CFLAGS
2462 elif test $ac_cv_prog_cc_g = yes; then
2463   if test "$GCC" = yes; then
2464     CFLAGS="-g -O2"
2465   else
2466     CFLAGS="-g"
2467   fi
2468 else
2469   if test "$GCC" = yes; then
2470     CFLAGS="-O2"
2471   else
2472     CFLAGS=
2473   fi
2474 fi
2475 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2476 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2477 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2478   echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480   ac_cv_prog_cc_stdc=no
2481 ac_save_CC=$CC
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h.  */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h.  */
2488 #include <stdarg.h>
2489 #include <stdio.h>
2490 #include <sys/types.h>
2491 #include <sys/stat.h>
2492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2493 struct buf { int x; };
2494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2495 static char *e (p, i)
2496      char **p;
2497      int i;
2498 {
2499   return p[i];
2500 }
2501 static char *f (char * (*g) (char **, int), char **p, ...)
2502 {
2503   char *s;
2504   va_list v;
2505   va_start (v,p);
2506   s = g (p, va_arg (v,int));
2507   va_end (v);
2508   return s;
2509 }
2510
2511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2512    function prototypes and stuff, but not '\xHH' hex character constants.
2513    These don't provoke an error unfortunately, instead are silently treated
2514    as 'x'.  The following induces an error, until -std1 is added to get
2515    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2516    array size at least.  It's necessary to write '\x00'==0 to get something
2517    that's true only with -std1.  */
2518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2519
2520 int test (int i, double x);
2521 struct s1 {int (*f) (int a);};
2522 struct s2 {int (*f) (double a);};
2523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2524 int argc;
2525 char **argv;
2526 int
2527 main ()
2528 {
2529 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2530   ;
2531   return 0;
2532 }
2533 _ACEOF
2534 # Don't try gcc -ansi; that turns off useful extensions and
2535 # breaks some systems' header files.
2536 # AIX                   -qlanglvl=ansi
2537 # Ultrix and OSF/1      -std1
2538 # HP-UX 10.20 and later -Ae
2539 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2540 # SVR4                  -Xc -D__EXTENSIONS__
2541 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2542 do
2543   CC="$ac_save_CC $ac_arg"
2544   rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546   (eval $ac_compile) 2>conftest.er1
2547   ac_status=$?
2548   grep -v '^ *+' conftest.er1 >conftest.err
2549   rm -f conftest.er1
2550   cat conftest.err >&5
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -z "$ac_c_werror_flag"
2554                          || test ! -s conftest.err'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   ac_cv_prog_cc_stdc=$ac_arg
2567 break
2568 else
2569   echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 fi
2573 rm -f conftest.err conftest.$ac_objext
2574 done
2575 rm -f conftest.$ac_ext conftest.$ac_objext
2576 CC=$ac_save_CC
2577
2578 fi
2579
2580 case "x$ac_cv_prog_cc_stdc" in
2581   x|xno)
2582     echo "$as_me:$LINENO: result: none needed" >&5
2583 echo "${ECHO_T}none needed" >&6 ;;
2584   *)
2585     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2586 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2587     CC="$CC $ac_cv_prog_cc_stdc" ;;
2588 esac
2589
2590 # Some people use a C++ compiler to compile C.  Since we use `exit',
2591 # in C++ we need to declare it.  In case someone uses the same compiler
2592 # for both compiling C and C++ we need to have the C++ compiler decide
2593 # the declaration of exit, since it's the most demanding environment.
2594 cat >conftest.$ac_ext <<_ACEOF
2595 #ifndef __cplusplus
2596   choke me
2597 #endif
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601   (eval $ac_compile) 2>conftest.er1
2602   ac_status=$?
2603   grep -v '^ *+' conftest.er1 >conftest.err
2604   rm -f conftest.er1
2605   cat conftest.err >&5
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); } &&
2608          { ac_try='test -z "$ac_c_werror_flag"
2609                          || test ! -s conftest.err'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest.$ac_objext'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; }; then
2621   for ac_declaration in \
2622    '' \
2623    'extern "C" void std::exit (int) throw (); using std::exit;' \
2624    'extern "C" void std::exit (int); using std::exit;' \
2625    'extern "C" void exit (int) throw ();' \
2626    'extern "C" void exit (int);' \
2627    'void exit (int);'
2628 do
2629   cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635 $ac_declaration
2636 #include <stdlib.h>
2637 int
2638 main ()
2639 {
2640 exit (42);
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647   (eval $ac_compile) 2>conftest.er1
2648   ac_status=$?
2649   grep -v '^ *+' conftest.er1 >conftest.err
2650   rm -f conftest.er1
2651   cat conftest.err >&5
2652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653   (exit $ac_status); } &&
2654          { ac_try='test -z "$ac_c_werror_flag"
2655                          || test ! -s conftest.err'
2656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657   (eval $ac_try) 2>&5
2658   ac_status=$?
2659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660   (exit $ac_status); }; } &&
2661          { ac_try='test -s conftest.$ac_objext'
2662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663   (eval $ac_try) 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }; }; then
2667   :
2668 else
2669   echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672 continue
2673 fi
2674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675   cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h.  */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h.  */
2681 $ac_declaration
2682 int
2683 main ()
2684 {
2685 exit (42);
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692   (eval $ac_compile) 2>conftest.er1
2693   ac_status=$?
2694   grep -v '^ *+' conftest.er1 >conftest.err
2695   rm -f conftest.er1
2696   cat conftest.err >&5
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } &&
2699          { ac_try='test -z "$ac_c_werror_flag"
2700                          || test ! -s conftest.err'
2701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702   (eval $ac_try) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }; } &&
2706          { ac_try='test -s conftest.$ac_objext'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; }; then
2712   break
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 fi
2718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2719 done
2720 rm -f conftest*
2721 if test -n "$ac_declaration"; then
2722   echo '#ifdef __cplusplus' >>confdefs.h
2723   echo $ac_declaration      >>confdefs.h
2724   echo '#endif'             >>confdefs.h
2725 fi
2726
2727 else
2728   echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2730
2731 fi
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_ext=c
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738
2739
2740 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2741 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2742 if test "${ac_cv_c_bigendian+set}" = set; then
2743   echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745   # See if sys/param.h defines the BYTE_ORDER macro.
2746 cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h.  */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h.  */
2752 #include <sys/types.h>
2753 #include <sys/param.h>
2754
2755 int
2756 main ()
2757 {
2758 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2759  bogus endian macros
2760 #endif
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768   (eval $ac_compile) 2>conftest.er1
2769   ac_status=$?
2770   grep -v '^ *+' conftest.er1 >conftest.err
2771   rm -f conftest.er1
2772   cat conftest.err >&5
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); } &&
2775          { ac_try='test -z "$ac_c_werror_flag"
2776                          || test ! -s conftest.err'
2777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778   (eval $ac_try) 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; } &&
2782          { ac_try='test -s conftest.$ac_objext'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; }; then
2788   # It does; now see whether it defined to BIG_ENDIAN or not.
2789 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2795 #include <sys/types.h>
2796 #include <sys/param.h>
2797
2798 int
2799 main ()
2800 {
2801 #if BYTE_ORDER != BIG_ENDIAN
2802  not big endian
2803 #endif
2804
2805   ;
2806   return 0;
2807 }
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811   (eval $ac_compile) 2>conftest.er1
2812   ac_status=$?
2813   grep -v '^ *+' conftest.er1 >conftest.err
2814   rm -f conftest.er1
2815   cat conftest.err >&5
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); } &&
2818          { ac_try='test -z "$ac_c_werror_flag"
2819                          || test ! -s conftest.err'
2820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821   (eval $ac_try) 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; } &&
2825          { ac_try='test -s conftest.$ac_objext'
2826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827   (eval $ac_try) 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }; }; then
2831   ac_cv_c_bigendian=yes
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836 ac_cv_c_bigendian=no
2837 fi
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2839 else
2840   echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843 # It does not; compile a test program.
2844 if test "$cross_compiling" = yes; then
2845   # try to guess the endianness by grepping values into an object file
2846   ac_cv_c_bigendian=unknown
2847   cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2854 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2855 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2856 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2857 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2858 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2859 int
2860 main ()
2861 {
2862  _ascii (); _ebcdic ();
2863   ;
2864   return 0;
2865 }
2866 _ACEOF
2867 rm -f conftest.$ac_objext
2868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869   (eval $ac_compile) 2>conftest.er1
2870   ac_status=$?
2871   grep -v '^ *+' conftest.er1 >conftest.err
2872   rm -f conftest.er1
2873   cat conftest.err >&5
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); } &&
2876          { ac_try='test -z "$ac_c_werror_flag"
2877                          || test ! -s conftest.err'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; } &&
2883          { ac_try='test -s conftest.$ac_objext'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; }; then
2889   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2890   ac_cv_c_bigendian=yes
2891 fi
2892 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2893   if test "$ac_cv_c_bigendian" = unknown; then
2894     ac_cv_c_bigendian=no
2895   else
2896     # finding both strings is unlikely to happen, but who knows?
2897     ac_cv_c_bigendian=unknown
2898   fi
2899 fi
2900 else
2901   echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2903
2904 fi
2905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906 else
2907   cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913 int
2914 main ()
2915 {
2916   /* Are we little or big endian?  From Harbison&Steele.  */
2917   union
2918   {
2919     long l;
2920     char c[sizeof (long)];
2921   } u;
2922   u.l = 1;
2923   exit (u.c[sizeof (long) - 1] == 1);
2924 }
2925 _ACEOF
2926 rm -f conftest$ac_exeext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928   (eval $ac_link) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933   (eval $ac_try) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; }; then
2937   ac_cv_c_bigendian=no
2938 else
2939   echo "$as_me: program exited with status $ac_status" >&5
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 ( exit $ac_status )
2944 ac_cv_c_bigendian=yes
2945 fi
2946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2947 fi
2948 fi
2949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2950 fi
2951 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2952 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2953 case $ac_cv_c_bigendian in
2954   yes)
2955     ENDIAN=big
2956  ;;
2957   no)
2958     ENDIAN=little
2959  ;;
2960   *)
2961     { { echo "$as_me:$LINENO: error: unknown endianness
2962 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2963 echo "$as_me: error: unknown endianness
2964 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2965    { (exit 1); exit 1; }; } ;;
2966 esac
2967
2968
2969
2970 # Check whether --enable-optimized or --disable-optimized was given.
2971 if test "${enable_optimized+set}" = set; then
2972   enableval="$enable_optimized"
2973
2974 else
2975   enableval=no
2976 fi;
2977 if test ${enableval} = "no" ; then
2978   ENABLE_OPTIMIZED=
2979
2980 else
2981   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2982
2983 fi
2984
2985 # Check whether --enable-jit or --disable-jit was given.
2986 if test "${enable_jit+set}" = set; then
2987   enableval="$enable_jit"
2988
2989 else
2990   enableval=default
2991 fi;
2992 if test ${enableval} = "no"
2993 then
2994   JIT=
2995
2996 else
2997   case "$llvm_cv_target_arch" in
2998     x86)     JIT=TARGET_HAS_JIT=1
2999  ;;
3000     Sparc)   JIT=TARGET_HAS_JIT=1
3001  ;;
3002     PowerPC) JIT=TARGET_HAS_JIT=1
3003  ;;
3004     x86_64)  JIT=
3005  ;;
3006     Alpha)   JIT=
3007  ;;
3008     IA64)    JIT=
3009  ;;
3010     *)       JIT=
3011  ;;
3012   esac
3013 fi
3014
3015 # Check whether --enable-doxygen or --disable-doxygen was given.
3016 if test "${enable_doxygen+set}" = set; then
3017   enableval="$enable_doxygen"
3018
3019 else
3020   enableval=default
3021 fi;
3022 case "$enableval" in
3023   yes) ENABLE_DOXYGEN=1
3024  ;;
3025   no)  ENABLE_DOXYGEN=0
3026  ;;
3027   default) ENABLE_DOXYGEN=0
3028  ;;
3029   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3030 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3031    { (exit 1); exit 1; }; } ;;
3032 esac
3033
3034 TARGETS_TO_BUILD=""
3035 # Check whether --enable-targets or --disable-targets was given.
3036 if test "${enable_targets+set}" = set; then
3037   enableval="$enable_targets"
3038
3039 else
3040   enableval=all
3041 fi;
3042 case "$enableval" in
3043   all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3044   host-only)
3045     case "$llvm_cv_target_arch" in
3046       x86)     TARGETS_TO_BUILD="X86" ;;
3047       x86_64)  TARGETS_TO_BUILD="X86" ;;
3048       Sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3049       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3050       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3051       IA64)    TARGETS_TO_BUILD="IA64" ;;
3052       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3053 echo "$as_me: error: Can not set target to build" >&2;}
3054    { (exit 1); exit 1; }; } ;;
3055     esac
3056     ;;
3057   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3058       case "$a_target" in
3059         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3060         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3061         sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3062         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3063         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3064         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3065         skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3066         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3067 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3068    { (exit 1); exit 1; }; } ;;
3069       esac
3070   done
3071   ;;
3072 esac
3073 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3074 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3075
3076
3077
3078 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3079 if test "${with_llvmgccdir+set}" = set; then
3080   withval="$with_llvmgccdir"
3081
3082 else
3083   withval=default
3084 fi;
3085 case "$withval" in
3086   default) WITH_LLVMGCCDIR=default ;;
3087   /*)      WITH_LLVMGCCDIR=$withval ;;
3088   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3089 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3090    { (exit 1); exit 1; }; } ;;
3091 esac
3092
3093
3094
3095 ac_ext=c
3096 ac_cpp='$CPP $CPPFLAGS'
3097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3101 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3102 # On Suns, sometimes $CPP names a directory.
3103 if test -n "$CPP" && test -d "$CPP"; then
3104   CPP=
3105 fi
3106 if test -z "$CPP"; then
3107   if test "${ac_cv_prog_CPP+set}" = set; then
3108   echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110       # Double quotes because CPP needs to be expanded
3111     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3112     do
3113       ac_preproc_ok=false
3114 for ac_c_preproc_warn_flag in '' yes
3115 do
3116   # Use a header file that comes with gcc, so configuring glibc
3117   # with a fresh cross-compiler works.
3118   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119   # <limits.h> exists even on freestanding compilers.
3120   # On the NeXT, cc -E runs the code through the compiler's parser,
3121   # not just through cpp. "Syntax error" is here to catch this case.
3122   cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128 #ifdef __STDC__
3129 # include <limits.h>
3130 #else
3131 # include <assert.h>
3132 #endif
3133                      Syntax error
3134 _ACEOF
3135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } >/dev/null; then
3143   if test -s conftest.err; then
3144     ac_cpp_err=$ac_c_preproc_warn_flag
3145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146   else
3147     ac_cpp_err=
3148   fi
3149 else
3150   ac_cpp_err=yes
3151 fi
3152 if test -z "$ac_cpp_err"; then
3153   :
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158   # Broken: fails on valid input.
3159 continue
3160 fi
3161 rm -f conftest.err conftest.$ac_ext
3162
3163   # OK, works on sane cases.  Now check whether non-existent headers
3164   # can be detected and how.
3165   cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171 #include <ac_nonexistent.h>
3172 _ACEOF
3173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } >/dev/null; then
3181   if test -s conftest.err; then
3182     ac_cpp_err=$ac_c_preproc_warn_flag
3183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184   else
3185     ac_cpp_err=
3186   fi
3187 else
3188   ac_cpp_err=yes
3189 fi
3190 if test -z "$ac_cpp_err"; then
3191   # Broken: success on invalid input.
3192 continue
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197   # Passes both tests.
3198 ac_preproc_ok=:
3199 break
3200 fi
3201 rm -f conftest.err conftest.$ac_ext
3202
3203 done
3204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3205 rm -f conftest.err conftest.$ac_ext
3206 if $ac_preproc_ok; then
3207   break
3208 fi
3209
3210     done
3211     ac_cv_prog_CPP=$CPP
3212
3213 fi
3214   CPP=$ac_cv_prog_CPP
3215 else
3216   ac_cv_prog_CPP=$CPP
3217 fi
3218 echo "$as_me:$LINENO: result: $CPP" >&5
3219 echo "${ECHO_T}$CPP" >&6
3220 ac_preproc_ok=false
3221 for ac_c_preproc_warn_flag in '' yes
3222 do
3223   # Use a header file that comes with gcc, so configuring glibc
3224   # with a fresh cross-compiler works.
3225   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226   # <limits.h> exists even on freestanding compilers.
3227   # On the NeXT, cc -E runs the code through the compiler's parser,
3228   # not just through cpp. "Syntax error" is here to catch this case.
3229   cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h.  */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h.  */
3235 #ifdef __STDC__
3236 # include <limits.h>
3237 #else
3238 # include <assert.h>
3239 #endif
3240                      Syntax error
3241 _ACEOF
3242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3244   ac_status=$?
3245   grep -v '^ *+' conftest.er1 >conftest.err
3246   rm -f conftest.er1
3247   cat conftest.err >&5
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); } >/dev/null; then
3250   if test -s conftest.err; then
3251     ac_cpp_err=$ac_c_preproc_warn_flag
3252     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3253   else
3254     ac_cpp_err=
3255   fi
3256 else
3257   ac_cpp_err=yes
3258 fi
3259 if test -z "$ac_cpp_err"; then
3260   :
3261 else
3262   echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265   # Broken: fails on valid input.
3266 continue
3267 fi
3268 rm -f conftest.err conftest.$ac_ext
3269
3270   # OK, works on sane cases.  Now check whether non-existent headers
3271   # can be detected and how.
3272   cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278 #include <ac_nonexistent.h>
3279 _ACEOF
3280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } >/dev/null; then
3288   if test -s conftest.err; then
3289     ac_cpp_err=$ac_c_preproc_warn_flag
3290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291   else
3292     ac_cpp_err=
3293   fi
3294 else
3295   ac_cpp_err=yes
3296 fi
3297 if test -z "$ac_cpp_err"; then
3298   # Broken: success on invalid input.
3299 continue
3300 else
3301   echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304   # Passes both tests.
3305 ac_preproc_ok=:
3306 break
3307 fi
3308 rm -f conftest.err conftest.$ac_ext
3309
3310 done
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.$ac_ext
3313 if $ac_preproc_ok; then
3314   :
3315 else
3316   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3317 See \`config.log' for more details." >&5
3318 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3319 See \`config.log' for more details." >&2;}
3320    { (exit 1); exit 1; }; }
3321 fi
3322
3323 ac_ext=c
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328
3329 ac_ext=c
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 if test -n "$ac_tool_prefix"; then
3335   for ac_prog in gcc
3336   do
3337     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_CC+set}" = set; then
3342   echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344   if test -n "$CC"; then
3345   ac_cv_prog_CC="$CC" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350   IFS=$as_save_IFS
3351   test -z "$as_dir" && as_dir=.
3352   for ac_exec_ext in '' $ac_executable_extensions; do
3353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356     break 2
3357   fi
3358 done
3359 done
3360
3361 fi
3362 fi
3363 CC=$ac_cv_prog_CC
3364 if test -n "$CC"; then
3365   echo "$as_me:$LINENO: result: $CC" >&5
3366 echo "${ECHO_T}$CC" >&6
3367 else
3368   echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3370 fi
3371
3372     test -n "$CC" && break
3373   done
3374 fi
3375 if test -z "$CC"; then
3376   ac_ct_CC=$CC
3377   for ac_prog in gcc
3378 do
3379   # Extract the first word of "$ac_prog", so it can be a program name with args.
3380 set dummy $ac_prog; ac_word=$2
3381 echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   if test -n "$ac_ct_CC"; then
3387   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392   IFS=$as_save_IFS
3393   test -z "$as_dir" && as_dir=.
3394   for ac_exec_ext in '' $ac_executable_extensions; do
3395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396     ac_cv_prog_ac_ct_CC="$ac_prog"
3397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398     break 2
3399   fi
3400 done
3401 done
3402
3403 fi
3404 fi
3405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406 if test -n "$ac_ct_CC"; then
3407   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3408 echo "${ECHO_T}$ac_ct_CC" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414   test -n "$ac_ct_CC" && break
3415 done
3416
3417   CC=$ac_ct_CC
3418 fi
3419
3420
3421 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3422 See \`config.log' for more details." >&5
3423 echo "$as_me: error: no acceptable C compiler found in \$PATH
3424 See \`config.log' for more details." >&2;}
3425    { (exit 1); exit 1; }; }
3426
3427 # Provide some information about the compiler.
3428 echo "$as_me:$LINENO:" \
3429      "checking for C compiler version" >&5
3430 ac_compiler=`set X $ac_compile; echo $2`
3431 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3432   (eval $ac_compiler --version </dev/null >&5) 2>&5
3433   ac_status=$?
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }
3436 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3437   (eval $ac_compiler -v </dev/null >&5) 2>&5
3438   ac_status=$?
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); }
3441 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3442   (eval $ac_compiler -V </dev/null >&5) 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }
3446
3447 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3448 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3449 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h.  */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h.  */
3458
3459 int
3460 main ()
3461 {
3462 #ifndef __GNUC__
3463        choke me
3464 #endif
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.$ac_objext
3471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3472   (eval $ac_compile) 2>conftest.er1
3473   ac_status=$?
3474   grep -v '^ *+' conftest.er1 >conftest.err
3475   rm -f conftest.er1
3476   cat conftest.err >&5
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); } &&
3479          { ac_try='test -z "$ac_c_werror_flag"
3480                          || test ! -s conftest.err'
3481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482   (eval $ac_try) 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; } &&
3486          { ac_try='test -s conftest.$ac_objext'
3487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488   (eval $ac_try) 2>&5
3489   ac_status=$?
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); }; }; then
3492   ac_compiler_gnu=yes
3493 else
3494   echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 ac_compiler_gnu=no
3498 fi
3499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501
3502 fi
3503 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3504 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3505 GCC=`test $ac_compiler_gnu = yes && echo yes`
3506 ac_test_CFLAGS=${CFLAGS+set}
3507 ac_save_CFLAGS=$CFLAGS
3508 CFLAGS="-g"
3509 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3510 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3511 if test "${ac_cv_prog_cc_g+set}" = set; then
3512   echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514   cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h.  */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h.  */
3520
3521 int
3522 main ()
3523 {
3524
3525   ;
3526   return 0;
3527 }
3528 _ACEOF
3529 rm -f conftest.$ac_objext
3530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531   (eval $ac_compile) 2>conftest.er1
3532   ac_status=$?
3533   grep -v '^ *+' conftest.er1 >conftest.err
3534   rm -f conftest.er1
3535   cat conftest.err >&5
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); } &&
3538          { ac_try='test -z "$ac_c_werror_flag"
3539                          || test ! -s conftest.err'
3540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541   (eval $ac_try) 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }; } &&
3545          { ac_try='test -s conftest.$ac_objext'
3546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547   (eval $ac_try) 2>&5
3548   ac_status=$?
3549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550   (exit $ac_status); }; }; then
3551   ac_cv_prog_cc_g=yes
3552 else
3553   echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 ac_cv_prog_cc_g=no
3557 fi
3558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3559 fi
3560 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3561 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3562 if test "$ac_test_CFLAGS" = set; then
3563   CFLAGS=$ac_save_CFLAGS
3564 elif test $ac_cv_prog_cc_g = yes; then
3565   if test "$GCC" = yes; then
3566     CFLAGS="-g -O2"
3567   else
3568     CFLAGS="-g"
3569   fi
3570 else
3571   if test "$GCC" = yes; then
3572     CFLAGS="-O2"
3573   else
3574     CFLAGS=
3575   fi
3576 fi
3577 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3578 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3579 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   ac_cv_prog_cc_stdc=no
3583 ac_save_CC=$CC
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h.  */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h.  */
3590 #include <stdarg.h>
3591 #include <stdio.h>
3592 #include <sys/types.h>
3593 #include <sys/stat.h>
3594 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3595 struct buf { int x; };
3596 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3597 static char *e (p, i)
3598      char **p;
3599      int i;
3600 {
3601   return p[i];
3602 }
3603 static char *f (char * (*g) (char **, int), char **p, ...)
3604 {
3605   char *s;
3606   va_list v;
3607   va_start (v,p);
3608   s = g (p, va_arg (v,int));
3609   va_end (v);
3610   return s;
3611 }
3612
3613 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3614    function prototypes and stuff, but not '\xHH' hex character constants.
3615    These don't provoke an error unfortunately, instead are silently treated
3616    as 'x'.  The following induces an error, until -std1 is added to get
3617    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3618    array size at least.  It's necessary to write '\x00'==0 to get something
3619    that's true only with -std1.  */
3620 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3621
3622 int test (int i, double x);
3623 struct s1 {int (*f) (int a);};
3624 struct s2 {int (*f) (double a);};
3625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626 int argc;
3627 char **argv;
3628 int
3629 main ()
3630 {
3631 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3632   ;
3633   return 0;
3634 }
3635 _ACEOF
3636 # Don't try gcc -ansi; that turns off useful extensions and
3637 # breaks some systems' header files.
3638 # AIX                   -qlanglvl=ansi
3639 # Ultrix and OSF/1      -std1
3640 # HP-UX 10.20 and later -Ae
3641 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3642 # SVR4                  -Xc -D__EXTENSIONS__
3643 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3644 do
3645   CC="$ac_save_CC $ac_arg"
3646   rm -f conftest.$ac_objext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648   (eval $ac_compile) 2>conftest.er1
3649   ac_status=$?
3650   grep -v '^ *+' conftest.er1 >conftest.err
3651   rm -f conftest.er1
3652   cat conftest.err >&5
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); } &&
3655          { ac_try='test -z "$ac_c_werror_flag"
3656                          || test ! -s conftest.err'
3657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658   (eval $ac_try) 2>&5
3659   ac_status=$?
3660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661   (exit $ac_status); }; } &&
3662          { ac_try='test -s conftest.$ac_objext'
3663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664   (eval $ac_try) 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); }; }; then
3668   ac_cv_prog_cc_stdc=$ac_arg
3669 break
3670 else
3671   echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3673
3674 fi
3675 rm -f conftest.err conftest.$ac_objext
3676 done
3677 rm -f conftest.$ac_ext conftest.$ac_objext
3678 CC=$ac_save_CC
3679
3680 fi
3681
3682 case "x$ac_cv_prog_cc_stdc" in
3683   x|xno)
3684     echo "$as_me:$LINENO: result: none needed" >&5
3685 echo "${ECHO_T}none needed" >&6 ;;
3686   *)
3687     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3688 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3689     CC="$CC $ac_cv_prog_cc_stdc" ;;
3690 esac
3691
3692 # Some people use a C++ compiler to compile C.  Since we use `exit',
3693 # in C++ we need to declare it.  In case someone uses the same compiler
3694 # for both compiling C and C++ we need to have the C++ compiler decide
3695 # the declaration of exit, since it's the most demanding environment.
3696 cat >conftest.$ac_ext <<_ACEOF
3697 #ifndef __cplusplus
3698   choke me
3699 #endif
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703   (eval $ac_compile) 2>conftest.er1
3704   ac_status=$?
3705   grep -v '^ *+' conftest.er1 >conftest.err
3706   rm -f conftest.er1
3707   cat conftest.err >&5
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); } &&
3710          { ac_try='test -z "$ac_c_werror_flag"
3711                          || test ! -s conftest.err'
3712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713   (eval $ac_try) 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); }; } &&
3717          { ac_try='test -s conftest.$ac_objext'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; }; then
3723   for ac_declaration in \
3724    '' \
3725    'extern "C" void std::exit (int) throw (); using std::exit;' \
3726    'extern "C" void std::exit (int); using std::exit;' \
3727    'extern "C" void exit (int) throw ();' \
3728    'extern "C" void exit (int);' \
3729    'void exit (int);'
3730 do
3731   cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h.  */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h.  */
3737 $ac_declaration
3738 #include <stdlib.h>
3739 int
3740 main ()
3741 {
3742 exit (42);
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 rm -f conftest.$ac_objext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749   (eval $ac_compile) 2>conftest.er1
3750   ac_status=$?
3751   grep -v '^ *+' conftest.er1 >conftest.err
3752   rm -f conftest.er1
3753   cat conftest.err >&5
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); } &&
3756          { ac_try='test -z "$ac_c_werror_flag"
3757                          || test ! -s conftest.err'
3758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759   (eval $ac_try) 2>&5
3760   ac_status=$?
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); }; } &&
3763          { ac_try='test -s conftest.$ac_objext'
3764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765   (eval $ac_try) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); }; }; then
3769   :
3770 else
3771   echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774 continue
3775 fi
3776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3777   cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h.  */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h.  */
3783 $ac_declaration
3784 int
3785 main ()
3786 {
3787 exit (42);
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 rm -f conftest.$ac_objext
3793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3794   (eval $ac_compile) 2>conftest.er1
3795   ac_status=$?
3796   grep -v '^ *+' conftest.er1 >conftest.err
3797   rm -f conftest.er1
3798   cat conftest.err >&5
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); } &&
3801          { ac_try='test -z "$ac_c_werror_flag"
3802                          || test ! -s conftest.err'
3803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804   (eval $ac_try) 2>&5
3805   ac_status=$?
3806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807   (exit $ac_status); }; } &&
3808          { ac_try='test -s conftest.$ac_objext'
3809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810   (eval $ac_try) 2>&5
3811   ac_status=$?
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); }; }; then
3814   break
3815 else
3816   echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 fi
3820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3821 done
3822 rm -f conftest*
3823 if test -n "$ac_declaration"; then
3824   echo '#ifdef __cplusplus' >>confdefs.h
3825   echo $ac_declaration      >>confdefs.h
3826   echo '#endif'             >>confdefs.h
3827 fi
3828
3829 else
3830   echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833 fi
3834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3835 ac_ext=c
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840
3841 ac_ext=cc
3842 ac_cpp='$CXXCPP $CPPFLAGS'
3843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3846 if test -n "$ac_tool_prefix"; then
3847   for ac_prog in $CCC g++
3848   do
3849     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3851 echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_prog_CXX+set}" = set; then
3854   echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856   if test -n "$CXX"; then
3857   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3861 do
3862   IFS=$as_save_IFS
3863   test -z "$as_dir" && as_dir=.
3864   for ac_exec_ext in '' $ac_executable_extensions; do
3865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868     break 2
3869   fi
3870 done
3871 done
3872
3873 fi
3874 fi
3875 CXX=$ac_cv_prog_CXX
3876 if test -n "$CXX"; then
3877   echo "$as_me:$LINENO: result: $CXX" >&5
3878 echo "${ECHO_T}$CXX" >&6
3879 else
3880   echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3882 fi
3883
3884     test -n "$CXX" && break
3885   done
3886 fi
3887 if test -z "$CXX"; then
3888   ac_ct_CXX=$CXX
3889   for ac_prog in $CCC g++
3890 do
3891   # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 echo "$as_me:$LINENO: checking for $ac_word" >&5
3894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3896   echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898   if test -n "$ac_ct_CXX"; then
3899   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904   IFS=$as_save_IFS
3905   test -z "$as_dir" && as_dir=.
3906   for ac_exec_ext in '' $ac_executable_extensions; do
3907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908     ac_cv_prog_ac_ct_CXX="$ac_prog"
3909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910     break 2
3911   fi
3912 done
3913 done
3914
3915 fi
3916 fi
3917 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3918 if test -n "$ac_ct_CXX"; then
3919   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3920 echo "${ECHO_T}$ac_ct_CXX" >&6
3921 else
3922   echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6
3924 fi
3925
3926   test -n "$ac_ct_CXX" && break
3927 done
3928 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3929
3930   CXX=$ac_ct_CXX
3931 fi
3932
3933
3934 # Provide some information about the compiler.
3935 echo "$as_me:$LINENO:" \
3936      "checking for C++ compiler version" >&5
3937 ac_compiler=`set X $ac_compile; echo $2`
3938 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3939   (eval $ac_compiler --version </dev/null >&5) 2>&5
3940   ac_status=$?
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); }
3943 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3944   (eval $ac_compiler -v </dev/null >&5) 2>&5
3945   ac_status=$?
3946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947   (exit $ac_status); }
3948 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3949   (eval $ac_compiler -V </dev/null >&5) 2>&5
3950   ac_status=$?
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); }
3953
3954 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3955 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3956 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3957   echo $ECHO_N "(cached) $ECHO_C" >&6
3958 else
3959   cat >conftest.$ac_ext <<_ACEOF
3960 /* confdefs.h.  */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h.  */
3965
3966 int
3967 main ()
3968 {
3969 #ifndef __GNUC__
3970        choke me
3971 #endif
3972
3973   ;
3974   return 0;
3975 }
3976 _ACEOF
3977 rm -f conftest.$ac_objext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979   (eval $ac_compile) 2>conftest.er1
3980   ac_status=$?
3981   grep -v '^ *+' conftest.er1 >conftest.err
3982   rm -f conftest.er1
3983   cat conftest.err >&5
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); } &&
3986          { ac_try='test -z "$ac_cxx_werror_flag"
3987                          || test ! -s conftest.err'
3988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989   (eval $ac_try) 2>&5
3990   ac_status=$?
3991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992   (exit $ac_status); }; } &&
3993          { ac_try='test -s conftest.$ac_objext'
3994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995   (eval $ac_try) 2>&5
3996   ac_status=$?
3997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); }; }; then
3999   ac_compiler_gnu=yes
4000 else
4001   echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4003
4004 ac_compiler_gnu=no
4005 fi
4006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4007 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4008
4009 fi
4010 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4011 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4012 GXX=`test $ac_compiler_gnu = yes && echo yes`
4013 ac_test_CXXFLAGS=${CXXFLAGS+set}
4014 ac_save_CXXFLAGS=$CXXFLAGS
4015 CXXFLAGS="-g"
4016 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4017 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4018 if test "${ac_cv_prog_cxx_g+set}" = set; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021   cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h.  */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h.  */
4027
4028 int
4029 main ()
4030 {
4031
4032   ;
4033   return 0;
4034 }
4035 _ACEOF
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038   (eval $ac_compile) 2>conftest.er1
4039   ac_status=$?
4040   grep -v '^ *+' conftest.er1 >conftest.err
4041   rm -f conftest.er1
4042   cat conftest.err >&5
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } &&
4045          { ac_try='test -z "$ac_cxx_werror_flag"
4046                          || test ! -s conftest.err'
4047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048   (eval $ac_try) 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; } &&
4052          { ac_try='test -s conftest.$ac_objext'
4053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054   (eval $ac_try) 2>&5
4055   ac_status=$?
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); }; }; then
4058   ac_cv_prog_cxx_g=yes
4059 else
4060   echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 ac_cv_prog_cxx_g=no
4064 fi
4065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4066 fi
4067 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4068 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4069 if test "$ac_test_CXXFLAGS" = set; then
4070   CXXFLAGS=$ac_save_CXXFLAGS
4071 elif test $ac_cv_prog_cxx_g = yes; then
4072   if test "$GXX" = yes; then
4073     CXXFLAGS="-g -O2"
4074   else
4075     CXXFLAGS="-g"
4076   fi
4077 else
4078   if test "$GXX" = yes; then
4079     CXXFLAGS="-O2"
4080   else
4081     CXXFLAGS=
4082   fi
4083 fi
4084 for ac_declaration in \
4085    '' \
4086    'extern "C" void std::exit (int) throw (); using std::exit;' \
4087    'extern "C" void std::exit (int); using std::exit;' \
4088    'extern "C" void exit (int) throw ();' \
4089    'extern "C" void exit (int);' \
4090    'void exit (int);'
4091 do
4092   cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h.  */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h.  */
4098 $ac_declaration
4099 #include <stdlib.h>
4100 int
4101 main ()
4102 {
4103 exit (42);
4104   ;
4105   return 0;
4106 }
4107 _ACEOF
4108 rm -f conftest.$ac_objext
4109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4110   (eval $ac_compile) 2>conftest.er1
4111   ac_status=$?
4112   grep -v '^ *+' conftest.er1 >conftest.err
4113   rm -f conftest.er1
4114   cat conftest.err >&5
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); } &&
4117          { ac_try='test -z "$ac_cxx_werror_flag"
4118                          || test ! -s conftest.err'
4119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120   (eval $ac_try) 2>&5
4121   ac_status=$?
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); }; } &&
4124          { ac_try='test -s conftest.$ac_objext'
4125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126   (eval $ac_try) 2>&5
4127   ac_status=$?
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); }; }; then
4130   :
4131 else
4132   echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 continue
4136 fi
4137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4138   cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h.  */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h.  */
4144 $ac_declaration
4145 int
4146 main ()
4147 {
4148 exit (42);
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155   (eval $ac_compile) 2>conftest.er1
4156   ac_status=$?
4157   grep -v '^ *+' conftest.er1 >conftest.err
4158   rm -f conftest.er1
4159   cat conftest.err >&5
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); } &&
4162          { ac_try='test -z "$ac_cxx_werror_flag"
4163                          || test ! -s conftest.err'
4164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165   (eval $ac_try) 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; } &&
4169          { ac_try='test -s conftest.$ac_objext'
4170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171   (eval $ac_try) 2>&5
4172   ac_status=$?
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); }; }; then
4175   break
4176 else
4177   echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4179
4180 fi
4181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4182 done
4183 rm -f conftest*
4184 if test -n "$ac_declaration"; then
4185   echo '#ifdef __cplusplus' >>confdefs.h
4186   echo $ac_declaration      >>confdefs.h
4187   echo '#endif'             >>confdefs.h
4188 fi
4189
4190 ac_ext=c
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195
4196 echo "$as_me:$LINENO: checking " >&5
4197 echo $ECHO_N "checking ... $ECHO_C" >&6
4198 if test "${ac_cv_has_flex+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   for ac_prog in flex lex
4202 do
4203   # Extract the first word of "$ac_prog", so it can be a program name with args.
4204 set dummy $ac_prog; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_LEX+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210   if test -n "$LEX"; then
4211   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_exec_ext in '' $ac_executable_extensions; do
4219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220     ac_cv_prog_LEX="$ac_prog"
4221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225 done
4226
4227 fi
4228 fi
4229 LEX=$ac_cv_prog_LEX
4230 if test -n "$LEX"; then
4231   echo "$as_me:$LINENO: result: $LEX" >&5
4232 echo "${ECHO_T}$LEX" >&6
4233 else
4234   echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6
4236 fi
4237
4238   test -n "$LEX" && break
4239 done
4240 test -n "$LEX" || LEX=":"
4241
4242 if test -z "$LEXLIB"
4243 then
4244   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4245 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4246 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   ac_check_lib_save_LIBS=$LIBS
4250 LIBS="-lfl  $LIBS"
4251 cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257
4258 /* Override any gcc2 internal prototype to avoid an error.  */
4259 #ifdef __cplusplus
4260 extern "C"
4261 #endif
4262 /* We use char because int might match the return type of a gcc2
4263    builtin and then its argument prototype would still apply.  */
4264 char yywrap ();
4265 int
4266 main ()
4267 {
4268 yywrap ();
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext conftest$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275   (eval $ac_link) 2>conftest.er1
4276   ac_status=$?
4277   grep -v '^ *+' conftest.er1 >conftest.err
4278   rm -f conftest.er1
4279   cat conftest.err >&5
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } &&
4282          { ac_try='test -z "$ac_c_werror_flag"
4283                          || test ! -s conftest.err'
4284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285   (eval $ac_try) 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }; } &&
4289          { ac_try='test -s conftest$ac_exeext'
4290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291   (eval $ac_try) 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; }; then
4295   ac_cv_lib_fl_yywrap=yes
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 ac_cv_lib_fl_yywrap=no
4301 fi
4302 rm -f conftest.err conftest.$ac_objext \
4303       conftest$ac_exeext conftest.$ac_ext
4304 LIBS=$ac_check_lib_save_LIBS
4305 fi
4306 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4307 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4308 if test $ac_cv_lib_fl_yywrap = yes; then
4309   LEXLIB="-lfl"
4310 else
4311   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4312 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4313 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   ac_check_lib_save_LIBS=$LIBS
4317 LIBS="-ll  $LIBS"
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h.  */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h.  */
4324
4325 /* Override any gcc2 internal prototype to avoid an error.  */
4326 #ifdef __cplusplus
4327 extern "C"
4328 #endif
4329 /* We use char because int might match the return type of a gcc2
4330    builtin and then its argument prototype would still apply.  */
4331 char yywrap ();
4332 int
4333 main ()
4334 {
4335 yywrap ();
4336   ;
4337   return 0;
4338 }
4339 _ACEOF
4340 rm -f conftest.$ac_objext conftest$ac_exeext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4342   (eval $ac_link) 2>conftest.er1
4343   ac_status=$?
4344   grep -v '^ *+' conftest.er1 >conftest.err
4345   rm -f conftest.er1
4346   cat conftest.err >&5
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); } &&
4349          { ac_try='test -z "$ac_c_werror_flag"
4350                          || test ! -s conftest.err'
4351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352   (eval $ac_try) 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; } &&
4356          { ac_try='test -s conftest$ac_exeext'
4357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358   (eval $ac_try) 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); }; }; then
4362   ac_cv_lib_l_yywrap=yes
4363 else
4364   echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4366
4367 ac_cv_lib_l_yywrap=no
4368 fi
4369 rm -f conftest.err conftest.$ac_objext \
4370       conftest$ac_exeext conftest.$ac_ext
4371 LIBS=$ac_check_lib_save_LIBS
4372 fi
4373 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4374 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4375 if test $ac_cv_lib_l_yywrap = yes; then
4376   LEXLIB="-ll"
4377 fi
4378
4379 fi
4380
4381 fi
4382
4383 if test "x$LEX" != "x:"; then
4384   echo "$as_me:$LINENO: checking lex output file root" >&5
4385 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4386 if test "${ac_cv_prog_lex_root+set}" = set; then
4387   echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389   # The minimal lex program is just a single line: %%.  But some broken lexes
4390 # (Solaris, I think it was) want two %% lines, so accommodate them.
4391 cat >conftest.l <<_ACEOF
4392 %%
4393 %%
4394 _ACEOF
4395 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4396   (eval $LEX conftest.l) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }
4400 if test -f lex.yy.c; then
4401   ac_cv_prog_lex_root=lex.yy
4402 elif test -f lexyy.c; then
4403   ac_cv_prog_lex_root=lexyy
4404 else
4405   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4406 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4407    { (exit 1); exit 1; }; }
4408 fi
4409 fi
4410 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4411 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4412 rm -f conftest.l
4413 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4414
4415 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4416 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4417 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   # POSIX says lex can declare yytext either as a pointer or an array; the
4421 # default is implementation-dependent. Figure out which it is, since
4422 # not all implementations provide the %pointer and %array declarations.
4423 ac_cv_prog_lex_yytext_pointer=no
4424 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4425 ac_save_LIBS=$LIBS
4426 LIBS="$LIBS $LEXLIB"
4427 cat >conftest.$ac_ext <<_ACEOF
4428 `cat $LEX_OUTPUT_ROOT.c`
4429 _ACEOF
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432   (eval $ac_link) 2>conftest.er1
4433   ac_status=$?
4434   grep -v '^ *+' conftest.er1 >conftest.err
4435   rm -f conftest.er1
4436   cat conftest.err >&5
4437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438   (exit $ac_status); } &&
4439          { ac_try='test -z "$ac_c_werror_flag"
4440                          || test ! -s conftest.err'
4441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442   (eval $ac_try) 2>&5
4443   ac_status=$?
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); }; } &&
4446          { ac_try='test -s conftest$ac_exeext'
4447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448   (eval $ac_try) 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; }; then
4452   ac_cv_prog_lex_yytext_pointer=yes
4453 else
4454   echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4456
4457 fi
4458 rm -f conftest.err conftest.$ac_objext \
4459       conftest$ac_exeext conftest.$ac_ext
4460 LIBS=$ac_save_LIBS
4461 rm -f "${LEX_OUTPUT_ROOT}.c"
4462
4463 fi
4464 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4465 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4466 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4467
4468 cat >>confdefs.h <<\_ACEOF
4469 #define YYTEXT_POINTER 1
4470 _ACEOF
4471
4472 fi
4473
4474 fi
4475
4476 fi
4477 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4478 echo "${ECHO_T}$ac_cv_has_flex" >&6
4479 if test "$LEX" != "flex"; then
4480   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4481 echo "$as_me: error: flex not found but required" >&2;}
4482    { (exit 1); exit 1; }; }
4483 else
4484   FLEX=flex
4485
4486 fi
4487
4488 echo "$as_me:$LINENO: checking " >&5
4489 echo $ECHO_N "checking ... $ECHO_C" >&6
4490 if test "${llvm_cv_has_bison+set}" = set; then
4491   echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493   for ac_prog in 'bison -y' byacc
4494 do
4495   # Extract the first word of "$ac_prog", so it can be a program name with args.
4496 set dummy $ac_prog; ac_word=$2
4497 echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4499 if test "${ac_cv_prog_YACC+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502   if test -n "$YACC"; then
4503   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508   IFS=$as_save_IFS
4509   test -z "$as_dir" && as_dir=.
4510   for ac_exec_ext in '' $ac_executable_extensions; do
4511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4512     ac_cv_prog_YACC="$ac_prog"
4513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514     break 2
4515   fi
4516 done
4517 done
4518
4519 fi
4520 fi
4521 YACC=$ac_cv_prog_YACC
4522 if test -n "$YACC"; then
4523   echo "$as_me:$LINENO: result: $YACC" >&5
4524 echo "${ECHO_T}$YACC" >&6
4525 else
4526   echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6
4528 fi
4529
4530   test -n "$YACC" && break
4531 done
4532 test -n "$YACC" || YACC="yacc"
4533
4534 fi
4535 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4536 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4537 if test "$YACC" != "bison -y"; then
4538   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4539 echo "$as_me: error: bison not found but required" >&2;}
4540    { (exit 1); exit 1; }; }
4541 else
4542   BISON=bison
4543
4544 fi
4545
4546 echo "$as_me:$LINENO: checking for GNU make" >&5
4547 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4548 if test "${llvm_cv_gnu_make_command+set}" = set; then
4549   echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551   llvm_cv_gnu_make_command=''
4552  for a in "$MAKE" make gmake gnumake ; do
4553   if test -z "$a" ; then continue ; fi ;
4554   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4555   then
4556    llvm_cv_gnu_make_command=$a ;
4557    break;
4558   fi
4559  done
4560 fi
4561 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4562 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4563  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4564    ifGNUmake='' ;
4565  else
4566    ifGNUmake='#' ;
4567    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4568 echo "${ECHO_T}\"Not found\"" >&6;
4569  fi
4570
4571
4572 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4573 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4574 LN_S=$as_ln_s
4575 if test "$LN_S" = "ln -s"; then
4576   echo "$as_me:$LINENO: result: yes" >&5
4577 echo "${ECHO_T}yes" >&6
4578 else
4579   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4580 echo "${ECHO_T}no, using $LN_S" >&6
4581 fi
4582
4583 # Extract the first word of "cmp", so it can be a program name with args.
4584 set dummy cmp; ac_word=$2
4585 echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587 if test "${ac_cv_path_CMP+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   case $CMP in
4591   [\\/]* | ?:[\\/]*)
4592   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4593   ;;
4594   *)
4595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600   for ac_exec_ext in '' $ac_executable_extensions; do
4601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604     break 2
4605   fi
4606 done
4607 done
4608
4609   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4610   ;;
4611 esac
4612 fi
4613 CMP=$ac_cv_path_CMP
4614
4615 if test -n "$CMP"; then
4616   echo "$as_me:$LINENO: result: $CMP" >&5
4617 echo "${ECHO_T}$CMP" >&6
4618 else
4619   echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6
4621 fi
4622
4623 # Extract the first word of "cp", so it can be a program name with args.
4624 set dummy cp; ac_word=$2
4625 echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4627 if test "${ac_cv_path_CP+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   case $CP in
4631   [\\/]* | ?:[\\/]*)
4632   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4633   ;;
4634   *)
4635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640   for ac_exec_ext in '' $ac_executable_extensions; do
4641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647 done
4648
4649   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4650   ;;
4651 esac
4652 fi
4653 CP=$ac_cv_path_CP
4654
4655 if test -n "$CP"; then
4656   echo "$as_me:$LINENO: result: $CP" >&5
4657 echo "${ECHO_T}$CP" >&6
4658 else
4659   echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6
4661 fi
4662
4663 # Extract the first word of "date", so it can be a program name with args.
4664 set dummy date; ac_word=$2
4665 echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4667 if test "${ac_cv_path_DATE+set}" = set; then
4668   echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670   case $DATE in
4671   [\\/]* | ?:[\\/]*)
4672   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4673   ;;
4674   *)
4675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4677 do
4678   IFS=$as_save_IFS
4679   test -z "$as_dir" && as_dir=.
4680   for ac_exec_ext in '' $ac_executable_extensions; do
4681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684     break 2
4685   fi
4686 done
4687 done
4688
4689   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4690   ;;
4691 esac
4692 fi
4693 DATE=$ac_cv_path_DATE
4694
4695 if test -n "$DATE"; then
4696   echo "$as_me:$LINENO: result: $DATE" >&5
4697 echo "${ECHO_T}$DATE" >&6
4698 else
4699   echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6
4701 fi
4702
4703 # Extract the first word of "find", so it can be a program name with args.
4704 set dummy find; ac_word=$2
4705 echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707 if test "${ac_cv_path_FIND+set}" = set; then
4708   echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710   case $FIND in
4711   [\\/]* | ?:[\\/]*)
4712   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4713   ;;
4714   *)
4715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718   IFS=$as_save_IFS
4719   test -z "$as_dir" && as_dir=.
4720   for ac_exec_ext in '' $ac_executable_extensions; do
4721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724     break 2
4725   fi
4726 done
4727 done
4728
4729   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4730   ;;
4731 esac
4732 fi
4733 FIND=$ac_cv_path_FIND
4734
4735 if test -n "$FIND"; then
4736   echo "$as_me:$LINENO: result: $FIND" >&5
4737 echo "${ECHO_T}$FIND" >&6
4738 else
4739   echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6
4741 fi
4742
4743 # Extract the first word of "grep", so it can be a program name with args.
4744 set dummy grep; ac_word=$2
4745 echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4747 if test "${ac_cv_path_GREP+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   case $GREP in
4751   [\\/]* | ?:[\\/]*)
4752   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4753   ;;
4754   *)
4755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758   IFS=$as_save_IFS
4759   test -z "$as_dir" && as_dir=.
4760   for ac_exec_ext in '' $ac_executable_extensions; do
4761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764     break 2
4765   fi
4766 done
4767 done
4768
4769   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4770   ;;
4771 esac
4772 fi
4773 GREP=$ac_cv_path_GREP
4774
4775 if test -n "$GREP"; then
4776   echo "$as_me:$LINENO: result: $GREP" >&5
4777 echo "${ECHO_T}$GREP" >&6
4778 else
4779   echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6
4781 fi
4782
4783 # Extract the first word of "mkdir", so it can be a program name with args.
4784 set dummy mkdir; ac_word=$2
4785 echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4787 if test "${ac_cv_path_MKDIR+set}" = set; then
4788   echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790   case $MKDIR in
4791   [\\/]* | ?:[\\/]*)
4792   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4793   ;;
4794   *)
4795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800   for ac_exec_ext in '' $ac_executable_extensions; do
4801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807 done
4808
4809   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4810   ;;
4811 esac
4812 fi
4813 MKDIR=$ac_cv_path_MKDIR
4814
4815 if test -n "$MKDIR"; then
4816   echo "$as_me:$LINENO: result: $MKDIR" >&5
4817 echo "${ECHO_T}$MKDIR" >&6
4818 else
4819   echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6
4821 fi
4822
4823 # Extract the first word of "mv", so it can be a program name with args.
4824 set dummy mv; ac_word=$2
4825 echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4827 if test "${ac_cv_path_MV+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   case $MV in
4831   [\\/]* | ?:[\\/]*)
4832   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4833   ;;
4834   *)
4835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838   IFS=$as_save_IFS
4839   test -z "$as_dir" && as_dir=.
4840   for ac_exec_ext in '' $ac_executable_extensions; do
4841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844     break 2
4845   fi
4846 done
4847 done
4848
4849   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4850   ;;
4851 esac
4852 fi
4853 MV=$ac_cv_path_MV
4854
4855 if test -n "$MV"; then
4856   echo "$as_me:$LINENO: result: $MV" >&5
4857 echo "${ECHO_T}$MV" >&6
4858 else
4859   echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4861 fi
4862
4863 if test -n "$ac_tool_prefix"; then
4864   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4865 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_prog_RANLIB+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   if test -n "$RANLIB"; then
4872   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877   IFS=$as_save_IFS
4878   test -z "$as_dir" && as_dir=.
4879   for ac_exec_ext in '' $ac_executable_extensions; do
4880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883     break 2
4884   fi
4885 done
4886 done
4887
4888 fi
4889 fi
4890 RANLIB=$ac_cv_prog_RANLIB
4891 if test -n "$RANLIB"; then
4892   echo "$as_me:$LINENO: result: $RANLIB" >&5
4893 echo "${ECHO_T}$RANLIB" >&6
4894 else
4895   echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6
4897 fi
4898
4899 fi
4900 if test -z "$ac_cv_prog_RANLIB"; then
4901   ac_ct_RANLIB=$RANLIB
4902   # Extract the first word of "ranlib", so it can be a program name with args.
4903 set dummy ranlib; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   if test -n "$ac_ct_RANLIB"; then
4910   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917   for ac_exec_ext in '' $ac_executable_extensions; do
4918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919     ac_cv_prog_ac_ct_RANLIB="ranlib"
4920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924 done
4925
4926   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4927 fi
4928 fi
4929 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4930 if test -n "$ac_ct_RANLIB"; then
4931   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4932 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4933 else
4934   echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6
4936 fi
4937
4938   RANLIB=$ac_ct_RANLIB
4939 else
4940   RANLIB="$ac_cv_prog_RANLIB"
4941 fi
4942
4943 # Extract the first word of "rm", so it can be a program name with args.
4944 set dummy rm; ac_word=$2
4945 echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4947 if test "${ac_cv_path_RM+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   case $RM in
4951   [\\/]* | ?:[\\/]*)
4952   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4953   ;;
4954   *)
4955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960   for ac_exec_ext in '' $ac_executable_extensions; do
4961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967 done
4968
4969   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4970   ;;
4971 esac
4972 fi
4973 RM=$ac_cv_path_RM
4974
4975 if test -n "$RM"; then
4976   echo "$as_me:$LINENO: result: $RM" >&5
4977 echo "${ECHO_T}$RM" >&6
4978 else
4979   echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6
4981 fi
4982
4983 # Extract the first word of "sed", so it can be a program name with args.
4984 set dummy sed; ac_word=$2
4985 echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4987 if test "${ac_cv_path_SED+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   case $SED in
4991   [\\/]* | ?:[\\/]*)
4992   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4993   ;;
4994   *)
4995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000   for ac_exec_ext in '' $ac_executable_extensions; do
5001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004     break 2
5005   fi
5006 done
5007 done
5008
5009   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5010   ;;
5011 esac
5012 fi
5013 SED=$ac_cv_path_SED
5014
5015 if test -n "$SED"; then
5016   echo "$as_me:$LINENO: result: $SED" >&5
5017 echo "${ECHO_T}$SED" >&6
5018 else
5019   echo "$as_me:$LINENO: result: no" >&5
5020 echo "${ECHO_T}no" >&6
5021 fi
5022
5023 # Extract the first word of "tar", so it can be a program name with args.
5024 set dummy tar; ac_word=$2
5025 echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5027 if test "${ac_cv_path_TAR+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030   case $TAR in
5031   [\\/]* | ?:[\\/]*)
5032   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5033   ;;
5034   *)
5035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038   IFS=$as_save_IFS
5039   test -z "$as_dir" && as_dir=.
5040   for ac_exec_ext in '' $ac_executable_extensions; do
5041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044     break 2
5045   fi
5046 done
5047 done
5048
5049   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5050   ;;
5051 esac
5052 fi
5053 TAR=$ac_cv_path_TAR
5054
5055 if test -n "$TAR"; then
5056   echo "$as_me:$LINENO: result: $TAR" >&5
5057 echo "${ECHO_T}$TAR" >&6
5058 else
5059   echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6
5061 fi
5062
5063
5064 # Find a good install program.  We prefer a C program (faster),
5065 # so one script is as good as another.  But avoid the broken or
5066 # incompatible versions:
5067 # SysV /etc/install, /usr/sbin/install
5068 # SunOS /usr/etc/install
5069 # IRIX /sbin/install
5070 # AIX /bin/install
5071 # AmigaOS /C/install, which installs bootblocks on floppy discs
5072 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5073 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5074 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5075 # OS/2's system install, which has a completely different semantic
5076 # ./install, which can be erroneously created by make from ./install.sh.
5077 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5078 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5079 if test -z "$INSTALL"; then
5080 if test "${ac_cv_path_install+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088   # Account for people who put trailing slashes in PATH elements.
5089 case $as_dir/ in
5090   ./ | .// | /cC/* | \
5091   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5092   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5093   /usr/ucb/* ) ;;
5094   *)
5095     # OSF1 and SCO ODT 3.0 have their own names for install.
5096     # Don't use installbsd from OSF since it installs stuff as root
5097     # by default.
5098     for ac_prog in ginstall scoinst install; do
5099       for ac_exec_ext in '' $ac_executable_extensions; do
5100         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5101           if test $ac_prog = install &&
5102             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5103             # AIX install.  It has an incompatible calling convention.
5104             :
5105           elif test $ac_prog = install &&
5106             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5107             # program-specific install script used by HP pwplus--don't use.
5108             :
5109           else
5110             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5111             break 3
5112           fi
5113         fi
5114       done
5115     done
5116     ;;
5117 esac
5118 done
5119
5120
5121 fi
5122   if test "${ac_cv_path_install+set}" = set; then
5123     INSTALL=$ac_cv_path_install
5124   else
5125     # As a last resort, use the slow shell script.  We don't cache a
5126     # path for INSTALL within a source directory, because that will
5127     # break other packages using the cache if that directory is
5128     # removed, or if the path is relative.
5129     INSTALL=$ac_install_sh
5130   fi
5131 fi
5132 echo "$as_me:$LINENO: result: $INSTALL" >&5
5133 echo "${ECHO_T}$INSTALL" >&6
5134
5135 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5136 # It thinks the first close brace ends the variable substitution.
5137 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5138
5139 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5140
5141 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5142
5143
5144 # Extract the first word of "bzip2", so it can be a program name with args.
5145 set dummy bzip2; ac_word=$2
5146 echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148 if test "${ac_cv_path_BZIP2+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   case $BZIP2 in
5152   [\\/]* | ?:[\\/]*)
5153   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5154   ;;
5155   *)
5156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161   for ac_exec_ext in '' $ac_executable_extensions; do
5162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168 done
5169
5170   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5171   ;;
5172 esac
5173 fi
5174 BZIP2=$ac_cv_path_BZIP2
5175
5176 if test -n "$BZIP2"; then
5177   echo "$as_me:$LINENO: result: $BZIP2" >&5
5178 echo "${ECHO_T}$BZIP2" >&6
5179 else
5180   echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6
5182 fi
5183
5184 # Extract the first word of "dot", so it can be a program name with args.
5185 set dummy dot; ac_word=$2
5186 echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5188 if test "${ac_cv_path_DOT+set}" = set; then
5189   echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191   case $DOT in
5192   [\\/]* | ?:[\\/]*)
5193   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5194   ;;
5195   *)
5196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   test -z "$as_dir" && as_dir=.
5201   for ac_exec_ext in '' $ac_executable_extensions; do
5202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205     break 2
5206   fi
5207 done
5208 done
5209
5210   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5211   ;;
5212 esac
5213 fi
5214 DOT=$ac_cv_path_DOT
5215
5216 if test -n "$DOT"; then
5217   echo "$as_me:$LINENO: result: $DOT" >&5
5218 echo "${ECHO_T}$DOT" >&6
5219 else
5220   echo "$as_me:$LINENO: result: no" >&5
5221 echo "${ECHO_T}no" >&6
5222 fi
5223
5224 # Extract the first word of "doxygen", so it can be a program name with args.
5225 set dummy doxygen; ac_word=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231   case $DOXYGEN in
5232   [\\/]* | ?:[\\/]*)
5233   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5234   ;;
5235   *)
5236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5238 do
5239   IFS=$as_save_IFS
5240   test -z "$as_dir" && as_dir=.
5241   for ac_exec_ext in '' $ac_executable_extensions; do
5242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245     break 2
5246   fi
5247 done
5248 done
5249
5250   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5251   ;;
5252 esac
5253 fi
5254 DOXYGEN=$ac_cv_path_DOXYGEN
5255
5256 if test -n "$DOXYGEN"; then
5257   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5258 echo "${ECHO_T}$DOXYGEN" >&6
5259 else
5260   echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6
5262 fi
5263
5264 # Extract the first word of "etags", so it can be a program name with args.
5265 set dummy etags; ac_word=$2
5266 echo "$as_me:$LINENO: checking for $ac_word" >&5
5267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5268 if test "${ac_cv_path_ETAGS+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   case $ETAGS in
5272   [\\/]* | ?:[\\/]*)
5273   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5274   ;;
5275   *)
5276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279   IFS=$as_save_IFS
5280   test -z "$as_dir" && as_dir=.
5281   for ac_exec_ext in '' $ac_executable_extensions; do
5282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285     break 2
5286   fi
5287 done
5288 done
5289
5290   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5291   ;;
5292 esac
5293 fi
5294 ETAGS=$ac_cv_path_ETAGS
5295
5296 if test -n "$ETAGS"; then
5297   echo "$as_me:$LINENO: result: $ETAGS" >&5
5298 echo "${ECHO_T}$ETAGS" >&6
5299 else
5300   echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6
5302 fi
5303
5304 # Extract the first word of "groff", so it can be a program name with args.
5305 set dummy groff; ac_word=$2
5306 echo "$as_me:$LINENO: checking for $ac_word" >&5
5307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5308 if test "${ac_cv_path_GROFF+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   case $GROFF in
5312   [\\/]* | ?:[\\/]*)
5313   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5314   ;;
5315   *)
5316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319   IFS=$as_save_IFS
5320   test -z "$as_dir" && as_dir=.
5321   for ac_exec_ext in '' $ac_executable_extensions; do
5322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325     break 2
5326   fi
5327 done
5328 done
5329
5330   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5331   ;;
5332 esac
5333 fi
5334 GROFF=$ac_cv_path_GROFF
5335
5336 if test -n "$GROFF"; then
5337   echo "$as_me:$LINENO: result: $GROFF" >&5
5338 echo "${ECHO_T}$GROFF" >&6
5339 else
5340   echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6
5342 fi
5343
5344 # Extract the first word of "gzip", so it can be a program name with args.
5345 set dummy gzip; ac_word=$2
5346 echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 if test "${ac_cv_path_GZIP+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   case $GZIP in
5352   [\\/]* | ?:[\\/]*)
5353   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5354   ;;
5355   *)
5356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359   IFS=$as_save_IFS
5360   test -z "$as_dir" && as_dir=.
5361   for ac_exec_ext in '' $ac_executable_extensions; do
5362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365     break 2
5366   fi
5367 done
5368 done
5369
5370   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5371   ;;
5372 esac
5373 fi
5374 GZIP=$ac_cv_path_GZIP
5375
5376 if test -n "$GZIP"; then
5377   echo "$as_me:$LINENO: result: $GZIP" >&5
5378 echo "${ECHO_T}$GZIP" >&6
5379 else
5380   echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6
5382 fi
5383
5384 # Extract the first word of "pod2html", so it can be a program name with args.
5385 set dummy pod2html; ac_word=$2
5386 echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388 if test "${ac_cv_path_POD2HTML+set}" = set; then
5389   echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391   case $POD2HTML in
5392   [\\/]* | ?:[\\/]*)
5393   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5394   ;;
5395   *)
5396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401   for ac_exec_ext in '' $ac_executable_extensions; do
5402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408 done
5409
5410   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5411   ;;
5412 esac
5413 fi
5414 POD2HTML=$ac_cv_path_POD2HTML
5415
5416 if test -n "$POD2HTML"; then
5417   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5418 echo "${ECHO_T}$POD2HTML" >&6
5419 else
5420   echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6
5422 fi
5423
5424 # Extract the first word of "pod2man", so it can be a program name with args.
5425 set dummy pod2man; ac_word=$2
5426 echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428 if test "${ac_cv_path_POD2MAN+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   case $POD2MAN in
5432   [\\/]* | ?:[\\/]*)
5433   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5434   ;;
5435   *)
5436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441   for ac_exec_ext in '' $ac_executable_extensions; do
5442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448 done
5449
5450   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5451   ;;
5452 esac
5453 fi
5454 POD2MAN=$ac_cv_path_POD2MAN
5455
5456 if test -n "$POD2MAN"; then
5457   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5458 echo "${ECHO_T}$POD2MAN" >&6
5459 else
5460   echo "$as_me:$LINENO: result: no" >&5
5461 echo "${ECHO_T}no" >&6
5462 fi
5463
5464 # Extract the first word of "runtest", so it can be a program name with args.
5465 set dummy runtest; ac_word=$2
5466 echo "$as_me:$LINENO: checking for $ac_word" >&5
5467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5468 if test "${ac_cv_path_RUNTEST+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   case $RUNTEST in
5472   [\\/]* | ?:[\\/]*)
5473   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5474   ;;
5475   *)
5476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479   IFS=$as_save_IFS
5480   test -z "$as_dir" && as_dir=.
5481   for ac_exec_ext in '' $ac_executable_extensions; do
5482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5485     break 2
5486   fi
5487 done
5488 done
5489
5490   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5491   ;;
5492 esac
5493 fi
5494 RUNTEST=$ac_cv_path_RUNTEST
5495
5496 if test -n "$RUNTEST"; then
5497   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5498 echo "${ECHO_T}$RUNTEST" >&6
5499 else
5500   echo "$as_me:$LINENO: result: no" >&5
5501 echo "${ECHO_T}no" >&6
5502 fi
5503
5504
5505 no_itcl=true
5506 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5507 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5508
5509 # Check whether --with-tclinclude or --without-tclinclude was given.
5510 if test "${with_tclinclude+set}" = set; then
5511   withval="$with_tclinclude"
5512   with_tclinclude=${withval}
5513 else
5514   with_tclinclude=''
5515 fi;
5516 if test "${ac_cv_path_tclsh+set}" = set; then
5517   echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519
5520 if test x"${with_tclinclude}" != x ; then
5521   if test -f ${with_tclinclude}/tclsh ; then
5522     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5523   elif test -f ${with_tclinclude}/src/tclsh ; then
5524     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5525   else
5526     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5527 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5528    { (exit 1); exit 1; }; }
5529   fi
5530 fi
5531
5532 if test x"${ac_cv_path_tclsh}" = x ; then
5533   echo "$as_me:$LINENO: result: none" >&5
5534 echo "${ECHO_T}none" >&6
5535   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
5536 do
5537   # Extract the first word of "$ac_prog", so it can be a program name with args.
5538 set dummy $ac_prog; ac_word=$2
5539 echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5541 if test "${ac_cv_path_TCLSH+set}" = set; then
5542   echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544   case $TCLSH in
5545   [\\/]* | ?:[\\/]*)
5546   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5547   ;;
5548   *)
5549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554   for ac_exec_ext in '' $ac_executable_extensions; do
5555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558     break 2
5559   fi
5560 done
5561 done
5562
5563   ;;
5564 esac
5565 fi
5566 TCLSH=$ac_cv_path_TCLSH
5567
5568 if test -n "$TCLSH"; then
5569   echo "$as_me:$LINENO: result: $TCLSH" >&5
5570 echo "${ECHO_T}$TCLSH" >&6
5571 else
5572   echo "$as_me:$LINENO: result: no" >&5
5573 echo "${ECHO_T}no" >&6
5574 fi
5575
5576   test -n "$TCLSH" && break
5577 done
5578
5579   if test x"${TCLSH}" = x ; then
5580     ac_cv_path_tclsh='';
5581   else
5582     ac_cv_path_tclsh="${TCLSH}";
5583   fi
5584 else
5585   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5586 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5587   TCLSH="${ac_cv_path_tclsh}"
5588
5589 fi
5590
5591 fi
5592
5593 # Extract the first word of "zip", so it can be a program name with args.
5594 set dummy zip; ac_word=$2
5595 echo "$as_me:$LINENO: checking for $ac_word" >&5
5596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5597 if test "${ac_cv_path_ZIP+set}" = set; then
5598   echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600   case $ZIP in
5601   [\\/]* | ?:[\\/]*)
5602   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5603   ;;
5604   *)
5605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5607 do
5608   IFS=$as_save_IFS
5609   test -z "$as_dir" && as_dir=.
5610   for ac_exec_ext in '' $ac_executable_extensions; do
5611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5614     break 2
5615   fi
5616 done
5617 done
5618
5619   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5620   ;;
5621 esac
5622 fi
5623 ZIP=$ac_cv_path_ZIP
5624
5625 if test -n "$ZIP"; then
5626   echo "$as_me:$LINENO: result: $ZIP" >&5
5627 echo "${ECHO_T}$ZIP" >&6
5628 else
5629   echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5631 fi
5632
5633
5634 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5635 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5636 if test "${llvm_cv_link_use_r+set}" = set; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639    ac_ext=c
5640 ac_cpp='$CPP $CPPFLAGS'
5641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5644
5645   oldcflags="$CFLAGS"
5646   CFLAGS="$CFLAGS -Wl,-R."
5647   cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h.  */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h.  */
5653
5654 int
5655 main ()
5656 {
5657 int main() { return 0; }
5658   ;
5659   return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664   (eval $ac_link) 2>conftest.er1
5665   ac_status=$?
5666   grep -v '^ *+' conftest.er1 >conftest.err
5667   rm -f conftest.er1
5668   cat conftest.err >&5
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } &&
5671          { ac_try='test -z "$ac_c_werror_flag"
5672                          || test ! -s conftest.err'
5673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674   (eval $ac_try) 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); }; } &&
5678          { ac_try='test -s conftest$ac_exeext'
5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680   (eval $ac_try) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; }; then
5684   llvm_cv_link_use_r=yes
5685 else
5686   echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689 llvm_cv_link_use_r=no
5690 fi
5691 rm -f conftest.err conftest.$ac_objext \
5692       conftest$ac_exeext conftest.$ac_ext
5693   CFLAGS="$oldcflags"
5694   ac_ext=c
5695 ac_cpp='$CPP $CPPFLAGS'
5696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699
5700
5701 fi
5702 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5703 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5704 if test "$llvm_cv_link_use_r" = yes ; then
5705
5706 cat >>confdefs.h <<\_ACEOF
5707 #define HAVE_LINK_R 1
5708 _ACEOF
5709
5710   fi
5711
5712
5713
5714
5715 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5716 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5717 if test "${ac_cv_c_const+set}" = set; then
5718   echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720   cat >conftest.$ac_ext <<_ACEOF
5721 /* confdefs.h.  */
5722 _ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h.  */
5726
5727 int
5728 main ()
5729 {
5730 /* FIXME: Include the comments suggested by Paul. */
5731 #ifndef __cplusplus
5732   /* Ultrix mips cc rejects this.  */
5733   typedef int charset[2];
5734   const charset x;
5735   /* SunOS 4.1.1 cc rejects this.  */
5736   char const *const *ccp;
5737   char **p;
5738   /* NEC SVR4.0.2 mips cc rejects this.  */
5739   struct point {int x, y;};
5740   static struct point const zero = {0,0};
5741   /* AIX XL C 1.02.0.0 rejects this.
5742      It does not let you subtract one const X* pointer from another in
5743      an arm of an if-expression whose if-part is not a constant
5744      expression */
5745   const char *g = "string";
5746   ccp = &g + (g ? g-g : 0);
5747   /* HPUX 7.0 cc rejects these. */
5748   ++ccp;
5749   p = (char**) ccp;
5750   ccp = (char const *const *) p;
5751   { /* SCO 3.2v4 cc rejects this.  */
5752     char *t;
5753     char const *s = 0 ? (char *) 0 : (char const *) 0;
5754
5755     *t++ = 0;
5756   }
5757   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5758     int x[] = {25, 17};
5759     const int *foo = &x[0];
5760     ++foo;
5761   }
5762   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5763     typedef const int *iptr;
5764     iptr p = 0;
5765     ++p;
5766   }
5767   { /* AIX XL C 1.02.0.0 rejects this saying
5768        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5769     struct s { int j; const int *ap[3]; };
5770     struct s *b; b->j = 5;
5771   }
5772   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5773     const int foo = 10;
5774   }
5775 #endif
5776
5777   ;
5778   return 0;
5779 }
5780 _ACEOF
5781 rm -f conftest.$ac_objext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783   (eval $ac_compile) 2>conftest.er1
5784   ac_status=$?
5785   grep -v '^ *+' conftest.er1 >conftest.err
5786   rm -f conftest.er1
5787   cat conftest.err >&5
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } &&
5790          { ac_try='test -z "$ac_c_werror_flag"
5791                          || test ! -s conftest.err'
5792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793   (eval $ac_try) 2>&5
5794   ac_status=$?
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); }; } &&
5797          { ac_try='test -s conftest.$ac_objext'
5798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799   (eval $ac_try) 2>&5
5800   ac_status=$?
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); }; }; then
5803   ac_cv_c_const=yes
5804 else
5805   echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808 ac_cv_c_const=no
5809 fi
5810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811 fi
5812 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5813 echo "${ECHO_T}$ac_cv_c_const" >&6
5814 if test $ac_cv_c_const = no; then
5815
5816 cat >>confdefs.h <<\_ACEOF
5817 #define const
5818 _ACEOF
5819
5820 fi
5821
5822
5823 echo "$as_me:$LINENO: checking for egrep" >&5
5824 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5825 if test "${ac_cv_prog_egrep+set}" = set; then
5826   echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5829     then ac_cv_prog_egrep='grep -E'
5830     else ac_cv_prog_egrep='egrep'
5831     fi
5832 fi
5833 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5834 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5835  EGREP=$ac_cv_prog_egrep
5836
5837
5838 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5839 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5840 if test "${ac_cv_header_stdc+set}" = set; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843   cat >conftest.$ac_ext <<_ACEOF
5844 /* confdefs.h.  */
5845 _ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h.  */
5849 #include <stdlib.h>
5850 #include <stdarg.h>
5851 #include <string.h>
5852 #include <float.h>
5853
5854 int
5855 main ()
5856 {
5857
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864   (eval $ac_compile) 2>conftest.er1
5865   ac_status=$?
5866   grep -v '^ *+' conftest.er1 >conftest.err
5867   rm -f conftest.er1
5868   cat conftest.err >&5
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); } &&
5871          { ac_try='test -z "$ac_c_werror_flag"
5872                          || test ! -s conftest.err'
5873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874   (eval $ac_try) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; } &&
5878          { ac_try='test -s conftest.$ac_objext'
5879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880   (eval $ac_try) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; }; then
5884   ac_cv_header_stdc=yes
5885 else
5886   echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5888
5889 ac_cv_header_stdc=no
5890 fi
5891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5892
5893 if test $ac_cv_header_stdc = yes; then
5894   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5895   cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h.  */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h.  */
5901 #include <string.h>
5902
5903 _ACEOF
5904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5905   $EGREP "memchr" >/dev/null 2>&1; then
5906   :
5907 else
5908   ac_cv_header_stdc=no
5909 fi
5910 rm -f conftest*
5911
5912 fi
5913
5914 if test $ac_cv_header_stdc = yes; then
5915   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5916   cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h.  */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h.  */
5922 #include <stdlib.h>
5923
5924 _ACEOF
5925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5926   $EGREP "free" >/dev/null 2>&1; then
5927   :
5928 else
5929   ac_cv_header_stdc=no
5930 fi
5931 rm -f conftest*
5932
5933 fi
5934
5935 if test $ac_cv_header_stdc = yes; then
5936   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5937   if test "$cross_compiling" = yes; then
5938   :
5939 else
5940   cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h.  */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h.  */
5946 #include <ctype.h>
5947 #if ((' ' & 0x0FF) == 0x020)
5948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5950 #else
5951 # define ISLOWER(c) \
5952                    (('a' <= (c) && (c) <= 'i') \
5953                      || ('j' <= (c) && (c) <= 'r') \
5954                      || ('s' <= (c) && (c) <= 'z'))
5955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5956 #endif
5957
5958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5959 int
5960 main ()
5961 {
5962   int i;
5963   for (i = 0; i < 256; i++)
5964     if (XOR (islower (i), ISLOWER (i))
5965         || toupper (i) != TOUPPER (i))
5966       exit(2);
5967   exit (0);
5968 }
5969 _ACEOF
5970 rm -f conftest$ac_exeext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5972   (eval $ac_link) 2>&5
5973   ac_status=$?
5974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977   (eval $ac_try) 2>&5
5978   ac_status=$?
5979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980   (exit $ac_status); }; }; then
5981   :
5982 else
5983   echo "$as_me: program exited with status $ac_status" >&5
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5986
5987 ( exit $ac_status )
5988 ac_cv_header_stdc=no
5989 fi
5990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5991 fi
5992 fi
5993 fi
5994 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5995 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5996 if test $ac_cv_header_stdc = yes; then
5997
5998 cat >>confdefs.h <<\_ACEOF
5999 #define STDC_HEADERS 1
6000 _ACEOF
6001
6002 fi
6003
6004
6005
6006
6007
6008
6009 ac_header_dirent=no
6010 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6011   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6012 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6013 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h.  */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h.  */
6023 #include <sys/types.h>
6024 #include <$ac_hdr>
6025
6026 int
6027 main ()
6028 {
6029 if ((DIR *) 0)
6030 return 0;
6031   ;
6032   return 0;
6033 }
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037   (eval $ac_compile) 2>conftest.er1
6038   ac_status=$?
6039   grep -v '^ *+' conftest.er1 >conftest.err
6040   rm -f conftest.er1
6041   cat conftest.err >&5
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -z "$ac_c_werror_flag"
6045                          || test ! -s conftest.err'
6046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047   (eval $ac_try) 2>&5
6048   ac_status=$?
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); }; } &&
6051          { ac_try='test -s conftest.$ac_objext'
6052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053   (eval $ac_try) 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }; }; then
6057   eval "$as_ac_Header=yes"
6058 else
6059   echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 eval "$as_ac_Header=no"
6063 fi
6064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6065 fi
6066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6069   cat >>confdefs.h <<_ACEOF
6070 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6071 _ACEOF
6072
6073 ac_header_dirent=$ac_hdr; break
6074 fi
6075
6076 done
6077 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6078 if test $ac_header_dirent = dirent.h; then
6079   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6080 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6081 if test "${ac_cv_search_opendir+set}" = set; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084   ac_func_search_save_LIBS=$LIBS
6085 ac_cv_search_opendir=no
6086 cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h.  */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h.  */
6092
6093 /* Override any gcc2 internal prototype to avoid an error.  */
6094 #ifdef __cplusplus
6095 extern "C"
6096 #endif
6097 /* We use char because int might match the return type of a gcc2
6098    builtin and then its argument prototype would still apply.  */
6099 char opendir ();
6100 int
6101 main ()
6102 {
6103 opendir ();
6104   ;
6105   return 0;
6106 }
6107 _ACEOF
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110   (eval $ac_link) 2>conftest.er1
6111   ac_status=$?
6112   grep -v '^ *+' conftest.er1 >conftest.err
6113   rm -f conftest.er1
6114   cat conftest.err >&5
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); } &&
6117          { ac_try='test -z "$ac_c_werror_flag"
6118                          || test ! -s conftest.err'
6119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120   (eval $ac_try) 2>&5
6121   ac_status=$?
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); }; } &&
6124          { ac_try='test -s conftest$ac_exeext'
6125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126   (eval $ac_try) 2>&5
6127   ac_status=$?
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); }; }; then
6130   ac_cv_search_opendir="none required"
6131 else
6132   echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135 fi
6136 rm -f conftest.err conftest.$ac_objext \
6137       conftest$ac_exeext conftest.$ac_ext
6138 if test "$ac_cv_search_opendir" = no; then
6139   for ac_lib in dir; do
6140     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6141     cat >conftest.$ac_ext <<_ACEOF
6142 /* confdefs.h.  */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h.  */
6147
6148 /* Override any gcc2 internal prototype to avoid an error.  */
6149 #ifdef __cplusplus
6150 extern "C"
6151 #endif
6152 /* We use char because int might match the return type of a gcc2
6153    builtin and then its argument prototype would still apply.  */
6154 char opendir ();
6155 int
6156 main ()
6157 {
6158 opendir ();
6159   ;
6160   return 0;
6161 }
6162 _ACEOF
6163 rm -f conftest.$ac_objext conftest$ac_exeext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165   (eval $ac_link) 2>conftest.er1
6166   ac_status=$?
6167   grep -v '^ *+' conftest.er1 >conftest.err
6168   rm -f conftest.er1
6169   cat conftest.err >&5
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); } &&
6172          { ac_try='test -z "$ac_c_werror_flag"
6173                          || test ! -s conftest.err'
6174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175   (eval $ac_try) 2>&5
6176   ac_status=$?
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); }; } &&
6179          { ac_try='test -s conftest$ac_exeext'
6180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181   (eval $ac_try) 2>&5
6182   ac_status=$?
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); }; }; then
6185   ac_cv_search_opendir="-l$ac_lib"
6186 break
6187 else
6188   echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6190
6191 fi
6192 rm -f conftest.err conftest.$ac_objext \
6193       conftest$ac_exeext conftest.$ac_ext
6194   done
6195 fi
6196 LIBS=$ac_func_search_save_LIBS
6197 fi
6198 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6199 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6200 if test "$ac_cv_search_opendir" != no; then
6201   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6202
6203 fi
6204
6205 else
6206   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6207 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6208 if test "${ac_cv_search_opendir+set}" = set; then
6209   echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211   ac_func_search_save_LIBS=$LIBS
6212 ac_cv_search_opendir=no
6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219
6220 /* Override any gcc2 internal prototype to avoid an error.  */
6221 #ifdef __cplusplus
6222 extern "C"
6223 #endif
6224 /* We use char because int might match the return type of a gcc2
6225    builtin and then its argument prototype would still apply.  */
6226 char opendir ();
6227 int
6228 main ()
6229 {
6230 opendir ();
6231   ;
6232   return 0;
6233 }
6234 _ACEOF
6235 rm -f conftest.$ac_objext conftest$ac_exeext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6237   (eval $ac_link) 2>conftest.er1
6238   ac_status=$?
6239   grep -v '^ *+' conftest.er1 >conftest.err
6240   rm -f conftest.er1
6241   cat conftest.err >&5
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); } &&
6244          { ac_try='test -z "$ac_c_werror_flag"
6245                          || test ! -s conftest.err'
6246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247   (eval $ac_try) 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); }; } &&
6251          { ac_try='test -s conftest$ac_exeext'
6252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253   (eval $ac_try) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); }; }; then
6257   ac_cv_search_opendir="none required"
6258 else
6259   echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262 fi
6263 rm -f conftest.err conftest.$ac_objext \
6264       conftest$ac_exeext conftest.$ac_ext
6265 if test "$ac_cv_search_opendir" = no; then
6266   for ac_lib in x; do
6267     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6268     cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h.  */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h.  */
6274
6275 /* Override any gcc2 internal prototype to avoid an error.  */
6276 #ifdef __cplusplus
6277 extern "C"
6278 #endif
6279 /* We use char because int might match the return type of a gcc2
6280    builtin and then its argument prototype would still apply.  */
6281 char opendir ();
6282 int
6283 main ()
6284 {
6285 opendir ();
6286   ;
6287   return 0;
6288 }
6289 _ACEOF
6290 rm -f conftest.$ac_objext conftest$ac_exeext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292   (eval $ac_link) 2>conftest.er1
6293   ac_status=$?
6294   grep -v '^ *+' conftest.er1 >conftest.err
6295   rm -f conftest.er1
6296   cat conftest.err >&5
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); } &&
6299          { ac_try='test -z "$ac_c_werror_flag"
6300                          || test ! -s conftest.err'
6301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302   (eval $ac_try) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; } &&
6306          { ac_try='test -s conftest$ac_exeext'
6307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308   (eval $ac_try) 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); }; }; then
6312   ac_cv_search_opendir="-l$ac_lib"
6313 break
6314 else
6315   echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6317
6318 fi
6319 rm -f conftest.err conftest.$ac_objext \
6320       conftest$ac_exeext conftest.$ac_ext
6321   done
6322 fi
6323 LIBS=$ac_func_search_save_LIBS
6324 fi
6325 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6326 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6327 if test "$ac_cv_search_opendir" != no; then
6328   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6329
6330 fi
6331
6332 fi
6333
6334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6345                   inttypes.h stdint.h unistd.h
6346 do
6347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348 echo "$as_me:$LINENO: checking for $ac_header" >&5
6349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   cat >conftest.$ac_ext <<_ACEOF
6354 /* confdefs.h.  */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h.  */
6359 $ac_includes_default
6360
6361 #include <$ac_header>
6362 _ACEOF
6363 rm -f conftest.$ac_objext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6365   (eval $ac_compile) 2>conftest.er1
6366   ac_status=$?
6367   grep -v '^ *+' conftest.er1 >conftest.err
6368   rm -f conftest.er1
6369   cat conftest.err >&5
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); } &&
6372          { ac_try='test -z "$ac_c_werror_flag"
6373                          || test ! -s conftest.err'
6374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375   (eval $ac_try) 2>&5
6376   ac_status=$?
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); }; } &&
6379          { ac_try='test -s conftest.$ac_objext'
6380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381   (eval $ac_try) 2>&5
6382   ac_status=$?
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); }; }; then
6385   eval "$as_ac_Header=yes"
6386 else
6387   echo "$as_me: failed program was:" >&5
6388 sed 's/^/| /' conftest.$ac_ext >&5
6389
6390 eval "$as_ac_Header=no"
6391 fi
6392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6393 fi
6394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6397   cat >>confdefs.h <<_ACEOF
6398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6399 _ACEOF
6400
6401 fi
6402
6403 done
6404
6405
6406
6407 for ac_header in dlfcn.h
6408 do
6409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411   echo "$as_me:$LINENO: checking for $ac_header" >&5
6412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 fi
6416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6418 else
6419   # Is the header compilable?
6420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6422 cat >conftest.$ac_ext <<_ACEOF
6423 /* confdefs.h.  */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h.  */
6428 $ac_includes_default
6429 #include <$ac_header>
6430 _ACEOF
6431 rm -f conftest.$ac_objext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433   (eval $ac_compile) 2>conftest.er1
6434   ac_status=$?
6435   grep -v '^ *+' conftest.er1 >conftest.err
6436   rm -f conftest.er1
6437   cat conftest.err >&5
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); } &&
6440          { ac_try='test -z "$ac_c_werror_flag"
6441                          || test ! -s conftest.err'
6442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443   (eval $ac_try) 2>&5
6444   ac_status=$?
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); }; } &&
6447          { ac_try='test -s conftest.$ac_objext'
6448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449   (eval $ac_try) 2>&5
6450   ac_status=$?
6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452   (exit $ac_status); }; }; then
6453   ac_header_compiler=yes
6454 else
6455   echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6457
6458 ac_header_compiler=no
6459 fi
6460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6462 echo "${ECHO_T}$ac_header_compiler" >&6
6463
6464 # Is the header present?
6465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h.  */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h.  */
6473 #include <$ac_header>
6474 _ACEOF
6475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6477   ac_status=$?
6478   grep -v '^ *+' conftest.er1 >conftest.err
6479   rm -f conftest.er1
6480   cat conftest.err >&5
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); } >/dev/null; then
6483   if test -s conftest.err; then
6484     ac_cpp_err=$ac_c_preproc_warn_flag
6485     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6486   else
6487     ac_cpp_err=
6488   fi
6489 else
6490   ac_cpp_err=yes
6491 fi
6492 if test -z "$ac_cpp_err"; then
6493   ac_header_preproc=yes
6494 else
6495   echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6497
6498   ac_header_preproc=no
6499 fi
6500 rm -f conftest.err conftest.$ac_ext
6501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6502 echo "${ECHO_T}$ac_header_preproc" >&6
6503
6504 # So?  What about this header?
6505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6506   yes:no: )
6507     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6511     ac_header_preproc=yes
6512     ;;
6513   no:yes:* )
6514     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6516     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6517 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6518     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6520     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6521 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6524     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6526     (
6527       cat <<\_ASBOX
6528 ## ----------------------------------- ##
6529 ## Report this to llvmbugs@cs.uiuc.edu ##
6530 ## ----------------------------------- ##
6531 _ASBOX
6532     ) |
6533       sed "s/^/$as_me: WARNING:     /" >&2
6534     ;;
6535 esac
6536 echo "$as_me:$LINENO: checking for $ac_header" >&5
6537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6539   echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541   eval "$as_ac_Header=\$ac_header_preproc"
6542 fi
6543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6545
6546 fi
6547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6548   cat >>confdefs.h <<_ACEOF
6549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6550 _ACEOF
6551
6552 fi
6553
6554 done
6555
6556 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6557 if test "${enable_ltdl_install+set}" = set; then
6558   enableval="$enable_ltdl_install"
6559
6560 fi;
6561
6562
6563
6564 if test x"${enable_ltdl_install-no}" != xno; then
6565   INSTALL_LTDL_TRUE=
6566   INSTALL_LTDL_FALSE='#'
6567 else
6568   INSTALL_LTDL_TRUE='#'
6569   INSTALL_LTDL_FALSE=
6570 fi
6571
6572
6573
6574 if test x"${enable_ltdl_convenience-no}" != xno; then
6575   CONVENIENCE_LTDL_TRUE=
6576   CONVENIENCE_LTDL_FALSE='#'
6577 else
6578   CONVENIENCE_LTDL_TRUE='#'
6579   CONVENIENCE_LTDL_FALSE=
6580 fi
6581
6582
6583 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6584 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6585 library_names_spec=
6586 libname_spec='lib$name'
6587 soname_spec=
6588 shrext_cmds=".so"
6589 postinstall_cmds=
6590 postuninstall_cmds=
6591 finish_cmds=
6592 finish_eval=
6593 shlibpath_var=
6594 shlibpath_overrides_runpath=unknown
6595 version_type=none
6596 dynamic_linker="$host_os ld.so"
6597 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6598 if test "$GCC" = yes; then
6599   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6600   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6601     # if the path contains ";" then we assume it to be the separator
6602     # otherwise default to the standard path separator (i.e. ":") - it is
6603     # assumed that no part of a normal pathname contains ";" but that should
6604     # okay in the real world where ";" in dirpaths is itself problematic.
6605     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6606   else
6607     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6608   fi
6609 else
6610   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6611 fi
6612 need_lib_prefix=unknown
6613 hardcode_into_libs=no
6614
6615 # when you set need_version to no, make sure it does not cause -set_version
6616 # flags to be left without arguments
6617 need_version=unknown
6618
6619 case $host_os in
6620 aix3*)
6621   version_type=linux
6622   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6623   shlibpath_var=LIBPATH
6624
6625   # AIX 3 has no versioning support, so we append a major version to the name.
6626   soname_spec='${libname}${release}${shared_ext}$major'
6627   ;;
6628
6629 aix4* | aix5*)
6630   version_type=linux
6631   need_lib_prefix=no
6632   need_version=no
6633   hardcode_into_libs=yes
6634   if test "$host_cpu" = ia64; then
6635     # AIX 5 supports IA64
6636     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6637     shlibpath_var=LD_LIBRARY_PATH
6638   else
6639     # With GCC up to 2.95.x, collect2 would create an import file
6640     # for dependence libraries.  The import file would start with
6641     # the line `#! .'.  This would cause the generated library to
6642     # depend on `.', always an invalid library.  This was fixed in
6643     # development snapshots of GCC prior to 3.0.
6644     case $host_os in
6645       aix4 | aix4.[01] | aix4.[01].*)
6646       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6647            echo ' yes '
6648            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6649         :
6650       else
6651         can_build_shared=no
6652       fi
6653       ;;
6654     esac
6655     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6656     # soname into executable. Probably we can add versioning support to
6657     # collect2, so additional links can be useful in future.
6658     if test "$aix_use_runtimelinking" = yes; then
6659       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6660       # instead of lib<name>.a to let people know that these are not
6661       # typical AIX shared libraries.
6662       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6663     else
6664       # We preserve .a as extension for shared libraries through AIX4.2
6665       # and later when we are not doing run time linking.
6666       library_names_spec='${libname}${release}.a $libname.a'
6667       soname_spec='${libname}${release}${shared_ext}$major'
6668     fi
6669     shlibpath_var=LIBPATH
6670   fi
6671   ;;
6672
6673 amigaos*)
6674   library_names_spec='$libname.ixlibrary $libname.a'
6675   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6676   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'
6677   ;;
6678
6679 beos*)
6680   library_names_spec='${libname}${shared_ext}'
6681   dynamic_linker="$host_os ld.so"
6682   shlibpath_var=LIBRARY_PATH
6683   ;;
6684
6685 bsdi[45]*)
6686   version_type=linux
6687   need_version=no
6688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6689   soname_spec='${libname}${release}${shared_ext}$major'
6690   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6691   shlibpath_var=LD_LIBRARY_PATH
6692   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6693   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6694   # the default ld.so.conf also contains /usr/contrib/lib and
6695   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6696   # libtool to hard-code these into programs
6697   ;;
6698
6699 cygwin* | mingw* | pw32*)
6700   version_type=windows
6701   shrext_cmds=".dll"
6702   need_version=no
6703   need_lib_prefix=no
6704
6705   case $GCC,$host_os in
6706   yes,cygwin* | yes,mingw* | yes,pw32*)
6707     library_names_spec='$libname.dll.a'
6708     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6709     postinstall_cmds='base_file=`basename \${file}`~
6710       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6711       dldir=$destdir/`dirname \$dlpath`~
6712       test -d \$dldir || mkdir -p \$dldir~
6713       $install_prog $dir/$dlname \$dldir/$dlname'
6714     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6715       dlpath=$dir/\$dldll~
6716        $rm \$dlpath'
6717     shlibpath_overrides_runpath=yes
6718
6719     case $host_os in
6720     cygwin*)
6721       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6722       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6723       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6724       ;;
6725     mingw*)
6726       # MinGW DLLs use traditional 'lib' prefix
6727       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6728       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6729       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6730         # It is most probably a Windows format PATH printed by
6731         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6732         # path with ; separators, and with drive letters. We can handle the
6733         # drive letters (cygwin fileutils understands them), so leave them,
6734         # especially as we might pass files found there to a mingw objdump,
6735         # which wouldn't understand a cygwinified path. Ahh.
6736         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6737       else
6738         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6739       fi
6740       ;;
6741     pw32*)
6742       # pw32 DLLs use 'pw' prefix rather than 'lib'
6743       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6744       ;;
6745     esac
6746     ;;
6747
6748   *)
6749     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6750     ;;
6751   esac
6752   dynamic_linker='Win32 ld.exe'
6753   # FIXME: first we should search . and the directory the executable is in
6754   shlibpath_var=PATH
6755   ;;
6756
6757 darwin* | rhapsody*)
6758   dynamic_linker="$host_os dyld"
6759   version_type=darwin
6760   need_lib_prefix=no
6761   need_version=no
6762   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6763   soname_spec='${libname}${release}${major}$shared_ext'
6764   shlibpath_overrides_runpath=yes
6765   shlibpath_var=DYLD_LIBRARY_PATH
6766   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6767   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6768   if test "$GCC" = yes; then
6769     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"`
6770   else
6771     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6772   fi
6773   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6774   ;;
6775
6776 dgux*)
6777   version_type=linux
6778   need_lib_prefix=no
6779   need_version=no
6780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6781   soname_spec='${libname}${release}${shared_ext}$major'
6782   shlibpath_var=LD_LIBRARY_PATH
6783   ;;
6784
6785 freebsd1*)
6786   dynamic_linker=no
6787   ;;
6788
6789 kfreebsd*-gnu)
6790   version_type=linux
6791   need_lib_prefix=no
6792   need_version=no
6793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6794   soname_spec='${libname}${release}${shared_ext}$major'
6795   shlibpath_var=LD_LIBRARY_PATH
6796   shlibpath_overrides_runpath=no
6797   hardcode_into_libs=yes
6798   dynamic_linker='GNU ld.so'
6799   ;;
6800
6801 freebsd*)
6802   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6803   version_type=freebsd-$objformat
6804   case $version_type in
6805     freebsd-elf*)
6806       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6807       need_version=no
6808       need_lib_prefix=no
6809       ;;
6810     freebsd-*)
6811       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6812       need_version=yes
6813       ;;
6814   esac
6815   shlibpath_var=LD_LIBRARY_PATH
6816   case $host_os in
6817   freebsd2*)
6818     shlibpath_overrides_runpath=yes
6819     ;;
6820   freebsd3.01* | freebsdelf3.01*)
6821     shlibpath_overrides_runpath=yes
6822     hardcode_into_libs=yes
6823     ;;
6824   *) # from 3.2 on
6825     shlibpath_overrides_runpath=no
6826     hardcode_into_libs=yes
6827     ;;
6828   esac
6829   ;;
6830
6831 gnu*)
6832   version_type=linux
6833   need_lib_prefix=no
6834   need_version=no
6835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6836   soname_spec='${libname}${release}${shared_ext}$major'
6837   shlibpath_var=LD_LIBRARY_PATH
6838   hardcode_into_libs=yes
6839   ;;
6840
6841 hpux9* | hpux10* | hpux11*)
6842   # Give a soname corresponding to the major version so that dld.sl refuses to
6843   # link against other versions.
6844   version_type=sunos
6845   need_lib_prefix=no
6846   need_version=no
6847   case "$host_cpu" in
6848   ia64*)
6849     shrext_cmds='.so'
6850     hardcode_into_libs=yes
6851     dynamic_linker="$host_os dld.so"
6852     shlibpath_var=LD_LIBRARY_PATH
6853     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6855     soname_spec='${libname}${release}${shared_ext}$major'
6856     if test "X$HPUX_IA64_MODE" = X32; then
6857       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6858     else
6859       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6860     fi
6861     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6862     ;;
6863    hppa*64*)
6864      shrext_cmds='.sl'
6865      hardcode_into_libs=yes
6866      dynamic_linker="$host_os dld.sl"
6867      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6868      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6869      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6870      soname_spec='${libname}${release}${shared_ext}$major'
6871      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6872      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6873      ;;
6874    *)
6875     shrext_cmds='.sl'
6876     dynamic_linker="$host_os dld.sl"
6877     shlibpath_var=SHLIB_PATH
6878     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6880     soname_spec='${libname}${release}${shared_ext}$major'
6881     ;;
6882   esac
6883   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6884   postinstall_cmds='chmod 555 $lib'
6885   ;;
6886
6887 irix5* | irix6* | nonstopux*)
6888   case $host_os in
6889     nonstopux*) version_type=nonstopux ;;
6890     *)
6891         if test "$lt_cv_prog_gnu_ld" = yes; then
6892                 version_type=linux
6893         else
6894                 version_type=irix
6895         fi ;;
6896   esac
6897   need_lib_prefix=no
6898   need_version=no
6899   soname_spec='${libname}${release}${shared_ext}$major'
6900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6901   case $host_os in
6902   irix5* | nonstopux*)
6903     libsuff= shlibsuff=
6904     ;;
6905   *)
6906     case $LD in # libtool.m4 will add one of these switches to LD
6907     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6908       libsuff= shlibsuff= libmagic=32-bit;;
6909     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6910       libsuff=32 shlibsuff=N32 libmagic=N32;;
6911     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6912       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6913     *) libsuff= shlibsuff= libmagic=never-match;;
6914     esac
6915     ;;
6916   esac
6917   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6918   shlibpath_overrides_runpath=no
6919   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6920   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6921   hardcode_into_libs=yes
6922   ;;
6923
6924 # No shared lib support for Linux oldld, aout, or coff.
6925 linux*oldld* | linux*aout* | linux*coff*)
6926   dynamic_linker=no
6927   ;;
6928
6929 # This must be Linux ELF.
6930 linux*)
6931   version_type=linux
6932   need_lib_prefix=no
6933   need_version=no
6934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6935   soname_spec='${libname}${release}${shared_ext}$major'
6936   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6937   shlibpath_var=LD_LIBRARY_PATH
6938   shlibpath_overrides_runpath=no
6939   # This implies no fast_install, which is unacceptable.
6940   # Some rework will be needed to allow for fast_install
6941   # before this can be enabled.
6942   hardcode_into_libs=yes
6943
6944   # Append ld.so.conf contents to the search path
6945   if test -f /etc/ld.so.conf; then
6946     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6947     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6948   fi
6949
6950   # We used to test for /lib/ld.so.1 and disable shared libraries on
6951   # powerpc, because MkLinux only supported shared libraries with the
6952   # GNU dynamic linker.  Since this was broken with cross compilers,
6953   # most powerpc-linux boxes support dynamic linking these days and
6954   # people can always --disable-shared, the test was removed, and we
6955   # assume the GNU/Linux dynamic linker is in use.
6956   dynamic_linker='GNU/Linux ld.so'
6957   ;;
6958
6959 knetbsd*-gnu)
6960   version_type=linux
6961   need_lib_prefix=no
6962   need_version=no
6963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6964   soname_spec='${libname}${release}${shared_ext}$major'
6965   shlibpath_var=LD_LIBRARY_PATH
6966   shlibpath_overrides_runpath=no
6967   hardcode_into_libs=yes
6968   dynamic_linker='GNU ld.so'
6969   ;;
6970
6971 netbsd*)
6972   version_type=sunos
6973   need_lib_prefix=no
6974   need_version=no
6975   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6977     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6978     dynamic_linker='NetBSD (a.out) ld.so'
6979   else
6980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6981     soname_spec='${libname}${release}${shared_ext}$major'
6982     dynamic_linker='NetBSD ld.elf_so'
6983   fi
6984   shlibpath_var=LD_LIBRARY_PATH
6985   shlibpath_overrides_runpath=yes
6986   hardcode_into_libs=yes
6987   ;;
6988
6989 newsos6)
6990   version_type=linux
6991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6992   shlibpath_var=LD_LIBRARY_PATH
6993   shlibpath_overrides_runpath=yes
6994   ;;
6995
6996 nto-qnx*)
6997   version_type=linux
6998   need_lib_prefix=no
6999   need_version=no
7000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7001   soname_spec='${libname}${release}${shared_ext}$major'
7002   shlibpath_var=LD_LIBRARY_PATH
7003   shlibpath_overrides_runpath=yes
7004   ;;
7005
7006 openbsd*)
7007   version_type=sunos
7008   need_lib_prefix=no
7009   need_version=no
7010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7011   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7012   shlibpath_var=LD_LIBRARY_PATH
7013   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7014     case $host_os in
7015       openbsd2.[89] | openbsd2.[89].*)
7016         shlibpath_overrides_runpath=no
7017         ;;
7018       *)
7019         shlibpath_overrides_runpath=yes
7020         ;;
7021       esac
7022   else
7023     shlibpath_overrides_runpath=yes
7024   fi
7025   ;;
7026
7027 os2*)
7028   libname_spec='$name'
7029   shrext_cmds=".dll"
7030   need_lib_prefix=no
7031   library_names_spec='$libname${shared_ext} $libname.a'
7032   dynamic_linker='OS/2 ld.exe'
7033   shlibpath_var=LIBPATH
7034   ;;
7035
7036 osf3* | osf4* | osf5*)
7037   version_type=osf
7038   need_lib_prefix=no
7039   need_version=no
7040   soname_spec='${libname}${release}${shared_ext}$major'
7041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7042   shlibpath_var=LD_LIBRARY_PATH
7043   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7044   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7045   ;;
7046
7047 sco3.2v5*)
7048   version_type=osf
7049   soname_spec='${libname}${release}${shared_ext}$major'
7050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7051   shlibpath_var=LD_LIBRARY_PATH
7052   ;;
7053
7054 solaris*)
7055   version_type=linux
7056   need_lib_prefix=no
7057   need_version=no
7058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7059   soname_spec='${libname}${release}${shared_ext}$major'
7060   shlibpath_var=LD_LIBRARY_PATH
7061   shlibpath_overrides_runpath=yes
7062   hardcode_into_libs=yes
7063   # ldd complains unless libraries are executable
7064   postinstall_cmds='chmod +x $lib'
7065   ;;
7066
7067 sunos4*)
7068   version_type=sunos
7069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7070   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7071   shlibpath_var=LD_LIBRARY_PATH
7072   shlibpath_overrides_runpath=yes
7073   if test "$with_gnu_ld" = yes; then
7074     need_lib_prefix=no
7075   fi
7076   need_version=yes
7077   ;;
7078
7079 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7080   version_type=linux
7081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7082   soname_spec='${libname}${release}${shared_ext}$major'
7083   shlibpath_var=LD_LIBRARY_PATH
7084   case $host_vendor in
7085     sni)
7086       shlibpath_overrides_runpath=no
7087       need_lib_prefix=no
7088       export_dynamic_flag_spec='${wl}-Blargedynsym'
7089       runpath_var=LD_RUN_PATH
7090       ;;
7091     siemens)
7092       need_lib_prefix=no
7093       ;;
7094     motorola)
7095       need_lib_prefix=no
7096       need_version=no
7097       shlibpath_overrides_runpath=no
7098       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7099       ;;
7100   esac
7101   ;;
7102
7103 sysv4*MP*)
7104   if test -d /usr/nec ;then
7105     version_type=linux
7106     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7107     soname_spec='$libname${shared_ext}.$major'
7108     shlibpath_var=LD_LIBRARY_PATH
7109   fi
7110   ;;
7111
7112 uts4*)
7113   version_type=linux
7114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7115   soname_spec='${libname}${release}${shared_ext}$major'
7116   shlibpath_var=LD_LIBRARY_PATH
7117   ;;
7118
7119 *)
7120   dynamic_linker=no
7121   ;;
7122 esac
7123 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7124 echo "${ECHO_T}$dynamic_linker" >&6
7125 test "$dynamic_linker" = no && can_build_shared=no
7126
7127
7128 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7129 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7130 if test "${libltdl_cv_shlibext+set}" = set; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133
7134 module=yes
7135 eval libltdl_cv_shlibext=$shrext_cmds
7136
7137 fi
7138 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7139 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7140 if test -n "$libltdl_cv_shlibext"; then
7141
7142 cat >>confdefs.h <<_ACEOF
7143 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7144 _ACEOF
7145
7146 fi
7147
7148
7149 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7150 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7151 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7152   echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154   libltdl_cv_shlibpath_var="$shlibpath_var"
7155 fi
7156 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7157 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7158 if test -n "$libltdl_cv_shlibpath_var"; then
7159
7160 cat >>confdefs.h <<_ACEOF
7161 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7162 _ACEOF
7163
7164 fi
7165
7166
7167 echo "$as_me:$LINENO: checking for the default library search path" >&5
7168 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7169 if test "${libltdl_cv_sys_search_path+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7173 fi
7174 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7175 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7176 if test -n "$libltdl_cv_sys_search_path"; then
7177   sys_search_path=
7178   for dir in $libltdl_cv_sys_search_path; do
7179     if test -z "$sys_search_path"; then
7180       sys_search_path="$dir"
7181     else
7182       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7183     fi
7184   done
7185
7186 cat >>confdefs.h <<_ACEOF
7187 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7188 _ACEOF
7189
7190 fi
7191
7192 echo "$as_me:$LINENO: checking for objdir" >&5
7193 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7194 if test "${libltdl_cv_objdir+set}" = set; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   libltdl_cv_objdir="$objdir"
7198   if test -n "$objdir"; then
7199     :
7200   else
7201     rm -f .libs 2>/dev/null
7202     mkdir .libs 2>/dev/null
7203     if test -d .libs; then
7204       libltdl_cv_objdir=.libs
7205     else
7206       # MS-DOS does not allow filenames that begin with a dot.
7207       libltdl_cv_objdir=_libs
7208     fi
7209   rmdir .libs 2>/dev/null
7210   fi
7211
7212 fi
7213 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7214 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7215
7216 cat >>confdefs.h <<_ACEOF
7217 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7218 _ACEOF
7219
7220
7221 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7222 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7223 if test "${lt_cv_path_NM+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   if test -n "$NM"; then
7227   # Let the user override the test.
7228   lt_cv_path_NM="$NM"
7229 else
7230   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7231   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7232     IFS="$lt_save_ifs"
7233     test -z "$ac_dir" && ac_dir=.
7234     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7235     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7236       # Check to see if the nm accepts a BSD-compat flag.
7237       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7238       #   nm: unknown option "B" ignored
7239       # Tru64's nm complains that /dev/null is an invalid object file
7240       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7241       */dev/null* | *'Invalid file or object type'*)
7242         lt_cv_path_NM="$tmp_nm -B"
7243         break
7244         ;;
7245       *)
7246         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7247         */dev/null*)
7248           lt_cv_path_NM="$tmp_nm -p"
7249           break
7250           ;;
7251         *)
7252           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7253           continue # so that we can try to find one that supports BSD flags
7254           ;;
7255         esac
7256       esac
7257     fi
7258   done
7259   IFS="$lt_save_ifs"
7260   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7261 fi
7262 fi
7263 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7264 echo "${ECHO_T}$lt_cv_path_NM" >&6
7265 NM="$lt_cv_path_NM"
7266
7267
7268
7269
7270
7271 # Check for command to grab the raw symbol name followed by C symbol from nm.
7272 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7273 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7274 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7275   echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277
7278 # These are sane defaults that work on at least a few old systems.
7279 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7280
7281 # Character class describing NM global symbol codes.
7282 symcode='[BCDEGRST]'
7283
7284 # Regexp to match symbols that can be accessed directly from C.
7285 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7286
7287 # Transform the above into a raw symbol and a C symbol.
7288 symxfrm='\1 \2\3 \3'
7289
7290 # Transform an extracted symbol line into a proper C declaration
7291 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7292
7293 # Transform an extracted symbol line into symbol name and symbol address
7294 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'"
7295
7296 # Define system-specific variables.
7297 case $host_os in
7298 aix*)
7299   symcode='[BCDT]'
7300   ;;
7301 cygwin* | mingw* | pw32*)
7302   symcode='[ABCDGISTW]'
7303   ;;
7304 hpux*) # Its linker distinguishes data from code symbols
7305   if test "$host_cpu" = ia64; then
7306     symcode='[ABCDEGRST]'
7307   fi
7308   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7309   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'"
7310   ;;
7311 linux*)
7312   if test "$host_cpu" = ia64; then
7313     symcode='[ABCDGIRSTW]'
7314     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7315     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'"
7316   fi
7317   ;;
7318 irix* | nonstopux*)
7319   symcode='[BCDEGRST]'
7320   ;;
7321 osf*)
7322   symcode='[BCDEGQRST]'
7323   ;;
7324 solaris* | sysv5*)
7325   symcode='[BDRT]'
7326   ;;
7327 sysv4)
7328   symcode='[DFNSTU]'
7329   ;;
7330 esac
7331
7332 # Handle CRLF in mingw tool chain
7333 opt_cr=
7334 case $build_os in
7335 mingw*)
7336   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7337   ;;
7338 esac
7339
7340 # If we're using GNU nm, then use its standard symbol codes.
7341 case `$NM -V 2>&1` in
7342 *GNU* | *'with BFD'*)
7343   symcode='[ABCDGIRSTW]' ;;
7344 esac
7345
7346 # Try without a prefix undercore, then with it.
7347 for ac_symprfx in "" "_"; do
7348
7349   # Write the raw and C identifiers.
7350   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7351
7352   # Check to see that the pipe works correctly.
7353   pipe_works=no
7354
7355   rm -f conftest*
7356   cat > conftest.$ac_ext <<EOF
7357 #ifdef __cplusplus
7358 extern "C" {
7359 #endif
7360 char nm_test_var;
7361 void nm_test_func(){}
7362 #ifdef __cplusplus
7363 }
7364 #endif
7365 int main(){nm_test_var='a';nm_test_func();return(0);}
7366 EOF
7367
7368   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7369   (eval $ac_compile) 2>&5
7370   ac_status=$?
7371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372   (exit $ac_status); }; then
7373     # Now try to grab the symbols.
7374     nlist=conftest.nm
7375     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7376   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7377   ac_status=$?
7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379   (exit $ac_status); } && test -s "$nlist"; then
7380       # Try sorting and uniquifying the output.
7381       if sort "$nlist" | uniq > "$nlist"T; then
7382         mv -f "$nlist"T "$nlist"
7383       else
7384         rm -f "$nlist"T
7385       fi
7386
7387       # Make sure that we snagged all the symbols we need.
7388       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7389         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7390           cat <<EOF > conftest.$ac_ext
7391 #ifdef __cplusplus
7392 extern "C" {
7393 #endif
7394
7395 EOF
7396           # Now generate the symbol file.
7397           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7398
7399           cat <<EOF >> conftest.$ac_ext
7400 #if defined (__STDC__) && __STDC__
7401 # define lt_ptr_t void *
7402 #else
7403 # define lt_ptr_t char *
7404 # define const
7405 #endif
7406
7407 /* The mapping between symbol names and symbols. */
7408 const struct {
7409   const char *name;
7410   lt_ptr_t address;
7411 }
7412 lt_preloaded_symbols[] =
7413 {
7414 EOF
7415           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7416           cat <<\EOF >> conftest.$ac_ext
7417   {0, (lt_ptr_t) 0}
7418 };
7419
7420 #ifdef __cplusplus
7421 }
7422 #endif
7423 EOF
7424           # Now try linking the two files.
7425           mv conftest.$ac_objext conftstm.$ac_objext
7426           lt_save_LIBS="$LIBS"
7427           lt_save_CFLAGS="$CFLAGS"
7428           LIBS="conftstm.$ac_objext"
7429           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7430           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431   (eval $ac_link) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7435             pipe_works=yes
7436           fi
7437           LIBS="$lt_save_LIBS"
7438           CFLAGS="$lt_save_CFLAGS"
7439         else
7440           echo "cannot find nm_test_func in $nlist" >&5
7441         fi
7442       else
7443         echo "cannot find nm_test_var in $nlist" >&5
7444       fi
7445     else
7446       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7447     fi
7448   else
7449     echo "$progname: failed program was:" >&5
7450     cat conftest.$ac_ext >&5
7451   fi
7452   rm -f conftest* conftst*
7453
7454   # Do not use the global_symbol_pipe unless it works.
7455   if test "$pipe_works" = yes; then
7456     break
7457   else
7458     lt_cv_sys_global_symbol_pipe=
7459   fi
7460 done
7461
7462 fi
7463
7464 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7465   lt_cv_sys_global_symbol_to_cdecl=
7466 fi
7467 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7468   echo "$as_me:$LINENO: result: failed" >&5
7469 echo "${ECHO_T}failed" >&6
7470 else
7471   echo "$as_me:$LINENO: result: ok" >&5
7472 echo "${ECHO_T}ok" >&6
7473 fi
7474
7475
7476 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7477 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7478 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7479   echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7482     libltdl_cv_preloaded_symbols=yes
7483   else
7484     libltdl_cv_preloaded_symbols=no
7485   fi
7486
7487 fi
7488 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7489 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7490 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7491
7492 cat >>confdefs.h <<\_ACEOF
7493 #define HAVE_PRELOADED_SYMBOLS 1
7494 _ACEOF
7495
7496 fi
7497
7498 LIBADD_DL=
7499
7500 ac_ext=c
7501 ac_cpp='$CPP $CPPFLAGS'
7502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7505
7506
7507 echo "$as_me:$LINENO: checking for shl_load" >&5
7508 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7509 if test "${ac_cv_func_shl_load+set}" = set; then
7510   echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512   cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h.  */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h.  */
7518 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7520 #define shl_load innocuous_shl_load
7521
7522 /* System header to define __stub macros and hopefully few prototypes,
7523     which can conflict with char shl_load (); below.
7524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7525     <limits.h> exists even on freestanding compilers.  */
7526
7527 #ifdef __STDC__
7528 # include <limits.h>
7529 #else
7530 # include <assert.h>
7531 #endif
7532
7533 #undef shl_load
7534
7535 /* Override any gcc2 internal prototype to avoid an error.  */
7536 #ifdef __cplusplus
7537 extern "C"
7538 {
7539 #endif
7540 /* We use char because int might match the return type of a gcc2
7541    builtin and then its argument prototype would still apply.  */
7542 char shl_load ();
7543 /* The GNU C library defines this for functions which it implements
7544     to always fail with ENOSYS.  Some functions are actually named
7545     something starting with __ and the normal name is an alias.  */
7546 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7547 choke me
7548 #else
7549 char (*f) () = shl_load;
7550 #endif
7551 #ifdef __cplusplus
7552 }
7553 #endif
7554
7555 int
7556 main ()
7557 {
7558 return f != shl_load;
7559   ;
7560   return 0;
7561 }
7562 _ACEOF
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565   (eval $ac_link) 2>conftest.er1
7566   ac_status=$?
7567   grep -v '^ *+' conftest.er1 >conftest.err
7568   rm -f conftest.er1
7569   cat conftest.err >&5
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); } &&
7572          { ac_try='test -z "$ac_c_werror_flag"
7573                          || test ! -s conftest.err'
7574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575   (eval $ac_try) 2>&5
7576   ac_status=$?
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); }; } &&
7579          { ac_try='test -s conftest$ac_exeext'
7580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581   (eval $ac_try) 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }; }; then
7585   ac_cv_func_shl_load=yes
7586 else
7587   echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7589
7590 ac_cv_func_shl_load=no
7591 fi
7592 rm -f conftest.err conftest.$ac_objext \
7593       conftest$ac_exeext conftest.$ac_ext
7594 fi
7595 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7596 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7597 if test $ac_cv_func_shl_load = yes; then
7598
7599 cat >>confdefs.h <<\_ACEOF
7600 #define HAVE_SHL_LOAD 1
7601 _ACEOF
7602
7603 else
7604   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7605 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7606 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609   ac_check_lib_save_LIBS=$LIBS
7610 LIBS="-ldld  $LIBS"
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h.  */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h.  */
7617
7618 /* Override any gcc2 internal prototype to avoid an error.  */
7619 #ifdef __cplusplus
7620 extern "C"
7621 #endif
7622 /* We use char because int might match the return type of a gcc2
7623    builtin and then its argument prototype would still apply.  */
7624 char shl_load ();
7625 int
7626 main ()
7627 {
7628 shl_load ();
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635   (eval $ac_link) 2>conftest.er1
7636   ac_status=$?
7637   grep -v '^ *+' conftest.er1 >conftest.err
7638   rm -f conftest.er1
7639   cat conftest.err >&5
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); } &&
7642          { ac_try='test -z "$ac_c_werror_flag"
7643                          || test ! -s conftest.err'
7644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645   (eval $ac_try) 2>&5
7646   ac_status=$?
7647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648   (exit $ac_status); }; } &&
7649          { ac_try='test -s conftest$ac_exeext'
7650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651   (eval $ac_try) 2>&5
7652   ac_status=$?
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); }; }; then
7655   ac_cv_lib_dld_shl_load=yes
7656 else
7657   echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660 ac_cv_lib_dld_shl_load=no
7661 fi
7662 rm -f conftest.err conftest.$ac_objext \
7663       conftest$ac_exeext conftest.$ac_ext
7664 LIBS=$ac_check_lib_save_LIBS
7665 fi
7666 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7667 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7668 if test $ac_cv_lib_dld_shl_load = yes; then
7669
7670 cat >>confdefs.h <<\_ACEOF
7671 #define HAVE_SHL_LOAD 1
7672 _ACEOF
7673
7674         LIBADD_DL="$LIBADD_DL -ldld"
7675 else
7676   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7677 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7678 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7679   echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681   ac_check_lib_save_LIBS=$LIBS
7682 LIBS="-ldl  $LIBS"
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h.  */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h.  */
7689
7690 /* Override any gcc2 internal prototype to avoid an error.  */
7691 #ifdef __cplusplus
7692 extern "C"
7693 #endif
7694 /* We use char because int might match the return type of a gcc2
7695    builtin and then its argument prototype would still apply.  */
7696 char dlopen ();
7697 int
7698 main ()
7699 {
7700 dlopen ();
7701   ;
7702   return 0;
7703 }
7704 _ACEOF
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707   (eval $ac_link) 2>conftest.er1
7708   ac_status=$?
7709   grep -v '^ *+' conftest.er1 >conftest.err
7710   rm -f conftest.er1
7711   cat conftest.err >&5
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); } &&
7714          { ac_try='test -z "$ac_c_werror_flag"
7715                          || test ! -s conftest.err'
7716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717   (eval $ac_try) 2>&5
7718   ac_status=$?
7719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); }; } &&
7721          { ac_try='test -s conftest$ac_exeext'
7722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723   (eval $ac_try) 2>&5
7724   ac_status=$?
7725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); }; }; then
7727   ac_cv_lib_dl_dlopen=yes
7728 else
7729   echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7731
7732 ac_cv_lib_dl_dlopen=no
7733 fi
7734 rm -f conftest.err conftest.$ac_objext \
7735       conftest$ac_exeext conftest.$ac_ext
7736 LIBS=$ac_check_lib_save_LIBS
7737 fi
7738 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7739 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7740 if test $ac_cv_lib_dl_dlopen = yes; then
7741
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_LIBDL 1
7744 _ACEOF
7745
7746                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7747 else
7748   cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h.  */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h.  */
7754 #if HAVE_DLFCN_H
7755 #  include <dlfcn.h>
7756 #endif
7757
7758 int
7759 main ()
7760 {
7761 dlopen(0, 0);
7762   ;
7763   return 0;
7764 }
7765 _ACEOF
7766 rm -f conftest.$ac_objext conftest$ac_exeext
7767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7768   (eval $ac_link) 2>conftest.er1
7769   ac_status=$?
7770   grep -v '^ *+' conftest.er1 >conftest.err
7771   rm -f conftest.er1
7772   cat conftest.err >&5
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); } &&
7775          { ac_try='test -z "$ac_c_werror_flag"
7776                          || test ! -s conftest.err'
7777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778   (eval $ac_try) 2>&5
7779   ac_status=$?
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); }; } &&
7782          { ac_try='test -s conftest$ac_exeext'
7783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784   (eval $ac_try) 2>&5
7785   ac_status=$?
7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787   (exit $ac_status); }; }; then
7788
7789 cat >>confdefs.h <<\_ACEOF
7790 #define HAVE_LIBDL 1
7791 _ACEOF
7792  libltdl_cv_func_dlopen="yes"
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7798 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7799 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   ac_check_lib_save_LIBS=$LIBS
7803 LIBS="-lsvld  $LIBS"
7804 cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h.  */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h.  */
7810
7811 /* Override any gcc2 internal prototype to avoid an error.  */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 /* We use char because int might match the return type of a gcc2
7816    builtin and then its argument prototype would still apply.  */
7817 char dlopen ();
7818 int
7819 main ()
7820 {
7821 dlopen ();
7822   ;
7823   return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7828   (eval $ac_link) 2>conftest.er1
7829   ac_status=$?
7830   grep -v '^ *+' conftest.er1 >conftest.err
7831   rm -f conftest.er1
7832   cat conftest.err >&5
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); } &&
7835          { ac_try='test -z "$ac_c_werror_flag"
7836                          || test ! -s conftest.err'
7837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838   (eval $ac_try) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); }; } &&
7842          { ac_try='test -s conftest$ac_exeext'
7843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844   (eval $ac_try) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; }; then
7848   ac_cv_lib_svld_dlopen=yes
7849 else
7850   echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 ac_cv_lib_svld_dlopen=no
7854 fi
7855 rm -f conftest.err conftest.$ac_objext \
7856       conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7858 fi
7859 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7860 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7861 if test $ac_cv_lib_svld_dlopen = yes; then
7862
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_LIBDL 1
7865 _ACEOF
7866
7867                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7868 else
7869   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7870 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7871 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874   ac_check_lib_save_LIBS=$LIBS
7875 LIBS="-ldld  $LIBS"
7876 cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h.  */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h.  */
7882
7883 /* Override any gcc2 internal prototype to avoid an error.  */
7884 #ifdef __cplusplus
7885 extern "C"
7886 #endif
7887 /* We use char because int might match the return type of a gcc2
7888    builtin and then its argument prototype would still apply.  */
7889 char dld_link ();
7890 int
7891 main ()
7892 {
7893 dld_link ();
7894   ;
7895   return 0;
7896 }
7897 _ACEOF
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900   (eval $ac_link) 2>conftest.er1
7901   ac_status=$?
7902   grep -v '^ *+' conftest.er1 >conftest.err
7903   rm -f conftest.er1
7904   cat conftest.err >&5
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); } &&
7907          { ac_try='test -z "$ac_c_werror_flag"
7908                          || test ! -s conftest.err'
7909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910   (eval $ac_try) 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); }; } &&
7914          { ac_try='test -s conftest$ac_exeext'
7915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916   (eval $ac_try) 2>&5
7917   ac_status=$?
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); }; }; then
7920   ac_cv_lib_dld_dld_link=yes
7921 else
7922   echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7924
7925 ac_cv_lib_dld_dld_link=no
7926 fi
7927 rm -f conftest.err conftest.$ac_objext \
7928       conftest$ac_exeext conftest.$ac_ext
7929 LIBS=$ac_check_lib_save_LIBS
7930 fi
7931 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7932 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7933 if test $ac_cv_lib_dld_dld_link = yes; then
7934
7935 cat >>confdefs.h <<\_ACEOF
7936 #define HAVE_DLD 1
7937 _ACEOF
7938
7939                 LIBADD_DL="$LIBADD_DL -ldld"
7940 else
7941   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7942 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7943 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7944   echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946   cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7954 #define _dyld_func_lookup innocuous__dyld_func_lookup
7955
7956 /* System header to define __stub macros and hopefully few prototypes,
7957     which can conflict with char _dyld_func_lookup (); below.
7958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7959     <limits.h> exists even on freestanding compilers.  */
7960
7961 #ifdef __STDC__
7962 # include <limits.h>
7963 #else
7964 # include <assert.h>
7965 #endif
7966
7967 #undef _dyld_func_lookup
7968
7969 /* Override any gcc2 internal prototype to avoid an error.  */
7970 #ifdef __cplusplus
7971 extern "C"
7972 {
7973 #endif
7974 /* We use char because int might match the return type of a gcc2
7975    builtin and then its argument prototype would still apply.  */
7976 char _dyld_func_lookup ();
7977 /* The GNU C library defines this for functions which it implements
7978     to always fail with ENOSYS.  Some functions are actually named
7979     something starting with __ and the normal name is an alias.  */
7980 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7981 choke me
7982 #else
7983 char (*f) () = _dyld_func_lookup;
7984 #endif
7985 #ifdef __cplusplus
7986 }
7987 #endif
7988
7989 int
7990 main ()
7991 {
7992 return f != _dyld_func_lookup;
7993   ;
7994   return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999   (eval $ac_link) 2>conftest.er1
8000   ac_status=$?
8001   grep -v '^ *+' conftest.er1 >conftest.err
8002   rm -f conftest.er1
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } &&
8006          { ac_try='test -z "$ac_c_werror_flag"
8007                          || test ! -s conftest.err'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; } &&
8013          { ac_try='test -s conftest$ac_exeext'
8014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015   (eval $ac_try) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); }; }; then
8019   ac_cv_func__dyld_func_lookup=yes
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 ac_cv_func__dyld_func_lookup=no
8025 fi
8026 rm -f conftest.err conftest.$ac_objext \
8027       conftest$ac_exeext conftest.$ac_ext
8028 fi
8029 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8030 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8031 if test $ac_cv_func__dyld_func_lookup = yes; then
8032
8033 cat >>confdefs.h <<\_ACEOF
8034 #define HAVE_DYLD 1
8035 _ACEOF
8036
8037 fi
8038
8039
8040 fi
8041
8042
8043 fi
8044
8045
8046 fi
8047 rm -f conftest.err conftest.$ac_objext \
8048       conftest$ac_exeext conftest.$ac_ext
8049
8050 fi
8051
8052
8053 fi
8054
8055
8056 fi
8057
8058
8059 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8060 then
8061   lt_save_LIBS="$LIBS"
8062   LIBS="$LIBS $LIBADD_DL"
8063
8064 for ac_func in dlerror
8065 do
8066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8067 echo "$as_me:$LINENO: checking for $ac_func" >&5
8068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8069 if eval "test \"\${$as_ac_var+set}\" = set"; then
8070   echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072   cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h.  */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h.  */
8078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8080 #define $ac_func innocuous_$ac_func
8081
8082 /* System header to define __stub macros and hopefully few prototypes,
8083     which can conflict with char $ac_func (); below.
8084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8085     <limits.h> exists even on freestanding compilers.  */
8086
8087 #ifdef __STDC__
8088 # include <limits.h>
8089 #else
8090 # include <assert.h>
8091 #endif
8092
8093 #undef $ac_func
8094
8095 /* Override any gcc2 internal prototype to avoid an error.  */
8096 #ifdef __cplusplus
8097 extern "C"
8098 {
8099 #endif
8100 /* We use char because int might match the return type of a gcc2
8101    builtin and then its argument prototype would still apply.  */
8102 char $ac_func ();
8103 /* The GNU C library defines this for functions which it implements
8104     to always fail with ENOSYS.  Some functions are actually named
8105     something starting with __ and the normal name is an alias.  */
8106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8107 choke me
8108 #else
8109 char (*f) () = $ac_func;
8110 #endif
8111 #ifdef __cplusplus
8112 }
8113 #endif
8114
8115 int
8116 main ()
8117 {
8118 return f != $ac_func;
8119   ;
8120   return 0;
8121 }
8122 _ACEOF
8123 rm -f conftest.$ac_objext conftest$ac_exeext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8125   (eval $ac_link) 2>conftest.er1
8126   ac_status=$?
8127   grep -v '^ *+' conftest.er1 >conftest.err
8128   rm -f conftest.er1
8129   cat conftest.err >&5
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } &&
8132          { ac_try='test -z "$ac_c_werror_flag"
8133                          || test ! -s conftest.err'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; } &&
8139          { ac_try='test -s conftest$ac_exeext'
8140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141   (eval $ac_try) 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; }; then
8145   eval "$as_ac_var=yes"
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 eval "$as_ac_var=no"
8151 fi
8152 rm -f conftest.err conftest.$ac_objext \
8153       conftest$ac_exeext conftest.$ac_ext
8154 fi
8155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8157 if test `eval echo '${'$as_ac_var'}'` = yes; then
8158   cat >>confdefs.h <<_ACEOF
8159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8160 _ACEOF
8161
8162 fi
8163 done
8164
8165   LIBS="$lt_save_LIBS"
8166 fi
8167 ac_ext=c
8168 ac_cpp='$CPP $CPPFLAGS'
8169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8172
8173
8174
8175 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8176 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8177 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8178   echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180   ac_cv_sys_symbol_underscore=no
8181   cat > conftest.$ac_ext <<EOF
8182 void nm_test_func(){}
8183 int main(){nm_test_func;return 0;}
8184 EOF
8185   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8186   (eval $ac_compile) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; then
8190     # Now try to grab the symbols.
8191     ac_nlist=conftest.nm
8192     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8193   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } && test -s "$ac_nlist"; then
8197       # See whether the symbols have a leading underscore.
8198       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8199         ac_cv_sys_symbol_underscore=yes
8200       else
8201         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8202           :
8203         else
8204           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8205         fi
8206       fi
8207     else
8208       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8209     fi
8210   else
8211     echo "configure: failed program was:" >&5
8212     cat conftest.c >&5
8213   fi
8214   rm -rf conftest*
8215
8216 fi
8217 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8218 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8219
8220
8221 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8222   if test x"$libltdl_cv_func_dlopen" = xyes ||
8223      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8224         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8225 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8226 if test "${libltdl_cv_need_uscore+set}" = set; then
8227   echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229   libltdl_cv_need_uscore=unknown
8230           save_LIBS="$LIBS"
8231           LIBS="$LIBS $LIBADD_DL"
8232           if test "$cross_compiling" = yes; then :
8233   libltdl_cv_need_uscore=cross
8234 else
8235   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8236   lt_status=$lt_dlunknown
8237   cat > conftest.$ac_ext <<EOF
8238 #line 8238 "configure"
8239 #include "confdefs.h"
8240
8241 #if HAVE_DLFCN_H
8242 #include <dlfcn.h>
8243 #endif
8244
8245 #include <stdio.h>
8246
8247 #ifdef RTLD_GLOBAL
8248 #  define LT_DLGLOBAL           RTLD_GLOBAL
8249 #else
8250 #  ifdef DL_GLOBAL
8251 #    define LT_DLGLOBAL         DL_GLOBAL
8252 #  else
8253 #    define LT_DLGLOBAL         0
8254 #  endif
8255 #endif
8256
8257 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8258    find out it does not work in some platform. */
8259 #ifndef LT_DLLAZY_OR_NOW
8260 #  ifdef RTLD_LAZY
8261 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8262 #  else
8263 #    ifdef DL_LAZY
8264 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8265 #    else
8266 #      ifdef RTLD_NOW
8267 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8268 #      else
8269 #        ifdef DL_NOW
8270 #          define LT_DLLAZY_OR_NOW      DL_NOW
8271 #        else
8272 #          define LT_DLLAZY_OR_NOW      0
8273 #        endif
8274 #      endif
8275 #    endif
8276 #  endif
8277 #endif
8278
8279 #ifdef __cplusplus
8280 extern "C" void exit (int);
8281 #endif
8282
8283 void fnord() { int i=42;}
8284 int main ()
8285 {
8286   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8287   int status = $lt_dlunknown;
8288
8289   if (self)
8290     {
8291       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8292       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8293       /* dlclose (self); */
8294     }
8295
8296     exit (status);
8297 }
8298 EOF
8299   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300   (eval $ac_link) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8304     (./conftest; exit; ) 2>/dev/null
8305     lt_status=$?
8306     case x$lt_status in
8307       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8308       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8309       x$lt_unknown|x*)  ;;
8310     esac
8311   else :
8312     # compilation failed
8313
8314   fi
8315 fi
8316 rm -fr conftest*
8317
8318           LIBS="$save_LIBS"
8319
8320 fi
8321 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8322 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8323   fi
8324 fi
8325
8326 if test x"$libltdl_cv_need_uscore" = xyes; then
8327
8328 cat >>confdefs.h <<\_ACEOF
8329 #define NEED_USCORE 1
8330 _ACEOF
8331
8332 fi
8333
8334
8335 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8336 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8337 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   # PORTME does your system automatically load deplibs for dlopen?
8341   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8342   # For now, we just catch OSes we know something about -- in the
8343   # future, we'll try test this programmatically.
8344   libltdl_cv_sys_dlopen_deplibs=unknown
8345   case "$host_os" in
8346   aix3*|aix4.1.*|aix4.2.*)
8347     # Unknown whether this is true for these versions of AIX, but
8348     # we want this `case' here to explicitly catch those versions.
8349     libltdl_cv_sys_dlopen_deplibs=unknown
8350     ;;
8351   aix[45]*)
8352     libltdl_cv_sys_dlopen_deplibs=yes
8353     ;;
8354   darwin*)
8355     # Assuming the user has installed a libdl from somewhere, this is true
8356     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8357     libltdl_cv_sys_dlopen_deplibs=yes
8358     ;;
8359   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8360     # GNU and its variants, using gnu ld.so (Glibc)
8361     libltdl_cv_sys_dlopen_deplibs=yes
8362     ;;
8363   hpux10*|hpux11*)
8364     libltdl_cv_sys_dlopen_deplibs=yes
8365     ;;
8366   irix[12345]*|irix6.[01]*)
8367     # Catch all versions of IRIX before 6.2, and indicate that we don't
8368     # know how it worked for any of those versions.
8369     libltdl_cv_sys_dlopen_deplibs=unknown
8370     ;;
8371   irix*)
8372     # The case above catches anything before 6.2, and it's known that
8373     # at 6.2 and later dlopen does load deplibs.
8374     libltdl_cv_sys_dlopen_deplibs=yes
8375     ;;
8376   netbsd*)
8377     libltdl_cv_sys_dlopen_deplibs=yes
8378     ;;
8379   openbsd*)
8380     libltdl_cv_sys_dlopen_deplibs=yes
8381     ;;
8382   osf[1234]*)
8383     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8384     # it did *not* use an RPATH in a shared library to find objects the
8385     # library depends on, so we explictly say `no'.
8386     libltdl_cv_sys_dlopen_deplibs=no
8387     ;;
8388   osf5.0|osf5.0a|osf5.1)
8389     # dlopen *does* load deplibs and with the right loader patch applied
8390     # it even uses RPATH in a shared library to search for shared objects
8391     # that the library depends on, but there's no easy way to know if that
8392     # patch is installed.  Since this is the case, all we can really
8393     # say is unknown -- it depends on the patch being installed.  If
8394     # it is, this changes to `yes'.  Without it, it would be `no'.
8395     libltdl_cv_sys_dlopen_deplibs=unknown
8396     ;;
8397   osf*)
8398     # the two cases above should catch all versions of osf <= 5.1.  Read
8399     # the comments above for what we know about them.
8400     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8401     # is used to find them so we can finally say `yes'.
8402     libltdl_cv_sys_dlopen_deplibs=yes
8403     ;;
8404   solaris*)
8405     libltdl_cv_sys_dlopen_deplibs=yes
8406     ;;
8407   esac
8408
8409 fi
8410 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8411 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8412 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8413
8414 cat >>confdefs.h <<\_ACEOF
8415 #define LTDL_DLOPEN_DEPLIBS 1
8416 _ACEOF
8417
8418 fi
8419
8420
8421 for ac_header in argz.h
8422 do
8423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8425   echo "$as_me:$LINENO: checking for $ac_header" >&5
8426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8428   echo $ECHO_N "(cached) $ECHO_C" >&6
8429 fi
8430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8432 else
8433   # Is the header compilable?
8434 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h.  */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h.  */
8442 $ac_includes_default
8443 #include <$ac_header>
8444 _ACEOF
8445 rm -f conftest.$ac_objext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447   (eval $ac_compile) 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } &&
8454          { ac_try='test -z "$ac_c_werror_flag"
8455                          || test ! -s conftest.err'
8456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457   (eval $ac_try) 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; } &&
8461          { ac_try='test -s conftest.$ac_objext'
8462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463   (eval $ac_try) 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; }; then
8467   ac_header_compiler=yes
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 ac_header_compiler=no
8473 fi
8474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8475 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8476 echo "${ECHO_T}$ac_header_compiler" >&6
8477
8478 # Is the header present?
8479 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h.  */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h.  */
8487 #include <$ac_header>
8488 _ACEOF
8489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8491   ac_status=$?
8492   grep -v '^ *+' conftest.er1 >conftest.err
8493   rm -f conftest.er1
8494   cat conftest.err >&5
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); } >/dev/null; then
8497   if test -s conftest.err; then
8498     ac_cpp_err=$ac_c_preproc_warn_flag
8499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8500   else
8501     ac_cpp_err=
8502   fi
8503 else
8504   ac_cpp_err=yes
8505 fi
8506 if test -z "$ac_cpp_err"; then
8507   ac_header_preproc=yes
8508 else
8509   echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8511
8512   ac_header_preproc=no
8513 fi
8514 rm -f conftest.err conftest.$ac_ext
8515 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8516 echo "${ECHO_T}$ac_header_preproc" >&6
8517
8518 # So?  What about this header?
8519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8520   yes:no: )
8521     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8525     ac_header_preproc=yes
8526     ;;
8527   no:yes:* )
8528     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8530     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8531 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8532     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8534     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8535 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8538     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8540     (
8541       cat <<\_ASBOX
8542 ## ----------------------------------- ##
8543 ## Report this to llvmbugs@cs.uiuc.edu ##
8544 ## ----------------------------------- ##
8545 _ASBOX
8546     ) |
8547       sed "s/^/$as_me: WARNING:     /" >&2
8548     ;;
8549 esac
8550 echo "$as_me:$LINENO: checking for $ac_header" >&5
8551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8553   echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555   eval "$as_ac_Header=\$ac_header_preproc"
8556 fi
8557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8559
8560 fi
8561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8562   cat >>confdefs.h <<_ACEOF
8563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8564 _ACEOF
8565
8566 fi
8567
8568 done
8569
8570
8571 echo "$as_me:$LINENO: checking for error_t" >&5
8572 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8573 if test "${ac_cv_type_error_t+set}" = set; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576   cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h.  */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h.  */
8582 #if HAVE_ARGZ_H
8583 #  include <argz.h>
8584 #endif
8585
8586 int
8587 main ()
8588 {
8589 if ((error_t *) 0)
8590   return 0;
8591 if (sizeof (error_t))
8592   return 0;
8593   ;
8594   return 0;
8595 }
8596 _ACEOF
8597 rm -f conftest.$ac_objext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599   (eval $ac_compile) 2>conftest.er1
8600   ac_status=$?
8601   grep -v '^ *+' conftest.er1 >conftest.err
8602   rm -f conftest.er1
8603   cat conftest.err >&5
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); } &&
8606          { ac_try='test -z "$ac_c_werror_flag"
8607                          || test ! -s conftest.err'
8608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609   (eval $ac_try) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); }; } &&
8613          { ac_try='test -s conftest.$ac_objext'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; }; then
8619   ac_cv_type_error_t=yes
8620 else
8621   echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8623
8624 ac_cv_type_error_t=no
8625 fi
8626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8627 fi
8628 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8629 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8630 if test $ac_cv_type_error_t = yes; then
8631
8632 cat >>confdefs.h <<_ACEOF
8633 #define HAVE_ERROR_T 1
8634 _ACEOF
8635
8636
8637 else
8638
8639 cat >>confdefs.h <<\_ACEOF
8640 #define error_t int
8641 _ACEOF
8642
8643 fi
8644
8645
8646
8647
8648
8649
8650
8651 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8652 do
8653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8654 echo "$as_me:$LINENO: checking for $ac_func" >&5
8655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8656 if eval "test \"\${$as_ac_var+set}\" = set"; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659   cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h.  */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h.  */
8665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8667 #define $ac_func innocuous_$ac_func
8668
8669 /* System header to define __stub macros and hopefully few prototypes,
8670     which can conflict with char $ac_func (); below.
8671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672     <limits.h> exists even on freestanding compilers.  */
8673
8674 #ifdef __STDC__
8675 # include <limits.h>
8676 #else
8677 # include <assert.h>
8678 #endif
8679
8680 #undef $ac_func
8681
8682 /* Override any gcc2 internal prototype to avoid an error.  */
8683 #ifdef __cplusplus
8684 extern "C"
8685 {
8686 #endif
8687 /* We use char because int might match the return type of a gcc2
8688    builtin and then its argument prototype would still apply.  */
8689 char $ac_func ();
8690 /* The GNU C library defines this for functions which it implements
8691     to always fail with ENOSYS.  Some functions are actually named
8692     something starting with __ and the normal name is an alias.  */
8693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8694 choke me
8695 #else
8696 char (*f) () = $ac_func;
8697 #endif
8698 #ifdef __cplusplus
8699 }
8700 #endif
8701
8702 int
8703 main ()
8704 {
8705 return f != $ac_func;
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712   (eval $ac_link) 2>conftest.er1
8713   ac_status=$?
8714   grep -v '^ *+' conftest.er1 >conftest.err
8715   rm -f conftest.er1
8716   cat conftest.err >&5
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); } &&
8719          { ac_try='test -z "$ac_c_werror_flag"
8720                          || test ! -s conftest.err'
8721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722   (eval $ac_try) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; } &&
8726          { ac_try='test -s conftest$ac_exeext'
8727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728   (eval $ac_try) 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); }; }; then
8732   eval "$as_ac_var=yes"
8733 else
8734   echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 eval "$as_ac_var=no"
8738 fi
8739 rm -f conftest.err conftest.$ac_objext \
8740       conftest$ac_exeext conftest.$ac_ext
8741 fi
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8744 if test `eval echo '${'$as_ac_var'}'` = yes; then
8745   cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8747 _ACEOF
8748
8749 fi
8750 done
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8780                   stdio.h unistd.h
8781 do
8782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8784   echo "$as_me:$LINENO: checking for $ac_header" >&5
8785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8787   echo $ECHO_N "(cached) $ECHO_C" >&6
8788 fi
8789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8791 else
8792   # Is the header compilable?
8793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h.  */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h.  */
8801 $ac_includes_default
8802 #include <$ac_header>
8803 _ACEOF
8804 rm -f conftest.$ac_objext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8806   (eval $ac_compile) 2>conftest.er1
8807   ac_status=$?
8808   grep -v '^ *+' conftest.er1 >conftest.err
8809   rm -f conftest.er1
8810   cat conftest.err >&5
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); } &&
8813          { ac_try='test -z "$ac_c_werror_flag"
8814                          || test ! -s conftest.err'
8815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816   (eval $ac_try) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); }; } &&
8820          { ac_try='test -s conftest.$ac_objext'
8821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822   (eval $ac_try) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); }; }; then
8826   ac_header_compiler=yes
8827 else
8828   echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831 ac_header_compiler=no
8832 fi
8833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8835 echo "${ECHO_T}$ac_header_compiler" >&6
8836
8837 # Is the header present?
8838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h.  */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h.  */
8846 #include <$ac_header>
8847 _ACEOF
8848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8850   ac_status=$?
8851   grep -v '^ *+' conftest.er1 >conftest.err
8852   rm -f conftest.er1
8853   cat conftest.err >&5
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } >/dev/null; then
8856   if test -s conftest.err; then
8857     ac_cpp_err=$ac_c_preproc_warn_flag
8858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8859   else
8860     ac_cpp_err=
8861   fi
8862 else
8863   ac_cpp_err=yes
8864 fi
8865 if test -z "$ac_cpp_err"; then
8866   ac_header_preproc=yes
8867 else
8868   echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871   ac_header_preproc=no
8872 fi
8873 rm -f conftest.err conftest.$ac_ext
8874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8875 echo "${ECHO_T}$ac_header_preproc" >&6
8876
8877 # So?  What about this header?
8878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8879   yes:no: )
8880     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8884     ac_header_preproc=yes
8885     ;;
8886   no:yes:* )
8887     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8889     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8890 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8891     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8893     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8894 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8897     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8899     (
8900       cat <<\_ASBOX
8901 ## ----------------------------------- ##
8902 ## Report this to llvmbugs@cs.uiuc.edu ##
8903 ## ----------------------------------- ##
8904 _ASBOX
8905     ) |
8906       sed "s/^/$as_me: WARNING:     /" >&2
8907     ;;
8908 esac
8909 echo "$as_me:$LINENO: checking for $ac_header" >&5
8910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8912   echo $ECHO_N "(cached) $ECHO_C" >&6
8913 else
8914   eval "$as_ac_Header=\$ac_header_preproc"
8915 fi
8916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8918
8919 fi
8920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8921   cat >>confdefs.h <<_ACEOF
8922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8923 _ACEOF
8924
8925 fi
8926
8927 done
8928
8929
8930
8931
8932
8933 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8934 do
8935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8937   echo "$as_me:$LINENO: checking for $ac_header" >&5
8938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8940   echo $ECHO_N "(cached) $ECHO_C" >&6
8941 fi
8942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8944 else
8945   # Is the header compilable?
8946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h.  */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h.  */
8954 $ac_includes_default
8955 #include <$ac_header>
8956 _ACEOF
8957 rm -f conftest.$ac_objext
8958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959   (eval $ac_compile) 2>conftest.er1
8960   ac_status=$?
8961   grep -v '^ *+' conftest.er1 >conftest.err
8962   rm -f conftest.er1
8963   cat conftest.err >&5
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); } &&
8966          { ac_try='test -z "$ac_c_werror_flag"
8967                          || test ! -s conftest.err'
8968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969   (eval $ac_try) 2>&5
8970   ac_status=$?
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); }; } &&
8973          { ac_try='test -s conftest.$ac_objext'
8974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975   (eval $ac_try) 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); }; }; then
8979   ac_header_compiler=yes
8980 else
8981   echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8983
8984 ac_header_compiler=no
8985 fi
8986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8988 echo "${ECHO_T}$ac_header_compiler" >&6
8989
8990 # Is the header present?
8991 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8993 cat >conftest.$ac_ext <<_ACEOF
8994 /* confdefs.h.  */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h.  */
8999 #include <$ac_header>
9000 _ACEOF
9001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9002   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9003   ac_status=$?
9004   grep -v '^ *+' conftest.er1 >conftest.err
9005   rm -f conftest.er1
9006   cat conftest.err >&5
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); } >/dev/null; then
9009   if test -s conftest.err; then
9010     ac_cpp_err=$ac_c_preproc_warn_flag
9011     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9012   else
9013     ac_cpp_err=
9014   fi
9015 else
9016   ac_cpp_err=yes
9017 fi
9018 if test -z "$ac_cpp_err"; then
9019   ac_header_preproc=yes
9020 else
9021   echo "$as_me: failed program was:" >&5
9022 sed 's/^/| /' conftest.$ac_ext >&5
9023
9024   ac_header_preproc=no
9025 fi
9026 rm -f conftest.err conftest.$ac_ext
9027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9028 echo "${ECHO_T}$ac_header_preproc" >&6
9029
9030 # So?  What about this header?
9031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9032   yes:no: )
9033     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9037     ac_header_preproc=yes
9038     ;;
9039   no:yes:* )
9040     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9042     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9043 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9044     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9046     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9047 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9050     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9052     (
9053       cat <<\_ASBOX
9054 ## ----------------------------------- ##
9055 ## Report this to llvmbugs@cs.uiuc.edu ##
9056 ## ----------------------------------- ##
9057 _ASBOX
9058     ) |
9059       sed "s/^/$as_me: WARNING:     /" >&2
9060     ;;
9061 esac
9062 echo "$as_me:$LINENO: checking for $ac_header" >&5
9063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9065   echo $ECHO_N "(cached) $ECHO_C" >&6
9066 else
9067   eval "$as_ac_Header=\$ac_header_preproc"
9068 fi
9069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9071
9072 fi
9073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9074   cat >>confdefs.h <<_ACEOF
9075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9076 _ACEOF
9077
9078 fi
9079
9080 done
9081
9082
9083
9084 for ac_header in string.h strings.h
9085 do
9086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9088   echo "$as_me:$LINENO: checking for $ac_header" >&5
9089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091   echo $ECHO_N "(cached) $ECHO_C" >&6
9092 fi
9093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9095 else
9096   # Is the header compilable?
9097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h.  */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h.  */
9105 $ac_includes_default
9106 #include <$ac_header>
9107 _ACEOF
9108 rm -f conftest.$ac_objext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9110   (eval $ac_compile) 2>conftest.er1
9111   ac_status=$?
9112   grep -v '^ *+' conftest.er1 >conftest.err
9113   rm -f conftest.er1
9114   cat conftest.err >&5
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); } &&
9117          { ac_try='test -z "$ac_c_werror_flag"
9118                          || test ! -s conftest.err'
9119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120   (eval $ac_try) 2>&5
9121   ac_status=$?
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); }; } &&
9124          { ac_try='test -s conftest.$ac_objext'
9125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126   (eval $ac_try) 2>&5
9127   ac_status=$?
9128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); }; }; then
9130   ac_header_compiler=yes
9131 else
9132   echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9134
9135 ac_header_compiler=no
9136 fi
9137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9139 echo "${ECHO_T}$ac_header_compiler" >&6
9140
9141 # Is the header present?
9142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9144 cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h.  */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h.  */
9150 #include <$ac_header>
9151 _ACEOF
9152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9153   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9154   ac_status=$?
9155   grep -v '^ *+' conftest.er1 >conftest.err
9156   rm -f conftest.er1
9157   cat conftest.err >&5
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); } >/dev/null; then
9160   if test -s conftest.err; then
9161     ac_cpp_err=$ac_c_preproc_warn_flag
9162     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9163   else
9164     ac_cpp_err=
9165   fi
9166 else
9167   ac_cpp_err=yes
9168 fi
9169 if test -z "$ac_cpp_err"; then
9170   ac_header_preproc=yes
9171 else
9172   echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9174
9175   ac_header_preproc=no
9176 fi
9177 rm -f conftest.err conftest.$ac_ext
9178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9179 echo "${ECHO_T}$ac_header_preproc" >&6
9180
9181 # So?  What about this header?
9182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9183   yes:no: )
9184     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9188     ac_header_preproc=yes
9189     ;;
9190   no:yes:* )
9191     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9193     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9194 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9195     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9197     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9198 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9201     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9203     (
9204       cat <<\_ASBOX
9205 ## ----------------------------------- ##
9206 ## Report this to llvmbugs@cs.uiuc.edu ##
9207 ## ----------------------------------- ##
9208 _ASBOX
9209     ) |
9210       sed "s/^/$as_me: WARNING:     /" >&2
9211     ;;
9212 esac
9213 echo "$as_me:$LINENO: checking for $ac_header" >&5
9214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9216   echo $ECHO_N "(cached) $ECHO_C" >&6
9217 else
9218   eval "$as_ac_Header=\$ac_header_preproc"
9219 fi
9220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9222
9223 fi
9224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9225   cat >>confdefs.h <<_ACEOF
9226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9227 _ACEOF
9228  break
9229 fi
9230
9231 done
9232
9233
9234
9235
9236 for ac_func in strchr index
9237 do
9238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9239 echo "$as_me:$LINENO: checking for $ac_func" >&5
9240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9241 if eval "test \"\${$as_ac_var+set}\" = set"; then
9242   echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244   cat >conftest.$ac_ext <<_ACEOF
9245 /* confdefs.h.  */
9246 _ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h.  */
9250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9252 #define $ac_func innocuous_$ac_func
9253
9254 /* System header to define __stub macros and hopefully few prototypes,
9255     which can conflict with char $ac_func (); below.
9256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9257     <limits.h> exists even on freestanding compilers.  */
9258
9259 #ifdef __STDC__
9260 # include <limits.h>
9261 #else
9262 # include <assert.h>
9263 #endif
9264
9265 #undef $ac_func
9266
9267 /* Override any gcc2 internal prototype to avoid an error.  */
9268 #ifdef __cplusplus
9269 extern "C"
9270 {
9271 #endif
9272 /* We use char because int might match the return type of a gcc2
9273    builtin and then its argument prototype would still apply.  */
9274 char $ac_func ();
9275 /* The GNU C library defines this for functions which it implements
9276     to always fail with ENOSYS.  Some functions are actually named
9277     something starting with __ and the normal name is an alias.  */
9278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9279 choke me
9280 #else
9281 char (*f) () = $ac_func;
9282 #endif
9283 #ifdef __cplusplus
9284 }
9285 #endif
9286
9287 int
9288 main ()
9289 {
9290 return f != $ac_func;
9291   ;
9292   return 0;
9293 }
9294 _ACEOF
9295 rm -f conftest.$ac_objext conftest$ac_exeext
9296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9297   (eval $ac_link) 2>conftest.er1
9298   ac_status=$?
9299   grep -v '^ *+' conftest.er1 >conftest.err
9300   rm -f conftest.er1
9301   cat conftest.err >&5
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); } &&
9304          { ac_try='test -z "$ac_c_werror_flag"
9305                          || test ! -s conftest.err'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; } &&
9311          { ac_try='test -s conftest$ac_exeext'
9312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313   (eval $ac_try) 2>&5
9314   ac_status=$?
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); }; }; then
9317   eval "$as_ac_var=yes"
9318 else
9319   echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.$ac_ext >&5
9321
9322 eval "$as_ac_var=no"
9323 fi
9324 rm -f conftest.err conftest.$ac_objext \
9325       conftest$ac_exeext conftest.$ac_ext
9326 fi
9327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9329 if test `eval echo '${'$as_ac_var'}'` = yes; then
9330   cat >>confdefs.h <<_ACEOF
9331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9332 _ACEOF
9333  break
9334 fi
9335 done
9336
9337
9338
9339 for ac_func in strrchr rindex
9340 do
9341 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9342 echo "$as_me:$LINENO: checking for $ac_func" >&5
9343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9344 if eval "test \"\${$as_ac_var+set}\" = set"; then
9345   echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347   cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h.  */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h.  */
9353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9355 #define $ac_func innocuous_$ac_func
9356
9357 /* System header to define __stub macros and hopefully few prototypes,
9358     which can conflict with char $ac_func (); below.
9359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360     <limits.h> exists even on freestanding compilers.  */
9361
9362 #ifdef __STDC__
9363 # include <limits.h>
9364 #else
9365 # include <assert.h>
9366 #endif
9367
9368 #undef $ac_func
9369
9370 /* Override any gcc2 internal prototype to avoid an error.  */
9371 #ifdef __cplusplus
9372 extern "C"
9373 {
9374 #endif
9375 /* We use char because int might match the return type of a gcc2
9376    builtin and then its argument prototype would still apply.  */
9377 char $ac_func ();
9378 /* The GNU C library defines this for functions which it implements
9379     to always fail with ENOSYS.  Some functions are actually named
9380     something starting with __ and the normal name is an alias.  */
9381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9382 choke me
9383 #else
9384 char (*f) () = $ac_func;
9385 #endif
9386 #ifdef __cplusplus
9387 }
9388 #endif
9389
9390 int
9391 main ()
9392 {
9393 return f != $ac_func;
9394   ;
9395   return 0;
9396 }
9397 _ACEOF
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400   (eval $ac_link) 2>conftest.er1
9401   ac_status=$?
9402   grep -v '^ *+' conftest.er1 >conftest.err
9403   rm -f conftest.er1
9404   cat conftest.err >&5
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } &&
9407          { ac_try='test -z "$ac_c_werror_flag"
9408                          || test ! -s conftest.err'
9409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410   (eval $ac_try) 2>&5
9411   ac_status=$?
9412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413   (exit $ac_status); }; } &&
9414          { ac_try='test -s conftest$ac_exeext'
9415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416   (eval $ac_try) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); }; }; then
9420   eval "$as_ac_var=yes"
9421 else
9422   echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9424
9425 eval "$as_ac_var=no"
9426 fi
9427 rm -f conftest.err conftest.$ac_objext \
9428       conftest$ac_exeext conftest.$ac_ext
9429 fi
9430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9432 if test `eval echo '${'$as_ac_var'}'` = yes; then
9433   cat >>confdefs.h <<_ACEOF
9434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9435 _ACEOF
9436  break
9437 fi
9438 done
9439
9440
9441
9442 for ac_func in memcpy bcopy
9443 do
9444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9445 echo "$as_me:$LINENO: checking for $ac_func" >&5
9446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9447 if eval "test \"\${$as_ac_var+set}\" = set"; then
9448   echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450   cat >conftest.$ac_ext <<_ACEOF
9451 /* confdefs.h.  */
9452 _ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h.  */
9456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9458 #define $ac_func innocuous_$ac_func
9459
9460 /* System header to define __stub macros and hopefully few prototypes,
9461     which can conflict with char $ac_func (); below.
9462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9463     <limits.h> exists even on freestanding compilers.  */
9464
9465 #ifdef __STDC__
9466 # include <limits.h>
9467 #else
9468 # include <assert.h>
9469 #endif
9470
9471 #undef $ac_func
9472
9473 /* Override any gcc2 internal prototype to avoid an error.  */
9474 #ifdef __cplusplus
9475 extern "C"
9476 {
9477 #endif
9478 /* We use char because int might match the return type of a gcc2
9479    builtin and then its argument prototype would still apply.  */
9480 char $ac_func ();
9481 /* The GNU C library defines this for functions which it implements
9482     to always fail with ENOSYS.  Some functions are actually named
9483     something starting with __ and the normal name is an alias.  */
9484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9485 choke me
9486 #else
9487 char (*f) () = $ac_func;
9488 #endif
9489 #ifdef __cplusplus
9490 }
9491 #endif
9492
9493 int
9494 main ()
9495 {
9496 return f != $ac_func;
9497   ;
9498   return 0;
9499 }
9500 _ACEOF
9501 rm -f conftest.$ac_objext conftest$ac_exeext
9502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503   (eval $ac_link) 2>conftest.er1
9504   ac_status=$?
9505   grep -v '^ *+' conftest.er1 >conftest.err
9506   rm -f conftest.er1
9507   cat conftest.err >&5
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); } &&
9510          { ac_try='test -z "$ac_c_werror_flag"
9511                          || test ! -s conftest.err'
9512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513   (eval $ac_try) 2>&5
9514   ac_status=$?
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); }; } &&
9517          { ac_try='test -s conftest$ac_exeext'
9518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519   (eval $ac_try) 2>&5
9520   ac_status=$?
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); }; }; then
9523   eval "$as_ac_var=yes"
9524 else
9525   echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9527
9528 eval "$as_ac_var=no"
9529 fi
9530 rm -f conftest.err conftest.$ac_objext \
9531       conftest$ac_exeext conftest.$ac_ext
9532 fi
9533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9535 if test `eval echo '${'$as_ac_var'}'` = yes; then
9536   cat >>confdefs.h <<_ACEOF
9537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9538 _ACEOF
9539  break
9540 fi
9541 done
9542
9543
9544
9545 for ac_func in memmove strcmp
9546 do
9547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9548 echo "$as_me:$LINENO: checking for $ac_func" >&5
9549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9550 if eval "test \"\${$as_ac_var+set}\" = set"; then
9551   echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553   cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h.  */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h.  */
9559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9561 #define $ac_func innocuous_$ac_func
9562
9563 /* System header to define __stub macros and hopefully few prototypes,
9564     which can conflict with char $ac_func (); below.
9565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9566     <limits.h> exists even on freestanding compilers.  */
9567
9568 #ifdef __STDC__
9569 # include <limits.h>
9570 #else
9571 # include <assert.h>
9572 #endif
9573
9574 #undef $ac_func
9575
9576 /* Override any gcc2 internal prototype to avoid an error.  */
9577 #ifdef __cplusplus
9578 extern "C"
9579 {
9580 #endif
9581 /* We use char because int might match the return type of a gcc2
9582    builtin and then its argument prototype would still apply.  */
9583 char $ac_func ();
9584 /* The GNU C library defines this for functions which it implements
9585     to always fail with ENOSYS.  Some functions are actually named
9586     something starting with __ and the normal name is an alias.  */
9587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9588 choke me
9589 #else
9590 char (*f) () = $ac_func;
9591 #endif
9592 #ifdef __cplusplus
9593 }
9594 #endif
9595
9596 int
9597 main ()
9598 {
9599 return f != $ac_func;
9600   ;
9601   return 0;
9602 }
9603 _ACEOF
9604 rm -f conftest.$ac_objext conftest$ac_exeext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606   (eval $ac_link) 2>conftest.er1
9607   ac_status=$?
9608   grep -v '^ *+' conftest.er1 >conftest.err
9609   rm -f conftest.er1
9610   cat conftest.err >&5
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } &&
9613          { ac_try='test -z "$ac_c_werror_flag"
9614                          || test ! -s conftest.err'
9615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616   (eval $ac_try) 2>&5
9617   ac_status=$?
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); }; } &&
9620          { ac_try='test -s conftest$ac_exeext'
9621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622   (eval $ac_try) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; }; then
9626   eval "$as_ac_var=yes"
9627 else
9628   echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 eval "$as_ac_var=no"
9632 fi
9633 rm -f conftest.err conftest.$ac_objext \
9634       conftest$ac_exeext conftest.$ac_ext
9635 fi
9636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9638 if test `eval echo '${'$as_ac_var'}'` = yes; then
9639   cat >>confdefs.h <<_ACEOF
9640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9641 _ACEOF
9642
9643 fi
9644 done
9645
9646
9647
9648
9649 for ac_func in closedir opendir readdir
9650 do
9651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9652 echo "$as_me:$LINENO: checking for $ac_func" >&5
9653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9654 if eval "test \"\${$as_ac_var+set}\" = set"; then
9655   echo $ECHO_N "(cached) $ECHO_C" >&6
9656 else
9657   cat >conftest.$ac_ext <<_ACEOF
9658 /* confdefs.h.  */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h.  */
9663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9665 #define $ac_func innocuous_$ac_func
9666
9667 /* System header to define __stub macros and hopefully few prototypes,
9668     which can conflict with char $ac_func (); below.
9669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9670     <limits.h> exists even on freestanding compilers.  */
9671
9672 #ifdef __STDC__
9673 # include <limits.h>
9674 #else
9675 # include <assert.h>
9676 #endif
9677
9678 #undef $ac_func
9679
9680 /* Override any gcc2 internal prototype to avoid an error.  */
9681 #ifdef __cplusplus
9682 extern "C"
9683 {
9684 #endif
9685 /* We use char because int might match the return type of a gcc2
9686    builtin and then its argument prototype would still apply.  */
9687 char $ac_func ();
9688 /* The GNU C library defines this for functions which it implements
9689     to always fail with ENOSYS.  Some functions are actually named
9690     something starting with __ and the normal name is an alias.  */
9691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9692 choke me
9693 #else
9694 char (*f) () = $ac_func;
9695 #endif
9696 #ifdef __cplusplus
9697 }
9698 #endif
9699
9700 int
9701 main ()
9702 {
9703 return f != $ac_func;
9704   ;
9705   return 0;
9706 }
9707 _ACEOF
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710   (eval $ac_link) 2>conftest.er1
9711   ac_status=$?
9712   grep -v '^ *+' conftest.er1 >conftest.err
9713   rm -f conftest.er1
9714   cat conftest.err >&5
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); } &&
9717          { ac_try='test -z "$ac_c_werror_flag"
9718                          || test ! -s conftest.err'
9719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720   (eval $ac_try) 2>&5
9721   ac_status=$?
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); }; } &&
9724          { ac_try='test -s conftest$ac_exeext'
9725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726   (eval $ac_try) 2>&5
9727   ac_status=$?
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); }; }; then
9730   eval "$as_ac_var=yes"
9731 else
9732   echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9734
9735 eval "$as_ac_var=no"
9736 fi
9737 rm -f conftest.err conftest.$ac_objext \
9738       conftest$ac_exeext conftest.$ac_ext
9739 fi
9740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9742 if test `eval echo '${'$as_ac_var'}'` = yes; then
9743   cat >>confdefs.h <<_ACEOF
9744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9745 _ACEOF
9746
9747 fi
9748 done
9749
9750
9751 # Check whether --enable-shared or --disable-shared was given.
9752 if test "${enable_shared+set}" = set; then
9753   enableval="$enable_shared"
9754   p=${PACKAGE-default}
9755     case $enableval in
9756     yes) enable_shared=yes ;;
9757     no) enable_shared=no ;;
9758     *)
9759       enable_shared=no
9760       # Look at the argument we got.  We use all the common list separators.
9761       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9762       for pkg in $enableval; do
9763         IFS="$lt_save_ifs"
9764         if test "X$pkg" = "X$p"; then
9765           enable_shared=yes
9766         fi
9767       done
9768       IFS="$lt_save_ifs"
9769       ;;
9770     esac
9771 else
9772   enable_shared=yes
9773 fi;
9774
9775 # Check whether --enable-static or --disable-static was given.
9776 if test "${enable_static+set}" = set; then
9777   enableval="$enable_static"
9778   p=${PACKAGE-default}
9779     case $enableval in
9780     yes) enable_static=yes ;;
9781     no) enable_static=no ;;
9782     *)
9783      enable_static=no
9784       # Look at the argument we got.  We use all the common list separators.
9785       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9786       for pkg in $enableval; do
9787         IFS="$lt_save_ifs"
9788         if test "X$pkg" = "X$p"; then
9789           enable_static=yes
9790         fi
9791       done
9792       IFS="$lt_save_ifs"
9793       ;;
9794     esac
9795 else
9796   enable_static=yes
9797 fi;
9798
9799 # Check whether --enable-fast-install or --disable-fast-install was given.
9800 if test "${enable_fast_install+set}" = set; then
9801   enableval="$enable_fast_install"
9802   p=${PACKAGE-default}
9803     case $enableval in
9804     yes) enable_fast_install=yes ;;
9805     no) enable_fast_install=no ;;
9806     *)
9807       enable_fast_install=no
9808       # Look at the argument we got.  We use all the common list separators.
9809       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9810       for pkg in $enableval; do
9811         IFS="$lt_save_ifs"
9812         if test "X$pkg" = "X$p"; then
9813           enable_fast_install=yes
9814         fi
9815       done
9816       IFS="$lt_save_ifs"
9817       ;;
9818     esac
9819 else
9820   enable_fast_install=yes
9821 fi;
9822
9823 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9824 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9825 if test "${lt_cv_path_SED+set}" = set; then
9826   echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828   # Loop through the user's path and test for sed and gsed.
9829 # Then use that list of sed's as ones to test for truncation.
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 for as_dir in $PATH
9832 do
9833   IFS=$as_save_IFS
9834   test -z "$as_dir" && as_dir=.
9835   for lt_ac_prog in sed gsed; do
9836     for ac_exec_ext in '' $ac_executable_extensions; do
9837       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9838         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9839       fi
9840     done
9841   done
9842 done
9843 lt_ac_max=0
9844 lt_ac_count=0
9845 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9846 # along with /bin/sed that truncates output.
9847 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9848   test ! -f $lt_ac_sed && break
9849   cat /dev/null > conftest.in
9850   lt_ac_count=0
9851   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9852   # Check for GNU sed and select it if it is found.
9853   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9854     lt_cv_path_SED=$lt_ac_sed
9855     break
9856   fi
9857   while true; do
9858     cat conftest.in conftest.in >conftest.tmp
9859     mv conftest.tmp conftest.in
9860     cp conftest.in conftest.nl
9861     echo >>conftest.nl
9862     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9863     cmp -s conftest.out conftest.nl || break
9864     # 10000 chars as input seems more than enough
9865     test $lt_ac_count -gt 10 && break
9866     lt_ac_count=`expr $lt_ac_count + 1`
9867     if test $lt_ac_count -gt $lt_ac_max; then
9868       lt_ac_max=$lt_ac_count
9869       lt_cv_path_SED=$lt_ac_sed
9870     fi
9871   done
9872 done
9873
9874 fi
9875
9876 SED=$lt_cv_path_SED
9877 echo "$as_me:$LINENO: result: $SED" >&5
9878 echo "${ECHO_T}$SED" >&6
9879
9880
9881 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9882 if test "${with_gnu_ld+set}" = set; then
9883   withval="$with_gnu_ld"
9884   test "$withval" = no || with_gnu_ld=yes
9885 else
9886   with_gnu_ld=no
9887 fi;
9888 ac_prog=ld
9889 if test "$GCC" = yes; then
9890   # Check if gcc -print-prog-name=ld gives a path.
9891   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9892 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9893   case $host in
9894   *-*-mingw*)
9895     # gcc leaves a trailing carriage return which upsets mingw
9896     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9897   *)
9898     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9899   esac
9900   case $ac_prog in
9901     # Accept absolute paths.
9902     [\\/]* | ?:[\\/]*)
9903       re_direlt='/[^/][^/]*/\.\./'
9904       # Canonicalize the pathname of ld
9905       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9906       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9907         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9908       done
9909       test -z "$LD" && LD="$ac_prog"
9910       ;;
9911   "")
9912     # If it fails, then pretend we aren't using GCC.
9913     ac_prog=ld
9914     ;;
9915   *)
9916     # If it is relative, then search for the first ld in PATH.
9917     with_gnu_ld=unknown
9918     ;;
9919   esac
9920 elif test "$with_gnu_ld" = yes; then
9921   echo "$as_me:$LINENO: checking for GNU ld" >&5
9922 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9923 else
9924   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9925 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9926 fi
9927 if test "${lt_cv_path_LD+set}" = set; then
9928   echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930   if test -z "$LD"; then
9931   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9932   for ac_dir in $PATH; do
9933     IFS="$lt_save_ifs"
9934     test -z "$ac_dir" && ac_dir=.
9935     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9936       lt_cv_path_LD="$ac_dir/$ac_prog"
9937       # Check to see if the program is GNU ld.  I'd rather use --version,
9938       # but apparently some GNU ld's only accept -v.
9939       # Break only if it was the GNU/non-GNU ld that we prefer.
9940       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9941       *GNU* | *'with BFD'*)
9942         test "$with_gnu_ld" != no && break
9943         ;;
9944       *)
9945         test "$with_gnu_ld" != yes && break
9946         ;;
9947       esac
9948     fi
9949   done
9950   IFS="$lt_save_ifs"
9951 else
9952   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9953 fi
9954 fi
9955
9956 LD="$lt_cv_path_LD"
9957 if test -n "$LD"; then
9958   echo "$as_me:$LINENO: result: $LD" >&5
9959 echo "${ECHO_T}$LD" >&6
9960 else
9961   echo "$as_me:$LINENO: result: no" >&5
9962 echo "${ECHO_T}no" >&6
9963 fi
9964 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9965 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9966    { (exit 1); exit 1; }; }
9967 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9968 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9969 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9973 case `$LD -v 2>&1 </dev/null` in
9974 *GNU* | *'with BFD'*)
9975   lt_cv_prog_gnu_ld=yes
9976   ;;
9977 *)
9978   lt_cv_prog_gnu_ld=no
9979   ;;
9980 esac
9981 fi
9982 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9983 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9984 with_gnu_ld=$lt_cv_prog_gnu_ld
9985
9986
9987 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9988 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9989 if test "${lt_cv_ld_reload_flag+set}" = set; then
9990   echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992   lt_cv_ld_reload_flag='-r'
9993 fi
9994 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9995 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9996 reload_flag=$lt_cv_ld_reload_flag
9997 case $reload_flag in
9998 "" | " "*) ;;
9999 *) reload_flag=" $reload_flag" ;;
10000 esac
10001 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10002 case $host_os in
10003   darwin*)
10004     if test "$GCC" = yes; then
10005       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10006     else
10007       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10008     fi
10009     ;;
10010 esac
10011
10012 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10013 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10014 if test "${lt_cv_deplibs_check_method+set}" = set; then
10015   echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017   lt_cv_file_magic_cmd='$MAGIC_CMD'
10018 lt_cv_file_magic_test_file=
10019 lt_cv_deplibs_check_method='unknown'
10020 # Need to set the preceding variable on all platforms that support
10021 # interlibrary dependencies.
10022 # 'none' -- dependencies not supported.
10023 # `unknown' -- same as none, but documents that we really don't know.
10024 # 'pass_all' -- all dependencies passed with no checks.
10025 # 'test_compile' -- check by making test program.
10026 # 'file_magic [[regex]]' -- check by looking for files in library path
10027 # which responds to the $file_magic_cmd with a given extended regex.
10028 # If you have `file' or equivalent on your system and you're not sure
10029 # whether `pass_all' will *always* work, you probably want this one.
10030
10031 case $host_os in
10032 aix4* | aix5*)
10033   lt_cv_deplibs_check_method=pass_all
10034   ;;
10035
10036 beos*)
10037   lt_cv_deplibs_check_method=pass_all
10038   ;;
10039
10040 bsdi[45]*)
10041   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10042   lt_cv_file_magic_cmd='/usr/bin/file -L'
10043   lt_cv_file_magic_test_file=/shlib/libc.so
10044   ;;
10045
10046 cygwin*)
10047   # func_win32_libid is a shell function defined in ltmain.sh
10048   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10049   lt_cv_file_magic_cmd='func_win32_libid'
10050   ;;
10051
10052 mingw* | pw32*)
10053   # Base MSYS/MinGW do not provide the 'file' command needed by
10054   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10055   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10056   lt_cv_file_magic_cmd='$OBJDUMP -f'
10057   ;;
10058
10059 darwin* | rhapsody*)
10060   lt_cv_deplibs_check_method=pass_all
10061   ;;
10062
10063 freebsd* | kfreebsd*-gnu)
10064   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10065     case $host_cpu in
10066     i*86 )
10067       # Not sure whether the presence of OpenBSD here was a mistake.
10068       # Let's accept both of them until this is cleared up.
10069       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10070       lt_cv_file_magic_cmd=/usr/bin/file
10071       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10072       ;;
10073     esac
10074   else
10075     lt_cv_deplibs_check_method=pass_all
10076   fi
10077   ;;
10078
10079 gnu*)
10080   lt_cv_deplibs_check_method=pass_all
10081   ;;
10082
10083 hpux10.20* | hpux11*)
10084   lt_cv_file_magic_cmd=/usr/bin/file
10085   case "$host_cpu" in
10086   ia64*)
10087     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10088     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10089     ;;
10090   hppa*64*)
10091     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]'
10092     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10093     ;;
10094   *)
10095     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10096     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10097     ;;
10098   esac
10099   ;;
10100
10101 irix5* | irix6* | nonstopux*)
10102   case $LD in
10103   *-32|*"-32 ") libmagic=32-bit;;
10104   *-n32|*"-n32 ") libmagic=N32;;
10105   *-64|*"-64 ") libmagic=64-bit;;
10106   *) libmagic=never-match;;
10107   esac
10108   lt_cv_deplibs_check_method=pass_all
10109   ;;
10110
10111 # This must be Linux ELF.
10112 linux*)
10113   lt_cv_deplibs_check_method=pass_all
10114   ;;
10115
10116 netbsd*)
10117   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10118     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10119   else
10120     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10121   fi
10122   ;;
10123
10124 newos6*)
10125   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10126   lt_cv_file_magic_cmd=/usr/bin/file
10127   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10128   ;;
10129
10130 nto-qnx*)
10131   lt_cv_deplibs_check_method=unknown
10132   ;;
10133
10134 openbsd*)
10135   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10136     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10137   else
10138     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10139   fi
10140   ;;
10141
10142 osf3* | osf4* | osf5*)
10143   lt_cv_deplibs_check_method=pass_all
10144   ;;
10145
10146 sco3.2v5*)
10147   lt_cv_deplibs_check_method=pass_all
10148   ;;
10149
10150 solaris*)
10151   lt_cv_deplibs_check_method=pass_all
10152   ;;
10153
10154 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10155   case $host_vendor in
10156   motorola)
10157     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]'
10158     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10159     ;;
10160   ncr)
10161     lt_cv_deplibs_check_method=pass_all
10162     ;;
10163   sequent)
10164     lt_cv_file_magic_cmd='/bin/file'
10165     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10166     ;;
10167   sni)
10168     lt_cv_file_magic_cmd='/bin/file'
10169     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10170     lt_cv_file_magic_test_file=/lib/libc.so
10171     ;;
10172   siemens)
10173     lt_cv_deplibs_check_method=pass_all
10174     ;;
10175   esac
10176   ;;
10177
10178 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10179   lt_cv_deplibs_check_method=pass_all
10180   ;;
10181 esac
10182
10183 fi
10184 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10185 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10186 file_magic_cmd=$lt_cv_file_magic_cmd
10187 deplibs_check_method=$lt_cv_deplibs_check_method
10188 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10189
10190
10191
10192 # If no C compiler was specified, use CC.
10193 LTCC=${LTCC-"$CC"}
10194
10195 # Allow CC to be a program name with arguments.
10196 compiler=$CC
10197
10198 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10199 if test "${enable_libtool_lock+set}" = set; then
10200   enableval="$enable_libtool_lock"
10201
10202 fi;
10203 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10204
10205 # Some flags need to be propagated to the compiler or linker for good
10206 # libtool support.
10207 case $host in
10208 ia64-*-hpux*)
10209   # Find out which ABI we are using.
10210   echo 'int i;' > conftest.$ac_ext
10211   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10212   (eval $ac_compile) 2>&5
10213   ac_status=$?
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); }; then
10216     case `/usr/bin/file conftest.$ac_objext` in
10217     *ELF-32*)
10218       HPUX_IA64_MODE="32"
10219       ;;
10220     *ELF-64*)
10221       HPUX_IA64_MODE="64"
10222       ;;
10223     esac
10224   fi
10225   rm -rf conftest*
10226   ;;
10227 *-*-irix6*)
10228   # Find out which ABI we are using.
10229   echo '#line 10229 "configure"' > conftest.$ac_ext
10230   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231   (eval $ac_compile) 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); }; then
10235    if test "$lt_cv_prog_gnu_ld" = yes; then
10236     case `/usr/bin/file conftest.$ac_objext` in
10237     *32-bit*)
10238       LD="${LD-ld} -melf32bsmip"
10239       ;;
10240     *N32*)
10241       LD="${LD-ld} -melf32bmipn32"
10242       ;;
10243     *64-bit*)
10244       LD="${LD-ld} -melf64bmip"
10245       ;;
10246     esac
10247    else
10248     case `/usr/bin/file conftest.$ac_objext` in
10249     *32-bit*)
10250       LD="${LD-ld} -32"
10251       ;;
10252     *N32*)
10253       LD="${LD-ld} -n32"
10254       ;;
10255     *64-bit*)
10256       LD="${LD-ld} -64"
10257       ;;
10258     esac
10259    fi
10260   fi
10261   rm -rf conftest*
10262   ;;
10263
10264 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10265   # Find out which ABI we are using.
10266   echo 'int i;' > conftest.$ac_ext
10267   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10268   (eval $ac_compile) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; then
10272     case "`/usr/bin/file conftest.o`" in
10273     *32-bit*)
10274       case $host in
10275         x86_64-*linux*)
10276           LD="${LD-ld} -m elf_i386"
10277           ;;
10278         ppc64-*linux*|powerpc64-*linux*)
10279           LD="${LD-ld} -m elf32ppclinux"
10280           ;;
10281         s390x-*linux*)
10282           LD="${LD-ld} -m elf_s390"
10283           ;;
10284         sparc64-*linux*)
10285           LD="${LD-ld} -m elf32_sparc"
10286           ;;
10287       esac
10288       ;;
10289     *64-bit*)
10290       case $host in
10291         x86_64-*linux*)
10292           LD="${LD-ld} -m elf_x86_64"
10293           ;;
10294         ppc*-*linux*|powerpc*-*linux*)
10295           LD="${LD-ld} -m elf64ppc"
10296           ;;
10297         s390*-*linux*)
10298           LD="${LD-ld} -m elf64_s390"
10299           ;;
10300         sparc*-*linux*)
10301           LD="${LD-ld} -m elf64_sparc"
10302           ;;
10303       esac
10304       ;;
10305     esac
10306   fi
10307   rm -rf conftest*
10308   ;;
10309
10310 *-*-sco3.2v5*)
10311   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10312   SAVE_CFLAGS="$CFLAGS"
10313   CFLAGS="$CFLAGS -belf"
10314   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10315 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10316 if test "${lt_cv_cc_needs_belf+set}" = set; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   ac_ext=c
10320 ac_cpp='$CPP $CPPFLAGS'
10321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10324
10325      cat >conftest.$ac_ext <<_ACEOF
10326 /* confdefs.h.  */
10327 _ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h.  */
10331
10332 _ACEOF
10333 rm -f conftest.$ac_objext conftest$ac_exeext
10334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335   (eval $ac_link) 2>conftest.er1
10336   ac_status=$?
10337   grep -v '^ *+' conftest.er1 >conftest.err
10338   rm -f conftest.er1
10339   cat conftest.err >&5
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); } &&
10342          { ac_try='test -z "$ac_c_werror_flag"
10343                          || test ! -s conftest.err'
10344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345   (eval $ac_try) 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); }; } &&
10349          { ac_try='test -s conftest$ac_exeext'
10350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351   (eval $ac_try) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); }; }; then
10355   lt_cv_cc_needs_belf=yes
10356 else
10357   echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10359
10360 lt_cv_cc_needs_belf=no
10361 fi
10362 rm -f conftest.err conftest.$ac_objext \
10363       conftest$ac_exeext conftest.$ac_ext
10364      ac_ext=c
10365 ac_cpp='$CPP $CPPFLAGS'
10366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10369
10370 fi
10371 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10372 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10373   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10374     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10375     CFLAGS="$SAVE_CFLAGS"
10376   fi
10377   ;;
10378
10379 esac
10380
10381 need_locks="$enable_libtool_lock"
10382
10383
10384
10385
10386 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10387     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10388     (test "X$CXX" != "Xg++"))) ; then
10389   ac_ext=cc
10390 ac_cpp='$CXXCPP $CPPFLAGS'
10391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10394 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10395 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10396 if test -z "$CXXCPP"; then
10397   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10398   echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400       # Double quotes because CXXCPP needs to be expanded
10401     for CXXCPP in "$CXX -E" "/lib/cpp"
10402     do
10403       ac_preproc_ok=false
10404 for ac_cxx_preproc_warn_flag in '' yes
10405 do
10406   # Use a header file that comes with gcc, so configuring glibc
10407   # with a fresh cross-compiler works.
10408   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10409   # <limits.h> exists even on freestanding compilers.
10410   # On the NeXT, cc -E runs the code through the compiler's parser,
10411   # not just through cpp. "Syntax error" is here to catch this case.
10412   cat >conftest.$ac_ext <<_ACEOF
10413 /* confdefs.h.  */
10414 _ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h.  */
10418 #ifdef __STDC__
10419 # include <limits.h>
10420 #else
10421 # include <assert.h>
10422 #endif
10423                      Syntax error
10424 _ACEOF
10425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10426   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10427   ac_status=$?
10428   grep -v '^ *+' conftest.er1 >conftest.err
10429   rm -f conftest.er1
10430   cat conftest.err >&5
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); } >/dev/null; then
10433   if test -s conftest.err; then
10434     ac_cpp_err=$ac_cxx_preproc_warn_flag
10435     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10436   else
10437     ac_cpp_err=
10438   fi
10439 else
10440   ac_cpp_err=yes
10441 fi
10442 if test -z "$ac_cpp_err"; then
10443   :
10444 else
10445   echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448   # Broken: fails on valid input.
10449 continue
10450 fi
10451 rm -f conftest.err conftest.$ac_ext
10452
10453   # OK, works on sane cases.  Now check whether non-existent headers
10454   # can be detected and how.
10455   cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h.  */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h.  */
10461 #include <ac_nonexistent.h>
10462 _ACEOF
10463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10465   ac_status=$?
10466   grep -v '^ *+' conftest.er1 >conftest.err
10467   rm -f conftest.er1
10468   cat conftest.err >&5
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); } >/dev/null; then
10471   if test -s conftest.err; then
10472     ac_cpp_err=$ac_cxx_preproc_warn_flag
10473     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10474   else
10475     ac_cpp_err=
10476   fi
10477 else
10478   ac_cpp_err=yes
10479 fi
10480 if test -z "$ac_cpp_err"; then
10481   # Broken: success on invalid input.
10482 continue
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487   # Passes both tests.
10488 ac_preproc_ok=:
10489 break
10490 fi
10491 rm -f conftest.err conftest.$ac_ext
10492
10493 done
10494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10495 rm -f conftest.err conftest.$ac_ext
10496 if $ac_preproc_ok; then
10497   break
10498 fi
10499
10500     done
10501     ac_cv_prog_CXXCPP=$CXXCPP
10502
10503 fi
10504   CXXCPP=$ac_cv_prog_CXXCPP
10505 else
10506   ac_cv_prog_CXXCPP=$CXXCPP
10507 fi
10508 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10509 echo "${ECHO_T}$CXXCPP" >&6
10510 ac_preproc_ok=false
10511 for ac_cxx_preproc_warn_flag in '' yes
10512 do
10513   # Use a header file that comes with gcc, so configuring glibc
10514   # with a fresh cross-compiler works.
10515   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10516   # <limits.h> exists even on freestanding compilers.
10517   # On the NeXT, cc -E runs the code through the compiler's parser,
10518   # not just through cpp. "Syntax error" is here to catch this case.
10519   cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h.  */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h.  */
10525 #ifdef __STDC__
10526 # include <limits.h>
10527 #else
10528 # include <assert.h>
10529 #endif
10530                      Syntax error
10531 _ACEOF
10532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10534   ac_status=$?
10535   grep -v '^ *+' conftest.er1 >conftest.err
10536   rm -f conftest.er1
10537   cat conftest.err >&5
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); } >/dev/null; then
10540   if test -s conftest.err; then
10541     ac_cpp_err=$ac_cxx_preproc_warn_flag
10542     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10543   else
10544     ac_cpp_err=
10545   fi
10546 else
10547   ac_cpp_err=yes
10548 fi
10549 if test -z "$ac_cpp_err"; then
10550   :
10551 else
10552   echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10554
10555   # Broken: fails on valid input.
10556 continue
10557 fi
10558 rm -f conftest.err conftest.$ac_ext
10559
10560   # OK, works on sane cases.  Now check whether non-existent headers
10561   # can be detected and how.
10562   cat >conftest.$ac_ext <<_ACEOF
10563 /* confdefs.h.  */
10564 _ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h.  */
10568 #include <ac_nonexistent.h>
10569 _ACEOF
10570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10572   ac_status=$?
10573   grep -v '^ *+' conftest.er1 >conftest.err
10574   rm -f conftest.er1
10575   cat conftest.err >&5
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); } >/dev/null; then
10578   if test -s conftest.err; then
10579     ac_cpp_err=$ac_cxx_preproc_warn_flag
10580     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10581   else
10582     ac_cpp_err=
10583   fi
10584 else
10585   ac_cpp_err=yes
10586 fi
10587 if test -z "$ac_cpp_err"; then
10588   # Broken: success on invalid input.
10589 continue
10590 else
10591   echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10593
10594   # Passes both tests.
10595 ac_preproc_ok=:
10596 break
10597 fi
10598 rm -f conftest.err conftest.$ac_ext
10599
10600 done
10601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10602 rm -f conftest.err conftest.$ac_ext
10603 if $ac_preproc_ok; then
10604   :
10605 else
10606   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10607 See \`config.log' for more details." >&5
10608 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10609 See \`config.log' for more details." >&2;}
10610    { (exit 1); exit 1; }; }
10611 fi
10612
10613 ac_ext=cc
10614 ac_cpp='$CXXCPP $CPPFLAGS'
10615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10618
10619 fi
10620
10621
10622 ac_ext=f
10623 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10624 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10625 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10626 if test -n "$ac_tool_prefix"; then
10627   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10628   do
10629     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10631 echo "$as_me:$LINENO: checking for $ac_word" >&5
10632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10633 if test "${ac_cv_prog_F77+set}" = set; then
10634   echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636   if test -n "$F77"; then
10637   ac_cv_prog_F77="$F77" # Let the user override the test.
10638 else
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10641 do
10642   IFS=$as_save_IFS
10643   test -z "$as_dir" && as_dir=.
10644   for ac_exec_ext in '' $ac_executable_extensions; do
10645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10646     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10648     break 2
10649   fi
10650 done
10651 done
10652
10653 fi
10654 fi
10655 F77=$ac_cv_prog_F77
10656 if test -n "$F77"; then
10657   echo "$as_me:$LINENO: result: $F77" >&5
10658 echo "${ECHO_T}$F77" >&6
10659 else
10660   echo "$as_me:$LINENO: result: no" >&5
10661 echo "${ECHO_T}no" >&6
10662 fi
10663
10664     test -n "$F77" && break
10665   done
10666 fi
10667 if test -z "$F77"; then
10668   ac_ct_F77=$F77
10669   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10670 do
10671   # Extract the first word of "$ac_prog", so it can be a program name with args.
10672 set dummy $ac_prog; ac_word=$2
10673 echo "$as_me:$LINENO: checking for $ac_word" >&5
10674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10675 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10676   echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678   if test -n "$ac_ct_F77"; then
10679   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10680 else
10681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682 for as_dir in $PATH
10683 do
10684   IFS=$as_save_IFS
10685   test -z "$as_dir" && as_dir=.
10686   for ac_exec_ext in '' $ac_executable_extensions; do
10687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10688     ac_cv_prog_ac_ct_F77="$ac_prog"
10689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10690     break 2
10691   fi
10692 done
10693 done
10694
10695 fi
10696 fi
10697 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10698 if test -n "$ac_ct_F77"; then
10699   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10700 echo "${ECHO_T}$ac_ct_F77" >&6
10701 else
10702   echo "$as_me:$LINENO: result: no" >&5
10703 echo "${ECHO_T}no" >&6
10704 fi
10705
10706   test -n "$ac_ct_F77" && break
10707 done
10708
10709   F77=$ac_ct_F77
10710 fi
10711
10712
10713 # Provide some information about the compiler.
10714 echo "$as_me:10714:" \
10715      "checking for Fortran 77 compiler version" >&5
10716 ac_compiler=`set X $ac_compile; echo $2`
10717 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10718   (eval $ac_compiler --version </dev/null >&5) 2>&5
10719   ac_status=$?
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); }
10722 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10723   (eval $ac_compiler -v </dev/null >&5) 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); }
10727 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10728   (eval $ac_compiler -V </dev/null >&5) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }
10732 rm -f a.out
10733
10734 # If we don't use `.F' as extension, the preprocessor is not run on the
10735 # input file.  (Note that this only needs to work for GNU compilers.)
10736 ac_save_ext=$ac_ext
10737 ac_ext=F
10738 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10739 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10740 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10741   echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743   cat >conftest.$ac_ext <<_ACEOF
10744       program main
10745 #ifndef __GNUC__
10746        choke me
10747 #endif
10748
10749       end
10750 _ACEOF
10751 rm -f conftest.$ac_objext
10752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10753   (eval $ac_compile) 2>conftest.er1
10754   ac_status=$?
10755   grep -v '^ *+' conftest.er1 >conftest.err
10756   rm -f conftest.er1
10757   cat conftest.err >&5
10758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759   (exit $ac_status); } &&
10760          { ac_try='test -z "$ac_f77_werror_flag"
10761                          || test ! -s conftest.err'
10762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763   (eval $ac_try) 2>&5
10764   ac_status=$?
10765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766   (exit $ac_status); }; } &&
10767          { ac_try='test -s conftest.$ac_objext'
10768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769   (eval $ac_try) 2>&5
10770   ac_status=$?
10771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772   (exit $ac_status); }; }; then
10773   ac_compiler_gnu=yes
10774 else
10775   echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10777
10778 ac_compiler_gnu=no
10779 fi
10780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10781 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10782
10783 fi
10784 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10785 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10786 ac_ext=$ac_save_ext
10787 ac_test_FFLAGS=${FFLAGS+set}
10788 ac_save_FFLAGS=$FFLAGS
10789 FFLAGS=
10790 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10791 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10792 if test "${ac_cv_prog_f77_g+set}" = set; then
10793   echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795   FFLAGS=-g
10796 cat >conftest.$ac_ext <<_ACEOF
10797       program main
10798
10799       end
10800 _ACEOF
10801 rm -f conftest.$ac_objext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803   (eval $ac_compile) 2>conftest.er1
10804   ac_status=$?
10805   grep -v '^ *+' conftest.er1 >conftest.err
10806   rm -f conftest.er1
10807   cat conftest.err >&5
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } &&
10810          { ac_try='test -z "$ac_f77_werror_flag"
10811                          || test ! -s conftest.err'
10812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813   (eval $ac_try) 2>&5
10814   ac_status=$?
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); }; } &&
10817          { ac_try='test -s conftest.$ac_objext'
10818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819   (eval $ac_try) 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); }; }; then
10823   ac_cv_prog_f77_g=yes
10824 else
10825   echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10827
10828 ac_cv_prog_f77_g=no
10829 fi
10830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10831
10832 fi
10833 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10834 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10835 if test "$ac_test_FFLAGS" = set; then
10836   FFLAGS=$ac_save_FFLAGS
10837 elif test $ac_cv_prog_f77_g = yes; then
10838   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10839     FFLAGS="-g -O2"
10840   else
10841     FFLAGS="-g"
10842   fi
10843 else
10844   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10845     FFLAGS="-O2"
10846   else
10847     FFLAGS=
10848   fi
10849 fi
10850
10851 G77=`test $ac_compiler_gnu = yes && echo yes`
10852 ac_ext=c
10853 ac_cpp='$CPP $CPPFLAGS'
10854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10857
10858
10859
10860 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10861
10862 # find the maximum length of command line arguments
10863 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10864 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10865 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10866   echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868     i=0
10869   teststring="ABCD"
10870
10871   case $build_os in
10872   msdosdjgpp*)
10873     # On DJGPP, this test can blow up pretty badly due to problems in libc
10874     # (any single argument exceeding 2000 bytes causes a buffer overrun
10875     # during glob expansion).  Even if it were fixed, the result of this
10876     # check would be larger than it should be.
10877     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10878     ;;
10879
10880   gnu*)
10881     # Under GNU Hurd, this test is not required because there is
10882     # no limit to the length of command line arguments.
10883     # Libtool will interpret -1 as no limit whatsoever
10884     lt_cv_sys_max_cmd_len=-1;
10885     ;;
10886
10887   cygwin* | mingw*)
10888     # On Win9x/ME, this test blows up -- it succeeds, but takes
10889     # about 5 minutes as the teststring grows exponentially.
10890     # Worse, since 9x/ME are not pre-emptively multitasking,
10891     # you end up with a "frozen" computer, even though with patience
10892     # the test eventually succeeds (with a max line length of 256k).
10893     # Instead, let's just punt: use the minimum linelength reported by
10894     # all of the supported platforms: 8192 (on NT/2K/XP).
10895     lt_cv_sys_max_cmd_len=8192;
10896     ;;
10897
10898   amigaos*)
10899     # On AmigaOS with pdksh, this test takes hours, literally.
10900     # So we just punt and use a minimum line length of 8192.
10901     lt_cv_sys_max_cmd_len=8192;
10902     ;;
10903
10904   netbsd* | freebsd* | openbsd* | darwin* )
10905     # This has been around since 386BSD, at least.  Likely further.
10906     if test -x /sbin/sysctl; then
10907       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10908     elif test -x /usr/sbin/sysctl; then
10909       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10910     else
10911       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10912     fi
10913     # And add a safety zone
10914     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10915     ;;
10916
10917  *)
10918     # If test is not a shell built-in, we'll probably end up computing a
10919     # maximum length that is only half of the actual maximum length, but
10920     # we can't tell.
10921     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10922     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10923                = "XX$teststring") >/dev/null 2>&1 &&
10924             new_result=`expr "X$teststring" : ".*" 2>&1` &&
10925             lt_cv_sys_max_cmd_len=$new_result &&
10926             test $i != 17 # 1/2 MB should be enough
10927     do
10928       i=`expr $i + 1`
10929       teststring=$teststring$teststring
10930     done
10931     teststring=
10932     # Add a significant safety factor because C++ compilers can tack on massive
10933     # amounts of additional arguments before passing them to the linker.
10934     # It appears as though 1/2 is a usable value.
10935     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10936     ;;
10937   esac
10938
10939 fi
10940
10941 if test -n $lt_cv_sys_max_cmd_len ; then
10942   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10943 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10944 else
10945   echo "$as_me:$LINENO: result: none" >&5
10946 echo "${ECHO_T}none" >&6
10947 fi
10948
10949
10950
10951
10952 # Check for command to grab the raw symbol name followed by C symbol from nm.
10953 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10954 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10955 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10956   echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958
10959 # These are sane defaults that work on at least a few old systems.
10960 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10961
10962 # Character class describing NM global symbol codes.
10963 symcode='[BCDEGRST]'
10964
10965 # Regexp to match symbols that can be accessed directly from C.
10966 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10967
10968 # Transform the above into a raw symbol and a C symbol.
10969 symxfrm='\1 \2\3 \3'
10970
10971 # Transform an extracted symbol line into a proper C declaration
10972 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10973
10974 # Transform an extracted symbol line into symbol name and symbol address
10975 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'"
10976
10977 # Define system-specific variables.
10978 case $host_os in
10979 aix*)
10980   symcode='[BCDT]'
10981   ;;
10982 cygwin* | mingw* | pw32*)
10983   symcode='[ABCDGISTW]'
10984   ;;
10985 hpux*) # Its linker distinguishes data from code symbols
10986   if test "$host_cpu" = ia64; then
10987     symcode='[ABCDEGRST]'
10988   fi
10989   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10990   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'"
10991   ;;
10992 linux*)
10993   if test "$host_cpu" = ia64; then
10994     symcode='[ABCDGIRSTW]'
10995     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10996     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'"
10997   fi
10998   ;;
10999 irix* | nonstopux*)
11000   symcode='[BCDEGRST]'
11001   ;;
11002 osf*)
11003   symcode='[BCDEGQRST]'
11004   ;;
11005 solaris* | sysv5*)
11006   symcode='[BDRT]'
11007   ;;
11008 sysv4)
11009   symcode='[DFNSTU]'
11010   ;;
11011 esac
11012
11013 # Handle CRLF in mingw tool chain
11014 opt_cr=
11015 case $build_os in
11016 mingw*)
11017   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11018   ;;
11019 esac
11020
11021 # If we're using GNU nm, then use its standard symbol codes.
11022 case `$NM -V 2>&1` in
11023 *GNU* | *'with BFD'*)
11024   symcode='[ABCDGIRSTW]' ;;
11025 esac
11026
11027 # Try without a prefix undercore, then with it.
11028 for ac_symprfx in "" "_"; do
11029
11030   # Write the raw and C identifiers.
11031   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11032
11033   # Check to see that the pipe works correctly.
11034   pipe_works=no
11035
11036   rm -f conftest*
11037   cat > conftest.$ac_ext <<EOF
11038 #ifdef __cplusplus
11039 extern "C" {
11040 #endif
11041 char nm_test_var;
11042 void nm_test_func(){}
11043 #ifdef __cplusplus
11044 }
11045 #endif
11046 int main(){nm_test_var='a';nm_test_func();return(0);}
11047 EOF
11048
11049   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11050   (eval $ac_compile) 2>&5
11051   ac_status=$?
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); }; then
11054     # Now try to grab the symbols.
11055     nlist=conftest.nm
11056     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11057   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11058   ac_status=$?
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); } && test -s "$nlist"; then
11061       # Try sorting and uniquifying the output.
11062       if sort "$nlist" | uniq > "$nlist"T; then
11063         mv -f "$nlist"T "$nlist"
11064       else
11065         rm -f "$nlist"T
11066       fi
11067
11068       # Make sure that we snagged all the symbols we need.
11069       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11070         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11071           cat <<EOF > conftest.$ac_ext
11072 #ifdef __cplusplus
11073 extern "C" {
11074 #endif
11075
11076 EOF
11077           # Now generate the symbol file.
11078           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11079
11080           cat <<EOF >> conftest.$ac_ext
11081 #if defined (__STDC__) && __STDC__
11082 # define lt_ptr_t void *
11083 #else
11084 # define lt_ptr_t char *
11085 # define const
11086 #endif
11087
11088 /* The mapping between symbol names and symbols. */
11089 const struct {
11090   const char *name;
11091   lt_ptr_t address;
11092 }
11093 lt_preloaded_symbols[] =
11094 {
11095 EOF
11096           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11097           cat <<\EOF >> conftest.$ac_ext
11098   {0, (lt_ptr_t) 0}
11099 };
11100
11101 #ifdef __cplusplus
11102 }
11103 #endif
11104 EOF
11105           # Now try linking the two files.
11106           mv conftest.$ac_objext conftstm.$ac_objext
11107           lt_save_LIBS="$LIBS"
11108           lt_save_CFLAGS="$CFLAGS"
11109           LIBS="conftstm.$ac_objext"
11110           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11111           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112   (eval $ac_link) 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11116             pipe_works=yes
11117           fi
11118           LIBS="$lt_save_LIBS"
11119           CFLAGS="$lt_save_CFLAGS"
11120         else
11121           echo "cannot find nm_test_func in $nlist" >&5
11122         fi
11123       else
11124         echo "cannot find nm_test_var in $nlist" >&5
11125       fi
11126     else
11127       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11128     fi
11129   else
11130     echo "$progname: failed program was:" >&5
11131     cat conftest.$ac_ext >&5
11132   fi
11133   rm -f conftest* conftst*
11134
11135   # Do not use the global_symbol_pipe unless it works.
11136   if test "$pipe_works" = yes; then
11137     break
11138   else
11139     lt_cv_sys_global_symbol_pipe=
11140   fi
11141 done
11142
11143 fi
11144
11145 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11146   lt_cv_sys_global_symbol_to_cdecl=
11147 fi
11148 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11149   echo "$as_me:$LINENO: result: failed" >&5
11150 echo "${ECHO_T}failed" >&6
11151 else
11152   echo "$as_me:$LINENO: result: ok" >&5
11153 echo "${ECHO_T}ok" >&6
11154 fi
11155
11156 echo "$as_me:$LINENO: checking for objdir" >&5
11157 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11158 if test "${lt_cv_objdir+set}" = set; then
11159   echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161   rm -f .libs 2>/dev/null
11162 mkdir .libs 2>/dev/null
11163 if test -d .libs; then
11164   lt_cv_objdir=.libs
11165 else
11166   # MS-DOS does not allow filenames that begin with a dot.
11167   lt_cv_objdir=_libs
11168 fi
11169 rmdir .libs 2>/dev/null
11170 fi
11171 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11172 echo "${ECHO_T}$lt_cv_objdir" >&6
11173 objdir=$lt_cv_objdir
11174
11175
11176
11177
11178
11179 case $host_os in
11180 aix3*)
11181   # AIX sometimes has problems with the GCC collect2 program.  For some
11182   # reason, if we set the COLLECT_NAMES environment variable, the problems
11183   # vanish in a puff of smoke.
11184   if test "X${COLLECT_NAMES+set}" != Xset; then
11185     COLLECT_NAMES=
11186     export COLLECT_NAMES
11187   fi
11188   ;;
11189 esac
11190
11191 # Sed substitution that helps us do robust quoting.  It backslashifies
11192 # metacharacters that are still active within double-quoted strings.
11193 Xsed='sed -e s/^X//'
11194 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11195
11196 # Same as above, but do not quote variable references.
11197 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11198
11199 # Sed substitution to delay expansion of an escaped shell variable in a
11200 # double_quote_subst'ed string.
11201 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11202
11203 # Sed substitution to avoid accidental globbing in evaled expressions
11204 no_glob_subst='s/\*/\\\*/g'
11205
11206 # Constants:
11207 rm="rm -f"
11208
11209 # Global variables:
11210 default_ofile=mklib
11211 can_build_shared=yes
11212
11213 # All known linkers require a `.a' archive for static linking (except M$VC,
11214 # which needs '.lib').
11215 libext=a
11216 ltmain="$ac_aux_dir/ltmain.sh"
11217 ofile="$default_ofile"
11218 with_gnu_ld="$lt_cv_prog_gnu_ld"
11219
11220 if test -n "$ac_tool_prefix"; then
11221   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11222 set dummy ${ac_tool_prefix}ar; ac_word=$2
11223 echo "$as_me:$LINENO: checking for $ac_word" >&5
11224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11225 if test "${ac_cv_prog_AR+set}" = set; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228   if test -n "$AR"; then
11229   ac_cv_prog_AR="$AR" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234   IFS=$as_save_IFS
11235   test -z "$as_dir" && as_dir=.
11236   for ac_exec_ext in '' $ac_executable_extensions; do
11237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238     ac_cv_prog_AR="${ac_tool_prefix}ar"
11239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11240     break 2
11241   fi
11242 done
11243 done
11244
11245 fi
11246 fi
11247 AR=$ac_cv_prog_AR
11248 if test -n "$AR"; then
11249   echo "$as_me:$LINENO: result: $AR" >&5
11250 echo "${ECHO_T}$AR" >&6
11251 else
11252   echo "$as_me:$LINENO: result: no" >&5
11253 echo "${ECHO_T}no" >&6
11254 fi
11255
11256 fi
11257 if test -z "$ac_cv_prog_AR"; then
11258   ac_ct_AR=$AR
11259   # Extract the first word of "ar", so it can be a program name with args.
11260 set dummy ar; ac_word=$2
11261 echo "$as_me:$LINENO: checking for $ac_word" >&5
11262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11263 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266   if test -n "$ac_ct_AR"; then
11267   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11268 else
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11271 do
11272   IFS=$as_save_IFS
11273   test -z "$as_dir" && as_dir=.
11274   for ac_exec_ext in '' $ac_executable_extensions; do
11275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276     ac_cv_prog_ac_ct_AR="ar"
11277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11278     break 2
11279   fi
11280 done
11281 done
11282
11283   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11284 fi
11285 fi
11286 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11287 if test -n "$ac_ct_AR"; then
11288   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11289 echo "${ECHO_T}$ac_ct_AR" >&6
11290 else
11291   echo "$as_me:$LINENO: result: no" >&5
11292 echo "${ECHO_T}no" >&6
11293 fi
11294
11295   AR=$ac_ct_AR
11296 else
11297   AR="$ac_cv_prog_AR"
11298 fi
11299
11300 if test -n "$ac_tool_prefix"; then
11301   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11303 echo "$as_me:$LINENO: checking for $ac_word" >&5
11304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11305 if test "${ac_cv_prog_RANLIB+set}" = set; then
11306   echo $ECHO_N "(cached) $ECHO_C" >&6
11307 else
11308   if test -n "$RANLIB"; then
11309   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11310 else
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11313 do
11314   IFS=$as_save_IFS
11315   test -z "$as_dir" && as_dir=.
11316   for ac_exec_ext in '' $ac_executable_extensions; do
11317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11320     break 2
11321   fi
11322 done
11323 done
11324
11325 fi
11326 fi
11327 RANLIB=$ac_cv_prog_RANLIB
11328 if test -n "$RANLIB"; then
11329   echo "$as_me:$LINENO: result: $RANLIB" >&5
11330 echo "${ECHO_T}$RANLIB" >&6
11331 else
11332   echo "$as_me:$LINENO: result: no" >&5
11333 echo "${ECHO_T}no" >&6
11334 fi
11335
11336 fi
11337 if test -z "$ac_cv_prog_RANLIB"; then
11338   ac_ct_RANLIB=$RANLIB
11339   # Extract the first word of "ranlib", so it can be a program name with args.
11340 set dummy ranlib; ac_word=$2
11341 echo "$as_me:$LINENO: checking for $ac_word" >&5
11342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11344   echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346   if test -n "$ac_ct_RANLIB"; then
11347   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11348 else
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11351 do
11352   IFS=$as_save_IFS
11353   test -z "$as_dir" && as_dir=.
11354   for ac_exec_ext in '' $ac_executable_extensions; do
11355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356     ac_cv_prog_ac_ct_RANLIB="ranlib"
11357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11358     break 2
11359   fi
11360 done
11361 done
11362
11363   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11364 fi
11365 fi
11366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11367 if test -n "$ac_ct_RANLIB"; then
11368   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11369 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11370 else
11371   echo "$as_me:$LINENO: result: no" >&5
11372 echo "${ECHO_T}no" >&6
11373 fi
11374
11375   RANLIB=$ac_ct_RANLIB
11376 else
11377   RANLIB="$ac_cv_prog_RANLIB"
11378 fi
11379
11380 if test -n "$ac_tool_prefix"; then
11381   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11382 set dummy ${ac_tool_prefix}strip; ac_word=$2
11383 echo "$as_me:$LINENO: checking for $ac_word" >&5
11384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11385 if test "${ac_cv_prog_STRIP+set}" = set; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   if test -n "$STRIP"; then
11389   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   test -z "$as_dir" && as_dir=.
11396   for ac_exec_ext in '' $ac_executable_extensions; do
11397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11398     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400     break 2
11401   fi
11402 done
11403 done
11404
11405 fi
11406 fi
11407 STRIP=$ac_cv_prog_STRIP
11408 if test -n "$STRIP"; then
11409   echo "$as_me:$LINENO: result: $STRIP" >&5
11410 echo "${ECHO_T}$STRIP" >&6
11411 else
11412   echo "$as_me:$LINENO: result: no" >&5
11413 echo "${ECHO_T}no" >&6
11414 fi
11415
11416 fi
11417 if test -z "$ac_cv_prog_STRIP"; then
11418   ac_ct_STRIP=$STRIP
11419   # Extract the first word of "strip", so it can be a program name with args.
11420 set dummy strip; ac_word=$2
11421 echo "$as_me:$LINENO: checking for $ac_word" >&5
11422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11423 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426   if test -n "$ac_ct_STRIP"; then
11427   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11428 else
11429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430 for as_dir in $PATH
11431 do
11432   IFS=$as_save_IFS
11433   test -z "$as_dir" && as_dir=.
11434   for ac_exec_ext in '' $ac_executable_extensions; do
11435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11436     ac_cv_prog_ac_ct_STRIP="strip"
11437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11438     break 2
11439   fi
11440 done
11441 done
11442
11443   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11444 fi
11445 fi
11446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11447 if test -n "$ac_ct_STRIP"; then
11448   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11449 echo "${ECHO_T}$ac_ct_STRIP" >&6
11450 else
11451   echo "$as_me:$LINENO: result: no" >&5
11452 echo "${ECHO_T}no" >&6
11453 fi
11454
11455   STRIP=$ac_ct_STRIP
11456 else
11457   STRIP="$ac_cv_prog_STRIP"
11458 fi
11459
11460
11461 old_CC="$CC"
11462 old_CFLAGS="$CFLAGS"
11463
11464 # Set sane defaults for various variables
11465 test -z "$AR" && AR=ar
11466 test -z "$AR_FLAGS" && AR_FLAGS=cru
11467 test -z "$AS" && AS=as
11468 test -z "$CC" && CC=cc
11469 test -z "$LTCC" && LTCC=$CC
11470 test -z "$DLLTOOL" && DLLTOOL=dlltool
11471 test -z "$LD" && LD=ld
11472 test -z "$LN_S" && LN_S="ln -s"
11473 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11474 test -z "$NM" && NM=nm
11475 test -z "$SED" && SED=sed
11476 test -z "$OBJDUMP" && OBJDUMP=objdump
11477 test -z "$RANLIB" && RANLIB=:
11478 test -z "$STRIP" && STRIP=:
11479 test -z "$ac_objext" && ac_objext=o
11480
11481 # Determine commands to create old-style static archives.
11482 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11483 old_postinstall_cmds='chmod 644 $oldlib'
11484 old_postuninstall_cmds=
11485
11486 if test -n "$RANLIB"; then
11487   case $host_os in
11488   openbsd*)
11489     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11490     ;;
11491   *)
11492     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11493     ;;
11494   esac
11495   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11496 fi
11497
11498 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11499
11500 # Only perform the check for file, if the check method requires it
11501 case $deplibs_check_method in
11502 file_magic*)
11503   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11504     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11505 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11506 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11507   echo $ECHO_N "(cached) $ECHO_C" >&6
11508 else
11509   case $MAGIC_CMD in
11510 [\\/*] |  ?:[\\/]*)
11511   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11512   ;;
11513 *)
11514   lt_save_MAGIC_CMD="$MAGIC_CMD"
11515   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11516   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11517   for ac_dir in $ac_dummy; do
11518     IFS="$lt_save_ifs"
11519     test -z "$ac_dir" && ac_dir=.
11520     if test -f $ac_dir/${ac_tool_prefix}file; then
11521       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11522       if test -n "$file_magic_test_file"; then
11523         case $deplibs_check_method in
11524         "file_magic "*)
11525           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11526           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11527           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11528             $EGREP "$file_magic_regex" > /dev/null; then
11529             :
11530           else
11531             cat <<EOF 1>&2
11532
11533 *** Warning: the command libtool uses to detect shared libraries,
11534 *** $file_magic_cmd, produces output that libtool cannot recognize.
11535 *** The result is that libtool may fail to recognize shared libraries
11536 *** as such.  This will affect the creation of libtool libraries that
11537 *** depend on shared libraries, but programs linked with such libtool
11538 *** libraries will work regardless of this problem.  Nevertheless, you
11539 *** may want to report the problem to your system manager and/or to
11540 *** bug-libtool@gnu.org
11541
11542 EOF
11543           fi ;;
11544         esac
11545       fi
11546       break
11547     fi
11548   done
11549   IFS="$lt_save_ifs"
11550   MAGIC_CMD="$lt_save_MAGIC_CMD"
11551   ;;
11552 esac
11553 fi
11554
11555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11556 if test -n "$MAGIC_CMD"; then
11557   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11558 echo "${ECHO_T}$MAGIC_CMD" >&6
11559 else
11560   echo "$as_me:$LINENO: result: no" >&5
11561 echo "${ECHO_T}no" >&6
11562 fi
11563
11564 if test -z "$lt_cv_path_MAGIC_CMD"; then
11565   if test -n "$ac_tool_prefix"; then
11566     echo "$as_me:$LINENO: checking for file" >&5
11567 echo $ECHO_N "checking for file... $ECHO_C" >&6
11568 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11569   echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571   case $MAGIC_CMD in
11572 [\\/*] |  ?:[\\/]*)
11573   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11574   ;;
11575 *)
11576   lt_save_MAGIC_CMD="$MAGIC_CMD"
11577   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11578   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11579   for ac_dir in $ac_dummy; do
11580     IFS="$lt_save_ifs"
11581     test -z "$ac_dir" && ac_dir=.
11582     if test -f $ac_dir/file; then
11583       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11584       if test -n "$file_magic_test_file"; then
11585         case $deplibs_check_method in
11586         "file_magic "*)
11587           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11588           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11589           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11590             $EGREP "$file_magic_regex" > /dev/null; then
11591             :
11592           else
11593             cat <<EOF 1>&2
11594
11595 *** Warning: the command libtool uses to detect shared libraries,
11596 *** $file_magic_cmd, produces output that libtool cannot recognize.
11597 *** The result is that libtool may fail to recognize shared libraries
11598 *** as such.  This will affect the creation of libtool libraries that
11599 *** depend on shared libraries, but programs linked with such libtool
11600 *** libraries will work regardless of this problem.  Nevertheless, you
11601 *** may want to report the problem to your system manager and/or to
11602 *** bug-libtool@gnu.org
11603
11604 EOF
11605           fi ;;
11606         esac
11607       fi
11608       break
11609     fi
11610   done
11611   IFS="$lt_save_ifs"
11612   MAGIC_CMD="$lt_save_MAGIC_CMD"
11613   ;;
11614 esac
11615 fi
11616
11617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11618 if test -n "$MAGIC_CMD"; then
11619   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11620 echo "${ECHO_T}$MAGIC_CMD" >&6
11621 else
11622   echo "$as_me:$LINENO: result: no" >&5
11623 echo "${ECHO_T}no" >&6
11624 fi
11625
11626   else
11627     MAGIC_CMD=:
11628   fi
11629 fi
11630
11631   fi
11632   ;;
11633 esac
11634
11635 enable_dlopen=yes
11636 enable_win32_dll=no
11637
11638 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11639 if test "${enable_libtool_lock+set}" = set; then
11640   enableval="$enable_libtool_lock"
11641
11642 fi;
11643 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11644
11645
11646 # Check whether --with-pic or --without-pic was given.
11647 if test "${with_pic+set}" = set; then
11648   withval="$with_pic"
11649   pic_mode="$withval"
11650 else
11651   pic_mode=default
11652 fi;
11653 test -z "$pic_mode" && pic_mode=default
11654
11655 # Use C for the default configuration in the libtool script
11656 tagname=
11657 lt_save_CC="$CC"
11658 ac_ext=c
11659 ac_cpp='$CPP $CPPFLAGS'
11660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11663
11664
11665 # Source file extension for C test sources.
11666 ac_ext=c
11667
11668 # Object file extension for compiled C test sources.
11669 objext=o
11670 objext=$objext
11671
11672 # Code to be used in simple compile tests
11673 lt_simple_compile_test_code="int some_variable = 0;\n"
11674
11675 # Code to be used in simple link tests
11676 lt_simple_link_test_code='int main(){return(0);}\n'
11677
11678
11679 # If no C compiler was specified, use CC.
11680 LTCC=${LTCC-"$CC"}
11681
11682 # Allow CC to be a program name with arguments.
11683 compiler=$CC
11684
11685
11686 #
11687 # Check for any special shared library compilation flags.
11688 #
11689 lt_prog_cc_shlib=
11690 if test "$GCC" = no; then
11691   case $host_os in
11692   sco3.2v5*)
11693     lt_prog_cc_shlib='-belf'
11694     ;;
11695   esac
11696 fi
11697 if test -n "$lt_prog_cc_shlib"; then
11698   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11699 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11700   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11701   else
11702     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11703 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11704     lt_cv_prog_cc_can_build_shared=no
11705   fi
11706 fi
11707
11708
11709 #
11710 # Check to make sure the static flag actually works.
11711 #
11712 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11713 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11714 if test "${lt_prog_compiler_static_works+set}" = set; then
11715   echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717   lt_prog_compiler_static_works=no
11718    save_LDFLAGS="$LDFLAGS"
11719    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11720    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11721    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11722      # The compiler can only warn and ignore the option if not recognized
11723      # So say no if there are warnings
11724      if test -s conftest.err; then
11725        # Append any errors to the config.log.
11726        cat conftest.err 1>&5
11727      else
11728        lt_prog_compiler_static_works=yes
11729      fi
11730    fi
11731    $rm conftest*
11732    LDFLAGS="$save_LDFLAGS"
11733
11734 fi
11735 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11736 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11737
11738 if test x"$lt_prog_compiler_static_works" = xyes; then
11739     :
11740 else
11741     lt_prog_compiler_static=
11742 fi
11743
11744
11745
11746
11747 lt_prog_compiler_no_builtin_flag=
11748
11749 if test "$GCC" = yes; then
11750   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11751
11752
11753 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11754 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11755 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11756   echo $ECHO_N "(cached) $ECHO_C" >&6
11757 else
11758   lt_cv_prog_compiler_rtti_exceptions=no
11759   ac_outfile=conftest.$ac_objext
11760    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11761    lt_compiler_flag="-fno-rtti -fno-exceptions"
11762    # Insert the option either (1) after the last *FLAGS variable, or
11763    # (2) before a word containing "conftest.", or (3) at the end.
11764    # Note that $ac_compile itself does not contain backslashes and begins
11765    # with a dollar sign (not a hyphen), so the echo should work correctly.
11766    # The option is referenced via a variable to avoid confusing sed.
11767    lt_compile=`echo "$ac_compile" | $SED \
11768    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11769    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11770    -e 's:$: $lt_compiler_flag:'`
11771    (eval echo "\"\$as_me:11771: $lt_compile\"" >&5)
11772    (eval "$lt_compile" 2>conftest.err)
11773    ac_status=$?
11774    cat conftest.err >&5
11775    echo "$as_me:11775: \$? = $ac_status" >&5
11776    if (exit $ac_status) && test -s "$ac_outfile"; then
11777      # The compiler can only warn and ignore the option if not recognized
11778      # So say no if there are warnings
11779      if test ! -s conftest.err; then
11780        lt_cv_prog_compiler_rtti_exceptions=yes
11781      fi
11782    fi
11783    $rm conftest*
11784
11785 fi
11786 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11787 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11788
11789 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11790     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11791 else
11792     :
11793 fi
11794
11795 fi
11796
11797 lt_prog_compiler_wl=
11798 lt_prog_compiler_pic=
11799 lt_prog_compiler_static=
11800
11801 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11802 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11803
11804   if test "$GCC" = yes; then
11805     lt_prog_compiler_wl='-Wl,'
11806     lt_prog_compiler_static='-static'
11807
11808     case $host_os in
11809       aix*)
11810       # All AIX code is PIC.
11811       if test "$host_cpu" = ia64; then
11812         # AIX 5 now supports IA64 processor
11813         lt_prog_compiler_static='-Bstatic'
11814       fi
11815       ;;
11816
11817     amigaos*)
11818       # FIXME: we need at least 68020 code to build shared libraries, but
11819       # adding the `-m68020' flag to GCC prevents building anything better,
11820       # like `-m68040'.
11821       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11822       ;;
11823
11824     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11825       # PIC is the default for these OSes.
11826       ;;
11827
11828     mingw* | pw32* | os2*)
11829       # This hack is so that the source file can tell whether it is being
11830       # built for inclusion in a dll (and should export symbols for example).
11831       lt_prog_compiler_pic='-DDLL_EXPORT'
11832       ;;
11833
11834     darwin* | rhapsody*)
11835       # PIC is the default on this platform
11836       # Common symbols not allowed in MH_DYLIB files
11837       lt_prog_compiler_pic='-fno-common'
11838       ;;
11839
11840     msdosdjgpp*)
11841       # Just because we use GCC doesn't mean we suddenly get shared libraries
11842       # on systems that don't support them.
11843       lt_prog_compiler_can_build_shared=no
11844       enable_shared=no
11845       ;;
11846
11847     sysv4*MP*)
11848       if test -d /usr/nec; then
11849         lt_prog_compiler_pic=-Kconform_pic
11850       fi
11851       ;;
11852
11853     hpux*)
11854       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11855       # not for PA HP-UX.
11856       case "$host_cpu" in
11857       hppa*64*|ia64*)
11858         # +Z the default
11859         ;;
11860       *)
11861         lt_prog_compiler_pic='-fPIC'
11862         ;;
11863       esac
11864       ;;
11865
11866     *)
11867       lt_prog_compiler_pic='-fPIC'
11868       ;;
11869     esac
11870   else
11871     # PORTME Check for flag to pass linker flags through the system compiler.
11872     case $host_os in
11873     aix*)
11874       lt_prog_compiler_wl='-Wl,'
11875       if test "$host_cpu" = ia64; then
11876         # AIX 5 now supports IA64 processor
11877         lt_prog_compiler_static='-Bstatic'
11878       else
11879         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11880       fi
11881       ;;
11882       darwin*)
11883         # PIC is the default on this platform
11884         # Common symbols not allowed in MH_DYLIB files
11885        case "$cc_basename" in
11886          xlc*)
11887          lt_prog_compiler_pic='-qnocommon'
11888          lt_prog_compiler_wl='-Wl,'
11889          ;;
11890        esac
11891        ;;
11892
11893     mingw* | pw32* | os2*)
11894       # This hack is so that the source file can tell whether it is being
11895       # built for inclusion in a dll (and should export symbols for example).
11896       lt_prog_compiler_pic='-DDLL_EXPORT'
11897       ;;
11898
11899     hpux9* | hpux10* | hpux11*)
11900       lt_prog_compiler_wl='-Wl,'
11901       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11902       # not for PA HP-UX.
11903       case "$host_cpu" in
11904       hppa*64*|ia64*)
11905         # +Z the default
11906         ;;
11907       *)
11908         lt_prog_compiler_pic='+Z'
11909         ;;
11910       esac
11911       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11912       lt_prog_compiler_static='${wl}-a ${wl}archive'
11913       ;;
11914
11915     irix5* | irix6* | nonstopux*)
11916       lt_prog_compiler_wl='-Wl,'
11917       # PIC (with -KPIC) is the default.
11918       lt_prog_compiler_static='-non_shared'
11919       ;;
11920
11921     newsos6)
11922       lt_prog_compiler_pic='-KPIC'
11923       lt_prog_compiler_static='-Bstatic'
11924       ;;
11925
11926     linux*)
11927       case $CC in
11928       icc* | ecc*)
11929         lt_prog_compiler_wl='-Wl,'
11930         lt_prog_compiler_pic='-KPIC'
11931         lt_prog_compiler_static='-static'
11932         ;;
11933       ccc*)
11934         lt_prog_compiler_wl='-Wl,'
11935         # All Alpha code is PIC.
11936         lt_prog_compiler_static='-non_shared'
11937         ;;
11938       esac
11939       ;;
11940
11941     osf3* | osf4* | osf5*)
11942       lt_prog_compiler_wl='-Wl,'
11943       # All OSF/1 code is PIC.
11944       lt_prog_compiler_static='-non_shared'
11945       ;;
11946
11947     sco3.2v5*)
11948       lt_prog_compiler_pic='-Kpic'
11949       lt_prog_compiler_static='-dn'
11950       ;;
11951
11952     solaris*)
11953       lt_prog_compiler_wl='-Wl,'
11954       lt_prog_compiler_pic='-KPIC'
11955       lt_prog_compiler_static='-Bstatic'
11956       ;;
11957
11958     sunos4*)
11959       lt_prog_compiler_wl='-Qoption ld '
11960       lt_prog_compiler_pic='-PIC'
11961       lt_prog_compiler_static='-Bstatic'
11962       ;;
11963
11964     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11965       lt_prog_compiler_wl='-Wl,'
11966       lt_prog_compiler_pic='-KPIC'
11967       lt_prog_compiler_static='-Bstatic'
11968       ;;
11969
11970     sysv4*MP*)
11971       if test -d /usr/nec ;then
11972         lt_prog_compiler_pic='-Kconform_pic'
11973         lt_prog_compiler_static='-Bstatic'
11974       fi
11975       ;;
11976
11977     uts4*)
11978       lt_prog_compiler_pic='-pic'
11979       lt_prog_compiler_static='-Bstatic'
11980       ;;
11981
11982     *)
11983       lt_prog_compiler_can_build_shared=no
11984       ;;
11985     esac
11986   fi
11987
11988 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11989 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11990
11991 #
11992 # Check to make sure the PIC flag actually works.
11993 #
11994 if test -n "$lt_prog_compiler_pic"; then
11995
11996 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11997 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11998 if test "${lt_prog_compiler_pic_works+set}" = set; then
11999   echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001   lt_prog_compiler_pic_works=no
12002   ac_outfile=conftest.$ac_objext
12003    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12004    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12005    # Insert the option either (1) after the last *FLAGS variable, or
12006    # (2) before a word containing "conftest.", or (3) at the end.
12007    # Note that $ac_compile itself does not contain backslashes and begins
12008    # with a dollar sign (not a hyphen), so the echo should work correctly.
12009    # The option is referenced via a variable to avoid confusing sed.
12010    lt_compile=`echo "$ac_compile" | $SED \
12011    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12012    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12013    -e 's:$: $lt_compiler_flag:'`
12014    (eval echo "\"\$as_me:12014: $lt_compile\"" >&5)
12015    (eval "$lt_compile" 2>conftest.err)
12016    ac_status=$?
12017    cat conftest.err >&5
12018    echo "$as_me:12018: \$? = $ac_status" >&5
12019    if (exit $ac_status) && test -s "$ac_outfile"; then
12020      # The compiler can only warn and ignore the option if not recognized
12021      # So say no if there are warnings
12022      if test ! -s conftest.err; then
12023        lt_prog_compiler_pic_works=yes
12024      fi
12025    fi
12026    $rm conftest*
12027
12028 fi
12029 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12030 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12031
12032 if test x"$lt_prog_compiler_pic_works" = xyes; then
12033     case $lt_prog_compiler_pic in
12034      "" | " "*) ;;
12035      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12036      esac
12037 else
12038     lt_prog_compiler_pic=
12039      lt_prog_compiler_can_build_shared=no
12040 fi
12041
12042 fi
12043 case "$host_os" in
12044   # For platforms which do not support PIC, -DPIC is meaningless:
12045   *djgpp*)
12046     lt_prog_compiler_pic=
12047     ;;
12048   *)
12049     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12050     ;;
12051 esac
12052
12053 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12054 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12055 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12056   echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058   lt_cv_prog_compiler_c_o=no
12059    $rm -r conftest 2>/dev/null
12060    mkdir conftest
12061    cd conftest
12062    mkdir out
12063    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12064
12065    lt_compiler_flag="-o out/conftest2.$ac_objext"
12066    # Insert the option either (1) after the last *FLAGS variable, or
12067    # (2) before a word containing "conftest.", or (3) at the end.
12068    # Note that $ac_compile itself does not contain backslashes and begins
12069    # with a dollar sign (not a hyphen), so the echo should work correctly.
12070    lt_compile=`echo "$ac_compile" | $SED \
12071    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12072    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12073    -e 's:$: $lt_compiler_flag:'`
12074    (eval echo "\"\$as_me:12074: $lt_compile\"" >&5)
12075    (eval "$lt_compile" 2>out/conftest.err)
12076    ac_status=$?
12077    cat out/conftest.err >&5
12078    echo "$as_me:12078: \$? = $ac_status" >&5
12079    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12080    then
12081      # The compiler can only warn and ignore the option if not recognized
12082      # So say no if there are warnings
12083      if test ! -s out/conftest.err; then
12084        lt_cv_prog_compiler_c_o=yes
12085      fi
12086    fi
12087    chmod u+w .
12088    $rm conftest*
12089    # SGI C++ compiler will create directory out/ii_files/ for
12090    # template instantiation
12091    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12092    $rm out/* && rmdir out
12093    cd ..
12094    rmdir conftest
12095    $rm conftest*
12096
12097 fi
12098 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12099 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12100
12101
12102 hard_links="nottested"
12103 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12104   # do not overwrite the value of need_locks provided by the user
12105   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12106 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12107   hard_links=yes
12108   $rm conftest*
12109   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12110   touch conftest.a
12111   ln conftest.a conftest.b 2>&5 || hard_links=no
12112   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12113   echo "$as_me:$LINENO: result: $hard_links" >&5
12114 echo "${ECHO_T}$hard_links" >&6
12115   if test "$hard_links" = no; then
12116     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12117 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12118     need_locks=warn
12119   fi
12120 else
12121   need_locks=no
12122 fi
12123
12124 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12125 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12126
12127   runpath_var=
12128   allow_undefined_flag=
12129   enable_shared_with_static_runtimes=no
12130   archive_cmds=
12131   archive_expsym_cmds=
12132   old_archive_From_new_cmds=
12133   old_archive_from_expsyms_cmds=
12134   export_dynamic_flag_spec=
12135   whole_archive_flag_spec=
12136   thread_safe_flag_spec=
12137   hardcode_libdir_flag_spec=
12138   hardcode_libdir_flag_spec_ld=
12139   hardcode_libdir_separator=
12140   hardcode_direct=no
12141   hardcode_minus_L=no
12142   hardcode_shlibpath_var=unsupported
12143   link_all_deplibs=unknown
12144   hardcode_automatic=no
12145   module_cmds=
12146   module_expsym_cmds=
12147   always_export_symbols=no
12148   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12149   # include_expsyms should be a list of space-separated symbols to be *always*
12150   # included in the symbol list
12151   include_expsyms=
12152   # exclude_expsyms can be an extended regexp of symbols to exclude
12153   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12154   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12155   # as well as any symbol that contains `d'.
12156   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12157   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12158   # platforms (ab)use it in PIC code, but their linkers get confused if
12159   # the symbol is explicitly referenced.  Since portable code cannot
12160   # rely on this symbol name, it's probably fine to never include it in
12161   # preloaded symbol tables.
12162   extract_expsyms_cmds=
12163
12164   case $host_os in
12165   cygwin* | mingw* | pw32*)
12166     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12167     # When not using gcc, we currently assume that we are using
12168     # Microsoft Visual C++.
12169     if test "$GCC" != yes; then
12170       with_gnu_ld=no
12171     fi
12172     ;;
12173   openbsd*)
12174     with_gnu_ld=no
12175     ;;
12176   esac
12177
12178   ld_shlibs=yes
12179   if test "$with_gnu_ld" = yes; then
12180     # If archive_cmds runs LD, not CC, wlarc should be empty
12181     wlarc='${wl}'
12182
12183     # See if GNU ld supports shared libraries.
12184     case $host_os in
12185     aix3* | aix4* | aix5*)
12186       # On AIX/PPC, the GNU linker is very broken
12187       if test "$host_cpu" != ia64; then
12188         ld_shlibs=no
12189         cat <<EOF 1>&2
12190
12191 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12192 *** to be unable to reliably create shared libraries on AIX.
12193 *** Therefore, libtool is disabling shared libraries support.  If you
12194 *** really care for shared libraries, you may want to modify your PATH
12195 *** so that a non-GNU linker is found, and then restart.
12196
12197 EOF
12198       fi
12199       ;;
12200
12201     amigaos*)
12202       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)'
12203       hardcode_libdir_flag_spec='-L$libdir'
12204       hardcode_minus_L=yes
12205
12206       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12207       # that the semantics of dynamic libraries on AmigaOS, at least up
12208       # to version 4, is to share data among multiple programs linked
12209       # with the same dynamic library.  Since this doesn't match the
12210       # behavior of shared libraries on other platforms, we can't use
12211       # them.
12212       ld_shlibs=no
12213       ;;
12214
12215     beos*)
12216       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12217         allow_undefined_flag=unsupported
12218         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12219         # support --undefined.  This deserves some investigation.  FIXME
12220         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12221       else
12222         ld_shlibs=no
12223       fi
12224       ;;
12225
12226     cygwin* | mingw* | pw32*)
12227       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12228       # as there is no search path for DLLs.
12229       hardcode_libdir_flag_spec='-L$libdir'
12230       allow_undefined_flag=unsupported
12231       always_export_symbols=no
12232       enable_shared_with_static_runtimes=yes
12233       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12234
12235       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12236         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12237         # If the export-symbols file already is a .def file (1st line
12238         # is EXPORTS), use it as is; otherwise, prepend...
12239         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12240           cp $export_symbols $output_objdir/$soname.def;
12241         else
12242           echo EXPORTS > $output_objdir/$soname.def;
12243           cat $export_symbols >> $output_objdir/$soname.def;
12244         fi~
12245         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12246       else
12247         ld_shlibs=no
12248       fi
12249       ;;
12250
12251     netbsd*)
12252       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12253         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12254         wlarc=
12255       else
12256         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12257         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12258       fi
12259       ;;
12260
12261     solaris* | sysv5*)
12262       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12263         ld_shlibs=no
12264         cat <<EOF 1>&2
12265
12266 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12267 *** create shared libraries on Solaris systems.  Therefore, libtool
12268 *** is disabling shared libraries support.  We urge you to upgrade GNU
12269 *** binutils to release 2.9.1 or newer.  Another option is to modify
12270 *** your PATH or compiler configuration so that the native linker is
12271 *** used, and then restart.
12272
12273 EOF
12274       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12275         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12276         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12277       else
12278         ld_shlibs=no
12279       fi
12280       ;;
12281
12282     sunos4*)
12283       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12284       wlarc=
12285       hardcode_direct=yes
12286       hardcode_shlibpath_var=no
12287       ;;
12288
12289   linux*)
12290     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12291         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12292         archive_cmds="$tmp_archive_cmds"
12293       supports_anon_versioning=no
12294       case `$LD -v 2>/dev/null` in
12295         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12296         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12297         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12298         *\ 2.11.*) ;; # other 2.11 versions
12299         *) supports_anon_versioning=yes ;;
12300       esac
12301       if test $supports_anon_versioning = yes; then
12302         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12304 $echo "local: *; };" >> $output_objdir/$libname.ver~
12305         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12306       else
12307         archive_expsym_cmds="$tmp_archive_cmds"
12308       fi
12309     else
12310       ld_shlibs=no
12311     fi
12312     ;;
12313
12314     *)
12315       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12316         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12317         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12318       else
12319         ld_shlibs=no
12320       fi
12321       ;;
12322     esac
12323
12324     if test "$ld_shlibs" = yes; then
12325       runpath_var=LD_RUN_PATH
12326       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12327       export_dynamic_flag_spec='${wl}--export-dynamic'
12328       # ancient GNU ld didn't support --whole-archive et. al.
12329       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12330         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12331       else
12332         whole_archive_flag_spec=
12333       fi
12334     fi
12335   else
12336     # PORTME fill in a description of your system's linker (not GNU ld)
12337     case $host_os in
12338     aix3*)
12339       allow_undefined_flag=unsupported
12340       always_export_symbols=yes
12341       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'
12342       # Note: this linker hardcodes the directories in LIBPATH if there
12343       # are no directories specified by -L.
12344       hardcode_minus_L=yes
12345       if test "$GCC" = yes && test -z "$link_static_flag"; then
12346         # Neither direct hardcoding nor static linking is supported with a
12347         # broken collect2.
12348         hardcode_direct=unsupported
12349       fi
12350       ;;
12351
12352     aix4* | aix5*)
12353       if test "$host_cpu" = ia64; then
12354         # On IA64, the linker does run time linking by default, so we don't
12355         # have to do anything special.
12356         aix_use_runtimelinking=no
12357         exp_sym_flag='-Bexport'
12358         no_entry_flag=""
12359       else
12360         # If we're using GNU nm, then we don't want the "-C" option.
12361         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12362         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12363           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'
12364         else
12365           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'
12366         fi
12367         aix_use_runtimelinking=no
12368
12369         # Test if we are trying to use run time linking or normal
12370         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12371         # need to do runtime linking.
12372         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12373           for ld_flag in $LDFLAGS; do
12374           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12375             aix_use_runtimelinking=yes
12376             break
12377           fi
12378           done
12379         esac
12380
12381         exp_sym_flag='-bexport'
12382         no_entry_flag='-bnoentry'
12383       fi
12384
12385       # When large executables or shared objects are built, AIX ld can
12386       # have problems creating the table of contents.  If linking a library
12387       # or program results in "error TOC overflow" add -mminimal-toc to
12388       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12389       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12390
12391       archive_cmds=''
12392       hardcode_direct=yes
12393       hardcode_libdir_separator=':'
12394       link_all_deplibs=yes
12395
12396       if test "$GCC" = yes; then
12397         case $host_os in aix4.012|aix4.012.*)
12398         # We only want to do this on AIX 4.2 and lower, the check
12399         # below for broken collect2 doesn't work under 4.3+
12400           collect2name=`${CC} -print-prog-name=collect2`
12401           if test -f "$collect2name" && \
12402            strings "$collect2name" | grep resolve_lib_name >/dev/null
12403           then
12404           # We have reworked collect2
12405           hardcode_direct=yes
12406           else
12407           # We have old collect2
12408           hardcode_direct=unsupported
12409           # It fails to find uninstalled libraries when the uninstalled
12410           # path is not listed in the libpath.  Setting hardcode_minus_L
12411           # to unsupported forces relinking
12412           hardcode_minus_L=yes
12413           hardcode_libdir_flag_spec='-L$libdir'
12414           hardcode_libdir_separator=
12415           fi
12416         esac
12417         shared_flag='-shared'
12418       else
12419         # not using gcc
12420         if test "$host_cpu" = ia64; then
12421         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12422         # chokes on -Wl,-G. The following line is correct:
12423           shared_flag='-G'
12424         else
12425         if test "$aix_use_runtimelinking" = yes; then
12426             shared_flag='${wl}-G'
12427           else
12428             shared_flag='${wl}-bM:SRE'
12429         fi
12430         fi
12431       fi
12432
12433       # It seems that -bexpall does not export symbols beginning with
12434       # underscore (_), so it is better to generate a list of symbols to export.
12435       always_export_symbols=yes
12436       if test "$aix_use_runtimelinking" = yes; then
12437         # Warning - without using the other runtime loading flags (-brtl),
12438         # -berok will link without error, but may produce a broken library.
12439         allow_undefined_flag='-berok'
12440        # Determine the default libpath from the value encoded in an empty executable.
12441        cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h.  */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h.  */
12447
12448 int
12449 main ()
12450 {
12451
12452   ;
12453   return 0;
12454 }
12455 _ACEOF
12456 rm -f conftest.$ac_objext conftest$ac_exeext
12457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12458   (eval $ac_link) 2>conftest.er1
12459   ac_status=$?
12460   grep -v '^ *+' conftest.er1 >conftest.err
12461   rm -f conftest.er1
12462   cat conftest.err >&5
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); } &&
12465          { ac_try='test -z "$ac_c_werror_flag"
12466                          || test ! -s conftest.err'
12467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468   (eval $ac_try) 2>&5
12469   ac_status=$?
12470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); }; } &&
12472          { ac_try='test -s conftest$ac_exeext'
12473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474   (eval $ac_try) 2>&5
12475   ac_status=$?
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); }; }; then
12478
12479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12480 }'`
12481 # Check for a 64-bit object if we didn't find anything.
12482 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; }
12483 }'`; fi
12484 else
12485   echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488 fi
12489 rm -f conftest.err conftest.$ac_objext \
12490       conftest$ac_exeext conftest.$ac_ext
12491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12492
12493        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12494         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"
12495        else
12496         if test "$host_cpu" = ia64; then
12497           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12498           allow_undefined_flag="-z nodefs"
12499           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"
12500         else
12501          # Determine the default libpath from the value encoded in an empty executable.
12502          cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h.  */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h.  */
12508
12509 int
12510 main ()
12511 {
12512
12513   ;
12514   return 0;
12515 }
12516 _ACEOF
12517 rm -f conftest.$ac_objext conftest$ac_exeext
12518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12519   (eval $ac_link) 2>conftest.er1
12520   ac_status=$?
12521   grep -v '^ *+' conftest.er1 >conftest.err
12522   rm -f conftest.er1
12523   cat conftest.err >&5
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); } &&
12526          { ac_try='test -z "$ac_c_werror_flag"
12527                          || test ! -s conftest.err'
12528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12529   (eval $ac_try) 2>&5
12530   ac_status=$?
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); }; } &&
12533          { ac_try='test -s conftest$ac_exeext'
12534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535   (eval $ac_try) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; }; then
12539
12540 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12541 }'`
12542 # Check for a 64-bit object if we didn't find anything.
12543 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; }
12544 }'`; fi
12545 else
12546   echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12548
12549 fi
12550 rm -f conftest.err conftest.$ac_objext \
12551       conftest$ac_exeext conftest.$ac_ext
12552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12553
12554          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12555           # Warning - without using the other run time loading flags,
12556           # -berok will link without error, but may produce a broken library.
12557           no_undefined_flag=' ${wl}-bernotok'
12558           allow_undefined_flag=' ${wl}-berok'
12559           # -bexpall does not export symbols beginning with underscore (_)
12560           always_export_symbols=yes
12561           # Exported symbols can be pulled into shared objects from archives
12562           whole_archive_flag_spec=' '
12563           archive_cmds_need_lc=yes
12564           # This is similar to how AIX traditionally builds it's shared libraries.
12565           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'
12566         fi
12567       fi
12568       ;;
12569
12570     amigaos*)
12571       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)'
12572       hardcode_libdir_flag_spec='-L$libdir'
12573       hardcode_minus_L=yes
12574       # see comment about different semantics on the GNU ld section
12575       ld_shlibs=no
12576       ;;
12577
12578     bsdi[45]*)
12579       export_dynamic_flag_spec=-rdynamic
12580       ;;
12581
12582     cygwin* | mingw* | pw32*)
12583       # When not using gcc, we currently assume that we are using
12584       # Microsoft Visual C++.
12585       # hardcode_libdir_flag_spec is actually meaningless, as there is
12586       # no search path for DLLs.
12587       hardcode_libdir_flag_spec=' '
12588       allow_undefined_flag=unsupported
12589       # Tell ltmain to make .lib files, not .a files.
12590       libext=lib
12591       # Tell ltmain to make .dll files, not .so files.
12592       shrext_cmds=".dll"
12593       # FIXME: Setting linknames here is a bad hack.
12594       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12595       # The linker will automatically build a .lib file if we build a DLL.
12596       old_archive_From_new_cmds='true'
12597       # FIXME: Should let the user specify the lib program.
12598       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12599       fix_srcfile_path='`cygpath -w "$srcfile"`'
12600       enable_shared_with_static_runtimes=yes
12601       ;;
12602
12603     darwin* | rhapsody*)
12604       case "$host_os" in
12605         rhapsody* | darwin1.[012])
12606          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12607          ;;
12608        *) # Darwin 1.3 on
12609          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12610            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12611          else
12612            case ${MACOSX_DEPLOYMENT_TARGET} in
12613              10.[012])
12614                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12615                ;;
12616              10.*)
12617                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12618                ;;
12619            esac
12620          fi
12621          ;;
12622       esac
12623       archive_cmds_need_lc=no
12624       hardcode_direct=no
12625       hardcode_automatic=yes
12626       hardcode_shlibpath_var=unsupported
12627       whole_archive_flag_spec=''
12628       link_all_deplibs=yes
12629     if test "$GCC" = yes ; then
12630         output_verbose_link_cmd='echo'
12631         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12632       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12633       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12634       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}'
12635       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}'
12636     else
12637       case "$cc_basename" in
12638         xlc*)
12639          output_verbose_link_cmd='echo'
12640          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12641          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12642           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12643          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}'
12644           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}'
12645           ;;
12646        *)
12647          ld_shlibs=no
12648           ;;
12649       esac
12650     fi
12651       ;;
12652
12653     dgux*)
12654       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12655       hardcode_libdir_flag_spec='-L$libdir'
12656       hardcode_shlibpath_var=no
12657       ;;
12658
12659     freebsd1*)
12660       ld_shlibs=no
12661       ;;
12662
12663     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12664     # support.  Future versions do this automatically, but an explicit c++rt0.o
12665     # does not break anything, and helps significantly (at the cost of a little
12666     # extra space).
12667     freebsd2.2*)
12668       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12669       hardcode_libdir_flag_spec='-R$libdir'
12670       hardcode_direct=yes
12671       hardcode_shlibpath_var=no
12672       ;;
12673
12674     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12675     freebsd2*)
12676       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12677       hardcode_direct=yes
12678       hardcode_minus_L=yes
12679       hardcode_shlibpath_var=no
12680       ;;
12681
12682     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12683     freebsd* | kfreebsd*-gnu)
12684       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12685       hardcode_libdir_flag_spec='-R$libdir'
12686       hardcode_direct=yes
12687       hardcode_shlibpath_var=no
12688       ;;
12689
12690     hpux9*)
12691       if test "$GCC" = yes; then
12692         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'
12693       else
12694         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'
12695       fi
12696       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12697       hardcode_libdir_separator=:
12698       hardcode_direct=yes
12699
12700       # hardcode_minus_L: Not really in the search PATH,
12701       # but as the default location of the library.
12702       hardcode_minus_L=yes
12703       export_dynamic_flag_spec='${wl}-E'
12704       ;;
12705
12706     hpux10* | hpux11*)
12707       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12708         case "$host_cpu" in
12709         hppa*64*|ia64*)
12710           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12711           ;;
12712         *)
12713           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12714           ;;
12715         esac
12716       else
12717         case "$host_cpu" in
12718         hppa*64*|ia64*)
12719           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12720           ;;
12721         *)
12722           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12723           ;;
12724         esac
12725       fi
12726       if test "$with_gnu_ld" = no; then
12727         case "$host_cpu" in
12728         hppa*64*)
12729           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12730           hardcode_libdir_flag_spec_ld='+b $libdir'
12731           hardcode_libdir_separator=:
12732           hardcode_direct=no
12733           hardcode_shlibpath_var=no
12734           ;;
12735         ia64*)
12736           hardcode_libdir_flag_spec='-L$libdir'
12737           hardcode_direct=no
12738           hardcode_shlibpath_var=no
12739
12740           # hardcode_minus_L: Not really in the search PATH,
12741           # but as the default location of the library.
12742           hardcode_minus_L=yes
12743           ;;
12744         *)
12745           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12746           hardcode_libdir_separator=:
12747           hardcode_direct=yes
12748           export_dynamic_flag_spec='${wl}-E'
12749
12750           # hardcode_minus_L: Not really in the search PATH,
12751           # but as the default location of the library.
12752           hardcode_minus_L=yes
12753           ;;
12754         esac
12755       fi
12756       ;;
12757
12758     irix5* | irix6* | nonstopux*)
12759       if test "$GCC" = yes; then
12760         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'
12761       else
12762         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'
12763         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12764       fi
12765       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12766       hardcode_libdir_separator=:
12767       link_all_deplibs=yes
12768       ;;
12769
12770     netbsd*)
12771       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12772         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12773       else
12774         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12775       fi
12776       hardcode_libdir_flag_spec='-R$libdir'
12777       hardcode_direct=yes
12778       hardcode_shlibpath_var=no
12779       ;;
12780
12781     newsos6)
12782       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12783       hardcode_direct=yes
12784       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12785       hardcode_libdir_separator=:
12786       hardcode_shlibpath_var=no
12787       ;;
12788
12789     openbsd*)
12790       hardcode_direct=yes
12791       hardcode_shlibpath_var=no
12792       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12793         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12794         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12795         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12796         export_dynamic_flag_spec='${wl}-E'
12797       else
12798        case $host_os in
12799          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12800            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12801            hardcode_libdir_flag_spec='-R$libdir'
12802            ;;
12803          *)
12804            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12805            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12806            ;;
12807        esac
12808       fi
12809       ;;
12810
12811     os2*)
12812       hardcode_libdir_flag_spec='-L$libdir'
12813       hardcode_minus_L=yes
12814       allow_undefined_flag=unsupported
12815       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'
12816       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12817       ;;
12818
12819     osf3*)
12820       if test "$GCC" = yes; then
12821         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12822         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'
12823       else
12824         allow_undefined_flag=' -expect_unresolved \*'
12825         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'
12826       fi
12827       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12828       hardcode_libdir_separator=:
12829       ;;
12830
12831     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12832       if test "$GCC" = yes; then
12833         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12834         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'
12835         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12836       else
12837         allow_undefined_flag=' -expect_unresolved \*'
12838         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'
12839         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12840         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
12841
12842         # Both c and cxx compiler support -rpath directly
12843         hardcode_libdir_flag_spec='-rpath $libdir'
12844       fi
12845       hardcode_libdir_separator=:
12846       ;;
12847
12848     sco3.2v5*)
12849       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12850       hardcode_shlibpath_var=no
12851       export_dynamic_flag_spec='${wl}-Bexport'
12852       runpath_var=LD_RUN_PATH
12853       hardcode_runpath_var=yes
12854       ;;
12855
12856     solaris*)
12857       no_undefined_flag=' -z text'
12858       if test "$GCC" = yes; then
12859         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12860         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12861           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12862       else
12863         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12864         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12865         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12866       fi
12867       hardcode_libdir_flag_spec='-R$libdir'
12868       hardcode_shlibpath_var=no
12869       case $host_os in
12870       solaris2.[0-5] | solaris2.[0-5].*) ;;
12871       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12872         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12873       esac
12874       link_all_deplibs=yes
12875       ;;
12876
12877     sunos4*)
12878       if test "x$host_vendor" = xsequent; then
12879         # Use $CC to link under sequent, because it throws in some extra .o
12880         # files that make .init and .fini sections work.
12881         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12882       else
12883         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12884       fi
12885       hardcode_libdir_flag_spec='-L$libdir'
12886       hardcode_direct=yes
12887       hardcode_minus_L=yes
12888       hardcode_shlibpath_var=no
12889       ;;
12890
12891     sysv4)
12892       case $host_vendor in
12893         sni)
12894           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12895           hardcode_direct=yes # is this really true???
12896         ;;
12897         siemens)
12898           ## LD is ld it makes a PLAMLIB
12899           ## CC just makes a GrossModule.
12900           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12901           reload_cmds='$CC -r -o $output$reload_objs'
12902           hardcode_direct=no
12903         ;;
12904         motorola)
12905           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12906           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12907         ;;
12908       esac
12909       runpath_var='LD_RUN_PATH'
12910       hardcode_shlibpath_var=no
12911       ;;
12912
12913     sysv4.3*)
12914       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12915       hardcode_shlibpath_var=no
12916       export_dynamic_flag_spec='-Bexport'
12917       ;;
12918
12919     sysv4*MP*)
12920       if test -d /usr/nec; then
12921         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12922         hardcode_shlibpath_var=no
12923         runpath_var=LD_RUN_PATH
12924         hardcode_runpath_var=yes
12925         ld_shlibs=yes
12926       fi
12927       ;;
12928
12929     sysv4.2uw2*)
12930       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12931       hardcode_direct=yes
12932       hardcode_minus_L=no
12933       hardcode_shlibpath_var=no
12934       hardcode_runpath_var=yes
12935       runpath_var=LD_RUN_PATH
12936       ;;
12937
12938    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
12939       no_undefined_flag='${wl}-z ${wl}text'
12940       if test "$GCC" = yes; then
12941         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12942       else
12943         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12944       fi
12945       runpath_var='LD_RUN_PATH'
12946       hardcode_shlibpath_var=no
12947       ;;
12948
12949     sysv5*)
12950       no_undefined_flag=' -z text'
12951       # $CC -shared without GNU ld will not create a library from C++
12952       # object files and a static libstdc++, better avoid it by now
12953       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12954       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12955                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12956       hardcode_libdir_flag_spec=
12957       hardcode_shlibpath_var=no
12958       runpath_var='LD_RUN_PATH'
12959       ;;
12960
12961     uts4*)
12962       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963       hardcode_libdir_flag_spec='-L$libdir'
12964       hardcode_shlibpath_var=no
12965       ;;
12966
12967     *)
12968       ld_shlibs=no
12969       ;;
12970     esac
12971   fi
12972
12973 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12974 echo "${ECHO_T}$ld_shlibs" >&6
12975 test "$ld_shlibs" = no && can_build_shared=no
12976
12977 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12978 if test "$GCC" = yes; then
12979   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12980 fi
12981
12982 #
12983 # Do we need to explicitly link libc?
12984 #
12985 case "x$archive_cmds_need_lc" in
12986 x|xyes)
12987   # Assume -lc should be added
12988   archive_cmds_need_lc=yes
12989
12990   if test "$enable_shared" = yes && test "$GCC" = yes; then
12991     case $archive_cmds in
12992     *'~'*)
12993       # FIXME: we may have to deal with multi-command sequences.
12994       ;;
12995     '$CC '*)
12996       # Test whether the compiler implicitly links with -lc since on some
12997       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12998       # to ld, don't add -lc before -lgcc.
12999       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13000 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13001       $rm conftest*
13002       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13003
13004       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005   (eval $ac_compile) 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); } 2>conftest.err; then
13009         soname=conftest
13010         lib=conftest
13011         libobjs=conftest.$ac_objext
13012         deplibs=
13013         wl=$lt_prog_compiler_wl
13014         compiler_flags=-v
13015         linker_flags=-v
13016         verstring=
13017         output_objdir=.
13018         libname=conftest
13019         lt_save_allow_undefined_flag=$allow_undefined_flag
13020         allow_undefined_flag=
13021         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13022   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13023   ac_status=$?
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); }
13026         then
13027           archive_cmds_need_lc=no
13028         else
13029           archive_cmds_need_lc=yes
13030         fi
13031         allow_undefined_flag=$lt_save_allow_undefined_flag
13032       else
13033         cat conftest.err 1>&5
13034       fi
13035       $rm conftest*
13036       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13037 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13038       ;;
13039     esac
13040   fi
13041   ;;
13042 esac
13043
13044 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13045 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13046 library_names_spec=
13047 libname_spec='lib$name'
13048 soname_spec=
13049 shrext_cmds=".so"
13050 postinstall_cmds=
13051 postuninstall_cmds=
13052 finish_cmds=
13053 finish_eval=
13054 shlibpath_var=
13055 shlibpath_overrides_runpath=unknown
13056 version_type=none
13057 dynamic_linker="$host_os ld.so"
13058 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13059 if test "$GCC" = yes; then
13060   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13061   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13062     # if the path contains ";" then we assume it to be the separator
13063     # otherwise default to the standard path separator (i.e. ":") - it is
13064     # assumed that no part of a normal pathname contains ";" but that should
13065     # okay in the real world where ";" in dirpaths is itself problematic.
13066     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13067   else
13068     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13069   fi
13070 else
13071   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13072 fi
13073 need_lib_prefix=unknown
13074 hardcode_into_libs=no
13075
13076 # when you set need_version to no, make sure it does not cause -set_version
13077 # flags to be left without arguments
13078 need_version=unknown
13079
13080 case $host_os in
13081 aix3*)
13082   version_type=linux
13083   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13084   shlibpath_var=LIBPATH
13085
13086   # AIX 3 has no versioning support, so we append a major version to the name.
13087   soname_spec='${libname}${release}${shared_ext}$major'
13088   ;;
13089
13090 aix4* | aix5*)
13091   version_type=linux
13092   need_lib_prefix=no
13093   need_version=no
13094   hardcode_into_libs=yes
13095   if test "$host_cpu" = ia64; then
13096     # AIX 5 supports IA64
13097     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13098     shlibpath_var=LD_LIBRARY_PATH
13099   else
13100     # With GCC up to 2.95.x, collect2 would create an import file
13101     # for dependence libraries.  The import file would start with
13102     # the line `#! .'.  This would cause the generated library to
13103     # depend on `.', always an invalid library.  This was fixed in
13104     # development snapshots of GCC prior to 3.0.
13105     case $host_os in
13106       aix4 | aix4.[01] | aix4.[01].*)
13107       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13108            echo ' yes '
13109            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13110         :
13111       else
13112         can_build_shared=no
13113       fi
13114       ;;
13115     esac
13116     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13117     # soname into executable. Probably we can add versioning support to
13118     # collect2, so additional links can be useful in future.
13119     if test "$aix_use_runtimelinking" = yes; then
13120       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13121       # instead of lib<name>.a to let people know that these are not
13122       # typical AIX shared libraries.
13123       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13124     else
13125       # We preserve .a as extension for shared libraries through AIX4.2
13126       # and later when we are not doing run time linking.
13127       library_names_spec='${libname}${release}.a $libname.a'
13128       soname_spec='${libname}${release}${shared_ext}$major'
13129     fi
13130     shlibpath_var=LIBPATH
13131   fi
13132   ;;
13133
13134 amigaos*)
13135   library_names_spec='$libname.ixlibrary $libname.a'
13136   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13137   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'
13138   ;;
13139
13140 beos*)
13141   library_names_spec='${libname}${shared_ext}'
13142   dynamic_linker="$host_os ld.so"
13143   shlibpath_var=LIBRARY_PATH
13144   ;;
13145
13146 bsdi[45]*)
13147   version_type=linux
13148   need_version=no
13149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13150   soname_spec='${libname}${release}${shared_ext}$major'
13151   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13152   shlibpath_var=LD_LIBRARY_PATH
13153   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13154   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13155   # the default ld.so.conf also contains /usr/contrib/lib and
13156   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13157   # libtool to hard-code these into programs
13158   ;;
13159
13160 cygwin* | mingw* | pw32*)
13161   version_type=windows
13162   shrext_cmds=".dll"
13163   need_version=no
13164   need_lib_prefix=no
13165
13166   case $GCC,$host_os in
13167   yes,cygwin* | yes,mingw* | yes,pw32*)
13168     library_names_spec='$libname.dll.a'
13169     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13170     postinstall_cmds='base_file=`basename \${file}`~
13171       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13172       dldir=$destdir/`dirname \$dlpath`~
13173       test -d \$dldir || mkdir -p \$dldir~
13174       $install_prog $dir/$dlname \$dldir/$dlname'
13175     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13176       dlpath=$dir/\$dldll~
13177        $rm \$dlpath'
13178     shlibpath_overrides_runpath=yes
13179
13180     case $host_os in
13181     cygwin*)
13182       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13183       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13184       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13185       ;;
13186     mingw*)
13187       # MinGW DLLs use traditional 'lib' prefix
13188       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13189       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13190       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13191         # It is most probably a Windows format PATH printed by
13192         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13193         # path with ; separators, and with drive letters. We can handle the
13194         # drive letters (cygwin fileutils understands them), so leave them,
13195         # especially as we might pass files found there to a mingw objdump,
13196         # which wouldn't understand a cygwinified path. Ahh.
13197         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13198       else
13199         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13200       fi
13201       ;;
13202     pw32*)
13203       # pw32 DLLs use 'pw' prefix rather than 'lib'
13204       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13205       ;;
13206     esac
13207     ;;
13208
13209   *)
13210     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13211     ;;
13212   esac
13213   dynamic_linker='Win32 ld.exe'
13214   # FIXME: first we should search . and the directory the executable is in
13215   shlibpath_var=PATH
13216   ;;
13217
13218 darwin* | rhapsody*)
13219   dynamic_linker="$host_os dyld"
13220   version_type=darwin
13221   need_lib_prefix=no
13222   need_version=no
13223   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13224   soname_spec='${libname}${release}${major}$shared_ext'
13225   shlibpath_overrides_runpath=yes
13226   shlibpath_var=DYLD_LIBRARY_PATH
13227   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13228   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13229   if test "$GCC" = yes; then
13230     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"`
13231   else
13232     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13233   fi
13234   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13235   ;;
13236
13237 dgux*)
13238   version_type=linux
13239   need_lib_prefix=no
13240   need_version=no
13241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13242   soname_spec='${libname}${release}${shared_ext}$major'
13243   shlibpath_var=LD_LIBRARY_PATH
13244   ;;
13245
13246 freebsd1*)
13247   dynamic_linker=no
13248   ;;
13249
13250 kfreebsd*-gnu)
13251   version_type=linux
13252   need_lib_prefix=no
13253   need_version=no
13254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13255   soname_spec='${libname}${release}${shared_ext}$major'
13256   shlibpath_var=LD_LIBRARY_PATH
13257   shlibpath_overrides_runpath=no
13258   hardcode_into_libs=yes
13259   dynamic_linker='GNU ld.so'
13260   ;;
13261
13262 freebsd*)
13263   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13264   version_type=freebsd-$objformat
13265   case $version_type in
13266     freebsd-elf*)
13267       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13268       need_version=no
13269       need_lib_prefix=no
13270       ;;
13271     freebsd-*)
13272       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13273       need_version=yes
13274       ;;
13275   esac
13276   shlibpath_var=LD_LIBRARY_PATH
13277   case $host_os in
13278   freebsd2*)
13279     shlibpath_overrides_runpath=yes
13280     ;;
13281   freebsd3.01* | freebsdelf3.01*)
13282     shlibpath_overrides_runpath=yes
13283     hardcode_into_libs=yes
13284     ;;
13285   *) # from 3.2 on
13286     shlibpath_overrides_runpath=no
13287     hardcode_into_libs=yes
13288     ;;
13289   esac
13290   ;;
13291
13292 gnu*)
13293   version_type=linux
13294   need_lib_prefix=no
13295   need_version=no
13296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13297   soname_spec='${libname}${release}${shared_ext}$major'
13298   shlibpath_var=LD_LIBRARY_PATH
13299   hardcode_into_libs=yes
13300   ;;
13301
13302 hpux9* | hpux10* | hpux11*)
13303   # Give a soname corresponding to the major version so that dld.sl refuses to
13304   # link against other versions.
13305   version_type=sunos
13306   need_lib_prefix=no
13307   need_version=no
13308   case "$host_cpu" in
13309   ia64*)
13310     shrext_cmds='.so'
13311     hardcode_into_libs=yes
13312     dynamic_linker="$host_os dld.so"
13313     shlibpath_var=LD_LIBRARY_PATH
13314     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13315     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13316     soname_spec='${libname}${release}${shared_ext}$major'
13317     if test "X$HPUX_IA64_MODE" = X32; then
13318       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13319     else
13320       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13321     fi
13322     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13323     ;;
13324    hppa*64*)
13325      shrext_cmds='.sl'
13326      hardcode_into_libs=yes
13327      dynamic_linker="$host_os dld.sl"
13328      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13329      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13330      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13331      soname_spec='${libname}${release}${shared_ext}$major'
13332      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13333      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13334      ;;
13335    *)
13336     shrext_cmds='.sl'
13337     dynamic_linker="$host_os dld.sl"
13338     shlibpath_var=SHLIB_PATH
13339     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341     soname_spec='${libname}${release}${shared_ext}$major'
13342     ;;
13343   esac
13344   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13345   postinstall_cmds='chmod 555 $lib'
13346   ;;
13347
13348 irix5* | irix6* | nonstopux*)
13349   case $host_os in
13350     nonstopux*) version_type=nonstopux ;;
13351     *)
13352         if test "$lt_cv_prog_gnu_ld" = yes; then
13353                 version_type=linux
13354         else
13355                 version_type=irix
13356         fi ;;
13357   esac
13358   need_lib_prefix=no
13359   need_version=no
13360   soname_spec='${libname}${release}${shared_ext}$major'
13361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13362   case $host_os in
13363   irix5* | nonstopux*)
13364     libsuff= shlibsuff=
13365     ;;
13366   *)
13367     case $LD in # libtool.m4 will add one of these switches to LD
13368     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13369       libsuff= shlibsuff= libmagic=32-bit;;
13370     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13371       libsuff=32 shlibsuff=N32 libmagic=N32;;
13372     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13373       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13374     *) libsuff= shlibsuff= libmagic=never-match;;
13375     esac
13376     ;;
13377   esac
13378   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13379   shlibpath_overrides_runpath=no
13380   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13381   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13382   hardcode_into_libs=yes
13383   ;;
13384
13385 # No shared lib support for Linux oldld, aout, or coff.
13386 linux*oldld* | linux*aout* | linux*coff*)
13387   dynamic_linker=no
13388   ;;
13389
13390 # This must be Linux ELF.
13391 linux*)
13392   version_type=linux
13393   need_lib_prefix=no
13394   need_version=no
13395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13396   soname_spec='${libname}${release}${shared_ext}$major'
13397   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13398   shlibpath_var=LD_LIBRARY_PATH
13399   shlibpath_overrides_runpath=no
13400   # This implies no fast_install, which is unacceptable.
13401   # Some rework will be needed to allow for fast_install
13402   # before this can be enabled.
13403   hardcode_into_libs=yes
13404
13405   # Append ld.so.conf contents to the search path
13406   if test -f /etc/ld.so.conf; then
13407     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13408     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13409   fi
13410
13411   # We used to test for /lib/ld.so.1 and disable shared libraries on
13412   # powerpc, because MkLinux only supported shared libraries with the
13413   # GNU dynamic linker.  Since this was broken with cross compilers,
13414   # most powerpc-linux boxes support dynamic linking these days and
13415   # people can always --disable-shared, the test was removed, and we
13416   # assume the GNU/Linux dynamic linker is in use.
13417   dynamic_linker='GNU/Linux ld.so'
13418   ;;
13419
13420 knetbsd*-gnu)
13421   version_type=linux
13422   need_lib_prefix=no
13423   need_version=no
13424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13425   soname_spec='${libname}${release}${shared_ext}$major'
13426   shlibpath_var=LD_LIBRARY_PATH
13427   shlibpath_overrides_runpath=no
13428   hardcode_into_libs=yes
13429   dynamic_linker='GNU ld.so'
13430   ;;
13431
13432 netbsd*)
13433   version_type=sunos
13434   need_lib_prefix=no
13435   need_version=no
13436   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13438     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13439     dynamic_linker='NetBSD (a.out) ld.so'
13440   else
13441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13442     soname_spec='${libname}${release}${shared_ext}$major'
13443     dynamic_linker='NetBSD ld.elf_so'
13444   fi
13445   shlibpath_var=LD_LIBRARY_PATH
13446   shlibpath_overrides_runpath=yes
13447   hardcode_into_libs=yes
13448   ;;
13449
13450 newsos6)
13451   version_type=linux
13452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453   shlibpath_var=LD_LIBRARY_PATH
13454   shlibpath_overrides_runpath=yes
13455   ;;
13456
13457 nto-qnx*)
13458   version_type=linux
13459   need_lib_prefix=no
13460   need_version=no
13461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462   soname_spec='${libname}${release}${shared_ext}$major'
13463   shlibpath_var=LD_LIBRARY_PATH
13464   shlibpath_overrides_runpath=yes
13465   ;;
13466
13467 openbsd*)
13468   version_type=sunos
13469   need_lib_prefix=no
13470   need_version=no
13471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13472   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13473   shlibpath_var=LD_LIBRARY_PATH
13474   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13475     case $host_os in
13476       openbsd2.[89] | openbsd2.[89].*)
13477         shlibpath_overrides_runpath=no
13478         ;;
13479       *)
13480         shlibpath_overrides_runpath=yes
13481         ;;
13482       esac
13483   else
13484     shlibpath_overrides_runpath=yes
13485   fi
13486   ;;
13487
13488 os2*)
13489   libname_spec='$name'
13490   shrext_cmds=".dll"
13491   need_lib_prefix=no
13492   library_names_spec='$libname${shared_ext} $libname.a'
13493   dynamic_linker='OS/2 ld.exe'
13494   shlibpath_var=LIBPATH
13495   ;;
13496
13497 osf3* | osf4* | osf5*)
13498   version_type=osf
13499   need_lib_prefix=no
13500   need_version=no
13501   soname_spec='${libname}${release}${shared_ext}$major'
13502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13503   shlibpath_var=LD_LIBRARY_PATH
13504   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13505   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13506   ;;
13507
13508 sco3.2v5*)
13509   version_type=osf
13510   soname_spec='${libname}${release}${shared_ext}$major'
13511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13512   shlibpath_var=LD_LIBRARY_PATH
13513   ;;
13514
13515 solaris*)
13516   version_type=linux
13517   need_lib_prefix=no
13518   need_version=no
13519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520   soname_spec='${libname}${release}${shared_ext}$major'
13521   shlibpath_var=LD_LIBRARY_PATH
13522   shlibpath_overrides_runpath=yes
13523   hardcode_into_libs=yes
13524   # ldd complains unless libraries are executable
13525   postinstall_cmds='chmod +x $lib'
13526   ;;
13527
13528 sunos4*)
13529   version_type=sunos
13530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13531   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13532   shlibpath_var=LD_LIBRARY_PATH
13533   shlibpath_overrides_runpath=yes
13534   if test "$with_gnu_ld" = yes; then
13535     need_lib_prefix=no
13536   fi
13537   need_version=yes
13538   ;;
13539
13540 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13541   version_type=linux
13542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13543   soname_spec='${libname}${release}${shared_ext}$major'
13544   shlibpath_var=LD_LIBRARY_PATH
13545   case $host_vendor in
13546     sni)
13547       shlibpath_overrides_runpath=no
13548       need_lib_prefix=no
13549       export_dynamic_flag_spec='${wl}-Blargedynsym'
13550       runpath_var=LD_RUN_PATH
13551       ;;
13552     siemens)
13553       need_lib_prefix=no
13554       ;;
13555     motorola)
13556       need_lib_prefix=no
13557       need_version=no
13558       shlibpath_overrides_runpath=no
13559       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13560       ;;
13561   esac
13562   ;;
13563
13564 sysv4*MP*)
13565   if test -d /usr/nec ;then
13566     version_type=linux
13567     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13568     soname_spec='$libname${shared_ext}.$major'
13569     shlibpath_var=LD_LIBRARY_PATH
13570   fi
13571   ;;
13572
13573 uts4*)
13574   version_type=linux
13575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13576   soname_spec='${libname}${release}${shared_ext}$major'
13577   shlibpath_var=LD_LIBRARY_PATH
13578   ;;
13579
13580 *)
13581   dynamic_linker=no
13582   ;;
13583 esac
13584 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13585 echo "${ECHO_T}$dynamic_linker" >&6
13586 test "$dynamic_linker" = no && can_build_shared=no
13587
13588 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13589 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13590 hardcode_action=
13591 if test -n "$hardcode_libdir_flag_spec" || \
13592    test -n "$runpath_var" || \
13593    test "X$hardcode_automatic" = "Xyes" ; then
13594
13595   # We can hardcode non-existant directories.
13596   if test "$hardcode_direct" != no &&
13597      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13598      # have to relink, otherwise we might link with an installed library
13599      # when we should be linking with a yet-to-be-installed one
13600      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13601      test "$hardcode_minus_L" != no; then
13602     # Linking always hardcodes the temporary library directory.
13603     hardcode_action=relink
13604   else
13605     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13606     hardcode_action=immediate
13607   fi
13608 else
13609   # We cannot hardcode anything, or else we can only hardcode existing
13610   # directories.
13611   hardcode_action=unsupported
13612 fi
13613 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13614 echo "${ECHO_T}$hardcode_action" >&6
13615
13616 if test "$hardcode_action" = relink; then
13617   # Fast installation is not supported
13618   enable_fast_install=no
13619 elif test "$shlibpath_overrides_runpath" = yes ||
13620      test "$enable_shared" = no; then
13621   # Fast installation is not necessary
13622   enable_fast_install=needless
13623 fi
13624
13625 striplib=
13626 old_striplib=
13627 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13628 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13629 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13630   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13631   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13632   echo "$as_me:$LINENO: result: yes" >&5
13633 echo "${ECHO_T}yes" >&6
13634 else
13635 # FIXME - insert some real tests, host_os isn't really good enough
13636   case $host_os in
13637    darwin*)
13638        if test -n "$STRIP" ; then
13639          striplib="$STRIP -x"
13640          echo "$as_me:$LINENO: result: yes" >&5
13641 echo "${ECHO_T}yes" >&6
13642        else
13643   echo "$as_me:$LINENO: result: no" >&5
13644 echo "${ECHO_T}no" >&6
13645 fi
13646        ;;
13647    *)
13648   echo "$as_me:$LINENO: result: no" >&5
13649 echo "${ECHO_T}no" >&6
13650     ;;
13651   esac
13652 fi
13653
13654 if test "x$enable_dlopen" != xyes; then
13655   enable_dlopen=unknown
13656   enable_dlopen_self=unknown
13657   enable_dlopen_self_static=unknown
13658 else
13659   lt_cv_dlopen=no
13660   lt_cv_dlopen_libs=
13661
13662   case $host_os in
13663   beos*)
13664     lt_cv_dlopen="load_add_on"
13665     lt_cv_dlopen_libs=
13666     lt_cv_dlopen_self=yes
13667     ;;
13668
13669   mingw* | pw32*)
13670     lt_cv_dlopen="LoadLibrary"
13671     lt_cv_dlopen_libs=
13672    ;;
13673
13674   cygwin*)
13675     lt_cv_dlopen="dlopen"
13676     lt_cv_dlopen_libs=
13677    ;;
13678
13679   darwin*)
13680   # if libdl is installed we need to link against it
13681     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13682 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13683 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13684   echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686   ac_check_lib_save_LIBS=$LIBS
13687 LIBS="-ldl  $LIBS"
13688 cat >conftest.$ac_ext <<_ACEOF
13689 /* confdefs.h.  */
13690 _ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h.  */
13694
13695 /* Override any gcc2 internal prototype to avoid an error.  */
13696 #ifdef __cplusplus
13697 extern "C"
13698 #endif
13699 /* We use char because int might match the return type of a gcc2
13700    builtin and then its argument prototype would still apply.  */
13701 char dlopen ();
13702 int
13703 main ()
13704 {
13705 dlopen ();
13706   ;
13707   return 0;
13708 }
13709 _ACEOF
13710 rm -f conftest.$ac_objext conftest$ac_exeext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712   (eval $ac_link) 2>conftest.er1
13713   ac_status=$?
13714   grep -v '^ *+' conftest.er1 >conftest.err
13715   rm -f conftest.er1
13716   cat conftest.err >&5
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); } &&
13719          { ac_try='test -z "$ac_c_werror_flag"
13720                          || test ! -s conftest.err'
13721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722   (eval $ac_try) 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; } &&
13726          { ac_try='test -s conftest$ac_exeext'
13727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728   (eval $ac_try) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; }; then
13732   ac_cv_lib_dl_dlopen=yes
13733 else
13734   echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 ac_cv_lib_dl_dlopen=no
13738 fi
13739 rm -f conftest.err conftest.$ac_objext \
13740       conftest$ac_exeext conftest.$ac_ext
13741 LIBS=$ac_check_lib_save_LIBS
13742 fi
13743 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13744 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13745 if test $ac_cv_lib_dl_dlopen = yes; then
13746   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13747 else
13748
13749     lt_cv_dlopen="dyld"
13750     lt_cv_dlopen_libs=
13751     lt_cv_dlopen_self=yes
13752
13753 fi
13754
13755    ;;
13756
13757   *)
13758     echo "$as_me:$LINENO: checking for shl_load" >&5
13759 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13760 if test "${ac_cv_func_shl_load+set}" = set; then
13761   echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763   cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h.  */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h.  */
13769 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13771 #define shl_load innocuous_shl_load
13772
13773 /* System header to define __stub macros and hopefully few prototypes,
13774     which can conflict with char shl_load (); below.
13775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13776     <limits.h> exists even on freestanding compilers.  */
13777
13778 #ifdef __STDC__
13779 # include <limits.h>
13780 #else
13781 # include <assert.h>
13782 #endif
13783
13784 #undef shl_load
13785
13786 /* Override any gcc2 internal prototype to avoid an error.  */
13787 #ifdef __cplusplus
13788 extern "C"
13789 {
13790 #endif
13791 /* We use char because int might match the return type of a gcc2
13792    builtin and then its argument prototype would still apply.  */
13793 char shl_load ();
13794 /* The GNU C library defines this for functions which it implements
13795     to always fail with ENOSYS.  Some functions are actually named
13796     something starting with __ and the normal name is an alias.  */
13797 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13798 choke me
13799 #else
13800 char (*f) () = shl_load;
13801 #endif
13802 #ifdef __cplusplus
13803 }
13804 #endif
13805
13806 int
13807 main ()
13808 {
13809 return f != shl_load;
13810   ;
13811   return 0;
13812 }
13813 _ACEOF
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816   (eval $ac_link) 2>conftest.er1
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
13820   cat conftest.err >&5
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } &&
13823          { ac_try='test -z "$ac_c_werror_flag"
13824                          || test ! -s conftest.err'
13825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826   (eval $ac_try) 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; } &&
13830          { ac_try='test -s conftest$ac_exeext'
13831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832   (eval $ac_try) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836   ac_cv_func_shl_load=yes
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841 ac_cv_func_shl_load=no
13842 fi
13843 rm -f conftest.err conftest.$ac_objext \
13844       conftest$ac_exeext conftest.$ac_ext
13845 fi
13846 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13847 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13848 if test $ac_cv_func_shl_load = yes; then
13849   lt_cv_dlopen="shl_load"
13850 else
13851   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13852 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13853 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13854   echo $ECHO_N "(cached) $ECHO_C" >&6
13855 else
13856   ac_check_lib_save_LIBS=$LIBS
13857 LIBS="-ldld  $LIBS"
13858 cat >conftest.$ac_ext <<_ACEOF
13859 /* confdefs.h.  */
13860 _ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h.  */
13864
13865 /* Override any gcc2 internal prototype to avoid an error.  */
13866 #ifdef __cplusplus
13867 extern "C"
13868 #endif
13869 /* We use char because int might match the return type of a gcc2
13870    builtin and then its argument prototype would still apply.  */
13871 char shl_load ();
13872 int
13873 main ()
13874 {
13875 shl_load ();
13876   ;
13877   return 0;
13878 }
13879 _ACEOF
13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13882   (eval $ac_link) 2>conftest.er1
13883   ac_status=$?
13884   grep -v '^ *+' conftest.er1 >conftest.err
13885   rm -f conftest.er1
13886   cat conftest.err >&5
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); } &&
13889          { ac_try='test -z "$ac_c_werror_flag"
13890                          || test ! -s conftest.err'
13891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892   (eval $ac_try) 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); }; } &&
13896          { ac_try='test -s conftest$ac_exeext'
13897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898   (eval $ac_try) 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; }; then
13902   ac_cv_lib_dld_shl_load=yes
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 ac_cv_lib_dld_shl_load=no
13908 fi
13909 rm -f conftest.err conftest.$ac_objext \
13910       conftest$ac_exeext conftest.$ac_ext
13911 LIBS=$ac_check_lib_save_LIBS
13912 fi
13913 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13914 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13915 if test $ac_cv_lib_dld_shl_load = yes; then
13916   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13917 else
13918   echo "$as_me:$LINENO: checking for dlopen" >&5
13919 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13920 if test "${ac_cv_func_dlopen+set}" = set; then
13921   echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923   cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h.  */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h.  */
13929 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13931 #define dlopen innocuous_dlopen
13932
13933 /* System header to define __stub macros and hopefully few prototypes,
13934     which can conflict with char dlopen (); below.
13935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13936     <limits.h> exists even on freestanding compilers.  */
13937
13938 #ifdef __STDC__
13939 # include <limits.h>
13940 #else
13941 # include <assert.h>
13942 #endif
13943
13944 #undef dlopen
13945
13946 /* Override any gcc2 internal prototype to avoid an error.  */
13947 #ifdef __cplusplus
13948 extern "C"
13949 {
13950 #endif
13951 /* We use char because int might match the return type of a gcc2
13952    builtin and then its argument prototype would still apply.  */
13953 char dlopen ();
13954 /* The GNU C library defines this for functions which it implements
13955     to always fail with ENOSYS.  Some functions are actually named
13956     something starting with __ and the normal name is an alias.  */
13957 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13958 choke me
13959 #else
13960 char (*f) () = dlopen;
13961 #endif
13962 #ifdef __cplusplus
13963 }
13964 #endif
13965
13966 int
13967 main ()
13968 {
13969 return f != dlopen;
13970   ;
13971   return 0;
13972 }
13973 _ACEOF
13974 rm -f conftest.$ac_objext conftest$ac_exeext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13976   (eval $ac_link) 2>conftest.er1
13977   ac_status=$?
13978   grep -v '^ *+' conftest.er1 >conftest.err
13979   rm -f conftest.er1
13980   cat conftest.err >&5
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); } &&
13983          { ac_try='test -z "$ac_c_werror_flag"
13984                          || test ! -s conftest.err'
13985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986   (eval $ac_try) 2>&5
13987   ac_status=$?
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); }; } &&
13990          { ac_try='test -s conftest$ac_exeext'
13991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992   (eval $ac_try) 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); }; }; then
13996   ac_cv_func_dlopen=yes
13997 else
13998   echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14000
14001 ac_cv_func_dlopen=no
14002 fi
14003 rm -f conftest.err conftest.$ac_objext \
14004       conftest$ac_exeext conftest.$ac_ext
14005 fi
14006 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14007 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14008 if test $ac_cv_func_dlopen = yes; then
14009   lt_cv_dlopen="dlopen"
14010 else
14011   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14012 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14013 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14014   echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
14016   ac_check_lib_save_LIBS=$LIBS
14017 LIBS="-ldl  $LIBS"
14018 cat >conftest.$ac_ext <<_ACEOF
14019 /* confdefs.h.  */
14020 _ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h.  */
14024
14025 /* Override any gcc2 internal prototype to avoid an error.  */
14026 #ifdef __cplusplus
14027 extern "C"
14028 #endif
14029 /* We use char because int might match the return type of a gcc2
14030    builtin and then its argument prototype would still apply.  */
14031 char dlopen ();
14032 int
14033 main ()
14034 {
14035 dlopen ();
14036   ;
14037   return 0;
14038 }
14039 _ACEOF
14040 rm -f conftest.$ac_objext conftest$ac_exeext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14042   (eval $ac_link) 2>conftest.er1
14043   ac_status=$?
14044   grep -v '^ *+' conftest.er1 >conftest.err
14045   rm -f conftest.er1
14046   cat conftest.err >&5
14047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); } &&
14049          { ac_try='test -z "$ac_c_werror_flag"
14050                          || test ! -s conftest.err'
14051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052   (eval $ac_try) 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; } &&
14056          { ac_try='test -s conftest$ac_exeext'
14057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058   (eval $ac_try) 2>&5
14059   ac_status=$?
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); }; }; then
14062   ac_cv_lib_dl_dlopen=yes
14063 else
14064   echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14066
14067 ac_cv_lib_dl_dlopen=no
14068 fi
14069 rm -f conftest.err conftest.$ac_objext \
14070       conftest$ac_exeext conftest.$ac_ext
14071 LIBS=$ac_check_lib_save_LIBS
14072 fi
14073 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14074 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14075 if test $ac_cv_lib_dl_dlopen = yes; then
14076   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14077 else
14078   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14079 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14080 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14081   echo $ECHO_N "(cached) $ECHO_C" >&6
14082 else
14083   ac_check_lib_save_LIBS=$LIBS
14084 LIBS="-lsvld  $LIBS"
14085 cat >conftest.$ac_ext <<_ACEOF
14086 /* confdefs.h.  */
14087 _ACEOF
14088 cat confdefs.h >>conftest.$ac_ext
14089 cat >>conftest.$ac_ext <<_ACEOF
14090 /* end confdefs.h.  */
14091
14092 /* Override any gcc2 internal prototype to avoid an error.  */
14093 #ifdef __cplusplus
14094 extern "C"
14095 #endif
14096 /* We use char because int might match the return type of a gcc2
14097    builtin and then its argument prototype would still apply.  */
14098 char dlopen ();
14099 int
14100 main ()
14101 {
14102 dlopen ();
14103   ;
14104   return 0;
14105 }
14106 _ACEOF
14107 rm -f conftest.$ac_objext conftest$ac_exeext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14109   (eval $ac_link) 2>conftest.er1
14110   ac_status=$?
14111   grep -v '^ *+' conftest.er1 >conftest.err
14112   rm -f conftest.er1
14113   cat conftest.err >&5
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); } &&
14116          { ac_try='test -z "$ac_c_werror_flag"
14117                          || test ! -s conftest.err'
14118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119   (eval $ac_try) 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); }; } &&
14123          { ac_try='test -s conftest$ac_exeext'
14124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125   (eval $ac_try) 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; }; then
14129   ac_cv_lib_svld_dlopen=yes
14130 else
14131   echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14133
14134 ac_cv_lib_svld_dlopen=no
14135 fi
14136 rm -f conftest.err conftest.$ac_objext \
14137       conftest$ac_exeext conftest.$ac_ext
14138 LIBS=$ac_check_lib_save_LIBS
14139 fi
14140 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14141 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14142 if test $ac_cv_lib_svld_dlopen = yes; then
14143   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14144 else
14145   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14146 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14147 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14148   echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150   ac_check_lib_save_LIBS=$LIBS
14151 LIBS="-ldld  $LIBS"
14152 cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h.  */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h.  */
14158
14159 /* Override any gcc2 internal prototype to avoid an error.  */
14160 #ifdef __cplusplus
14161 extern "C"
14162 #endif
14163 /* We use char because int might match the return type of a gcc2
14164    builtin and then its argument prototype would still apply.  */
14165 char dld_link ();
14166 int
14167 main ()
14168 {
14169 dld_link ();
14170   ;
14171   return 0;
14172 }
14173 _ACEOF
14174 rm -f conftest.$ac_objext conftest$ac_exeext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14176   (eval $ac_link) 2>conftest.er1
14177   ac_status=$?
14178   grep -v '^ *+' conftest.er1 >conftest.err
14179   rm -f conftest.er1
14180   cat conftest.err >&5
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); } &&
14183          { ac_try='test -z "$ac_c_werror_flag"
14184                          || test ! -s conftest.err'
14185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186   (eval $ac_try) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; } &&
14190          { ac_try='test -s conftest$ac_exeext'
14191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192   (eval $ac_try) 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); }; }; then
14196   ac_cv_lib_dld_dld_link=yes
14197 else
14198   echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201 ac_cv_lib_dld_dld_link=no
14202 fi
14203 rm -f conftest.err conftest.$ac_objext \
14204       conftest$ac_exeext conftest.$ac_ext
14205 LIBS=$ac_check_lib_save_LIBS
14206 fi
14207 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14208 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14209 if test $ac_cv_lib_dld_dld_link = yes; then
14210   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14211 fi
14212
14213
14214 fi
14215
14216
14217 fi
14218
14219
14220 fi
14221
14222
14223 fi
14224
14225
14226 fi
14227
14228     ;;
14229   esac
14230
14231   if test "x$lt_cv_dlopen" != xno; then
14232     enable_dlopen=yes
14233   else
14234     enable_dlopen=no
14235   fi
14236
14237   case $lt_cv_dlopen in
14238   dlopen)
14239     save_CPPFLAGS="$CPPFLAGS"
14240     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14241
14242     save_LDFLAGS="$LDFLAGS"
14243     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14244
14245     save_LIBS="$LIBS"
14246     LIBS="$lt_cv_dlopen_libs $LIBS"
14247
14248     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14249 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14250 if test "${lt_cv_dlopen_self+set}" = set; then
14251   echo $ECHO_N "(cached) $ECHO_C" >&6
14252 else
14253           if test "$cross_compiling" = yes; then :
14254   lt_cv_dlopen_self=cross
14255 else
14256   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14257   lt_status=$lt_dlunknown
14258   cat > conftest.$ac_ext <<EOF
14259 #line 14259 "configure"
14260 #include "confdefs.h"
14261
14262 #if HAVE_DLFCN_H
14263 #include <dlfcn.h>
14264 #endif
14265
14266 #include <stdio.h>
14267
14268 #ifdef RTLD_GLOBAL
14269 #  define LT_DLGLOBAL           RTLD_GLOBAL
14270 #else
14271 #  ifdef DL_GLOBAL
14272 #    define LT_DLGLOBAL         DL_GLOBAL
14273 #  else
14274 #    define LT_DLGLOBAL         0
14275 #  endif
14276 #endif
14277
14278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14279    find out it does not work in some platform. */
14280 #ifndef LT_DLLAZY_OR_NOW
14281 #  ifdef RTLD_LAZY
14282 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14283 #  else
14284 #    ifdef DL_LAZY
14285 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14286 #    else
14287 #      ifdef RTLD_NOW
14288 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14289 #      else
14290 #        ifdef DL_NOW
14291 #          define LT_DLLAZY_OR_NOW      DL_NOW
14292 #        else
14293 #          define LT_DLLAZY_OR_NOW      0
14294 #        endif
14295 #      endif
14296 #    endif
14297 #  endif
14298 #endif
14299
14300 #ifdef __cplusplus
14301 extern "C" void exit (int);
14302 #endif
14303
14304 void fnord() { int i=42;}
14305 int main ()
14306 {
14307   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14308   int status = $lt_dlunknown;
14309
14310   if (self)
14311     {
14312       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14313       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14314       /* dlclose (self); */
14315     }
14316
14317     exit (status);
14318 }
14319 EOF
14320   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14321   (eval $ac_link) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14325     (./conftest; exit; ) 2>/dev/null
14326     lt_status=$?
14327     case x$lt_status in
14328       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14329       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14330       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14331     esac
14332   else :
14333     # compilation failed
14334     lt_cv_dlopen_self=no
14335   fi
14336 fi
14337 rm -fr conftest*
14338
14339
14340 fi
14341 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14342 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14343
14344     if test "x$lt_cv_dlopen_self" = xyes; then
14345       LDFLAGS="$LDFLAGS $link_static_flag"
14346       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14347 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14348 if test "${lt_cv_dlopen_self_static+set}" = set; then
14349   echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351           if test "$cross_compiling" = yes; then :
14352   lt_cv_dlopen_self_static=cross
14353 else
14354   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14355   lt_status=$lt_dlunknown
14356   cat > conftest.$ac_ext <<EOF
14357 #line 14357 "configure"
14358 #include "confdefs.h"
14359
14360 #if HAVE_DLFCN_H
14361 #include <dlfcn.h>
14362 #endif
14363
14364 #include <stdio.h>
14365
14366 #ifdef RTLD_GLOBAL
14367 #  define LT_DLGLOBAL           RTLD_GLOBAL
14368 #else
14369 #  ifdef DL_GLOBAL
14370 #    define LT_DLGLOBAL         DL_GLOBAL
14371 #  else
14372 #    define LT_DLGLOBAL         0
14373 #  endif
14374 #endif
14375
14376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14377    find out it does not work in some platform. */
14378 #ifndef LT_DLLAZY_OR_NOW
14379 #  ifdef RTLD_LAZY
14380 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14381 #  else
14382 #    ifdef DL_LAZY
14383 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14384 #    else
14385 #      ifdef RTLD_NOW
14386 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14387 #      else
14388 #        ifdef DL_NOW
14389 #          define LT_DLLAZY_OR_NOW      DL_NOW
14390 #        else
14391 #          define LT_DLLAZY_OR_NOW      0
14392 #        endif
14393 #      endif
14394 #    endif
14395 #  endif
14396 #endif
14397
14398 #ifdef __cplusplus
14399 extern "C" void exit (int);
14400 #endif
14401
14402 void fnord() { int i=42;}
14403 int main ()
14404 {
14405   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14406   int status = $lt_dlunknown;
14407
14408   if (self)
14409     {
14410       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14411       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14412       /* dlclose (self); */
14413     }
14414
14415     exit (status);
14416 }
14417 EOF
14418   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14419   (eval $ac_link) 2>&5
14420   ac_status=$?
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14423     (./conftest; exit; ) 2>/dev/null
14424     lt_status=$?
14425     case x$lt_status in
14426       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14427       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14428       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14429     esac
14430   else :
14431     # compilation failed
14432     lt_cv_dlopen_self_static=no
14433   fi
14434 fi
14435 rm -fr conftest*
14436
14437
14438 fi
14439 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14440 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14441     fi
14442
14443     CPPFLAGS="$save_CPPFLAGS"
14444     LDFLAGS="$save_LDFLAGS"
14445     LIBS="$save_LIBS"
14446     ;;
14447   esac
14448
14449   case $lt_cv_dlopen_self in
14450   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14451   *) enable_dlopen_self=unknown ;;
14452   esac
14453
14454   case $lt_cv_dlopen_self_static in
14455   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14456   *) enable_dlopen_self_static=unknown ;;
14457   esac
14458 fi
14459
14460
14461 # Report which librarie types wil actually be built
14462 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14463 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14464 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14465 echo "${ECHO_T}$can_build_shared" >&6
14466
14467 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14468 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14469 test "$can_build_shared" = "no" && enable_shared=no
14470
14471 # On AIX, shared libraries and static libraries use the same namespace, and
14472 # are all built from PIC.
14473 case "$host_os" in
14474 aix3*)
14475   test "$enable_shared" = yes && enable_static=no
14476   if test -n "$RANLIB"; then
14477     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14478     postinstall_cmds='$RANLIB $lib'
14479   fi
14480   ;;
14481
14482 aix4* | aix5*)
14483   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14484     test "$enable_shared" = yes && enable_static=no
14485   fi
14486     ;;
14487 esac
14488 echo "$as_me:$LINENO: result: $enable_shared" >&5
14489 echo "${ECHO_T}$enable_shared" >&6
14490
14491 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14492 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14493 # Make sure either enable_shared or enable_static is yes.
14494 test "$enable_shared" = yes || enable_static=yes
14495 echo "$as_me:$LINENO: result: $enable_static" >&5
14496 echo "${ECHO_T}$enable_static" >&6
14497
14498 # The else clause should only fire when bootstrapping the
14499 # libtool distribution, otherwise you forgot to ship ltmain.sh
14500 # with your package, and you will get complaints that there are
14501 # no rules to generate ltmain.sh.
14502 if test -f "$ltmain"; then
14503   # See if we are running on zsh, and set the options which allow our commands through
14504   # without removal of \ escapes.
14505   if test -n "${ZSH_VERSION+set}" ; then
14506     setopt NO_GLOB_SUBST
14507   fi
14508   # Now quote all the things that may contain metacharacters while being
14509   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14510   # variables and quote the copies for generation of the libtool script.
14511   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14512     SED SHELL STRIP \
14513     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14514     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14515     deplibs_check_method reload_flag reload_cmds need_locks \
14516     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14517     lt_cv_sys_global_symbol_to_c_name_address \
14518     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14519     old_postinstall_cmds old_postuninstall_cmds \
14520     compiler \
14521     CC \
14522     LD \
14523     lt_prog_compiler_wl \
14524     lt_prog_compiler_pic \
14525     lt_prog_compiler_static \
14526     lt_prog_compiler_no_builtin_flag \
14527     export_dynamic_flag_spec \
14528     thread_safe_flag_spec \
14529     whole_archive_flag_spec \
14530     enable_shared_with_static_runtimes \
14531     old_archive_cmds \
14532     old_archive_from_new_cmds \
14533     predep_objects \
14534     postdep_objects \
14535     predeps \
14536     postdeps \
14537     compiler_lib_search_path \
14538     archive_cmds \
14539     archive_expsym_cmds \
14540     postinstall_cmds \
14541     postuninstall_cmds \
14542     old_archive_from_expsyms_cmds \
14543     allow_undefined_flag \
14544     no_undefined_flag \
14545     export_symbols_cmds \
14546     hardcode_libdir_flag_spec \
14547     hardcode_libdir_flag_spec_ld \
14548     hardcode_libdir_separator \
14549     hardcode_automatic \
14550     module_cmds \
14551     module_expsym_cmds \
14552     lt_cv_prog_compiler_c_o \
14553     exclude_expsyms \
14554     include_expsyms; do
14555
14556     case $var in
14557     old_archive_cmds | \
14558     old_archive_from_new_cmds | \
14559     archive_cmds | \
14560     archive_expsym_cmds | \
14561     module_cmds | \
14562     module_expsym_cmds | \
14563     old_archive_from_expsyms_cmds | \
14564     export_symbols_cmds | \
14565     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14566     postinstall_cmds | postuninstall_cmds | \
14567     old_postinstall_cmds | old_postuninstall_cmds | \
14568     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14569       # Double-quote double-evaled strings.
14570       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14571       ;;
14572     *)
14573       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14574       ;;
14575     esac
14576   done
14577
14578   case $lt_echo in
14579   *'\$0 --fallback-echo"')
14580     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14581     ;;
14582   esac
14583
14584 cfgfile="${ofile}T"
14585   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14586   $rm -f "$cfgfile"
14587   { echo "$as_me:$LINENO: creating $ofile" >&5
14588 echo "$as_me: creating $ofile" >&6;}
14589
14590   cat <<__EOF__ >> "$cfgfile"
14591 #! $SHELL
14592
14593 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14594 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14595 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14596 #
14597 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14598 # Free Software Foundation, Inc.
14599 #
14600 # This file is part of GNU Libtool:
14601 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14602 #
14603 # This program is free software; you can redistribute it and/or modify
14604 # it under the terms of the GNU General Public License as published by
14605 # the Free Software Foundation; either version 2 of the License, or
14606 # (at your option) any later version.
14607 #
14608 # This program is distributed in the hope that it will be useful, but
14609 # WITHOUT ANY WARRANTY; without even the implied warranty of
14610 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14611 # General Public License for more details.
14612 #
14613 # You should have received a copy of the GNU General Public License
14614 # along with this program; if not, write to the Free Software
14615 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14616 #
14617 # As a special exception to the GNU General Public License, if you
14618 # distribute this file as part of a program that contains a
14619 # configuration script generated by Autoconf, you may include it under
14620 # the same distribution terms that you use for the rest of that program.
14621
14622 # A sed program that does not truncate output.
14623 SED=$lt_SED
14624
14625 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14626 Xsed="$SED -e s/^X//"
14627
14628 # The HP-UX ksh and POSIX shell print the target directory to stdout
14629 # if CDPATH is set.
14630 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14631
14632 # The names of the tagged configurations supported by this script.
14633 available_tags=
14634
14635 # ### BEGIN LIBTOOL CONFIG
14636
14637 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14638
14639 # Shell to use when invoking shell scripts.
14640 SHELL=$lt_SHELL
14641
14642 # Whether or not to build shared libraries.
14643 build_libtool_libs=$enable_shared
14644
14645 # Whether or not to build static libraries.
14646 build_old_libs=$enable_static
14647
14648 # Whether or not to add -lc for building shared libraries.
14649 build_libtool_need_lc=$archive_cmds_need_lc
14650
14651 # Whether or not to disallow shared libs when runtime libs are static
14652 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14653
14654 # Whether or not to optimize for fast installation.
14655 fast_install=$enable_fast_install
14656
14657 # The host system.
14658 host_alias=$host_alias
14659 host=$host
14660
14661 # An echo program that does not interpret backslashes.
14662 echo=$lt_echo
14663
14664 # The archiver.
14665 AR=$lt_AR
14666 AR_FLAGS=$lt_AR_FLAGS
14667
14668 # A C compiler.
14669 LTCC=$lt_LTCC
14670
14671 # A language-specific compiler.
14672 CC=$lt_compiler
14673
14674 # Is the compiler the GNU C compiler?
14675 with_gcc=$GCC
14676
14677 # An ERE matcher.
14678 EGREP=$lt_EGREP
14679
14680 # The linker used to build libraries.
14681 LD=$lt_LD
14682
14683 # Whether we need hard or soft links.
14684 LN_S=$lt_LN_S
14685
14686 # A BSD-compatible nm program.
14687 NM=$lt_NM
14688
14689 # A symbol stripping program
14690 STRIP=$lt_STRIP
14691
14692 # Used to examine libraries when file_magic_cmd begins "file"
14693 MAGIC_CMD=$MAGIC_CMD
14694
14695 # Used on cygwin: DLL creation program.
14696 DLLTOOL="$DLLTOOL"
14697
14698 # Used on cygwin: object dumper.
14699 OBJDUMP="$OBJDUMP"
14700
14701 # Used on cygwin: assembler.
14702 AS="$AS"
14703
14704 # The name of the directory that contains temporary libtool files.
14705 objdir=$objdir
14706
14707 # How to create reloadable object files.
14708 reload_flag=$lt_reload_flag
14709 reload_cmds=$lt_reload_cmds
14710
14711 # How to pass a linker flag through the compiler.
14712 wl=$lt_lt_prog_compiler_wl
14713
14714 # Object file suffix (normally "o").
14715 objext="$ac_objext"
14716
14717 # Old archive suffix (normally "a").
14718 libext="$libext"
14719
14720 # Shared library suffix (normally ".so").
14721 shrext_cmds='$shrext_cmds'
14722
14723 # Executable file suffix (normally "").
14724 exeext="$exeext"
14725
14726 # Additional compiler flags for building library objects.
14727 pic_flag=$lt_lt_prog_compiler_pic
14728 pic_mode=$pic_mode
14729
14730 # What is the maximum length of a command?
14731 max_cmd_len=$lt_cv_sys_max_cmd_len
14732
14733 # Does compiler simultaneously support -c and -o options?
14734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14735
14736 # Must we lock files when doing compilation ?
14737 need_locks=$lt_need_locks
14738
14739 # Do we need the lib prefix for modules?
14740 need_lib_prefix=$need_lib_prefix
14741
14742 # Do we need a version for libraries?
14743 need_version=$need_version
14744
14745 # Whether dlopen is supported.
14746 dlopen_support=$enable_dlopen
14747
14748 # Whether dlopen of programs is supported.
14749 dlopen_self=$enable_dlopen_self
14750
14751 # Whether dlopen of statically linked programs is supported.
14752 dlopen_self_static=$enable_dlopen_self_static
14753
14754 # Compiler flag to prevent dynamic linking.
14755 link_static_flag=$lt_lt_prog_compiler_static
14756
14757 # Compiler flag to turn off builtin functions.
14758 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14759
14760 # Compiler flag to allow reflexive dlopens.
14761 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14762
14763 # Compiler flag to generate shared objects directly from archives.
14764 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14765
14766 # Compiler flag to generate thread-safe objects.
14767 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14768
14769 # Library versioning type.
14770 version_type=$version_type
14771
14772 # Format of library name prefix.
14773 libname_spec=$lt_libname_spec
14774
14775 # List of archive names.  First name is the real one, the rest are links.
14776 # The last name is the one that the linker finds with -lNAME.
14777 library_names_spec=$lt_library_names_spec
14778
14779 # The coded name of the library, if different from the real name.
14780 soname_spec=$lt_soname_spec
14781
14782 # Commands used to build and install an old-style archive.
14783 RANLIB=$lt_RANLIB
14784 old_archive_cmds=$lt_old_archive_cmds
14785 old_postinstall_cmds=$lt_old_postinstall_cmds
14786 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14787
14788 # Create an old-style archive from a shared archive.
14789 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14790
14791 # Create a temporary old-style archive to link instead of a shared archive.
14792 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14793
14794 # Commands used to build and install a shared archive.
14795 archive_cmds=$lt_archive_cmds
14796 archive_expsym_cmds=$lt_archive_expsym_cmds
14797 postinstall_cmds=$lt_postinstall_cmds
14798 postuninstall_cmds=$lt_postuninstall_cmds
14799
14800 # Commands used to build a loadable module (assumed same as above if empty)
14801 module_cmds=$lt_module_cmds
14802 module_expsym_cmds=$lt_module_expsym_cmds
14803
14804 # Commands to strip libraries.
14805 old_striplib=$lt_old_striplib
14806 striplib=$lt_striplib
14807
14808 # Dependencies to place before the objects being linked to create a
14809 # shared library.
14810 predep_objects=$lt_predep_objects
14811
14812 # Dependencies to place after the objects being linked to create a
14813 # shared library.
14814 postdep_objects=$lt_postdep_objects
14815
14816 # Dependencies to place before the objects being linked to create a
14817 # shared library.
14818 predeps=$lt_predeps
14819
14820 # Dependencies to place after the objects being linked to create a
14821 # shared library.
14822 postdeps=$lt_postdeps
14823
14824 # The library search path used internally by the compiler when linking
14825 # a shared library.
14826 compiler_lib_search_path=$lt_compiler_lib_search_path
14827
14828 # Method to check whether dependent libraries are shared objects.
14829 deplibs_check_method=$lt_deplibs_check_method
14830
14831 # Command to use when deplibs_check_method == file_magic.
14832 file_magic_cmd=$lt_file_magic_cmd
14833
14834 # Flag that allows shared libraries with undefined symbols to be built.
14835 allow_undefined_flag=$lt_allow_undefined_flag
14836
14837 # Flag that forces no undefined symbols.
14838 no_undefined_flag=$lt_no_undefined_flag
14839
14840 # Commands used to finish a libtool library installation in a directory.
14841 finish_cmds=$lt_finish_cmds
14842
14843 # Same as above, but a single script fragment to be evaled but not shown.
14844 finish_eval=$lt_finish_eval
14845
14846 # Take the output of nm and produce a listing of raw symbols and C names.
14847 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14848
14849 # Transform the output of nm in a proper C declaration
14850 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14851
14852 # Transform the output of nm in a C name address pair
14853 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14854
14855 # This is the shared library runtime path variable.
14856 runpath_var=$runpath_var
14857
14858 # This is the shared library path variable.
14859 shlibpath_var=$shlibpath_var
14860
14861 # Is shlibpath searched before the hard-coded library search path?
14862 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14863
14864 # How to hardcode a shared library path into an executable.
14865 hardcode_action=$hardcode_action
14866
14867 # Whether we should hardcode library paths into libraries.
14868 hardcode_into_libs=$hardcode_into_libs
14869
14870 # Flag to hardcode \$libdir into a binary during linking.
14871 # This must work even if \$libdir does not exist.
14872 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14873
14874 # If ld is used when linking, flag to hardcode \$libdir into
14875 # a binary during linking. This must work even if \$libdir does
14876 # not exist.
14877 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14878
14879 # Whether we need a single -rpath flag with a separated argument.
14880 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14881
14882 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14883 # resulting binary.
14884 hardcode_direct=$hardcode_direct
14885
14886 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14887 # resulting binary.
14888 hardcode_minus_L=$hardcode_minus_L
14889
14890 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14891 # the resulting binary.
14892 hardcode_shlibpath_var=$hardcode_shlibpath_var
14893
14894 # Set to yes if building a shared library automatically hardcodes DIR into the library
14895 # and all subsequent libraries and executables linked against it.
14896 hardcode_automatic=$hardcode_automatic
14897
14898 # Variables whose values should be saved in libtool wrapper scripts and
14899 # restored at relink time.
14900 variables_saved_for_relink="$variables_saved_for_relink"
14901
14902 # Whether libtool must link a program against all its dependency libraries.
14903 link_all_deplibs=$link_all_deplibs
14904
14905 # Compile-time system search path for libraries
14906 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14907
14908 # Run-time system search path for libraries
14909 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14910
14911 # Fix the shell variable \$srcfile for the compiler.
14912 fix_srcfile_path="$fix_srcfile_path"
14913
14914 # Set to yes if exported symbols are required.
14915 always_export_symbols=$always_export_symbols
14916
14917 # The commands to list exported symbols.
14918 export_symbols_cmds=$lt_export_symbols_cmds
14919
14920 # The commands to extract the exported symbol list from a shared archive.
14921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14922
14923 # Symbols that should not be listed in the preloaded symbols.
14924 exclude_expsyms=$lt_exclude_expsyms
14925
14926 # Symbols that must always be exported.
14927 include_expsyms=$lt_include_expsyms
14928
14929 # ### END LIBTOOL CONFIG
14930
14931 __EOF__
14932
14933
14934   case $host_os in
14935   aix3*)
14936     cat <<\EOF >> "$cfgfile"
14937
14938 # AIX sometimes has problems with the GCC collect2 program.  For some
14939 # reason, if we set the COLLECT_NAMES environment variable, the problems
14940 # vanish in a puff of smoke.
14941 if test "X${COLLECT_NAMES+set}" != Xset; then
14942   COLLECT_NAMES=
14943   export COLLECT_NAMES
14944 fi
14945 EOF
14946     ;;
14947   esac
14948
14949   # We use sed instead of cat because bash on DJGPP gets confused if
14950   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14951   # text mode, it properly converts lines to CR/LF.  This bash problem
14952   # is reportedly fixed, but why not run on old versions too?
14953   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14954
14955   mv -f "$cfgfile" "$ofile" || \
14956     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14957   chmod +x "$ofile"
14958
14959 else
14960   # If there is no Makefile yet, we rely on a make rule to execute
14961   # `config.status --recheck' to rerun these tests and create the
14962   # libtool script then.
14963   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14964   if test -f "$ltmain_in"; then
14965     test -f Makefile && make "$ltmain"
14966   fi
14967 fi
14968
14969
14970 ac_ext=c
14971 ac_cpp='$CPP $CPPFLAGS'
14972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14975
14976 CC="$lt_save_CC"
14977
14978
14979 # Check whether --with-tags or --without-tags was given.
14980 if test "${with_tags+set}" = set; then
14981   withval="$with_tags"
14982   tagnames="$withval"
14983 fi;
14984
14985 if test -f "$ltmain" && test -n "$tagnames"; then
14986   if test ! -f "${ofile}"; then
14987     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14988 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14989   fi
14990
14991   if test -z "$LTCC"; then
14992     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14993     if test -z "$LTCC"; then
14994       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14995 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14996     else
14997       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14998 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14999     fi
15000   fi
15001
15002   # Extract list of available tagged configurations in $ofile.
15003   # Note that this assumes the entire list is on one line.
15004   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15005
15006   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15007   for tagname in $tagnames; do
15008     IFS="$lt_save_ifs"
15009     # Check whether tagname contains only valid characters
15010     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15011     "") ;;
15012     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15013 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15014    { (exit 1); exit 1; }; }
15015         ;;
15016     esac
15017
15018     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15019     then
15020       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15021 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15022    { (exit 1); exit 1; }; }
15023     fi
15024
15025     # Update the list of available tags.
15026     if test -n "$tagname"; then
15027       echo appending configuration tag "$tagname" to $ofile
15028
15029       case $tagname in
15030       CXX)
15031         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15032             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15033             (test "X$CXX" != "Xg++"))) ; then
15034           ac_ext=cc
15035 ac_cpp='$CXXCPP $CPPFLAGS'
15036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15039
15040
15041
15042
15043 archive_cmds_need_lc_CXX=no
15044 allow_undefined_flag_CXX=
15045 always_export_symbols_CXX=no
15046 archive_expsym_cmds_CXX=
15047 export_dynamic_flag_spec_CXX=
15048 hardcode_direct_CXX=no
15049 hardcode_libdir_flag_spec_CXX=
15050 hardcode_libdir_flag_spec_ld_CXX=
15051 hardcode_libdir_separator_CXX=
15052 hardcode_minus_L_CXX=no
15053 hardcode_automatic_CXX=no
15054 module_cmds_CXX=
15055 module_expsym_cmds_CXX=
15056 link_all_deplibs_CXX=unknown
15057 old_archive_cmds_CXX=$old_archive_cmds
15058 no_undefined_flag_CXX=
15059 whole_archive_flag_spec_CXX=
15060 enable_shared_with_static_runtimes_CXX=no
15061
15062 # Dependencies to place before and after the object being linked:
15063 predep_objects_CXX=
15064 postdep_objects_CXX=
15065 predeps_CXX=
15066 postdeps_CXX=
15067 compiler_lib_search_path_CXX=
15068
15069 # Source file extension for C++ test sources.
15070 ac_ext=cc
15071
15072 # Object file extension for compiled C++ test sources.
15073 objext=o
15074 objext_CXX=$objext
15075
15076 # Code to be used in simple compile tests
15077 lt_simple_compile_test_code="int some_variable = 0;\n"
15078
15079 # Code to be used in simple link tests
15080 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15081
15082 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15083
15084 # If no C compiler was specified, use CC.
15085 LTCC=${LTCC-"$CC"}
15086
15087 # Allow CC to be a program name with arguments.
15088 compiler=$CC
15089
15090
15091 # Allow CC to be a program name with arguments.
15092 lt_save_CC=$CC
15093 lt_save_LD=$LD
15094 lt_save_GCC=$GCC
15095 GCC=$GXX
15096 lt_save_with_gnu_ld=$with_gnu_ld
15097 lt_save_path_LD=$lt_cv_path_LD
15098 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15099   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15100 else
15101   unset lt_cv_prog_gnu_ld
15102 fi
15103 if test -n "${lt_cv_path_LDCXX+set}"; then
15104   lt_cv_path_LD=$lt_cv_path_LDCXX
15105 else
15106   unset lt_cv_path_LD
15107 fi
15108 test -z "${LDCXX+set}" || LD=$LDCXX
15109 CC=${CXX-"c++"}
15110 compiler=$CC
15111 compiler_CXX=$CC
15112 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15113
15114 # We don't want -fno-exception wen compiling C++ code, so set the
15115 # no_builtin_flag separately
15116 if test "$GXX" = yes; then
15117   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15118 else
15119   lt_prog_compiler_no_builtin_flag_CXX=
15120 fi
15121
15122 if test "$GXX" = yes; then
15123   # Set up default GNU C++ configuration
15124
15125
15126 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15127 if test "${with_gnu_ld+set}" = set; then
15128   withval="$with_gnu_ld"
15129   test "$withval" = no || with_gnu_ld=yes
15130 else
15131   with_gnu_ld=no
15132 fi;
15133 ac_prog=ld
15134 if test "$GCC" = yes; then
15135   # Check if gcc -print-prog-name=ld gives a path.
15136   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15137 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15138   case $host in
15139   *-*-mingw*)
15140     # gcc leaves a trailing carriage return which upsets mingw
15141     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15142   *)
15143     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15144   esac
15145   case $ac_prog in
15146     # Accept absolute paths.
15147     [\\/]* | ?:[\\/]*)
15148       re_direlt='/[^/][^/]*/\.\./'
15149       # Canonicalize the pathname of ld
15150       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15151       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15152         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15153       done
15154       test -z "$LD" && LD="$ac_prog"
15155       ;;
15156   "")
15157     # If it fails, then pretend we aren't using GCC.
15158     ac_prog=ld
15159     ;;
15160   *)
15161     # If it is relative, then search for the first ld in PATH.
15162     with_gnu_ld=unknown
15163     ;;
15164   esac
15165 elif test "$with_gnu_ld" = yes; then
15166   echo "$as_me:$LINENO: checking for GNU ld" >&5
15167 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15168 else
15169   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15170 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15171 fi
15172 if test "${lt_cv_path_LD+set}" = set; then
15173   echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175   if test -z "$LD"; then
15176   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15177   for ac_dir in $PATH; do
15178     IFS="$lt_save_ifs"
15179     test -z "$ac_dir" && ac_dir=.
15180     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15181       lt_cv_path_LD="$ac_dir/$ac_prog"
15182       # Check to see if the program is GNU ld.  I'd rather use --version,
15183       # but apparently some GNU ld's only accept -v.
15184       # Break only if it was the GNU/non-GNU ld that we prefer.
15185       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15186       *GNU* | *'with BFD'*)
15187         test "$with_gnu_ld" != no && break
15188         ;;
15189       *)
15190         test "$with_gnu_ld" != yes && break
15191         ;;
15192       esac
15193     fi
15194   done
15195   IFS="$lt_save_ifs"
15196 else
15197   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15198 fi
15199 fi
15200
15201 LD="$lt_cv_path_LD"
15202 if test -n "$LD"; then
15203   echo "$as_me:$LINENO: result: $LD" >&5
15204 echo "${ECHO_T}$LD" >&6
15205 else
15206   echo "$as_me:$LINENO: result: no" >&5
15207 echo "${ECHO_T}no" >&6
15208 fi
15209 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15210 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15211    { (exit 1); exit 1; }; }
15212 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15213 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15214 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15215   echo $ECHO_N "(cached) $ECHO_C" >&6
15216 else
15217   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15218 case `$LD -v 2>&1 </dev/null` in
15219 *GNU* | *'with BFD'*)
15220   lt_cv_prog_gnu_ld=yes
15221   ;;
15222 *)
15223   lt_cv_prog_gnu_ld=no
15224   ;;
15225 esac
15226 fi
15227 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15228 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15229 with_gnu_ld=$lt_cv_prog_gnu_ld
15230
15231
15232
15233   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15234   # archiving commands below assume that GNU ld is being used.
15235   if test "$with_gnu_ld" = yes; then
15236     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15237     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'
15238
15239     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15240     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15241
15242     # If archive_cmds runs LD, not CC, wlarc should be empty
15243     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15244     #     investigate it a little bit more. (MM)
15245     wlarc='${wl}'
15246
15247     # ancient GNU ld didn't support --whole-archive et. al.
15248     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15249         grep 'no-whole-archive' > /dev/null; then
15250       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15251     else
15252       whole_archive_flag_spec_CXX=
15253     fi
15254   else
15255     with_gnu_ld=no
15256     wlarc=
15257
15258     # A generic and very simple default shared library creation
15259     # command for GNU C++ for the case where it uses the native
15260     # linker, instead of GNU ld.  If possible, this setting should
15261     # overridden to take advantage of the native linker features on
15262     # the platform it is being used on.
15263     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15264   fi
15265
15266   # Commands to make compiler produce verbose output that lists
15267   # what "hidden" libraries, object files and flags are used when
15268   # linking a shared library.
15269   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15270
15271 else
15272   GXX=no
15273   with_gnu_ld=no
15274   wlarc=
15275 fi
15276
15277 # PORTME: fill in a description of your system's C++ link characteristics
15278 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15280 ld_shlibs_CXX=yes
15281 case $host_os in
15282   aix3*)
15283     # FIXME: insert proper C++ library support
15284     ld_shlibs_CXX=no
15285     ;;
15286   aix4* | aix5*)
15287     if test "$host_cpu" = ia64; then
15288       # On IA64, the linker does run time linking by default, so we don't
15289       # have to do anything special.
15290       aix_use_runtimelinking=no
15291       exp_sym_flag='-Bexport'
15292       no_entry_flag=""
15293     else
15294       aix_use_runtimelinking=no
15295
15296       # Test if we are trying to use run time linking or normal
15297       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15298       # need to do runtime linking.
15299       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15300         for ld_flag in $LDFLAGS; do
15301           case $ld_flag in
15302           *-brtl*)
15303             aix_use_runtimelinking=yes
15304             break
15305             ;;
15306           esac
15307         done
15308       esac
15309
15310       exp_sym_flag='-bexport'
15311       no_entry_flag='-bnoentry'
15312     fi
15313
15314     # When large executables or shared objects are built, AIX ld can
15315     # have problems creating the table of contents.  If linking a library
15316     # or program results in "error TOC overflow" add -mminimal-toc to
15317     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15318     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15319
15320     archive_cmds_CXX=''
15321     hardcode_direct_CXX=yes
15322     hardcode_libdir_separator_CXX=':'
15323     link_all_deplibs_CXX=yes
15324
15325     if test "$GXX" = yes; then
15326       case $host_os in aix4.012|aix4.012.*)
15327       # We only want to do this on AIX 4.2 and lower, the check
15328       # below for broken collect2 doesn't work under 4.3+
15329         collect2name=`${CC} -print-prog-name=collect2`
15330         if test -f "$collect2name" && \
15331            strings "$collect2name" | grep resolve_lib_name >/dev/null
15332         then
15333           # We have reworked collect2
15334           hardcode_direct_CXX=yes
15335         else
15336           # We have old collect2
15337           hardcode_direct_CXX=unsupported
15338           # It fails to find uninstalled libraries when the uninstalled
15339           # path is not listed in the libpath.  Setting hardcode_minus_L
15340           # to unsupported forces relinking
15341           hardcode_minus_L_CXX=yes
15342           hardcode_libdir_flag_spec_CXX='-L$libdir'
15343           hardcode_libdir_separator_CXX=
15344         fi
15345       esac
15346       shared_flag='-shared'
15347     else
15348       # not using gcc
15349       if test "$host_cpu" = ia64; then
15350         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15351         # chokes on -Wl,-G. The following line is correct:
15352         shared_flag='-G'
15353       else
15354         if test "$aix_use_runtimelinking" = yes; then
15355           shared_flag='${wl}-G'
15356         else
15357           shared_flag='${wl}-bM:SRE'
15358         fi
15359       fi
15360     fi
15361
15362     # It seems that -bexpall does not export symbols beginning with
15363     # underscore (_), so it is better to generate a list of symbols to export.
15364     always_export_symbols_CXX=yes
15365     if test "$aix_use_runtimelinking" = yes; then
15366       # Warning - without using the other runtime loading flags (-brtl),
15367       # -berok will link without error, but may produce a broken library.
15368       allow_undefined_flag_CXX='-berok'
15369       # Determine the default libpath from the value encoded in an empty executable.
15370       cat >conftest.$ac_ext <<_ACEOF
15371 /* confdefs.h.  */
15372 _ACEOF
15373 cat confdefs.h >>conftest.$ac_ext
15374 cat >>conftest.$ac_ext <<_ACEOF
15375 /* end confdefs.h.  */
15376
15377 int
15378 main ()
15379 {
15380
15381   ;
15382   return 0;
15383 }
15384 _ACEOF
15385 rm -f conftest.$ac_objext conftest$ac_exeext
15386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15387   (eval $ac_link) 2>conftest.er1
15388   ac_status=$?
15389   grep -v '^ *+' conftest.er1 >conftest.err
15390   rm -f conftest.er1
15391   cat conftest.err >&5
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } &&
15394          { ac_try='test -z "$ac_cxx_werror_flag"
15395                          || test ! -s conftest.err'
15396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397   (eval $ac_try) 2>&5
15398   ac_status=$?
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); }; } &&
15401          { ac_try='test -s conftest$ac_exeext'
15402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403   (eval $ac_try) 2>&5
15404   ac_status=$?
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); }; }; then
15407
15408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15409 }'`
15410 # Check for a 64-bit object if we didn't find anything.
15411 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; }
15412 }'`; fi
15413 else
15414   echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15416
15417 fi
15418 rm -f conftest.err conftest.$ac_objext \
15419       conftest$ac_exeext conftest.$ac_ext
15420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15421
15422       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15423
15424       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"
15425      else
15426       if test "$host_cpu" = ia64; then
15427         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15428         allow_undefined_flag_CXX="-z nodefs"
15429         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"
15430       else
15431         # Determine the default libpath from the value encoded in an empty executable.
15432         cat >conftest.$ac_ext <<_ACEOF
15433 /* confdefs.h.  */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h.  */
15438
15439 int
15440 main ()
15441 {
15442
15443   ;
15444   return 0;
15445 }
15446 _ACEOF
15447 rm -f conftest.$ac_objext conftest$ac_exeext
15448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15449   (eval $ac_link) 2>conftest.er1
15450   ac_status=$?
15451   grep -v '^ *+' conftest.er1 >conftest.err
15452   rm -f conftest.er1
15453   cat conftest.err >&5
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); } &&
15456          { ac_try='test -z "$ac_cxx_werror_flag"
15457                          || test ! -s conftest.err'
15458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459   (eval $ac_try) 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; } &&
15463          { ac_try='test -s conftest$ac_exeext'
15464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465   (eval $ac_try) 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); }; }; then
15469
15470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15471 }'`
15472 # Check for a 64-bit object if we didn't find anything.
15473 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; }
15474 }'`; fi
15475 else
15476   echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15478
15479 fi
15480 rm -f conftest.err conftest.$ac_objext \
15481       conftest$ac_exeext conftest.$ac_ext
15482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15483
15484         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15485         # Warning - without using the other run time loading flags,
15486         # -berok will link without error, but may produce a broken library.
15487         no_undefined_flag_CXX=' ${wl}-bernotok'
15488         allow_undefined_flag_CXX=' ${wl}-berok'
15489         # -bexpall does not export symbols beginning with underscore (_)
15490         always_export_symbols_CXX=yes
15491         # Exported symbols can be pulled into shared objects from archives
15492         whole_archive_flag_spec_CXX=' '
15493         archive_cmds_need_lc_CXX=yes
15494         # This is similar to how AIX traditionally builds it's shared libraries.
15495         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'
15496       fi
15497     fi
15498     ;;
15499   chorus*)
15500     case $cc_basename in
15501       *)
15502         # FIXME: insert proper C++ library support
15503         ld_shlibs_CXX=no
15504         ;;
15505     esac
15506     ;;
15507
15508
15509   cygwin* | mingw* | pw32*)
15510     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15511     # as there is no search path for DLLs.
15512     hardcode_libdir_flag_spec_CXX='-L$libdir'
15513     allow_undefined_flag_CXX=unsupported
15514     always_export_symbols_CXX=no
15515     enable_shared_with_static_runtimes_CXX=yes
15516
15517     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15518       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'
15519       # If the export-symbols file already is a .def file (1st line
15520       # is EXPORTS), use it as is; otherwise, prepend...
15521       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15522         cp $export_symbols $output_objdir/$soname.def;
15523       else
15524         echo EXPORTS > $output_objdir/$soname.def;
15525         cat $export_symbols >> $output_objdir/$soname.def;
15526       fi~
15527       $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'
15528     else
15529       ld_shlibs_CXX=no
15530     fi
15531   ;;
15532       darwin* | rhapsody*)
15533         case "$host_os" in
15534         rhapsody* | darwin1.[012])
15535          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15536          ;;
15537        *) # Darwin 1.3 on
15538          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15539            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15540          else
15541            case ${MACOSX_DEPLOYMENT_TARGET} in
15542              10.[012])
15543                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15544                ;;
15545              10.*)
15546                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15547                ;;
15548            esac
15549          fi
15550          ;;
15551         esac
15552       archive_cmds_need_lc_CXX=no
15553       hardcode_direct_CXX=no
15554       hardcode_automatic_CXX=yes
15555       hardcode_shlibpath_var_CXX=unsupported
15556       whole_archive_flag_spec_CXX=''
15557       link_all_deplibs_CXX=yes
15558
15559     if test "$GXX" = yes ; then
15560       lt_int_apple_cc_single_mod=no
15561       output_verbose_link_cmd='echo'
15562       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15563        lt_int_apple_cc_single_mod=yes
15564       fi
15565       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15566        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15567       else
15568           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'
15569         fi
15570         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15571         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15572           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15573             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}'
15574           else
15575             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}'
15576           fi
15577             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}'
15578       else
15579       case "$cc_basename" in
15580         xlc*)
15581          output_verbose_link_cmd='echo'
15582           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'
15583           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15584           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15585           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}'
15586           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}'
15587           ;;
15588        *)
15589          ld_shlibs_CXX=no
15590           ;;
15591       esac
15592       fi
15593         ;;
15594
15595   dgux*)
15596     case $cc_basename in
15597       ec++)
15598         # FIXME: insert proper C++ library support
15599         ld_shlibs_CXX=no
15600         ;;
15601       ghcx)
15602         # Green Hills C++ Compiler
15603         # FIXME: insert proper C++ library support
15604         ld_shlibs_CXX=no
15605         ;;
15606       *)
15607         # FIXME: insert proper C++ library support
15608         ld_shlibs_CXX=no
15609         ;;
15610     esac
15611     ;;
15612   freebsd12*)
15613     # C++ shared libraries reported to be fairly broken before switch to ELF
15614     ld_shlibs_CXX=no
15615     ;;
15616   freebsd-elf*)
15617     archive_cmds_need_lc_CXX=no
15618     ;;
15619   freebsd* | kfreebsd*-gnu)
15620     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15621     # conventions
15622     ld_shlibs_CXX=yes
15623     ;;
15624   gnu*)
15625     ;;
15626   hpux9*)
15627     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15628     hardcode_libdir_separator_CXX=:
15629     export_dynamic_flag_spec_CXX='${wl}-E'
15630     hardcode_direct_CXX=yes
15631     hardcode_minus_L_CXX=yes # Not in the search PATH,
15632                                 # but as the default
15633                                 # location of the library.
15634
15635     case $cc_basename in
15636     CC)
15637       # FIXME: insert proper C++ library support
15638       ld_shlibs_CXX=no
15639       ;;
15640     aCC)
15641       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'
15642       # Commands to make compiler produce verbose output that lists
15643       # what "hidden" libraries, object files and flags are used when
15644       # linking a shared library.
15645       #
15646       # There doesn't appear to be a way to prevent this compiler from
15647       # explicitly linking system object files so we need to strip them
15648       # from the output so that they don't get included in the library
15649       # dependencies.
15650       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'
15651       ;;
15652     *)
15653       if test "$GXX" = yes; then
15654         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'
15655       else
15656         # FIXME: insert proper C++ library support
15657         ld_shlibs_CXX=no
15658       fi
15659       ;;
15660     esac
15661     ;;
15662   hpux10*|hpux11*)
15663     if test $with_gnu_ld = no; then
15664       case "$host_cpu" in
15665       hppa*64*)
15666         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15667         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15668         hardcode_libdir_separator_CXX=:
15669         ;;
15670       ia64*)
15671         hardcode_libdir_flag_spec_CXX='-L$libdir'
15672         ;;
15673       *)
15674         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15675         hardcode_libdir_separator_CXX=:
15676         export_dynamic_flag_spec_CXX='${wl}-E'
15677         ;;
15678       esac
15679     fi
15680     case "$host_cpu" in
15681     hppa*64*)
15682       hardcode_direct_CXX=no
15683       hardcode_shlibpath_var_CXX=no
15684       ;;
15685     ia64*)
15686       hardcode_direct_CXX=no
15687       hardcode_shlibpath_var_CXX=no
15688       hardcode_minus_L_CXX=yes # Not in the search PATH,
15689                                               # but as the default
15690                                               # location of the library.
15691       ;;
15692     *)
15693       hardcode_direct_CXX=yes
15694       hardcode_minus_L_CXX=yes # Not in the search PATH,
15695                                               # but as the default
15696                                               # location of the library.
15697       ;;
15698     esac
15699
15700     case $cc_basename in
15701       CC)
15702         # FIXME: insert proper C++ library support
15703         ld_shlibs_CXX=no
15704         ;;
15705       aCC)
15706         case "$host_cpu" in
15707         hppa*64*|ia64*)
15708           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15709           ;;
15710         *)
15711           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15712           ;;
15713         esac
15714         # Commands to make compiler produce verbose output that lists
15715         # what "hidden" libraries, object files and flags are used when
15716         # linking a shared library.
15717         #
15718         # There doesn't appear to be a way to prevent this compiler from
15719         # explicitly linking system object files so we need to strip them
15720         # from the output so that they don't get included in the library
15721         # dependencies.
15722         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'
15723         ;;
15724       *)
15725         if test "$GXX" = yes; then
15726           if test $with_gnu_ld = no; then
15727             case "$host_cpu" in
15728             ia64*|hppa*64*)
15729               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15730               ;;
15731             *)
15732               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'
15733               ;;
15734             esac
15735           fi
15736         else
15737           # FIXME: insert proper C++ library support
15738           ld_shlibs_CXX=no
15739         fi
15740         ;;
15741     esac
15742     ;;
15743   irix5* | irix6*)
15744     case $cc_basename in
15745       CC)
15746         # SGI C++
15747         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
15748
15749         # Archives containing C++ object files must be created using
15750         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15751         # necessary to make sure instantiated templates are included
15752         # in the archive.
15753         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15754         ;;
15755       *)
15756         if test "$GXX" = yes; then
15757           if test "$with_gnu_ld" = no; then
15758             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
15759           else
15760             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'
15761           fi
15762         fi
15763         link_all_deplibs_CXX=yes
15764         ;;
15765     esac
15766     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15767     hardcode_libdir_separator_CXX=:
15768     ;;
15769   linux*)
15770     case $cc_basename in
15771       KCC)
15772         # Kuck and Associates, Inc. (KAI) C++ Compiler
15773
15774         # KCC will only create a shared library if the output file
15775         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15776         # to its proper name (with version) after linking.
15777         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'
15778         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'
15779         # Commands to make compiler produce verbose output that lists
15780         # what "hidden" libraries, object files and flags are used when
15781         # linking a shared library.
15782         #
15783         # There doesn't appear to be a way to prevent this compiler from
15784         # explicitly linking system object files so we need to strip them
15785         # from the output so that they don't get included in the library
15786         # dependencies.
15787         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'
15788
15789         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15790         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15791
15792         # Archives containing C++ object files must be created using
15793         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15794         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15795         ;;
15796       icpc)
15797         # Intel C++
15798         with_gnu_ld=yes
15799         # version 8.0 and above of icpc choke on multiply defined symbols
15800         # if we add $predep_objects and $postdep_objects, however 7.1 and
15801         # earlier do not add the objects themselves.
15802         case `$CC -V 2>&1` in
15803         *"Version 7."*)
15804           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15805           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'
15806           ;;
15807         *)  # Version 8.0 or newer
15808           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15810           ;;
15811         esac
15812         archive_cmds_need_lc_CXX=no
15813         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15814         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15815         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15816         ;;
15817       cxx)
15818         # Compaq C++
15819         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15820         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'
15821
15822         runpath_var=LD_RUN_PATH
15823         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15824         hardcode_libdir_separator_CXX=:
15825
15826         # Commands to make compiler produce verbose output that lists
15827         # what "hidden" libraries, object files and flags are used when
15828         # linking a shared library.
15829         #
15830         # There doesn't appear to be a way to prevent this compiler from
15831         # explicitly linking system object files so we need to strip them
15832         # from the output so that they don't get included in the library
15833         # dependencies.
15834         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'
15835         ;;
15836     esac
15837     ;;
15838   lynxos*)
15839     # FIXME: insert proper C++ library support
15840     ld_shlibs_CXX=no
15841     ;;
15842   m88k*)
15843     # FIXME: insert proper C++ library support
15844     ld_shlibs_CXX=no
15845     ;;
15846   mvs*)
15847     case $cc_basename in
15848       cxx)
15849         # FIXME: insert proper C++ library support
15850         ld_shlibs_CXX=no
15851         ;;
15852       *)
15853         # FIXME: insert proper C++ library support
15854         ld_shlibs_CXX=no
15855         ;;
15856     esac
15857     ;;
15858   netbsd*)
15859     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15860       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15861       wlarc=
15862       hardcode_libdir_flag_spec_CXX='-R$libdir'
15863       hardcode_direct_CXX=yes
15864       hardcode_shlibpath_var_CXX=no
15865     fi
15866     # Workaround some broken pre-1.5 toolchains
15867     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15868     ;;
15869   openbsd2*)
15870     # C++ shared libraries are fairly broken
15871     ld_shlibs_CXX=no
15872     ;;
15873   openbsd*)
15874     hardcode_direct_CXX=yes
15875     hardcode_shlibpath_var_CXX=no
15876     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15877     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15878     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15879       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15880       export_dynamic_flag_spec_CXX='${wl}-E'
15881       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15882     fi
15883     output_verbose_link_cmd='echo'
15884     ;;
15885   osf3*)
15886     case $cc_basename in
15887       KCC)
15888         # Kuck and Associates, Inc. (KAI) C++ Compiler
15889
15890         # KCC will only create a shared library if the output file
15891         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15892         # to its proper name (with version) after linking.
15893         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'
15894
15895         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15896         hardcode_libdir_separator_CXX=:
15897
15898         # Archives containing C++ object files must be created using
15899         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15900         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15901
15902         ;;
15903       RCC)
15904         # Rational C++ 2.4.1
15905         # FIXME: insert proper C++ library support
15906         ld_shlibs_CXX=no
15907         ;;
15908       cxx)
15909         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15910         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
15911
15912         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15913         hardcode_libdir_separator_CXX=:
15914
15915         # Commands to make compiler produce verbose output that lists
15916         # what "hidden" libraries, object files and flags are used when
15917         # linking a shared library.
15918         #
15919         # There doesn't appear to be a way to prevent this compiler from
15920         # explicitly linking system object files so we need to strip them
15921         # from the output so that they don't get included in the library
15922         # dependencies.
15923         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'
15924         ;;
15925       *)
15926         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15927           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15928           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
15929
15930           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15931           hardcode_libdir_separator_CXX=:
15932
15933           # Commands to make compiler produce verbose output that lists
15934           # what "hidden" libraries, object files and flags are used when
15935           # linking a shared library.
15936           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15937
15938         else
15939           # FIXME: insert proper C++ library support
15940           ld_shlibs_CXX=no
15941         fi
15942         ;;
15943     esac
15944     ;;
15945   osf4* | osf5*)
15946     case $cc_basename in
15947       KCC)
15948         # Kuck and Associates, Inc. (KAI) C++ Compiler
15949
15950         # KCC will only create a shared library if the output file
15951         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15952         # to its proper name (with version) after linking.
15953         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'
15954
15955         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15956         hardcode_libdir_separator_CXX=:
15957
15958         # Archives containing C++ object files must be created using
15959         # the KAI C++ compiler.
15960         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15961         ;;
15962       RCC)
15963         # Rational C++ 2.4.1
15964         # FIXME: insert proper C++ library support
15965         ld_shlibs_CXX=no
15966         ;;
15967       cxx)
15968         allow_undefined_flag_CXX=' -expect_unresolved \*'
15969         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
15970         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15971           echo "-hidden">> $lib.exp~
15972           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
15973           $rm $lib.exp'
15974
15975         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15976         hardcode_libdir_separator_CXX=:
15977
15978         # Commands to make compiler produce verbose output that lists
15979         # what "hidden" libraries, object files and flags are used when
15980         # linking a shared library.
15981         #
15982         # There doesn't appear to be a way to prevent this compiler from
15983         # explicitly linking system object files so we need to strip them
15984         # from the output so that they don't get included in the library
15985         # dependencies.
15986         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'
15987         ;;
15988       *)
15989         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15990           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15991          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
15992
15993           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15994           hardcode_libdir_separator_CXX=:
15995
15996           # Commands to make compiler produce verbose output that lists
15997           # what "hidden" libraries, object files and flags are used when
15998           # linking a shared library.
15999           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16000
16001         else
16002           # FIXME: insert proper C++ library support
16003           ld_shlibs_CXX=no
16004         fi
16005         ;;
16006     esac
16007     ;;
16008   psos*)
16009     # FIXME: insert proper C++ library support
16010     ld_shlibs_CXX=no
16011     ;;
16012   sco*)
16013     archive_cmds_need_lc_CXX=no
16014     case $cc_basename in
16015       CC)
16016         # FIXME: insert proper C++ library support
16017         ld_shlibs_CXX=no
16018         ;;
16019       *)
16020         # FIXME: insert proper C++ library support
16021         ld_shlibs_CXX=no
16022         ;;
16023     esac
16024     ;;
16025   sunos4*)
16026     case $cc_basename in
16027       CC)
16028         # Sun C++ 4.x
16029         # FIXME: insert proper C++ library support
16030         ld_shlibs_CXX=no
16031         ;;
16032       lcc)
16033         # Lucid
16034         # FIXME: insert proper C++ library support
16035         ld_shlibs_CXX=no
16036         ;;
16037       *)
16038         # FIXME: insert proper C++ library support
16039         ld_shlibs_CXX=no
16040         ;;
16041     esac
16042     ;;
16043   solaris*)
16044     case $cc_basename in
16045       CC)
16046         # Sun C++ 4.2, 5.x and Centerline C++
16047         no_undefined_flag_CXX=' -zdefs'
16048         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16049         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16050         $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'
16051
16052         hardcode_libdir_flag_spec_CXX='-R$libdir'
16053         hardcode_shlibpath_var_CXX=no
16054         case $host_os in
16055           solaris2.0-5 | solaris2.0-5.*) ;;
16056           *)
16057             # The C++ compiler is used as linker so we must use $wl
16058             # flag to pass the commands to the underlying system
16059             # linker.
16060             # Supported since Solaris 2.6 (maybe 2.5.1?)
16061             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16062             ;;
16063         esac
16064         link_all_deplibs_CXX=yes
16065
16066         # Commands to make compiler produce verbose output that lists
16067         # what "hidden" libraries, object files and flags are used when
16068         # linking a shared library.
16069         #
16070         # There doesn't appear to be a way to prevent this compiler from
16071         # explicitly linking system object files so we need to strip them
16072         # from the output so that they don't get included in the library
16073         # dependencies.
16074         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'
16075
16076         # Archives containing C++ object files must be created using
16077         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16078         # necessary to make sure instantiated templates are included
16079         # in the archive.
16080         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16081         ;;
16082       gcx)
16083         # Green Hills C++ Compiler
16084         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16085
16086         # The C++ compiler must be used to create the archive.
16087         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16088         ;;
16089       *)
16090         # GNU C++ compiler with Solaris linker
16091         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16092           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16093           if $CC --version | grep -v '^2\.7' > /dev/null; then
16094             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16095             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16096                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16097
16098             # Commands to make compiler produce verbose output that lists
16099             # what "hidden" libraries, object files and flags are used when
16100             # linking a shared library.
16101             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16102           else
16103             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16104             # platform.
16105             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16106             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16107                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16108
16109             # Commands to make compiler produce verbose output that lists
16110             # what "hidden" libraries, object files and flags are used when
16111             # linking a shared library.
16112             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16113           fi
16114
16115           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16116         fi
16117         ;;
16118     esac
16119     ;;
16120   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16121     archive_cmds_need_lc_CXX=no
16122     ;;
16123   tandem*)
16124     case $cc_basename in
16125       NCC)
16126         # NonStop-UX NCC 3.20
16127         # FIXME: insert proper C++ library support
16128         ld_shlibs_CXX=no
16129         ;;
16130       *)
16131         # FIXME: insert proper C++ library support
16132         ld_shlibs_CXX=no
16133         ;;
16134     esac
16135     ;;
16136   vxworks*)
16137     # FIXME: insert proper C++ library support
16138     ld_shlibs_CXX=no
16139     ;;
16140   *)
16141     # FIXME: insert proper C++ library support
16142     ld_shlibs_CXX=no
16143     ;;
16144 esac
16145 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16146 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16147 test "$ld_shlibs_CXX" = no && can_build_shared=no
16148
16149 GCC_CXX="$GXX"
16150 LD_CXX="$LD"
16151
16152
16153 cat > conftest.$ac_ext <<EOF
16154 class Foo
16155 {
16156 public:
16157   Foo (void) { a = 0; }
16158 private:
16159   int a;
16160 };
16161 EOF
16162
16163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16164   (eval $ac_compile) 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); }; then
16168   # Parse the compiler output and extract the necessary
16169   # objects, libraries and library flags.
16170
16171   # Sentinel used to keep track of whether or not we are before
16172   # the conftest object file.
16173   pre_test_object_deps_done=no
16174
16175   # The `*' in the case matches for architectures that use `case' in
16176   # $output_verbose_cmd can trigger glob expansion during the loop
16177   # eval without this substitution.
16178   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16179
16180   for p in `eval $output_verbose_link_cmd`; do
16181     case $p in
16182
16183     -L* | -R* | -l*)
16184        # Some compilers place space between "-{L,R}" and the path.
16185        # Remove the space.
16186        if test $p = "-L" \
16187           || test $p = "-R"; then
16188          prev=$p
16189          continue
16190        else
16191          prev=
16192        fi
16193
16194        if test "$pre_test_object_deps_done" = no; then
16195          case $p in
16196          -L* | -R*)
16197            # Internal compiler library paths should come after those
16198            # provided the user.  The postdeps already come after the
16199            # user supplied libs so there is no need to process them.
16200            if test -z "$compiler_lib_search_path_CXX"; then
16201              compiler_lib_search_path_CXX="${prev}${p}"
16202            else
16203              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16204            fi
16205            ;;
16206          # The "-l" case would never come before the object being
16207          # linked, so don't bother handling this case.
16208          esac
16209        else
16210          if test -z "$postdeps_CXX"; then
16211            postdeps_CXX="${prev}${p}"
16212          else
16213            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16214          fi
16215        fi
16216        ;;
16217
16218     *.$objext)
16219        # This assumes that the test object file only shows up
16220        # once in the compiler output.
16221        if test "$p" = "conftest.$objext"; then
16222          pre_test_object_deps_done=yes
16223          continue
16224        fi
16225
16226        if test "$pre_test_object_deps_done" = no; then
16227          if test -z "$predep_objects_CXX"; then
16228            predep_objects_CXX="$p"
16229          else
16230            predep_objects_CXX="$predep_objects_CXX $p"
16231          fi
16232        else
16233          if test -z "$postdep_objects_CXX"; then
16234            postdep_objects_CXX="$p"
16235          else
16236            postdep_objects_CXX="$postdep_objects_CXX $p"
16237          fi
16238        fi
16239        ;;
16240
16241     *) ;; # Ignore the rest.
16242
16243     esac
16244   done
16245
16246   # Clean up.
16247   rm -f a.out a.exe
16248 else
16249   echo "libtool.m4: error: problem compiling CXX test program"
16250 fi
16251
16252 $rm -f confest.$objext
16253
16254 case " $postdeps_CXX " in
16255 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16256 esac
16257
16258 lt_prog_compiler_wl_CXX=
16259 lt_prog_compiler_pic_CXX=
16260 lt_prog_compiler_static_CXX=
16261
16262 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16263 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16264
16265   # C++ specific cases for pic, static, wl, etc.
16266   if test "$GXX" = yes; then
16267     lt_prog_compiler_wl_CXX='-Wl,'
16268     lt_prog_compiler_static_CXX='-static'
16269
16270     case $host_os in
16271     aix*)
16272       # All AIX code is PIC.
16273       if test "$host_cpu" = ia64; then
16274         # AIX 5 now supports IA64 processor
16275         lt_prog_compiler_static_CXX='-Bstatic'
16276       fi
16277       ;;
16278     amigaos*)
16279       # FIXME: we need at least 68020 code to build shared libraries, but
16280       # adding the `-m68020' flag to GCC prevents building anything better,
16281       # like `-m68040'.
16282       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16283       ;;
16284     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16285       # PIC is the default for these OSes.
16286       ;;
16287     mingw* | os2* | pw32*)
16288       # This hack is so that the source file can tell whether it is being
16289       # built for inclusion in a dll (and should export symbols for example).
16290       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16291       ;;
16292     darwin* | rhapsody*)
16293       # PIC is the default on this platform
16294       # Common symbols not allowed in MH_DYLIB files
16295       lt_prog_compiler_pic_CXX='-fno-common'
16296       ;;
16297     *djgpp*)
16298       # DJGPP does not support shared libraries at all
16299       lt_prog_compiler_pic_CXX=
16300       ;;
16301     sysv4*MP*)
16302       if test -d /usr/nec; then
16303         lt_prog_compiler_pic_CXX=-Kconform_pic
16304       fi
16305       ;;
16306     hpux*)
16307       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16308       # not for PA HP-UX.
16309       case "$host_cpu" in
16310       hppa*64*|ia64*)
16311         ;;
16312       *)
16313         lt_prog_compiler_pic_CXX='-fPIC'
16314         ;;
16315       esac
16316       ;;
16317     *)
16318       lt_prog_compiler_pic_CXX='-fPIC'
16319       ;;
16320     esac
16321   else
16322     case $host_os in
16323       aix4* | aix5*)
16324         # All AIX code is PIC.
16325         if test "$host_cpu" = ia64; then
16326           # AIX 5 now supports IA64 processor
16327           lt_prog_compiler_static_CXX='-Bstatic'
16328         else
16329           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16330         fi
16331         ;;
16332       chorus*)
16333         case $cc_basename in
16334         cxch68)
16335           # Green Hills C++ Compiler
16336           # _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"
16337           ;;
16338         esac
16339         ;;
16340        darwin*)
16341          # PIC is the default on this platform
16342          # Common symbols not allowed in MH_DYLIB files
16343          case "$cc_basename" in
16344            xlc*)
16345            lt_prog_compiler_pic_CXX='-qnocommon'
16346            lt_prog_compiler_wl_CXX='-Wl,'
16347            ;;
16348          esac
16349        ;;
16350       dgux*)
16351         case $cc_basename in
16352           ec++)
16353             lt_prog_compiler_pic_CXX='-KPIC'
16354             ;;
16355           ghcx)
16356             # Green Hills C++ Compiler
16357             lt_prog_compiler_pic_CXX='-pic'
16358             ;;
16359           *)
16360             ;;
16361         esac
16362         ;;
16363       freebsd* | kfreebsd*-gnu)
16364         # FreeBSD uses GNU C++
16365         ;;
16366       hpux9* | hpux10* | hpux11*)
16367         case $cc_basename in
16368           CC)
16369             lt_prog_compiler_wl_CXX='-Wl,'
16370             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16371             if test "$host_cpu" != ia64; then
16372               lt_prog_compiler_pic_CXX='+Z'
16373             fi
16374             ;;
16375           aCC)
16376             lt_prog_compiler_wl_CXX='-Wl,'
16377             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16378             case "$host_cpu" in
16379             hppa*64*|ia64*)
16380               # +Z the default
16381               ;;
16382             *)
16383               lt_prog_compiler_pic_CXX='+Z'
16384               ;;
16385             esac
16386             ;;
16387           *)
16388             ;;
16389         esac
16390         ;;
16391       irix5* | irix6* | nonstopux*)
16392         case $cc_basename in
16393           CC)
16394             lt_prog_compiler_wl_CXX='-Wl,'
16395             lt_prog_compiler_static_CXX='-non_shared'
16396             # CC pic flag -KPIC is the default.
16397             ;;
16398           *)
16399             ;;
16400         esac
16401         ;;
16402       linux*)
16403         case $cc_basename in
16404           KCC)
16405             # KAI C++ Compiler
16406             lt_prog_compiler_wl_CXX='--backend -Wl,'
16407             lt_prog_compiler_pic_CXX='-fPIC'
16408             ;;
16409           icpc)
16410             # Intel C++
16411             lt_prog_compiler_wl_CXX='-Wl,'
16412             lt_prog_compiler_pic_CXX='-KPIC'
16413             lt_prog_compiler_static_CXX='-static'
16414             ;;
16415           cxx)
16416             # Compaq C++
16417             # Make sure the PIC flag is empty.  It appears that all Alpha
16418             # Linux and Compaq Tru64 Unix objects are PIC.
16419             lt_prog_compiler_pic_CXX=
16420             lt_prog_compiler_static_CXX='-non_shared'
16421             ;;
16422           *)
16423             ;;
16424         esac
16425         ;;
16426       lynxos*)
16427         ;;
16428       m88k*)
16429         ;;
16430       mvs*)
16431         case $cc_basename in
16432           cxx)
16433             lt_prog_compiler_pic_CXX='-W c,exportall'
16434             ;;
16435           *)
16436             ;;
16437         esac
16438         ;;
16439       netbsd*)
16440         ;;
16441       osf3* | osf4* | osf5*)
16442         case $cc_basename in
16443           KCC)
16444             lt_prog_compiler_wl_CXX='--backend -Wl,'
16445             ;;
16446           RCC)
16447             # Rational C++ 2.4.1
16448             lt_prog_compiler_pic_CXX='-pic'
16449             ;;
16450           cxx)
16451             # Digital/Compaq C++
16452             lt_prog_compiler_wl_CXX='-Wl,'
16453             # Make sure the PIC flag is empty.  It appears that all Alpha
16454             # Linux and Compaq Tru64 Unix objects are PIC.
16455             lt_prog_compiler_pic_CXX=
16456             lt_prog_compiler_static_CXX='-non_shared'
16457             ;;
16458           *)
16459             ;;
16460         esac
16461         ;;
16462       psos*)
16463         ;;
16464       sco*)
16465         case $cc_basename in
16466           CC)
16467             lt_prog_compiler_pic_CXX='-fPIC'
16468             ;;
16469           *)
16470             ;;
16471         esac
16472         ;;
16473       solaris*)
16474         case $cc_basename in
16475           CC)
16476             # Sun C++ 4.2, 5.x and Centerline C++
16477             lt_prog_compiler_pic_CXX='-KPIC'
16478             lt_prog_compiler_static_CXX='-Bstatic'
16479             lt_prog_compiler_wl_CXX='-Qoption ld '
16480             ;;
16481           gcx)
16482             # Green Hills C++ Compiler
16483             lt_prog_compiler_pic_CXX='-PIC'
16484             ;;
16485           *)
16486             ;;
16487         esac
16488         ;;
16489       sunos4*)
16490         case $cc_basename in
16491           CC)
16492             # Sun C++ 4.x
16493             lt_prog_compiler_pic_CXX='-pic'
16494             lt_prog_compiler_static_CXX='-Bstatic'
16495             ;;
16496           lcc)
16497             # Lucid
16498             lt_prog_compiler_pic_CXX='-pic'
16499             ;;
16500           *)
16501             ;;
16502         esac
16503         ;;
16504       tandem*)
16505         case $cc_basename in
16506           NCC)
16507             # NonStop-UX NCC 3.20
16508             lt_prog_compiler_pic_CXX='-KPIC'
16509             ;;
16510           *)
16511             ;;
16512         esac
16513         ;;
16514       unixware*)
16515         ;;
16516       vxworks*)
16517         ;;
16518       *)
16519         lt_prog_compiler_can_build_shared_CXX=no
16520         ;;
16521     esac
16522   fi
16523
16524 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16525 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16526
16527 #
16528 # Check to make sure the PIC flag actually works.
16529 #
16530 if test -n "$lt_prog_compiler_pic_CXX"; then
16531
16532 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16533 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16534 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16535   echo $ECHO_N "(cached) $ECHO_C" >&6
16536 else
16537   lt_prog_compiler_pic_works_CXX=no
16538   ac_outfile=conftest.$ac_objext
16539    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16540    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16541    # Insert the option either (1) after the last *FLAGS variable, or
16542    # (2) before a word containing "conftest.", or (3) at the end.
16543    # Note that $ac_compile itself does not contain backslashes and begins
16544    # with a dollar sign (not a hyphen), so the echo should work correctly.
16545    # The option is referenced via a variable to avoid confusing sed.
16546    lt_compile=`echo "$ac_compile" | $SED \
16547    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16548    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16549    -e 's:$: $lt_compiler_flag:'`
16550    (eval echo "\"\$as_me:16550: $lt_compile\"" >&5)
16551    (eval "$lt_compile" 2>conftest.err)
16552    ac_status=$?
16553    cat conftest.err >&5
16554    echo "$as_me:16554: \$? = $ac_status" >&5
16555    if (exit $ac_status) && test -s "$ac_outfile"; then
16556      # The compiler can only warn and ignore the option if not recognized
16557      # So say no if there are warnings
16558      if test ! -s conftest.err; then
16559        lt_prog_compiler_pic_works_CXX=yes
16560      fi
16561    fi
16562    $rm conftest*
16563
16564 fi
16565 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16566 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16567
16568 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16569     case $lt_prog_compiler_pic_CXX in
16570      "" | " "*) ;;
16571      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16572      esac
16573 else
16574     lt_prog_compiler_pic_CXX=
16575      lt_prog_compiler_can_build_shared_CXX=no
16576 fi
16577
16578 fi
16579 case "$host_os" in
16580   # For platforms which do not support PIC, -DPIC is meaningless:
16581   *djgpp*)
16582     lt_prog_compiler_pic_CXX=
16583     ;;
16584   *)
16585     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16586     ;;
16587 esac
16588
16589 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16590 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16591 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16592   echo $ECHO_N "(cached) $ECHO_C" >&6
16593 else
16594   lt_cv_prog_compiler_c_o_CXX=no
16595    $rm -r conftest 2>/dev/null
16596    mkdir conftest
16597    cd conftest
16598    mkdir out
16599    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16600
16601    lt_compiler_flag="-o out/conftest2.$ac_objext"
16602    # Insert the option either (1) after the last *FLAGS variable, or
16603    # (2) before a word containing "conftest.", or (3) at the end.
16604    # Note that $ac_compile itself does not contain backslashes and begins
16605    # with a dollar sign (not a hyphen), so the echo should work correctly.
16606    lt_compile=`echo "$ac_compile" | $SED \
16607    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16608    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16609    -e 's:$: $lt_compiler_flag:'`
16610    (eval echo "\"\$as_me:16610: $lt_compile\"" >&5)
16611    (eval "$lt_compile" 2>out/conftest.err)
16612    ac_status=$?
16613    cat out/conftest.err >&5
16614    echo "$as_me:16614: \$? = $ac_status" >&5
16615    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16616    then
16617      # The compiler can only warn and ignore the option if not recognized
16618      # So say no if there are warnings
16619      if test ! -s out/conftest.err; then
16620        lt_cv_prog_compiler_c_o_CXX=yes
16621      fi
16622    fi
16623    chmod u+w .
16624    $rm conftest*
16625    # SGI C++ compiler will create directory out/ii_files/ for
16626    # template instantiation
16627    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16628    $rm out/* && rmdir out
16629    cd ..
16630    rmdir conftest
16631    $rm conftest*
16632
16633 fi
16634 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16635 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16636
16637
16638 hard_links="nottested"
16639 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16640   # do not overwrite the value of need_locks provided by the user
16641   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16642 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16643   hard_links=yes
16644   $rm conftest*
16645   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16646   touch conftest.a
16647   ln conftest.a conftest.b 2>&5 || hard_links=no
16648   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16649   echo "$as_me:$LINENO: result: $hard_links" >&5
16650 echo "${ECHO_T}$hard_links" >&6
16651   if test "$hard_links" = no; then
16652     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16653 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16654     need_locks=warn
16655   fi
16656 else
16657   need_locks=no
16658 fi
16659
16660 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16661 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16662
16663   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16664   case $host_os in
16665   aix4* | aix5*)
16666     # If we're using GNU nm, then we don't want the "-C" option.
16667     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16668     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16669       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'
16670     else
16671       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'
16672     fi
16673     ;;
16674   pw32*)
16675     export_symbols_cmds_CXX="$ltdll_cmds"
16676   ;;
16677   cygwin* | mingw*)
16678     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16679   ;;
16680   *)
16681     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16682   ;;
16683   esac
16684
16685 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16686 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16687 test "$ld_shlibs_CXX" = no && can_build_shared=no
16688
16689 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16690 if test "$GCC" = yes; then
16691   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16692 fi
16693
16694 #
16695 # Do we need to explicitly link libc?
16696 #
16697 case "x$archive_cmds_need_lc_CXX" in
16698 x|xyes)
16699   # Assume -lc should be added
16700   archive_cmds_need_lc_CXX=yes
16701
16702   if test "$enable_shared" = yes && test "$GCC" = yes; then
16703     case $archive_cmds_CXX in
16704     *'~'*)
16705       # FIXME: we may have to deal with multi-command sequences.
16706       ;;
16707     '$CC '*)
16708       # Test whether the compiler implicitly links with -lc since on some
16709       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16710       # to ld, don't add -lc before -lgcc.
16711       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16712 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16713       $rm conftest*
16714       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16715
16716       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16717   (eval $ac_compile) 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); } 2>conftest.err; then
16721         soname=conftest
16722         lib=conftest
16723         libobjs=conftest.$ac_objext
16724         deplibs=
16725         wl=$lt_prog_compiler_wl_CXX
16726         compiler_flags=-v
16727         linker_flags=-v
16728         verstring=
16729         output_objdir=.
16730         libname=conftest
16731         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16732         allow_undefined_flag_CXX=
16733         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16734   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16735   ac_status=$?
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); }
16738         then
16739           archive_cmds_need_lc_CXX=no
16740         else
16741           archive_cmds_need_lc_CXX=yes
16742         fi
16743         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16744       else
16745         cat conftest.err 1>&5
16746       fi
16747       $rm conftest*
16748       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16749 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16750       ;;
16751     esac
16752   fi
16753   ;;
16754 esac
16755
16756 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16757 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16758 library_names_spec=
16759 libname_spec='lib$name'
16760 soname_spec=
16761 shrext_cmds=".so"
16762 postinstall_cmds=
16763 postuninstall_cmds=
16764 finish_cmds=
16765 finish_eval=
16766 shlibpath_var=
16767 shlibpath_overrides_runpath=unknown
16768 version_type=none
16769 dynamic_linker="$host_os ld.so"
16770 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16771 if test "$GCC" = yes; then
16772   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16773   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16774     # if the path contains ";" then we assume it to be the separator
16775     # otherwise default to the standard path separator (i.e. ":") - it is
16776     # assumed that no part of a normal pathname contains ";" but that should
16777     # okay in the real world where ";" in dirpaths is itself problematic.
16778     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16779   else
16780     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16781   fi
16782 else
16783   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16784 fi
16785 need_lib_prefix=unknown
16786 hardcode_into_libs=no
16787
16788 # when you set need_version to no, make sure it does not cause -set_version
16789 # flags to be left without arguments
16790 need_version=unknown
16791
16792 case $host_os in
16793 aix3*)
16794   version_type=linux
16795   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16796   shlibpath_var=LIBPATH
16797
16798   # AIX 3 has no versioning support, so we append a major version to the name.
16799   soname_spec='${libname}${release}${shared_ext}$major'
16800   ;;
16801
16802 aix4* | aix5*)
16803   version_type=linux
16804   need_lib_prefix=no
16805   need_version=no
16806   hardcode_into_libs=yes
16807   if test "$host_cpu" = ia64; then
16808     # AIX 5 supports IA64
16809     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16810     shlibpath_var=LD_LIBRARY_PATH
16811   else
16812     # With GCC up to 2.95.x, collect2 would create an import file
16813     # for dependence libraries.  The import file would start with
16814     # the line `#! .'.  This would cause the generated library to
16815     # depend on `.', always an invalid library.  This was fixed in
16816     # development snapshots of GCC prior to 3.0.
16817     case $host_os in
16818       aix4 | aix4.[01] | aix4.[01].*)
16819       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16820            echo ' yes '
16821            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16822         :
16823       else
16824         can_build_shared=no
16825       fi
16826       ;;
16827     esac
16828     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16829     # soname into executable. Probably we can add versioning support to
16830     # collect2, so additional links can be useful in future.
16831     if test "$aix_use_runtimelinking" = yes; then
16832       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16833       # instead of lib<name>.a to let people know that these are not
16834       # typical AIX shared libraries.
16835       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836     else
16837       # We preserve .a as extension for shared libraries through AIX4.2
16838       # and later when we are not doing run time linking.
16839       library_names_spec='${libname}${release}.a $libname.a'
16840       soname_spec='${libname}${release}${shared_ext}$major'
16841     fi
16842     shlibpath_var=LIBPATH
16843   fi
16844   ;;
16845
16846 amigaos*)
16847   library_names_spec='$libname.ixlibrary $libname.a'
16848   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16849   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'
16850   ;;
16851
16852 beos*)
16853   library_names_spec='${libname}${shared_ext}'
16854   dynamic_linker="$host_os ld.so"
16855   shlibpath_var=LIBRARY_PATH
16856   ;;
16857
16858 bsdi[45]*)
16859   version_type=linux
16860   need_version=no
16861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862   soname_spec='${libname}${release}${shared_ext}$major'
16863   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16864   shlibpath_var=LD_LIBRARY_PATH
16865   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16866   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16867   # the default ld.so.conf also contains /usr/contrib/lib and
16868   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16869   # libtool to hard-code these into programs
16870   ;;
16871
16872 cygwin* | mingw* | pw32*)
16873   version_type=windows
16874   shrext_cmds=".dll"
16875   need_version=no
16876   need_lib_prefix=no
16877
16878   case $GCC,$host_os in
16879   yes,cygwin* | yes,mingw* | yes,pw32*)
16880     library_names_spec='$libname.dll.a'
16881     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16882     postinstall_cmds='base_file=`basename \${file}`~
16883       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16884       dldir=$destdir/`dirname \$dlpath`~
16885       test -d \$dldir || mkdir -p \$dldir~
16886       $install_prog $dir/$dlname \$dldir/$dlname'
16887     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16888       dlpath=$dir/\$dldll~
16889        $rm \$dlpath'
16890     shlibpath_overrides_runpath=yes
16891
16892     case $host_os in
16893     cygwin*)
16894       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16895       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16896       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16897       ;;
16898     mingw*)
16899       # MinGW DLLs use traditional 'lib' prefix
16900       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16901       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16902       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16903         # It is most probably a Windows format PATH printed by
16904         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16905         # path with ; separators, and with drive letters. We can handle the
16906         # drive letters (cygwin fileutils understands them), so leave them,
16907         # especially as we might pass files found there to a mingw objdump,
16908         # which wouldn't understand a cygwinified path. Ahh.
16909         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16910       else
16911         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16912       fi
16913       ;;
16914     pw32*)
16915       # pw32 DLLs use 'pw' prefix rather than 'lib'
16916       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16917       ;;
16918     esac
16919     ;;
16920
16921   *)
16922     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16923     ;;
16924   esac
16925   dynamic_linker='Win32 ld.exe'
16926   # FIXME: first we should search . and the directory the executable is in
16927   shlibpath_var=PATH
16928   ;;
16929
16930 darwin* | rhapsody*)
16931   dynamic_linker="$host_os dyld"
16932   version_type=darwin
16933   need_lib_prefix=no
16934   need_version=no
16935   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16936   soname_spec='${libname}${release}${major}$shared_ext'
16937   shlibpath_overrides_runpath=yes
16938   shlibpath_var=DYLD_LIBRARY_PATH
16939   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16940   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16941   if test "$GCC" = yes; then
16942     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"`
16943   else
16944     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16945   fi
16946   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16947   ;;
16948
16949 dgux*)
16950   version_type=linux
16951   need_lib_prefix=no
16952   need_version=no
16953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16954   soname_spec='${libname}${release}${shared_ext}$major'
16955   shlibpath_var=LD_LIBRARY_PATH
16956   ;;
16957
16958 freebsd1*)
16959   dynamic_linker=no
16960   ;;
16961
16962 kfreebsd*-gnu)
16963   version_type=linux
16964   need_lib_prefix=no
16965   need_version=no
16966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16967   soname_spec='${libname}${release}${shared_ext}$major'
16968   shlibpath_var=LD_LIBRARY_PATH
16969   shlibpath_overrides_runpath=no
16970   hardcode_into_libs=yes
16971   dynamic_linker='GNU ld.so'
16972   ;;
16973
16974 freebsd*)
16975   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16976   version_type=freebsd-$objformat
16977   case $version_type in
16978     freebsd-elf*)
16979       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16980       need_version=no
16981       need_lib_prefix=no
16982       ;;
16983     freebsd-*)
16984       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16985       need_version=yes
16986       ;;
16987   esac
16988   shlibpath_var=LD_LIBRARY_PATH
16989   case $host_os in
16990   freebsd2*)
16991     shlibpath_overrides_runpath=yes
16992     ;;
16993   freebsd3.01* | freebsdelf3.01*)
16994     shlibpath_overrides_runpath=yes
16995     hardcode_into_libs=yes
16996     ;;
16997   *) # from 3.2 on
16998     shlibpath_overrides_runpath=no
16999     hardcode_into_libs=yes
17000     ;;
17001   esac
17002   ;;
17003
17004 gnu*)
17005   version_type=linux
17006   need_lib_prefix=no
17007   need_version=no
17008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17009   soname_spec='${libname}${release}${shared_ext}$major'
17010   shlibpath_var=LD_LIBRARY_PATH
17011   hardcode_into_libs=yes
17012   ;;
17013
17014 hpux9* | hpux10* | hpux11*)
17015   # Give a soname corresponding to the major version so that dld.sl refuses to
17016   # link against other versions.
17017   version_type=sunos
17018   need_lib_prefix=no
17019   need_version=no
17020   case "$host_cpu" in
17021   ia64*)
17022     shrext_cmds='.so'
17023     hardcode_into_libs=yes
17024     dynamic_linker="$host_os dld.so"
17025     shlibpath_var=LD_LIBRARY_PATH
17026     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028     soname_spec='${libname}${release}${shared_ext}$major'
17029     if test "X$HPUX_IA64_MODE" = X32; then
17030       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17031     else
17032       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17033     fi
17034     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17035     ;;
17036    hppa*64*)
17037      shrext_cmds='.sl'
17038      hardcode_into_libs=yes
17039      dynamic_linker="$host_os dld.sl"
17040      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17041      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17042      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17043      soname_spec='${libname}${release}${shared_ext}$major'
17044      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17045      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17046      ;;
17047    *)
17048     shrext_cmds='.sl'
17049     dynamic_linker="$host_os dld.sl"
17050     shlibpath_var=SHLIB_PATH
17051     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17053     soname_spec='${libname}${release}${shared_ext}$major'
17054     ;;
17055   esac
17056   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17057   postinstall_cmds='chmod 555 $lib'
17058   ;;
17059
17060 irix5* | irix6* | nonstopux*)
17061   case $host_os in
17062     nonstopux*) version_type=nonstopux ;;
17063     *)
17064         if test "$lt_cv_prog_gnu_ld" = yes; then
17065                 version_type=linux
17066         else
17067                 version_type=irix
17068         fi ;;
17069   esac
17070   need_lib_prefix=no
17071   need_version=no
17072   soname_spec='${libname}${release}${shared_ext}$major'
17073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17074   case $host_os in
17075   irix5* | nonstopux*)
17076     libsuff= shlibsuff=
17077     ;;
17078   *)
17079     case $LD in # libtool.m4 will add one of these switches to LD
17080     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17081       libsuff= shlibsuff= libmagic=32-bit;;
17082     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17083       libsuff=32 shlibsuff=N32 libmagic=N32;;
17084     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17085       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17086     *) libsuff= shlibsuff= libmagic=never-match;;
17087     esac
17088     ;;
17089   esac
17090   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17091   shlibpath_overrides_runpath=no
17092   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17093   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17094   hardcode_into_libs=yes
17095   ;;
17096
17097 # No shared lib support for Linux oldld, aout, or coff.
17098 linux*oldld* | linux*aout* | linux*coff*)
17099   dynamic_linker=no
17100   ;;
17101
17102 # This must be Linux ELF.
17103 linux*)
17104   version_type=linux
17105   need_lib_prefix=no
17106   need_version=no
17107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108   soname_spec='${libname}${release}${shared_ext}$major'
17109   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17110   shlibpath_var=LD_LIBRARY_PATH
17111   shlibpath_overrides_runpath=no
17112   # This implies no fast_install, which is unacceptable.
17113   # Some rework will be needed to allow for fast_install
17114   # before this can be enabled.
17115   hardcode_into_libs=yes
17116
17117   # Append ld.so.conf contents to the search path
17118   if test -f /etc/ld.so.conf; then
17119     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17120     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17121   fi
17122
17123   # We used to test for /lib/ld.so.1 and disable shared libraries on
17124   # powerpc, because MkLinux only supported shared libraries with the
17125   # GNU dynamic linker.  Since this was broken with cross compilers,
17126   # most powerpc-linux boxes support dynamic linking these days and
17127   # people can always --disable-shared, the test was removed, and we
17128   # assume the GNU/Linux dynamic linker is in use.
17129   dynamic_linker='GNU/Linux ld.so'
17130   ;;
17131
17132 knetbsd*-gnu)
17133   version_type=linux
17134   need_lib_prefix=no
17135   need_version=no
17136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17137   soname_spec='${libname}${release}${shared_ext}$major'
17138   shlibpath_var=LD_LIBRARY_PATH
17139   shlibpath_overrides_runpath=no
17140   hardcode_into_libs=yes
17141   dynamic_linker='GNU ld.so'
17142   ;;
17143
17144 netbsd*)
17145   version_type=sunos
17146   need_lib_prefix=no
17147   need_version=no
17148   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17149     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17150     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17151     dynamic_linker='NetBSD (a.out) ld.so'
17152   else
17153     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17154     soname_spec='${libname}${release}${shared_ext}$major'
17155     dynamic_linker='NetBSD ld.elf_so'
17156   fi
17157   shlibpath_var=LD_LIBRARY_PATH
17158   shlibpath_overrides_runpath=yes
17159   hardcode_into_libs=yes
17160   ;;
17161
17162 newsos6)
17163   version_type=linux
17164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165   shlibpath_var=LD_LIBRARY_PATH
17166   shlibpath_overrides_runpath=yes
17167   ;;
17168
17169 nto-qnx*)
17170   version_type=linux
17171   need_lib_prefix=no
17172   need_version=no
17173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174   soname_spec='${libname}${release}${shared_ext}$major'
17175   shlibpath_var=LD_LIBRARY_PATH
17176   shlibpath_overrides_runpath=yes
17177   ;;
17178
17179 openbsd*)
17180   version_type=sunos
17181   need_lib_prefix=no
17182   need_version=no
17183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17184   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17185   shlibpath_var=LD_LIBRARY_PATH
17186   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17187     case $host_os in
17188       openbsd2.[89] | openbsd2.[89].*)
17189         shlibpath_overrides_runpath=no
17190         ;;
17191       *)
17192         shlibpath_overrides_runpath=yes
17193         ;;
17194       esac
17195   else
17196     shlibpath_overrides_runpath=yes
17197   fi
17198   ;;
17199
17200 os2*)
17201   libname_spec='$name'
17202   shrext_cmds=".dll"
17203   need_lib_prefix=no
17204   library_names_spec='$libname${shared_ext} $libname.a'
17205   dynamic_linker='OS/2 ld.exe'
17206   shlibpath_var=LIBPATH
17207   ;;
17208
17209 osf3* | osf4* | osf5*)
17210   version_type=osf
17211   need_lib_prefix=no
17212   need_version=no
17213   soname_spec='${libname}${release}${shared_ext}$major'
17214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215   shlibpath_var=LD_LIBRARY_PATH
17216   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17217   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17218   ;;
17219
17220 sco3.2v5*)
17221   version_type=osf
17222   soname_spec='${libname}${release}${shared_ext}$major'
17223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224   shlibpath_var=LD_LIBRARY_PATH
17225   ;;
17226
17227 solaris*)
17228   version_type=linux
17229   need_lib_prefix=no
17230   need_version=no
17231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232   soname_spec='${libname}${release}${shared_ext}$major'
17233   shlibpath_var=LD_LIBRARY_PATH
17234   shlibpath_overrides_runpath=yes
17235   hardcode_into_libs=yes
17236   # ldd complains unless libraries are executable
17237   postinstall_cmds='chmod +x $lib'
17238   ;;
17239
17240 sunos4*)
17241   version_type=sunos
17242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17243   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17244   shlibpath_var=LD_LIBRARY_PATH
17245   shlibpath_overrides_runpath=yes
17246   if test "$with_gnu_ld" = yes; then
17247     need_lib_prefix=no
17248   fi
17249   need_version=yes
17250   ;;
17251
17252 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17253   version_type=linux
17254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255   soname_spec='${libname}${release}${shared_ext}$major'
17256   shlibpath_var=LD_LIBRARY_PATH
17257   case $host_vendor in
17258     sni)
17259       shlibpath_overrides_runpath=no
17260       need_lib_prefix=no
17261       export_dynamic_flag_spec='${wl}-Blargedynsym'
17262       runpath_var=LD_RUN_PATH
17263       ;;
17264     siemens)
17265       need_lib_prefix=no
17266       ;;
17267     motorola)
17268       need_lib_prefix=no
17269       need_version=no
17270       shlibpath_overrides_runpath=no
17271       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17272       ;;
17273   esac
17274   ;;
17275
17276 sysv4*MP*)
17277   if test -d /usr/nec ;then
17278     version_type=linux
17279     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17280     soname_spec='$libname${shared_ext}.$major'
17281     shlibpath_var=LD_LIBRARY_PATH
17282   fi
17283   ;;
17284
17285 uts4*)
17286   version_type=linux
17287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288   soname_spec='${libname}${release}${shared_ext}$major'
17289   shlibpath_var=LD_LIBRARY_PATH
17290   ;;
17291
17292 *)
17293   dynamic_linker=no
17294   ;;
17295 esac
17296 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17297 echo "${ECHO_T}$dynamic_linker" >&6
17298 test "$dynamic_linker" = no && can_build_shared=no
17299
17300 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17301 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17302 hardcode_action_CXX=
17303 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17304    test -n "$runpath_var_CXX" || \
17305    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17306
17307   # We can hardcode non-existant directories.
17308   if test "$hardcode_direct_CXX" != no &&
17309      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17310      # have to relink, otherwise we might link with an installed library
17311      # when we should be linking with a yet-to-be-installed one
17312      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17313      test "$hardcode_minus_L_CXX" != no; then
17314     # Linking always hardcodes the temporary library directory.
17315     hardcode_action_CXX=relink
17316   else
17317     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17318     hardcode_action_CXX=immediate
17319   fi
17320 else
17321   # We cannot hardcode anything, or else we can only hardcode existing
17322   # directories.
17323   hardcode_action_CXX=unsupported
17324 fi
17325 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17326 echo "${ECHO_T}$hardcode_action_CXX" >&6
17327
17328 if test "$hardcode_action_CXX" = relink; then
17329   # Fast installation is not supported
17330   enable_fast_install=no
17331 elif test "$shlibpath_overrides_runpath" = yes ||
17332      test "$enable_shared" = no; then
17333   # Fast installation is not necessary
17334   enable_fast_install=needless
17335 fi
17336
17337 striplib=
17338 old_striplib=
17339 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17340 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17341 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17342   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17343   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17344   echo "$as_me:$LINENO: result: yes" >&5
17345 echo "${ECHO_T}yes" >&6
17346 else
17347 # FIXME - insert some real tests, host_os isn't really good enough
17348   case $host_os in
17349    darwin*)
17350        if test -n "$STRIP" ; then
17351          striplib="$STRIP -x"
17352          echo "$as_me:$LINENO: result: yes" >&5
17353 echo "${ECHO_T}yes" >&6
17354        else
17355   echo "$as_me:$LINENO: result: no" >&5
17356 echo "${ECHO_T}no" >&6
17357 fi
17358        ;;
17359    *)
17360   echo "$as_me:$LINENO: result: no" >&5
17361 echo "${ECHO_T}no" >&6
17362     ;;
17363   esac
17364 fi
17365
17366 if test "x$enable_dlopen" != xyes; then
17367   enable_dlopen=unknown
17368   enable_dlopen_self=unknown
17369   enable_dlopen_self_static=unknown
17370 else
17371   lt_cv_dlopen=no
17372   lt_cv_dlopen_libs=
17373
17374   case $host_os in
17375   beos*)
17376     lt_cv_dlopen="load_add_on"
17377     lt_cv_dlopen_libs=
17378     lt_cv_dlopen_self=yes
17379     ;;
17380
17381   mingw* | pw32*)
17382     lt_cv_dlopen="LoadLibrary"
17383     lt_cv_dlopen_libs=
17384    ;;
17385
17386   cygwin*)
17387     lt_cv_dlopen="dlopen"
17388     lt_cv_dlopen_libs=
17389    ;;
17390
17391   darwin*)
17392   # if libdl is installed we need to link against it
17393     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17394 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17395 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17396   echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398   ac_check_lib_save_LIBS=$LIBS
17399 LIBS="-ldl  $LIBS"
17400 cat >conftest.$ac_ext <<_ACEOF
17401 /* confdefs.h.  */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h.  */
17406
17407 /* Override any gcc2 internal prototype to avoid an error.  */
17408 #ifdef __cplusplus
17409 extern "C"
17410 #endif
17411 /* We use char because int might match the return type of a gcc2
17412    builtin and then its argument prototype would still apply.  */
17413 char dlopen ();
17414 int
17415 main ()
17416 {
17417 dlopen ();
17418   ;
17419   return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424   (eval $ac_link) 2>conftest.er1
17425   ac_status=$?
17426   grep -v '^ *+' conftest.er1 >conftest.err
17427   rm -f conftest.er1
17428   cat conftest.err >&5
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); } &&
17431          { ac_try='test -z "$ac_cxx_werror_flag"
17432                          || test ! -s conftest.err'
17433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434   (eval $ac_try) 2>&5
17435   ac_status=$?
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); }; } &&
17438          { ac_try='test -s conftest$ac_exeext'
17439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440   (eval $ac_try) 2>&5
17441   ac_status=$?
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); }; }; then
17444   ac_cv_lib_dl_dlopen=yes
17445 else
17446   echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.$ac_ext >&5
17448
17449 ac_cv_lib_dl_dlopen=no
17450 fi
17451 rm -f conftest.err conftest.$ac_objext \
17452       conftest$ac_exeext conftest.$ac_ext
17453 LIBS=$ac_check_lib_save_LIBS
17454 fi
17455 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17456 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17457 if test $ac_cv_lib_dl_dlopen = yes; then
17458   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17459 else
17460
17461     lt_cv_dlopen="dyld"
17462     lt_cv_dlopen_libs=
17463     lt_cv_dlopen_self=yes
17464
17465 fi
17466
17467    ;;
17468
17469   *)
17470     echo "$as_me:$LINENO: checking for shl_load" >&5
17471 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17472 if test "${ac_cv_func_shl_load+set}" = set; then
17473   echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475   cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h.  */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h.  */
17481 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17483 #define shl_load innocuous_shl_load
17484
17485 /* System header to define __stub macros and hopefully few prototypes,
17486     which can conflict with char shl_load (); below.
17487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17488     <limits.h> exists even on freestanding compilers.  */
17489
17490 #ifdef __STDC__
17491 # include <limits.h>
17492 #else
17493 # include <assert.h>
17494 #endif
17495
17496 #undef shl_load
17497
17498 /* Override any gcc2 internal prototype to avoid an error.  */
17499 #ifdef __cplusplus
17500 extern "C"
17501 {
17502 #endif
17503 /* We use char because int might match the return type of a gcc2
17504    builtin and then its argument prototype would still apply.  */
17505 char shl_load ();
17506 /* The GNU C library defines this for functions which it implements
17507     to always fail with ENOSYS.  Some functions are actually named
17508     something starting with __ and the normal name is an alias.  */
17509 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17510 choke me
17511 #else
17512 char (*f) () = shl_load;
17513 #endif
17514 #ifdef __cplusplus
17515 }
17516 #endif
17517
17518 int
17519 main ()
17520 {
17521 return f != shl_load;
17522   ;
17523   return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17528   (eval $ac_link) 2>conftest.er1
17529   ac_status=$?
17530   grep -v '^ *+' conftest.er1 >conftest.err
17531   rm -f conftest.er1
17532   cat conftest.err >&5
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } &&
17535          { ac_try='test -z "$ac_cxx_werror_flag"
17536                          || test ! -s conftest.err'
17537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538   (eval $ac_try) 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; } &&
17542          { ac_try='test -s conftest$ac_exeext'
17543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544   (eval $ac_try) 2>&5
17545   ac_status=$?
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); }; }; then
17548   ac_cv_func_shl_load=yes
17549 else
17550   echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17552
17553 ac_cv_func_shl_load=no
17554 fi
17555 rm -f conftest.err conftest.$ac_objext \
17556       conftest$ac_exeext conftest.$ac_ext
17557 fi
17558 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17559 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17560 if test $ac_cv_func_shl_load = yes; then
17561   lt_cv_dlopen="shl_load"
17562 else
17563   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17564 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17565 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17566   echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568   ac_check_lib_save_LIBS=$LIBS
17569 LIBS="-ldld  $LIBS"
17570 cat >conftest.$ac_ext <<_ACEOF
17571 /* confdefs.h.  */
17572 _ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h.  */
17576
17577 /* Override any gcc2 internal prototype to avoid an error.  */
17578 #ifdef __cplusplus
17579 extern "C"
17580 #endif
17581 /* We use char because int might match the return type of a gcc2
17582    builtin and then its argument prototype would still apply.  */
17583 char shl_load ();
17584 int
17585 main ()
17586 {
17587 shl_load ();
17588   ;
17589   return 0;
17590 }
17591 _ACEOF
17592 rm -f conftest.$ac_objext conftest$ac_exeext
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594   (eval $ac_link) 2>conftest.er1
17595   ac_status=$?
17596   grep -v '^ *+' conftest.er1 >conftest.err
17597   rm -f conftest.er1
17598   cat conftest.err >&5
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); } &&
17601          { ac_try='test -z "$ac_cxx_werror_flag"
17602                          || test ! -s conftest.err'
17603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604   (eval $ac_try) 2>&5
17605   ac_status=$?
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); }; } &&
17608          { ac_try='test -s conftest$ac_exeext'
17609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610   (eval $ac_try) 2>&5
17611   ac_status=$?
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); }; }; then
17614   ac_cv_lib_dld_shl_load=yes
17615 else
17616   echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17618
17619 ac_cv_lib_dld_shl_load=no
17620 fi
17621 rm -f conftest.err conftest.$ac_objext \
17622       conftest$ac_exeext conftest.$ac_ext
17623 LIBS=$ac_check_lib_save_LIBS
17624 fi
17625 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17626 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17627 if test $ac_cv_lib_dld_shl_load = yes; then
17628   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17629 else
17630   echo "$as_me:$LINENO: checking for dlopen" >&5
17631 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17632 if test "${ac_cv_func_dlopen+set}" = set; then
17633   echo $ECHO_N "(cached) $ECHO_C" >&6
17634 else
17635   cat >conftest.$ac_ext <<_ACEOF
17636 /* confdefs.h.  */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h.  */
17641 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17643 #define dlopen innocuous_dlopen
17644
17645 /* System header to define __stub macros and hopefully few prototypes,
17646     which can conflict with char dlopen (); below.
17647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17648     <limits.h> exists even on freestanding compilers.  */
17649
17650 #ifdef __STDC__
17651 # include <limits.h>
17652 #else
17653 # include <assert.h>
17654 #endif
17655
17656 #undef dlopen
17657
17658 /* Override any gcc2 internal prototype to avoid an error.  */
17659 #ifdef __cplusplus
17660 extern "C"
17661 {
17662 #endif
17663 /* We use char because int might match the return type of a gcc2
17664    builtin and then its argument prototype would still apply.  */
17665 char dlopen ();
17666 /* The GNU C library defines this for functions which it implements
17667     to always fail with ENOSYS.  Some functions are actually named
17668     something starting with __ and the normal name is an alias.  */
17669 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17670 choke me
17671 #else
17672 char (*f) () = dlopen;
17673 #endif
17674 #ifdef __cplusplus
17675 }
17676 #endif
17677
17678 int
17679 main ()
17680 {
17681 return f != dlopen;
17682   ;
17683   return 0;
17684 }
17685 _ACEOF
17686 rm -f conftest.$ac_objext conftest$ac_exeext
17687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17688   (eval $ac_link) 2>conftest.er1
17689   ac_status=$?
17690   grep -v '^ *+' conftest.er1 >conftest.err
17691   rm -f conftest.er1
17692   cat conftest.err >&5
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); } &&
17695          { ac_try='test -z "$ac_cxx_werror_flag"
17696                          || test ! -s conftest.err'
17697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698   (eval $ac_try) 2>&5
17699   ac_status=$?
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); }; } &&
17702          { ac_try='test -s conftest$ac_exeext'
17703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704   (eval $ac_try) 2>&5
17705   ac_status=$?
17706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); }; }; then
17708   ac_cv_func_dlopen=yes
17709 else
17710   echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17712
17713 ac_cv_func_dlopen=no
17714 fi
17715 rm -f conftest.err conftest.$ac_objext \
17716       conftest$ac_exeext conftest.$ac_ext
17717 fi
17718 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17719 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17720 if test $ac_cv_func_dlopen = yes; then
17721   lt_cv_dlopen="dlopen"
17722 else
17723   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17724 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17725 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17726   echo $ECHO_N "(cached) $ECHO_C" >&6
17727 else
17728   ac_check_lib_save_LIBS=$LIBS
17729 LIBS="-ldl  $LIBS"
17730 cat >conftest.$ac_ext <<_ACEOF
17731 /* confdefs.h.  */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h.  */
17736
17737 /* Override any gcc2 internal prototype to avoid an error.  */
17738 #ifdef __cplusplus
17739 extern "C"
17740 #endif
17741 /* We use char because int might match the return type of a gcc2
17742    builtin and then its argument prototype would still apply.  */
17743 char dlopen ();
17744 int
17745 main ()
17746 {
17747 dlopen ();
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754   (eval $ac_link) 2>conftest.er1
17755   ac_status=$?
17756   grep -v '^ *+' conftest.er1 >conftest.err
17757   rm -f conftest.er1
17758   cat conftest.err >&5
17759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760   (exit $ac_status); } &&
17761          { ac_try='test -z "$ac_cxx_werror_flag"
17762                          || test ! -s conftest.err'
17763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764   (eval $ac_try) 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }; } &&
17768          { ac_try='test -s conftest$ac_exeext'
17769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770   (eval $ac_try) 2>&5
17771   ac_status=$?
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); }; }; then
17774   ac_cv_lib_dl_dlopen=yes
17775 else
17776   echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17778
17779 ac_cv_lib_dl_dlopen=no
17780 fi
17781 rm -f conftest.err conftest.$ac_objext \
17782       conftest$ac_exeext conftest.$ac_ext
17783 LIBS=$ac_check_lib_save_LIBS
17784 fi
17785 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17786 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17787 if test $ac_cv_lib_dl_dlopen = yes; then
17788   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17789 else
17790   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17791 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17792 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17793   echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795   ac_check_lib_save_LIBS=$LIBS
17796 LIBS="-lsvld  $LIBS"
17797 cat >conftest.$ac_ext <<_ACEOF
17798 /* confdefs.h.  */
17799 _ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h.  */
17803
17804 /* Override any gcc2 internal prototype to avoid an error.  */
17805 #ifdef __cplusplus
17806 extern "C"
17807 #endif
17808 /* We use char because int might match the return type of a gcc2
17809    builtin and then its argument prototype would still apply.  */
17810 char dlopen ();
17811 int
17812 main ()
17813 {
17814 dlopen ();
17815   ;
17816   return 0;
17817 }
17818 _ACEOF
17819 rm -f conftest.$ac_objext conftest$ac_exeext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17821   (eval $ac_link) 2>conftest.er1
17822   ac_status=$?
17823   grep -v '^ *+' conftest.er1 >conftest.err
17824   rm -f conftest.er1
17825   cat conftest.err >&5
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); } &&
17828          { ac_try='test -z "$ac_cxx_werror_flag"
17829                          || test ! -s conftest.err'
17830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831   (eval $ac_try) 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); }; } &&
17835          { ac_try='test -s conftest$ac_exeext'
17836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837   (eval $ac_try) 2>&5
17838   ac_status=$?
17839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); }; }; then
17841   ac_cv_lib_svld_dlopen=yes
17842 else
17843   echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846 ac_cv_lib_svld_dlopen=no
17847 fi
17848 rm -f conftest.err conftest.$ac_objext \
17849       conftest$ac_exeext conftest.$ac_ext
17850 LIBS=$ac_check_lib_save_LIBS
17851 fi
17852 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17853 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17854 if test $ac_cv_lib_svld_dlopen = yes; then
17855   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17856 else
17857   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17858 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17859 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17860   echo $ECHO_N "(cached) $ECHO_C" >&6
17861 else
17862   ac_check_lib_save_LIBS=$LIBS
17863 LIBS="-ldld  $LIBS"
17864 cat >conftest.$ac_ext <<_ACEOF
17865 /* confdefs.h.  */
17866 _ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h.  */
17870
17871 /* Override any gcc2 internal prototype to avoid an error.  */
17872 #ifdef __cplusplus
17873 extern "C"
17874 #endif
17875 /* We use char because int might match the return type of a gcc2
17876    builtin and then its argument prototype would still apply.  */
17877 char dld_link ();
17878 int
17879 main ()
17880 {
17881 dld_link ();
17882   ;
17883   return 0;
17884 }
17885 _ACEOF
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888   (eval $ac_link) 2>conftest.er1
17889   ac_status=$?
17890   grep -v '^ *+' conftest.er1 >conftest.err
17891   rm -f conftest.er1
17892   cat conftest.err >&5
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); } &&
17895          { ac_try='test -z "$ac_cxx_werror_flag"
17896                          || test ! -s conftest.err'
17897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898   (eval $ac_try) 2>&5
17899   ac_status=$?
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); }; } &&
17902          { ac_try='test -s conftest$ac_exeext'
17903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904   (eval $ac_try) 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); }; }; then
17908   ac_cv_lib_dld_dld_link=yes
17909 else
17910   echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912
17913 ac_cv_lib_dld_dld_link=no
17914 fi
17915 rm -f conftest.err conftest.$ac_objext \
17916       conftest$ac_exeext conftest.$ac_ext
17917 LIBS=$ac_check_lib_save_LIBS
17918 fi
17919 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17920 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17921 if test $ac_cv_lib_dld_dld_link = yes; then
17922   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17923 fi
17924
17925
17926 fi
17927
17928
17929 fi
17930
17931
17932 fi
17933
17934
17935 fi
17936
17937
17938 fi
17939
17940     ;;
17941   esac
17942
17943   if test "x$lt_cv_dlopen" != xno; then
17944     enable_dlopen=yes
17945   else
17946     enable_dlopen=no
17947   fi
17948
17949   case $lt_cv_dlopen in
17950   dlopen)
17951     save_CPPFLAGS="$CPPFLAGS"
17952     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17953
17954     save_LDFLAGS="$LDFLAGS"
17955     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17956
17957     save_LIBS="$LIBS"
17958     LIBS="$lt_cv_dlopen_libs $LIBS"
17959
17960     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17961 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17962 if test "${lt_cv_dlopen_self+set}" = set; then
17963   echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965           if test "$cross_compiling" = yes; then :
17966   lt_cv_dlopen_self=cross
17967 else
17968   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17969   lt_status=$lt_dlunknown
17970   cat > conftest.$ac_ext <<EOF
17971 #line 17971 "configure"
17972 #include "confdefs.h"
17973
17974 #if HAVE_DLFCN_H
17975 #include <dlfcn.h>
17976 #endif
17977
17978 #include <stdio.h>
17979
17980 #ifdef RTLD_GLOBAL
17981 #  define LT_DLGLOBAL           RTLD_GLOBAL
17982 #else
17983 #  ifdef DL_GLOBAL
17984 #    define LT_DLGLOBAL         DL_GLOBAL
17985 #  else
17986 #    define LT_DLGLOBAL         0
17987 #  endif
17988 #endif
17989
17990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17991    find out it does not work in some platform. */
17992 #ifndef LT_DLLAZY_OR_NOW
17993 #  ifdef RTLD_LAZY
17994 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17995 #  else
17996 #    ifdef DL_LAZY
17997 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17998 #    else
17999 #      ifdef RTLD_NOW
18000 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18001 #      else
18002 #        ifdef DL_NOW
18003 #          define LT_DLLAZY_OR_NOW      DL_NOW
18004 #        else
18005 #          define LT_DLLAZY_OR_NOW      0
18006 #        endif
18007 #      endif
18008 #    endif
18009 #  endif
18010 #endif
18011
18012 #ifdef __cplusplus
18013 extern "C" void exit (int);
18014 #endif
18015
18016 void fnord() { int i=42;}
18017 int main ()
18018 {
18019   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18020   int status = $lt_dlunknown;
18021
18022   if (self)
18023     {
18024       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18025       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18026       /* dlclose (self); */
18027     }
18028
18029     exit (status);
18030 }
18031 EOF
18032   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18033   (eval $ac_link) 2>&5
18034   ac_status=$?
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18037     (./conftest; exit; ) 2>/dev/null
18038     lt_status=$?
18039     case x$lt_status in
18040       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18041       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18042       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18043     esac
18044   else :
18045     # compilation failed
18046     lt_cv_dlopen_self=no
18047   fi
18048 fi
18049 rm -fr conftest*
18050
18051
18052 fi
18053 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18054 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18055
18056     if test "x$lt_cv_dlopen_self" = xyes; then
18057       LDFLAGS="$LDFLAGS $link_static_flag"
18058       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18059 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18060 if test "${lt_cv_dlopen_self_static+set}" = set; then
18061   echo $ECHO_N "(cached) $ECHO_C" >&6
18062 else
18063           if test "$cross_compiling" = yes; then :
18064   lt_cv_dlopen_self_static=cross
18065 else
18066   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18067   lt_status=$lt_dlunknown
18068   cat > conftest.$ac_ext <<EOF
18069 #line 18069 "configure"
18070 #include "confdefs.h"
18071
18072 #if HAVE_DLFCN_H
18073 #include <dlfcn.h>
18074 #endif
18075
18076 #include <stdio.h>
18077
18078 #ifdef RTLD_GLOBAL
18079 #  define LT_DLGLOBAL           RTLD_GLOBAL
18080 #else
18081 #  ifdef DL_GLOBAL
18082 #    define LT_DLGLOBAL         DL_GLOBAL
18083 #  else
18084 #    define LT_DLGLOBAL         0
18085 #  endif
18086 #endif
18087
18088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18089    find out it does not work in some platform. */
18090 #ifndef LT_DLLAZY_OR_NOW
18091 #  ifdef RTLD_LAZY
18092 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18093 #  else
18094 #    ifdef DL_LAZY
18095 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18096 #    else
18097 #      ifdef RTLD_NOW
18098 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18099 #      else
18100 #        ifdef DL_NOW
18101 #          define LT_DLLAZY_OR_NOW      DL_NOW
18102 #        else
18103 #          define LT_DLLAZY_OR_NOW      0
18104 #        endif
18105 #      endif
18106 #    endif
18107 #  endif
18108 #endif
18109
18110 #ifdef __cplusplus
18111 extern "C" void exit (int);
18112 #endif
18113
18114 void fnord() { int i=42;}
18115 int main ()
18116 {
18117   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18118   int status = $lt_dlunknown;
18119
18120   if (self)
18121     {
18122       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18123       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18124       /* dlclose (self); */
18125     }
18126
18127     exit (status);
18128 }
18129 EOF
18130   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131   (eval $ac_link) 2>&5
18132   ac_status=$?
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18135     (./conftest; exit; ) 2>/dev/null
18136     lt_status=$?
18137     case x$lt_status in
18138       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18139       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18140       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18141     esac
18142   else :
18143     # compilation failed
18144     lt_cv_dlopen_self_static=no
18145   fi
18146 fi
18147 rm -fr conftest*
18148
18149
18150 fi
18151 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18152 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18153     fi
18154
18155     CPPFLAGS="$save_CPPFLAGS"
18156     LDFLAGS="$save_LDFLAGS"
18157     LIBS="$save_LIBS"
18158     ;;
18159   esac
18160
18161   case $lt_cv_dlopen_self in
18162   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18163   *) enable_dlopen_self=unknown ;;
18164   esac
18165
18166   case $lt_cv_dlopen_self_static in
18167   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18168   *) enable_dlopen_self_static=unknown ;;
18169   esac
18170 fi
18171
18172
18173 # The else clause should only fire when bootstrapping the
18174 # libtool distribution, otherwise you forgot to ship ltmain.sh
18175 # with your package, and you will get complaints that there are
18176 # no rules to generate ltmain.sh.
18177 if test -f "$ltmain"; then
18178   # See if we are running on zsh, and set the options which allow our commands through
18179   # without removal of \ escapes.
18180   if test -n "${ZSH_VERSION+set}" ; then
18181     setopt NO_GLOB_SUBST
18182   fi
18183   # Now quote all the things that may contain metacharacters while being
18184   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18185   # variables and quote the copies for generation of the libtool script.
18186   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18187     SED SHELL STRIP \
18188     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18189     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18190     deplibs_check_method reload_flag reload_cmds need_locks \
18191     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18192     lt_cv_sys_global_symbol_to_c_name_address \
18193     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18194     old_postinstall_cmds old_postuninstall_cmds \
18195     compiler_CXX \
18196     CC_CXX \
18197     LD_CXX \
18198     lt_prog_compiler_wl_CXX \
18199     lt_prog_compiler_pic_CXX \
18200     lt_prog_compiler_static_CXX \
18201     lt_prog_compiler_no_builtin_flag_CXX \
18202     export_dynamic_flag_spec_CXX \
18203     thread_safe_flag_spec_CXX \
18204     whole_archive_flag_spec_CXX \
18205     enable_shared_with_static_runtimes_CXX \
18206     old_archive_cmds_CXX \
18207     old_archive_from_new_cmds_CXX \
18208     predep_objects_CXX \
18209     postdep_objects_CXX \
18210     predeps_CXX \
18211     postdeps_CXX \
18212     compiler_lib_search_path_CXX \
18213     archive_cmds_CXX \
18214     archive_expsym_cmds_CXX \
18215     postinstall_cmds_CXX \
18216     postuninstall_cmds_CXX \
18217     old_archive_from_expsyms_cmds_CXX \
18218     allow_undefined_flag_CXX \
18219     no_undefined_flag_CXX \
18220     export_symbols_cmds_CXX \
18221     hardcode_libdir_flag_spec_CXX \
18222     hardcode_libdir_flag_spec_ld_CXX \
18223     hardcode_libdir_separator_CXX \
18224     hardcode_automatic_CXX \
18225     module_cmds_CXX \
18226     module_expsym_cmds_CXX \
18227     lt_cv_prog_compiler_c_o_CXX \
18228     exclude_expsyms_CXX \
18229     include_expsyms_CXX; do
18230
18231     case $var in
18232     old_archive_cmds_CXX | \
18233     old_archive_from_new_cmds_CXX | \
18234     archive_cmds_CXX | \
18235     archive_expsym_cmds_CXX | \
18236     module_cmds_CXX | \
18237     module_expsym_cmds_CXX | \
18238     old_archive_from_expsyms_cmds_CXX | \
18239     export_symbols_cmds_CXX | \
18240     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18241     postinstall_cmds | postuninstall_cmds | \
18242     old_postinstall_cmds | old_postuninstall_cmds | \
18243     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18244       # Double-quote double-evaled strings.
18245       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18246       ;;
18247     *)
18248       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18249       ;;
18250     esac
18251   done
18252
18253   case $lt_echo in
18254   *'\$0 --fallback-echo"')
18255     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18256     ;;
18257   esac
18258
18259 cfgfile="$ofile"
18260
18261   cat <<__EOF__ >> "$cfgfile"
18262 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18263
18264 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18265
18266 # Shell to use when invoking shell scripts.
18267 SHELL=$lt_SHELL
18268
18269 # Whether or not to build shared libraries.
18270 build_libtool_libs=$enable_shared
18271
18272 # Whether or not to build static libraries.
18273 build_old_libs=$enable_static
18274
18275 # Whether or not to add -lc for building shared libraries.
18276 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18277
18278 # Whether or not to disallow shared libs when runtime libs are static
18279 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18280
18281 # Whether or not to optimize for fast installation.
18282 fast_install=$enable_fast_install
18283
18284 # The host system.
18285 host_alias=$host_alias
18286 host=$host
18287
18288 # An echo program that does not interpret backslashes.
18289 echo=$lt_echo
18290
18291 # The archiver.
18292 AR=$lt_AR
18293 AR_FLAGS=$lt_AR_FLAGS
18294
18295 # A C compiler.
18296 LTCC=$lt_LTCC
18297
18298 # A language-specific compiler.
18299 CC=$lt_compiler_CXX
18300
18301 # Is the compiler the GNU C compiler?
18302 with_gcc=$GCC_CXX
18303
18304 # An ERE matcher.
18305 EGREP=$lt_EGREP
18306
18307 # The linker used to build libraries.
18308 LD=$lt_LD_CXX
18309
18310 # Whether we need hard or soft links.
18311 LN_S=$lt_LN_S
18312
18313 # A BSD-compatible nm program.
18314 NM=$lt_NM
18315
18316 # A symbol stripping program
18317 STRIP=$lt_STRIP
18318
18319 # Used to examine libraries when file_magic_cmd begins "file"
18320 MAGIC_CMD=$MAGIC_CMD
18321
18322 # Used on cygwin: DLL creation program.
18323 DLLTOOL="$DLLTOOL"
18324
18325 # Used on cygwin: object dumper.
18326 OBJDUMP="$OBJDUMP"
18327
18328 # Used on cygwin: assembler.
18329 AS="$AS"
18330
18331 # The name of the directory that contains temporary libtool files.
18332 objdir=$objdir
18333
18334 # How to create reloadable object files.
18335 reload_flag=$lt_reload_flag
18336 reload_cmds=$lt_reload_cmds
18337
18338 # How to pass a linker flag through the compiler.
18339 wl=$lt_lt_prog_compiler_wl_CXX
18340
18341 # Object file suffix (normally "o").
18342 objext="$ac_objext"
18343
18344 # Old archive suffix (normally "a").
18345 libext="$libext"
18346
18347 # Shared library suffix (normally ".so").
18348 shrext_cmds='$shrext_cmds'
18349
18350 # Executable file suffix (normally "").
18351 exeext="$exeext"
18352
18353 # Additional compiler flags for building library objects.
18354 pic_flag=$lt_lt_prog_compiler_pic_CXX
18355 pic_mode=$pic_mode
18356
18357 # What is the maximum length of a command?
18358 max_cmd_len=$lt_cv_sys_max_cmd_len
18359
18360 # Does compiler simultaneously support -c and -o options?
18361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18362
18363 # Must we lock files when doing compilation ?
18364 need_locks=$lt_need_locks
18365
18366 # Do we need the lib prefix for modules?
18367 need_lib_prefix=$need_lib_prefix
18368
18369 # Do we need a version for libraries?
18370 need_version=$need_version
18371
18372 # Whether dlopen is supported.
18373 dlopen_support=$enable_dlopen
18374
18375 # Whether dlopen of programs is supported.
18376 dlopen_self=$enable_dlopen_self
18377
18378 # Whether dlopen of statically linked programs is supported.
18379 dlopen_self_static=$enable_dlopen_self_static
18380
18381 # Compiler flag to prevent dynamic linking.
18382 link_static_flag=$lt_lt_prog_compiler_static_CXX
18383
18384 # Compiler flag to turn off builtin functions.
18385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18386
18387 # Compiler flag to allow reflexive dlopens.
18388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18389
18390 # Compiler flag to generate shared objects directly from archives.
18391 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18392
18393 # Compiler flag to generate thread-safe objects.
18394 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18395
18396 # Library versioning type.
18397 version_type=$version_type
18398
18399 # Format of library name prefix.
18400 libname_spec=$lt_libname_spec
18401
18402 # List of archive names.  First name is the real one, the rest are links.
18403 # The last name is the one that the linker finds with -lNAME.
18404 library_names_spec=$lt_library_names_spec
18405
18406 # The coded name of the library, if different from the real name.
18407 soname_spec=$lt_soname_spec
18408
18409 # Commands used to build and install an old-style archive.
18410 RANLIB=$lt_RANLIB
18411 old_archive_cmds=$lt_old_archive_cmds_CXX
18412 old_postinstall_cmds=$lt_old_postinstall_cmds
18413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18414
18415 # Create an old-style archive from a shared archive.
18416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18417
18418 # Create a temporary old-style archive to link instead of a shared archive.
18419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18420
18421 # Commands used to build and install a shared archive.
18422 archive_cmds=$lt_archive_cmds_CXX
18423 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18424 postinstall_cmds=$lt_postinstall_cmds
18425 postuninstall_cmds=$lt_postuninstall_cmds
18426
18427 # Commands used to build a loadable module (assumed same as above if empty)
18428 module_cmds=$lt_module_cmds_CXX
18429 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18430
18431 # Commands to strip libraries.
18432 old_striplib=$lt_old_striplib
18433 striplib=$lt_striplib
18434
18435 # Dependencies to place before the objects being linked to create a
18436 # shared library.
18437 predep_objects=$lt_predep_objects_CXX
18438
18439 # Dependencies to place after the objects being linked to create a
18440 # shared library.
18441 postdep_objects=$lt_postdep_objects_CXX
18442
18443 # Dependencies to place before the objects being linked to create a
18444 # shared library.
18445 predeps=$lt_predeps_CXX
18446
18447 # Dependencies to place after the objects being linked to create a
18448 # shared library.
18449 postdeps=$lt_postdeps_CXX
18450
18451 # The library search path used internally by the compiler when linking
18452 # a shared library.
18453 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18454
18455 # Method to check whether dependent libraries are shared objects.
18456 deplibs_check_method=$lt_deplibs_check_method
18457
18458 # Command to use when deplibs_check_method == file_magic.
18459 file_magic_cmd=$lt_file_magic_cmd
18460
18461 # Flag that allows shared libraries with undefined symbols to be built.
18462 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18463
18464 # Flag that forces no undefined symbols.
18465 no_undefined_flag=$lt_no_undefined_flag_CXX
18466
18467 # Commands used to finish a libtool library installation in a directory.
18468 finish_cmds=$lt_finish_cmds
18469
18470 # Same as above, but a single script fragment to be evaled but not shown.
18471 finish_eval=$lt_finish_eval
18472
18473 # Take the output of nm and produce a listing of raw symbols and C names.
18474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18475
18476 # Transform the output of nm in a proper C declaration
18477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18478
18479 # Transform the output of nm in a C name address pair
18480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18481
18482 # This is the shared library runtime path variable.
18483 runpath_var=$runpath_var
18484
18485 # This is the shared library path variable.
18486 shlibpath_var=$shlibpath_var
18487
18488 # Is shlibpath searched before the hard-coded library search path?
18489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18490
18491 # How to hardcode a shared library path into an executable.
18492 hardcode_action=$hardcode_action_CXX
18493
18494 # Whether we should hardcode library paths into libraries.
18495 hardcode_into_libs=$hardcode_into_libs
18496
18497 # Flag to hardcode \$libdir into a binary during linking.
18498 # This must work even if \$libdir does not exist.
18499 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18500
18501 # If ld is used when linking, flag to hardcode \$libdir into
18502 # a binary during linking. This must work even if \$libdir does
18503 # not exist.
18504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18505
18506 # Whether we need a single -rpath flag with a separated argument.
18507 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18508
18509 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18510 # resulting binary.
18511 hardcode_direct=$hardcode_direct_CXX
18512
18513 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18514 # resulting binary.
18515 hardcode_minus_L=$hardcode_minus_L_CXX
18516
18517 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18518 # the resulting binary.
18519 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18520
18521 # Set to yes if building a shared library automatically hardcodes DIR into the library
18522 # and all subsequent libraries and executables linked against it.
18523 hardcode_automatic=$hardcode_automatic_CXX
18524
18525 # Variables whose values should be saved in libtool wrapper scripts and
18526 # restored at relink time.
18527 variables_saved_for_relink="$variables_saved_for_relink"
18528
18529 # Whether libtool must link a program against all its dependency libraries.
18530 link_all_deplibs=$link_all_deplibs_CXX
18531
18532 # Compile-time system search path for libraries
18533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18534
18535 # Run-time system search path for libraries
18536 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18537
18538 # Fix the shell variable \$srcfile for the compiler.
18539 fix_srcfile_path="$fix_srcfile_path_CXX"
18540
18541 # Set to yes if exported symbols are required.
18542 always_export_symbols=$always_export_symbols_CXX
18543
18544 # The commands to list exported symbols.
18545 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18546
18547 # The commands to extract the exported symbol list from a shared archive.
18548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18549
18550 # Symbols that should not be listed in the preloaded symbols.
18551 exclude_expsyms=$lt_exclude_expsyms_CXX
18552
18553 # Symbols that must always be exported.
18554 include_expsyms=$lt_include_expsyms_CXX
18555
18556 # ### END LIBTOOL TAG CONFIG: $tagname
18557
18558 __EOF__
18559
18560
18561 else
18562   # If there is no Makefile yet, we rely on a make rule to execute
18563   # `config.status --recheck' to rerun these tests and create the
18564   # libtool script then.
18565   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18566   if test -f "$ltmain_in"; then
18567     test -f Makefile && make "$ltmain"
18568   fi
18569 fi
18570
18571
18572 ac_ext=c
18573 ac_cpp='$CPP $CPPFLAGS'
18574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18577
18578 CC=$lt_save_CC
18579 LDCXX=$LD
18580 LD=$lt_save_LD
18581 GCC=$lt_save_GCC
18582 with_gnu_ldcxx=$with_gnu_ld
18583 with_gnu_ld=$lt_save_with_gnu_ld
18584 lt_cv_path_LDCXX=$lt_cv_path_LD
18585 lt_cv_path_LD=$lt_save_path_LD
18586 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18587 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18588
18589         else
18590           tagname=""
18591         fi
18592         ;;
18593
18594       F77)
18595         if test -n "$F77" && test "X$F77" != "Xno"; then
18596
18597 ac_ext=f
18598 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18599 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18601
18602
18603 archive_cmds_need_lc_F77=no
18604 allow_undefined_flag_F77=
18605 always_export_symbols_F77=no
18606 archive_expsym_cmds_F77=
18607 export_dynamic_flag_spec_F77=
18608 hardcode_direct_F77=no
18609 hardcode_libdir_flag_spec_F77=
18610 hardcode_libdir_flag_spec_ld_F77=
18611 hardcode_libdir_separator_F77=
18612 hardcode_minus_L_F77=no
18613 hardcode_automatic_F77=no
18614 module_cmds_F77=
18615 module_expsym_cmds_F77=
18616 link_all_deplibs_F77=unknown
18617 old_archive_cmds_F77=$old_archive_cmds
18618 no_undefined_flag_F77=
18619 whole_archive_flag_spec_F77=
18620 enable_shared_with_static_runtimes_F77=no
18621
18622 # Source file extension for f77 test sources.
18623 ac_ext=f
18624
18625 # Object file extension for compiled f77 test sources.
18626 objext=o
18627 objext_F77=$objext
18628
18629 # Code to be used in simple compile tests
18630 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18631
18632 # Code to be used in simple link tests
18633 lt_simple_link_test_code="      program t\n      end\n"
18634
18635 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18636
18637 # If no C compiler was specified, use CC.
18638 LTCC=${LTCC-"$CC"}
18639
18640 # Allow CC to be a program name with arguments.
18641 compiler=$CC
18642
18643
18644 # Allow CC to be a program name with arguments.
18645 lt_save_CC="$CC"
18646 CC=${F77-"f77"}
18647 compiler=$CC
18648 compiler_F77=$CC
18649 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18650
18651 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18652 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18653 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18654 echo "${ECHO_T}$can_build_shared" >&6
18655
18656 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18657 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18658 test "$can_build_shared" = "no" && enable_shared=no
18659
18660 # On AIX, shared libraries and static libraries use the same namespace, and
18661 # are all built from PIC.
18662 case "$host_os" in
18663 aix3*)
18664   test "$enable_shared" = yes && enable_static=no
18665   if test -n "$RANLIB"; then
18666     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18667     postinstall_cmds='$RANLIB $lib'
18668   fi
18669   ;;
18670 aix4* | aix5*)
18671   test "$enable_shared" = yes && enable_static=no
18672   ;;
18673 esac
18674 echo "$as_me:$LINENO: result: $enable_shared" >&5
18675 echo "${ECHO_T}$enable_shared" >&6
18676
18677 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18678 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18679 # Make sure either enable_shared or enable_static is yes.
18680 test "$enable_shared" = yes || enable_static=yes
18681 echo "$as_me:$LINENO: result: $enable_static" >&5
18682 echo "${ECHO_T}$enable_static" >&6
18683
18684 test "$ld_shlibs_F77" = no && can_build_shared=no
18685
18686 GCC_F77="$G77"
18687 LD_F77="$LD"
18688
18689 lt_prog_compiler_wl_F77=
18690 lt_prog_compiler_pic_F77=
18691 lt_prog_compiler_static_F77=
18692
18693 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18694 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18695
18696   if test "$GCC" = yes; then
18697     lt_prog_compiler_wl_F77='-Wl,'
18698     lt_prog_compiler_static_F77='-static'
18699
18700     case $host_os in
18701       aix*)
18702       # All AIX code is PIC.
18703       if test "$host_cpu" = ia64; then
18704         # AIX 5 now supports IA64 processor
18705         lt_prog_compiler_static_F77='-Bstatic'
18706       fi
18707       ;;
18708
18709     amigaos*)
18710       # FIXME: we need at least 68020 code to build shared libraries, but
18711       # adding the `-m68020' flag to GCC prevents building anything better,
18712       # like `-m68040'.
18713       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18714       ;;
18715
18716     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18717       # PIC is the default for these OSes.
18718       ;;
18719
18720     mingw* | pw32* | os2*)
18721       # This hack is so that the source file can tell whether it is being
18722       # built for inclusion in a dll (and should export symbols for example).
18723       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18724       ;;
18725
18726     darwin* | rhapsody*)
18727       # PIC is the default on this platform
18728       # Common symbols not allowed in MH_DYLIB files
18729       lt_prog_compiler_pic_F77='-fno-common'
18730       ;;
18731
18732     msdosdjgpp*)
18733       # Just because we use GCC doesn't mean we suddenly get shared libraries
18734       # on systems that don't support them.
18735       lt_prog_compiler_can_build_shared_F77=no
18736       enable_shared=no
18737       ;;
18738
18739     sysv4*MP*)
18740       if test -d /usr/nec; then
18741         lt_prog_compiler_pic_F77=-Kconform_pic
18742       fi
18743       ;;
18744
18745     hpux*)
18746       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18747       # not for PA HP-UX.
18748       case "$host_cpu" in
18749       hppa*64*|ia64*)
18750         # +Z the default
18751         ;;
18752       *)
18753         lt_prog_compiler_pic_F77='-fPIC'
18754         ;;
18755       esac
18756       ;;
18757
18758     *)
18759       lt_prog_compiler_pic_F77='-fPIC'
18760       ;;
18761     esac
18762   else
18763     # PORTME Check for flag to pass linker flags through the system compiler.
18764     case $host_os in
18765     aix*)
18766       lt_prog_compiler_wl_F77='-Wl,'
18767       if test "$host_cpu" = ia64; then
18768         # AIX 5 now supports IA64 processor
18769         lt_prog_compiler_static_F77='-Bstatic'
18770       else
18771         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18772       fi
18773       ;;
18774       darwin*)
18775         # PIC is the default on this platform
18776         # Common symbols not allowed in MH_DYLIB files
18777        case "$cc_basename" in
18778          xlc*)
18779          lt_prog_compiler_pic_F77='-qnocommon'
18780          lt_prog_compiler_wl_F77='-Wl,'
18781          ;;
18782        esac
18783        ;;
18784
18785     mingw* | pw32* | os2*)
18786       # This hack is so that the source file can tell whether it is being
18787       # built for inclusion in a dll (and should export symbols for example).
18788       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18789       ;;
18790
18791     hpux9* | hpux10* | hpux11*)
18792       lt_prog_compiler_wl_F77='-Wl,'
18793       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18794       # not for PA HP-UX.
18795       case "$host_cpu" in
18796       hppa*64*|ia64*)
18797         # +Z the default
18798         ;;
18799       *)
18800         lt_prog_compiler_pic_F77='+Z'
18801         ;;
18802       esac
18803       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18804       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18805       ;;
18806
18807     irix5* | irix6* | nonstopux*)
18808       lt_prog_compiler_wl_F77='-Wl,'
18809       # PIC (with -KPIC) is the default.
18810       lt_prog_compiler_static_F77='-non_shared'
18811       ;;
18812
18813     newsos6)
18814       lt_prog_compiler_pic_F77='-KPIC'
18815       lt_prog_compiler_static_F77='-Bstatic'
18816       ;;
18817
18818     linux*)
18819       case $CC in
18820       icc* | ecc*)
18821         lt_prog_compiler_wl_F77='-Wl,'
18822         lt_prog_compiler_pic_F77='-KPIC'
18823         lt_prog_compiler_static_F77='-static'
18824         ;;
18825       ccc*)
18826         lt_prog_compiler_wl_F77='-Wl,'
18827         # All Alpha code is PIC.
18828         lt_prog_compiler_static_F77='-non_shared'
18829         ;;
18830       esac
18831       ;;
18832
18833     osf3* | osf4* | osf5*)
18834       lt_prog_compiler_wl_F77='-Wl,'
18835       # All OSF/1 code is PIC.
18836       lt_prog_compiler_static_F77='-non_shared'
18837       ;;
18838
18839     sco3.2v5*)
18840       lt_prog_compiler_pic_F77='-Kpic'
18841       lt_prog_compiler_static_F77='-dn'
18842       ;;
18843
18844     solaris*)
18845       lt_prog_compiler_wl_F77='-Wl,'
18846       lt_prog_compiler_pic_F77='-KPIC'
18847       lt_prog_compiler_static_F77='-Bstatic'
18848       ;;
18849
18850     sunos4*)
18851       lt_prog_compiler_wl_F77='-Qoption ld '
18852       lt_prog_compiler_pic_F77='-PIC'
18853       lt_prog_compiler_static_F77='-Bstatic'
18854       ;;
18855
18856     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18857       lt_prog_compiler_wl_F77='-Wl,'
18858       lt_prog_compiler_pic_F77='-KPIC'
18859       lt_prog_compiler_static_F77='-Bstatic'
18860       ;;
18861
18862     sysv4*MP*)
18863       if test -d /usr/nec ;then
18864         lt_prog_compiler_pic_F77='-Kconform_pic'
18865         lt_prog_compiler_static_F77='-Bstatic'
18866       fi
18867       ;;
18868
18869     uts4*)
18870       lt_prog_compiler_pic_F77='-pic'
18871       lt_prog_compiler_static_F77='-Bstatic'
18872       ;;
18873
18874     *)
18875       lt_prog_compiler_can_build_shared_F77=no
18876       ;;
18877     esac
18878   fi
18879
18880 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18881 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18882
18883 #
18884 # Check to make sure the PIC flag actually works.
18885 #
18886 if test -n "$lt_prog_compiler_pic_F77"; then
18887
18888 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18889 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18890 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18891   echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893   lt_prog_compiler_pic_works_F77=no
18894   ac_outfile=conftest.$ac_objext
18895    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18896    lt_compiler_flag="$lt_prog_compiler_pic_F77"
18897    # Insert the option either (1) after the last *FLAGS variable, or
18898    # (2) before a word containing "conftest.", or (3) at the end.
18899    # Note that $ac_compile itself does not contain backslashes and begins
18900    # with a dollar sign (not a hyphen), so the echo should work correctly.
18901    # The option is referenced via a variable to avoid confusing sed.
18902    lt_compile=`echo "$ac_compile" | $SED \
18903    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18904    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18905    -e 's:$: $lt_compiler_flag:'`
18906    (eval echo "\"\$as_me:18906: $lt_compile\"" >&5)
18907    (eval "$lt_compile" 2>conftest.err)
18908    ac_status=$?
18909    cat conftest.err >&5
18910    echo "$as_me:18910: \$? = $ac_status" >&5
18911    if (exit $ac_status) && test -s "$ac_outfile"; then
18912      # The compiler can only warn and ignore the option if not recognized
18913      # So say no if there are warnings
18914      if test ! -s conftest.err; then
18915        lt_prog_compiler_pic_works_F77=yes
18916      fi
18917    fi
18918    $rm conftest*
18919
18920 fi
18921 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18922 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18923
18924 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18925     case $lt_prog_compiler_pic_F77 in
18926      "" | " "*) ;;
18927      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18928      esac
18929 else
18930     lt_prog_compiler_pic_F77=
18931      lt_prog_compiler_can_build_shared_F77=no
18932 fi
18933
18934 fi
18935 case "$host_os" in
18936   # For platforms which do not support PIC, -DPIC is meaningless:
18937   *djgpp*)
18938     lt_prog_compiler_pic_F77=
18939     ;;
18940   *)
18941     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18942     ;;
18943 esac
18944
18945 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18946 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18947 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   lt_cv_prog_compiler_c_o_F77=no
18951    $rm -r conftest 2>/dev/null
18952    mkdir conftest
18953    cd conftest
18954    mkdir out
18955    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18956
18957    lt_compiler_flag="-o out/conftest2.$ac_objext"
18958    # Insert the option either (1) after the last *FLAGS variable, or
18959    # (2) before a word containing "conftest.", or (3) at the end.
18960    # Note that $ac_compile itself does not contain backslashes and begins
18961    # with a dollar sign (not a hyphen), so the echo should work correctly.
18962    lt_compile=`echo "$ac_compile" | $SED \
18963    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18964    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18965    -e 's:$: $lt_compiler_flag:'`
18966    (eval echo "\"\$as_me:18966: $lt_compile\"" >&5)
18967    (eval "$lt_compile" 2>out/conftest.err)
18968    ac_status=$?
18969    cat out/conftest.err >&5
18970    echo "$as_me:18970: \$? = $ac_status" >&5
18971    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18972    then
18973      # The compiler can only warn and ignore the option if not recognized
18974      # So say no if there are warnings
18975      if test ! -s out/conftest.err; then
18976        lt_cv_prog_compiler_c_o_F77=yes
18977      fi
18978    fi
18979    chmod u+w .
18980    $rm conftest*
18981    # SGI C++ compiler will create directory out/ii_files/ for
18982    # template instantiation
18983    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18984    $rm out/* && rmdir out
18985    cd ..
18986    rmdir conftest
18987    $rm conftest*
18988
18989 fi
18990 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18991 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18992
18993
18994 hard_links="nottested"
18995 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18996   # do not overwrite the value of need_locks provided by the user
18997   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18998 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18999   hard_links=yes
19000   $rm conftest*
19001   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19002   touch conftest.a
19003   ln conftest.a conftest.b 2>&5 || hard_links=no
19004   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19005   echo "$as_me:$LINENO: result: $hard_links" >&5
19006 echo "${ECHO_T}$hard_links" >&6
19007   if test "$hard_links" = no; then
19008     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19009 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19010     need_locks=warn
19011   fi
19012 else
19013   need_locks=no
19014 fi
19015
19016 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19017 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19018
19019   runpath_var=
19020   allow_undefined_flag_F77=
19021   enable_shared_with_static_runtimes_F77=no
19022   archive_cmds_F77=
19023   archive_expsym_cmds_F77=
19024   old_archive_From_new_cmds_F77=
19025   old_archive_from_expsyms_cmds_F77=
19026   export_dynamic_flag_spec_F77=
19027   whole_archive_flag_spec_F77=
19028   thread_safe_flag_spec_F77=
19029   hardcode_libdir_flag_spec_F77=
19030   hardcode_libdir_flag_spec_ld_F77=
19031   hardcode_libdir_separator_F77=
19032   hardcode_direct_F77=no
19033   hardcode_minus_L_F77=no
19034   hardcode_shlibpath_var_F77=unsupported
19035   link_all_deplibs_F77=unknown
19036   hardcode_automatic_F77=no
19037   module_cmds_F77=
19038   module_expsym_cmds_F77=
19039   always_export_symbols_F77=no
19040   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19041   # include_expsyms should be a list of space-separated symbols to be *always*
19042   # included in the symbol list
19043   include_expsyms_F77=
19044   # exclude_expsyms can be an extended regexp of symbols to exclude
19045   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19046   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19047   # as well as any symbol that contains `d'.
19048   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19049   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19050   # platforms (ab)use it in PIC code, but their linkers get confused if
19051   # the symbol is explicitly referenced.  Since portable code cannot
19052   # rely on this symbol name, it's probably fine to never include it in
19053   # preloaded symbol tables.
19054   extract_expsyms_cmds=
19055
19056   case $host_os in
19057   cygwin* | mingw* | pw32*)
19058     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19059     # When not using gcc, we currently assume that we are using
19060     # Microsoft Visual C++.
19061     if test "$GCC" != yes; then
19062       with_gnu_ld=no
19063     fi
19064     ;;
19065   openbsd*)
19066     with_gnu_ld=no
19067     ;;
19068   esac
19069
19070   ld_shlibs_F77=yes
19071   if test "$with_gnu_ld" = yes; then
19072     # If archive_cmds runs LD, not CC, wlarc should be empty
19073     wlarc='${wl}'
19074
19075     # See if GNU ld supports shared libraries.
19076     case $host_os in
19077     aix3* | aix4* | aix5*)
19078       # On AIX/PPC, the GNU linker is very broken
19079       if test "$host_cpu" != ia64; then
19080         ld_shlibs_F77=no
19081         cat <<EOF 1>&2
19082
19083 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19084 *** to be unable to reliably create shared libraries on AIX.
19085 *** Therefore, libtool is disabling shared libraries support.  If you
19086 *** really care for shared libraries, you may want to modify your PATH
19087 *** so that a non-GNU linker is found, and then restart.
19088
19089 EOF
19090       fi
19091       ;;
19092
19093     amigaos*)
19094       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)'
19095       hardcode_libdir_flag_spec_F77='-L$libdir'
19096       hardcode_minus_L_F77=yes
19097
19098       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19099       # that the semantics of dynamic libraries on AmigaOS, at least up
19100       # to version 4, is to share data among multiple programs linked
19101       # with the same dynamic library.  Since this doesn't match the
19102       # behavior of shared libraries on other platforms, we can't use
19103       # them.
19104       ld_shlibs_F77=no
19105       ;;
19106
19107     beos*)
19108       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19109         allow_undefined_flag_F77=unsupported
19110         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19111         # support --undefined.  This deserves some investigation.  FIXME
19112         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19113       else
19114         ld_shlibs_F77=no
19115       fi
19116       ;;
19117
19118     cygwin* | mingw* | pw32*)
19119       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19120       # as there is no search path for DLLs.
19121       hardcode_libdir_flag_spec_F77='-L$libdir'
19122       allow_undefined_flag_F77=unsupported
19123       always_export_symbols_F77=no
19124       enable_shared_with_static_runtimes_F77=yes
19125       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19126
19127       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19128         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19129         # If the export-symbols file already is a .def file (1st line
19130         # is EXPORTS), use it as is; otherwise, prepend...
19131         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19132           cp $export_symbols $output_objdir/$soname.def;
19133         else
19134           echo EXPORTS > $output_objdir/$soname.def;
19135           cat $export_symbols >> $output_objdir/$soname.def;
19136         fi~
19137         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19138       else
19139         ld_shlibs=no
19140       fi
19141       ;;
19142
19143     netbsd*)
19144       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19145         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19146         wlarc=
19147       else
19148         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19149         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19150       fi
19151       ;;
19152
19153     solaris* | sysv5*)
19154       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19155         ld_shlibs_F77=no
19156         cat <<EOF 1>&2
19157
19158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19159 *** create shared libraries on Solaris systems.  Therefore, libtool
19160 *** is disabling shared libraries support.  We urge you to upgrade GNU
19161 *** binutils to release 2.9.1 or newer.  Another option is to modify
19162 *** your PATH or compiler configuration so that the native linker is
19163 *** used, and then restart.
19164
19165 EOF
19166       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19167         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19168         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19169       else
19170         ld_shlibs_F77=no
19171       fi
19172       ;;
19173
19174     sunos4*)
19175       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19176       wlarc=
19177       hardcode_direct_F77=yes
19178       hardcode_shlibpath_var_F77=no
19179       ;;
19180
19181   linux*)
19182     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19183         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19184         archive_cmds_F77="$tmp_archive_cmds"
19185       supports_anon_versioning=no
19186       case `$LD -v 2>/dev/null` in
19187         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19188         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19189         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19190         *\ 2.11.*) ;; # other 2.11 versions
19191         *) supports_anon_versioning=yes ;;
19192       esac
19193       if test $supports_anon_versioning = yes; then
19194         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19195 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19196 $echo "local: *; };" >> $output_objdir/$libname.ver~
19197         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19198       else
19199         archive_expsym_cmds_F77="$tmp_archive_cmds"
19200       fi
19201     else
19202       ld_shlibs_F77=no
19203     fi
19204     ;;
19205
19206     *)
19207       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19208         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19209         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19210       else
19211         ld_shlibs_F77=no
19212       fi
19213       ;;
19214     esac
19215
19216     if test "$ld_shlibs_F77" = yes; then
19217       runpath_var=LD_RUN_PATH
19218       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19219       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19220       # ancient GNU ld didn't support --whole-archive et. al.
19221       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19222         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19223       else
19224         whole_archive_flag_spec_F77=
19225       fi
19226     fi
19227   else
19228     # PORTME fill in a description of your system's linker (not GNU ld)
19229     case $host_os in
19230     aix3*)
19231       allow_undefined_flag_F77=unsupported
19232       always_export_symbols_F77=yes
19233       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'
19234       # Note: this linker hardcodes the directories in LIBPATH if there
19235       # are no directories specified by -L.
19236       hardcode_minus_L_F77=yes
19237       if test "$GCC" = yes && test -z "$link_static_flag"; then
19238         # Neither direct hardcoding nor static linking is supported with a
19239         # broken collect2.
19240         hardcode_direct_F77=unsupported
19241       fi
19242       ;;
19243
19244     aix4* | aix5*)
19245       if test "$host_cpu" = ia64; then
19246         # On IA64, the linker does run time linking by default, so we don't
19247         # have to do anything special.
19248         aix_use_runtimelinking=no
19249         exp_sym_flag='-Bexport'
19250         no_entry_flag=""
19251       else
19252         # If we're using GNU nm, then we don't want the "-C" option.
19253         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19254         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19255           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'
19256         else
19257           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'
19258         fi
19259         aix_use_runtimelinking=no
19260
19261         # Test if we are trying to use run time linking or normal
19262         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19263         # need to do runtime linking.
19264         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19265           for ld_flag in $LDFLAGS; do
19266           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19267             aix_use_runtimelinking=yes
19268             break
19269           fi
19270           done
19271         esac
19272
19273         exp_sym_flag='-bexport'
19274         no_entry_flag='-bnoentry'
19275       fi
19276
19277       # When large executables or shared objects are built, AIX ld can
19278       # have problems creating the table of contents.  If linking a library
19279       # or program results in "error TOC overflow" add -mminimal-toc to
19280       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19281       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19282
19283       archive_cmds_F77=''
19284       hardcode_direct_F77=yes
19285       hardcode_libdir_separator_F77=':'
19286       link_all_deplibs_F77=yes
19287
19288       if test "$GCC" = yes; then
19289         case $host_os in aix4.012|aix4.012.*)
19290         # We only want to do this on AIX 4.2 and lower, the check
19291         # below for broken collect2 doesn't work under 4.3+
19292           collect2name=`${CC} -print-prog-name=collect2`
19293           if test -f "$collect2name" && \
19294            strings "$collect2name" | grep resolve_lib_name >/dev/null
19295           then
19296           # We have reworked collect2
19297           hardcode_direct_F77=yes
19298           else
19299           # We have old collect2
19300           hardcode_direct_F77=unsupported
19301           # It fails to find uninstalled libraries when the uninstalled
19302           # path is not listed in the libpath.  Setting hardcode_minus_L
19303           # to unsupported forces relinking
19304           hardcode_minus_L_F77=yes
19305           hardcode_libdir_flag_spec_F77='-L$libdir'
19306           hardcode_libdir_separator_F77=
19307           fi
19308         esac
19309         shared_flag='-shared'
19310       else
19311         # not using gcc
19312         if test "$host_cpu" = ia64; then
19313         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19314         # chokes on -Wl,-G. The following line is correct:
19315           shared_flag='-G'
19316         else
19317         if test "$aix_use_runtimelinking" = yes; then
19318             shared_flag='${wl}-G'
19319           else
19320             shared_flag='${wl}-bM:SRE'
19321         fi
19322         fi
19323       fi
19324
19325       # It seems that -bexpall does not export symbols beginning with
19326       # underscore (_), so it is better to generate a list of symbols to export.
19327       always_export_symbols_F77=yes
19328       if test "$aix_use_runtimelinking" = yes; then
19329         # Warning - without using the other runtime loading flags (-brtl),
19330         # -berok will link without error, but may produce a broken library.
19331         allow_undefined_flag_F77='-berok'
19332        # Determine the default libpath from the value encoded in an empty executable.
19333        cat >conftest.$ac_ext <<_ACEOF
19334       program main
19335
19336       end
19337 _ACEOF
19338 rm -f conftest.$ac_objext conftest$ac_exeext
19339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19340   (eval $ac_link) 2>conftest.er1
19341   ac_status=$?
19342   grep -v '^ *+' conftest.er1 >conftest.err
19343   rm -f conftest.er1
19344   cat conftest.err >&5
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); } &&
19347          { ac_try='test -z "$ac_f77_werror_flag"
19348                          || test ! -s conftest.err'
19349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350   (eval $ac_try) 2>&5
19351   ac_status=$?
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); }; } &&
19354          { ac_try='test -s conftest$ac_exeext'
19355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356   (eval $ac_try) 2>&5
19357   ac_status=$?
19358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359   (exit $ac_status); }; }; then
19360
19361 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19362 }'`
19363 # Check for a 64-bit object if we didn't find anything.
19364 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; }
19365 }'`; fi
19366 else
19367   echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370 fi
19371 rm -f conftest.err conftest.$ac_objext \
19372       conftest$ac_exeext conftest.$ac_ext
19373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19374
19375        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19376         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"
19377        else
19378         if test "$host_cpu" = ia64; then
19379           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19380           allow_undefined_flag_F77="-z nodefs"
19381           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"
19382         else
19383          # Determine the default libpath from the value encoded in an empty executable.
19384          cat >conftest.$ac_ext <<_ACEOF
19385       program main
19386
19387       end
19388 _ACEOF
19389 rm -f conftest.$ac_objext conftest$ac_exeext
19390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19391   (eval $ac_link) 2>conftest.er1
19392   ac_status=$?
19393   grep -v '^ *+' conftest.er1 >conftest.err
19394   rm -f conftest.er1
19395   cat conftest.err >&5
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); } &&
19398          { ac_try='test -z "$ac_f77_werror_flag"
19399                          || test ! -s conftest.err'
19400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401   (eval $ac_try) 2>&5
19402   ac_status=$?
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); }; } &&
19405          { ac_try='test -s conftest$ac_exeext'
19406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407   (eval $ac_try) 2>&5
19408   ac_status=$?
19409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410   (exit $ac_status); }; }; then
19411
19412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19413 }'`
19414 # Check for a 64-bit object if we didn't find anything.
19415 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; }
19416 }'`; fi
19417 else
19418   echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19420
19421 fi
19422 rm -f conftest.err conftest.$ac_objext \
19423       conftest$ac_exeext conftest.$ac_ext
19424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19425
19426          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19427           # Warning - without using the other run time loading flags,
19428           # -berok will link without error, but may produce a broken library.
19429           no_undefined_flag_F77=' ${wl}-bernotok'
19430           allow_undefined_flag_F77=' ${wl}-berok'
19431           # -bexpall does not export symbols beginning with underscore (_)
19432           always_export_symbols_F77=yes
19433           # Exported symbols can be pulled into shared objects from archives
19434           whole_archive_flag_spec_F77=' '
19435           archive_cmds_need_lc_F77=yes
19436           # This is similar to how AIX traditionally builds it's shared libraries.
19437           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'
19438         fi
19439       fi
19440       ;;
19441
19442     amigaos*)
19443       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)'
19444       hardcode_libdir_flag_spec_F77='-L$libdir'
19445       hardcode_minus_L_F77=yes
19446       # see comment about different semantics on the GNU ld section
19447       ld_shlibs_F77=no
19448       ;;
19449
19450     bsdi[45]*)
19451       export_dynamic_flag_spec_F77=-rdynamic
19452       ;;
19453
19454     cygwin* | mingw* | pw32*)
19455       # When not using gcc, we currently assume that we are using
19456       # Microsoft Visual C++.
19457       # hardcode_libdir_flag_spec is actually meaningless, as there is
19458       # no search path for DLLs.
19459       hardcode_libdir_flag_spec_F77=' '
19460       allow_undefined_flag_F77=unsupported
19461       # Tell ltmain to make .lib files, not .a files.
19462       libext=lib
19463       # Tell ltmain to make .dll files, not .so files.
19464       shrext_cmds=".dll"
19465       # FIXME: Setting linknames here is a bad hack.
19466       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19467       # The linker will automatically build a .lib file if we build a DLL.
19468       old_archive_From_new_cmds_F77='true'
19469       # FIXME: Should let the user specify the lib program.
19470       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19471       fix_srcfile_path='`cygpath -w "$srcfile"`'
19472       enable_shared_with_static_runtimes_F77=yes
19473       ;;
19474
19475     darwin* | rhapsody*)
19476       case "$host_os" in
19477         rhapsody* | darwin1.[012])
19478          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19479          ;;
19480        *) # Darwin 1.3 on
19481          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19482            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19483          else
19484            case ${MACOSX_DEPLOYMENT_TARGET} in
19485              10.[012])
19486                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19487                ;;
19488              10.*)
19489                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19490                ;;
19491            esac
19492          fi
19493          ;;
19494       esac
19495       archive_cmds_need_lc_F77=no
19496       hardcode_direct_F77=no
19497       hardcode_automatic_F77=yes
19498       hardcode_shlibpath_var_F77=unsupported
19499       whole_archive_flag_spec_F77=''
19500       link_all_deplibs_F77=yes
19501     if test "$GCC" = yes ; then
19502         output_verbose_link_cmd='echo'
19503         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19504       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19505       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19506       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}'
19507       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}'
19508     else
19509       case "$cc_basename" in
19510         xlc*)
19511          output_verbose_link_cmd='echo'
19512          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19513          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19514           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19515          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}'
19516           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}'
19517           ;;
19518        *)
19519          ld_shlibs_F77=no
19520           ;;
19521       esac
19522     fi
19523       ;;
19524
19525     dgux*)
19526       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19527       hardcode_libdir_flag_spec_F77='-L$libdir'
19528       hardcode_shlibpath_var_F77=no
19529       ;;
19530
19531     freebsd1*)
19532       ld_shlibs_F77=no
19533       ;;
19534
19535     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19536     # support.  Future versions do this automatically, but an explicit c++rt0.o
19537     # does not break anything, and helps significantly (at the cost of a little
19538     # extra space).
19539     freebsd2.2*)
19540       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19541       hardcode_libdir_flag_spec_F77='-R$libdir'
19542       hardcode_direct_F77=yes
19543       hardcode_shlibpath_var_F77=no
19544       ;;
19545
19546     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19547     freebsd2*)
19548       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19549       hardcode_direct_F77=yes
19550       hardcode_minus_L_F77=yes
19551       hardcode_shlibpath_var_F77=no
19552       ;;
19553
19554     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19555     freebsd* | kfreebsd*-gnu)
19556       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19557       hardcode_libdir_flag_spec_F77='-R$libdir'
19558       hardcode_direct_F77=yes
19559       hardcode_shlibpath_var_F77=no
19560       ;;
19561
19562     hpux9*)
19563       if test "$GCC" = yes; then
19564         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'
19565       else
19566         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'
19567       fi
19568       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19569       hardcode_libdir_separator_F77=:
19570       hardcode_direct_F77=yes
19571
19572       # hardcode_minus_L: Not really in the search PATH,
19573       # but as the default location of the library.
19574       hardcode_minus_L_F77=yes
19575       export_dynamic_flag_spec_F77='${wl}-E'
19576       ;;
19577
19578     hpux10* | hpux11*)
19579       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19580         case "$host_cpu" in
19581         hppa*64*|ia64*)
19582           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19583           ;;
19584         *)
19585           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19586           ;;
19587         esac
19588       else
19589         case "$host_cpu" in
19590         hppa*64*|ia64*)
19591           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19592           ;;
19593         *)
19594           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19595           ;;
19596         esac
19597       fi
19598       if test "$with_gnu_ld" = no; then
19599         case "$host_cpu" in
19600         hppa*64*)
19601           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19602           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19603           hardcode_libdir_separator_F77=:
19604           hardcode_direct_F77=no
19605           hardcode_shlibpath_var_F77=no
19606           ;;
19607         ia64*)
19608           hardcode_libdir_flag_spec_F77='-L$libdir'
19609           hardcode_direct_F77=no
19610           hardcode_shlibpath_var_F77=no
19611
19612           # hardcode_minus_L: Not really in the search PATH,
19613           # but as the default location of the library.
19614           hardcode_minus_L_F77=yes
19615           ;;
19616         *)
19617           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19618           hardcode_libdir_separator_F77=:
19619           hardcode_direct_F77=yes
19620           export_dynamic_flag_spec_F77='${wl}-E'
19621
19622           # hardcode_minus_L: Not really in the search PATH,
19623           # but as the default location of the library.
19624           hardcode_minus_L_F77=yes
19625           ;;
19626         esac
19627       fi
19628       ;;
19629
19630     irix5* | irix6* | nonstopux*)
19631       if test "$GCC" = yes; then
19632         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'
19633       else
19634         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'
19635         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19636       fi
19637       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19638       hardcode_libdir_separator_F77=:
19639       link_all_deplibs_F77=yes
19640       ;;
19641
19642     netbsd*)
19643       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19644         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19645       else
19646         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19647       fi
19648       hardcode_libdir_flag_spec_F77='-R$libdir'
19649       hardcode_direct_F77=yes
19650       hardcode_shlibpath_var_F77=no
19651       ;;
19652
19653     newsos6)
19654       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19655       hardcode_direct_F77=yes
19656       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19657       hardcode_libdir_separator_F77=:
19658       hardcode_shlibpath_var_F77=no
19659       ;;
19660
19661     openbsd*)
19662       hardcode_direct_F77=yes
19663       hardcode_shlibpath_var_F77=no
19664       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19665         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19666         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19667         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19668         export_dynamic_flag_spec_F77='${wl}-E'
19669       else
19670        case $host_os in
19671          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19672            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19673            hardcode_libdir_flag_spec_F77='-R$libdir'
19674            ;;
19675          *)
19676            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19677            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19678            ;;
19679        esac
19680       fi
19681       ;;
19682
19683     os2*)
19684       hardcode_libdir_flag_spec_F77='-L$libdir'
19685       hardcode_minus_L_F77=yes
19686       allow_undefined_flag_F77=unsupported
19687       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'
19688       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19689       ;;
19690
19691     osf3*)
19692       if test "$GCC" = yes; then
19693         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19694         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'
19695       else
19696         allow_undefined_flag_F77=' -expect_unresolved \*'
19697         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'
19698       fi
19699       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19700       hardcode_libdir_separator_F77=:
19701       ;;
19702
19703     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19704       if test "$GCC" = yes; then
19705         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19706         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'
19707         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19708       else
19709         allow_undefined_flag_F77=' -expect_unresolved \*'
19710         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'
19711         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~
19712         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
19713
19714         # Both c and cxx compiler support -rpath directly
19715         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19716       fi
19717       hardcode_libdir_separator_F77=:
19718       ;;
19719
19720     sco3.2v5*)
19721       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19722       hardcode_shlibpath_var_F77=no
19723       export_dynamic_flag_spec_F77='${wl}-Bexport'
19724       runpath_var=LD_RUN_PATH
19725       hardcode_runpath_var=yes
19726       ;;
19727
19728     solaris*)
19729       no_undefined_flag_F77=' -z text'
19730       if test "$GCC" = yes; then
19731         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19732         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19733           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19734       else
19735         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19736         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19737         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19738       fi
19739       hardcode_libdir_flag_spec_F77='-R$libdir'
19740       hardcode_shlibpath_var_F77=no
19741       case $host_os in
19742       solaris2.[0-5] | solaris2.[0-5].*) ;;
19743       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19744         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19745       esac
19746       link_all_deplibs_F77=yes
19747       ;;
19748
19749     sunos4*)
19750       if test "x$host_vendor" = xsequent; then
19751         # Use $CC to link under sequent, because it throws in some extra .o
19752         # files that make .init and .fini sections work.
19753         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19754       else
19755         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19756       fi
19757       hardcode_libdir_flag_spec_F77='-L$libdir'
19758       hardcode_direct_F77=yes
19759       hardcode_minus_L_F77=yes
19760       hardcode_shlibpath_var_F77=no
19761       ;;
19762
19763     sysv4)
19764       case $host_vendor in
19765         sni)
19766           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19767           hardcode_direct_F77=yes # is this really true???
19768         ;;
19769         siemens)
19770           ## LD is ld it makes a PLAMLIB
19771           ## CC just makes a GrossModule.
19772           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19773           reload_cmds_F77='$CC -r -o $output$reload_objs'
19774           hardcode_direct_F77=no
19775         ;;
19776         motorola)
19777           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19778           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19779         ;;
19780       esac
19781       runpath_var='LD_RUN_PATH'
19782       hardcode_shlibpath_var_F77=no
19783       ;;
19784
19785     sysv4.3*)
19786       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19787       hardcode_shlibpath_var_F77=no
19788       export_dynamic_flag_spec_F77='-Bexport'
19789       ;;
19790
19791     sysv4*MP*)
19792       if test -d /usr/nec; then
19793         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19794         hardcode_shlibpath_var_F77=no
19795         runpath_var=LD_RUN_PATH
19796         hardcode_runpath_var=yes
19797         ld_shlibs_F77=yes
19798       fi
19799       ;;
19800
19801     sysv4.2uw2*)
19802       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19803       hardcode_direct_F77=yes
19804       hardcode_minus_L_F77=no
19805       hardcode_shlibpath_var_F77=no
19806       hardcode_runpath_var=yes
19807       runpath_var=LD_RUN_PATH
19808       ;;
19809
19810    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19811       no_undefined_flag_F77='${wl}-z ${wl}text'
19812       if test "$GCC" = yes; then
19813         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19814       else
19815         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19816       fi
19817       runpath_var='LD_RUN_PATH'
19818       hardcode_shlibpath_var_F77=no
19819       ;;
19820
19821     sysv5*)
19822       no_undefined_flag_F77=' -z text'
19823       # $CC -shared without GNU ld will not create a library from C++
19824       # object files and a static libstdc++, better avoid it by now
19825       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19826       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19827                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19828       hardcode_libdir_flag_spec_F77=
19829       hardcode_shlibpath_var_F77=no
19830       runpath_var='LD_RUN_PATH'
19831       ;;
19832
19833     uts4*)
19834       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19835       hardcode_libdir_flag_spec_F77='-L$libdir'
19836       hardcode_shlibpath_var_F77=no
19837       ;;
19838
19839     *)
19840       ld_shlibs_F77=no
19841       ;;
19842     esac
19843   fi
19844
19845 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19846 echo "${ECHO_T}$ld_shlibs_F77" >&6
19847 test "$ld_shlibs_F77" = no && can_build_shared=no
19848
19849 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19850 if test "$GCC" = yes; then
19851   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19852 fi
19853
19854 #
19855 # Do we need to explicitly link libc?
19856 #
19857 case "x$archive_cmds_need_lc_F77" in
19858 x|xyes)
19859   # Assume -lc should be added
19860   archive_cmds_need_lc_F77=yes
19861
19862   if test "$enable_shared" = yes && test "$GCC" = yes; then
19863     case $archive_cmds_F77 in
19864     *'~'*)
19865       # FIXME: we may have to deal with multi-command sequences.
19866       ;;
19867     '$CC '*)
19868       # Test whether the compiler implicitly links with -lc since on some
19869       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19870       # to ld, don't add -lc before -lgcc.
19871       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19872 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19873       $rm conftest*
19874       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19875
19876       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19877   (eval $ac_compile) 2>&5
19878   ac_status=$?
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); } 2>conftest.err; then
19881         soname=conftest
19882         lib=conftest
19883         libobjs=conftest.$ac_objext
19884         deplibs=
19885         wl=$lt_prog_compiler_wl_F77
19886         compiler_flags=-v
19887         linker_flags=-v
19888         verstring=
19889         output_objdir=.
19890         libname=conftest
19891         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19892         allow_undefined_flag_F77=
19893         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19894   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19895   ac_status=$?
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); }
19898         then
19899           archive_cmds_need_lc_F77=no
19900         else
19901           archive_cmds_need_lc_F77=yes
19902         fi
19903         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19904       else
19905         cat conftest.err 1>&5
19906       fi
19907       $rm conftest*
19908       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19909 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19910       ;;
19911     esac
19912   fi
19913   ;;
19914 esac
19915
19916 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19917 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19918 library_names_spec=
19919 libname_spec='lib$name'
19920 soname_spec=
19921 shrext_cmds=".so"
19922 postinstall_cmds=
19923 postuninstall_cmds=
19924 finish_cmds=
19925 finish_eval=
19926 shlibpath_var=
19927 shlibpath_overrides_runpath=unknown
19928 version_type=none
19929 dynamic_linker="$host_os ld.so"
19930 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19931 if test "$GCC" = yes; then
19932   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19933   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19934     # if the path contains ";" then we assume it to be the separator
19935     # otherwise default to the standard path separator (i.e. ":") - it is
19936     # assumed that no part of a normal pathname contains ";" but that should
19937     # okay in the real world where ";" in dirpaths is itself problematic.
19938     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19939   else
19940     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19941   fi
19942 else
19943   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19944 fi
19945 need_lib_prefix=unknown
19946 hardcode_into_libs=no
19947
19948 # when you set need_version to no, make sure it does not cause -set_version
19949 # flags to be left without arguments
19950 need_version=unknown
19951
19952 case $host_os in
19953 aix3*)
19954   version_type=linux
19955   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19956   shlibpath_var=LIBPATH
19957
19958   # AIX 3 has no versioning support, so we append a major version to the name.
19959   soname_spec='${libname}${release}${shared_ext}$major'
19960   ;;
19961
19962 aix4* | aix5*)
19963   version_type=linux
19964   need_lib_prefix=no
19965   need_version=no
19966   hardcode_into_libs=yes
19967   if test "$host_cpu" = ia64; then
19968     # AIX 5 supports IA64
19969     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19970     shlibpath_var=LD_LIBRARY_PATH
19971   else
19972     # With GCC up to 2.95.x, collect2 would create an import file
19973     # for dependence libraries.  The import file would start with
19974     # the line `#! .'.  This would cause the generated library to
19975     # depend on `.', always an invalid library.  This was fixed in
19976     # development snapshots of GCC prior to 3.0.
19977     case $host_os in
19978       aix4 | aix4.[01] | aix4.[01].*)
19979       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19980            echo ' yes '
19981            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19982         :
19983       else
19984         can_build_shared=no
19985       fi
19986       ;;
19987     esac
19988     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19989     # soname into executable. Probably we can add versioning support to
19990     # collect2, so additional links can be useful in future.
19991     if test "$aix_use_runtimelinking" = yes; then
19992       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19993       # instead of lib<name>.a to let people know that these are not
19994       # typical AIX shared libraries.
19995       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19996     else
19997       # We preserve .a as extension for shared libraries through AIX4.2
19998       # and later when we are not doing run time linking.
19999       library_names_spec='${libname}${release}.a $libname.a'
20000       soname_spec='${libname}${release}${shared_ext}$major'
20001     fi
20002     shlibpath_var=LIBPATH
20003   fi
20004   ;;
20005
20006 amigaos*)
20007   library_names_spec='$libname.ixlibrary $libname.a'
20008   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20009   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'
20010   ;;
20011
20012 beos*)
20013   library_names_spec='${libname}${shared_ext}'
20014   dynamic_linker="$host_os ld.so"
20015   shlibpath_var=LIBRARY_PATH
20016   ;;
20017
20018 bsdi[45]*)
20019   version_type=linux
20020   need_version=no
20021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20022   soname_spec='${libname}${release}${shared_ext}$major'
20023   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20024   shlibpath_var=LD_LIBRARY_PATH
20025   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20026   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20027   # the default ld.so.conf also contains /usr/contrib/lib and
20028   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20029   # libtool to hard-code these into programs
20030   ;;
20031
20032 cygwin* | mingw* | pw32*)
20033   version_type=windows
20034   shrext_cmds=".dll"
20035   need_version=no
20036   need_lib_prefix=no
20037
20038   case $GCC,$host_os in
20039   yes,cygwin* | yes,mingw* | yes,pw32*)
20040     library_names_spec='$libname.dll.a'
20041     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20042     postinstall_cmds='base_file=`basename \${file}`~
20043       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20044       dldir=$destdir/`dirname \$dlpath`~
20045       test -d \$dldir || mkdir -p \$dldir~
20046       $install_prog $dir/$dlname \$dldir/$dlname'
20047     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20048       dlpath=$dir/\$dldll~
20049        $rm \$dlpath'
20050     shlibpath_overrides_runpath=yes
20051
20052     case $host_os in
20053     cygwin*)
20054       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20055       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20056       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20057       ;;
20058     mingw*)
20059       # MinGW DLLs use traditional 'lib' prefix
20060       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20061       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20062       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20063         # It is most probably a Windows format PATH printed by
20064         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20065         # path with ; separators, and with drive letters. We can handle the
20066         # drive letters (cygwin fileutils understands them), so leave them,
20067         # especially as we might pass files found there to a mingw objdump,
20068         # which wouldn't understand a cygwinified path. Ahh.
20069         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20070       else
20071         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20072       fi
20073       ;;
20074     pw32*)
20075       # pw32 DLLs use 'pw' prefix rather than 'lib'
20076       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20077       ;;
20078     esac
20079     ;;
20080
20081   *)
20082     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20083     ;;
20084   esac
20085   dynamic_linker='Win32 ld.exe'
20086   # FIXME: first we should search . and the directory the executable is in
20087   shlibpath_var=PATH
20088   ;;
20089
20090 darwin* | rhapsody*)
20091   dynamic_linker="$host_os dyld"
20092   version_type=darwin
20093   need_lib_prefix=no
20094   need_version=no
20095   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20096   soname_spec='${libname}${release}${major}$shared_ext'
20097   shlibpath_overrides_runpath=yes
20098   shlibpath_var=DYLD_LIBRARY_PATH
20099   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20100   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20101   if test "$GCC" = yes; then
20102     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"`
20103   else
20104     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20105   fi
20106   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20107   ;;
20108
20109 dgux*)
20110   version_type=linux
20111   need_lib_prefix=no
20112   need_version=no
20113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20114   soname_spec='${libname}${release}${shared_ext}$major'
20115   shlibpath_var=LD_LIBRARY_PATH
20116   ;;
20117
20118 freebsd1*)
20119   dynamic_linker=no
20120   ;;
20121
20122 kfreebsd*-gnu)
20123   version_type=linux
20124   need_lib_prefix=no
20125   need_version=no
20126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20127   soname_spec='${libname}${release}${shared_ext}$major'
20128   shlibpath_var=LD_LIBRARY_PATH
20129   shlibpath_overrides_runpath=no
20130   hardcode_into_libs=yes
20131   dynamic_linker='GNU ld.so'
20132   ;;
20133
20134 freebsd*)
20135   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20136   version_type=freebsd-$objformat
20137   case $version_type in
20138     freebsd-elf*)
20139       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20140       need_version=no
20141       need_lib_prefix=no
20142       ;;
20143     freebsd-*)
20144       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20145       need_version=yes
20146       ;;
20147   esac
20148   shlibpath_var=LD_LIBRARY_PATH
20149   case $host_os in
20150   freebsd2*)
20151     shlibpath_overrides_runpath=yes
20152     ;;
20153   freebsd3.01* | freebsdelf3.01*)
20154     shlibpath_overrides_runpath=yes
20155     hardcode_into_libs=yes
20156     ;;
20157   *) # from 3.2 on
20158     shlibpath_overrides_runpath=no
20159     hardcode_into_libs=yes
20160     ;;
20161   esac
20162   ;;
20163
20164 gnu*)
20165   version_type=linux
20166   need_lib_prefix=no
20167   need_version=no
20168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20169   soname_spec='${libname}${release}${shared_ext}$major'
20170   shlibpath_var=LD_LIBRARY_PATH
20171   hardcode_into_libs=yes
20172   ;;
20173
20174 hpux9* | hpux10* | hpux11*)
20175   # Give a soname corresponding to the major version so that dld.sl refuses to
20176   # link against other versions.
20177   version_type=sunos
20178   need_lib_prefix=no
20179   need_version=no
20180   case "$host_cpu" in
20181   ia64*)
20182     shrext_cmds='.so'
20183     hardcode_into_libs=yes
20184     dynamic_linker="$host_os dld.so"
20185     shlibpath_var=LD_LIBRARY_PATH
20186     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20188     soname_spec='${libname}${release}${shared_ext}$major'
20189     if test "X$HPUX_IA64_MODE" = X32; then
20190       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20191     else
20192       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20193     fi
20194     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20195     ;;
20196    hppa*64*)
20197      shrext_cmds='.sl'
20198      hardcode_into_libs=yes
20199      dynamic_linker="$host_os dld.sl"
20200      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20201      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20202      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20203      soname_spec='${libname}${release}${shared_ext}$major'
20204      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20205      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20206      ;;
20207    *)
20208     shrext_cmds='.sl'
20209     dynamic_linker="$host_os dld.sl"
20210     shlibpath_var=SHLIB_PATH
20211     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20213     soname_spec='${libname}${release}${shared_ext}$major'
20214     ;;
20215   esac
20216   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20217   postinstall_cmds='chmod 555 $lib'
20218   ;;
20219
20220 irix5* | irix6* | nonstopux*)
20221   case $host_os in
20222     nonstopux*) version_type=nonstopux ;;
20223     *)
20224         if test "$lt_cv_prog_gnu_ld" = yes; then
20225                 version_type=linux
20226         else
20227                 version_type=irix
20228         fi ;;
20229   esac
20230   need_lib_prefix=no
20231   need_version=no
20232   soname_spec='${libname}${release}${shared_ext}$major'
20233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20234   case $host_os in
20235   irix5* | nonstopux*)
20236     libsuff= shlibsuff=
20237     ;;
20238   *)
20239     case $LD in # libtool.m4 will add one of these switches to LD
20240     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20241       libsuff= shlibsuff= libmagic=32-bit;;
20242     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20243       libsuff=32 shlibsuff=N32 libmagic=N32;;
20244     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20245       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20246     *) libsuff= shlibsuff= libmagic=never-match;;
20247     esac
20248     ;;
20249   esac
20250   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20251   shlibpath_overrides_runpath=no
20252   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20253   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20254   hardcode_into_libs=yes
20255   ;;
20256
20257 # No shared lib support for Linux oldld, aout, or coff.
20258 linux*oldld* | linux*aout* | linux*coff*)
20259   dynamic_linker=no
20260   ;;
20261
20262 # This must be Linux ELF.
20263 linux*)
20264   version_type=linux
20265   need_lib_prefix=no
20266   need_version=no
20267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20268   soname_spec='${libname}${release}${shared_ext}$major'
20269   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20270   shlibpath_var=LD_LIBRARY_PATH
20271   shlibpath_overrides_runpath=no
20272   # This implies no fast_install, which is unacceptable.
20273   # Some rework will be needed to allow for fast_install
20274   # before this can be enabled.
20275   hardcode_into_libs=yes
20276
20277   # Append ld.so.conf contents to the search path
20278   if test -f /etc/ld.so.conf; then
20279     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20280     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20281   fi
20282
20283   # We used to test for /lib/ld.so.1 and disable shared libraries on
20284   # powerpc, because MkLinux only supported shared libraries with the
20285   # GNU dynamic linker.  Since this was broken with cross compilers,
20286   # most powerpc-linux boxes support dynamic linking these days and
20287   # people can always --disable-shared, the test was removed, and we
20288   # assume the GNU/Linux dynamic linker is in use.
20289   dynamic_linker='GNU/Linux ld.so'
20290   ;;
20291
20292 knetbsd*-gnu)
20293   version_type=linux
20294   need_lib_prefix=no
20295   need_version=no
20296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20297   soname_spec='${libname}${release}${shared_ext}$major'
20298   shlibpath_var=LD_LIBRARY_PATH
20299   shlibpath_overrides_runpath=no
20300   hardcode_into_libs=yes
20301   dynamic_linker='GNU ld.so'
20302   ;;
20303
20304 netbsd*)
20305   version_type=sunos
20306   need_lib_prefix=no
20307   need_version=no
20308   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20310     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20311     dynamic_linker='NetBSD (a.out) ld.so'
20312   else
20313     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20314     soname_spec='${libname}${release}${shared_ext}$major'
20315     dynamic_linker='NetBSD ld.elf_so'
20316   fi
20317   shlibpath_var=LD_LIBRARY_PATH
20318   shlibpath_overrides_runpath=yes
20319   hardcode_into_libs=yes
20320   ;;
20321
20322 newsos6)
20323   version_type=linux
20324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325   shlibpath_var=LD_LIBRARY_PATH
20326   shlibpath_overrides_runpath=yes
20327   ;;
20328
20329 nto-qnx*)
20330   version_type=linux
20331   need_lib_prefix=no
20332   need_version=no
20333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20334   soname_spec='${libname}${release}${shared_ext}$major'
20335   shlibpath_var=LD_LIBRARY_PATH
20336   shlibpath_overrides_runpath=yes
20337   ;;
20338
20339 openbsd*)
20340   version_type=sunos
20341   need_lib_prefix=no
20342   need_version=no
20343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20344   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20345   shlibpath_var=LD_LIBRARY_PATH
20346   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20347     case $host_os in
20348       openbsd2.[89] | openbsd2.[89].*)
20349         shlibpath_overrides_runpath=no
20350         ;;
20351       *)
20352         shlibpath_overrides_runpath=yes
20353         ;;
20354       esac
20355   else
20356     shlibpath_overrides_runpath=yes
20357   fi
20358   ;;
20359
20360 os2*)
20361   libname_spec='$name'
20362   shrext_cmds=".dll"
20363   need_lib_prefix=no
20364   library_names_spec='$libname${shared_ext} $libname.a'
20365   dynamic_linker='OS/2 ld.exe'
20366   shlibpath_var=LIBPATH
20367   ;;
20368
20369 osf3* | osf4* | osf5*)
20370   version_type=osf
20371   need_lib_prefix=no
20372   need_version=no
20373   soname_spec='${libname}${release}${shared_ext}$major'
20374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375   shlibpath_var=LD_LIBRARY_PATH
20376   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20377   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20378   ;;
20379
20380 sco3.2v5*)
20381   version_type=osf
20382   soname_spec='${libname}${release}${shared_ext}$major'
20383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20384   shlibpath_var=LD_LIBRARY_PATH
20385   ;;
20386
20387 solaris*)
20388   version_type=linux
20389   need_lib_prefix=no
20390   need_version=no
20391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20392   soname_spec='${libname}${release}${shared_ext}$major'
20393   shlibpath_var=LD_LIBRARY_PATH
20394   shlibpath_overrides_runpath=yes
20395   hardcode_into_libs=yes
20396   # ldd complains unless libraries are executable
20397   postinstall_cmds='chmod +x $lib'
20398   ;;
20399
20400 sunos4*)
20401   version_type=sunos
20402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20403   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20404   shlibpath_var=LD_LIBRARY_PATH
20405   shlibpath_overrides_runpath=yes
20406   if test "$with_gnu_ld" = yes; then
20407     need_lib_prefix=no
20408   fi
20409   need_version=yes
20410   ;;
20411
20412 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20413   version_type=linux
20414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20415   soname_spec='${libname}${release}${shared_ext}$major'
20416   shlibpath_var=LD_LIBRARY_PATH
20417   case $host_vendor in
20418     sni)
20419       shlibpath_overrides_runpath=no
20420       need_lib_prefix=no
20421       export_dynamic_flag_spec='${wl}-Blargedynsym'
20422       runpath_var=LD_RUN_PATH
20423       ;;
20424     siemens)
20425       need_lib_prefix=no
20426       ;;
20427     motorola)
20428       need_lib_prefix=no
20429       need_version=no
20430       shlibpath_overrides_runpath=no
20431       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20432       ;;
20433   esac
20434   ;;
20435
20436 sysv4*MP*)
20437   if test -d /usr/nec ;then
20438     version_type=linux
20439     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20440     soname_spec='$libname${shared_ext}.$major'
20441     shlibpath_var=LD_LIBRARY_PATH
20442   fi
20443   ;;
20444
20445 uts4*)
20446   version_type=linux
20447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20448   soname_spec='${libname}${release}${shared_ext}$major'
20449   shlibpath_var=LD_LIBRARY_PATH
20450   ;;
20451
20452 *)
20453   dynamic_linker=no
20454   ;;
20455 esac
20456 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20457 echo "${ECHO_T}$dynamic_linker" >&6
20458 test "$dynamic_linker" = no && can_build_shared=no
20459
20460 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20461 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20462 hardcode_action_F77=
20463 if test -n "$hardcode_libdir_flag_spec_F77" || \
20464    test -n "$runpath_var_F77" || \
20465    test "X$hardcode_automatic_F77" = "Xyes" ; then
20466
20467   # We can hardcode non-existant directories.
20468   if test "$hardcode_direct_F77" != no &&
20469      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20470      # have to relink, otherwise we might link with an installed library
20471      # when we should be linking with a yet-to-be-installed one
20472      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20473      test "$hardcode_minus_L_F77" != no; then
20474     # Linking always hardcodes the temporary library directory.
20475     hardcode_action_F77=relink
20476   else
20477     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20478     hardcode_action_F77=immediate
20479   fi
20480 else
20481   # We cannot hardcode anything, or else we can only hardcode existing
20482   # directories.
20483   hardcode_action_F77=unsupported
20484 fi
20485 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20486 echo "${ECHO_T}$hardcode_action_F77" >&6
20487
20488 if test "$hardcode_action_F77" = relink; then
20489   # Fast installation is not supported
20490   enable_fast_install=no
20491 elif test "$shlibpath_overrides_runpath" = yes ||
20492      test "$enable_shared" = no; then
20493   # Fast installation is not necessary
20494   enable_fast_install=needless
20495 fi
20496
20497 striplib=
20498 old_striplib=
20499 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20500 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20501 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20502   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20503   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20504   echo "$as_me:$LINENO: result: yes" >&5
20505 echo "${ECHO_T}yes" >&6
20506 else
20507 # FIXME - insert some real tests, host_os isn't really good enough
20508   case $host_os in
20509    darwin*)
20510        if test -n "$STRIP" ; then
20511          striplib="$STRIP -x"
20512          echo "$as_me:$LINENO: result: yes" >&5
20513 echo "${ECHO_T}yes" >&6
20514        else
20515   echo "$as_me:$LINENO: result: no" >&5
20516 echo "${ECHO_T}no" >&6
20517 fi
20518        ;;
20519    *)
20520   echo "$as_me:$LINENO: result: no" >&5
20521 echo "${ECHO_T}no" >&6
20522     ;;
20523   esac
20524 fi
20525
20526
20527
20528 # The else clause should only fire when bootstrapping the
20529 # libtool distribution, otherwise you forgot to ship ltmain.sh
20530 # with your package, and you will get complaints that there are
20531 # no rules to generate ltmain.sh.
20532 if test -f "$ltmain"; then
20533   # See if we are running on zsh, and set the options which allow our commands through
20534   # without removal of \ escapes.
20535   if test -n "${ZSH_VERSION+set}" ; then
20536     setopt NO_GLOB_SUBST
20537   fi
20538   # Now quote all the things that may contain metacharacters while being
20539   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20540   # variables and quote the copies for generation of the libtool script.
20541   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20542     SED SHELL STRIP \
20543     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20544     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20545     deplibs_check_method reload_flag reload_cmds need_locks \
20546     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20547     lt_cv_sys_global_symbol_to_c_name_address \
20548     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20549     old_postinstall_cmds old_postuninstall_cmds \
20550     compiler_F77 \
20551     CC_F77 \
20552     LD_F77 \
20553     lt_prog_compiler_wl_F77 \
20554     lt_prog_compiler_pic_F77 \
20555     lt_prog_compiler_static_F77 \
20556     lt_prog_compiler_no_builtin_flag_F77 \
20557     export_dynamic_flag_spec_F77 \
20558     thread_safe_flag_spec_F77 \
20559     whole_archive_flag_spec_F77 \
20560     enable_shared_with_static_runtimes_F77 \
20561     old_archive_cmds_F77 \
20562     old_archive_from_new_cmds_F77 \
20563     predep_objects_F77 \
20564     postdep_objects_F77 \
20565     predeps_F77 \
20566     postdeps_F77 \
20567     compiler_lib_search_path_F77 \
20568     archive_cmds_F77 \
20569     archive_expsym_cmds_F77 \
20570     postinstall_cmds_F77 \
20571     postuninstall_cmds_F77 \
20572     old_archive_from_expsyms_cmds_F77 \
20573     allow_undefined_flag_F77 \
20574     no_undefined_flag_F77 \
20575     export_symbols_cmds_F77 \
20576     hardcode_libdir_flag_spec_F77 \
20577     hardcode_libdir_flag_spec_ld_F77 \
20578     hardcode_libdir_separator_F77 \
20579     hardcode_automatic_F77 \
20580     module_cmds_F77 \
20581     module_expsym_cmds_F77 \
20582     lt_cv_prog_compiler_c_o_F77 \
20583     exclude_expsyms_F77 \
20584     include_expsyms_F77; do
20585
20586     case $var in
20587     old_archive_cmds_F77 | \
20588     old_archive_from_new_cmds_F77 | \
20589     archive_cmds_F77 | \
20590     archive_expsym_cmds_F77 | \
20591     module_cmds_F77 | \
20592     module_expsym_cmds_F77 | \
20593     old_archive_from_expsyms_cmds_F77 | \
20594     export_symbols_cmds_F77 | \
20595     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20596     postinstall_cmds | postuninstall_cmds | \
20597     old_postinstall_cmds | old_postuninstall_cmds | \
20598     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20599       # Double-quote double-evaled strings.
20600       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20601       ;;
20602     *)
20603       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20604       ;;
20605     esac
20606   done
20607
20608   case $lt_echo in
20609   *'\$0 --fallback-echo"')
20610     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20611     ;;
20612   esac
20613
20614 cfgfile="$ofile"
20615
20616   cat <<__EOF__ >> "$cfgfile"
20617 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20618
20619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20620
20621 # Shell to use when invoking shell scripts.
20622 SHELL=$lt_SHELL
20623
20624 # Whether or not to build shared libraries.
20625 build_libtool_libs=$enable_shared
20626
20627 # Whether or not to build static libraries.
20628 build_old_libs=$enable_static
20629
20630 # Whether or not to add -lc for building shared libraries.
20631 build_libtool_need_lc=$archive_cmds_need_lc_F77
20632
20633 # Whether or not to disallow shared libs when runtime libs are static
20634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20635
20636 # Whether or not to optimize for fast installation.
20637 fast_install=$enable_fast_install
20638
20639 # The host system.
20640 host_alias=$host_alias
20641 host=$host
20642
20643 # An echo program that does not interpret backslashes.
20644 echo=$lt_echo
20645
20646 # The archiver.
20647 AR=$lt_AR
20648 AR_FLAGS=$lt_AR_FLAGS
20649
20650 # A C compiler.
20651 LTCC=$lt_LTCC
20652
20653 # A language-specific compiler.
20654 CC=$lt_compiler_F77
20655
20656 # Is the compiler the GNU C compiler?
20657 with_gcc=$GCC_F77
20658
20659 # An ERE matcher.
20660 EGREP=$lt_EGREP
20661
20662 # The linker used to build libraries.
20663 LD=$lt_LD_F77
20664
20665 # Whether we need hard or soft links.
20666 LN_S=$lt_LN_S
20667
20668 # A BSD-compatible nm program.
20669 NM=$lt_NM
20670
20671 # A symbol stripping program
20672 STRIP=$lt_STRIP
20673
20674 # Used to examine libraries when file_magic_cmd begins "file"
20675 MAGIC_CMD=$MAGIC_CMD
20676
20677 # Used on cygwin: DLL creation program.
20678 DLLTOOL="$DLLTOOL"
20679
20680 # Used on cygwin: object dumper.
20681 OBJDUMP="$OBJDUMP"
20682
20683 # Used on cygwin: assembler.
20684 AS="$AS"
20685
20686 # The name of the directory that contains temporary libtool files.
20687 objdir=$objdir
20688
20689 # How to create reloadable object files.
20690 reload_flag=$lt_reload_flag
20691 reload_cmds=$lt_reload_cmds
20692
20693 # How to pass a linker flag through the compiler.
20694 wl=$lt_lt_prog_compiler_wl_F77
20695
20696 # Object file suffix (normally "o").
20697 objext="$ac_objext"
20698
20699 # Old archive suffix (normally "a").
20700 libext="$libext"
20701
20702 # Shared library suffix (normally ".so").
20703 shrext_cmds='$shrext_cmds'
20704
20705 # Executable file suffix (normally "").
20706 exeext="$exeext"
20707
20708 # Additional compiler flags for building library objects.
20709 pic_flag=$lt_lt_prog_compiler_pic_F77
20710 pic_mode=$pic_mode
20711
20712 # What is the maximum length of a command?
20713 max_cmd_len=$lt_cv_sys_max_cmd_len
20714
20715 # Does compiler simultaneously support -c and -o options?
20716 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20717
20718 # Must we lock files when doing compilation ?
20719 need_locks=$lt_need_locks
20720
20721 # Do we need the lib prefix for modules?
20722 need_lib_prefix=$need_lib_prefix
20723
20724 # Do we need a version for libraries?
20725 need_version=$need_version
20726
20727 # Whether dlopen is supported.
20728 dlopen_support=$enable_dlopen
20729
20730 # Whether dlopen of programs is supported.
20731 dlopen_self=$enable_dlopen_self
20732
20733 # Whether dlopen of statically linked programs is supported.
20734 dlopen_self_static=$enable_dlopen_self_static
20735
20736 # Compiler flag to prevent dynamic linking.
20737 link_static_flag=$lt_lt_prog_compiler_static_F77
20738
20739 # Compiler flag to turn off builtin functions.
20740 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20741
20742 # Compiler flag to allow reflexive dlopens.
20743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20744
20745 # Compiler flag to generate shared objects directly from archives.
20746 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20747
20748 # Compiler flag to generate thread-safe objects.
20749 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20750
20751 # Library versioning type.
20752 version_type=$version_type
20753
20754 # Format of library name prefix.
20755 libname_spec=$lt_libname_spec
20756
20757 # List of archive names.  First name is the real one, the rest are links.
20758 # The last name is the one that the linker finds with -lNAME.
20759 library_names_spec=$lt_library_names_spec
20760
20761 # The coded name of the library, if different from the real name.
20762 soname_spec=$lt_soname_spec
20763
20764 # Commands used to build and install an old-style archive.
20765 RANLIB=$lt_RANLIB
20766 old_archive_cmds=$lt_old_archive_cmds_F77
20767 old_postinstall_cmds=$lt_old_postinstall_cmds
20768 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20769
20770 # Create an old-style archive from a shared archive.
20771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20772
20773 # Create a temporary old-style archive to link instead of a shared archive.
20774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20775
20776 # Commands used to build and install a shared archive.
20777 archive_cmds=$lt_archive_cmds_F77
20778 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20779 postinstall_cmds=$lt_postinstall_cmds
20780 postuninstall_cmds=$lt_postuninstall_cmds
20781
20782 # Commands used to build a loadable module (assumed same as above if empty)
20783 module_cmds=$lt_module_cmds_F77
20784 module_expsym_cmds=$lt_module_expsym_cmds_F77
20785
20786 # Commands to strip libraries.
20787 old_striplib=$lt_old_striplib
20788 striplib=$lt_striplib
20789
20790 # Dependencies to place before the objects being linked to create a
20791 # shared library.
20792 predep_objects=$lt_predep_objects_F77
20793
20794 # Dependencies to place after the objects being linked to create a
20795 # shared library.
20796 postdep_objects=$lt_postdep_objects_F77
20797
20798 # Dependencies to place before the objects being linked to create a
20799 # shared library.
20800 predeps=$lt_predeps_F77
20801
20802 # Dependencies to place after the objects being linked to create a
20803 # shared library.
20804 postdeps=$lt_postdeps_F77
20805
20806 # The library search path used internally by the compiler when linking
20807 # a shared library.
20808 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20809
20810 # Method to check whether dependent libraries are shared objects.
20811 deplibs_check_method=$lt_deplibs_check_method
20812
20813 # Command to use when deplibs_check_method == file_magic.
20814 file_magic_cmd=$lt_file_magic_cmd
20815
20816 # Flag that allows shared libraries with undefined symbols to be built.
20817 allow_undefined_flag=$lt_allow_undefined_flag_F77
20818
20819 # Flag that forces no undefined symbols.
20820 no_undefined_flag=$lt_no_undefined_flag_F77
20821
20822 # Commands used to finish a libtool library installation in a directory.
20823 finish_cmds=$lt_finish_cmds
20824
20825 # Same as above, but a single script fragment to be evaled but not shown.
20826 finish_eval=$lt_finish_eval
20827
20828 # Take the output of nm and produce a listing of raw symbols and C names.
20829 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20830
20831 # Transform the output of nm in a proper C declaration
20832 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20833
20834 # Transform the output of nm in a C name address pair
20835 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20836
20837 # This is the shared library runtime path variable.
20838 runpath_var=$runpath_var
20839
20840 # This is the shared library path variable.
20841 shlibpath_var=$shlibpath_var
20842
20843 # Is shlibpath searched before the hard-coded library search path?
20844 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20845
20846 # How to hardcode a shared library path into an executable.
20847 hardcode_action=$hardcode_action_F77
20848
20849 # Whether we should hardcode library paths into libraries.
20850 hardcode_into_libs=$hardcode_into_libs
20851
20852 # Flag to hardcode \$libdir into a binary during linking.
20853 # This must work even if \$libdir does not exist.
20854 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20855
20856 # If ld is used when linking, flag to hardcode \$libdir into
20857 # a binary during linking. This must work even if \$libdir does
20858 # not exist.
20859 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20860
20861 # Whether we need a single -rpath flag with a separated argument.
20862 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20863
20864 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20865 # resulting binary.
20866 hardcode_direct=$hardcode_direct_F77
20867
20868 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20869 # resulting binary.
20870 hardcode_minus_L=$hardcode_minus_L_F77
20871
20872 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20873 # the resulting binary.
20874 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20875
20876 # Set to yes if building a shared library automatically hardcodes DIR into the library
20877 # and all subsequent libraries and executables linked against it.
20878 hardcode_automatic=$hardcode_automatic_F77
20879
20880 # Variables whose values should be saved in libtool wrapper scripts and
20881 # restored at relink time.
20882 variables_saved_for_relink="$variables_saved_for_relink"
20883
20884 # Whether libtool must link a program against all its dependency libraries.
20885 link_all_deplibs=$link_all_deplibs_F77
20886
20887 # Compile-time system search path for libraries
20888 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20889
20890 # Run-time system search path for libraries
20891 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20892
20893 # Fix the shell variable \$srcfile for the compiler.
20894 fix_srcfile_path="$fix_srcfile_path_F77"
20895
20896 # Set to yes if exported symbols are required.
20897 always_export_symbols=$always_export_symbols_F77
20898
20899 # The commands to list exported symbols.
20900 export_symbols_cmds=$lt_export_symbols_cmds_F77
20901
20902 # The commands to extract the exported symbol list from a shared archive.
20903 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20904
20905 # Symbols that should not be listed in the preloaded symbols.
20906 exclude_expsyms=$lt_exclude_expsyms_F77
20907
20908 # Symbols that must always be exported.
20909 include_expsyms=$lt_include_expsyms_F77
20910
20911 # ### END LIBTOOL TAG CONFIG: $tagname
20912
20913 __EOF__
20914
20915
20916 else
20917   # If there is no Makefile yet, we rely on a make rule to execute
20918   # `config.status --recheck' to rerun these tests and create the
20919   # libtool script then.
20920   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20921   if test -f "$ltmain_in"; then
20922     test -f Makefile && make "$ltmain"
20923   fi
20924 fi
20925
20926
20927 ac_ext=c
20928 ac_cpp='$CPP $CPPFLAGS'
20929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20932
20933 CC="$lt_save_CC"
20934
20935         else
20936           tagname=""
20937         fi
20938         ;;
20939
20940       GCJ)
20941         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20942           ac_ext=c
20943 ac_cpp='$CPP $CPPFLAGS'
20944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20947
20948
20949 # Source file extension for Java test sources.
20950 ac_ext=java
20951
20952 # Object file extension for compiled Java test sources.
20953 objext=o
20954 objext_GCJ=$objext
20955
20956 # Code to be used in simple compile tests
20957 lt_simple_compile_test_code="class foo {}\n"
20958
20959 # Code to be used in simple link tests
20960 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20961
20962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20963
20964 # If no C compiler was specified, use CC.
20965 LTCC=${LTCC-"$CC"}
20966
20967 # Allow CC to be a program name with arguments.
20968 compiler=$CC
20969
20970
20971 # Allow CC to be a program name with arguments.
20972 lt_save_CC="$CC"
20973 CC=${GCJ-"gcj"}
20974 compiler=$CC
20975 compiler_GCJ=$CC
20976
20977 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20978 archive_cmds_need_lc_GCJ=no
20979
20980
20981 lt_prog_compiler_no_builtin_flag_GCJ=
20982
20983 if test "$GCC" = yes; then
20984   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20985
20986
20987 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20988 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20989 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20990   echo $ECHO_N "(cached) $ECHO_C" >&6
20991 else
20992   lt_cv_prog_compiler_rtti_exceptions=no
20993   ac_outfile=conftest.$ac_objext
20994    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20995    lt_compiler_flag="-fno-rtti -fno-exceptions"
20996    # Insert the option either (1) after the last *FLAGS variable, or
20997    # (2) before a word containing "conftest.", or (3) at the end.
20998    # Note that $ac_compile itself does not contain backslashes and begins
20999    # with a dollar sign (not a hyphen), so the echo should work correctly.
21000    # The option is referenced via a variable to avoid confusing sed.
21001    lt_compile=`echo "$ac_compile" | $SED \
21002    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21004    -e 's:$: $lt_compiler_flag:'`
21005    (eval echo "\"\$as_me:21005: $lt_compile\"" >&5)
21006    (eval "$lt_compile" 2>conftest.err)
21007    ac_status=$?
21008    cat conftest.err >&5
21009    echo "$as_me:21009: \$? = $ac_status" >&5
21010    if (exit $ac_status) && test -s "$ac_outfile"; then
21011      # The compiler can only warn and ignore the option if not recognized
21012      # So say no if there are warnings
21013      if test ! -s conftest.err; then
21014        lt_cv_prog_compiler_rtti_exceptions=yes
21015      fi
21016    fi
21017    $rm conftest*
21018
21019 fi
21020 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21021 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21022
21023 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21024     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21025 else
21026     :
21027 fi
21028
21029 fi
21030
21031 lt_prog_compiler_wl_GCJ=
21032 lt_prog_compiler_pic_GCJ=
21033 lt_prog_compiler_static_GCJ=
21034
21035 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21036 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21037
21038   if test "$GCC" = yes; then
21039     lt_prog_compiler_wl_GCJ='-Wl,'
21040     lt_prog_compiler_static_GCJ='-static'
21041
21042     case $host_os in
21043       aix*)
21044       # All AIX code is PIC.
21045       if test "$host_cpu" = ia64; then
21046         # AIX 5 now supports IA64 processor
21047         lt_prog_compiler_static_GCJ='-Bstatic'
21048       fi
21049       ;;
21050
21051     amigaos*)
21052       # FIXME: we need at least 68020 code to build shared libraries, but
21053       # adding the `-m68020' flag to GCC prevents building anything better,
21054       # like `-m68040'.
21055       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21056       ;;
21057
21058     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21059       # PIC is the default for these OSes.
21060       ;;
21061
21062     mingw* | pw32* | os2*)
21063       # This hack is so that the source file can tell whether it is being
21064       # built for inclusion in a dll (and should export symbols for example).
21065       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21066       ;;
21067
21068     darwin* | rhapsody*)
21069       # PIC is the default on this platform
21070       # Common symbols not allowed in MH_DYLIB files
21071       lt_prog_compiler_pic_GCJ='-fno-common'
21072       ;;
21073
21074     msdosdjgpp*)
21075       # Just because we use GCC doesn't mean we suddenly get shared libraries
21076       # on systems that don't support them.
21077       lt_prog_compiler_can_build_shared_GCJ=no
21078       enable_shared=no
21079       ;;
21080
21081     sysv4*MP*)
21082       if test -d /usr/nec; then
21083         lt_prog_compiler_pic_GCJ=-Kconform_pic
21084       fi
21085       ;;
21086
21087     hpux*)
21088       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21089       # not for PA HP-UX.
21090       case "$host_cpu" in
21091       hppa*64*|ia64*)
21092         # +Z the default
21093         ;;
21094       *)
21095         lt_prog_compiler_pic_GCJ='-fPIC'
21096         ;;
21097       esac
21098       ;;
21099
21100     *)
21101       lt_prog_compiler_pic_GCJ='-fPIC'
21102       ;;
21103     esac
21104   else
21105     # PORTME Check for flag to pass linker flags through the system compiler.
21106     case $host_os in
21107     aix*)
21108       lt_prog_compiler_wl_GCJ='-Wl,'
21109       if test "$host_cpu" = ia64; then
21110         # AIX 5 now supports IA64 processor
21111         lt_prog_compiler_static_GCJ='-Bstatic'
21112       else
21113         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21114       fi
21115       ;;
21116       darwin*)
21117         # PIC is the default on this platform
21118         # Common symbols not allowed in MH_DYLIB files
21119        case "$cc_basename" in
21120          xlc*)
21121          lt_prog_compiler_pic_GCJ='-qnocommon'
21122          lt_prog_compiler_wl_GCJ='-Wl,'
21123          ;;
21124        esac
21125        ;;
21126
21127     mingw* | pw32* | os2*)
21128       # This hack is so that the source file can tell whether it is being
21129       # built for inclusion in a dll (and should export symbols for example).
21130       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21131       ;;
21132
21133     hpux9* | hpux10* | hpux11*)
21134       lt_prog_compiler_wl_GCJ='-Wl,'
21135       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21136       # not for PA HP-UX.
21137       case "$host_cpu" in
21138       hppa*64*|ia64*)
21139         # +Z the default
21140         ;;
21141       *)
21142         lt_prog_compiler_pic_GCJ='+Z'
21143         ;;
21144       esac
21145       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21146       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21147       ;;
21148
21149     irix5* | irix6* | nonstopux*)
21150       lt_prog_compiler_wl_GCJ='-Wl,'
21151       # PIC (with -KPIC) is the default.
21152       lt_prog_compiler_static_GCJ='-non_shared'
21153       ;;
21154
21155     newsos6)
21156       lt_prog_compiler_pic_GCJ='-KPIC'
21157       lt_prog_compiler_static_GCJ='-Bstatic'
21158       ;;
21159
21160     linux*)
21161       case $CC in
21162       icc* | ecc*)
21163         lt_prog_compiler_wl_GCJ='-Wl,'
21164         lt_prog_compiler_pic_GCJ='-KPIC'
21165         lt_prog_compiler_static_GCJ='-static'
21166         ;;
21167       ccc*)
21168         lt_prog_compiler_wl_GCJ='-Wl,'
21169         # All Alpha code is PIC.
21170         lt_prog_compiler_static_GCJ='-non_shared'
21171         ;;
21172       esac
21173       ;;
21174
21175     osf3* | osf4* | osf5*)
21176       lt_prog_compiler_wl_GCJ='-Wl,'
21177       # All OSF/1 code is PIC.
21178       lt_prog_compiler_static_GCJ='-non_shared'
21179       ;;
21180
21181     sco3.2v5*)
21182       lt_prog_compiler_pic_GCJ='-Kpic'
21183       lt_prog_compiler_static_GCJ='-dn'
21184       ;;
21185
21186     solaris*)
21187       lt_prog_compiler_wl_GCJ='-Wl,'
21188       lt_prog_compiler_pic_GCJ='-KPIC'
21189       lt_prog_compiler_static_GCJ='-Bstatic'
21190       ;;
21191
21192     sunos4*)
21193       lt_prog_compiler_wl_GCJ='-Qoption ld '
21194       lt_prog_compiler_pic_GCJ='-PIC'
21195       lt_prog_compiler_static_GCJ='-Bstatic'
21196       ;;
21197
21198     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21199       lt_prog_compiler_wl_GCJ='-Wl,'
21200       lt_prog_compiler_pic_GCJ='-KPIC'
21201       lt_prog_compiler_static_GCJ='-Bstatic'
21202       ;;
21203
21204     sysv4*MP*)
21205       if test -d /usr/nec ;then
21206         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21207         lt_prog_compiler_static_GCJ='-Bstatic'
21208       fi
21209       ;;
21210
21211     uts4*)
21212       lt_prog_compiler_pic_GCJ='-pic'
21213       lt_prog_compiler_static_GCJ='-Bstatic'
21214       ;;
21215
21216     *)
21217       lt_prog_compiler_can_build_shared_GCJ=no
21218       ;;
21219     esac
21220   fi
21221
21222 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21223 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21224
21225 #
21226 # Check to make sure the PIC flag actually works.
21227 #
21228 if test -n "$lt_prog_compiler_pic_GCJ"; then
21229
21230 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21231 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21232 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21233   echo $ECHO_N "(cached) $ECHO_C" >&6
21234 else
21235   lt_prog_compiler_pic_works_GCJ=no
21236   ac_outfile=conftest.$ac_objext
21237    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21238    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21239    # Insert the option either (1) after the last *FLAGS variable, or
21240    # (2) before a word containing "conftest.", or (3) at the end.
21241    # Note that $ac_compile itself does not contain backslashes and begins
21242    # with a dollar sign (not a hyphen), so the echo should work correctly.
21243    # The option is referenced via a variable to avoid confusing sed.
21244    lt_compile=`echo "$ac_compile" | $SED \
21245    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21246    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21247    -e 's:$: $lt_compiler_flag:'`
21248    (eval echo "\"\$as_me:21248: $lt_compile\"" >&5)
21249    (eval "$lt_compile" 2>conftest.err)
21250    ac_status=$?
21251    cat conftest.err >&5
21252    echo "$as_me:21252: \$? = $ac_status" >&5
21253    if (exit $ac_status) && test -s "$ac_outfile"; then
21254      # The compiler can only warn and ignore the option if not recognized
21255      # So say no if there are warnings
21256      if test ! -s conftest.err; then
21257        lt_prog_compiler_pic_works_GCJ=yes
21258      fi
21259    fi
21260    $rm conftest*
21261
21262 fi
21263 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21264 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21265
21266 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21267     case $lt_prog_compiler_pic_GCJ in
21268      "" | " "*) ;;
21269      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21270      esac
21271 else
21272     lt_prog_compiler_pic_GCJ=
21273      lt_prog_compiler_can_build_shared_GCJ=no
21274 fi
21275
21276 fi
21277 case "$host_os" in
21278   # For platforms which do not support PIC, -DPIC is meaningless:
21279   *djgpp*)
21280     lt_prog_compiler_pic_GCJ=
21281     ;;
21282   *)
21283     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21284     ;;
21285 esac
21286
21287 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21288 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21289 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21290   echo $ECHO_N "(cached) $ECHO_C" >&6
21291 else
21292   lt_cv_prog_compiler_c_o_GCJ=no
21293    $rm -r conftest 2>/dev/null
21294    mkdir conftest
21295    cd conftest
21296    mkdir out
21297    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21298
21299    lt_compiler_flag="-o out/conftest2.$ac_objext"
21300    # Insert the option either (1) after the last *FLAGS variable, or
21301    # (2) before a word containing "conftest.", or (3) at the end.
21302    # Note that $ac_compile itself does not contain backslashes and begins
21303    # with a dollar sign (not a hyphen), so the echo should work correctly.
21304    lt_compile=`echo "$ac_compile" | $SED \
21305    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21306    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21307    -e 's:$: $lt_compiler_flag:'`
21308    (eval echo "\"\$as_me:21308: $lt_compile\"" >&5)
21309    (eval "$lt_compile" 2>out/conftest.err)
21310    ac_status=$?
21311    cat out/conftest.err >&5
21312    echo "$as_me:21312: \$? = $ac_status" >&5
21313    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21314    then
21315      # The compiler can only warn and ignore the option if not recognized
21316      # So say no if there are warnings
21317      if test ! -s out/conftest.err; then
21318        lt_cv_prog_compiler_c_o_GCJ=yes
21319      fi
21320    fi
21321    chmod u+w .
21322    $rm conftest*
21323    # SGI C++ compiler will create directory out/ii_files/ for
21324    # template instantiation
21325    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21326    $rm out/* && rmdir out
21327    cd ..
21328    rmdir conftest
21329    $rm conftest*
21330
21331 fi
21332 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21333 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21334
21335
21336 hard_links="nottested"
21337 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21338   # do not overwrite the value of need_locks provided by the user
21339   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21340 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21341   hard_links=yes
21342   $rm conftest*
21343   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21344   touch conftest.a
21345   ln conftest.a conftest.b 2>&5 || hard_links=no
21346   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21347   echo "$as_me:$LINENO: result: $hard_links" >&5
21348 echo "${ECHO_T}$hard_links" >&6
21349   if test "$hard_links" = no; then
21350     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21351 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21352     need_locks=warn
21353   fi
21354 else
21355   need_locks=no
21356 fi
21357
21358 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21360
21361   runpath_var=
21362   allow_undefined_flag_GCJ=
21363   enable_shared_with_static_runtimes_GCJ=no
21364   archive_cmds_GCJ=
21365   archive_expsym_cmds_GCJ=
21366   old_archive_From_new_cmds_GCJ=
21367   old_archive_from_expsyms_cmds_GCJ=
21368   export_dynamic_flag_spec_GCJ=
21369   whole_archive_flag_spec_GCJ=
21370   thread_safe_flag_spec_GCJ=
21371   hardcode_libdir_flag_spec_GCJ=
21372   hardcode_libdir_flag_spec_ld_GCJ=
21373   hardcode_libdir_separator_GCJ=
21374   hardcode_direct_GCJ=no
21375   hardcode_minus_L_GCJ=no
21376   hardcode_shlibpath_var_GCJ=unsupported
21377   link_all_deplibs_GCJ=unknown
21378   hardcode_automatic_GCJ=no
21379   module_cmds_GCJ=
21380   module_expsym_cmds_GCJ=
21381   always_export_symbols_GCJ=no
21382   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21383   # include_expsyms should be a list of space-separated symbols to be *always*
21384   # included in the symbol list
21385   include_expsyms_GCJ=
21386   # exclude_expsyms can be an extended regexp of symbols to exclude
21387   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21388   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21389   # as well as any symbol that contains `d'.
21390   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21391   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21392   # platforms (ab)use it in PIC code, but their linkers get confused if
21393   # the symbol is explicitly referenced.  Since portable code cannot
21394   # rely on this symbol name, it's probably fine to never include it in
21395   # preloaded symbol tables.
21396   extract_expsyms_cmds=
21397
21398   case $host_os in
21399   cygwin* | mingw* | pw32*)
21400     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21401     # When not using gcc, we currently assume that we are using
21402     # Microsoft Visual C++.
21403     if test "$GCC" != yes; then
21404       with_gnu_ld=no
21405     fi
21406     ;;
21407   openbsd*)
21408     with_gnu_ld=no
21409     ;;
21410   esac
21411
21412   ld_shlibs_GCJ=yes
21413   if test "$with_gnu_ld" = yes; then
21414     # If archive_cmds runs LD, not CC, wlarc should be empty
21415     wlarc='${wl}'
21416
21417     # See if GNU ld supports shared libraries.
21418     case $host_os in
21419     aix3* | aix4* | aix5*)
21420       # On AIX/PPC, the GNU linker is very broken
21421       if test "$host_cpu" != ia64; then
21422         ld_shlibs_GCJ=no
21423         cat <<EOF 1>&2
21424
21425 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21426 *** to be unable to reliably create shared libraries on AIX.
21427 *** Therefore, libtool is disabling shared libraries support.  If you
21428 *** really care for shared libraries, you may want to modify your PATH
21429 *** so that a non-GNU linker is found, and then restart.
21430
21431 EOF
21432       fi
21433       ;;
21434
21435     amigaos*)
21436       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)'
21437       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21438       hardcode_minus_L_GCJ=yes
21439
21440       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21441       # that the semantics of dynamic libraries on AmigaOS, at least up
21442       # to version 4, is to share data among multiple programs linked
21443       # with the same dynamic library.  Since this doesn't match the
21444       # behavior of shared libraries on other platforms, we can't use
21445       # them.
21446       ld_shlibs_GCJ=no
21447       ;;
21448
21449     beos*)
21450       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21451         allow_undefined_flag_GCJ=unsupported
21452         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21453         # support --undefined.  This deserves some investigation.  FIXME
21454         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21455       else
21456         ld_shlibs_GCJ=no
21457       fi
21458       ;;
21459
21460     cygwin* | mingw* | pw32*)
21461       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21462       # as there is no search path for DLLs.
21463       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21464       allow_undefined_flag_GCJ=unsupported
21465       always_export_symbols_GCJ=no
21466       enable_shared_with_static_runtimes_GCJ=yes
21467       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21468
21469       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21470         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21471         # If the export-symbols file already is a .def file (1st line
21472         # is EXPORTS), use it as is; otherwise, prepend...
21473         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21474           cp $export_symbols $output_objdir/$soname.def;
21475         else
21476           echo EXPORTS > $output_objdir/$soname.def;
21477           cat $export_symbols >> $output_objdir/$soname.def;
21478         fi~
21479         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21480       else
21481         ld_shlibs=no
21482       fi
21483       ;;
21484
21485     netbsd*)
21486       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21487         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21488         wlarc=
21489       else
21490         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21491         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21492       fi
21493       ;;
21494
21495     solaris* | sysv5*)
21496       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21497         ld_shlibs_GCJ=no
21498         cat <<EOF 1>&2
21499
21500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21501 *** create shared libraries on Solaris systems.  Therefore, libtool
21502 *** is disabling shared libraries support.  We urge you to upgrade GNU
21503 *** binutils to release 2.9.1 or newer.  Another option is to modify
21504 *** your PATH or compiler configuration so that the native linker is
21505 *** used, and then restart.
21506
21507 EOF
21508       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21509         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21510         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21511       else
21512         ld_shlibs_GCJ=no
21513       fi
21514       ;;
21515
21516     sunos4*)
21517       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21518       wlarc=
21519       hardcode_direct_GCJ=yes
21520       hardcode_shlibpath_var_GCJ=no
21521       ;;
21522
21523   linux*)
21524     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21525         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21526         archive_cmds_GCJ="$tmp_archive_cmds"
21527       supports_anon_versioning=no
21528       case `$LD -v 2>/dev/null` in
21529         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21530         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21531         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21532         *\ 2.11.*) ;; # other 2.11 versions
21533         *) supports_anon_versioning=yes ;;
21534       esac
21535       if test $supports_anon_versioning = yes; then
21536         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21538 $echo "local: *; };" >> $output_objdir/$libname.ver~
21539         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21540       else
21541         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21542       fi
21543     else
21544       ld_shlibs_GCJ=no
21545     fi
21546     ;;
21547
21548     *)
21549       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21550         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21551         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21552       else
21553         ld_shlibs_GCJ=no
21554       fi
21555       ;;
21556     esac
21557
21558     if test "$ld_shlibs_GCJ" = yes; then
21559       runpath_var=LD_RUN_PATH
21560       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21561       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21562       # ancient GNU ld didn't support --whole-archive et. al.
21563       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21564         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21565       else
21566         whole_archive_flag_spec_GCJ=
21567       fi
21568     fi
21569   else
21570     # PORTME fill in a description of your system's linker (not GNU ld)
21571     case $host_os in
21572     aix3*)
21573       allow_undefined_flag_GCJ=unsupported
21574       always_export_symbols_GCJ=yes
21575       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'
21576       # Note: this linker hardcodes the directories in LIBPATH if there
21577       # are no directories specified by -L.
21578       hardcode_minus_L_GCJ=yes
21579       if test "$GCC" = yes && test -z "$link_static_flag"; then
21580         # Neither direct hardcoding nor static linking is supported with a
21581         # broken collect2.
21582         hardcode_direct_GCJ=unsupported
21583       fi
21584       ;;
21585
21586     aix4* | aix5*)
21587       if test "$host_cpu" = ia64; then
21588         # On IA64, the linker does run time linking by default, so we don't
21589         # have to do anything special.
21590         aix_use_runtimelinking=no
21591         exp_sym_flag='-Bexport'
21592         no_entry_flag=""
21593       else
21594         # If we're using GNU nm, then we don't want the "-C" option.
21595         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21596         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21597           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'
21598         else
21599           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'
21600         fi
21601         aix_use_runtimelinking=no
21602
21603         # Test if we are trying to use run time linking or normal
21604         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21605         # need to do runtime linking.
21606         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21607           for ld_flag in $LDFLAGS; do
21608           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21609             aix_use_runtimelinking=yes
21610             break
21611           fi
21612           done
21613         esac
21614
21615         exp_sym_flag='-bexport'
21616         no_entry_flag='-bnoentry'
21617       fi
21618
21619       # When large executables or shared objects are built, AIX ld can
21620       # have problems creating the table of contents.  If linking a library
21621       # or program results in "error TOC overflow" add -mminimal-toc to
21622       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21623       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21624
21625       archive_cmds_GCJ=''
21626       hardcode_direct_GCJ=yes
21627       hardcode_libdir_separator_GCJ=':'
21628       link_all_deplibs_GCJ=yes
21629
21630       if test "$GCC" = yes; then
21631         case $host_os in aix4.012|aix4.012.*)
21632         # We only want to do this on AIX 4.2 and lower, the check
21633         # below for broken collect2 doesn't work under 4.3+
21634           collect2name=`${CC} -print-prog-name=collect2`
21635           if test -f "$collect2name" && \
21636            strings "$collect2name" | grep resolve_lib_name >/dev/null
21637           then
21638           # We have reworked collect2
21639           hardcode_direct_GCJ=yes
21640           else
21641           # We have old collect2
21642           hardcode_direct_GCJ=unsupported
21643           # It fails to find uninstalled libraries when the uninstalled
21644           # path is not listed in the libpath.  Setting hardcode_minus_L
21645           # to unsupported forces relinking
21646           hardcode_minus_L_GCJ=yes
21647           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21648           hardcode_libdir_separator_GCJ=
21649           fi
21650         esac
21651         shared_flag='-shared'
21652       else
21653         # not using gcc
21654         if test "$host_cpu" = ia64; then
21655         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21656         # chokes on -Wl,-G. The following line is correct:
21657           shared_flag='-G'
21658         else
21659         if test "$aix_use_runtimelinking" = yes; then
21660             shared_flag='${wl}-G'
21661           else
21662             shared_flag='${wl}-bM:SRE'
21663         fi
21664         fi
21665       fi
21666
21667       # It seems that -bexpall does not export symbols beginning with
21668       # underscore (_), so it is better to generate a list of symbols to export.
21669       always_export_symbols_GCJ=yes
21670       if test "$aix_use_runtimelinking" = yes; then
21671         # Warning - without using the other runtime loading flags (-brtl),
21672         # -berok will link without error, but may produce a broken library.
21673         allow_undefined_flag_GCJ='-berok'
21674        # Determine the default libpath from the value encoded in an empty executable.
21675        cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h.  */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h.  */
21681
21682 int
21683 main ()
21684 {
21685
21686   ;
21687   return 0;
21688 }
21689 _ACEOF
21690 rm -f conftest.$ac_objext conftest$ac_exeext
21691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21692   (eval $ac_link) 2>conftest.er1
21693   ac_status=$?
21694   grep -v '^ *+' conftest.er1 >conftest.err
21695   rm -f conftest.er1
21696   cat conftest.err >&5
21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); } &&
21699          { ac_try='test -z "$ac_c_werror_flag"
21700                          || test ! -s conftest.err'
21701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702   (eval $ac_try) 2>&5
21703   ac_status=$?
21704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705   (exit $ac_status); }; } &&
21706          { ac_try='test -s conftest$ac_exeext'
21707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708   (eval $ac_try) 2>&5
21709   ac_status=$?
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); }; }; then
21712
21713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21714 }'`
21715 # Check for a 64-bit object if we didn't find anything.
21716 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; }
21717 }'`; fi
21718 else
21719   echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21721
21722 fi
21723 rm -f conftest.err conftest.$ac_objext \
21724       conftest$ac_exeext conftest.$ac_ext
21725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21726
21727        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21728         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"
21729        else
21730         if test "$host_cpu" = ia64; then
21731           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21732           allow_undefined_flag_GCJ="-z nodefs"
21733           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"
21734         else
21735          # Determine the default libpath from the value encoded in an empty executable.
21736          cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h.  */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h.  */
21742
21743 int
21744 main ()
21745 {
21746
21747   ;
21748   return 0;
21749 }
21750 _ACEOF
21751 rm -f conftest.$ac_objext conftest$ac_exeext
21752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21753   (eval $ac_link) 2>conftest.er1
21754   ac_status=$?
21755   grep -v '^ *+' conftest.er1 >conftest.err
21756   rm -f conftest.er1
21757   cat conftest.err >&5
21758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759   (exit $ac_status); } &&
21760          { ac_try='test -z "$ac_c_werror_flag"
21761                          || test ! -s conftest.err'
21762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763   (eval $ac_try) 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); }; } &&
21767          { ac_try='test -s conftest$ac_exeext'
21768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769   (eval $ac_try) 2>&5
21770   ac_status=$?
21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); }; }; then
21773
21774 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21775 }'`
21776 # Check for a 64-bit object if we didn't find anything.
21777 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; }
21778 }'`; fi
21779 else
21780   echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21782
21783 fi
21784 rm -f conftest.err conftest.$ac_objext \
21785       conftest$ac_exeext conftest.$ac_ext
21786 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21787
21788          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21789           # Warning - without using the other run time loading flags,
21790           # -berok will link without error, but may produce a broken library.
21791           no_undefined_flag_GCJ=' ${wl}-bernotok'
21792           allow_undefined_flag_GCJ=' ${wl}-berok'
21793           # -bexpall does not export symbols beginning with underscore (_)
21794           always_export_symbols_GCJ=yes
21795           # Exported symbols can be pulled into shared objects from archives
21796           whole_archive_flag_spec_GCJ=' '
21797           archive_cmds_need_lc_GCJ=yes
21798           # This is similar to how AIX traditionally builds it's shared libraries.
21799           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'
21800         fi
21801       fi
21802       ;;
21803
21804     amigaos*)
21805       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)'
21806       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21807       hardcode_minus_L_GCJ=yes
21808       # see comment about different semantics on the GNU ld section
21809       ld_shlibs_GCJ=no
21810       ;;
21811
21812     bsdi[45]*)
21813       export_dynamic_flag_spec_GCJ=-rdynamic
21814       ;;
21815
21816     cygwin* | mingw* | pw32*)
21817       # When not using gcc, we currently assume that we are using
21818       # Microsoft Visual C++.
21819       # hardcode_libdir_flag_spec is actually meaningless, as there is
21820       # no search path for DLLs.
21821       hardcode_libdir_flag_spec_GCJ=' '
21822       allow_undefined_flag_GCJ=unsupported
21823       # Tell ltmain to make .lib files, not .a files.
21824       libext=lib
21825       # Tell ltmain to make .dll files, not .so files.
21826       shrext_cmds=".dll"
21827       # FIXME: Setting linknames here is a bad hack.
21828       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21829       # The linker will automatically build a .lib file if we build a DLL.
21830       old_archive_From_new_cmds_GCJ='true'
21831       # FIXME: Should let the user specify the lib program.
21832       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21833       fix_srcfile_path='`cygpath -w "$srcfile"`'
21834       enable_shared_with_static_runtimes_GCJ=yes
21835       ;;
21836
21837     darwin* | rhapsody*)
21838       case "$host_os" in
21839         rhapsody* | darwin1.[012])
21840          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21841          ;;
21842        *) # Darwin 1.3 on
21843          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21844            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21845          else
21846            case ${MACOSX_DEPLOYMENT_TARGET} in
21847              10.[012])
21848                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21849                ;;
21850              10.*)
21851                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21852                ;;
21853            esac
21854          fi
21855          ;;
21856       esac
21857       archive_cmds_need_lc_GCJ=no
21858       hardcode_direct_GCJ=no
21859       hardcode_automatic_GCJ=yes
21860       hardcode_shlibpath_var_GCJ=unsupported
21861       whole_archive_flag_spec_GCJ=''
21862       link_all_deplibs_GCJ=yes
21863     if test "$GCC" = yes ; then
21864         output_verbose_link_cmd='echo'
21865         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21866       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21867       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21868       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}'
21869       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}'
21870     else
21871       case "$cc_basename" in
21872         xlc*)
21873          output_verbose_link_cmd='echo'
21874          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21875          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21876           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21877          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}'
21878           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}'
21879           ;;
21880        *)
21881          ld_shlibs_GCJ=no
21882           ;;
21883       esac
21884     fi
21885       ;;
21886
21887     dgux*)
21888       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21889       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21890       hardcode_shlibpath_var_GCJ=no
21891       ;;
21892
21893     freebsd1*)
21894       ld_shlibs_GCJ=no
21895       ;;
21896
21897     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21898     # support.  Future versions do this automatically, but an explicit c++rt0.o
21899     # does not break anything, and helps significantly (at the cost of a little
21900     # extra space).
21901     freebsd2.2*)
21902       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21903       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21904       hardcode_direct_GCJ=yes
21905       hardcode_shlibpath_var_GCJ=no
21906       ;;
21907
21908     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21909     freebsd2*)
21910       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21911       hardcode_direct_GCJ=yes
21912       hardcode_minus_L_GCJ=yes
21913       hardcode_shlibpath_var_GCJ=no
21914       ;;
21915
21916     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21917     freebsd* | kfreebsd*-gnu)
21918       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21919       hardcode_libdir_flag_spec_GCJ='-R$libdir'
21920       hardcode_direct_GCJ=yes
21921       hardcode_shlibpath_var_GCJ=no
21922       ;;
21923
21924     hpux9*)
21925       if test "$GCC" = yes; then
21926         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'
21927       else
21928         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'
21929       fi
21930       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21931       hardcode_libdir_separator_GCJ=:
21932       hardcode_direct_GCJ=yes
21933
21934       # hardcode_minus_L: Not really in the search PATH,
21935       # but as the default location of the library.
21936       hardcode_minus_L_GCJ=yes
21937       export_dynamic_flag_spec_GCJ='${wl}-E'
21938       ;;
21939
21940     hpux10* | hpux11*)
21941       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21942         case "$host_cpu" in
21943         hppa*64*|ia64*)
21944           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21945           ;;
21946         *)
21947           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21948           ;;
21949         esac
21950       else
21951         case "$host_cpu" in
21952         hppa*64*|ia64*)
21953           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21954           ;;
21955         *)
21956           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21957           ;;
21958         esac
21959       fi
21960       if test "$with_gnu_ld" = no; then
21961         case "$host_cpu" in
21962         hppa*64*)
21963           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21964           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21965           hardcode_libdir_separator_GCJ=:
21966           hardcode_direct_GCJ=no
21967           hardcode_shlibpath_var_GCJ=no
21968           ;;
21969         ia64*)
21970           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21971           hardcode_direct_GCJ=no
21972           hardcode_shlibpath_var_GCJ=no
21973
21974           # hardcode_minus_L: Not really in the search PATH,
21975           # but as the default location of the library.
21976           hardcode_minus_L_GCJ=yes
21977           ;;
21978         *)
21979           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21980           hardcode_libdir_separator_GCJ=:
21981           hardcode_direct_GCJ=yes
21982           export_dynamic_flag_spec_GCJ='${wl}-E'
21983
21984           # hardcode_minus_L: Not really in the search PATH,
21985           # but as the default location of the library.
21986           hardcode_minus_L_GCJ=yes
21987           ;;
21988         esac
21989       fi
21990       ;;
21991
21992     irix5* | irix6* | nonstopux*)
21993       if test "$GCC" = yes; then
21994         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'
21995       else
21996         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'
21997         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21998       fi
21999       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22000       hardcode_libdir_separator_GCJ=:
22001       link_all_deplibs_GCJ=yes
22002       ;;
22003
22004     netbsd*)
22005       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22006         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22007       else
22008         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22009       fi
22010       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22011       hardcode_direct_GCJ=yes
22012       hardcode_shlibpath_var_GCJ=no
22013       ;;
22014
22015     newsos6)
22016       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22017       hardcode_direct_GCJ=yes
22018       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22019       hardcode_libdir_separator_GCJ=:
22020       hardcode_shlibpath_var_GCJ=no
22021       ;;
22022
22023     openbsd*)
22024       hardcode_direct_GCJ=yes
22025       hardcode_shlibpath_var_GCJ=no
22026       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22027         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22028         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22029         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22030         export_dynamic_flag_spec_GCJ='${wl}-E'
22031       else
22032        case $host_os in
22033          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22034            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22035            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22036            ;;
22037          *)
22038            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22039            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22040            ;;
22041        esac
22042       fi
22043       ;;
22044
22045     os2*)
22046       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22047       hardcode_minus_L_GCJ=yes
22048       allow_undefined_flag_GCJ=unsupported
22049       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'
22050       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22051       ;;
22052
22053     osf3*)
22054       if test "$GCC" = yes; then
22055         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22056         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'
22057       else
22058         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22059         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'
22060       fi
22061       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22062       hardcode_libdir_separator_GCJ=:
22063       ;;
22064
22065     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22066       if test "$GCC" = yes; then
22067         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22068         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'
22069         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22070       else
22071         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22072         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'
22073         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~
22074         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
22075
22076         # Both c and cxx compiler support -rpath directly
22077         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22078       fi
22079       hardcode_libdir_separator_GCJ=:
22080       ;;
22081
22082     sco3.2v5*)
22083       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22084       hardcode_shlibpath_var_GCJ=no
22085       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22086       runpath_var=LD_RUN_PATH
22087       hardcode_runpath_var=yes
22088       ;;
22089
22090     solaris*)
22091       no_undefined_flag_GCJ=' -z text'
22092       if test "$GCC" = yes; then
22093         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22094         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22095           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22096       else
22097         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22098         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22099         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22100       fi
22101       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22102       hardcode_shlibpath_var_GCJ=no
22103       case $host_os in
22104       solaris2.[0-5] | solaris2.[0-5].*) ;;
22105       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22106         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22107       esac
22108       link_all_deplibs_GCJ=yes
22109       ;;
22110
22111     sunos4*)
22112       if test "x$host_vendor" = xsequent; then
22113         # Use $CC to link under sequent, because it throws in some extra .o
22114         # files that make .init and .fini sections work.
22115         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22116       else
22117         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22118       fi
22119       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22120       hardcode_direct_GCJ=yes
22121       hardcode_minus_L_GCJ=yes
22122       hardcode_shlibpath_var_GCJ=no
22123       ;;
22124
22125     sysv4)
22126       case $host_vendor in
22127         sni)
22128           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22129           hardcode_direct_GCJ=yes # is this really true???
22130         ;;
22131         siemens)
22132           ## LD is ld it makes a PLAMLIB
22133           ## CC just makes a GrossModule.
22134           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22135           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22136           hardcode_direct_GCJ=no
22137         ;;
22138         motorola)
22139           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22140           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22141         ;;
22142       esac
22143       runpath_var='LD_RUN_PATH'
22144       hardcode_shlibpath_var_GCJ=no
22145       ;;
22146
22147     sysv4.3*)
22148       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22149       hardcode_shlibpath_var_GCJ=no
22150       export_dynamic_flag_spec_GCJ='-Bexport'
22151       ;;
22152
22153     sysv4*MP*)
22154       if test -d /usr/nec; then
22155         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22156         hardcode_shlibpath_var_GCJ=no
22157         runpath_var=LD_RUN_PATH
22158         hardcode_runpath_var=yes
22159         ld_shlibs_GCJ=yes
22160       fi
22161       ;;
22162
22163     sysv4.2uw2*)
22164       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22165       hardcode_direct_GCJ=yes
22166       hardcode_minus_L_GCJ=no
22167       hardcode_shlibpath_var_GCJ=no
22168       hardcode_runpath_var=yes
22169       runpath_var=LD_RUN_PATH
22170       ;;
22171
22172    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22173       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22174       if test "$GCC" = yes; then
22175         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22176       else
22177         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22178       fi
22179       runpath_var='LD_RUN_PATH'
22180       hardcode_shlibpath_var_GCJ=no
22181       ;;
22182
22183     sysv5*)
22184       no_undefined_flag_GCJ=' -z text'
22185       # $CC -shared without GNU ld will not create a library from C++
22186       # object files and a static libstdc++, better avoid it by now
22187       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22188       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22189                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22190       hardcode_libdir_flag_spec_GCJ=
22191       hardcode_shlibpath_var_GCJ=no
22192       runpath_var='LD_RUN_PATH'
22193       ;;
22194
22195     uts4*)
22196       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22197       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22198       hardcode_shlibpath_var_GCJ=no
22199       ;;
22200
22201     *)
22202       ld_shlibs_GCJ=no
22203       ;;
22204     esac
22205   fi
22206
22207 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22208 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22209 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22210
22211 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22212 if test "$GCC" = yes; then
22213   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22214 fi
22215
22216 #
22217 # Do we need to explicitly link libc?
22218 #
22219 case "x$archive_cmds_need_lc_GCJ" in
22220 x|xyes)
22221   # Assume -lc should be added
22222   archive_cmds_need_lc_GCJ=yes
22223
22224   if test "$enable_shared" = yes && test "$GCC" = yes; then
22225     case $archive_cmds_GCJ in
22226     *'~'*)
22227       # FIXME: we may have to deal with multi-command sequences.
22228       ;;
22229     '$CC '*)
22230       # Test whether the compiler implicitly links with -lc since on some
22231       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22232       # to ld, don't add -lc before -lgcc.
22233       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22234 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22235       $rm conftest*
22236       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22237
22238       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22239   (eval $ac_compile) 2>&5
22240   ac_status=$?
22241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242   (exit $ac_status); } 2>conftest.err; then
22243         soname=conftest
22244         lib=conftest
22245         libobjs=conftest.$ac_objext
22246         deplibs=
22247         wl=$lt_prog_compiler_wl_GCJ
22248         compiler_flags=-v
22249         linker_flags=-v
22250         verstring=
22251         output_objdir=.
22252         libname=conftest
22253         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22254         allow_undefined_flag_GCJ=
22255         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22256   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22257   ac_status=$?
22258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259   (exit $ac_status); }
22260         then
22261           archive_cmds_need_lc_GCJ=no
22262         else
22263           archive_cmds_need_lc_GCJ=yes
22264         fi
22265         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22266       else
22267         cat conftest.err 1>&5
22268       fi
22269       $rm conftest*
22270       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22271 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22272       ;;
22273     esac
22274   fi
22275   ;;
22276 esac
22277
22278 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22279 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22280 library_names_spec=
22281 libname_spec='lib$name'
22282 soname_spec=
22283 shrext_cmds=".so"
22284 postinstall_cmds=
22285 postuninstall_cmds=
22286 finish_cmds=
22287 finish_eval=
22288 shlibpath_var=
22289 shlibpath_overrides_runpath=unknown
22290 version_type=none
22291 dynamic_linker="$host_os ld.so"
22292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22293 if test "$GCC" = yes; then
22294   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22295   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22296     # if the path contains ";" then we assume it to be the separator
22297     # otherwise default to the standard path separator (i.e. ":") - it is
22298     # assumed that no part of a normal pathname contains ";" but that should
22299     # okay in the real world where ";" in dirpaths is itself problematic.
22300     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22301   else
22302     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22303   fi
22304 else
22305   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22306 fi
22307 need_lib_prefix=unknown
22308 hardcode_into_libs=no
22309
22310 # when you set need_version to no, make sure it does not cause -set_version
22311 # flags to be left without arguments
22312 need_version=unknown
22313
22314 case $host_os in
22315 aix3*)
22316   version_type=linux
22317   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22318   shlibpath_var=LIBPATH
22319
22320   # AIX 3 has no versioning support, so we append a major version to the name.
22321   soname_spec='${libname}${release}${shared_ext}$major'
22322   ;;
22323
22324 aix4* | aix5*)
22325   version_type=linux
22326   need_lib_prefix=no
22327   need_version=no
22328   hardcode_into_libs=yes
22329   if test "$host_cpu" = ia64; then
22330     # AIX 5 supports IA64
22331     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22332     shlibpath_var=LD_LIBRARY_PATH
22333   else
22334     # With GCC up to 2.95.x, collect2 would create an import file
22335     # for dependence libraries.  The import file would start with
22336     # the line `#! .'.  This would cause the generated library to
22337     # depend on `.', always an invalid library.  This was fixed in
22338     # development snapshots of GCC prior to 3.0.
22339     case $host_os in
22340       aix4 | aix4.[01] | aix4.[01].*)
22341       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22342            echo ' yes '
22343            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22344         :
22345       else
22346         can_build_shared=no
22347       fi
22348       ;;
22349     esac
22350     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22351     # soname into executable. Probably we can add versioning support to
22352     # collect2, so additional links can be useful in future.
22353     if test "$aix_use_runtimelinking" = yes; then
22354       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22355       # instead of lib<name>.a to let people know that these are not
22356       # typical AIX shared libraries.
22357       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22358     else
22359       # We preserve .a as extension for shared libraries through AIX4.2
22360       # and later when we are not doing run time linking.
22361       library_names_spec='${libname}${release}.a $libname.a'
22362       soname_spec='${libname}${release}${shared_ext}$major'
22363     fi
22364     shlibpath_var=LIBPATH
22365   fi
22366   ;;
22367
22368 amigaos*)
22369   library_names_spec='$libname.ixlibrary $libname.a'
22370   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22371   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'
22372   ;;
22373
22374 beos*)
22375   library_names_spec='${libname}${shared_ext}'
22376   dynamic_linker="$host_os ld.so"
22377   shlibpath_var=LIBRARY_PATH
22378   ;;
22379
22380 bsdi[45]*)
22381   version_type=linux
22382   need_version=no
22383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22384   soname_spec='${libname}${release}${shared_ext}$major'
22385   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22386   shlibpath_var=LD_LIBRARY_PATH
22387   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22388   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22389   # the default ld.so.conf also contains /usr/contrib/lib and
22390   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22391   # libtool to hard-code these into programs
22392   ;;
22393
22394 cygwin* | mingw* | pw32*)
22395   version_type=windows
22396   shrext_cmds=".dll"
22397   need_version=no
22398   need_lib_prefix=no
22399
22400   case $GCC,$host_os in
22401   yes,cygwin* | yes,mingw* | yes,pw32*)
22402     library_names_spec='$libname.dll.a'
22403     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22404     postinstall_cmds='base_file=`basename \${file}`~
22405       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22406       dldir=$destdir/`dirname \$dlpath`~
22407       test -d \$dldir || mkdir -p \$dldir~
22408       $install_prog $dir/$dlname \$dldir/$dlname'
22409     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22410       dlpath=$dir/\$dldll~
22411        $rm \$dlpath'
22412     shlibpath_overrides_runpath=yes
22413
22414     case $host_os in
22415     cygwin*)
22416       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22417       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22418       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22419       ;;
22420     mingw*)
22421       # MinGW DLLs use traditional 'lib' prefix
22422       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22423       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22424       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22425         # It is most probably a Windows format PATH printed by
22426         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22427         # path with ; separators, and with drive letters. We can handle the
22428         # drive letters (cygwin fileutils understands them), so leave them,
22429         # especially as we might pass files found there to a mingw objdump,
22430         # which wouldn't understand a cygwinified path. Ahh.
22431         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22432       else
22433         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22434       fi
22435       ;;
22436     pw32*)
22437       # pw32 DLLs use 'pw' prefix rather than 'lib'
22438       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22439       ;;
22440     esac
22441     ;;
22442
22443   *)
22444     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22445     ;;
22446   esac
22447   dynamic_linker='Win32 ld.exe'
22448   # FIXME: first we should search . and the directory the executable is in
22449   shlibpath_var=PATH
22450   ;;
22451
22452 darwin* | rhapsody*)
22453   dynamic_linker="$host_os dyld"
22454   version_type=darwin
22455   need_lib_prefix=no
22456   need_version=no
22457   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22458   soname_spec='${libname}${release}${major}$shared_ext'
22459   shlibpath_overrides_runpath=yes
22460   shlibpath_var=DYLD_LIBRARY_PATH
22461   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22462   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22463   if test "$GCC" = yes; then
22464     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"`
22465   else
22466     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22467   fi
22468   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22469   ;;
22470
22471 dgux*)
22472   version_type=linux
22473   need_lib_prefix=no
22474   need_version=no
22475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22476   soname_spec='${libname}${release}${shared_ext}$major'
22477   shlibpath_var=LD_LIBRARY_PATH
22478   ;;
22479
22480 freebsd1*)
22481   dynamic_linker=no
22482   ;;
22483
22484 kfreebsd*-gnu)
22485   version_type=linux
22486   need_lib_prefix=no
22487   need_version=no
22488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22489   soname_spec='${libname}${release}${shared_ext}$major'
22490   shlibpath_var=LD_LIBRARY_PATH
22491   shlibpath_overrides_runpath=no
22492   hardcode_into_libs=yes
22493   dynamic_linker='GNU ld.so'
22494   ;;
22495
22496 freebsd*)
22497   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22498   version_type=freebsd-$objformat
22499   case $version_type in
22500     freebsd-elf*)
22501       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22502       need_version=no
22503       need_lib_prefix=no
22504       ;;
22505     freebsd-*)
22506       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22507       need_version=yes
22508       ;;
22509   esac
22510   shlibpath_var=LD_LIBRARY_PATH
22511   case $host_os in
22512   freebsd2*)
22513     shlibpath_overrides_runpath=yes
22514     ;;
22515   freebsd3.01* | freebsdelf3.01*)
22516     shlibpath_overrides_runpath=yes
22517     hardcode_into_libs=yes
22518     ;;
22519   *) # from 3.2 on
22520     shlibpath_overrides_runpath=no
22521     hardcode_into_libs=yes
22522     ;;
22523   esac
22524   ;;
22525
22526 gnu*)
22527   version_type=linux
22528   need_lib_prefix=no
22529   need_version=no
22530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22531   soname_spec='${libname}${release}${shared_ext}$major'
22532   shlibpath_var=LD_LIBRARY_PATH
22533   hardcode_into_libs=yes
22534   ;;
22535
22536 hpux9* | hpux10* | hpux11*)
22537   # Give a soname corresponding to the major version so that dld.sl refuses to
22538   # link against other versions.
22539   version_type=sunos
22540   need_lib_prefix=no
22541   need_version=no
22542   case "$host_cpu" in
22543   ia64*)
22544     shrext_cmds='.so'
22545     hardcode_into_libs=yes
22546     dynamic_linker="$host_os dld.so"
22547     shlibpath_var=LD_LIBRARY_PATH
22548     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22549     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22550     soname_spec='${libname}${release}${shared_ext}$major'
22551     if test "X$HPUX_IA64_MODE" = X32; then
22552       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22553     else
22554       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22555     fi
22556     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22557     ;;
22558    hppa*64*)
22559      shrext_cmds='.sl'
22560      hardcode_into_libs=yes
22561      dynamic_linker="$host_os dld.sl"
22562      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22563      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22564      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22565      soname_spec='${libname}${release}${shared_ext}$major'
22566      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22567      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22568      ;;
22569    *)
22570     shrext_cmds='.sl'
22571     dynamic_linker="$host_os dld.sl"
22572     shlibpath_var=SHLIB_PATH
22573     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22575     soname_spec='${libname}${release}${shared_ext}$major'
22576     ;;
22577   esac
22578   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22579   postinstall_cmds='chmod 555 $lib'
22580   ;;
22581
22582 irix5* | irix6* | nonstopux*)
22583   case $host_os in
22584     nonstopux*) version_type=nonstopux ;;
22585     *)
22586         if test "$lt_cv_prog_gnu_ld" = yes; then
22587                 version_type=linux
22588         else
22589                 version_type=irix
22590         fi ;;
22591   esac
22592   need_lib_prefix=no
22593   need_version=no
22594   soname_spec='${libname}${release}${shared_ext}$major'
22595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22596   case $host_os in
22597   irix5* | nonstopux*)
22598     libsuff= shlibsuff=
22599     ;;
22600   *)
22601     case $LD in # libtool.m4 will add one of these switches to LD
22602     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22603       libsuff= shlibsuff= libmagic=32-bit;;
22604     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22605       libsuff=32 shlibsuff=N32 libmagic=N32;;
22606     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22607       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22608     *) libsuff= shlibsuff= libmagic=never-match;;
22609     esac
22610     ;;
22611   esac
22612   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22613   shlibpath_overrides_runpath=no
22614   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22615   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22616   hardcode_into_libs=yes
22617   ;;
22618
22619 # No shared lib support for Linux oldld, aout, or coff.
22620 linux*oldld* | linux*aout* | linux*coff*)
22621   dynamic_linker=no
22622   ;;
22623
22624 # This must be Linux ELF.
22625 linux*)
22626   version_type=linux
22627   need_lib_prefix=no
22628   need_version=no
22629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22630   soname_spec='${libname}${release}${shared_ext}$major'
22631   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22632   shlibpath_var=LD_LIBRARY_PATH
22633   shlibpath_overrides_runpath=no
22634   # This implies no fast_install, which is unacceptable.
22635   # Some rework will be needed to allow for fast_install
22636   # before this can be enabled.
22637   hardcode_into_libs=yes
22638
22639   # Append ld.so.conf contents to the search path
22640   if test -f /etc/ld.so.conf; then
22641     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22642     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22643   fi
22644
22645   # We used to test for /lib/ld.so.1 and disable shared libraries on
22646   # powerpc, because MkLinux only supported shared libraries with the
22647   # GNU dynamic linker.  Since this was broken with cross compilers,
22648   # most powerpc-linux boxes support dynamic linking these days and
22649   # people can always --disable-shared, the test was removed, and we
22650   # assume the GNU/Linux dynamic linker is in use.
22651   dynamic_linker='GNU/Linux ld.so'
22652   ;;
22653
22654 knetbsd*-gnu)
22655   version_type=linux
22656   need_lib_prefix=no
22657   need_version=no
22658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22659   soname_spec='${libname}${release}${shared_ext}$major'
22660   shlibpath_var=LD_LIBRARY_PATH
22661   shlibpath_overrides_runpath=no
22662   hardcode_into_libs=yes
22663   dynamic_linker='GNU ld.so'
22664   ;;
22665
22666 netbsd*)
22667   version_type=sunos
22668   need_lib_prefix=no
22669   need_version=no
22670   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22672     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22673     dynamic_linker='NetBSD (a.out) ld.so'
22674   else
22675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22676     soname_spec='${libname}${release}${shared_ext}$major'
22677     dynamic_linker='NetBSD ld.elf_so'
22678   fi
22679   shlibpath_var=LD_LIBRARY_PATH
22680   shlibpath_overrides_runpath=yes
22681   hardcode_into_libs=yes
22682   ;;
22683
22684 newsos6)
22685   version_type=linux
22686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22687   shlibpath_var=LD_LIBRARY_PATH
22688   shlibpath_overrides_runpath=yes
22689   ;;
22690
22691 nto-qnx*)
22692   version_type=linux
22693   need_lib_prefix=no
22694   need_version=no
22695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22696   soname_spec='${libname}${release}${shared_ext}$major'
22697   shlibpath_var=LD_LIBRARY_PATH
22698   shlibpath_overrides_runpath=yes
22699   ;;
22700
22701 openbsd*)
22702   version_type=sunos
22703   need_lib_prefix=no
22704   need_version=no
22705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22706   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22707   shlibpath_var=LD_LIBRARY_PATH
22708   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22709     case $host_os in
22710       openbsd2.[89] | openbsd2.[89].*)
22711         shlibpath_overrides_runpath=no
22712         ;;
22713       *)
22714         shlibpath_overrides_runpath=yes
22715         ;;
22716       esac
22717   else
22718     shlibpath_overrides_runpath=yes
22719   fi
22720   ;;
22721
22722 os2*)
22723   libname_spec='$name'
22724   shrext_cmds=".dll"
22725   need_lib_prefix=no
22726   library_names_spec='$libname${shared_ext} $libname.a'
22727   dynamic_linker='OS/2 ld.exe'
22728   shlibpath_var=LIBPATH
22729   ;;
22730
22731 osf3* | osf4* | osf5*)
22732   version_type=osf
22733   need_lib_prefix=no
22734   need_version=no
22735   soname_spec='${libname}${release}${shared_ext}$major'
22736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737   shlibpath_var=LD_LIBRARY_PATH
22738   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22739   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22740   ;;
22741
22742 sco3.2v5*)
22743   version_type=osf
22744   soname_spec='${libname}${release}${shared_ext}$major'
22745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22746   shlibpath_var=LD_LIBRARY_PATH
22747   ;;
22748
22749 solaris*)
22750   version_type=linux
22751   need_lib_prefix=no
22752   need_version=no
22753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754   soname_spec='${libname}${release}${shared_ext}$major'
22755   shlibpath_var=LD_LIBRARY_PATH
22756   shlibpath_overrides_runpath=yes
22757   hardcode_into_libs=yes
22758   # ldd complains unless libraries are executable
22759   postinstall_cmds='chmod +x $lib'
22760   ;;
22761
22762 sunos4*)
22763   version_type=sunos
22764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22765   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22766   shlibpath_var=LD_LIBRARY_PATH
22767   shlibpath_overrides_runpath=yes
22768   if test "$with_gnu_ld" = yes; then
22769     need_lib_prefix=no
22770   fi
22771   need_version=yes
22772   ;;
22773
22774 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22775   version_type=linux
22776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22777   soname_spec='${libname}${release}${shared_ext}$major'
22778   shlibpath_var=LD_LIBRARY_PATH
22779   case $host_vendor in
22780     sni)
22781       shlibpath_overrides_runpath=no
22782       need_lib_prefix=no
22783       export_dynamic_flag_spec='${wl}-Blargedynsym'
22784       runpath_var=LD_RUN_PATH
22785       ;;
22786     siemens)
22787       need_lib_prefix=no
22788       ;;
22789     motorola)
22790       need_lib_prefix=no
22791       need_version=no
22792       shlibpath_overrides_runpath=no
22793       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22794       ;;
22795   esac
22796   ;;
22797
22798 sysv4*MP*)
22799   if test -d /usr/nec ;then
22800     version_type=linux
22801     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22802     soname_spec='$libname${shared_ext}.$major'
22803     shlibpath_var=LD_LIBRARY_PATH
22804   fi
22805   ;;
22806
22807 uts4*)
22808   version_type=linux
22809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22810   soname_spec='${libname}${release}${shared_ext}$major'
22811   shlibpath_var=LD_LIBRARY_PATH
22812   ;;
22813
22814 *)
22815   dynamic_linker=no
22816   ;;
22817 esac
22818 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22819 echo "${ECHO_T}$dynamic_linker" >&6
22820 test "$dynamic_linker" = no && can_build_shared=no
22821
22822 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22823 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22824 hardcode_action_GCJ=
22825 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22826    test -n "$runpath_var_GCJ" || \
22827    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22828
22829   # We can hardcode non-existant directories.
22830   if test "$hardcode_direct_GCJ" != no &&
22831      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22832      # have to relink, otherwise we might link with an installed library
22833      # when we should be linking with a yet-to-be-installed one
22834      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22835      test "$hardcode_minus_L_GCJ" != no; then
22836     # Linking always hardcodes the temporary library directory.
22837     hardcode_action_GCJ=relink
22838   else
22839     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22840     hardcode_action_GCJ=immediate
22841   fi
22842 else
22843   # We cannot hardcode anything, or else we can only hardcode existing
22844   # directories.
22845   hardcode_action_GCJ=unsupported
22846 fi
22847 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22848 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22849
22850 if test "$hardcode_action_GCJ" = relink; then
22851   # Fast installation is not supported
22852   enable_fast_install=no
22853 elif test "$shlibpath_overrides_runpath" = yes ||
22854      test "$enable_shared" = no; then
22855   # Fast installation is not necessary
22856   enable_fast_install=needless
22857 fi
22858
22859 striplib=
22860 old_striplib=
22861 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22862 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22863 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22864   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22865   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22866   echo "$as_me:$LINENO: result: yes" >&5
22867 echo "${ECHO_T}yes" >&6
22868 else
22869 # FIXME - insert some real tests, host_os isn't really good enough
22870   case $host_os in
22871    darwin*)
22872        if test -n "$STRIP" ; then
22873          striplib="$STRIP -x"
22874          echo "$as_me:$LINENO: result: yes" >&5
22875 echo "${ECHO_T}yes" >&6
22876        else
22877   echo "$as_me:$LINENO: result: no" >&5
22878 echo "${ECHO_T}no" >&6
22879 fi
22880        ;;
22881    *)
22882   echo "$as_me:$LINENO: result: no" >&5
22883 echo "${ECHO_T}no" >&6
22884     ;;
22885   esac
22886 fi
22887
22888 if test "x$enable_dlopen" != xyes; then
22889   enable_dlopen=unknown
22890   enable_dlopen_self=unknown
22891   enable_dlopen_self_static=unknown
22892 else
22893   lt_cv_dlopen=no
22894   lt_cv_dlopen_libs=
22895
22896   case $host_os in
22897   beos*)
22898     lt_cv_dlopen="load_add_on"
22899     lt_cv_dlopen_libs=
22900     lt_cv_dlopen_self=yes
22901     ;;
22902
22903   mingw* | pw32*)
22904     lt_cv_dlopen="LoadLibrary"
22905     lt_cv_dlopen_libs=
22906    ;;
22907
22908   cygwin*)
22909     lt_cv_dlopen="dlopen"
22910     lt_cv_dlopen_libs=
22911    ;;
22912
22913   darwin*)
22914   # if libdl is installed we need to link against it
22915     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22916 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22917 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22918   echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920   ac_check_lib_save_LIBS=$LIBS
22921 LIBS="-ldl  $LIBS"
22922 cat >conftest.$ac_ext <<_ACEOF
22923 /* confdefs.h.  */
22924 _ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h.  */
22928
22929 /* Override any gcc2 internal prototype to avoid an error.  */
22930 #ifdef __cplusplus
22931 extern "C"
22932 #endif
22933 /* We use char because int might match the return type of a gcc2
22934    builtin and then its argument prototype would still apply.  */
22935 char dlopen ();
22936 int
22937 main ()
22938 {
22939 dlopen ();
22940   ;
22941   return 0;
22942 }
22943 _ACEOF
22944 rm -f conftest.$ac_objext conftest$ac_exeext
22945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22946   (eval $ac_link) 2>conftest.er1
22947   ac_status=$?
22948   grep -v '^ *+' conftest.er1 >conftest.err
22949   rm -f conftest.er1
22950   cat conftest.err >&5
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); } &&
22953          { ac_try='test -z "$ac_c_werror_flag"
22954                          || test ! -s conftest.err'
22955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956   (eval $ac_try) 2>&5
22957   ac_status=$?
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); }; } &&
22960          { ac_try='test -s conftest$ac_exeext'
22961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962   (eval $ac_try) 2>&5
22963   ac_status=$?
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); }; }; then
22966   ac_cv_lib_dl_dlopen=yes
22967 else
22968   echo "$as_me: failed program was:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22970
22971 ac_cv_lib_dl_dlopen=no
22972 fi
22973 rm -f conftest.err conftest.$ac_objext \
22974       conftest$ac_exeext conftest.$ac_ext
22975 LIBS=$ac_check_lib_save_LIBS
22976 fi
22977 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22978 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22979 if test $ac_cv_lib_dl_dlopen = yes; then
22980   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22981 else
22982
22983     lt_cv_dlopen="dyld"
22984     lt_cv_dlopen_libs=
22985     lt_cv_dlopen_self=yes
22986
22987 fi
22988
22989    ;;
22990
22991   *)
22992     echo "$as_me:$LINENO: checking for shl_load" >&5
22993 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22994 if test "${ac_cv_func_shl_load+set}" = set; then
22995   echo $ECHO_N "(cached) $ECHO_C" >&6
22996 else
22997   cat >conftest.$ac_ext <<_ACEOF
22998 /* confdefs.h.  */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h.  */
23003 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23005 #define shl_load innocuous_shl_load
23006
23007 /* System header to define __stub macros and hopefully few prototypes,
23008     which can conflict with char shl_load (); below.
23009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23010     <limits.h> exists even on freestanding compilers.  */
23011
23012 #ifdef __STDC__
23013 # include <limits.h>
23014 #else
23015 # include <assert.h>
23016 #endif
23017
23018 #undef shl_load
23019
23020 /* Override any gcc2 internal prototype to avoid an error.  */
23021 #ifdef __cplusplus
23022 extern "C"
23023 {
23024 #endif
23025 /* We use char because int might match the return type of a gcc2
23026    builtin and then its argument prototype would still apply.  */
23027 char shl_load ();
23028 /* The GNU C library defines this for functions which it implements
23029     to always fail with ENOSYS.  Some functions are actually named
23030     something starting with __ and the normal name is an alias.  */
23031 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23032 choke me
23033 #else
23034 char (*f) () = shl_load;
23035 #endif
23036 #ifdef __cplusplus
23037 }
23038 #endif
23039
23040 int
23041 main ()
23042 {
23043 return f != shl_load;
23044   ;
23045   return 0;
23046 }
23047 _ACEOF
23048 rm -f conftest.$ac_objext conftest$ac_exeext
23049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23050   (eval $ac_link) 2>conftest.er1
23051   ac_status=$?
23052   grep -v '^ *+' conftest.er1 >conftest.err
23053   rm -f conftest.er1
23054   cat conftest.err >&5
23055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056   (exit $ac_status); } &&
23057          { ac_try='test -z "$ac_c_werror_flag"
23058                          || test ! -s conftest.err'
23059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060   (eval $ac_try) 2>&5
23061   ac_status=$?
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); }; } &&
23064          { ac_try='test -s conftest$ac_exeext'
23065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066   (eval $ac_try) 2>&5
23067   ac_status=$?
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); }; }; then
23070   ac_cv_func_shl_load=yes
23071 else
23072   echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23074
23075 ac_cv_func_shl_load=no
23076 fi
23077 rm -f conftest.err conftest.$ac_objext \
23078       conftest$ac_exeext conftest.$ac_ext
23079 fi
23080 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23081 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23082 if test $ac_cv_func_shl_load = yes; then
23083   lt_cv_dlopen="shl_load"
23084 else
23085   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23086 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23087 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23088   echo $ECHO_N "(cached) $ECHO_C" >&6
23089 else
23090   ac_check_lib_save_LIBS=$LIBS
23091 LIBS="-ldld  $LIBS"
23092 cat >conftest.$ac_ext <<_ACEOF
23093 /* confdefs.h.  */
23094 _ACEOF
23095 cat confdefs.h >>conftest.$ac_ext
23096 cat >>conftest.$ac_ext <<_ACEOF
23097 /* end confdefs.h.  */
23098
23099 /* Override any gcc2 internal prototype to avoid an error.  */
23100 #ifdef __cplusplus
23101 extern "C"
23102 #endif
23103 /* We use char because int might match the return type of a gcc2
23104    builtin and then its argument prototype would still apply.  */
23105 char shl_load ();
23106 int
23107 main ()
23108 {
23109 shl_load ();
23110   ;
23111   return 0;
23112 }
23113 _ACEOF
23114 rm -f conftest.$ac_objext conftest$ac_exeext
23115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23116   (eval $ac_link) 2>conftest.er1
23117   ac_status=$?
23118   grep -v '^ *+' conftest.er1 >conftest.err
23119   rm -f conftest.er1
23120   cat conftest.err >&5
23121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122   (exit $ac_status); } &&
23123          { ac_try='test -z "$ac_c_werror_flag"
23124                          || test ! -s conftest.err'
23125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126   (eval $ac_try) 2>&5
23127   ac_status=$?
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); }; } &&
23130          { ac_try='test -s conftest$ac_exeext'
23131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132   (eval $ac_try) 2>&5
23133   ac_status=$?
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); }; }; then
23136   ac_cv_lib_dld_shl_load=yes
23137 else
23138   echo "$as_me: failed program was:" >&5
23139 sed 's/^/| /' conftest.$ac_ext >&5
23140
23141 ac_cv_lib_dld_shl_load=no
23142 fi
23143 rm -f conftest.err conftest.$ac_objext \
23144       conftest$ac_exeext conftest.$ac_ext
23145 LIBS=$ac_check_lib_save_LIBS
23146 fi
23147 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23148 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23149 if test $ac_cv_lib_dld_shl_load = yes; then
23150   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23151 else
23152   echo "$as_me:$LINENO: checking for dlopen" >&5
23153 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23154 if test "${ac_cv_func_dlopen+set}" = set; then
23155   echo $ECHO_N "(cached) $ECHO_C" >&6
23156 else
23157   cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h.  */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h.  */
23163 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23165 #define dlopen innocuous_dlopen
23166
23167 /* System header to define __stub macros and hopefully few prototypes,
23168     which can conflict with char dlopen (); below.
23169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23170     <limits.h> exists even on freestanding compilers.  */
23171
23172 #ifdef __STDC__
23173 # include <limits.h>
23174 #else
23175 # include <assert.h>
23176 #endif
23177
23178 #undef dlopen
23179
23180 /* Override any gcc2 internal prototype to avoid an error.  */
23181 #ifdef __cplusplus
23182 extern "C"
23183 {
23184 #endif
23185 /* We use char because int might match the return type of a gcc2
23186    builtin and then its argument prototype would still apply.  */
23187 char dlopen ();
23188 /* The GNU C library defines this for functions which it implements
23189     to always fail with ENOSYS.  Some functions are actually named
23190     something starting with __ and the normal name is an alias.  */
23191 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23192 choke me
23193 #else
23194 char (*f) () = dlopen;
23195 #endif
23196 #ifdef __cplusplus
23197 }
23198 #endif
23199
23200 int
23201 main ()
23202 {
23203 return f != dlopen;
23204   ;
23205   return 0;
23206 }
23207 _ACEOF
23208 rm -f conftest.$ac_objext conftest$ac_exeext
23209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23210   (eval $ac_link) 2>conftest.er1
23211   ac_status=$?
23212   grep -v '^ *+' conftest.er1 >conftest.err
23213   rm -f conftest.er1
23214   cat conftest.err >&5
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); } &&
23217          { ac_try='test -z "$ac_c_werror_flag"
23218                          || test ! -s conftest.err'
23219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220   (eval $ac_try) 2>&5
23221   ac_status=$?
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); }; } &&
23224          { ac_try='test -s conftest$ac_exeext'
23225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226   (eval $ac_try) 2>&5
23227   ac_status=$?
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); }; }; then
23230   ac_cv_func_dlopen=yes
23231 else
23232   echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23234
23235 ac_cv_func_dlopen=no
23236 fi
23237 rm -f conftest.err conftest.$ac_objext \
23238       conftest$ac_exeext conftest.$ac_ext
23239 fi
23240 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23241 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23242 if test $ac_cv_func_dlopen = yes; then
23243   lt_cv_dlopen="dlopen"
23244 else
23245   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23246 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23247 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23248   echo $ECHO_N "(cached) $ECHO_C" >&6
23249 else
23250   ac_check_lib_save_LIBS=$LIBS
23251 LIBS="-ldl  $LIBS"
23252 cat >conftest.$ac_ext <<_ACEOF
23253 /* confdefs.h.  */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h.  */
23258
23259 /* Override any gcc2 internal prototype to avoid an error.  */
23260 #ifdef __cplusplus
23261 extern "C"
23262 #endif
23263 /* We use char because int might match the return type of a gcc2
23264    builtin and then its argument prototype would still apply.  */
23265 char dlopen ();
23266 int
23267 main ()
23268 {
23269 dlopen ();
23270   ;
23271   return 0;
23272 }
23273 _ACEOF
23274 rm -f conftest.$ac_objext conftest$ac_exeext
23275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23276   (eval $ac_link) 2>conftest.er1
23277   ac_status=$?
23278   grep -v '^ *+' conftest.er1 >conftest.err
23279   rm -f conftest.er1
23280   cat conftest.err >&5
23281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282   (exit $ac_status); } &&
23283          { ac_try='test -z "$ac_c_werror_flag"
23284                          || test ! -s conftest.err'
23285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286   (eval $ac_try) 2>&5
23287   ac_status=$?
23288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); }; } &&
23290          { ac_try='test -s conftest$ac_exeext'
23291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292   (eval $ac_try) 2>&5
23293   ac_status=$?
23294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295   (exit $ac_status); }; }; then
23296   ac_cv_lib_dl_dlopen=yes
23297 else
23298   echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.$ac_ext >&5
23300
23301 ac_cv_lib_dl_dlopen=no
23302 fi
23303 rm -f conftest.err conftest.$ac_objext \
23304       conftest$ac_exeext conftest.$ac_ext
23305 LIBS=$ac_check_lib_save_LIBS
23306 fi
23307 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23308 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23309 if test $ac_cv_lib_dl_dlopen = yes; then
23310   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23311 else
23312   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23313 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23314 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23315   echo $ECHO_N "(cached) $ECHO_C" >&6
23316 else
23317   ac_check_lib_save_LIBS=$LIBS
23318 LIBS="-lsvld  $LIBS"
23319 cat >conftest.$ac_ext <<_ACEOF
23320 /* confdefs.h.  */
23321 _ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h.  */
23325
23326 /* Override any gcc2 internal prototype to avoid an error.  */
23327 #ifdef __cplusplus
23328 extern "C"
23329 #endif
23330 /* We use char because int might match the return type of a gcc2
23331    builtin and then its argument prototype would still apply.  */
23332 char dlopen ();
23333 int
23334 main ()
23335 {
23336 dlopen ();
23337   ;
23338   return 0;
23339 }
23340 _ACEOF
23341 rm -f conftest.$ac_objext conftest$ac_exeext
23342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23343   (eval $ac_link) 2>conftest.er1
23344   ac_status=$?
23345   grep -v '^ *+' conftest.er1 >conftest.err
23346   rm -f conftest.er1
23347   cat conftest.err >&5
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); } &&
23350          { ac_try='test -z "$ac_c_werror_flag"
23351                          || test ! -s conftest.err'
23352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353   (eval $ac_try) 2>&5
23354   ac_status=$?
23355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); }; } &&
23357          { ac_try='test -s conftest$ac_exeext'
23358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359   (eval $ac_try) 2>&5
23360   ac_status=$?
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); }; }; then
23363   ac_cv_lib_svld_dlopen=yes
23364 else
23365   echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23367
23368 ac_cv_lib_svld_dlopen=no
23369 fi
23370 rm -f conftest.err conftest.$ac_objext \
23371       conftest$ac_exeext conftest.$ac_ext
23372 LIBS=$ac_check_lib_save_LIBS
23373 fi
23374 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23375 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23376 if test $ac_cv_lib_svld_dlopen = yes; then
23377   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23378 else
23379   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23380 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23381 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23382   echo $ECHO_N "(cached) $ECHO_C" >&6
23383 else
23384   ac_check_lib_save_LIBS=$LIBS
23385 LIBS="-ldld  $LIBS"
23386 cat >conftest.$ac_ext <<_ACEOF
23387 /* confdefs.h.  */
23388 _ACEOF
23389 cat confdefs.h >>conftest.$ac_ext
23390 cat >>conftest.$ac_ext <<_ACEOF
23391 /* end confdefs.h.  */
23392
23393 /* Override any gcc2 internal prototype to avoid an error.  */
23394 #ifdef __cplusplus
23395 extern "C"
23396 #endif
23397 /* We use char because int might match the return type of a gcc2
23398    builtin and then its argument prototype would still apply.  */
23399 char dld_link ();
23400 int
23401 main ()
23402 {
23403 dld_link ();
23404   ;
23405   return 0;
23406 }
23407 _ACEOF
23408 rm -f conftest.$ac_objext conftest$ac_exeext
23409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23410   (eval $ac_link) 2>conftest.er1
23411   ac_status=$?
23412   grep -v '^ *+' conftest.er1 >conftest.err
23413   rm -f conftest.er1
23414   cat conftest.err >&5
23415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); } &&
23417          { ac_try='test -z "$ac_c_werror_flag"
23418                          || test ! -s conftest.err'
23419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420   (eval $ac_try) 2>&5
23421   ac_status=$?
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); }; } &&
23424          { ac_try='test -s conftest$ac_exeext'
23425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426   (eval $ac_try) 2>&5
23427   ac_status=$?
23428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429   (exit $ac_status); }; }; then
23430   ac_cv_lib_dld_dld_link=yes
23431 else
23432   echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23434
23435 ac_cv_lib_dld_dld_link=no
23436 fi
23437 rm -f conftest.err conftest.$ac_objext \
23438       conftest$ac_exeext conftest.$ac_ext
23439 LIBS=$ac_check_lib_save_LIBS
23440 fi
23441 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23442 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23443 if test $ac_cv_lib_dld_dld_link = yes; then
23444   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23445 fi
23446
23447
23448 fi
23449
23450
23451 fi
23452
23453
23454 fi
23455
23456
23457 fi
23458
23459
23460 fi
23461
23462     ;;
23463   esac
23464
23465   if test "x$lt_cv_dlopen" != xno; then
23466     enable_dlopen=yes
23467   else
23468     enable_dlopen=no
23469   fi
23470
23471   case $lt_cv_dlopen in
23472   dlopen)
23473     save_CPPFLAGS="$CPPFLAGS"
23474     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23475
23476     save_LDFLAGS="$LDFLAGS"
23477     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23478
23479     save_LIBS="$LIBS"
23480     LIBS="$lt_cv_dlopen_libs $LIBS"
23481
23482     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23483 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23484 if test "${lt_cv_dlopen_self+set}" = set; then
23485   echo $ECHO_N "(cached) $ECHO_C" >&6
23486 else
23487           if test "$cross_compiling" = yes; then :
23488   lt_cv_dlopen_self=cross
23489 else
23490   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23491   lt_status=$lt_dlunknown
23492   cat > conftest.$ac_ext <<EOF
23493 #line 23493 "configure"
23494 #include "confdefs.h"
23495
23496 #if HAVE_DLFCN_H
23497 #include <dlfcn.h>
23498 #endif
23499
23500 #include <stdio.h>
23501
23502 #ifdef RTLD_GLOBAL
23503 #  define LT_DLGLOBAL           RTLD_GLOBAL
23504 #else
23505 #  ifdef DL_GLOBAL
23506 #    define LT_DLGLOBAL         DL_GLOBAL
23507 #  else
23508 #    define LT_DLGLOBAL         0
23509 #  endif
23510 #endif
23511
23512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23513    find out it does not work in some platform. */
23514 #ifndef LT_DLLAZY_OR_NOW
23515 #  ifdef RTLD_LAZY
23516 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23517 #  else
23518 #    ifdef DL_LAZY
23519 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23520 #    else
23521 #      ifdef RTLD_NOW
23522 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23523 #      else
23524 #        ifdef DL_NOW
23525 #          define LT_DLLAZY_OR_NOW      DL_NOW
23526 #        else
23527 #          define LT_DLLAZY_OR_NOW      0
23528 #        endif
23529 #      endif
23530 #    endif
23531 #  endif
23532 #endif
23533
23534 #ifdef __cplusplus
23535 extern "C" void exit (int);
23536 #endif
23537
23538 void fnord() { int i=42;}
23539 int main ()
23540 {
23541   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23542   int status = $lt_dlunknown;
23543
23544   if (self)
23545     {
23546       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23547       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23548       /* dlclose (self); */
23549     }
23550
23551     exit (status);
23552 }
23553 EOF
23554   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23555   (eval $ac_link) 2>&5
23556   ac_status=$?
23557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23559     (./conftest; exit; ) 2>/dev/null
23560     lt_status=$?
23561     case x$lt_status in
23562       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23563       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23564       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23565     esac
23566   else :
23567     # compilation failed
23568     lt_cv_dlopen_self=no
23569   fi
23570 fi
23571 rm -fr conftest*
23572
23573
23574 fi
23575 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23576 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23577
23578     if test "x$lt_cv_dlopen_self" = xyes; then
23579       LDFLAGS="$LDFLAGS $link_static_flag"
23580       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23581 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23582 if test "${lt_cv_dlopen_self_static+set}" = set; then
23583   echo $ECHO_N "(cached) $ECHO_C" >&6
23584 else
23585           if test "$cross_compiling" = yes; then :
23586   lt_cv_dlopen_self_static=cross
23587 else
23588   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23589   lt_status=$lt_dlunknown
23590   cat > conftest.$ac_ext <<EOF
23591 #line 23591 "configure"
23592 #include "confdefs.h"
23593
23594 #if HAVE_DLFCN_H
23595 #include <dlfcn.h>
23596 #endif
23597
23598 #include <stdio.h>
23599
23600 #ifdef RTLD_GLOBAL
23601 #  define LT_DLGLOBAL           RTLD_GLOBAL
23602 #else
23603 #  ifdef DL_GLOBAL
23604 #    define LT_DLGLOBAL         DL_GLOBAL
23605 #  else
23606 #    define LT_DLGLOBAL         0
23607 #  endif
23608 #endif
23609
23610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23611    find out it does not work in some platform. */
23612 #ifndef LT_DLLAZY_OR_NOW
23613 #  ifdef RTLD_LAZY
23614 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23615 #  else
23616 #    ifdef DL_LAZY
23617 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23618 #    else
23619 #      ifdef RTLD_NOW
23620 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23621 #      else
23622 #        ifdef DL_NOW
23623 #          define LT_DLLAZY_OR_NOW      DL_NOW
23624 #        else
23625 #          define LT_DLLAZY_OR_NOW      0
23626 #        endif
23627 #      endif
23628 #    endif
23629 #  endif
23630 #endif
23631
23632 #ifdef __cplusplus
23633 extern "C" void exit (int);
23634 #endif
23635
23636 void fnord() { int i=42;}
23637 int main ()
23638 {
23639   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23640   int status = $lt_dlunknown;
23641
23642   if (self)
23643     {
23644       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23645       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23646       /* dlclose (self); */
23647     }
23648
23649     exit (status);
23650 }
23651 EOF
23652   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653   (eval $ac_link) 2>&5
23654   ac_status=$?
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23657     (./conftest; exit; ) 2>/dev/null
23658     lt_status=$?
23659     case x$lt_status in
23660       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23661       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23662       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23663     esac
23664   else :
23665     # compilation failed
23666     lt_cv_dlopen_self_static=no
23667   fi
23668 fi
23669 rm -fr conftest*
23670
23671
23672 fi
23673 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23674 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23675     fi
23676
23677     CPPFLAGS="$save_CPPFLAGS"
23678     LDFLAGS="$save_LDFLAGS"
23679     LIBS="$save_LIBS"
23680     ;;
23681   esac
23682
23683   case $lt_cv_dlopen_self in
23684   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23685   *) enable_dlopen_self=unknown ;;
23686   esac
23687
23688   case $lt_cv_dlopen_self_static in
23689   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23690   *) enable_dlopen_self_static=unknown ;;
23691   esac
23692 fi
23693
23694
23695 # The else clause should only fire when bootstrapping the
23696 # libtool distribution, otherwise you forgot to ship ltmain.sh
23697 # with your package, and you will get complaints that there are
23698 # no rules to generate ltmain.sh.
23699 if test -f "$ltmain"; then
23700   # See if we are running on zsh, and set the options which allow our commands through
23701   # without removal of \ escapes.
23702   if test -n "${ZSH_VERSION+set}" ; then
23703     setopt NO_GLOB_SUBST
23704   fi
23705   # Now quote all the things that may contain metacharacters while being
23706   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23707   # variables and quote the copies for generation of the libtool script.
23708   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23709     SED SHELL STRIP \
23710     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23711     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23712     deplibs_check_method reload_flag reload_cmds need_locks \
23713     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23714     lt_cv_sys_global_symbol_to_c_name_address \
23715     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23716     old_postinstall_cmds old_postuninstall_cmds \
23717     compiler_GCJ \
23718     CC_GCJ \
23719     LD_GCJ \
23720     lt_prog_compiler_wl_GCJ \
23721     lt_prog_compiler_pic_GCJ \
23722     lt_prog_compiler_static_GCJ \
23723     lt_prog_compiler_no_builtin_flag_GCJ \
23724     export_dynamic_flag_spec_GCJ \
23725     thread_safe_flag_spec_GCJ \
23726     whole_archive_flag_spec_GCJ \
23727     enable_shared_with_static_runtimes_GCJ \
23728     old_archive_cmds_GCJ \
23729     old_archive_from_new_cmds_GCJ \
23730     predep_objects_GCJ \
23731     postdep_objects_GCJ \
23732     predeps_GCJ \
23733     postdeps_GCJ \
23734     compiler_lib_search_path_GCJ \
23735     archive_cmds_GCJ \
23736     archive_expsym_cmds_GCJ \
23737     postinstall_cmds_GCJ \
23738     postuninstall_cmds_GCJ \
23739     old_archive_from_expsyms_cmds_GCJ \
23740     allow_undefined_flag_GCJ \
23741     no_undefined_flag_GCJ \
23742     export_symbols_cmds_GCJ \
23743     hardcode_libdir_flag_spec_GCJ \
23744     hardcode_libdir_flag_spec_ld_GCJ \
23745     hardcode_libdir_separator_GCJ \
23746     hardcode_automatic_GCJ \
23747     module_cmds_GCJ \
23748     module_expsym_cmds_GCJ \
23749     lt_cv_prog_compiler_c_o_GCJ \
23750     exclude_expsyms_GCJ \
23751     include_expsyms_GCJ; do
23752
23753     case $var in
23754     old_archive_cmds_GCJ | \
23755     old_archive_from_new_cmds_GCJ | \
23756     archive_cmds_GCJ | \
23757     archive_expsym_cmds_GCJ | \
23758     module_cmds_GCJ | \
23759     module_expsym_cmds_GCJ | \
23760     old_archive_from_expsyms_cmds_GCJ | \
23761     export_symbols_cmds_GCJ | \
23762     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23763     postinstall_cmds | postuninstall_cmds | \
23764     old_postinstall_cmds | old_postuninstall_cmds | \
23765     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23766       # Double-quote double-evaled strings.
23767       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23768       ;;
23769     *)
23770       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23771       ;;
23772     esac
23773   done
23774
23775   case $lt_echo in
23776   *'\$0 --fallback-echo"')
23777     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23778     ;;
23779   esac
23780
23781 cfgfile="$ofile"
23782
23783   cat <<__EOF__ >> "$cfgfile"
23784 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23785
23786 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23787
23788 # Shell to use when invoking shell scripts.
23789 SHELL=$lt_SHELL
23790
23791 # Whether or not to build shared libraries.
23792 build_libtool_libs=$enable_shared
23793
23794 # Whether or not to build static libraries.
23795 build_old_libs=$enable_static
23796
23797 # Whether or not to add -lc for building shared libraries.
23798 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23799
23800 # Whether or not to disallow shared libs when runtime libs are static
23801 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23802
23803 # Whether or not to optimize for fast installation.
23804 fast_install=$enable_fast_install
23805
23806 # The host system.
23807 host_alias=$host_alias
23808 host=$host
23809
23810 # An echo program that does not interpret backslashes.
23811 echo=$lt_echo
23812
23813 # The archiver.
23814 AR=$lt_AR
23815 AR_FLAGS=$lt_AR_FLAGS
23816
23817 # A C compiler.
23818 LTCC=$lt_LTCC
23819
23820 # A language-specific compiler.
23821 CC=$lt_compiler_GCJ
23822
23823 # Is the compiler the GNU C compiler?
23824 with_gcc=$GCC_GCJ
23825
23826 # An ERE matcher.
23827 EGREP=$lt_EGREP
23828
23829 # The linker used to build libraries.
23830 LD=$lt_LD_GCJ
23831
23832 # Whether we need hard or soft links.
23833 LN_S=$lt_LN_S
23834
23835 # A BSD-compatible nm program.
23836 NM=$lt_NM
23837
23838 # A symbol stripping program
23839 STRIP=$lt_STRIP
23840
23841 # Used to examine libraries when file_magic_cmd begins "file"
23842 MAGIC_CMD=$MAGIC_CMD
23843
23844 # Used on cygwin: DLL creation program.
23845 DLLTOOL="$DLLTOOL"
23846
23847 # Used on cygwin: object dumper.
23848 OBJDUMP="$OBJDUMP"
23849
23850 # Used on cygwin: assembler.
23851 AS="$AS"
23852
23853 # The name of the directory that contains temporary libtool files.
23854 objdir=$objdir
23855
23856 # How to create reloadable object files.
23857 reload_flag=$lt_reload_flag
23858 reload_cmds=$lt_reload_cmds
23859
23860 # How to pass a linker flag through the compiler.
23861 wl=$lt_lt_prog_compiler_wl_GCJ
23862
23863 # Object file suffix (normally "o").
23864 objext="$ac_objext"
23865
23866 # Old archive suffix (normally "a").
23867 libext="$libext"
23868
23869 # Shared library suffix (normally ".so").
23870 shrext_cmds='$shrext_cmds'
23871
23872 # Executable file suffix (normally "").
23873 exeext="$exeext"
23874
23875 # Additional compiler flags for building library objects.
23876 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23877 pic_mode=$pic_mode
23878
23879 # What is the maximum length of a command?
23880 max_cmd_len=$lt_cv_sys_max_cmd_len
23881
23882 # Does compiler simultaneously support -c and -o options?
23883 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23884
23885 # Must we lock files when doing compilation ?
23886 need_locks=$lt_need_locks
23887
23888 # Do we need the lib prefix for modules?
23889 need_lib_prefix=$need_lib_prefix
23890
23891 # Do we need a version for libraries?
23892 need_version=$need_version
23893
23894 # Whether dlopen is supported.
23895 dlopen_support=$enable_dlopen
23896
23897 # Whether dlopen of programs is supported.
23898 dlopen_self=$enable_dlopen_self
23899
23900 # Whether dlopen of statically linked programs is supported.
23901 dlopen_self_static=$enable_dlopen_self_static
23902
23903 # Compiler flag to prevent dynamic linking.
23904 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23905
23906 # Compiler flag to turn off builtin functions.
23907 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23908
23909 # Compiler flag to allow reflexive dlopens.
23910 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23911
23912 # Compiler flag to generate shared objects directly from archives.
23913 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23914
23915 # Compiler flag to generate thread-safe objects.
23916 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23917
23918 # Library versioning type.
23919 version_type=$version_type
23920
23921 # Format of library name prefix.
23922 libname_spec=$lt_libname_spec
23923
23924 # List of archive names.  First name is the real one, the rest are links.
23925 # The last name is the one that the linker finds with -lNAME.
23926 library_names_spec=$lt_library_names_spec
23927
23928 # The coded name of the library, if different from the real name.
23929 soname_spec=$lt_soname_spec
23930
23931 # Commands used to build and install an old-style archive.
23932 RANLIB=$lt_RANLIB
23933 old_archive_cmds=$lt_old_archive_cmds_GCJ
23934 old_postinstall_cmds=$lt_old_postinstall_cmds
23935 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23936
23937 # Create an old-style archive from a shared archive.
23938 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23939
23940 # Create a temporary old-style archive to link instead of a shared archive.
23941 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23942
23943 # Commands used to build and install a shared archive.
23944 archive_cmds=$lt_archive_cmds_GCJ
23945 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23946 postinstall_cmds=$lt_postinstall_cmds
23947 postuninstall_cmds=$lt_postuninstall_cmds
23948
23949 # Commands used to build a loadable module (assumed same as above if empty)
23950 module_cmds=$lt_module_cmds_GCJ
23951 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23952
23953 # Commands to strip libraries.
23954 old_striplib=$lt_old_striplib
23955 striplib=$lt_striplib
23956
23957 # Dependencies to place before the objects being linked to create a
23958 # shared library.
23959 predep_objects=$lt_predep_objects_GCJ
23960
23961 # Dependencies to place after the objects being linked to create a
23962 # shared library.
23963 postdep_objects=$lt_postdep_objects_GCJ
23964
23965 # Dependencies to place before the objects being linked to create a
23966 # shared library.
23967 predeps=$lt_predeps_GCJ
23968
23969 # Dependencies to place after the objects being linked to create a
23970 # shared library.
23971 postdeps=$lt_postdeps_GCJ
23972
23973 # The library search path used internally by the compiler when linking
23974 # a shared library.
23975 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23976
23977 # Method to check whether dependent libraries are shared objects.
23978 deplibs_check_method=$lt_deplibs_check_method
23979
23980 # Command to use when deplibs_check_method == file_magic.
23981 file_magic_cmd=$lt_file_magic_cmd
23982
23983 # Flag that allows shared libraries with undefined symbols to be built.
23984 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23985
23986 # Flag that forces no undefined symbols.
23987 no_undefined_flag=$lt_no_undefined_flag_GCJ
23988
23989 # Commands used to finish a libtool library installation in a directory.
23990 finish_cmds=$lt_finish_cmds
23991
23992 # Same as above, but a single script fragment to be evaled but not shown.
23993 finish_eval=$lt_finish_eval
23994
23995 # Take the output of nm and produce a listing of raw symbols and C names.
23996 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23997
23998 # Transform the output of nm in a proper C declaration
23999 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24000
24001 # Transform the output of nm in a C name address pair
24002 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24003
24004 # This is the shared library runtime path variable.
24005 runpath_var=$runpath_var
24006
24007 # This is the shared library path variable.
24008 shlibpath_var=$shlibpath_var
24009
24010 # Is shlibpath searched before the hard-coded library search path?
24011 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24012
24013 # How to hardcode a shared library path into an executable.
24014 hardcode_action=$hardcode_action_GCJ
24015
24016 # Whether we should hardcode library paths into libraries.
24017 hardcode_into_libs=$hardcode_into_libs
24018
24019 # Flag to hardcode \$libdir into a binary during linking.
24020 # This must work even if \$libdir does not exist.
24021 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24022
24023 # If ld is used when linking, flag to hardcode \$libdir into
24024 # a binary during linking. This must work even if \$libdir does
24025 # not exist.
24026 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24027
24028 # Whether we need a single -rpath flag with a separated argument.
24029 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24030
24031 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24032 # resulting binary.
24033 hardcode_direct=$hardcode_direct_GCJ
24034
24035 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24036 # resulting binary.
24037 hardcode_minus_L=$hardcode_minus_L_GCJ
24038
24039 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24040 # the resulting binary.
24041 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24042
24043 # Set to yes if building a shared library automatically hardcodes DIR into the library
24044 # and all subsequent libraries and executables linked against it.
24045 hardcode_automatic=$hardcode_automatic_GCJ
24046
24047 # Variables whose values should be saved in libtool wrapper scripts and
24048 # restored at relink time.
24049 variables_saved_for_relink="$variables_saved_for_relink"
24050
24051 # Whether libtool must link a program against all its dependency libraries.
24052 link_all_deplibs=$link_all_deplibs_GCJ
24053
24054 # Compile-time system search path for libraries
24055 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24056
24057 # Run-time system search path for libraries
24058 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24059
24060 # Fix the shell variable \$srcfile for the compiler.
24061 fix_srcfile_path="$fix_srcfile_path_GCJ"
24062
24063 # Set to yes if exported symbols are required.
24064 always_export_symbols=$always_export_symbols_GCJ
24065
24066 # The commands to list exported symbols.
24067 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24068
24069 # The commands to extract the exported symbol list from a shared archive.
24070 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24071
24072 # Symbols that should not be listed in the preloaded symbols.
24073 exclude_expsyms=$lt_exclude_expsyms_GCJ
24074
24075 # Symbols that must always be exported.
24076 include_expsyms=$lt_include_expsyms_GCJ
24077
24078 # ### END LIBTOOL TAG CONFIG: $tagname
24079
24080 __EOF__
24081
24082
24083 else
24084   # If there is no Makefile yet, we rely on a make rule to execute
24085   # `config.status --recheck' to rerun these tests and create the
24086   # libtool script then.
24087   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24088   if test -f "$ltmain_in"; then
24089     test -f Makefile && make "$ltmain"
24090   fi
24091 fi
24092
24093
24094 ac_ext=c
24095 ac_cpp='$CPP $CPPFLAGS'
24096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24099
24100 CC="$lt_save_CC"
24101
24102         else
24103           tagname=""
24104         fi
24105         ;;
24106
24107       RC)
24108         ac_ext=c
24109 ac_cpp='$CPP $CPPFLAGS'
24110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24113
24114
24115 # Source file extension for RC test sources.
24116 ac_ext=rc
24117
24118 # Object file extension for compiled RC test sources.
24119 objext=o
24120 objext_RC=$objext
24121
24122 # Code to be used in simple compile tests
24123 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24124
24125 # Code to be used in simple link tests
24126 lt_simple_link_test_code="$lt_simple_compile_test_code"
24127
24128 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24129
24130 # If no C compiler was specified, use CC.
24131 LTCC=${LTCC-"$CC"}
24132
24133 # Allow CC to be a program name with arguments.
24134 compiler=$CC
24135
24136
24137 # Allow CC to be a program name with arguments.
24138 lt_save_CC="$CC"
24139 CC=${RC-"windres"}
24140 compiler=$CC
24141 compiler_RC=$CC
24142 lt_cv_prog_compiler_c_o_RC=yes
24143
24144 # The else clause should only fire when bootstrapping the
24145 # libtool distribution, otherwise you forgot to ship ltmain.sh
24146 # with your package, and you will get complaints that there are
24147 # no rules to generate ltmain.sh.
24148 if test -f "$ltmain"; then
24149   # See if we are running on zsh, and set the options which allow our commands through
24150   # without removal of \ escapes.
24151   if test -n "${ZSH_VERSION+set}" ; then
24152     setopt NO_GLOB_SUBST
24153   fi
24154   # Now quote all the things that may contain metacharacters while being
24155   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24156   # variables and quote the copies for generation of the libtool script.
24157   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24158     SED SHELL STRIP \
24159     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24160     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24161     deplibs_check_method reload_flag reload_cmds need_locks \
24162     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24163     lt_cv_sys_global_symbol_to_c_name_address \
24164     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24165     old_postinstall_cmds old_postuninstall_cmds \
24166     compiler_RC \
24167     CC_RC \
24168     LD_RC \
24169     lt_prog_compiler_wl_RC \
24170     lt_prog_compiler_pic_RC \
24171     lt_prog_compiler_static_RC \
24172     lt_prog_compiler_no_builtin_flag_RC \
24173     export_dynamic_flag_spec_RC \
24174     thread_safe_flag_spec_RC \
24175     whole_archive_flag_spec_RC \
24176     enable_shared_with_static_runtimes_RC \
24177     old_archive_cmds_RC \
24178     old_archive_from_new_cmds_RC \
24179     predep_objects_RC \
24180     postdep_objects_RC \
24181     predeps_RC \
24182     postdeps_RC \
24183     compiler_lib_search_path_RC \
24184     archive_cmds_RC \
24185     archive_expsym_cmds_RC \
24186     postinstall_cmds_RC \
24187     postuninstall_cmds_RC \
24188     old_archive_from_expsyms_cmds_RC \
24189     allow_undefined_flag_RC \
24190     no_undefined_flag_RC \
24191     export_symbols_cmds_RC \
24192     hardcode_libdir_flag_spec_RC \
24193     hardcode_libdir_flag_spec_ld_RC \
24194     hardcode_libdir_separator_RC \
24195     hardcode_automatic_RC \
24196     module_cmds_RC \
24197     module_expsym_cmds_RC \
24198     lt_cv_prog_compiler_c_o_RC \
24199     exclude_expsyms_RC \
24200     include_expsyms_RC; do
24201
24202     case $var in
24203     old_archive_cmds_RC | \
24204     old_archive_from_new_cmds_RC | \
24205     archive_cmds_RC | \
24206     archive_expsym_cmds_RC | \
24207     module_cmds_RC | \
24208     module_expsym_cmds_RC | \
24209     old_archive_from_expsyms_cmds_RC | \
24210     export_symbols_cmds_RC | \
24211     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24212     postinstall_cmds | postuninstall_cmds | \
24213     old_postinstall_cmds | old_postuninstall_cmds | \
24214     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24215       # Double-quote double-evaled strings.
24216       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24217       ;;
24218     *)
24219       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24220       ;;
24221     esac
24222   done
24223
24224   case $lt_echo in
24225   *'\$0 --fallback-echo"')
24226     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24227     ;;
24228   esac
24229
24230 cfgfile="$ofile"
24231
24232   cat <<__EOF__ >> "$cfgfile"
24233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24234
24235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24236
24237 # Shell to use when invoking shell scripts.
24238 SHELL=$lt_SHELL
24239
24240 # Whether or not to build shared libraries.
24241 build_libtool_libs=$enable_shared
24242
24243 # Whether or not to build static libraries.
24244 build_old_libs=$enable_static
24245
24246 # Whether or not to add -lc for building shared libraries.
24247 build_libtool_need_lc=$archive_cmds_need_lc_RC
24248
24249 # Whether or not to disallow shared libs when runtime libs are static
24250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24251
24252 # Whether or not to optimize for fast installation.
24253 fast_install=$enable_fast_install
24254
24255 # The host system.
24256 host_alias=$host_alias
24257 host=$host
24258
24259 # An echo program that does not interpret backslashes.
24260 echo=$lt_echo
24261
24262 # The archiver.
24263 AR=$lt_AR
24264 AR_FLAGS=$lt_AR_FLAGS
24265
24266 # A C compiler.
24267 LTCC=$lt_LTCC
24268
24269 # A language-specific compiler.
24270 CC=$lt_compiler_RC
24271
24272 # Is the compiler the GNU C compiler?
24273 with_gcc=$GCC_RC
24274
24275 # An ERE matcher.
24276 EGREP=$lt_EGREP
24277
24278 # The linker used to build libraries.
24279 LD=$lt_LD_RC
24280
24281 # Whether we need hard or soft links.
24282 LN_S=$lt_LN_S
24283
24284 # A BSD-compatible nm program.
24285 NM=$lt_NM
24286
24287 # A symbol stripping program
24288 STRIP=$lt_STRIP
24289
24290 # Used to examine libraries when file_magic_cmd begins "file"
24291 MAGIC_CMD=$MAGIC_CMD
24292
24293 # Used on cygwin: DLL creation program.
24294 DLLTOOL="$DLLTOOL"
24295
24296 # Used on cygwin: object dumper.
24297 OBJDUMP="$OBJDUMP"
24298
24299 # Used on cygwin: assembler.
24300 AS="$AS"
24301
24302 # The name of the directory that contains temporary libtool files.
24303 objdir=$objdir
24304
24305 # How to create reloadable object files.
24306 reload_flag=$lt_reload_flag
24307 reload_cmds=$lt_reload_cmds
24308
24309 # How to pass a linker flag through the compiler.
24310 wl=$lt_lt_prog_compiler_wl_RC
24311
24312 # Object file suffix (normally "o").
24313 objext="$ac_objext"
24314
24315 # Old archive suffix (normally "a").
24316 libext="$libext"
24317
24318 # Shared library suffix (normally ".so").
24319 shrext_cmds='$shrext_cmds'
24320
24321 # Executable file suffix (normally "").
24322 exeext="$exeext"
24323
24324 # Additional compiler flags for building library objects.
24325 pic_flag=$lt_lt_prog_compiler_pic_RC
24326 pic_mode=$pic_mode
24327
24328 # What is the maximum length of a command?
24329 max_cmd_len=$lt_cv_sys_max_cmd_len
24330
24331 # Does compiler simultaneously support -c and -o options?
24332 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24333
24334 # Must we lock files when doing compilation ?
24335 need_locks=$lt_need_locks
24336
24337 # Do we need the lib prefix for modules?
24338 need_lib_prefix=$need_lib_prefix
24339
24340 # Do we need a version for libraries?
24341 need_version=$need_version
24342
24343 # Whether dlopen is supported.
24344 dlopen_support=$enable_dlopen
24345
24346 # Whether dlopen of programs is supported.
24347 dlopen_self=$enable_dlopen_self
24348
24349 # Whether dlopen of statically linked programs is supported.
24350 dlopen_self_static=$enable_dlopen_self_static
24351
24352 # Compiler flag to prevent dynamic linking.
24353 link_static_flag=$lt_lt_prog_compiler_static_RC
24354
24355 # Compiler flag to turn off builtin functions.
24356 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24357
24358 # Compiler flag to allow reflexive dlopens.
24359 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24360
24361 # Compiler flag to generate shared objects directly from archives.
24362 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24363
24364 # Compiler flag to generate thread-safe objects.
24365 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24366
24367 # Library versioning type.
24368 version_type=$version_type
24369
24370 # Format of library name prefix.
24371 libname_spec=$lt_libname_spec
24372
24373 # List of archive names.  First name is the real one, the rest are links.
24374 # The last name is the one that the linker finds with -lNAME.
24375 library_names_spec=$lt_library_names_spec
24376
24377 # The coded name of the library, if different from the real name.
24378 soname_spec=$lt_soname_spec
24379
24380 # Commands used to build and install an old-style archive.
24381 RANLIB=$lt_RANLIB
24382 old_archive_cmds=$lt_old_archive_cmds_RC
24383 old_postinstall_cmds=$lt_old_postinstall_cmds
24384 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24385
24386 # Create an old-style archive from a shared archive.
24387 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24388
24389 # Create a temporary old-style archive to link instead of a shared archive.
24390 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24391
24392 # Commands used to build and install a shared archive.
24393 archive_cmds=$lt_archive_cmds_RC
24394 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24395 postinstall_cmds=$lt_postinstall_cmds
24396 postuninstall_cmds=$lt_postuninstall_cmds
24397
24398 # Commands used to build a loadable module (assumed same as above if empty)
24399 module_cmds=$lt_module_cmds_RC
24400 module_expsym_cmds=$lt_module_expsym_cmds_RC
24401
24402 # Commands to strip libraries.
24403 old_striplib=$lt_old_striplib
24404 striplib=$lt_striplib
24405
24406 # Dependencies to place before the objects being linked to create a
24407 # shared library.
24408 predep_objects=$lt_predep_objects_RC
24409
24410 # Dependencies to place after the objects being linked to create a
24411 # shared library.
24412 postdep_objects=$lt_postdep_objects_RC
24413
24414 # Dependencies to place before the objects being linked to create a
24415 # shared library.
24416 predeps=$lt_predeps_RC
24417
24418 # Dependencies to place after the objects being linked to create a
24419 # shared library.
24420 postdeps=$lt_postdeps_RC
24421
24422 # The library search path used internally by the compiler when linking
24423 # a shared library.
24424 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24425
24426 # Method to check whether dependent libraries are shared objects.
24427 deplibs_check_method=$lt_deplibs_check_method
24428
24429 # Command to use when deplibs_check_method == file_magic.
24430 file_magic_cmd=$lt_file_magic_cmd
24431
24432 # Flag that allows shared libraries with undefined symbols to be built.
24433 allow_undefined_flag=$lt_allow_undefined_flag_RC
24434
24435 # Flag that forces no undefined symbols.
24436 no_undefined_flag=$lt_no_undefined_flag_RC
24437
24438 # Commands used to finish a libtool library installation in a directory.
24439 finish_cmds=$lt_finish_cmds
24440
24441 # Same as above, but a single script fragment to be evaled but not shown.
24442 finish_eval=$lt_finish_eval
24443
24444 # Take the output of nm and produce a listing of raw symbols and C names.
24445 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24446
24447 # Transform the output of nm in a proper C declaration
24448 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24449
24450 # Transform the output of nm in a C name address pair
24451 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24452
24453 # This is the shared library runtime path variable.
24454 runpath_var=$runpath_var
24455
24456 # This is the shared library path variable.
24457 shlibpath_var=$shlibpath_var
24458
24459 # Is shlibpath searched before the hard-coded library search path?
24460 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24461
24462 # How to hardcode a shared library path into an executable.
24463 hardcode_action=$hardcode_action_RC
24464
24465 # Whether we should hardcode library paths into libraries.
24466 hardcode_into_libs=$hardcode_into_libs
24467
24468 # Flag to hardcode \$libdir into a binary during linking.
24469 # This must work even if \$libdir does not exist.
24470 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24471
24472 # If ld is used when linking, flag to hardcode \$libdir into
24473 # a binary during linking. This must work even if \$libdir does
24474 # not exist.
24475 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24476
24477 # Whether we need a single -rpath flag with a separated argument.
24478 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24479
24480 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24481 # resulting binary.
24482 hardcode_direct=$hardcode_direct_RC
24483
24484 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24485 # resulting binary.
24486 hardcode_minus_L=$hardcode_minus_L_RC
24487
24488 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24489 # the resulting binary.
24490 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24491
24492 # Set to yes if building a shared library automatically hardcodes DIR into the library
24493 # and all subsequent libraries and executables linked against it.
24494 hardcode_automatic=$hardcode_automatic_RC
24495
24496 # Variables whose values should be saved in libtool wrapper scripts and
24497 # restored at relink time.
24498 variables_saved_for_relink="$variables_saved_for_relink"
24499
24500 # Whether libtool must link a program against all its dependency libraries.
24501 link_all_deplibs=$link_all_deplibs_RC
24502
24503 # Compile-time system search path for libraries
24504 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24505
24506 # Run-time system search path for libraries
24507 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24508
24509 # Fix the shell variable \$srcfile for the compiler.
24510 fix_srcfile_path="$fix_srcfile_path_RC"
24511
24512 # Set to yes if exported symbols are required.
24513 always_export_symbols=$always_export_symbols_RC
24514
24515 # The commands to list exported symbols.
24516 export_symbols_cmds=$lt_export_symbols_cmds_RC
24517
24518 # The commands to extract the exported symbol list from a shared archive.
24519 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24520
24521 # Symbols that should not be listed in the preloaded symbols.
24522 exclude_expsyms=$lt_exclude_expsyms_RC
24523
24524 # Symbols that must always be exported.
24525 include_expsyms=$lt_include_expsyms_RC
24526
24527 # ### END LIBTOOL TAG CONFIG: $tagname
24528
24529 __EOF__
24530
24531
24532 else
24533   # If there is no Makefile yet, we rely on a make rule to execute
24534   # `config.status --recheck' to rerun these tests and create the
24535   # libtool script then.
24536   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24537   if test -f "$ltmain_in"; then
24538     test -f Makefile && make "$ltmain"
24539   fi
24540 fi
24541
24542
24543 ac_ext=c
24544 ac_cpp='$CPP $CPPFLAGS'
24545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24548
24549 CC="$lt_save_CC"
24550
24551         ;;
24552
24553       *)
24554         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24555 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24556    { (exit 1); exit 1; }; }
24557         ;;
24558       esac
24559
24560       # Append the new tag name to the list of available tags.
24561       if test -n "$tagname" ; then
24562       available_tags="$available_tags $tagname"
24563     fi
24564     fi
24565   done
24566   IFS="$lt_save_ifs"
24567
24568   # Now substitute the updated list of available tags.
24569   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24570     mv "${ofile}T" "$ofile"
24571     chmod +x "$ofile"
24572   else
24573     rm -f "${ofile}T"
24574     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24575 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24576    { (exit 1); exit 1; }; }
24577   fi
24578 fi
24579
24580
24581
24582 # This can be used to rebuild libtool when needed
24583 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24584
24585 # Always use our own libtool.
24586 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24587
24588 # Prevent multiple expansion
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610 if test "$lt_cv_dlopen_self" = "yes" ; then
24611
24612 cat >>confdefs.h <<\_ACEOF
24613 #define CAN_DLOPEN_SELF 1
24614 _ACEOF
24615
24616 fi
24617
24618 etags_version=`$ETAGS --version 2>&1`
24619 case "$etags_version" in
24620         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24621         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24622         *) ETAGSFLAGS="" ;;
24623 esac
24624 ETAGSFLAGS=$ETAGSFLAGS
24625
24626
24627 if test "$WITH_LLVMGCCDIR" = "default" ; then
24628   # Extract the first word of "llvm-gcc", so it can be a program name with args.
24629 set dummy llvm-gcc; ac_word=$2
24630 echo "$as_me:$LINENO: checking for $ac_word" >&5
24631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24632 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24633   echo $ECHO_N "(cached) $ECHO_C" >&6
24634 else
24635   case $LLVMGCC in
24636   [\\/]* | ?:[\\/]*)
24637   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24638   ;;
24639   *)
24640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24641 for as_dir in $PATH
24642 do
24643   IFS=$as_save_IFS
24644   test -z "$as_dir" && as_dir=.
24645   for ac_exec_ext in '' $ac_executable_extensions; do
24646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24647     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24649     break 2
24650   fi
24651 done
24652 done
24653
24654   ;;
24655 esac
24656 fi
24657 LLVMGCC=$ac_cv_path_LLVMGCC
24658
24659 if test -n "$LLVMGCC"; then
24660   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24661 echo "${ECHO_T}$LLVMGCC" >&6
24662 else
24663   echo "$as_me:$LINENO: result: no" >&5
24664 echo "${ECHO_T}no" >&6
24665 fi
24666
24667   # Extract the first word of "llvm-g++", so it can be a program name with args.
24668 set dummy llvm-g++; ac_word=$2
24669 echo "$as_me:$LINENO: checking for $ac_word" >&5
24670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24671 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24672   echo $ECHO_N "(cached) $ECHO_C" >&6
24673 else
24674   case $LLVMGXX in
24675   [\\/]* | ?:[\\/]*)
24676   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24677   ;;
24678   *)
24679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24680 for as_dir in $PATH
24681 do
24682   IFS=$as_save_IFS
24683   test -z "$as_dir" && as_dir=.
24684   for ac_exec_ext in '' $ac_executable_extensions; do
24685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24686     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24688     break 2
24689   fi
24690 done
24691 done
24692
24693   ;;
24694 esac
24695 fi
24696 LLVMGXX=$ac_cv_path_LLVMGXX
24697
24698 if test -n "$LLVMGXX"; then
24699   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24700 echo "${ECHO_T}$LLVMGXX" >&6
24701 else
24702   echo "$as_me:$LINENO: result: no" >&5
24703 echo "${ECHO_T}no" >&6
24704 fi
24705
24706 else
24707   LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24708   LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24709   LLVMGCC=$LLVMGCC
24710
24711   LLVMGXX=$LLVMGXX
24712
24713 fi
24714
24715 echo "$as_me:$LINENO: checking tool compatibility" >&5
24716 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24717
24718 ICC=no
24719 IXX=no
24720 case $CC in
24721   icc*|icpc*)
24722     ICC=yes
24723     IXX=yes
24724     ;;
24725    *)
24726     ;;
24727 esac
24728
24729 if test "$GCC" != "yes" && test "$ICC" != "yes"
24730 then
24731   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24732 echo "$as_me: error: gcc|icc required but not found" >&2;}
24733    { (exit 1); exit 1; }; }
24734 fi
24735
24736 if test "$GXX" != "yes" && test "$IXX" != "yes"
24737 then
24738   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24739 echo "$as_me: error: g++|icc required but not found" >&2;}
24740    { (exit 1); exit 1; }; }
24741 fi
24742
24743 if test "$GCC" = "yes"
24744 then
24745   gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24746   if test "$gccmajor" -lt "3"
24747   then
24748     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24749 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24750    { (exit 1); exit 1; }; }
24751   fi
24752 fi
24753
24754 if test -z "$llvm_cv_gnu_make_command"
24755 then
24756   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24757 echo "$as_me: error: GNU Make required but not found" >&2;}
24758    { (exit 1); exit 1; }; }
24759 fi
24760
24761 echo "$as_me:$LINENO: result: ok" >&5
24762 echo "${ECHO_T}ok" >&6
24763
24764
24765
24766 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24767 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24768 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24769   echo $ECHO_N "(cached) $ECHO_C" >&6
24770 else
24771   ac_check_lib_save_LIBS=$LIBS
24772 LIBS="-lelf  $LIBS"
24773 cat >conftest.$ac_ext <<_ACEOF
24774 /* confdefs.h.  */
24775 _ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h.  */
24779
24780 /* Override any gcc2 internal prototype to avoid an error.  */
24781 #ifdef __cplusplus
24782 extern "C"
24783 #endif
24784 /* We use char because int might match the return type of a gcc2
24785    builtin and then its argument prototype would still apply.  */
24786 char elf_begin ();
24787 int
24788 main ()
24789 {
24790 elf_begin ();
24791   ;
24792   return 0;
24793 }
24794 _ACEOF
24795 rm -f conftest.$ac_objext conftest$ac_exeext
24796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24797   (eval $ac_link) 2>conftest.er1
24798   ac_status=$?
24799   grep -v '^ *+' conftest.er1 >conftest.err
24800   rm -f conftest.er1
24801   cat conftest.err >&5
24802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803   (exit $ac_status); } &&
24804          { ac_try='test -z "$ac_c_werror_flag"
24805                          || test ! -s conftest.err'
24806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24807   (eval $ac_try) 2>&5
24808   ac_status=$?
24809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810   (exit $ac_status); }; } &&
24811          { ac_try='test -s conftest$ac_exeext'
24812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24813   (eval $ac_try) 2>&5
24814   ac_status=$?
24815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816   (exit $ac_status); }; }; then
24817   ac_cv_lib_elf_elf_begin=yes
24818 else
24819   echo "$as_me: failed program was:" >&5
24820 sed 's/^/| /' conftest.$ac_ext >&5
24821
24822 ac_cv_lib_elf_elf_begin=no
24823 fi
24824 rm -f conftest.err conftest.$ac_objext \
24825       conftest$ac_exeext conftest.$ac_ext
24826 LIBS=$ac_check_lib_save_LIBS
24827 fi
24828 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24829 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24830 if test $ac_cv_lib_elf_elf_begin = yes; then
24831   cat >>confdefs.h <<_ACEOF
24832 #define HAVE_LIBELF 1
24833 _ACEOF
24834
24835   LIBS="-lelf $LIBS"
24836
24837 fi
24838
24839
24840 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24841 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24842 if test "${ac_cv_search_lt_dlopen+set}" = set; then
24843   echo $ECHO_N "(cached) $ECHO_C" >&6
24844 else
24845   ac_func_search_save_LIBS=$LIBS
24846 ac_cv_search_lt_dlopen=no
24847 cat >conftest.$ac_ext <<_ACEOF
24848 /* confdefs.h.  */
24849 _ACEOF
24850 cat confdefs.h >>conftest.$ac_ext
24851 cat >>conftest.$ac_ext <<_ACEOF
24852 /* end confdefs.h.  */
24853
24854 /* Override any gcc2 internal prototype to avoid an error.  */
24855 #ifdef __cplusplus
24856 extern "C"
24857 #endif
24858 /* We use char because int might match the return type of a gcc2
24859    builtin and then its argument prototype would still apply.  */
24860 char lt_dlopen ();
24861 int
24862 main ()
24863 {
24864 lt_dlopen ();
24865   ;
24866   return 0;
24867 }
24868 _ACEOF
24869 rm -f conftest.$ac_objext conftest$ac_exeext
24870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24871   (eval $ac_link) 2>conftest.er1
24872   ac_status=$?
24873   grep -v '^ *+' conftest.er1 >conftest.err
24874   rm -f conftest.er1
24875   cat conftest.err >&5
24876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877   (exit $ac_status); } &&
24878          { ac_try='test -z "$ac_c_werror_flag"
24879                          || test ! -s conftest.err'
24880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24881   (eval $ac_try) 2>&5
24882   ac_status=$?
24883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884   (exit $ac_status); }; } &&
24885          { ac_try='test -s conftest$ac_exeext'
24886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887   (eval $ac_try) 2>&5
24888   ac_status=$?
24889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890   (exit $ac_status); }; }; then
24891   ac_cv_search_lt_dlopen="none required"
24892 else
24893   echo "$as_me: failed program was:" >&5
24894 sed 's/^/| /' conftest.$ac_ext >&5
24895
24896 fi
24897 rm -f conftest.err conftest.$ac_objext \
24898       conftest$ac_exeext conftest.$ac_ext
24899 if test "$ac_cv_search_lt_dlopen" = no; then
24900   for ac_lib in ltdl; do
24901     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24902     cat >conftest.$ac_ext <<_ACEOF
24903 /* confdefs.h.  */
24904 _ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h.  */
24908
24909 /* Override any gcc2 internal prototype to avoid an error.  */
24910 #ifdef __cplusplus
24911 extern "C"
24912 #endif
24913 /* We use char because int might match the return type of a gcc2
24914    builtin and then its argument prototype would still apply.  */
24915 char lt_dlopen ();
24916 int
24917 main ()
24918 {
24919 lt_dlopen ();
24920   ;
24921   return 0;
24922 }
24923 _ACEOF
24924 rm -f conftest.$ac_objext conftest$ac_exeext
24925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24926   (eval $ac_link) 2>conftest.er1
24927   ac_status=$?
24928   grep -v '^ *+' conftest.er1 >conftest.err
24929   rm -f conftest.er1
24930   cat conftest.err >&5
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); } &&
24933          { ac_try='test -z "$ac_c_werror_flag"
24934                          || test ! -s conftest.err'
24935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936   (eval $ac_try) 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); }; } &&
24940          { ac_try='test -s conftest$ac_exeext'
24941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942   (eval $ac_try) 2>&5
24943   ac_status=$?
24944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945   (exit $ac_status); }; }; then
24946   ac_cv_search_lt_dlopen="-l$ac_lib"
24947 break
24948 else
24949   echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24951
24952 fi
24953 rm -f conftest.err conftest.$ac_objext \
24954       conftest$ac_exeext conftest.$ac_ext
24955   done
24956 fi
24957 LIBS=$ac_func_search_save_LIBS
24958 fi
24959 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24960 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24961 if test "$ac_cv_search_lt_dlopen" != no; then
24962   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24963
24964 cat >>confdefs.h <<\_ACEOF
24965 #define HAVE_LT_DLOPEN 1
24966 _ACEOF
24967
24968 else
24969   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24970                            not be available" >&5
24971 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24972                            not be available" >&2;}
24973 fi
24974
24975
24976 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24977 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24978 if test "${ac_cv_search_dlopen+set}" = set; then
24979   echo $ECHO_N "(cached) $ECHO_C" >&6
24980 else
24981   ac_func_search_save_LIBS=$LIBS
24982 ac_cv_search_dlopen=no
24983 cat >conftest.$ac_ext <<_ACEOF
24984 /* confdefs.h.  */
24985 _ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h.  */
24989
24990 /* Override any gcc2 internal prototype to avoid an error.  */
24991 #ifdef __cplusplus
24992 extern "C"
24993 #endif
24994 /* We use char because int might match the return type of a gcc2
24995    builtin and then its argument prototype would still apply.  */
24996 char dlopen ();
24997 int
24998 main ()
24999 {
25000 dlopen ();
25001   ;
25002   return 0;
25003 }
25004 _ACEOF
25005 rm -f conftest.$ac_objext conftest$ac_exeext
25006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25007   (eval $ac_link) 2>conftest.er1
25008   ac_status=$?
25009   grep -v '^ *+' conftest.er1 >conftest.err
25010   rm -f conftest.er1
25011   cat conftest.err >&5
25012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013   (exit $ac_status); } &&
25014          { ac_try='test -z "$ac_c_werror_flag"
25015                          || test ! -s conftest.err'
25016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25017   (eval $ac_try) 2>&5
25018   ac_status=$?
25019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020   (exit $ac_status); }; } &&
25021          { ac_try='test -s conftest$ac_exeext'
25022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25023   (eval $ac_try) 2>&5
25024   ac_status=$?
25025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026   (exit $ac_status); }; }; then
25027   ac_cv_search_dlopen="none required"
25028 else
25029   echo "$as_me: failed program was:" >&5
25030 sed 's/^/| /' conftest.$ac_ext >&5
25031
25032 fi
25033 rm -f conftest.err conftest.$ac_objext \
25034       conftest$ac_exeext conftest.$ac_ext
25035 if test "$ac_cv_search_dlopen" = no; then
25036   for ac_lib in dl; do
25037     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25038     cat >conftest.$ac_ext <<_ACEOF
25039 /* confdefs.h.  */
25040 _ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h.  */
25044
25045 /* Override any gcc2 internal prototype to avoid an error.  */
25046 #ifdef __cplusplus
25047 extern "C"
25048 #endif
25049 /* We use char because int might match the return type of a gcc2
25050    builtin and then its argument prototype would still apply.  */
25051 char dlopen ();
25052 int
25053 main ()
25054 {
25055 dlopen ();
25056   ;
25057   return 0;
25058 }
25059 _ACEOF
25060 rm -f conftest.$ac_objext conftest$ac_exeext
25061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25062   (eval $ac_link) 2>conftest.er1
25063   ac_status=$?
25064   grep -v '^ *+' conftest.er1 >conftest.err
25065   rm -f conftest.er1
25066   cat conftest.err >&5
25067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068   (exit $ac_status); } &&
25069          { ac_try='test -z "$ac_c_werror_flag"
25070                          || test ! -s conftest.err'
25071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072   (eval $ac_try) 2>&5
25073   ac_status=$?
25074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075   (exit $ac_status); }; } &&
25076          { ac_try='test -s conftest$ac_exeext'
25077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25078   (eval $ac_try) 2>&5
25079   ac_status=$?
25080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081   (exit $ac_status); }; }; then
25082   ac_cv_search_dlopen="-l$ac_lib"
25083 break
25084 else
25085   echo "$as_me: failed program was:" >&5
25086 sed 's/^/| /' conftest.$ac_ext >&5
25087
25088 fi
25089 rm -f conftest.err conftest.$ac_objext \
25090       conftest$ac_exeext conftest.$ac_ext
25091   done
25092 fi
25093 LIBS=$ac_func_search_save_LIBS
25094 fi
25095 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25096 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25097 if test "$ac_cv_search_dlopen" != no; then
25098   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25099
25100 cat >>confdefs.h <<\_ACEOF
25101 #define HAVE_DLOPEN 1
25102 _ACEOF
25103
25104 else
25105   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25106 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25107 fi
25108
25109
25110 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25111 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25112 if test "${ac_cv_search_mallinfo+set}" = set; then
25113   echo $ECHO_N "(cached) $ECHO_C" >&6
25114 else
25115   ac_func_search_save_LIBS=$LIBS
25116 ac_cv_search_mallinfo=no
25117 cat >conftest.$ac_ext <<_ACEOF
25118 /* confdefs.h.  */
25119 _ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h.  */
25123
25124 /* Override any gcc2 internal prototype to avoid an error.  */
25125 #ifdef __cplusplus
25126 extern "C"
25127 #endif
25128 /* We use char because int might match the return type of a gcc2
25129    builtin and then its argument prototype would still apply.  */
25130 char mallinfo ();
25131 int
25132 main ()
25133 {
25134 mallinfo ();
25135   ;
25136   return 0;
25137 }
25138 _ACEOF
25139 rm -f conftest.$ac_objext conftest$ac_exeext
25140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25141   (eval $ac_link) 2>conftest.er1
25142   ac_status=$?
25143   grep -v '^ *+' conftest.er1 >conftest.err
25144   rm -f conftest.er1
25145   cat conftest.err >&5
25146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147   (exit $ac_status); } &&
25148          { ac_try='test -z "$ac_c_werror_flag"
25149                          || test ! -s conftest.err'
25150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25151   (eval $ac_try) 2>&5
25152   ac_status=$?
25153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154   (exit $ac_status); }; } &&
25155          { ac_try='test -s conftest$ac_exeext'
25156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25157   (eval $ac_try) 2>&5
25158   ac_status=$?
25159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160   (exit $ac_status); }; }; then
25161   ac_cv_search_mallinfo="none required"
25162 else
25163   echo "$as_me: failed program was:" >&5
25164 sed 's/^/| /' conftest.$ac_ext >&5
25165
25166 fi
25167 rm -f conftest.err conftest.$ac_objext \
25168       conftest$ac_exeext conftest.$ac_ext
25169 if test "$ac_cv_search_mallinfo" = no; then
25170   for ac_lib in malloc; do
25171     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25172     cat >conftest.$ac_ext <<_ACEOF
25173 /* confdefs.h.  */
25174 _ACEOF
25175 cat confdefs.h >>conftest.$ac_ext
25176 cat >>conftest.$ac_ext <<_ACEOF
25177 /* end confdefs.h.  */
25178
25179 /* Override any gcc2 internal prototype to avoid an error.  */
25180 #ifdef __cplusplus
25181 extern "C"
25182 #endif
25183 /* We use char because int might match the return type of a gcc2
25184    builtin and then its argument prototype would still apply.  */
25185 char mallinfo ();
25186 int
25187 main ()
25188 {
25189 mallinfo ();
25190   ;
25191   return 0;
25192 }
25193 _ACEOF
25194 rm -f conftest.$ac_objext conftest$ac_exeext
25195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25196   (eval $ac_link) 2>conftest.er1
25197   ac_status=$?
25198   grep -v '^ *+' conftest.er1 >conftest.err
25199   rm -f conftest.er1
25200   cat conftest.err >&5
25201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202   (exit $ac_status); } &&
25203          { ac_try='test -z "$ac_c_werror_flag"
25204                          || test ! -s conftest.err'
25205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206   (eval $ac_try) 2>&5
25207   ac_status=$?
25208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209   (exit $ac_status); }; } &&
25210          { ac_try='test -s conftest$ac_exeext'
25211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212   (eval $ac_try) 2>&5
25213   ac_status=$?
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); }; }; then
25216   ac_cv_search_mallinfo="-l$ac_lib"
25217 break
25218 else
25219   echo "$as_me: failed program was:" >&5
25220 sed 's/^/| /' conftest.$ac_ext >&5
25221
25222 fi
25223 rm -f conftest.err conftest.$ac_objext \
25224       conftest$ac_exeext conftest.$ac_ext
25225   done
25226 fi
25227 LIBS=$ac_func_search_save_LIBS
25228 fi
25229 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25230 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25231 if test "$ac_cv_search_mallinfo" != no; then
25232   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25233
25234 cat >>confdefs.h <<\_ACEOF
25235 #define HAVE_MALLINFO 1
25236 _ACEOF
25237
25238 fi
25239
25240
25241 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25242 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25243 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25244   echo $ECHO_N "(cached) $ECHO_C" >&6
25245 else
25246   ac_func_search_save_LIBS=$LIBS
25247 ac_cv_search_pthread_mutex_lock=no
25248 cat >conftest.$ac_ext <<_ACEOF
25249 /* confdefs.h.  */
25250 _ACEOF
25251 cat confdefs.h >>conftest.$ac_ext
25252 cat >>conftest.$ac_ext <<_ACEOF
25253 /* end confdefs.h.  */
25254
25255 /* Override any gcc2 internal prototype to avoid an error.  */
25256 #ifdef __cplusplus
25257 extern "C"
25258 #endif
25259 /* We use char because int might match the return type of a gcc2
25260    builtin and then its argument prototype would still apply.  */
25261 char pthread_mutex_lock ();
25262 int
25263 main ()
25264 {
25265 pthread_mutex_lock ();
25266   ;
25267   return 0;
25268 }
25269 _ACEOF
25270 rm -f conftest.$ac_objext conftest$ac_exeext
25271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25272   (eval $ac_link) 2>conftest.er1
25273   ac_status=$?
25274   grep -v '^ *+' conftest.er1 >conftest.err
25275   rm -f conftest.er1
25276   cat conftest.err >&5
25277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278   (exit $ac_status); } &&
25279          { ac_try='test -z "$ac_c_werror_flag"
25280                          || test ! -s conftest.err'
25281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282   (eval $ac_try) 2>&5
25283   ac_status=$?
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); }; } &&
25286          { ac_try='test -s conftest$ac_exeext'
25287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288   (eval $ac_try) 2>&5
25289   ac_status=$?
25290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291   (exit $ac_status); }; }; then
25292   ac_cv_search_pthread_mutex_lock="none required"
25293 else
25294   echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25296
25297 fi
25298 rm -f conftest.err conftest.$ac_objext \
25299       conftest$ac_exeext conftest.$ac_ext
25300 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25301   for ac_lib in pthread; do
25302     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25303     cat >conftest.$ac_ext <<_ACEOF
25304 /* confdefs.h.  */
25305 _ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h.  */
25309
25310 /* Override any gcc2 internal prototype to avoid an error.  */
25311 #ifdef __cplusplus
25312 extern "C"
25313 #endif
25314 /* We use char because int might match the return type of a gcc2
25315    builtin and then its argument prototype would still apply.  */
25316 char pthread_mutex_lock ();
25317 int
25318 main ()
25319 {
25320 pthread_mutex_lock ();
25321   ;
25322   return 0;
25323 }
25324 _ACEOF
25325 rm -f conftest.$ac_objext conftest$ac_exeext
25326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25327   (eval $ac_link) 2>conftest.er1
25328   ac_status=$?
25329   grep -v '^ *+' conftest.er1 >conftest.err
25330   rm -f conftest.er1
25331   cat conftest.err >&5
25332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333   (exit $ac_status); } &&
25334          { ac_try='test -z "$ac_c_werror_flag"
25335                          || test ! -s conftest.err'
25336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337   (eval $ac_try) 2>&5
25338   ac_status=$?
25339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340   (exit $ac_status); }; } &&
25341          { ac_try='test -s conftest$ac_exeext'
25342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343   (eval $ac_try) 2>&5
25344   ac_status=$?
25345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346   (exit $ac_status); }; }; then
25347   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25348 break
25349 else
25350   echo "$as_me: failed program was:" >&5
25351 sed 's/^/| /' conftest.$ac_ext >&5
25352
25353 fi
25354 rm -f conftest.err conftest.$ac_objext \
25355       conftest$ac_exeext conftest.$ac_ext
25356   done
25357 fi
25358 LIBS=$ac_func_search_save_LIBS
25359 fi
25360 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25361 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25362 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25363   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25364
25365 cat >>confdefs.h <<\_ACEOF
25366 #define HAVE_PTHREAD_MUTEX_LOCK 1
25367 _ACEOF
25368
25369 fi
25370
25371
25372
25373
25374
25375
25376
25377
25378 ac_header_dirent=no
25379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25380   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25381 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25382 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25384   echo $ECHO_N "(cached) $ECHO_C" >&6
25385 else
25386   cat >conftest.$ac_ext <<_ACEOF
25387 /* confdefs.h.  */
25388 _ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h.  */
25392 #include <sys/types.h>
25393 #include <$ac_hdr>
25394
25395 int
25396 main ()
25397 {
25398 if ((DIR *) 0)
25399 return 0;
25400   ;
25401   return 0;
25402 }
25403 _ACEOF
25404 rm -f conftest.$ac_objext
25405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25406   (eval $ac_compile) 2>conftest.er1
25407   ac_status=$?
25408   grep -v '^ *+' conftest.er1 >conftest.err
25409   rm -f conftest.er1
25410   cat conftest.err >&5
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); } &&
25413          { ac_try='test -z "$ac_c_werror_flag"
25414                          || test ! -s conftest.err'
25415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416   (eval $ac_try) 2>&5
25417   ac_status=$?
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); }; } &&
25420          { ac_try='test -s conftest.$ac_objext'
25421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422   (eval $ac_try) 2>&5
25423   ac_status=$?
25424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425   (exit $ac_status); }; }; then
25426   eval "$as_ac_Header=yes"
25427 else
25428   echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25430
25431 eval "$as_ac_Header=no"
25432 fi
25433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25434 fi
25435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25438   cat >>confdefs.h <<_ACEOF
25439 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25440 _ACEOF
25441
25442 ac_header_dirent=$ac_hdr; break
25443 fi
25444
25445 done
25446 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25447 if test $ac_header_dirent = dirent.h; then
25448   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25449 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25450 if test "${ac_cv_search_opendir+set}" = set; then
25451   echo $ECHO_N "(cached) $ECHO_C" >&6
25452 else
25453   ac_func_search_save_LIBS=$LIBS
25454 ac_cv_search_opendir=no
25455 cat >conftest.$ac_ext <<_ACEOF
25456 /* confdefs.h.  */
25457 _ACEOF
25458 cat confdefs.h >>conftest.$ac_ext
25459 cat >>conftest.$ac_ext <<_ACEOF
25460 /* end confdefs.h.  */
25461
25462 /* Override any gcc2 internal prototype to avoid an error.  */
25463 #ifdef __cplusplus
25464 extern "C"
25465 #endif
25466 /* We use char because int might match the return type of a gcc2
25467    builtin and then its argument prototype would still apply.  */
25468 char opendir ();
25469 int
25470 main ()
25471 {
25472 opendir ();
25473   ;
25474   return 0;
25475 }
25476 _ACEOF
25477 rm -f conftest.$ac_objext conftest$ac_exeext
25478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25479   (eval $ac_link) 2>conftest.er1
25480   ac_status=$?
25481   grep -v '^ *+' conftest.er1 >conftest.err
25482   rm -f conftest.er1
25483   cat conftest.err >&5
25484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485   (exit $ac_status); } &&
25486          { ac_try='test -z "$ac_c_werror_flag"
25487                          || test ! -s conftest.err'
25488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25489   (eval $ac_try) 2>&5
25490   ac_status=$?
25491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492   (exit $ac_status); }; } &&
25493          { ac_try='test -s conftest$ac_exeext'
25494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25495   (eval $ac_try) 2>&5
25496   ac_status=$?
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); }; }; then
25499   ac_cv_search_opendir="none required"
25500 else
25501   echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25503
25504 fi
25505 rm -f conftest.err conftest.$ac_objext \
25506       conftest$ac_exeext conftest.$ac_ext
25507 if test "$ac_cv_search_opendir" = no; then
25508   for ac_lib in dir; do
25509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25510     cat >conftest.$ac_ext <<_ACEOF
25511 /* confdefs.h.  */
25512 _ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h.  */
25516
25517 /* Override any gcc2 internal prototype to avoid an error.  */
25518 #ifdef __cplusplus
25519 extern "C"
25520 #endif
25521 /* We use char because int might match the return type of a gcc2
25522    builtin and then its argument prototype would still apply.  */
25523 char opendir ();
25524 int
25525 main ()
25526 {
25527 opendir ();
25528   ;
25529   return 0;
25530 }
25531 _ACEOF
25532 rm -f conftest.$ac_objext conftest$ac_exeext
25533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25534   (eval $ac_link) 2>conftest.er1
25535   ac_status=$?
25536   grep -v '^ *+' conftest.er1 >conftest.err
25537   rm -f conftest.er1
25538   cat conftest.err >&5
25539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540   (exit $ac_status); } &&
25541          { ac_try='test -z "$ac_c_werror_flag"
25542                          || test ! -s conftest.err'
25543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25544   (eval $ac_try) 2>&5
25545   ac_status=$?
25546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547   (exit $ac_status); }; } &&
25548          { ac_try='test -s conftest$ac_exeext'
25549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25550   (eval $ac_try) 2>&5
25551   ac_status=$?
25552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553   (exit $ac_status); }; }; then
25554   ac_cv_search_opendir="-l$ac_lib"
25555 break
25556 else
25557   echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.$ac_ext >&5
25559
25560 fi
25561 rm -f conftest.err conftest.$ac_objext \
25562       conftest$ac_exeext conftest.$ac_ext
25563   done
25564 fi
25565 LIBS=$ac_func_search_save_LIBS
25566 fi
25567 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25568 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25569 if test "$ac_cv_search_opendir" != no; then
25570   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25571
25572 fi
25573
25574 else
25575   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25576 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25577 if test "${ac_cv_search_opendir+set}" = set; then
25578   echo $ECHO_N "(cached) $ECHO_C" >&6
25579 else
25580   ac_func_search_save_LIBS=$LIBS
25581 ac_cv_search_opendir=no
25582 cat >conftest.$ac_ext <<_ACEOF
25583 /* confdefs.h.  */
25584 _ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h.  */
25588
25589 /* Override any gcc2 internal prototype to avoid an error.  */
25590 #ifdef __cplusplus
25591 extern "C"
25592 #endif
25593 /* We use char because int might match the return type of a gcc2
25594    builtin and then its argument prototype would still apply.  */
25595 char opendir ();
25596 int
25597 main ()
25598 {
25599 opendir ();
25600   ;
25601   return 0;
25602 }
25603 _ACEOF
25604 rm -f conftest.$ac_objext conftest$ac_exeext
25605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25606   (eval $ac_link) 2>conftest.er1
25607   ac_status=$?
25608   grep -v '^ *+' conftest.er1 >conftest.err
25609   rm -f conftest.er1
25610   cat conftest.err >&5
25611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612   (exit $ac_status); } &&
25613          { ac_try='test -z "$ac_c_werror_flag"
25614                          || test ! -s conftest.err'
25615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616   (eval $ac_try) 2>&5
25617   ac_status=$?
25618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619   (exit $ac_status); }; } &&
25620          { ac_try='test -s conftest$ac_exeext'
25621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622   (eval $ac_try) 2>&5
25623   ac_status=$?
25624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); }; }; then
25626   ac_cv_search_opendir="none required"
25627 else
25628   echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25630
25631 fi
25632 rm -f conftest.err conftest.$ac_objext \
25633       conftest$ac_exeext conftest.$ac_ext
25634 if test "$ac_cv_search_opendir" = no; then
25635   for ac_lib in x; do
25636     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25637     cat >conftest.$ac_ext <<_ACEOF
25638 /* confdefs.h.  */
25639 _ACEOF
25640 cat confdefs.h >>conftest.$ac_ext
25641 cat >>conftest.$ac_ext <<_ACEOF
25642 /* end confdefs.h.  */
25643
25644 /* Override any gcc2 internal prototype to avoid an error.  */
25645 #ifdef __cplusplus
25646 extern "C"
25647 #endif
25648 /* We use char because int might match the return type of a gcc2
25649    builtin and then its argument prototype would still apply.  */
25650 char opendir ();
25651 int
25652 main ()
25653 {
25654 opendir ();
25655   ;
25656   return 0;
25657 }
25658 _ACEOF
25659 rm -f conftest.$ac_objext conftest$ac_exeext
25660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25661   (eval $ac_link) 2>conftest.er1
25662   ac_status=$?
25663   grep -v '^ *+' conftest.er1 >conftest.err
25664   rm -f conftest.er1
25665   cat conftest.err >&5
25666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667   (exit $ac_status); } &&
25668          { ac_try='test -z "$ac_c_werror_flag"
25669                          || test ! -s conftest.err'
25670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671   (eval $ac_try) 2>&5
25672   ac_status=$?
25673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674   (exit $ac_status); }; } &&
25675          { ac_try='test -s conftest$ac_exeext'
25676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25677   (eval $ac_try) 2>&5
25678   ac_status=$?
25679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680   (exit $ac_status); }; }; then
25681   ac_cv_search_opendir="-l$ac_lib"
25682 break
25683 else
25684   echo "$as_me: failed program was:" >&5
25685 sed 's/^/| /' conftest.$ac_ext >&5
25686
25687 fi
25688 rm -f conftest.err conftest.$ac_objext \
25689       conftest$ac_exeext conftest.$ac_ext
25690   done
25691 fi
25692 LIBS=$ac_func_search_save_LIBS
25693 fi
25694 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25695 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25696 if test "$ac_cv_search_opendir" != no; then
25697   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25698
25699 fi
25700
25701 fi
25702
25703 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25704 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25705 if test "${ac_cv_header_mmap_anon+set}" = set; then
25706   echo $ECHO_N "(cached) $ECHO_C" >&6
25707 else
25708    ac_ext=c
25709 ac_cpp='$CPP $CPPFLAGS'
25710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25713
25714   cat >conftest.$ac_ext <<_ACEOF
25715 /* confdefs.h.  */
25716 _ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h.  */
25720 #include <sys/mman.h>
25721 #include <unistd.h>
25722 #include <fcntl.h>
25723 int
25724 main ()
25725 {
25726 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25727   ;
25728   return 0;
25729 }
25730 _ACEOF
25731 rm -f conftest.$ac_objext
25732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25733   (eval $ac_compile) 2>conftest.er1
25734   ac_status=$?
25735   grep -v '^ *+' conftest.er1 >conftest.err
25736   rm -f conftest.er1
25737   cat conftest.err >&5
25738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739   (exit $ac_status); } &&
25740          { ac_try='test -z "$ac_c_werror_flag"
25741                          || test ! -s conftest.err'
25742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25743   (eval $ac_try) 2>&5
25744   ac_status=$?
25745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746   (exit $ac_status); }; } &&
25747          { ac_try='test -s conftest.$ac_objext'
25748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25749   (eval $ac_try) 2>&5
25750   ac_status=$?
25751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752   (exit $ac_status); }; }; then
25753   ac_cv_header_mmap_anon=yes
25754 else
25755   echo "$as_me: failed program was:" >&5
25756 sed 's/^/| /' conftest.$ac_ext >&5
25757
25758 ac_cv_header_mmap_anon=no
25759 fi
25760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25761   ac_ext=c
25762 ac_cpp='$CPP $CPPFLAGS'
25763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25766
25767
25768 fi
25769 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25770 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25771 if test "$ac_cv_header_mmap_anon" = yes; then
25772
25773 cat >>confdefs.h <<\_ACEOF
25774 #define HAVE_MMAP_ANONYMOUS 1
25775 _ACEOF
25776
25777 fi
25778
25779 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25780 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25781 if test "${ac_cv_header_stat_broken+set}" = set; then
25782   echo $ECHO_N "(cached) $ECHO_C" >&6
25783 else
25784   cat >conftest.$ac_ext <<_ACEOF
25785 /* confdefs.h.  */
25786 _ACEOF
25787 cat confdefs.h >>conftest.$ac_ext
25788 cat >>conftest.$ac_ext <<_ACEOF
25789 /* end confdefs.h.  */
25790 #include <sys/types.h>
25791 #include <sys/stat.h>
25792
25793 #if defined(S_ISBLK) && defined(S_IFDIR)
25794 # if S_ISBLK (S_IFDIR)
25795 You lose.
25796 # endif
25797 #endif
25798
25799 #if defined(S_ISBLK) && defined(S_IFCHR)
25800 # if S_ISBLK (S_IFCHR)
25801 You lose.
25802 # endif
25803 #endif
25804
25805 #if defined(S_ISLNK) && defined(S_IFREG)
25806 # if S_ISLNK (S_IFREG)
25807 You lose.
25808 # endif
25809 #endif
25810
25811 #if defined(S_ISSOCK) && defined(S_IFREG)
25812 # if S_ISSOCK (S_IFREG)
25813 You lose.
25814 # endif
25815 #endif
25816
25817 _ACEOF
25818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25819   $EGREP "You lose" >/dev/null 2>&1; then
25820   ac_cv_header_stat_broken=yes
25821 else
25822   ac_cv_header_stat_broken=no
25823 fi
25824 rm -f conftest*
25825
25826 fi
25827 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25828 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25829 if test $ac_cv_header_stat_broken = yes; then
25830
25831 cat >>confdefs.h <<\_ACEOF
25832 #define STAT_MACROS_BROKEN 1
25833 _ACEOF
25834
25835 fi
25836
25837 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25838 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25839 if test "${ac_cv_header_stdc+set}" = set; then
25840   echo $ECHO_N "(cached) $ECHO_C" >&6
25841 else
25842   cat >conftest.$ac_ext <<_ACEOF
25843 /* confdefs.h.  */
25844 _ACEOF
25845 cat confdefs.h >>conftest.$ac_ext
25846 cat >>conftest.$ac_ext <<_ACEOF
25847 /* end confdefs.h.  */
25848 #include <stdlib.h>
25849 #include <stdarg.h>
25850 #include <string.h>
25851 #include <float.h>
25852
25853 int
25854 main ()
25855 {
25856
25857   ;
25858   return 0;
25859 }
25860 _ACEOF
25861 rm -f conftest.$ac_objext
25862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25863   (eval $ac_compile) 2>conftest.er1
25864   ac_status=$?
25865   grep -v '^ *+' conftest.er1 >conftest.err
25866   rm -f conftest.er1
25867   cat conftest.err >&5
25868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869   (exit $ac_status); } &&
25870          { ac_try='test -z "$ac_c_werror_flag"
25871                          || test ! -s conftest.err'
25872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25873   (eval $ac_try) 2>&5
25874   ac_status=$?
25875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876   (exit $ac_status); }; } &&
25877          { ac_try='test -s conftest.$ac_objext'
25878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879   (eval $ac_try) 2>&5
25880   ac_status=$?
25881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882   (exit $ac_status); }; }; then
25883   ac_cv_header_stdc=yes
25884 else
25885   echo "$as_me: failed program was:" >&5
25886 sed 's/^/| /' conftest.$ac_ext >&5
25887
25888 ac_cv_header_stdc=no
25889 fi
25890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25891
25892 if test $ac_cv_header_stdc = yes; then
25893   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25894   cat >conftest.$ac_ext <<_ACEOF
25895 /* confdefs.h.  */
25896 _ACEOF
25897 cat confdefs.h >>conftest.$ac_ext
25898 cat >>conftest.$ac_ext <<_ACEOF
25899 /* end confdefs.h.  */
25900 #include <string.h>
25901
25902 _ACEOF
25903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25904   $EGREP "memchr" >/dev/null 2>&1; then
25905   :
25906 else
25907   ac_cv_header_stdc=no
25908 fi
25909 rm -f conftest*
25910
25911 fi
25912
25913 if test $ac_cv_header_stdc = yes; then
25914   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25915   cat >conftest.$ac_ext <<_ACEOF
25916 /* confdefs.h.  */
25917 _ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h.  */
25921 #include <stdlib.h>
25922
25923 _ACEOF
25924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25925   $EGREP "free" >/dev/null 2>&1; then
25926   :
25927 else
25928   ac_cv_header_stdc=no
25929 fi
25930 rm -f conftest*
25931
25932 fi
25933
25934 if test $ac_cv_header_stdc = yes; then
25935   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25936   if test "$cross_compiling" = yes; then
25937   :
25938 else
25939   cat >conftest.$ac_ext <<_ACEOF
25940 /* confdefs.h.  */
25941 _ACEOF
25942 cat confdefs.h >>conftest.$ac_ext
25943 cat >>conftest.$ac_ext <<_ACEOF
25944 /* end confdefs.h.  */
25945 #include <ctype.h>
25946 #if ((' ' & 0x0FF) == 0x020)
25947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25949 #else
25950 # define ISLOWER(c) \
25951                    (('a' <= (c) && (c) <= 'i') \
25952                      || ('j' <= (c) && (c) <= 'r') \
25953                      || ('s' <= (c) && (c) <= 'z'))
25954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25955 #endif
25956
25957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25958 int
25959 main ()
25960 {
25961   int i;
25962   for (i = 0; i < 256; i++)
25963     if (XOR (islower (i), ISLOWER (i))
25964         || toupper (i) != TOUPPER (i))
25965       exit(2);
25966   exit (0);
25967 }
25968 _ACEOF
25969 rm -f conftest$ac_exeext
25970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25971   (eval $ac_link) 2>&5
25972   ac_status=$?
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25976   (eval $ac_try) 2>&5
25977   ac_status=$?
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); }; }; then
25980   :
25981 else
25982   echo "$as_me: program exited with status $ac_status" >&5
25983 echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25985
25986 ( exit $ac_status )
25987 ac_cv_header_stdc=no
25988 fi
25989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25990 fi
25991 fi
25992 fi
25993 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25994 echo "${ECHO_T}$ac_cv_header_stdc" >&6
25995 if test $ac_cv_header_stdc = yes; then
25996
25997 cat >>confdefs.h <<\_ACEOF
25998 #define STDC_HEADERS 1
25999 _ACEOF
26000
26001 fi
26002
26003 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26004 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26005 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26006   echo $ECHO_N "(cached) $ECHO_C" >&6
26007 else
26008   cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h.  */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h.  */
26014 #include <sys/types.h>
26015 #include <sys/wait.h>
26016 #ifndef WEXITSTATUS
26017 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26018 #endif
26019 #ifndef WIFEXITED
26020 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26021 #endif
26022
26023 int
26024 main ()
26025 {
26026   int s;
26027   wait (&s);
26028   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26029   ;
26030   return 0;
26031 }
26032 _ACEOF
26033 rm -f conftest.$ac_objext
26034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26035   (eval $ac_compile) 2>conftest.er1
26036   ac_status=$?
26037   grep -v '^ *+' conftest.er1 >conftest.err
26038   rm -f conftest.er1
26039   cat conftest.err >&5
26040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041   (exit $ac_status); } &&
26042          { ac_try='test -z "$ac_c_werror_flag"
26043                          || test ! -s conftest.err'
26044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045   (eval $ac_try) 2>&5
26046   ac_status=$?
26047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048   (exit $ac_status); }; } &&
26049          { ac_try='test -s conftest.$ac_objext'
26050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26051   (eval $ac_try) 2>&5
26052   ac_status=$?
26053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); }; }; then
26055   ac_cv_header_sys_wait_h=yes
26056 else
26057   echo "$as_me: failed program was:" >&5
26058 sed 's/^/| /' conftest.$ac_ext >&5
26059
26060 ac_cv_header_sys_wait_h=no
26061 fi
26062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26063 fi
26064 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26065 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26066 if test $ac_cv_header_sys_wait_h = yes; then
26067
26068 cat >>confdefs.h <<\_ACEOF
26069 #define HAVE_SYS_WAIT_H 1
26070 _ACEOF
26071
26072 fi
26073
26074 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26075 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26076 if test "${ac_cv_header_time+set}" = set; then
26077   echo $ECHO_N "(cached) $ECHO_C" >&6
26078 else
26079   cat >conftest.$ac_ext <<_ACEOF
26080 /* confdefs.h.  */
26081 _ACEOF
26082 cat confdefs.h >>conftest.$ac_ext
26083 cat >>conftest.$ac_ext <<_ACEOF
26084 /* end confdefs.h.  */
26085 #include <sys/types.h>
26086 #include <sys/time.h>
26087 #include <time.h>
26088
26089 int
26090 main ()
26091 {
26092 if ((struct tm *) 0)
26093 return 0;
26094   ;
26095   return 0;
26096 }
26097 _ACEOF
26098 rm -f conftest.$ac_objext
26099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26100   (eval $ac_compile) 2>conftest.er1
26101   ac_status=$?
26102   grep -v '^ *+' conftest.er1 >conftest.err
26103   rm -f conftest.er1
26104   cat conftest.err >&5
26105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106   (exit $ac_status); } &&
26107          { ac_try='test -z "$ac_c_werror_flag"
26108                          || test ! -s conftest.err'
26109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26110   (eval $ac_try) 2>&5
26111   ac_status=$?
26112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113   (exit $ac_status); }; } &&
26114          { ac_try='test -s conftest.$ac_objext'
26115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116   (eval $ac_try) 2>&5
26117   ac_status=$?
26118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119   (exit $ac_status); }; }; then
26120   ac_cv_header_time=yes
26121 else
26122   echo "$as_me: failed program was:" >&5
26123 sed 's/^/| /' conftest.$ac_ext >&5
26124
26125 ac_cv_header_time=no
26126 fi
26127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26128 fi
26129 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26130 echo "${ECHO_T}$ac_cv_header_time" >&6
26131 if test $ac_cv_header_time = yes; then
26132
26133 cat >>confdefs.h <<\_ACEOF
26134 #define TIME_WITH_SYS_TIME 1
26135 _ACEOF
26136
26137 fi
26138
26139
26140
26141
26142
26143
26144
26145
26146 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26147 do
26148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26150   echo "$as_me:$LINENO: checking for $ac_header" >&5
26151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26153   echo $ECHO_N "(cached) $ECHO_C" >&6
26154 fi
26155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26157 else
26158   # Is the header compilable?
26159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26161 cat >conftest.$ac_ext <<_ACEOF
26162 /* confdefs.h.  */
26163 _ACEOF
26164 cat confdefs.h >>conftest.$ac_ext
26165 cat >>conftest.$ac_ext <<_ACEOF
26166 /* end confdefs.h.  */
26167 $ac_includes_default
26168 #include <$ac_header>
26169 _ACEOF
26170 rm -f conftest.$ac_objext
26171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26172   (eval $ac_compile) 2>conftest.er1
26173   ac_status=$?
26174   grep -v '^ *+' conftest.er1 >conftest.err
26175   rm -f conftest.er1
26176   cat conftest.err >&5
26177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178   (exit $ac_status); } &&
26179          { ac_try='test -z "$ac_c_werror_flag"
26180                          || test ! -s conftest.err'
26181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182   (eval $ac_try) 2>&5
26183   ac_status=$?
26184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185   (exit $ac_status); }; } &&
26186          { ac_try='test -s conftest.$ac_objext'
26187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188   (eval $ac_try) 2>&5
26189   ac_status=$?
26190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); }; }; then
26192   ac_header_compiler=yes
26193 else
26194   echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26196
26197 ac_header_compiler=no
26198 fi
26199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26201 echo "${ECHO_T}$ac_header_compiler" >&6
26202
26203 # Is the header present?
26204 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26206 cat >conftest.$ac_ext <<_ACEOF
26207 /* confdefs.h.  */
26208 _ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h.  */
26212 #include <$ac_header>
26213 _ACEOF
26214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26216   ac_status=$?
26217   grep -v '^ *+' conftest.er1 >conftest.err
26218   rm -f conftest.er1
26219   cat conftest.err >&5
26220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221   (exit $ac_status); } >/dev/null; then
26222   if test -s conftest.err; then
26223     ac_cpp_err=$ac_c_preproc_warn_flag
26224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26225   else
26226     ac_cpp_err=
26227   fi
26228 else
26229   ac_cpp_err=yes
26230 fi
26231 if test -z "$ac_cpp_err"; then
26232   ac_header_preproc=yes
26233 else
26234   echo "$as_me: failed program was:" >&5
26235 sed 's/^/| /' conftest.$ac_ext >&5
26236
26237   ac_header_preproc=no
26238 fi
26239 rm -f conftest.err conftest.$ac_ext
26240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26241 echo "${ECHO_T}$ac_header_preproc" >&6
26242
26243 # So?  What about this header?
26244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26245   yes:no: )
26246     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26250     ac_header_preproc=yes
26251     ;;
26252   no:yes:* )
26253     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26255     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26256 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26257     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26259     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26260 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26263     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26265     (
26266       cat <<\_ASBOX
26267 ## ----------------------------------- ##
26268 ## Report this to llvmbugs@cs.uiuc.edu ##
26269 ## ----------------------------------- ##
26270 _ASBOX
26271     ) |
26272       sed "s/^/$as_me: WARNING:     /" >&2
26273     ;;
26274 esac
26275 echo "$as_me:$LINENO: checking for $ac_header" >&5
26276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26278   echo $ECHO_N "(cached) $ECHO_C" >&6
26279 else
26280   eval "$as_ac_Header=\$ac_header_preproc"
26281 fi
26282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26284
26285 fi
26286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26287   cat >>confdefs.h <<_ACEOF
26288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26289 _ACEOF
26290
26291 fi
26292
26293 done
26294
26295
26296
26297
26298
26299
26300
26301 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26302 do
26303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26305   echo "$as_me:$LINENO: checking for $ac_header" >&5
26306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26308   echo $ECHO_N "(cached) $ECHO_C" >&6
26309 fi
26310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26312 else
26313   # Is the header compilable?
26314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26316 cat >conftest.$ac_ext <<_ACEOF
26317 /* confdefs.h.  */
26318 _ACEOF
26319 cat confdefs.h >>conftest.$ac_ext
26320 cat >>conftest.$ac_ext <<_ACEOF
26321 /* end confdefs.h.  */
26322 $ac_includes_default
26323 #include <$ac_header>
26324 _ACEOF
26325 rm -f conftest.$ac_objext
26326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26327   (eval $ac_compile) 2>conftest.er1
26328   ac_status=$?
26329   grep -v '^ *+' conftest.er1 >conftest.err
26330   rm -f conftest.er1
26331   cat conftest.err >&5
26332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333   (exit $ac_status); } &&
26334          { ac_try='test -z "$ac_c_werror_flag"
26335                          || test ! -s conftest.err'
26336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26337   (eval $ac_try) 2>&5
26338   ac_status=$?
26339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340   (exit $ac_status); }; } &&
26341          { ac_try='test -s conftest.$ac_objext'
26342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26343   (eval $ac_try) 2>&5
26344   ac_status=$?
26345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346   (exit $ac_status); }; }; then
26347   ac_header_compiler=yes
26348 else
26349   echo "$as_me: failed program was:" >&5
26350 sed 's/^/| /' conftest.$ac_ext >&5
26351
26352 ac_header_compiler=no
26353 fi
26354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26356 echo "${ECHO_T}$ac_header_compiler" >&6
26357
26358 # Is the header present?
26359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26361 cat >conftest.$ac_ext <<_ACEOF
26362 /* confdefs.h.  */
26363 _ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h.  */
26367 #include <$ac_header>
26368 _ACEOF
26369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26371   ac_status=$?
26372   grep -v '^ *+' conftest.er1 >conftest.err
26373   rm -f conftest.er1
26374   cat conftest.err >&5
26375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376   (exit $ac_status); } >/dev/null; then
26377   if test -s conftest.err; then
26378     ac_cpp_err=$ac_c_preproc_warn_flag
26379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26380   else
26381     ac_cpp_err=
26382   fi
26383 else
26384   ac_cpp_err=yes
26385 fi
26386 if test -z "$ac_cpp_err"; then
26387   ac_header_preproc=yes
26388 else
26389   echo "$as_me: failed program was:" >&5
26390 sed 's/^/| /' conftest.$ac_ext >&5
26391
26392   ac_header_preproc=no
26393 fi
26394 rm -f conftest.err conftest.$ac_ext
26395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26396 echo "${ECHO_T}$ac_header_preproc" >&6
26397
26398 # So?  What about this header?
26399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26400   yes:no: )
26401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26405     ac_header_preproc=yes
26406     ;;
26407   no:yes:* )
26408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26420     (
26421       cat <<\_ASBOX
26422 ## ----------------------------------- ##
26423 ## Report this to llvmbugs@cs.uiuc.edu ##
26424 ## ----------------------------------- ##
26425 _ASBOX
26426     ) |
26427       sed "s/^/$as_me: WARNING:     /" >&2
26428     ;;
26429 esac
26430 echo "$as_me:$LINENO: checking for $ac_header" >&5
26431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26433   echo $ECHO_N "(cached) $ECHO_C" >&6
26434 else
26435   eval "$as_ac_Header=\$ac_header_preproc"
26436 fi
26437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26439
26440 fi
26441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26442   cat >>confdefs.h <<_ACEOF
26443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26444 _ACEOF
26445
26446 fi
26447
26448 done
26449
26450
26451
26452
26453
26454
26455 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26456 do
26457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26459   echo "$as_me:$LINENO: checking for $ac_header" >&5
26460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26462   echo $ECHO_N "(cached) $ECHO_C" >&6
26463 fi
26464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26466 else
26467   # Is the header compilable?
26468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26470 cat >conftest.$ac_ext <<_ACEOF
26471 /* confdefs.h.  */
26472 _ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h.  */
26476 $ac_includes_default
26477 #include <$ac_header>
26478 _ACEOF
26479 rm -f conftest.$ac_objext
26480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26481   (eval $ac_compile) 2>conftest.er1
26482   ac_status=$?
26483   grep -v '^ *+' conftest.er1 >conftest.err
26484   rm -f conftest.er1
26485   cat conftest.err >&5
26486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487   (exit $ac_status); } &&
26488          { ac_try='test -z "$ac_c_werror_flag"
26489                          || test ! -s conftest.err'
26490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26491   (eval $ac_try) 2>&5
26492   ac_status=$?
26493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494   (exit $ac_status); }; } &&
26495          { ac_try='test -s conftest.$ac_objext'
26496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26497   (eval $ac_try) 2>&5
26498   ac_status=$?
26499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500   (exit $ac_status); }; }; then
26501   ac_header_compiler=yes
26502 else
26503   echo "$as_me: failed program was:" >&5
26504 sed 's/^/| /' conftest.$ac_ext >&5
26505
26506 ac_header_compiler=no
26507 fi
26508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26510 echo "${ECHO_T}$ac_header_compiler" >&6
26511
26512 # Is the header present?
26513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26515 cat >conftest.$ac_ext <<_ACEOF
26516 /* confdefs.h.  */
26517 _ACEOF
26518 cat confdefs.h >>conftest.$ac_ext
26519 cat >>conftest.$ac_ext <<_ACEOF
26520 /* end confdefs.h.  */
26521 #include <$ac_header>
26522 _ACEOF
26523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26525   ac_status=$?
26526   grep -v '^ *+' conftest.er1 >conftest.err
26527   rm -f conftest.er1
26528   cat conftest.err >&5
26529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530   (exit $ac_status); } >/dev/null; then
26531   if test -s conftest.err; then
26532     ac_cpp_err=$ac_c_preproc_warn_flag
26533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26534   else
26535     ac_cpp_err=
26536   fi
26537 else
26538   ac_cpp_err=yes
26539 fi
26540 if test -z "$ac_cpp_err"; then
26541   ac_header_preproc=yes
26542 else
26543   echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26545
26546   ac_header_preproc=no
26547 fi
26548 rm -f conftest.err conftest.$ac_ext
26549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26550 echo "${ECHO_T}$ac_header_preproc" >&6
26551
26552 # So?  What about this header?
26553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26554   yes:no: )
26555     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26559     ac_header_preproc=yes
26560     ;;
26561   no:yes:* )
26562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26564     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26565 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26566     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26568     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26569 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26572     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26574     (
26575       cat <<\_ASBOX
26576 ## ----------------------------------- ##
26577 ## Report this to llvmbugs@cs.uiuc.edu ##
26578 ## ----------------------------------- ##
26579 _ASBOX
26580     ) |
26581       sed "s/^/$as_me: WARNING:     /" >&2
26582     ;;
26583 esac
26584 echo "$as_me:$LINENO: checking for $ac_header" >&5
26585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26587   echo $ECHO_N "(cached) $ECHO_C" >&6
26588 else
26589   eval "$as_ac_Header=\$ac_header_preproc"
26590 fi
26591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26593
26594 fi
26595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26596   cat >>confdefs.h <<_ACEOF
26597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26598 _ACEOF
26599
26600 fi
26601
26602 done
26603
26604
26605
26606 for ac_header in rw/stdex/hash_map.h rw/stdex/hash_set.h
26607 do
26608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26610   echo "$as_me:$LINENO: checking for $ac_header" >&5
26611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26613   echo $ECHO_N "(cached) $ECHO_C" >&6
26614 fi
26615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26617 else
26618   # Is the header compilable?
26619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26621 cat >conftest.$ac_ext <<_ACEOF
26622 /* confdefs.h.  */
26623 _ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h.  */
26627 $ac_includes_default
26628 #include <$ac_header>
26629 _ACEOF
26630 rm -f conftest.$ac_objext
26631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26632   (eval $ac_compile) 2>conftest.er1
26633   ac_status=$?
26634   grep -v '^ *+' conftest.er1 >conftest.err
26635   rm -f conftest.er1
26636   cat conftest.err >&5
26637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638   (exit $ac_status); } &&
26639          { ac_try='test -z "$ac_c_werror_flag"
26640                          || test ! -s conftest.err'
26641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26642   (eval $ac_try) 2>&5
26643   ac_status=$?
26644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645   (exit $ac_status); }; } &&
26646          { ac_try='test -s conftest.$ac_objext'
26647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26648   (eval $ac_try) 2>&5
26649   ac_status=$?
26650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651   (exit $ac_status); }; }; then
26652   ac_header_compiler=yes
26653 else
26654   echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26656
26657 ac_header_compiler=no
26658 fi
26659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26661 echo "${ECHO_T}$ac_header_compiler" >&6
26662
26663 # Is the header present?
26664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26666 cat >conftest.$ac_ext <<_ACEOF
26667 /* confdefs.h.  */
26668 _ACEOF
26669 cat confdefs.h >>conftest.$ac_ext
26670 cat >>conftest.$ac_ext <<_ACEOF
26671 /* end confdefs.h.  */
26672 #include <$ac_header>
26673 _ACEOF
26674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26675   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26676   ac_status=$?
26677   grep -v '^ *+' conftest.er1 >conftest.err
26678   rm -f conftest.er1
26679   cat conftest.err >&5
26680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681   (exit $ac_status); } >/dev/null; then
26682   if test -s conftest.err; then
26683     ac_cpp_err=$ac_c_preproc_warn_flag
26684     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26685   else
26686     ac_cpp_err=
26687   fi
26688 else
26689   ac_cpp_err=yes
26690 fi
26691 if test -z "$ac_cpp_err"; then
26692   ac_header_preproc=yes
26693 else
26694   echo "$as_me: failed program was:" >&5
26695 sed 's/^/| /' conftest.$ac_ext >&5
26696
26697   ac_header_preproc=no
26698 fi
26699 rm -f conftest.err conftest.$ac_ext
26700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26701 echo "${ECHO_T}$ac_header_preproc" >&6
26702
26703 # So?  What about this header?
26704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26705   yes:no: )
26706     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26710     ac_header_preproc=yes
26711     ;;
26712   no:yes:* )
26713     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26715     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26716 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26717     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26719     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26720 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26723     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26725     (
26726       cat <<\_ASBOX
26727 ## ----------------------------------- ##
26728 ## Report this to llvmbugs@cs.uiuc.edu ##
26729 ## ----------------------------------- ##
26730 _ASBOX
26731     ) |
26732       sed "s/^/$as_me: WARNING:     /" >&2
26733     ;;
26734 esac
26735 echo "$as_me:$LINENO: checking for $ac_header" >&5
26736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26738   echo $ECHO_N "(cached) $ECHO_C" >&6
26739 else
26740   eval "$as_ac_Header=\$ac_header_preproc"
26741 fi
26742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26744
26745 fi
26746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26747   cat >>confdefs.h <<_ACEOF
26748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26749 _ACEOF
26750
26751 fi
26752
26753 done
26754
26755
26756
26757 echo "$as_me:$LINENO: checking for pid_t" >&5
26758 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26759 if test "${ac_cv_type_pid_t+set}" = set; then
26760   echo $ECHO_N "(cached) $ECHO_C" >&6
26761 else
26762   cat >conftest.$ac_ext <<_ACEOF
26763 /* confdefs.h.  */
26764 _ACEOF
26765 cat confdefs.h >>conftest.$ac_ext
26766 cat >>conftest.$ac_ext <<_ACEOF
26767 /* end confdefs.h.  */
26768 $ac_includes_default
26769 int
26770 main ()
26771 {
26772 if ((pid_t *) 0)
26773   return 0;
26774 if (sizeof (pid_t))
26775   return 0;
26776   ;
26777   return 0;
26778 }
26779 _ACEOF
26780 rm -f conftest.$ac_objext
26781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26782   (eval $ac_compile) 2>conftest.er1
26783   ac_status=$?
26784   grep -v '^ *+' conftest.er1 >conftest.err
26785   rm -f conftest.er1
26786   cat conftest.err >&5
26787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788   (exit $ac_status); } &&
26789          { ac_try='test -z "$ac_c_werror_flag"
26790                          || test ! -s conftest.err'
26791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792   (eval $ac_try) 2>&5
26793   ac_status=$?
26794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795   (exit $ac_status); }; } &&
26796          { ac_try='test -s conftest.$ac_objext'
26797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26798   (eval $ac_try) 2>&5
26799   ac_status=$?
26800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801   (exit $ac_status); }; }; then
26802   ac_cv_type_pid_t=yes
26803 else
26804   echo "$as_me: failed program was:" >&5
26805 sed 's/^/| /' conftest.$ac_ext >&5
26806
26807 ac_cv_type_pid_t=no
26808 fi
26809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26810 fi
26811 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26812 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26813 if test $ac_cv_type_pid_t = yes; then
26814   :
26815 else
26816
26817 cat >>confdefs.h <<_ACEOF
26818 #define pid_t int
26819 _ACEOF
26820
26821 fi
26822
26823 echo "$as_me:$LINENO: checking for size_t" >&5
26824 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26825 if test "${ac_cv_type_size_t+set}" = set; then
26826   echo $ECHO_N "(cached) $ECHO_C" >&6
26827 else
26828   cat >conftest.$ac_ext <<_ACEOF
26829 /* confdefs.h.  */
26830 _ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h.  */
26834 $ac_includes_default
26835 int
26836 main ()
26837 {
26838 if ((size_t *) 0)
26839   return 0;
26840 if (sizeof (size_t))
26841   return 0;
26842   ;
26843   return 0;
26844 }
26845 _ACEOF
26846 rm -f conftest.$ac_objext
26847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26848   (eval $ac_compile) 2>conftest.er1
26849   ac_status=$?
26850   grep -v '^ *+' conftest.er1 >conftest.err
26851   rm -f conftest.er1
26852   cat conftest.err >&5
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); } &&
26855          { ac_try='test -z "$ac_c_werror_flag"
26856                          || test ! -s conftest.err'
26857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26858   (eval $ac_try) 2>&5
26859   ac_status=$?
26860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861   (exit $ac_status); }; } &&
26862          { ac_try='test -s conftest.$ac_objext'
26863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26864   (eval $ac_try) 2>&5
26865   ac_status=$?
26866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867   (exit $ac_status); }; }; then
26868   ac_cv_type_size_t=yes
26869 else
26870   echo "$as_me: failed program was:" >&5
26871 sed 's/^/| /' conftest.$ac_ext >&5
26872
26873 ac_cv_type_size_t=no
26874 fi
26875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26876 fi
26877 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26878 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26879 if test $ac_cv_type_size_t = yes; then
26880   :
26881 else
26882
26883 cat >>confdefs.h <<_ACEOF
26884 #define size_t unsigned
26885 _ACEOF
26886
26887 fi
26888
26889 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26890 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26891 if test "${ac_cv_type_signal+set}" = set; then
26892   echo $ECHO_N "(cached) $ECHO_C" >&6
26893 else
26894   cat >conftest.$ac_ext <<_ACEOF
26895 /* confdefs.h.  */
26896 _ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h.  */
26900 #include <sys/types.h>
26901 #include <signal.h>
26902 #ifdef signal
26903 # undef signal
26904 #endif
26905 #ifdef __cplusplus
26906 extern "C" void (*signal (int, void (*)(int)))(int);
26907 #else
26908 void (*signal ()) ();
26909 #endif
26910
26911 int
26912 main ()
26913 {
26914 int i;
26915   ;
26916   return 0;
26917 }
26918 _ACEOF
26919 rm -f conftest.$ac_objext
26920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26921   (eval $ac_compile) 2>conftest.er1
26922   ac_status=$?
26923   grep -v '^ *+' conftest.er1 >conftest.err
26924   rm -f conftest.er1
26925   cat conftest.err >&5
26926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927   (exit $ac_status); } &&
26928          { ac_try='test -z "$ac_c_werror_flag"
26929                          || test ! -s conftest.err'
26930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26931   (eval $ac_try) 2>&5
26932   ac_status=$?
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); }; } &&
26935          { ac_try='test -s conftest.$ac_objext'
26936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26937   (eval $ac_try) 2>&5
26938   ac_status=$?
26939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940   (exit $ac_status); }; }; then
26941   ac_cv_type_signal=void
26942 else
26943   echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26945
26946 ac_cv_type_signal=int
26947 fi
26948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26949 fi
26950 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26951 echo "${ECHO_T}$ac_cv_type_signal" >&6
26952
26953 cat >>confdefs.h <<_ACEOF
26954 #define RETSIGTYPE $ac_cv_type_signal
26955 _ACEOF
26956
26957
26958 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26959 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26960 if test "${ac_cv_struct_tm+set}" = set; then
26961   echo $ECHO_N "(cached) $ECHO_C" >&6
26962 else
26963   cat >conftest.$ac_ext <<_ACEOF
26964 /* confdefs.h.  */
26965 _ACEOF
26966 cat confdefs.h >>conftest.$ac_ext
26967 cat >>conftest.$ac_ext <<_ACEOF
26968 /* end confdefs.h.  */
26969 #include <sys/types.h>
26970 #include <time.h>
26971
26972 int
26973 main ()
26974 {
26975 struct tm *tp; tp->tm_sec;
26976   ;
26977   return 0;
26978 }
26979 _ACEOF
26980 rm -f conftest.$ac_objext
26981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26982   (eval $ac_compile) 2>conftest.er1
26983   ac_status=$?
26984   grep -v '^ *+' conftest.er1 >conftest.err
26985   rm -f conftest.er1
26986   cat conftest.err >&5
26987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988   (exit $ac_status); } &&
26989          { ac_try='test -z "$ac_c_werror_flag"
26990                          || test ! -s conftest.err'
26991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26992   (eval $ac_try) 2>&5
26993   ac_status=$?
26994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995   (exit $ac_status); }; } &&
26996          { ac_try='test -s conftest.$ac_objext'
26997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26998   (eval $ac_try) 2>&5
26999   ac_status=$?
27000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001   (exit $ac_status); }; }; then
27002   ac_cv_struct_tm=time.h
27003 else
27004   echo "$as_me: failed program was:" >&5
27005 sed 's/^/| /' conftest.$ac_ext >&5
27006
27007 ac_cv_struct_tm=sys/time.h
27008 fi
27009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27010 fi
27011 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27012 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27013 if test $ac_cv_struct_tm = sys/time.h; then
27014
27015 cat >>confdefs.h <<\_ACEOF
27016 #define TM_IN_SYS_TIME 1
27017 _ACEOF
27018
27019 fi
27020
27021 echo "$as_me:$LINENO: checking for int64_t" >&5
27022 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27023 if test "${ac_cv_type_int64_t+set}" = set; then
27024   echo $ECHO_N "(cached) $ECHO_C" >&6
27025 else
27026   cat >conftest.$ac_ext <<_ACEOF
27027 /* confdefs.h.  */
27028 _ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h.  */
27032 $ac_includes_default
27033 int
27034 main ()
27035 {
27036 if ((int64_t *) 0)
27037   return 0;
27038 if (sizeof (int64_t))
27039   return 0;
27040   ;
27041   return 0;
27042 }
27043 _ACEOF
27044 rm -f conftest.$ac_objext
27045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27046   (eval $ac_compile) 2>conftest.er1
27047   ac_status=$?
27048   grep -v '^ *+' conftest.er1 >conftest.err
27049   rm -f conftest.er1
27050   cat conftest.err >&5
27051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052   (exit $ac_status); } &&
27053          { ac_try='test -z "$ac_c_werror_flag"
27054                          || test ! -s conftest.err'
27055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27056   (eval $ac_try) 2>&5
27057   ac_status=$?
27058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059   (exit $ac_status); }; } &&
27060          { ac_try='test -s conftest.$ac_objext'
27061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27062   (eval $ac_try) 2>&5
27063   ac_status=$?
27064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065   (exit $ac_status); }; }; then
27066   ac_cv_type_int64_t=yes
27067 else
27068   echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27070
27071 ac_cv_type_int64_t=no
27072 fi
27073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27074 fi
27075 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27076 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27077 if test $ac_cv_type_int64_t = yes; then
27078
27079 cat >>confdefs.h <<_ACEOF
27080 #define HAVE_INT64_T 1
27081 _ACEOF
27082
27083
27084 else
27085   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27086 echo "$as_me: error: Type int64_t required but not found" >&2;}
27087    { (exit 1); exit 1; }; }
27088 fi
27089
27090 echo "$as_me:$LINENO: checking for uint64_t" >&5
27091 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27092 if test "${ac_cv_type_uint64_t+set}" = set; then
27093   echo $ECHO_N "(cached) $ECHO_C" >&6
27094 else
27095   cat >conftest.$ac_ext <<_ACEOF
27096 /* confdefs.h.  */
27097 _ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h.  */
27101 $ac_includes_default
27102 int
27103 main ()
27104 {
27105 if ((uint64_t *) 0)
27106   return 0;
27107 if (sizeof (uint64_t))
27108   return 0;
27109   ;
27110   return 0;
27111 }
27112 _ACEOF
27113 rm -f conftest.$ac_objext
27114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27115   (eval $ac_compile) 2>conftest.er1
27116   ac_status=$?
27117   grep -v '^ *+' conftest.er1 >conftest.err
27118   rm -f conftest.er1
27119   cat conftest.err >&5
27120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121   (exit $ac_status); } &&
27122          { ac_try='test -z "$ac_c_werror_flag"
27123                          || test ! -s conftest.err'
27124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27125   (eval $ac_try) 2>&5
27126   ac_status=$?
27127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128   (exit $ac_status); }; } &&
27129          { ac_try='test -s conftest.$ac_objext'
27130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131   (eval $ac_try) 2>&5
27132   ac_status=$?
27133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134   (exit $ac_status); }; }; then
27135   ac_cv_type_uint64_t=yes
27136 else
27137   echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27139
27140 ac_cv_type_uint64_t=no
27141 fi
27142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27143 fi
27144 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27145 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27146 if test $ac_cv_type_uint64_t = yes; then
27147
27148 cat >>confdefs.h <<_ACEOF
27149 #define HAVE_UINT64_T 1
27150 _ACEOF
27151
27152
27153 else
27154   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27155 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27156 if test "${ac_cv_type_u_int64_t+set}" = set; then
27157   echo $ECHO_N "(cached) $ECHO_C" >&6
27158 else
27159   cat >conftest.$ac_ext <<_ACEOF
27160 /* confdefs.h.  */
27161 _ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h.  */
27165 $ac_includes_default
27166 int
27167 main ()
27168 {
27169 if ((u_int64_t *) 0)
27170   return 0;
27171 if (sizeof (u_int64_t))
27172   return 0;
27173   ;
27174   return 0;
27175 }
27176 _ACEOF
27177 rm -f conftest.$ac_objext
27178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27179   (eval $ac_compile) 2>conftest.er1
27180   ac_status=$?
27181   grep -v '^ *+' conftest.er1 >conftest.err
27182   rm -f conftest.er1
27183   cat conftest.err >&5
27184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185   (exit $ac_status); } &&
27186          { ac_try='test -z "$ac_c_werror_flag"
27187                          || test ! -s conftest.err'
27188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189   (eval $ac_try) 2>&5
27190   ac_status=$?
27191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); }; } &&
27193          { ac_try='test -s conftest.$ac_objext'
27194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27195   (eval $ac_try) 2>&5
27196   ac_status=$?
27197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198   (exit $ac_status); }; }; then
27199   ac_cv_type_u_int64_t=yes
27200 else
27201   echo "$as_me: failed program was:" >&5
27202 sed 's/^/| /' conftest.$ac_ext >&5
27203
27204 ac_cv_type_u_int64_t=no
27205 fi
27206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27207 fi
27208 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27209 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27210 if test $ac_cv_type_u_int64_t = yes; then
27211
27212 cat >>confdefs.h <<_ACEOF
27213 #define HAVE_U_INT64_T 1
27214 _ACEOF
27215
27216
27217 else
27218   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27219 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27220    { (exit 1); exit 1; }; }
27221 fi
27222
27223 fi
27224
27225
27226
27227
27228
27229
27230
27231
27232 for ac_func in backtrace getcwd getpagesize getrusage gettimeofday
27233 do
27234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27235 echo "$as_me:$LINENO: checking for $ac_func" >&5
27236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27237 if eval "test \"\${$as_ac_var+set}\" = set"; then
27238   echo $ECHO_N "(cached) $ECHO_C" >&6
27239 else
27240   cat >conftest.$ac_ext <<_ACEOF
27241 /* confdefs.h.  */
27242 _ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h.  */
27246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27248 #define $ac_func innocuous_$ac_func
27249
27250 /* System header to define __stub macros and hopefully few prototypes,
27251     which can conflict with char $ac_func (); below.
27252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27253     <limits.h> exists even on freestanding compilers.  */
27254
27255 #ifdef __STDC__
27256 # include <limits.h>
27257 #else
27258 # include <assert.h>
27259 #endif
27260
27261 #undef $ac_func
27262
27263 /* Override any gcc2 internal prototype to avoid an error.  */
27264 #ifdef __cplusplus
27265 extern "C"
27266 {
27267 #endif
27268 /* We use char because int might match the return type of a gcc2
27269    builtin and then its argument prototype would still apply.  */
27270 char $ac_func ();
27271 /* The GNU C library defines this for functions which it implements
27272     to always fail with ENOSYS.  Some functions are actually named
27273     something starting with __ and the normal name is an alias.  */
27274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27275 choke me
27276 #else
27277 char (*f) () = $ac_func;
27278 #endif
27279 #ifdef __cplusplus
27280 }
27281 #endif
27282
27283 int
27284 main ()
27285 {
27286 return f != $ac_func;
27287   ;
27288   return 0;
27289 }
27290 _ACEOF
27291 rm -f conftest.$ac_objext conftest$ac_exeext
27292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27293   (eval $ac_link) 2>conftest.er1
27294   ac_status=$?
27295   grep -v '^ *+' conftest.er1 >conftest.err
27296   rm -f conftest.er1
27297   cat conftest.err >&5
27298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299   (exit $ac_status); } &&
27300          { ac_try='test -z "$ac_c_werror_flag"
27301                          || test ! -s conftest.err'
27302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303   (eval $ac_try) 2>&5
27304   ac_status=$?
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); }; } &&
27307          { ac_try='test -s conftest$ac_exeext'
27308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309   (eval $ac_try) 2>&5
27310   ac_status=$?
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); }; }; then
27313   eval "$as_ac_var=yes"
27314 else
27315   echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27317
27318 eval "$as_ac_var=no"
27319 fi
27320 rm -f conftest.err conftest.$ac_objext \
27321       conftest$ac_exeext conftest.$ac_ext
27322 fi
27323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27325 if test `eval echo '${'$as_ac_var'}'` = yes; then
27326   cat >>confdefs.h <<_ACEOF
27327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27328 _ACEOF
27329
27330 fi
27331 done
27332
27333
27334
27335
27336
27337 for ac_func in isatty mkdtemp mkstemp mktemp
27338 do
27339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27340 echo "$as_me:$LINENO: checking for $ac_func" >&5
27341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27342 if eval "test \"\${$as_ac_var+set}\" = set"; then
27343   echo $ECHO_N "(cached) $ECHO_C" >&6
27344 else
27345   cat >conftest.$ac_ext <<_ACEOF
27346 /* confdefs.h.  */
27347 _ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h.  */
27351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27353 #define $ac_func innocuous_$ac_func
27354
27355 /* System header to define __stub macros and hopefully few prototypes,
27356     which can conflict with char $ac_func (); below.
27357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27358     <limits.h> exists even on freestanding compilers.  */
27359
27360 #ifdef __STDC__
27361 # include <limits.h>
27362 #else
27363 # include <assert.h>
27364 #endif
27365
27366 #undef $ac_func
27367
27368 /* Override any gcc2 internal prototype to avoid an error.  */
27369 #ifdef __cplusplus
27370 extern "C"
27371 {
27372 #endif
27373 /* We use char because int might match the return type of a gcc2
27374    builtin and then its argument prototype would still apply.  */
27375 char $ac_func ();
27376 /* The GNU C library defines this for functions which it implements
27377     to always fail with ENOSYS.  Some functions are actually named
27378     something starting with __ and the normal name is an alias.  */
27379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27380 choke me
27381 #else
27382 char (*f) () = $ac_func;
27383 #endif
27384 #ifdef __cplusplus
27385 }
27386 #endif
27387
27388 int
27389 main ()
27390 {
27391 return f != $ac_func;
27392   ;
27393   return 0;
27394 }
27395 _ACEOF
27396 rm -f conftest.$ac_objext conftest$ac_exeext
27397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27398   (eval $ac_link) 2>conftest.er1
27399   ac_status=$?
27400   grep -v '^ *+' conftest.er1 >conftest.err
27401   rm -f conftest.er1
27402   cat conftest.err >&5
27403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404   (exit $ac_status); } &&
27405          { ac_try='test -z "$ac_c_werror_flag"
27406                          || test ! -s conftest.err'
27407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408   (eval $ac_try) 2>&5
27409   ac_status=$?
27410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411   (exit $ac_status); }; } &&
27412          { ac_try='test -s conftest$ac_exeext'
27413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27414   (eval $ac_try) 2>&5
27415   ac_status=$?
27416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); }; }; then
27418   eval "$as_ac_var=yes"
27419 else
27420   echo "$as_me: failed program was:" >&5
27421 sed 's/^/| /' conftest.$ac_ext >&5
27422
27423 eval "$as_ac_var=no"
27424 fi
27425 rm -f conftest.err conftest.$ac_objext \
27426       conftest$ac_exeext conftest.$ac_ext
27427 fi
27428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27430 if test `eval echo '${'$as_ac_var'}'` = yes; then
27431   cat >>confdefs.h <<_ACEOF
27432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27433 _ACEOF
27434
27435 fi
27436 done
27437
27438
27439
27440
27441
27442
27443
27444 for ac_func in realpath sbrk setrlimit strdup strerror strerror_r
27445 do
27446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27447 echo "$as_me:$LINENO: checking for $ac_func" >&5
27448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27449 if eval "test \"\${$as_ac_var+set}\" = set"; then
27450   echo $ECHO_N "(cached) $ECHO_C" >&6
27451 else
27452   cat >conftest.$ac_ext <<_ACEOF
27453 /* confdefs.h.  */
27454 _ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h.  */
27458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27460 #define $ac_func innocuous_$ac_func
27461
27462 /* System header to define __stub macros and hopefully few prototypes,
27463     which can conflict with char $ac_func (); below.
27464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27465     <limits.h> exists even on freestanding compilers.  */
27466
27467 #ifdef __STDC__
27468 # include <limits.h>
27469 #else
27470 # include <assert.h>
27471 #endif
27472
27473 #undef $ac_func
27474
27475 /* Override any gcc2 internal prototype to avoid an error.  */
27476 #ifdef __cplusplus
27477 extern "C"
27478 {
27479 #endif
27480 /* We use char because int might match the return type of a gcc2
27481    builtin and then its argument prototype would still apply.  */
27482 char $ac_func ();
27483 /* The GNU C library defines this for functions which it implements
27484     to always fail with ENOSYS.  Some functions are actually named
27485     something starting with __ and the normal name is an alias.  */
27486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27487 choke me
27488 #else
27489 char (*f) () = $ac_func;
27490 #endif
27491 #ifdef __cplusplus
27492 }
27493 #endif
27494
27495 int
27496 main ()
27497 {
27498 return f != $ac_func;
27499   ;
27500   return 0;
27501 }
27502 _ACEOF
27503 rm -f conftest.$ac_objext conftest$ac_exeext
27504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27505   (eval $ac_link) 2>conftest.er1
27506   ac_status=$?
27507   grep -v '^ *+' conftest.er1 >conftest.err
27508   rm -f conftest.er1
27509   cat conftest.err >&5
27510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511   (exit $ac_status); } &&
27512          { ac_try='test -z "$ac_c_werror_flag"
27513                          || test ! -s conftest.err'
27514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515   (eval $ac_try) 2>&5
27516   ac_status=$?
27517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518   (exit $ac_status); }; } &&
27519          { ac_try='test -s conftest$ac_exeext'
27520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521   (eval $ac_try) 2>&5
27522   ac_status=$?
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); }; }; then
27525   eval "$as_ac_var=yes"
27526 else
27527   echo "$as_me: failed program was:" >&5
27528 sed 's/^/| /' conftest.$ac_ext >&5
27529
27530 eval "$as_ac_var=no"
27531 fi
27532 rm -f conftest.err conftest.$ac_objext \
27533       conftest$ac_exeext conftest.$ac_ext
27534 fi
27535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27537 if test `eval echo '${'$as_ac_var'}'` = yes; then
27538   cat >>confdefs.h <<_ACEOF
27539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27540 _ACEOF
27541
27542 fi
27543 done
27544
27545
27546
27547
27548 for ac_func in strtoll strtoq sysconf
27549 do
27550 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27551 echo "$as_me:$LINENO: checking for $ac_func" >&5
27552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27553 if eval "test \"\${$as_ac_var+set}\" = set"; then
27554   echo $ECHO_N "(cached) $ECHO_C" >&6
27555 else
27556   cat >conftest.$ac_ext <<_ACEOF
27557 /* confdefs.h.  */
27558 _ACEOF
27559 cat confdefs.h >>conftest.$ac_ext
27560 cat >>conftest.$ac_ext <<_ACEOF
27561 /* end confdefs.h.  */
27562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27564 #define $ac_func innocuous_$ac_func
27565
27566 /* System header to define __stub macros and hopefully few prototypes,
27567     which can conflict with char $ac_func (); below.
27568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27569     <limits.h> exists even on freestanding compilers.  */
27570
27571 #ifdef __STDC__
27572 # include <limits.h>
27573 #else
27574 # include <assert.h>
27575 #endif
27576
27577 #undef $ac_func
27578
27579 /* Override any gcc2 internal prototype to avoid an error.  */
27580 #ifdef __cplusplus
27581 extern "C"
27582 {
27583 #endif
27584 /* We use char because int might match the return type of a gcc2
27585    builtin and then its argument prototype would still apply.  */
27586 char $ac_func ();
27587 /* The GNU C library defines this for functions which it implements
27588     to always fail with ENOSYS.  Some functions are actually named
27589     something starting with __ and the normal name is an alias.  */
27590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27591 choke me
27592 #else
27593 char (*f) () = $ac_func;
27594 #endif
27595 #ifdef __cplusplus
27596 }
27597 #endif
27598
27599 int
27600 main ()
27601 {
27602 return f != $ac_func;
27603   ;
27604   return 0;
27605 }
27606 _ACEOF
27607 rm -f conftest.$ac_objext conftest$ac_exeext
27608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27609   (eval $ac_link) 2>conftest.er1
27610   ac_status=$?
27611   grep -v '^ *+' conftest.er1 >conftest.err
27612   rm -f conftest.er1
27613   cat conftest.err >&5
27614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615   (exit $ac_status); } &&
27616          { ac_try='test -z "$ac_c_werror_flag"
27617                          || test ! -s conftest.err'
27618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619   (eval $ac_try) 2>&5
27620   ac_status=$?
27621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622   (exit $ac_status); }; } &&
27623          { ac_try='test -s conftest$ac_exeext'
27624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27625   (eval $ac_try) 2>&5
27626   ac_status=$?
27627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628   (exit $ac_status); }; }; then
27629   eval "$as_ac_var=yes"
27630 else
27631   echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27633
27634 eval "$as_ac_var=no"
27635 fi
27636 rm -f conftest.err conftest.$ac_objext \
27637       conftest$ac_exeext conftest.$ac_ext
27638 fi
27639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27641 if test `eval echo '${'$as_ac_var'}'` = yes; then
27642   cat >>confdefs.h <<_ACEOF
27643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27644 _ACEOF
27645
27646 fi
27647 done
27648
27649 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27650 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
27651 if test "${llvm_cv_c_printf_a+set}" = set; then
27652   echo $ECHO_N "(cached) $ECHO_C" >&6
27653 else
27654   ac_ext=c
27655 ac_cpp='$CPP $CPPFLAGS'
27656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27659
27660  if test "$cross_compiling" = yes; then
27661   llvmac_cv_c_printf_a=no
27662 else
27663   cat >conftest.$ac_ext <<_ACEOF
27664
27665   /* confdefs.h.  */
27666 _ACEOF
27667 cat confdefs.h >>conftest.$ac_ext
27668 cat >>conftest.$ac_ext <<_ACEOF
27669 /* end confdefs.h.  */
27670
27671 #include <stdio.h>
27672 #include <stdlib.h>
27673
27674 int
27675 main ()
27676 {
27677
27678 volatile double A, B;
27679 char Buffer[100];
27680 A = 1;
27681 A /= 10.0;
27682 sprintf(Buffer, "%a", A);
27683 B = atof(Buffer);
27684 if (A != B)
27685   return (1);
27686 if (A != 0x1.999999999999ap-4)
27687   return (1);
27688 return (0);
27689   ;
27690   return 0;
27691 }
27692 _ACEOF
27693 rm -f conftest$ac_exeext
27694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27695   (eval $ac_link) 2>&5
27696   ac_status=$?
27697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27700   (eval $ac_try) 2>&5
27701   ac_status=$?
27702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703   (exit $ac_status); }; }; then
27704   llvm_cv_c_printf_a=yes
27705 else
27706   echo "$as_me: program exited with status $ac_status" >&5
27707 echo "$as_me: failed program was:" >&5
27708 sed 's/^/| /' conftest.$ac_ext >&5
27709
27710 ( exit $ac_status )
27711 llvmac_cv_c_printf_a=no
27712 fi
27713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27714 fi
27715  ac_ext=c
27716 ac_cpp='$CPP $CPPFLAGS'
27717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27720
27721 fi
27722 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27723 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27724  if test "$llvm_cv_c_printf_a" = "yes"; then
27725
27726 cat >>confdefs.h <<\_ACEOF
27727 #define HAVE_PRINTF_A 1
27728 _ACEOF
27729
27730  fi
27731
27732 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27733 # for constant arguments.  Useless!
27734 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27735 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27736 if test "${ac_cv_working_alloca_h+set}" = set; then
27737   echo $ECHO_N "(cached) $ECHO_C" >&6
27738 else
27739   cat >conftest.$ac_ext <<_ACEOF
27740 /* confdefs.h.  */
27741 _ACEOF
27742 cat confdefs.h >>conftest.$ac_ext
27743 cat >>conftest.$ac_ext <<_ACEOF
27744 /* end confdefs.h.  */
27745 #include <alloca.h>
27746 int
27747 main ()
27748 {
27749 char *p = (char *) alloca (2 * sizeof (int));
27750   ;
27751   return 0;
27752 }
27753 _ACEOF
27754 rm -f conftest.$ac_objext conftest$ac_exeext
27755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27756   (eval $ac_link) 2>conftest.er1
27757   ac_status=$?
27758   grep -v '^ *+' conftest.er1 >conftest.err
27759   rm -f conftest.er1
27760   cat conftest.err >&5
27761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762   (exit $ac_status); } &&
27763          { ac_try='test -z "$ac_c_werror_flag"
27764                          || test ! -s conftest.err'
27765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27766   (eval $ac_try) 2>&5
27767   ac_status=$?
27768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769   (exit $ac_status); }; } &&
27770          { ac_try='test -s conftest$ac_exeext'
27771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772   (eval $ac_try) 2>&5
27773   ac_status=$?
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); }; }; then
27776   ac_cv_working_alloca_h=yes
27777 else
27778   echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27780
27781 ac_cv_working_alloca_h=no
27782 fi
27783 rm -f conftest.err conftest.$ac_objext \
27784       conftest$ac_exeext conftest.$ac_ext
27785 fi
27786 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27787 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27788 if test $ac_cv_working_alloca_h = yes; then
27789
27790 cat >>confdefs.h <<\_ACEOF
27791 #define HAVE_ALLOCA_H 1
27792 _ACEOF
27793
27794 fi
27795
27796 echo "$as_me:$LINENO: checking for alloca" >&5
27797 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27798 if test "${ac_cv_func_alloca_works+set}" = set; then
27799   echo $ECHO_N "(cached) $ECHO_C" >&6
27800 else
27801   cat >conftest.$ac_ext <<_ACEOF
27802 /* confdefs.h.  */
27803 _ACEOF
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h.  */
27807 #ifdef __GNUC__
27808 # define alloca __builtin_alloca
27809 #else
27810 # ifdef _MSC_VER
27811 #  include <malloc.h>
27812 #  define alloca _alloca
27813 # else
27814 #  if HAVE_ALLOCA_H
27815 #   include <alloca.h>
27816 #  else
27817 #   ifdef _AIX
27818  #pragma alloca
27819 #   else
27820 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27821 char *alloca ();
27822 #    endif
27823 #   endif
27824 #  endif
27825 # endif
27826 #endif
27827
27828 int
27829 main ()
27830 {
27831 char *p = (char *) alloca (1);
27832   ;
27833   return 0;
27834 }
27835 _ACEOF
27836 rm -f conftest.$ac_objext conftest$ac_exeext
27837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27838   (eval $ac_link) 2>conftest.er1
27839   ac_status=$?
27840   grep -v '^ *+' conftest.er1 >conftest.err
27841   rm -f conftest.er1
27842   cat conftest.err >&5
27843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844   (exit $ac_status); } &&
27845          { ac_try='test -z "$ac_c_werror_flag"
27846                          || test ! -s conftest.err'
27847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27848   (eval $ac_try) 2>&5
27849   ac_status=$?
27850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851   (exit $ac_status); }; } &&
27852          { ac_try='test -s conftest$ac_exeext'
27853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854   (eval $ac_try) 2>&5
27855   ac_status=$?
27856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); }; }; then
27858   ac_cv_func_alloca_works=yes
27859 else
27860   echo "$as_me: failed program was:" >&5
27861 sed 's/^/| /' conftest.$ac_ext >&5
27862
27863 ac_cv_func_alloca_works=no
27864 fi
27865 rm -f conftest.err conftest.$ac_objext \
27866       conftest$ac_exeext conftest.$ac_ext
27867 fi
27868 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27869 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27870
27871 if test $ac_cv_func_alloca_works = yes; then
27872
27873 cat >>confdefs.h <<\_ACEOF
27874 #define HAVE_ALLOCA 1
27875 _ACEOF
27876
27877 else
27878   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27879 # that cause trouble.  Some versions do not even contain alloca or
27880 # contain a buggy version.  If you still want to use their alloca,
27881 # use ar to extract alloca.o from them instead of compiling alloca.c.
27882
27883 ALLOCA=alloca.$ac_objext
27884
27885 cat >>confdefs.h <<\_ACEOF
27886 #define C_ALLOCA 1
27887 _ACEOF
27888
27889
27890 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27891 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27892 if test "${ac_cv_os_cray+set}" = set; then
27893   echo $ECHO_N "(cached) $ECHO_C" >&6
27894 else
27895   cat >conftest.$ac_ext <<_ACEOF
27896 /* confdefs.h.  */
27897 _ACEOF
27898 cat confdefs.h >>conftest.$ac_ext
27899 cat >>conftest.$ac_ext <<_ACEOF
27900 /* end confdefs.h.  */
27901 #if defined(CRAY) && ! defined(CRAY2)
27902 webecray
27903 #else
27904 wenotbecray
27905 #endif
27906
27907 _ACEOF
27908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27909   $EGREP "webecray" >/dev/null 2>&1; then
27910   ac_cv_os_cray=yes
27911 else
27912   ac_cv_os_cray=no
27913 fi
27914 rm -f conftest*
27915
27916 fi
27917 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27918 echo "${ECHO_T}$ac_cv_os_cray" >&6
27919 if test $ac_cv_os_cray = yes; then
27920   for ac_func in _getb67 GETB67 getb67; do
27921     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27922 echo "$as_me:$LINENO: checking for $ac_func" >&5
27923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27924 if eval "test \"\${$as_ac_var+set}\" = set"; then
27925   echo $ECHO_N "(cached) $ECHO_C" >&6
27926 else
27927   cat >conftest.$ac_ext <<_ACEOF
27928 /* confdefs.h.  */
27929 _ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h.  */
27933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27935 #define $ac_func innocuous_$ac_func
27936
27937 /* System header to define __stub macros and hopefully few prototypes,
27938     which can conflict with char $ac_func (); below.
27939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27940     <limits.h> exists even on freestanding compilers.  */
27941
27942 #ifdef __STDC__
27943 # include <limits.h>
27944 #else
27945 # include <assert.h>
27946 #endif
27947
27948 #undef $ac_func
27949
27950 /* Override any gcc2 internal prototype to avoid an error.  */
27951 #ifdef __cplusplus
27952 extern "C"
27953 {
27954 #endif
27955 /* We use char because int might match the return type of a gcc2
27956    builtin and then its argument prototype would still apply.  */
27957 char $ac_func ();
27958 /* The GNU C library defines this for functions which it implements
27959     to always fail with ENOSYS.  Some functions are actually named
27960     something starting with __ and the normal name is an alias.  */
27961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27962 choke me
27963 #else
27964 char (*f) () = $ac_func;
27965 #endif
27966 #ifdef __cplusplus
27967 }
27968 #endif
27969
27970 int
27971 main ()
27972 {
27973 return f != $ac_func;
27974   ;
27975   return 0;
27976 }
27977 _ACEOF
27978 rm -f conftest.$ac_objext conftest$ac_exeext
27979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27980   (eval $ac_link) 2>conftest.er1
27981   ac_status=$?
27982   grep -v '^ *+' conftest.er1 >conftest.err
27983   rm -f conftest.er1
27984   cat conftest.err >&5
27985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986   (exit $ac_status); } &&
27987          { ac_try='test -z "$ac_c_werror_flag"
27988                          || test ! -s conftest.err'
27989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990   (eval $ac_try) 2>&5
27991   ac_status=$?
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); }; } &&
27994          { ac_try='test -s conftest$ac_exeext'
27995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27996   (eval $ac_try) 2>&5
27997   ac_status=$?
27998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999   (exit $ac_status); }; }; then
28000   eval "$as_ac_var=yes"
28001 else
28002   echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28004
28005 eval "$as_ac_var=no"
28006 fi
28007 rm -f conftest.err conftest.$ac_objext \
28008       conftest$ac_exeext conftest.$ac_ext
28009 fi
28010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28012 if test `eval echo '${'$as_ac_var'}'` = yes; then
28013
28014 cat >>confdefs.h <<_ACEOF
28015 #define CRAY_STACKSEG_END $ac_func
28016 _ACEOF
28017
28018     break
28019 fi
28020
28021   done
28022 fi
28023
28024 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28025 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28026 if test "${ac_cv_c_stack_direction+set}" = set; then
28027   echo $ECHO_N "(cached) $ECHO_C" >&6
28028 else
28029   if test "$cross_compiling" = yes; then
28030   ac_cv_c_stack_direction=0
28031 else
28032   cat >conftest.$ac_ext <<_ACEOF
28033 /* confdefs.h.  */
28034 _ACEOF
28035 cat confdefs.h >>conftest.$ac_ext
28036 cat >>conftest.$ac_ext <<_ACEOF
28037 /* end confdefs.h.  */
28038 int
28039 find_stack_direction ()
28040 {
28041   static char *addr = 0;
28042   auto char dummy;
28043   if (addr == 0)
28044     {
28045       addr = &dummy;
28046       return find_stack_direction ();
28047     }
28048   else
28049     return (&dummy > addr) ? 1 : -1;
28050 }
28051
28052 int
28053 main ()
28054 {
28055   exit (find_stack_direction () < 0);
28056 }
28057 _ACEOF
28058 rm -f conftest$ac_exeext
28059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28060   (eval $ac_link) 2>&5
28061   ac_status=$?
28062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28065   (eval $ac_try) 2>&5
28066   ac_status=$?
28067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068   (exit $ac_status); }; }; then
28069   ac_cv_c_stack_direction=1
28070 else
28071   echo "$as_me: program exited with status $ac_status" >&5
28072 echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28074
28075 ( exit $ac_status )
28076 ac_cv_c_stack_direction=-1
28077 fi
28078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28079 fi
28080 fi
28081 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28082 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28083
28084 cat >>confdefs.h <<_ACEOF
28085 #define STACK_DIRECTION $ac_cv_c_stack_direction
28086 _ACEOF
28087
28088
28089 fi
28090
28091
28092 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28093 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28094 if test "${ac_cv_func_rand48+set}" = set; then
28095   echo $ECHO_N "(cached) $ECHO_C" >&6
28096 else
28097   ac_ext=cc
28098 ac_cpp='$CXXCPP $CPPFLAGS'
28099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28102
28103    cat >conftest.$ac_ext <<_ACEOF
28104 /* confdefs.h.  */
28105 _ACEOF
28106 cat confdefs.h >>conftest.$ac_ext
28107 cat >>conftest.$ac_ext <<_ACEOF
28108 /* end confdefs.h.  */
28109 #include <stdlib.h>
28110 int
28111 main ()
28112 {
28113 srand48(0);lrand48();drand48();
28114   ;
28115   return 0;
28116 }
28117 _ACEOF
28118 rm -f conftest.$ac_objext
28119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28120   (eval $ac_compile) 2>conftest.er1
28121   ac_status=$?
28122   grep -v '^ *+' conftest.er1 >conftest.err
28123   rm -f conftest.er1
28124   cat conftest.err >&5
28125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126   (exit $ac_status); } &&
28127          { ac_try='test -z "$ac_cxx_werror_flag"
28128                          || test ! -s conftest.err'
28129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130   (eval $ac_try) 2>&5
28131   ac_status=$?
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); }; } &&
28134          { ac_try='test -s conftest.$ac_objext'
28135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136   (eval $ac_try) 2>&5
28137   ac_status=$?
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); }; }; then
28140   ac_cv_func_rand48=yes
28141 else
28142   echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28144
28145 ac_cv_func_rand48=no
28146 fi
28147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28148   ac_ext=c
28149 ac_cpp='$CPP $CPPFLAGS'
28150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28153
28154 fi
28155 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28156 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28157
28158 if test "$ac_cv_func_rand48" = "yes" ; then
28159
28160 cat >>confdefs.h <<\_ACEOF
28161 #define HAVE_RAND48 1
28162 _ACEOF
28163
28164 fi
28165
28166
28167 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28168 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28169 if test "${ac_cv_cxx_namespaces+set}" = set; then
28170   echo $ECHO_N "(cached) $ECHO_C" >&6
28171 else
28172   ac_ext=cc
28173 ac_cpp='$CXXCPP $CPPFLAGS'
28174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28177
28178  cat >conftest.$ac_ext <<_ACEOF
28179 /* confdefs.h.  */
28180 _ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h.  */
28184 namespace Outer { namespace Inner { int i = 0; }}
28185 int
28186 main ()
28187 {
28188 using namespace Outer::Inner; return i;
28189   ;
28190   return 0;
28191 }
28192 _ACEOF
28193 rm -f conftest.$ac_objext
28194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28195   (eval $ac_compile) 2>conftest.er1
28196   ac_status=$?
28197   grep -v '^ *+' conftest.er1 >conftest.err
28198   rm -f conftest.er1
28199   cat conftest.err >&5
28200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201   (exit $ac_status); } &&
28202          { ac_try='test -z "$ac_cxx_werror_flag"
28203                          || test ! -s conftest.err'
28204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28205   (eval $ac_try) 2>&5
28206   ac_status=$?
28207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208   (exit $ac_status); }; } &&
28209          { ac_try='test -s conftest.$ac_objext'
28210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28211   (eval $ac_try) 2>&5
28212   ac_status=$?
28213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214   (exit $ac_status); }; }; then
28215   ac_cv_cxx_namespaces=yes
28216 else
28217   echo "$as_me: failed program was:" >&5
28218 sed 's/^/| /' conftest.$ac_ext >&5
28219
28220 ac_cv_cxx_namespaces=no
28221 fi
28222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28223  ac_ext=c
28224 ac_cpp='$CPP $CPPFLAGS'
28225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28228
28229
28230 fi
28231 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28232 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28233 if test "$ac_cv_cxx_namespaces" = yes; then
28234
28235 cat >>confdefs.h <<\_ACEOF
28236 #define HAVE_NAMESPACES
28237 _ACEOF
28238
28239 fi
28240
28241 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28242 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28243 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28244   echo $ECHO_N "(cached) $ECHO_C" >&6
28245 else
28246
28247   ac_ext=cc
28248 ac_cpp='$CXXCPP $CPPFLAGS'
28249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28252
28253   cat >conftest.$ac_ext <<_ACEOF
28254 /* confdefs.h.  */
28255 _ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h.  */
28259 #include <ext/hash_map>
28260 #ifdef HAVE_NAMESPACES
28261 using namespace std;
28262 #endif
28263 int
28264 main ()
28265 {
28266 hash_map<int, int> t;
28267   ;
28268   return 0;
28269 }
28270 _ACEOF
28271 rm -f conftest.$ac_objext
28272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28273   (eval $ac_compile) 2>conftest.er1
28274   ac_status=$?
28275   grep -v '^ *+' conftest.er1 >conftest.err
28276   rm -f conftest.er1
28277   cat conftest.err >&5
28278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279   (exit $ac_status); } &&
28280          { ac_try='test -z "$ac_cxx_werror_flag"
28281                          || test ! -s conftest.err'
28282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28283   (eval $ac_try) 2>&5
28284   ac_status=$?
28285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286   (exit $ac_status); }; } &&
28287          { ac_try='test -s conftest.$ac_objext'
28288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28289   (eval $ac_try) 2>&5
28290   ac_status=$?
28291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292   (exit $ac_status); }; }; then
28293   ac_cv_cxx_have_std_ext_hash_map=yes
28294 else
28295   echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.$ac_ext >&5
28297
28298 ac_cv_cxx_have_std_ext_hash_map=no
28299 fi
28300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28301   ac_ext=c
28302 ac_cpp='$CPP $CPPFLAGS'
28303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28306
28307 fi
28308 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28309 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28310  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28311  then
28312
28313 cat >>confdefs.h <<\_ACEOF
28314 #define HAVE_STD_EXT_HASH_MAP 1
28315 _ACEOF
28316
28317  else
28318
28319 cat >>confdefs.h <<\_ACEOF
28320 #define HAVE_STD_EXT_HASH_MAP 0
28321 _ACEOF
28322
28323  fi
28324
28325  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28326 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28327 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28328   echo $ECHO_N "(cached) $ECHO_C" >&6
28329 else
28330
28331   ac_ext=cc
28332 ac_cpp='$CXXCPP $CPPFLAGS'
28333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28336
28337   cat >conftest.$ac_ext <<_ACEOF
28338 /* confdefs.h.  */
28339 _ACEOF
28340 cat confdefs.h >>conftest.$ac_ext
28341 cat >>conftest.$ac_ext <<_ACEOF
28342 /* end confdefs.h.  */
28343 #include <ext/hash_map>
28344 #ifdef HAVE_NAMESPACES
28345 using namespace __gnu_cxx;
28346 #endif
28347 int
28348 main ()
28349 {
28350 hash_map<int,int> t;
28351   ;
28352   return 0;
28353 }
28354 _ACEOF
28355 rm -f conftest.$ac_objext
28356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28357   (eval $ac_compile) 2>conftest.er1
28358   ac_status=$?
28359   grep -v '^ *+' conftest.er1 >conftest.err
28360   rm -f conftest.er1
28361   cat conftest.err >&5
28362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363   (exit $ac_status); } &&
28364          { ac_try='test -z "$ac_cxx_werror_flag"
28365                          || test ! -s conftest.err'
28366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28367   (eval $ac_try) 2>&5
28368   ac_status=$?
28369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370   (exit $ac_status); }; } &&
28371          { ac_try='test -s conftest.$ac_objext'
28372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373   (eval $ac_try) 2>&5
28374   ac_status=$?
28375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376   (exit $ac_status); }; }; then
28377   ac_cv_cxx_have_gnu_ext_hash_map=yes
28378 else
28379   echo "$as_me: failed program was:" >&5
28380 sed 's/^/| /' conftest.$ac_ext >&5
28381
28382 ac_cv_cxx_have_gnu_ext_hash_map=no
28383 fi
28384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28385   ac_ext=c
28386 ac_cpp='$CPP $CPPFLAGS'
28387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28390
28391 fi
28392 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28393 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28394  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28395  then
28396
28397 cat >>confdefs.h <<\_ACEOF
28398 #define HAVE_GNU_EXT_HASH_MAP 1
28399 _ACEOF
28400
28401  else
28402
28403 cat >>confdefs.h <<\_ACEOF
28404 #define HAVE_GNU_EXT_HASH_MAP 0
28405 _ACEOF
28406
28407  fi
28408
28409  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28410 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28411 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28412   echo $ECHO_N "(cached) $ECHO_C" >&6
28413 else
28414
28415   ac_ext=cc
28416 ac_cpp='$CXXCPP $CPPFLAGS'
28417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28420
28421   cat >conftest.$ac_ext <<_ACEOF
28422 /* confdefs.h.  */
28423 _ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h.  */
28427 #include <hash_map>
28428 int
28429 main ()
28430 {
28431 hash_map<int,int> t;
28432   ;
28433   return 0;
28434 }
28435 _ACEOF
28436 rm -f conftest.$ac_objext
28437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28438   (eval $ac_compile) 2>conftest.er1
28439   ac_status=$?
28440   grep -v '^ *+' conftest.er1 >conftest.err
28441   rm -f conftest.er1
28442   cat conftest.err >&5
28443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444   (exit $ac_status); } &&
28445          { ac_try='test -z "$ac_cxx_werror_flag"
28446                          || test ! -s conftest.err'
28447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448   (eval $ac_try) 2>&5
28449   ac_status=$?
28450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451   (exit $ac_status); }; } &&
28452          { ac_try='test -s conftest.$ac_objext'
28453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28454   (eval $ac_try) 2>&5
28455   ac_status=$?
28456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457   (exit $ac_status); }; }; then
28458   ac_cv_cxx_have_global_hash_map=yes
28459 else
28460   echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28462
28463 ac_cv_cxx_have_global_hash_map=no
28464 fi
28465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28466   ac_ext=c
28467 ac_cpp='$CPP $CPPFLAGS'
28468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28471
28472 fi
28473 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28474 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28475  if test "$ac_cv_cxx_have_global_hash_map" = yes
28476  then
28477
28478 cat >>confdefs.h <<\_ACEOF
28479 #define HAVE_GLOBAL_HASH_MAP 1
28480 _ACEOF
28481
28482  else
28483
28484 cat >>confdefs.h <<\_ACEOF
28485 #define HAVE_GLOBAL_HASH_MAP 0
28486 _ACEOF
28487
28488  fi
28489
28490 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28491 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28492 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28493   echo $ECHO_N "(cached) $ECHO_C" >&6
28494 else
28495
28496   ac_ext=cc
28497 ac_cpp='$CXXCPP $CPPFLAGS'
28498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28501
28502   cat >conftest.$ac_ext <<_ACEOF
28503 /* confdefs.h.  */
28504 _ACEOF
28505 cat confdefs.h >>conftest.$ac_ext
28506 cat >>conftest.$ac_ext <<_ACEOF
28507 /* end confdefs.h.  */
28508 #include <ext/hash_set>
28509 #ifdef HAVE_NAMESPACES
28510 using namespace std;
28511 #endif
28512 int
28513 main ()
28514 {
28515 hash_set<int> t;
28516   ;
28517   return 0;
28518 }
28519 _ACEOF
28520 rm -f conftest.$ac_objext
28521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28522   (eval $ac_compile) 2>conftest.er1
28523   ac_status=$?
28524   grep -v '^ *+' conftest.er1 >conftest.err
28525   rm -f conftest.er1
28526   cat conftest.err >&5
28527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528   (exit $ac_status); } &&
28529          { ac_try='test -z "$ac_cxx_werror_flag"
28530                          || test ! -s conftest.err'
28531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28532   (eval $ac_try) 2>&5
28533   ac_status=$?
28534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535   (exit $ac_status); }; } &&
28536          { ac_try='test -s conftest.$ac_objext'
28537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28538   (eval $ac_try) 2>&5
28539   ac_status=$?
28540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541   (exit $ac_status); }; }; then
28542   ac_cv_cxx_have_std_ext_hash_set=yes
28543 else
28544   echo "$as_me: failed program was:" >&5
28545 sed 's/^/| /' conftest.$ac_ext >&5
28546
28547 ac_cv_cxx_have_std_ext_hash_set=no
28548 fi
28549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28550   ac_ext=c
28551 ac_cpp='$CPP $CPPFLAGS'
28552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28555
28556 fi
28557 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28558 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28559  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28560  then
28561
28562 cat >>confdefs.h <<\_ACEOF
28563 #define HAVE_STD_EXT_HASH_SET 1
28564 _ACEOF
28565
28566  else
28567
28568 cat >>confdefs.h <<\_ACEOF
28569 #define HAVE_STD_EXT_HASH_SET 0
28570 _ACEOF
28571
28572  fi
28573
28574  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28575 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28576 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28577   echo $ECHO_N "(cached) $ECHO_C" >&6
28578 else
28579
28580   ac_ext=cc
28581 ac_cpp='$CXXCPP $CPPFLAGS'
28582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28585
28586   cat >conftest.$ac_ext <<_ACEOF
28587 /* confdefs.h.  */
28588 _ACEOF
28589 cat confdefs.h >>conftest.$ac_ext
28590 cat >>conftest.$ac_ext <<_ACEOF
28591 /* end confdefs.h.  */
28592 #include <ext/hash_set>
28593 #ifdef HAVE_NAMESPACES
28594 using namespace __gnu_cxx;
28595 #endif
28596 int
28597 main ()
28598 {
28599 hash_set<int> t;
28600   ;
28601   return 0;
28602 }
28603 _ACEOF
28604 rm -f conftest.$ac_objext
28605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28606   (eval $ac_compile) 2>conftest.er1
28607   ac_status=$?
28608   grep -v '^ *+' conftest.er1 >conftest.err
28609   rm -f conftest.er1
28610   cat conftest.err >&5
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); } &&
28613          { ac_try='test -z "$ac_cxx_werror_flag"
28614                          || test ! -s conftest.err'
28615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616   (eval $ac_try) 2>&5
28617   ac_status=$?
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); }; } &&
28620          { ac_try='test -s conftest.$ac_objext'
28621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622   (eval $ac_try) 2>&5
28623   ac_status=$?
28624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625   (exit $ac_status); }; }; then
28626   ac_cv_cxx_have_gnu_ext_hash_set=yes
28627 else
28628   echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.$ac_ext >&5
28630
28631 ac_cv_cxx_have_gnu_ext_hash_set=no
28632 fi
28633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28634   ac_ext=c
28635 ac_cpp='$CPP $CPPFLAGS'
28636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28639
28640 fi
28641 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28642 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
28643  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28644  then
28645
28646 cat >>confdefs.h <<\_ACEOF
28647 #define HAVE_GNU_EXT_HASH_SET 1
28648 _ACEOF
28649
28650  else
28651
28652 cat >>confdefs.h <<\_ACEOF
28653 #define HAVE_GNU_EXT_HASH_SET 0
28654 _ACEOF
28655
28656  fi
28657
28658  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28659 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28660 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28661   echo $ECHO_N "(cached) $ECHO_C" >&6
28662 else
28663
28664   ac_ext=cc
28665 ac_cpp='$CXXCPP $CPPFLAGS'
28666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28669
28670   cat >conftest.$ac_ext <<_ACEOF
28671 /* confdefs.h.  */
28672 _ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h.  */
28676 #include <hash_set>
28677 int
28678 main ()
28679 {
28680 hash_set<int> t; return 0;
28681   ;
28682   return 0;
28683 }
28684 _ACEOF
28685 rm -f conftest.$ac_objext
28686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28687   (eval $ac_compile) 2>conftest.er1
28688   ac_status=$?
28689   grep -v '^ *+' conftest.er1 >conftest.err
28690   rm -f conftest.er1
28691   cat conftest.err >&5
28692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693   (exit $ac_status); } &&
28694          { ac_try='test -z "$ac_cxx_werror_flag"
28695                          || test ! -s conftest.err'
28696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28697   (eval $ac_try) 2>&5
28698   ac_status=$?
28699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700   (exit $ac_status); }; } &&
28701          { ac_try='test -s conftest.$ac_objext'
28702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28703   (eval $ac_try) 2>&5
28704   ac_status=$?
28705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706   (exit $ac_status); }; }; then
28707   ac_cv_cxx_have_global_hash_set=yes
28708 else
28709   echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.$ac_ext >&5
28711
28712 ac_cv_cxx_have_global_hash_set=no
28713 fi
28714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28715   ac_ext=c
28716 ac_cpp='$CPP $CPPFLAGS'
28717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28720
28721 fi
28722 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28723 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
28724  if test "$ac_cv_cxx_have_global_hash_set" = yes
28725  then
28726
28727 cat >>confdefs.h <<\_ACEOF
28728 #define HAVE_GLOBAL_HASH_SET 1
28729 _ACEOF
28730
28731  else
28732
28733 cat >>confdefs.h <<\_ACEOF
28734 #define HAVE_GLOBAL_HASH_SET 0
28735 _ACEOF
28736
28737  fi
28738
28739 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28740 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28741 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28742   echo $ECHO_N "(cached) $ECHO_C" >&6
28743 else
28744
28745   ac_ext=cc
28746 ac_cpp='$CXXCPP $CPPFLAGS'
28747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28750
28751   cat >conftest.$ac_ext <<_ACEOF
28752 /* confdefs.h.  */
28753 _ACEOF
28754 cat confdefs.h >>conftest.$ac_ext
28755 cat >>conftest.$ac_ext <<_ACEOF
28756 /* end confdefs.h.  */
28757 #include <iterator>
28758 #ifdef HAVE_NAMESPACES
28759 using namespace std;
28760 #endif
28761 int
28762 main ()
28763 {
28764 iterator<int,int,int> t; return 0;
28765   ;
28766   return 0;
28767 }
28768 _ACEOF
28769 rm -f conftest.$ac_objext
28770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28771   (eval $ac_compile) 2>conftest.er1
28772   ac_status=$?
28773   grep -v '^ *+' conftest.er1 >conftest.err
28774   rm -f conftest.er1
28775   cat conftest.err >&5
28776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777   (exit $ac_status); } &&
28778          { ac_try='test -z "$ac_cxx_werror_flag"
28779                          || test ! -s conftest.err'
28780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781   (eval $ac_try) 2>&5
28782   ac_status=$?
28783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); }; } &&
28785          { ac_try='test -s conftest.$ac_objext'
28786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28787   (eval $ac_try) 2>&5
28788   ac_status=$?
28789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790   (exit $ac_status); }; }; then
28791   ac_cv_cxx_have_std_iterator=yes
28792 else
28793   echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28795
28796 ac_cv_cxx_have_std_iterator=no
28797 fi
28798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28799   ac_ext=c
28800 ac_cpp='$CPP $CPPFLAGS'
28801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28804
28805
28806 fi
28807 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28808 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
28809 if test "$ac_cv_cxx_have_std_iterator" = yes
28810 then
28811
28812 cat >>confdefs.h <<\_ACEOF
28813 #define HAVE_STD_ITERATOR 1
28814 _ACEOF
28815
28816 else
28817
28818 cat >>confdefs.h <<\_ACEOF
28819 #define HAVE_STD_ITERATOR 0
28820 _ACEOF
28821
28822 fi
28823
28824 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28825 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28826 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28827   echo $ECHO_N "(cached) $ECHO_C" >&6
28828 else
28829
28830   ac_ext=cc
28831 ac_cpp='$CXXCPP $CPPFLAGS'
28832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28835
28836   cat >conftest.$ac_ext <<_ACEOF
28837 /* confdefs.h.  */
28838 _ACEOF
28839 cat confdefs.h >>conftest.$ac_ext
28840 cat >>conftest.$ac_ext <<_ACEOF
28841 /* end confdefs.h.  */
28842 #include <iterator>
28843 #ifdef HAVE_NAMESPACES
28844 using namespace std;
28845 #endif
28846 int
28847 main ()
28848 {
28849 bidirectional_iterator<int,int> t; return 0;
28850   ;
28851   return 0;
28852 }
28853 _ACEOF
28854 rm -f conftest.$ac_objext
28855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28856   (eval $ac_compile) 2>conftest.er1
28857   ac_status=$?
28858   grep -v '^ *+' conftest.er1 >conftest.err
28859   rm -f conftest.er1
28860   cat conftest.err >&5
28861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862   (exit $ac_status); } &&
28863          { ac_try='test -z "$ac_cxx_werror_flag"
28864                          || test ! -s conftest.err'
28865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866   (eval $ac_try) 2>&5
28867   ac_status=$?
28868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869   (exit $ac_status); }; } &&
28870          { ac_try='test -s conftest.$ac_objext'
28871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28872   (eval $ac_try) 2>&5
28873   ac_status=$?
28874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875   (exit $ac_status); }; }; then
28876   ac_cv_cxx_have_bi_iterator=yes
28877 else
28878   echo "$as_me: failed program was:" >&5
28879 sed 's/^/| /' conftest.$ac_ext >&5
28880
28881 ac_cv_cxx_have_bi_iterator=no
28882 fi
28883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28884   ac_ext=c
28885 ac_cpp='$CPP $CPPFLAGS'
28886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28889
28890
28891 fi
28892 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28893 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
28894 if test "$ac_cv_cxx_have_bi_iterator" = yes
28895 then
28896
28897 cat >>confdefs.h <<\_ACEOF
28898 #define HAVE_BI_ITERATOR 1
28899 _ACEOF
28900
28901 else
28902
28903 cat >>confdefs.h <<\_ACEOF
28904 #define HAVE_BI_ITERATOR 0
28905 _ACEOF
28906
28907 fi
28908
28909 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28910 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28911 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28912   echo $ECHO_N "(cached) $ECHO_C" >&6
28913 else
28914
28915   ac_ext=cc
28916 ac_cpp='$CXXCPP $CPPFLAGS'
28917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28920
28921   cat >conftest.$ac_ext <<_ACEOF
28922 /* confdefs.h.  */
28923 _ACEOF
28924 cat confdefs.h >>conftest.$ac_ext
28925 cat >>conftest.$ac_ext <<_ACEOF
28926 /* end confdefs.h.  */
28927 #include <iterator>
28928 #ifdef HAVE_NAMESPACES
28929 using namespace std;
28930 #endif
28931 int
28932 main ()
28933 {
28934 forward_iterator<int,int> t; return 0;
28935   ;
28936   return 0;
28937 }
28938 _ACEOF
28939 rm -f conftest.$ac_objext
28940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28941   (eval $ac_compile) 2>conftest.er1
28942   ac_status=$?
28943   grep -v '^ *+' conftest.er1 >conftest.err
28944   rm -f conftest.er1
28945   cat conftest.err >&5
28946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947   (exit $ac_status); } &&
28948          { ac_try='test -z "$ac_cxx_werror_flag"
28949                          || test ! -s conftest.err'
28950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28951   (eval $ac_try) 2>&5
28952   ac_status=$?
28953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954   (exit $ac_status); }; } &&
28955          { ac_try='test -s conftest.$ac_objext'
28956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28957   (eval $ac_try) 2>&5
28958   ac_status=$?
28959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960   (exit $ac_status); }; }; then
28961   ac_cv_cxx_have_fwd_iterator=yes
28962 else
28963   echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28965
28966 ac_cv_cxx_have_fwd_iterator=no
28967 fi
28968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28969   ac_ext=c
28970 ac_cpp='$CPP $CPPFLAGS'
28971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28974
28975
28976 fi
28977 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28978 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
28979 if test "$ac_cv_cxx_have_fwd_iterator" = yes
28980 then
28981
28982 cat >>confdefs.h <<\_ACEOF
28983 #define HAVE_FWD_ITERATOR 1
28984 _ACEOF
28985
28986 else
28987
28988 cat >>confdefs.h <<\_ACEOF
28989 #define HAVE_FWD_ITERATOR 0
28990 _ACEOF
28991
28992 fi
28993
28994
28995 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28996 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28997 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28998   echo $ECHO_N "(cached) $ECHO_C" >&6
28999 else
29000   ac_ext=cc
29001 ac_cpp='$CXXCPP $CPPFLAGS'
29002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29005
29006    cat >conftest.$ac_ext <<_ACEOF
29007 /* confdefs.h.  */
29008 _ACEOF
29009 cat confdefs.h >>conftest.$ac_ext
29010 cat >>conftest.$ac_ext <<_ACEOF
29011 /* end confdefs.h.  */
29012 #include <math.h>
29013 int
29014 main ()
29015 {
29016 float f; isnan(f);
29017   ;
29018   return 0;
29019 }
29020 _ACEOF
29021 rm -f conftest.$ac_objext
29022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29023   (eval $ac_compile) 2>conftest.er1
29024   ac_status=$?
29025   grep -v '^ *+' conftest.er1 >conftest.err
29026   rm -f conftest.er1
29027   cat conftest.err >&5
29028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029   (exit $ac_status); } &&
29030          { ac_try='test -z "$ac_cxx_werror_flag"
29031                          || test ! -s conftest.err'
29032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29033   (eval $ac_try) 2>&5
29034   ac_status=$?
29035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036   (exit $ac_status); }; } &&
29037          { ac_try='test -s conftest.$ac_objext'
29038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29039   (eval $ac_try) 2>&5
29040   ac_status=$?
29041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042   (exit $ac_status); }; }; then
29043   ac_cv_func_isnan_in_math_h=yes
29044 else
29045   echo "$as_me: failed program was:" >&5
29046 sed 's/^/| /' conftest.$ac_ext >&5
29047
29048 ac_cv_func_isnan_in_math_h=no
29049 fi
29050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29051   ac_ext=c
29052 ac_cpp='$CPP $CPPFLAGS'
29053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29056
29057 fi
29058 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29059 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29060
29061
29062 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29063
29064 cat >>confdefs.h <<\_ACEOF
29065 #define HAVE_ISNAN_IN_MATH_H 1
29066 _ACEOF
29067
29068 fi
29069
29070 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29071 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29072 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29073   echo $ECHO_N "(cached) $ECHO_C" >&6
29074 else
29075   ac_ext=cc
29076 ac_cpp='$CXXCPP $CPPFLAGS'
29077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29080
29081    cat >conftest.$ac_ext <<_ACEOF
29082 /* confdefs.h.  */
29083 _ACEOF
29084 cat confdefs.h >>conftest.$ac_ext
29085 cat >>conftest.$ac_ext <<_ACEOF
29086 /* end confdefs.h.  */
29087 #include <cmath>
29088 int
29089 main ()
29090 {
29091 float f; isnan(f);
29092   ;
29093   return 0;
29094 }
29095 _ACEOF
29096 rm -f conftest.$ac_objext
29097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29098   (eval $ac_compile) 2>conftest.er1
29099   ac_status=$?
29100   grep -v '^ *+' conftest.er1 >conftest.err
29101   rm -f conftest.er1
29102   cat conftest.err >&5
29103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104   (exit $ac_status); } &&
29105          { ac_try='test -z "$ac_cxx_werror_flag"
29106                          || test ! -s conftest.err'
29107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108   (eval $ac_try) 2>&5
29109   ac_status=$?
29110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111   (exit $ac_status); }; } &&
29112          { ac_try='test -s conftest.$ac_objext'
29113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114   (eval $ac_try) 2>&5
29115   ac_status=$?
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); }; }; then
29118   ac_cv_func_isnan_in_cmath=yes
29119 else
29120   echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29122
29123 ac_cv_func_isnan_in_cmath=no
29124 fi
29125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29126   ac_ext=c
29127 ac_cpp='$CPP $CPPFLAGS'
29128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29131
29132 fi
29133 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29134 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29135
29136 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29137
29138 cat >>confdefs.h <<\_ACEOF
29139 #define HAVE_ISNAN_IN_CMATH 1
29140 _ACEOF
29141
29142 fi
29143
29144 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29145 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29146 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29147   echo $ECHO_N "(cached) $ECHO_C" >&6
29148 else
29149   ac_ext=cc
29150 ac_cpp='$CXXCPP $CPPFLAGS'
29151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29154
29155    cat >conftest.$ac_ext <<_ACEOF
29156 /* confdefs.h.  */
29157 _ACEOF
29158 cat confdefs.h >>conftest.$ac_ext
29159 cat >>conftest.$ac_ext <<_ACEOF
29160 /* end confdefs.h.  */
29161 #include <cmath>
29162 int
29163 main ()
29164 {
29165 float f; std::isnan(f);
29166   ;
29167   return 0;
29168 }
29169 _ACEOF
29170 rm -f conftest.$ac_objext
29171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29172   (eval $ac_compile) 2>conftest.er1
29173   ac_status=$?
29174   grep -v '^ *+' conftest.er1 >conftest.err
29175   rm -f conftest.er1
29176   cat conftest.err >&5
29177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178   (exit $ac_status); } &&
29179          { ac_try='test -z "$ac_cxx_werror_flag"
29180                          || test ! -s conftest.err'
29181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29182   (eval $ac_try) 2>&5
29183   ac_status=$?
29184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185   (exit $ac_status); }; } &&
29186          { ac_try='test -s conftest.$ac_objext'
29187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29188   (eval $ac_try) 2>&5
29189   ac_status=$?
29190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191   (exit $ac_status); }; }; then
29192   ac_cv_func_std_isnan_in_cmath=yes
29193 else
29194   echo "$as_me: failed program was:" >&5
29195 sed 's/^/| /' conftest.$ac_ext >&5
29196
29197 ac_cv_func_std_isnan_in_cmath=no
29198 fi
29199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29200   ac_ext=c
29201 ac_cpp='$CPP $CPPFLAGS'
29202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29205
29206 fi
29207 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29208 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29209
29210 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29211
29212 cat >>confdefs.h <<\_ACEOF
29213 #define HAVE_STD_ISNAN_IN_CMATH 1
29214 _ACEOF
29215
29216 fi
29217
29218
29219 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29220 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29221 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29222   echo $ECHO_N "(cached) $ECHO_C" >&6
29223 else
29224   ac_ext=cc
29225 ac_cpp='$CXXCPP $CPPFLAGS'
29226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29229
29230    cat >conftest.$ac_ext <<_ACEOF
29231 /* confdefs.h.  */
29232 _ACEOF
29233 cat confdefs.h >>conftest.$ac_ext
29234 cat >>conftest.$ac_ext <<_ACEOF
29235 /* end confdefs.h.  */
29236 #include <math.h>
29237 int
29238 main ()
29239 {
29240 float f; isinf(f);
29241   ;
29242   return 0;
29243 }
29244 _ACEOF
29245 rm -f conftest.$ac_objext
29246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29247   (eval $ac_compile) 2>conftest.er1
29248   ac_status=$?
29249   grep -v '^ *+' conftest.er1 >conftest.err
29250   rm -f conftest.er1
29251   cat conftest.err >&5
29252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253   (exit $ac_status); } &&
29254          { ac_try='test -z "$ac_cxx_werror_flag"
29255                          || test ! -s conftest.err'
29256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29257   (eval $ac_try) 2>&5
29258   ac_status=$?
29259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260   (exit $ac_status); }; } &&
29261          { ac_try='test -s conftest.$ac_objext'
29262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263   (eval $ac_try) 2>&5
29264   ac_status=$?
29265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266   (exit $ac_status); }; }; then
29267   ac_cv_func_isinf_in_math_h=yes
29268 else
29269   echo "$as_me: failed program was:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29271
29272 ac_cv_func_isinf_in_math_h=no
29273 fi
29274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29275   ac_ext=c
29276 ac_cpp='$CPP $CPPFLAGS'
29277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29280
29281 fi
29282 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29283 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29284
29285 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29286
29287 cat >>confdefs.h <<\_ACEOF
29288 #define HAVE_ISINF_IN_MATH_H 1
29289 _ACEOF
29290
29291 fi
29292
29293 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29294 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29295 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29296   echo $ECHO_N "(cached) $ECHO_C" >&6
29297 else
29298   ac_ext=cc
29299 ac_cpp='$CXXCPP $CPPFLAGS'
29300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29303
29304    cat >conftest.$ac_ext <<_ACEOF
29305 /* confdefs.h.  */
29306 _ACEOF
29307 cat confdefs.h >>conftest.$ac_ext
29308 cat >>conftest.$ac_ext <<_ACEOF
29309 /* end confdefs.h.  */
29310 #include <cmath>
29311 int
29312 main ()
29313 {
29314 float f; isinf(f);
29315   ;
29316   return 0;
29317 }
29318 _ACEOF
29319 rm -f conftest.$ac_objext
29320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29321   (eval $ac_compile) 2>conftest.er1
29322   ac_status=$?
29323   grep -v '^ *+' conftest.er1 >conftest.err
29324   rm -f conftest.er1
29325   cat conftest.err >&5
29326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327   (exit $ac_status); } &&
29328          { ac_try='test -z "$ac_cxx_werror_flag"
29329                          || test ! -s conftest.err'
29330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29331   (eval $ac_try) 2>&5
29332   ac_status=$?
29333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334   (exit $ac_status); }; } &&
29335          { ac_try='test -s conftest.$ac_objext'
29336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29337   (eval $ac_try) 2>&5
29338   ac_status=$?
29339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340   (exit $ac_status); }; }; then
29341   ac_cv_func_isinf_in_cmath=yes
29342 else
29343   echo "$as_me: failed program was:" >&5
29344 sed 's/^/| /' conftest.$ac_ext >&5
29345
29346 ac_cv_func_isinf_in_cmath=no
29347 fi
29348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29349   ac_ext=c
29350 ac_cpp='$CPP $CPPFLAGS'
29351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29354
29355 fi
29356 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29357 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29358
29359 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29360
29361 cat >>confdefs.h <<\_ACEOF
29362 #define HAVE_ISINF_IN_CMATH 1
29363 _ACEOF
29364
29365 fi
29366
29367 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29368 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29369 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29370   echo $ECHO_N "(cached) $ECHO_C" >&6
29371 else
29372   ac_ext=cc
29373 ac_cpp='$CXXCPP $CPPFLAGS'
29374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29377
29378    cat >conftest.$ac_ext <<_ACEOF
29379 /* confdefs.h.  */
29380 _ACEOF
29381 cat confdefs.h >>conftest.$ac_ext
29382 cat >>conftest.$ac_ext <<_ACEOF
29383 /* end confdefs.h.  */
29384 #include <cmath>
29385 int
29386 main ()
29387 {
29388 float f; std::isinf(f)}
29389   ;
29390   return 0;
29391 }
29392 _ACEOF
29393 rm -f conftest.$ac_objext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29395   (eval $ac_compile) 2>conftest.er1
29396   ac_status=$?
29397   grep -v '^ *+' conftest.er1 >conftest.err
29398   rm -f conftest.er1
29399   cat conftest.err >&5
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); } &&
29402          { ac_try='test -z "$ac_cxx_werror_flag"
29403                          || test ! -s conftest.err'
29404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405   (eval $ac_try) 2>&5
29406   ac_status=$?
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); }; } &&
29409          { ac_try='test -s conftest.$ac_objext'
29410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411   (eval $ac_try) 2>&5
29412   ac_status=$?
29413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414   (exit $ac_status); }; }; then
29415   ac_cv_func_std_isinf_in_cmath=yes
29416 else
29417   echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29419
29420 ac_cv_func_std_isinf_in_cmath=no
29421 fi
29422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29423   ac_ext=c
29424 ac_cpp='$CPP $CPPFLAGS'
29425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29428
29429 fi
29430 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29431 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29432
29433 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29434
29435 cat >>confdefs.h <<\_ACEOF
29436 #define HAVE_STD_ISINF_IN_CMATH 1
29437 _ACEOF
29438
29439 fi
29440
29441 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29442 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29443 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29444   echo $ECHO_N "(cached) $ECHO_C" >&6
29445 else
29446   ac_ext=cc
29447 ac_cpp='$CXXCPP $CPPFLAGS'
29448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29451
29452    cat >conftest.$ac_ext <<_ACEOF
29453 /* confdefs.h.  */
29454 _ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h.  */
29458 #include <ieeefp.h>
29459 int
29460 main ()
29461 {
29462 float f; finite(f);
29463   ;
29464   return 0;
29465 }
29466 _ACEOF
29467 rm -f conftest.$ac_objext
29468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29469   (eval $ac_compile) 2>conftest.er1
29470   ac_status=$?
29471   grep -v '^ *+' conftest.er1 >conftest.err
29472   rm -f conftest.er1
29473   cat conftest.err >&5
29474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475   (exit $ac_status); } &&
29476          { ac_try='test -z "$ac_cxx_werror_flag"
29477                          || test ! -s conftest.err'
29478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29479   (eval $ac_try) 2>&5
29480   ac_status=$?
29481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482   (exit $ac_status); }; } &&
29483          { ac_try='test -s conftest.$ac_objext'
29484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29485   (eval $ac_try) 2>&5
29486   ac_status=$?
29487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488   (exit $ac_status); }; }; then
29489   ac_cv_func_finite_in_ieeefp_h=yes
29490 else
29491   echo "$as_me: failed program was:" >&5
29492 sed 's/^/| /' conftest.$ac_ext >&5
29493
29494 ac_cv_func_finite_in_ieeefp_h=no
29495 fi
29496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29497   ac_ext=c
29498 ac_cpp='$CPP $CPPFLAGS'
29499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29502
29503 fi
29504 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29505 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29506
29507 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29508
29509 cat >>confdefs.h <<\_ACEOF
29510 #define HAVE_FINITE_IN_IEEEFP_H 1
29511 _ACEOF
29512
29513 fi
29514
29515
29516
29517
29518
29519 for ac_header in stdlib.h unistd.h
29520 do
29521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29523   echo "$as_me:$LINENO: checking for $ac_header" >&5
29524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29526   echo $ECHO_N "(cached) $ECHO_C" >&6
29527 fi
29528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29530 else
29531   # Is the header compilable?
29532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29534 cat >conftest.$ac_ext <<_ACEOF
29535 /* confdefs.h.  */
29536 _ACEOF
29537 cat confdefs.h >>conftest.$ac_ext
29538 cat >>conftest.$ac_ext <<_ACEOF
29539 /* end confdefs.h.  */
29540 $ac_includes_default
29541 #include <$ac_header>
29542 _ACEOF
29543 rm -f conftest.$ac_objext
29544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29545   (eval $ac_compile) 2>conftest.er1
29546   ac_status=$?
29547   grep -v '^ *+' conftest.er1 >conftest.err
29548   rm -f conftest.er1
29549   cat conftest.err >&5
29550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551   (exit $ac_status); } &&
29552          { ac_try='test -z "$ac_c_werror_flag"
29553                          || test ! -s conftest.err'
29554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555   (eval $ac_try) 2>&5
29556   ac_status=$?
29557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558   (exit $ac_status); }; } &&
29559          { ac_try='test -s conftest.$ac_objext'
29560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29561   (eval $ac_try) 2>&5
29562   ac_status=$?
29563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564   (exit $ac_status); }; }; then
29565   ac_header_compiler=yes
29566 else
29567   echo "$as_me: failed program was:" >&5
29568 sed 's/^/| /' conftest.$ac_ext >&5
29569
29570 ac_header_compiler=no
29571 fi
29572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29574 echo "${ECHO_T}$ac_header_compiler" >&6
29575
29576 # Is the header present?
29577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29579 cat >conftest.$ac_ext <<_ACEOF
29580 /* confdefs.h.  */
29581 _ACEOF
29582 cat confdefs.h >>conftest.$ac_ext
29583 cat >>conftest.$ac_ext <<_ACEOF
29584 /* end confdefs.h.  */
29585 #include <$ac_header>
29586 _ACEOF
29587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29589   ac_status=$?
29590   grep -v '^ *+' conftest.er1 >conftest.err
29591   rm -f conftest.er1
29592   cat conftest.err >&5
29593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594   (exit $ac_status); } >/dev/null; then
29595   if test -s conftest.err; then
29596     ac_cpp_err=$ac_c_preproc_warn_flag
29597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29598   else
29599     ac_cpp_err=
29600   fi
29601 else
29602   ac_cpp_err=yes
29603 fi
29604 if test -z "$ac_cpp_err"; then
29605   ac_header_preproc=yes
29606 else
29607   echo "$as_me: failed program was:" >&5
29608 sed 's/^/| /' conftest.$ac_ext >&5
29609
29610   ac_header_preproc=no
29611 fi
29612 rm -f conftest.err conftest.$ac_ext
29613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29614 echo "${ECHO_T}$ac_header_preproc" >&6
29615
29616 # So?  What about this header?
29617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29618   yes:no: )
29619     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29623     ac_header_preproc=yes
29624     ;;
29625   no:yes:* )
29626     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29628     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29629 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29630     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29632     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29633 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29636     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29638     (
29639       cat <<\_ASBOX
29640 ## ----------------------------------- ##
29641 ## Report this to llvmbugs@cs.uiuc.edu ##
29642 ## ----------------------------------- ##
29643 _ASBOX
29644     ) |
29645       sed "s/^/$as_me: WARNING:     /" >&2
29646     ;;
29647 esac
29648 echo "$as_me:$LINENO: checking for $ac_header" >&5
29649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29651   echo $ECHO_N "(cached) $ECHO_C" >&6
29652 else
29653   eval "$as_ac_Header=\$ac_header_preproc"
29654 fi
29655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29657
29658 fi
29659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29660   cat >>confdefs.h <<_ACEOF
29661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29662 _ACEOF
29663
29664 fi
29665
29666 done
29667
29668
29669 for ac_func in getpagesize
29670 do
29671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29672 echo "$as_me:$LINENO: checking for $ac_func" >&5
29673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29674 if eval "test \"\${$as_ac_var+set}\" = set"; then
29675   echo $ECHO_N "(cached) $ECHO_C" >&6
29676 else
29677   cat >conftest.$ac_ext <<_ACEOF
29678 /* confdefs.h.  */
29679 _ACEOF
29680 cat confdefs.h >>conftest.$ac_ext
29681 cat >>conftest.$ac_ext <<_ACEOF
29682 /* end confdefs.h.  */
29683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29685 #define $ac_func innocuous_$ac_func
29686
29687 /* System header to define __stub macros and hopefully few prototypes,
29688     which can conflict with char $ac_func (); below.
29689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29690     <limits.h> exists even on freestanding compilers.  */
29691
29692 #ifdef __STDC__
29693 # include <limits.h>
29694 #else
29695 # include <assert.h>
29696 #endif
29697
29698 #undef $ac_func
29699
29700 /* Override any gcc2 internal prototype to avoid an error.  */
29701 #ifdef __cplusplus
29702 extern "C"
29703 {
29704 #endif
29705 /* We use char because int might match the return type of a gcc2
29706    builtin and then its argument prototype would still apply.  */
29707 char $ac_func ();
29708 /* The GNU C library defines this for functions which it implements
29709     to always fail with ENOSYS.  Some functions are actually named
29710     something starting with __ and the normal name is an alias.  */
29711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29712 choke me
29713 #else
29714 char (*f) () = $ac_func;
29715 #endif
29716 #ifdef __cplusplus
29717 }
29718 #endif
29719
29720 int
29721 main ()
29722 {
29723 return f != $ac_func;
29724   ;
29725   return 0;
29726 }
29727 _ACEOF
29728 rm -f conftest.$ac_objext conftest$ac_exeext
29729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29730   (eval $ac_link) 2>conftest.er1
29731   ac_status=$?
29732   grep -v '^ *+' conftest.er1 >conftest.err
29733   rm -f conftest.er1
29734   cat conftest.err >&5
29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); } &&
29737          { ac_try='test -z "$ac_c_werror_flag"
29738                          || test ! -s conftest.err'
29739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29740   (eval $ac_try) 2>&5
29741   ac_status=$?
29742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743   (exit $ac_status); }; } &&
29744          { ac_try='test -s conftest$ac_exeext'
29745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29746   (eval $ac_try) 2>&5
29747   ac_status=$?
29748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749   (exit $ac_status); }; }; then
29750   eval "$as_ac_var=yes"
29751 else
29752   echo "$as_me: failed program was:" >&5
29753 sed 's/^/| /' conftest.$ac_ext >&5
29754
29755 eval "$as_ac_var=no"
29756 fi
29757 rm -f conftest.err conftest.$ac_objext \
29758       conftest$ac_exeext conftest.$ac_ext
29759 fi
29760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29762 if test `eval echo '${'$as_ac_var'}'` = yes; then
29763   cat >>confdefs.h <<_ACEOF
29764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29765 _ACEOF
29766
29767 fi
29768 done
29769
29770 echo "$as_me:$LINENO: checking for working mmap" >&5
29771 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29772 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29773   echo $ECHO_N "(cached) $ECHO_C" >&6
29774 else
29775   if test "$cross_compiling" = yes; then
29776   ac_cv_func_mmap_fixed_mapped=no
29777 else
29778   cat >conftest.$ac_ext <<_ACEOF
29779 /* confdefs.h.  */
29780 _ACEOF
29781 cat confdefs.h >>conftest.$ac_ext
29782 cat >>conftest.$ac_ext <<_ACEOF
29783 /* end confdefs.h.  */
29784 $ac_includes_default
29785 /* malloc might have been renamed as rpl_malloc. */
29786 #undef malloc
29787
29788 /* Thanks to Mike Haertel and Jim Avera for this test.
29789    Here is a matrix of mmap possibilities:
29790         mmap private not fixed
29791         mmap private fixed at somewhere currently unmapped
29792         mmap private fixed at somewhere already mapped
29793         mmap shared not fixed
29794         mmap shared fixed at somewhere currently unmapped
29795         mmap shared fixed at somewhere already mapped
29796    For private mappings, we should verify that changes cannot be read()
29797    back from the file, nor mmap's back from the file at a different
29798    address.  (There have been systems where private was not correctly
29799    implemented like the infamous i386 svr4.0, and systems where the
29800    VM page cache was not coherent with the file system buffer cache
29801    like early versions of FreeBSD and possibly contemporary NetBSD.)
29802    For shared mappings, we should conversely verify that changes get
29803    propagated back to all the places they're supposed to be.
29804
29805    Grep wants private fixed already mapped.
29806    The main things grep needs to know about mmap are:
29807    * does it exist and is it safe to write into the mmap'd area
29808    * how to use it (BSD variants)  */
29809
29810 #include <fcntl.h>
29811 #include <sys/mman.h>
29812
29813 #if !STDC_HEADERS && !HAVE_STDLIB_H
29814 char *malloc ();
29815 #endif
29816
29817 /* This mess was copied from the GNU getpagesize.h.  */
29818 #if !HAVE_GETPAGESIZE
29819 /* Assume that all systems that can run configure have sys/param.h.  */
29820 # if !HAVE_SYS_PARAM_H
29821 #  define HAVE_SYS_PARAM_H 1
29822 # endif
29823
29824 # ifdef _SC_PAGESIZE
29825 #  define getpagesize() sysconf(_SC_PAGESIZE)
29826 # else /* no _SC_PAGESIZE */
29827 #  if HAVE_SYS_PARAM_H
29828 #   include <sys/param.h>
29829 #   ifdef EXEC_PAGESIZE
29830 #    define getpagesize() EXEC_PAGESIZE
29831 #   else /* no EXEC_PAGESIZE */
29832 #    ifdef NBPG
29833 #     define getpagesize() NBPG * CLSIZE
29834 #     ifndef CLSIZE
29835 #      define CLSIZE 1
29836 #     endif /* no CLSIZE */
29837 #    else /* no NBPG */
29838 #     ifdef NBPC
29839 #      define getpagesize() NBPC
29840 #     else /* no NBPC */
29841 #      ifdef PAGESIZE
29842 #       define getpagesize() PAGESIZE
29843 #      endif /* PAGESIZE */
29844 #     endif /* no NBPC */
29845 #    endif /* no NBPG */
29846 #   endif /* no EXEC_PAGESIZE */
29847 #  else /* no HAVE_SYS_PARAM_H */
29848 #   define getpagesize() 8192   /* punt totally */
29849 #  endif /* no HAVE_SYS_PARAM_H */
29850 # endif /* no _SC_PAGESIZE */
29851
29852 #endif /* no HAVE_GETPAGESIZE */
29853
29854 int
29855 main ()
29856 {
29857   char *data, *data2, *data3;
29858   int i, pagesize;
29859   int fd;
29860
29861   pagesize = getpagesize ();
29862
29863   /* First, make a file with some known garbage in it. */
29864   data = (char *) malloc (pagesize);
29865   if (!data)
29866     exit (1);
29867   for (i = 0; i < pagesize; ++i)
29868     *(data + i) = rand ();
29869   umask (0);
29870   fd = creat ("conftest.mmap", 0600);
29871   if (fd < 0)
29872     exit (1);
29873   if (write (fd, data, pagesize) != pagesize)
29874     exit (1);
29875   close (fd);
29876
29877   /* Next, try to mmap the file at a fixed address which already has
29878      something else allocated at it.  If we can, also make sure that
29879      we see the same garbage.  */
29880   fd = open ("conftest.mmap", O_RDWR);
29881   if (fd < 0)
29882     exit (1);
29883   data2 = (char *) malloc (2 * pagesize);
29884   if (!data2)
29885     exit (1);
29886   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
29887   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29888                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
29889     exit (1);
29890   for (i = 0; i < pagesize; ++i)
29891     if (*(data + i) != *(data2 + i))
29892       exit (1);
29893
29894   /* Finally, make sure that changes to the mapped area do not
29895      percolate back to the file as seen by read().  (This is a bug on
29896      some variants of i386 svr4.0.)  */
29897   for (i = 0; i < pagesize; ++i)
29898     *(data2 + i) = *(data2 + i) + 1;
29899   data3 = (char *) malloc (pagesize);
29900   if (!data3)
29901     exit (1);
29902   if (read (fd, data3, pagesize) != pagesize)
29903     exit (1);
29904   for (i = 0; i < pagesize; ++i)
29905     if (*(data + i) != *(data3 + i))
29906       exit (1);
29907   close (fd);
29908   exit (0);
29909 }
29910 _ACEOF
29911 rm -f conftest$ac_exeext
29912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29913   (eval $ac_link) 2>&5
29914   ac_status=$?
29915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29918   (eval $ac_try) 2>&5
29919   ac_status=$?
29920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921   (exit $ac_status); }; }; then
29922   ac_cv_func_mmap_fixed_mapped=yes
29923 else
29924   echo "$as_me: program exited with status $ac_status" >&5
29925 echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.$ac_ext >&5
29927
29928 ( exit $ac_status )
29929 ac_cv_func_mmap_fixed_mapped=no
29930 fi
29931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29932 fi
29933 fi
29934 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29935 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29936 if test $ac_cv_func_mmap_fixed_mapped = yes; then
29937
29938 cat >>confdefs.h <<\_ACEOF
29939 #define HAVE_MMAP 1
29940 _ACEOF
29941
29942 fi
29943 rm -f conftest.mmap
29944
29945 echo "$as_me:$LINENO: checking for mmap of files" >&5
29946 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29947 if test "${ac_cv_func_mmap_file+set}" = set; then
29948   echo $ECHO_N "(cached) $ECHO_C" >&6
29949 else
29950    ac_ext=c
29951 ac_cpp='$CPP $CPPFLAGS'
29952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29955
29956   if test "$cross_compiling" = yes; then
29957   ac_cv_func_mmap_file=no
29958 else
29959   cat >conftest.$ac_ext <<_ACEOF
29960
29961     /* confdefs.h.  */
29962 _ACEOF
29963 cat confdefs.h >>conftest.$ac_ext
29964 cat >>conftest.$ac_ext <<_ACEOF
29965 /* end confdefs.h.  */
29966
29967 #include <sys/types.h>
29968 #include <sys/mman.h>
29969 #include <fcntl.h>
29970
29971 int
29972 main ()
29973 {
29974
29975   int fd;
29976   fd = creat ("foo",0777);
29977   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29978   unlink ("foo");
29979   return (fd != (int) MAP_FAILED);
29980   ;
29981   return 0;
29982 }
29983 _ACEOF
29984 rm -f conftest$ac_exeext
29985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29986   (eval $ac_link) 2>&5
29987   ac_status=$?
29988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29991   (eval $ac_try) 2>&5
29992   ac_status=$?
29993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29994   (exit $ac_status); }; }; then
29995   ac_cv_func_mmap_file=yes
29996 else
29997   echo "$as_me: program exited with status $ac_status" >&5
29998 echo "$as_me: failed program was:" >&5
29999 sed 's/^/| /' conftest.$ac_ext >&5
30000
30001 ( exit $ac_status )
30002 ac_cv_func_mmap_file=no
30003 fi
30004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30005 fi
30006   ac_ext=c
30007 ac_cpp='$CPP $CPPFLAGS'
30008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30011
30012
30013 fi
30014 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30015 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30016 if test "$ac_cv_func_mmap_file" = yes; then
30017
30018 cat >>confdefs.h <<\_ACEOF
30019 #define HAVE_MMAP_FILE
30020 _ACEOF
30021
30022    MMAP_FILE=yes
30023
30024 fi
30025
30026 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30027 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30028 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30029   echo $ECHO_N "(cached) $ECHO_C" >&6
30030 else
30031   if test "$llvm_cv_os_type" = "Interix" ; then
30032    ac_cv_need_dev_zero_for_mmap=yes
30033  else
30034    ac_cv_need_dev_zero_for_mmap=no
30035  fi
30036
30037 fi
30038 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30039 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30040 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30041
30042 cat >>confdefs.h <<\_ACEOF
30043 #define NEED_DEV_ZERO_FOR_MMAP 1
30044 _ACEOF
30045
30046 fi
30047 echo "$as_me:$LINENO: checking for mprotect" >&5
30048 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30049 if test "${ac_cv_func_mprotect+set}" = set; then
30050   echo $ECHO_N "(cached) $ECHO_C" >&6
30051 else
30052   cat >conftest.$ac_ext <<_ACEOF
30053 /* confdefs.h.  */
30054 _ACEOF
30055 cat confdefs.h >>conftest.$ac_ext
30056 cat >>conftest.$ac_ext <<_ACEOF
30057 /* end confdefs.h.  */
30058 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30060 #define mprotect innocuous_mprotect
30061
30062 /* System header to define __stub macros and hopefully few prototypes,
30063     which can conflict with char mprotect (); below.
30064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30065     <limits.h> exists even on freestanding compilers.  */
30066
30067 #ifdef __STDC__
30068 # include <limits.h>
30069 #else
30070 # include <assert.h>
30071 #endif
30072
30073 #undef mprotect
30074
30075 /* Override any gcc2 internal prototype to avoid an error.  */
30076 #ifdef __cplusplus
30077 extern "C"
30078 {
30079 #endif
30080 /* We use char because int might match the return type of a gcc2
30081    builtin and then its argument prototype would still apply.  */
30082 char mprotect ();
30083 /* The GNU C library defines this for functions which it implements
30084     to always fail with ENOSYS.  Some functions are actually named
30085     something starting with __ and the normal name is an alias.  */
30086 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30087 choke me
30088 #else
30089 char (*f) () = mprotect;
30090 #endif
30091 #ifdef __cplusplus
30092 }
30093 #endif
30094
30095 int
30096 main ()
30097 {
30098 return f != mprotect;
30099   ;
30100   return 0;
30101 }
30102 _ACEOF
30103 rm -f conftest.$ac_objext conftest$ac_exeext
30104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30105   (eval $ac_link) 2>conftest.er1
30106   ac_status=$?
30107   grep -v '^ *+' conftest.er1 >conftest.err
30108   rm -f conftest.er1
30109   cat conftest.err >&5
30110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111   (exit $ac_status); } &&
30112          { ac_try='test -z "$ac_c_werror_flag"
30113                          || test ! -s conftest.err'
30114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30115   (eval $ac_try) 2>&5
30116   ac_status=$?
30117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118   (exit $ac_status); }; } &&
30119          { ac_try='test -s conftest$ac_exeext'
30120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30121   (eval $ac_try) 2>&5
30122   ac_status=$?
30123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124   (exit $ac_status); }; }; then
30125   ac_cv_func_mprotect=yes
30126 else
30127   echo "$as_me: failed program was:" >&5
30128 sed 's/^/| /' conftest.$ac_ext >&5
30129
30130 ac_cv_func_mprotect=no
30131 fi
30132 rm -f conftest.err conftest.$ac_objext \
30133       conftest$ac_exeext conftest.$ac_ext
30134 fi
30135 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30136 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30137 if test $ac_cv_func_mprotect = yes; then
30138   :
30139 else
30140   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30141 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30142    { (exit 1); exit 1; }; }
30143 fi
30144
30145
30146 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30147 then
30148   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30149 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30150 fi
30151 if test "$ac_cv_func_mmap_file" = "no"
30152 then
30153   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30154 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30155 fi
30156
30157
30158 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30159 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30160 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30161   echo $ECHO_N "(cached) $ECHO_C" >&6
30162 else
30163   llvm_cv_llvmgcc_sanity="no"
30164 if test -x "$LLVMGCC" ; then
30165   cp /dev/null conftest.c
30166   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30167   if test $? -eq 0 ; then
30168     llvm_cv_llvmgcc_sanity="yes"
30169   fi
30170   rm conftest.c
30171 fi
30172 fi
30173 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30174 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30175
30176 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30177   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30178   LLVMCC1=$llvmcc1path
30179
30180   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30181   LLVMCC1PLUS=$llvmcc1pluspath
30182
30183   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30184   LLVMGCCDIR=$llvmgccdir
30185
30186 fi
30187
30188 SHLIBEXT=$libltdl_cv_shlibext
30189
30190
30191 # Translate the various configuration directories and other basic
30192 # information into substitutions that will end up in Makefile.config.in
30193 # that these configured values can be used by the makefiles
30194 eval LLVM_PREFIX="${prefix}";
30195 eval LLVM_BINDIR="${prefix}/bin";
30196 eval LLVM_LIBDIR="${prefix}/lib";
30197 eval LLVM_DATADIR="${prefix}/share/llvm";
30198 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30199 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30200 eval LLVM_INCLUDEDIR="${prefix}/include";
30201 eval LLVM_INFODIR="${prefix}/info";
30202 eval LLVM_MANDIR="${prefix}/man";
30203 LLVM_CONFIGTIME=`date`
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215 # Place the various directores into the config.h file as #defines so that we
30216 # can know about the installation paths within LLVM.
30217
30218 cat >>confdefs.h <<_ACEOF
30219 #define LLVM_PREFIX "$LLVM_PREFIX"
30220 _ACEOF
30221
30222
30223 cat >>confdefs.h <<_ACEOF
30224 #define LLVM_BINDIR "$LLVM_BINDIR"
30225 _ACEOF
30226
30227
30228 cat >>confdefs.h <<_ACEOF
30229 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30230 _ACEOF
30231
30232
30233 cat >>confdefs.h <<_ACEOF
30234 #define LLVM_DATADIR "$LLVM_DATADIR"
30235 _ACEOF
30236
30237
30238 cat >>confdefs.h <<_ACEOF
30239 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30240 _ACEOF
30241
30242
30243 cat >>confdefs.h <<_ACEOF
30244 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30245 _ACEOF
30246
30247
30248 cat >>confdefs.h <<_ACEOF
30249 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30250 _ACEOF
30251
30252
30253 cat >>confdefs.h <<_ACEOF
30254 #define LLVM_INFODIR "$LLVM_INFODIR"
30255 _ACEOF
30256
30257
30258 cat >>confdefs.h <<_ACEOF
30259 #define LLVM_MANDIR "$LLVM_MANDIR"
30260 _ACEOF
30261
30262
30263 cat >>confdefs.h <<_ACEOF
30264 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30265 _ACEOF
30266
30267
30268
30269           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30270
30271
30272           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30273
30274           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30275
30276           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30277
30278           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
30279
30280           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30281
30282
30283           ac_config_files="$ac_config_files Makefile.config"
30284
30285
30286                                         ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
30287
30288
30289           ac_config_files="$ac_config_files docs/doxygen.cfg"
30290
30291
30292           ac_config_commands="$ac_config_commands setup"
30293
30294           ac_config_commands="$ac_config_commands Makefile"
30295
30296
30297           ac_config_commands="$ac_config_commands Makefile.common"
30298
30299
30300           ac_config_commands="$ac_config_commands examples/Makefile"
30301
30302
30303           ac_config_commands="$ac_config_commands lib/Makefile"
30304
30305
30306           ac_config_commands="$ac_config_commands runtime/Makefile"
30307
30308
30309           ac_config_commands="$ac_config_commands test/Makefile"
30310
30311
30312           ac_config_commands="$ac_config_commands test/Makefile.tests"
30313
30314
30315           ac_config_commands="$ac_config_commands tools/Makefile"
30316
30317
30318           ac_config_commands="$ac_config_commands utils/Makefile"
30319
30320
30321           ac_config_commands="$ac_config_commands projects/Makefile"
30322
30323
30324
30325 cat >confcache <<\_ACEOF
30326 # This file is a shell script that caches the results of configure
30327 # tests run on this system so they can be shared between configure
30328 # scripts and configure runs, see configure's option --config-cache.
30329 # It is not useful on other systems.  If it contains results you don't
30330 # want to keep, you may remove or edit it.
30331 #
30332 # config.status only pays attention to the cache file if you give it
30333 # the --recheck option to rerun configure.
30334 #
30335 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30336 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30337 # following values.
30338
30339 _ACEOF
30340
30341 # The following way of writing the cache mishandles newlines in values,
30342 # but we know of no workaround that is simple, portable, and efficient.
30343 # So, don't put newlines in cache variables' values.
30344 # Ultrix sh set writes to stderr and can't be redirected directly,
30345 # and sets the high bit in the cache file unless we assign to the vars.
30346 {
30347   (set) 2>&1 |
30348     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30349     *ac_space=\ *)
30350       # `set' does not quote correctly, so add quotes (double-quote
30351       # substitution turns \\\\ into \\, and sed turns \\ into \).
30352       sed -n \
30353         "s/'/'\\\\''/g;
30354           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30355       ;;
30356     *)
30357       # `set' quotes correctly as required by POSIX, so do not add quotes.
30358       sed -n \
30359         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30360       ;;
30361     esac;
30362 } |
30363   sed '
30364      t clear
30365      : clear
30366      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30367      t end
30368      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30369      : end' >>confcache
30370 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30371   if test -w $cache_file; then
30372     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30373     cat confcache >$cache_file
30374   else
30375     echo "not updating unwritable cache $cache_file"
30376   fi
30377 fi
30378 rm -f confcache
30379
30380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30381 # Let make expand exec_prefix.
30382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30383
30384 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30385 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30386 # trailing colons and then remove the whole line if VPATH becomes empty
30387 # (actually we leave an empty line to preserve line numbers).
30388 if test "x$srcdir" = x.; then
30389   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30390 s/:*\$(srcdir):*/:/;
30391 s/:*\${srcdir}:*/:/;
30392 s/:*@srcdir@:*/:/;
30393 s/^\([^=]*=[     ]*\):*/\1/;
30394 s/:*$//;
30395 s/^[^=]*=[       ]*$//;
30396 }'
30397 fi
30398
30399 DEFS=-DHAVE_CONFIG_H
30400
30401 ac_libobjs=
30402 ac_ltlibobjs=
30403 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30404   # 1. Remove the extension, and $U if already installed.
30405   ac_i=`echo "$ac_i" |
30406          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30407   # 2. Add them.
30408   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30409   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30410 done
30411 LIBOBJS=$ac_libobjs
30412
30413 LTLIBOBJS=$ac_ltlibobjs
30414
30415
30416 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30417   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30418 Usually this means the macro was only invoked conditionally." >&5
30419 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30420 Usually this means the macro was only invoked conditionally." >&2;}
30421    { (exit 1); exit 1; }; }
30422 fi
30423 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30424   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30425 Usually this means the macro was only invoked conditionally." >&5
30426 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30427 Usually this means the macro was only invoked conditionally." >&2;}
30428    { (exit 1); exit 1; }; }
30429 fi
30430
30431 : ${CONFIG_STATUS=./config.status}
30432 ac_clean_files_save=$ac_clean_files
30433 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30434 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30435 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30436 cat >$CONFIG_STATUS <<_ACEOF
30437 #! $SHELL
30438 # Generated by $as_me.
30439 # Run this file to recreate the current configuration.
30440 # Compiler output produced by configure, useful for debugging
30441 # configure, is in config.log if it exists.
30442
30443 debug=false
30444 ac_cs_recheck=false
30445 ac_cs_silent=false
30446 SHELL=\${CONFIG_SHELL-$SHELL}
30447 _ACEOF
30448
30449 cat >>$CONFIG_STATUS <<\_ACEOF
30450 ## --------------------- ##
30451 ## M4sh Initialization.  ##
30452 ## --------------------- ##
30453
30454 # Be Bourne compatible
30455 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30456   emulate sh
30457   NULLCMD=:
30458   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30459   # is contrary to our usage.  Disable this feature.
30460   alias -g '${1+"$@"}'='"$@"'
30461 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30462   set -o posix
30463 fi
30464 DUALCASE=1; export DUALCASE # for MKS sh
30465
30466 # Support unset when possible.
30467 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30468   as_unset=unset
30469 else
30470   as_unset=false
30471 fi
30472
30473
30474 # Work around bugs in pre-3.0 UWIN ksh.
30475 $as_unset ENV MAIL MAILPATH
30476 PS1='$ '
30477 PS2='> '
30478 PS4='+ '
30479
30480 # NLS nuisances.
30481 for as_var in \
30482   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30483   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30484   LC_TELEPHONE LC_TIME
30485 do
30486   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30487     eval $as_var=C; export $as_var
30488   else
30489     $as_unset $as_var
30490   fi
30491 done
30492
30493 # Required to use basename.
30494 if expr a : '\(a\)' >/dev/null 2>&1; then
30495   as_expr=expr
30496 else
30497   as_expr=false
30498 fi
30499
30500 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30501   as_basename=basename
30502 else
30503   as_basename=false
30504 fi
30505
30506
30507 # Name of the executable.
30508 as_me=`$as_basename "$0" ||
30509 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30510          X"$0" : 'X\(//\)$' \| \
30511          X"$0" : 'X\(/\)$' \| \
30512          .     : '\(.\)' 2>/dev/null ||
30513 echo X/"$0" |
30514     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30515           /^X\/\(\/\/\)$/{ s//\1/; q; }
30516           /^X\/\(\/\).*/{ s//\1/; q; }
30517           s/.*/./; q'`
30518
30519
30520 # PATH needs CR, and LINENO needs CR and PATH.
30521 # Avoid depending upon Character Ranges.
30522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30525 as_cr_digits='0123456789'
30526 as_cr_alnum=$as_cr_Letters$as_cr_digits
30527
30528 # The user is always right.
30529 if test "${PATH_SEPARATOR+set}" != set; then
30530   echo "#! /bin/sh" >conf$$.sh
30531   echo  "exit 0"   >>conf$$.sh
30532   chmod +x conf$$.sh
30533   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30534     PATH_SEPARATOR=';'
30535   else
30536     PATH_SEPARATOR=:
30537   fi
30538   rm -f conf$$.sh
30539 fi
30540
30541
30542   as_lineno_1=$LINENO
30543   as_lineno_2=$LINENO
30544   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30545   test "x$as_lineno_1" != "x$as_lineno_2" &&
30546   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30547   # Find who we are.  Look in the path if we contain no path at all
30548   # relative or not.
30549   case $0 in
30550     *[\\/]* ) as_myself=$0 ;;
30551     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30552 for as_dir in $PATH
30553 do
30554   IFS=$as_save_IFS
30555   test -z "$as_dir" && as_dir=.
30556   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30557 done
30558
30559        ;;
30560   esac
30561   # We did not find ourselves, most probably we were run as `sh COMMAND'
30562   # in which case we are not to be found in the path.
30563   if test "x$as_myself" = x; then
30564     as_myself=$0
30565   fi
30566   if test ! -f "$as_myself"; then
30567     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30568 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30569    { (exit 1); exit 1; }; }
30570   fi
30571   case $CONFIG_SHELL in
30572   '')
30573     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30574 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30575 do
30576   IFS=$as_save_IFS
30577   test -z "$as_dir" && as_dir=.
30578   for as_base in sh bash ksh sh5; do
30579          case $as_dir in
30580          /*)
30581            if ("$as_dir/$as_base" -c '
30582   as_lineno_1=$LINENO
30583   as_lineno_2=$LINENO
30584   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30585   test "x$as_lineno_1" != "x$as_lineno_2" &&
30586   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30587              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30588              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30589              CONFIG_SHELL=$as_dir/$as_base
30590              export CONFIG_SHELL
30591              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30592            fi;;
30593          esac
30594        done
30595 done
30596 ;;
30597   esac
30598
30599   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30600   # uniformly replaced by the line number.  The first 'sed' inserts a
30601   # line-number line before each line; the second 'sed' does the real
30602   # work.  The second script uses 'N' to pair each line-number line
30603   # with the numbered line, and appends trailing '-' during
30604   # substitution so that $LINENO is not a special case at line end.
30605   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30606   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30607   sed '=' <$as_myself |
30608     sed '
30609       N
30610       s,$,-,
30611       : loop
30612       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30613       t loop
30614       s,-$,,
30615       s,^['$as_cr_digits']*\n,,
30616     ' >$as_me.lineno &&
30617   chmod +x $as_me.lineno ||
30618     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30619 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30620    { (exit 1); exit 1; }; }
30621
30622   # Don't try to exec as it changes $[0], causing all sort of problems
30623   # (the dirname of $[0] is not the place where we might find the
30624   # original and so on.  Autoconf is especially sensible to this).
30625   . ./$as_me.lineno
30626   # Exit status is that of the last command.
30627   exit
30628 }
30629
30630
30631 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30632   *c*,-n*) ECHO_N= ECHO_C='
30633 ' ECHO_T='      ' ;;
30634   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30635   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30636 esac
30637
30638 if expr a : '\(a\)' >/dev/null 2>&1; then
30639   as_expr=expr
30640 else
30641   as_expr=false
30642 fi
30643
30644 rm -f conf$$ conf$$.exe conf$$.file
30645 echo >conf$$.file
30646 if ln -s conf$$.file conf$$ 2>/dev/null; then
30647   # We could just check for DJGPP; but this test a) works b) is more generic
30648   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30649   if test -f conf$$.exe; then
30650     # Don't use ln at all; we don't have any links
30651     as_ln_s='cp -p'
30652   else
30653     as_ln_s='ln -s'
30654   fi
30655 elif ln conf$$.file conf$$ 2>/dev/null; then
30656   as_ln_s=ln
30657 else
30658   as_ln_s='cp -p'
30659 fi
30660 rm -f conf$$ conf$$.exe conf$$.file
30661
30662 if mkdir -p . 2>/dev/null; then
30663   as_mkdir_p=:
30664 else
30665   test -d ./-p && rmdir ./-p
30666   as_mkdir_p=false
30667 fi
30668
30669 as_executable_p="test -f"
30670
30671 # Sed expression to map a string onto a valid CPP name.
30672 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30673
30674 # Sed expression to map a string onto a valid variable name.
30675 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30676
30677
30678 # IFS
30679 # We need space, tab and new line, in precisely that order.
30680 as_nl='
30681 '
30682 IFS="   $as_nl"
30683
30684 # CDPATH.
30685 $as_unset CDPATH
30686
30687 exec 6>&1
30688
30689 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30690 # report actual input values of CONFIG_FILES etc. instead of their
30691 # values after options handling.  Logging --version etc. is OK.
30692 exec 5>>config.log
30693 {
30694   echo
30695   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30696 ## Running $as_me. ##
30697 _ASBOX
30698 } >&5
30699 cat >&5 <<_CSEOF
30700
30701 This file was extended by llvm $as_me 1.5, which was
30702 generated by GNU Autoconf 2.59.  Invocation command line was
30703
30704   CONFIG_FILES    = $CONFIG_FILES
30705   CONFIG_HEADERS  = $CONFIG_HEADERS
30706   CONFIG_LINKS    = $CONFIG_LINKS
30707   CONFIG_COMMANDS = $CONFIG_COMMANDS
30708   $ $0 $@
30709
30710 _CSEOF
30711 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30712 echo >&5
30713 _ACEOF
30714
30715 # Files that config.status was made for.
30716 if test -n "$ac_config_files"; then
30717   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30718 fi
30719
30720 if test -n "$ac_config_headers"; then
30721   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30722 fi
30723
30724 if test -n "$ac_config_links"; then
30725   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30726 fi
30727
30728 if test -n "$ac_config_commands"; then
30729   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30730 fi
30731
30732 cat >>$CONFIG_STATUS <<\_ACEOF
30733
30734 ac_cs_usage="\
30735 \`$as_me' instantiates files from templates according to the
30736 current configuration.
30737
30738 Usage: $0 [OPTIONS] [FILE]...
30739
30740   -h, --help       print this help, then exit
30741   -V, --version    print version number, then exit
30742   -q, --quiet      do not print progress messages
30743   -d, --debug      don't remove temporary files
30744       --recheck    update $as_me by reconfiguring in the same conditions
30745   --file=FILE[:TEMPLATE]
30746                    instantiate the configuration file FILE
30747   --header=FILE[:TEMPLATE]
30748                    instantiate the configuration header FILE
30749
30750 Configuration files:
30751 $config_files
30752
30753 Configuration headers:
30754 $config_headers
30755
30756 Configuration commands:
30757 $config_commands
30758
30759 Report bugs to <bug-autoconf@gnu.org>."
30760 _ACEOF
30761
30762 cat >>$CONFIG_STATUS <<_ACEOF
30763 ac_cs_version="\\
30764 llvm config.status 1.5
30765 configured by $0, generated by GNU Autoconf 2.59,
30766   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30767
30768 Copyright (C) 2003 Free Software Foundation, Inc.
30769 This config.status script is free software; the Free Software Foundation
30770 gives unlimited permission to copy, distribute and modify it."
30771 srcdir=$srcdir
30772 INSTALL="$INSTALL"
30773 _ACEOF
30774
30775 cat >>$CONFIG_STATUS <<\_ACEOF
30776 # If no file are specified by the user, then we need to provide default
30777 # value.  By we need to know if files were specified by the user.
30778 ac_need_defaults=:
30779 while test $# != 0
30780 do
30781   case $1 in
30782   --*=*)
30783     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30784     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30785     ac_shift=:
30786     ;;
30787   -*)
30788     ac_option=$1
30789     ac_optarg=$2
30790     ac_shift=shift
30791     ;;
30792   *) # This is not an option, so the user has probably given explicit
30793      # arguments.
30794      ac_option=$1
30795      ac_need_defaults=false;;
30796   esac
30797
30798   case $ac_option in
30799   # Handling of the options.
30800 _ACEOF
30801 cat >>$CONFIG_STATUS <<\_ACEOF
30802   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30803     ac_cs_recheck=: ;;
30804   --version | --vers* | -V )
30805     echo "$ac_cs_version"; exit 0 ;;
30806   --he | --h)
30807     # Conflict between --help and --header
30808     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30809 Try \`$0 --help' for more information." >&5
30810 echo "$as_me: error: ambiguous option: $1
30811 Try \`$0 --help' for more information." >&2;}
30812    { (exit 1); exit 1; }; };;
30813   --help | --hel | -h )
30814     echo "$ac_cs_usage"; exit 0 ;;
30815   --debug | --d* | -d )
30816     debug=: ;;
30817   --file | --fil | --fi | --f )
30818     $ac_shift
30819     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30820     ac_need_defaults=false;;
30821   --header | --heade | --head | --hea )
30822     $ac_shift
30823     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30824     ac_need_defaults=false;;
30825   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30826   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30827     ac_cs_silent=: ;;
30828
30829   # This is an error.
30830   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30831 Try \`$0 --help' for more information." >&5
30832 echo "$as_me: error: unrecognized option: $1
30833 Try \`$0 --help' for more information." >&2;}
30834    { (exit 1); exit 1; }; } ;;
30835
30836   *) ac_config_targets="$ac_config_targets $1" ;;
30837
30838   esac
30839   shift
30840 done
30841
30842 ac_configure_extra_args=
30843
30844 if $ac_cs_silent; then
30845   exec 6>/dev/null
30846   ac_configure_extra_args="$ac_configure_extra_args --silent"
30847 fi
30848
30849 _ACEOF
30850 cat >>$CONFIG_STATUS <<_ACEOF
30851 if \$ac_cs_recheck; then
30852   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30853   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30854 fi
30855
30856 _ACEOF
30857
30858 cat >>$CONFIG_STATUS <<_ACEOF
30859 #
30860 # INIT-COMMANDS section.
30861 #
30862
30863 llvm_src="${srcdir}"
30864
30865 _ACEOF
30866
30867
30868
30869 cat >>$CONFIG_STATUS <<\_ACEOF
30870 for ac_config_target in $ac_config_targets
30871 do
30872   case "$ac_config_target" in
30873   # Handling of arguments.
30874   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
30875   "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30876   "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30877   "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30878   "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
30879   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
30880   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
30881   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30882   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
30883   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
30884   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
30885   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
30886   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30887   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
30888   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
30889   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
30890   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
30891   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
30892   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
30893   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30894   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
30895   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30896   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
30897   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30898 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30899    { (exit 1); exit 1; }; };;
30900   esac
30901 done
30902
30903 # If the user did not use the arguments to specify the items to instantiate,
30904 # then the envvar interface is used.  Set only those that are not.
30905 # We use the long form for the default assignment because of an extremely
30906 # bizarre bug on SunOS 4.1.3.
30907 if $ac_need_defaults; then
30908   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30909   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30910   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30911 fi
30912
30913 # Have a temporary directory for convenience.  Make it in the build tree
30914 # simply because there is no reason to put it here, and in addition,
30915 # creating and moving files from /tmp can sometimes cause problems.
30916 # Create a temporary directory, and hook for its removal unless debugging.
30917 $debug ||
30918 {
30919   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30920   trap '{ (exit 1); exit 1; }' 1 2 13 15
30921 }
30922
30923 # Create a (secure) tmp directory for tmp files.
30924
30925 {
30926   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30927   test -n "$tmp" && test -d "$tmp"
30928 }  ||
30929 {
30930   tmp=./confstat$$-$RANDOM
30931   (umask 077 && mkdir $tmp)
30932 } ||
30933 {
30934    echo "$me: cannot create a temporary directory in ." >&2
30935    { (exit 1); exit 1; }
30936 }
30937
30938 _ACEOF
30939
30940 cat >>$CONFIG_STATUS <<_ACEOF
30941
30942 #
30943 # CONFIG_FILES section.
30944 #
30945
30946 # No need to generate the scripts if there are no CONFIG_FILES.
30947 # This happens for instance when ./config.status config.h
30948 if test -n "\$CONFIG_FILES"; then
30949   # Protect against being on the right side of a sed subst in config.status.
30950   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30951    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30952 s,@SHELL@,$SHELL,;t t
30953 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30954 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30955 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30956 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30957 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30958 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30959 s,@exec_prefix@,$exec_prefix,;t t
30960 s,@prefix@,$prefix,;t t
30961 s,@program_transform_name@,$program_transform_name,;t t
30962 s,@bindir@,$bindir,;t t
30963 s,@sbindir@,$sbindir,;t t
30964 s,@libexecdir@,$libexecdir,;t t
30965 s,@datadir@,$datadir,;t t
30966 s,@sysconfdir@,$sysconfdir,;t t
30967 s,@sharedstatedir@,$sharedstatedir,;t t
30968 s,@localstatedir@,$localstatedir,;t t
30969 s,@libdir@,$libdir,;t t
30970 s,@includedir@,$includedir,;t t
30971 s,@oldincludedir@,$oldincludedir,;t t
30972 s,@infodir@,$infodir,;t t
30973 s,@mandir@,$mandir,;t t
30974 s,@build_alias@,$build_alias,;t t
30975 s,@host_alias@,$host_alias,;t t
30976 s,@target_alias@,$target_alias,;t t
30977 s,@DEFS@,$DEFS,;t t
30978 s,@ECHO_C@,$ECHO_C,;t t
30979 s,@ECHO_N@,$ECHO_N,;t t
30980 s,@ECHO_T@,$ECHO_T,;t t
30981 s,@LIBS@,$LIBS,;t t
30982 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
30983 s,@subdirs@,$subdirs,;t t
30984 s,@build@,$build,;t t
30985 s,@build_cpu@,$build_cpu,;t t
30986 s,@build_vendor@,$build_vendor,;t t
30987 s,@build_os@,$build_os,;t t
30988 s,@host@,$host,;t t
30989 s,@host_cpu@,$host_cpu,;t t
30990 s,@host_vendor@,$host_vendor,;t t
30991 s,@host_os@,$host_os,;t t
30992 s,@target@,$target,;t t
30993 s,@target_cpu@,$target_cpu,;t t
30994 s,@target_vendor@,$target_vendor,;t t
30995 s,@target_os@,$target_os,;t t
30996 s,@OS@,$OS,;t t
30997 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
30998 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
30999 s,@ARCH@,$ARCH,;t t
31000 s,@ENDIAN@,$ENDIAN,;t t
31001 s,@CC@,$CC,;t t
31002 s,@CFLAGS@,$CFLAGS,;t t
31003 s,@LDFLAGS@,$LDFLAGS,;t t
31004 s,@CPPFLAGS@,$CPPFLAGS,;t t
31005 s,@ac_ct_CC@,$ac_ct_CC,;t t
31006 s,@EXEEXT@,$EXEEXT,;t t
31007 s,@OBJEXT@,$OBJEXT,;t t
31008 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31009 s,@JIT@,$JIT,;t t
31010 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31011 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31012 s,@CPP@,$CPP,;t t
31013 s,@CXX@,$CXX,;t t
31014 s,@CXXFLAGS@,$CXXFLAGS,;t t
31015 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31016 s,@LEX@,$LEX,;t t
31017 s,@LEXLIB@,$LEXLIB,;t t
31018 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31019 s,@FLEX@,$FLEX,;t t
31020 s,@YACC@,$YACC,;t t
31021 s,@BISON@,$BISON,;t t
31022 s,@ifGNUmake@,$ifGNUmake,;t t
31023 s,@LN_S@,$LN_S,;t t
31024 s,@CMP@,$CMP,;t t
31025 s,@CP@,$CP,;t t
31026 s,@DATE@,$DATE,;t t
31027 s,@FIND@,$FIND,;t t
31028 s,@GREP@,$GREP,;t t
31029 s,@MKDIR@,$MKDIR,;t t
31030 s,@MV@,$MV,;t t
31031 s,@RANLIB@,$RANLIB,;t t
31032 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31033 s,@RM@,$RM,;t t
31034 s,@SED@,$SED,;t t
31035 s,@TAR@,$TAR,;t t
31036 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31037 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31038 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31039 s,@BZIP2@,$BZIP2,;t t
31040 s,@DOT@,$DOT,;t t
31041 s,@DOXYGEN@,$DOXYGEN,;t t
31042 s,@ETAGS@,$ETAGS,;t t
31043 s,@GROFF@,$GROFF,;t t
31044 s,@GZIP@,$GZIP,;t t
31045 s,@POD2HTML@,$POD2HTML,;t t
31046 s,@POD2MAN@,$POD2MAN,;t t
31047 s,@RUNTEST@,$RUNTEST,;t t
31048 s,@TCLSH@,$TCLSH,;t t
31049 s,@ZIP@,$ZIP,;t t
31050 s,@EGREP@,$EGREP,;t t
31051 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31052 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31053 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31054 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31055 s,@LIBADD_DL@,$LIBADD_DL,;t t
31056 s,@ECHO@,$ECHO,;t t
31057 s,@AR@,$AR,;t t
31058 s,@ac_ct_AR@,$ac_ct_AR,;t t
31059 s,@STRIP@,$STRIP,;t t
31060 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31061 s,@CXXCPP@,$CXXCPP,;t t
31062 s,@F77@,$F77,;t t
31063 s,@FFLAGS@,$FFLAGS,;t t
31064 s,@ac_ct_F77@,$ac_ct_F77,;t t
31065 s,@LIBTOOL@,$LIBTOOL,;t t
31066 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31067 s,@LLVMGCC@,$LLVMGCC,;t t
31068 s,@LLVMGXX@,$LLVMGXX,;t t
31069 s,@ALLOCA@,$ALLOCA,;t t
31070 s,@MMAP_FILE@,$MMAP_FILE,;t t
31071 s,@LLVMCC1@,$LLVMCC1,;t t
31072 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31073 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31074 s,@SHLIBEXT@,$SHLIBEXT,;t t
31075 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31076 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31077 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31078 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31079 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31080 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31081 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31082 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31083 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31084 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31085 s,@LIBOBJS@,$LIBOBJS,;t t
31086 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31087 CEOF
31088
31089 _ACEOF
31090
31091   cat >>$CONFIG_STATUS <<\_ACEOF
31092   # Split the substitutions into bite-sized pieces for seds with
31093   # small command number limits, like on Digital OSF/1 and HP-UX.
31094   ac_max_sed_lines=48
31095   ac_sed_frag=1 # Number of current file.
31096   ac_beg=1 # First line for current file.
31097   ac_end=$ac_max_sed_lines # Line after last line for current file.
31098   ac_more_lines=:
31099   ac_sed_cmds=
31100   while $ac_more_lines; do
31101     if test $ac_beg -gt 1; then
31102       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31103     else
31104       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31105     fi
31106     if test ! -s $tmp/subs.frag; then
31107       ac_more_lines=false
31108     else
31109       # The purpose of the label and of the branching condition is to
31110       # speed up the sed processing (if there are no `@' at all, there
31111       # is no need to browse any of the substitutions).
31112       # These are the two extra sed commands mentioned above.
31113       (echo ':t
31114   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31115       if test -z "$ac_sed_cmds"; then
31116         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31117       else
31118         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31119       fi
31120       ac_sed_frag=`expr $ac_sed_frag + 1`
31121       ac_beg=$ac_end
31122       ac_end=`expr $ac_end + $ac_max_sed_lines`
31123     fi
31124   done
31125   if test -z "$ac_sed_cmds"; then
31126     ac_sed_cmds=cat
31127   fi
31128 fi # test -n "$CONFIG_FILES"
31129
31130 _ACEOF
31131 cat >>$CONFIG_STATUS <<\_ACEOF
31132 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31133   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31134   case $ac_file in
31135   - | *:- | *:-:* ) # input from stdin
31136         cat >$tmp/stdin
31137         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31138         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31139   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31140         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31141   * )   ac_file_in=$ac_file.in ;;
31142   esac
31143
31144   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31145   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31146 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31147          X"$ac_file" : 'X\(//\)[^/]' \| \
31148          X"$ac_file" : 'X\(//\)$' \| \
31149          X"$ac_file" : 'X\(/\)' \| \
31150          .     : '\(.\)' 2>/dev/null ||
31151 echo X"$ac_file" |
31152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31153           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31154           /^X\(\/\/\)$/{ s//\1/; q; }
31155           /^X\(\/\).*/{ s//\1/; q; }
31156           s/.*/./; q'`
31157   { if $as_mkdir_p; then
31158     mkdir -p "$ac_dir"
31159   else
31160     as_dir="$ac_dir"
31161     as_dirs=
31162     while test ! -d "$as_dir"; do
31163       as_dirs="$as_dir $as_dirs"
31164       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31166          X"$as_dir" : 'X\(//\)[^/]' \| \
31167          X"$as_dir" : 'X\(//\)$' \| \
31168          X"$as_dir" : 'X\(/\)' \| \
31169          .     : '\(.\)' 2>/dev/null ||
31170 echo X"$as_dir" |
31171     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31172           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31173           /^X\(\/\/\)$/{ s//\1/; q; }
31174           /^X\(\/\).*/{ s//\1/; q; }
31175           s/.*/./; q'`
31176     done
31177     test ! -n "$as_dirs" || mkdir $as_dirs
31178   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31179 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31180    { (exit 1); exit 1; }; }; }
31181
31182   ac_builddir=.
31183
31184 if test "$ac_dir" != .; then
31185   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31186   # A "../" for each directory in $ac_dir_suffix.
31187   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31188 else
31189   ac_dir_suffix= ac_top_builddir=
31190 fi
31191
31192 case $srcdir in
31193   .)  # No --srcdir option.  We are building in place.
31194     ac_srcdir=.
31195     if test -z "$ac_top_builddir"; then
31196        ac_top_srcdir=.
31197     else
31198        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31199     fi ;;
31200   [\\/]* | ?:[\\/]* )  # Absolute path.
31201     ac_srcdir=$srcdir$ac_dir_suffix;
31202     ac_top_srcdir=$srcdir ;;
31203   *) # Relative path.
31204     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31205     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31206 esac
31207
31208 # Do not use `cd foo && pwd` to compute absolute paths, because
31209 # the directories may not exist.
31210 case `pwd` in
31211 .) ac_abs_builddir="$ac_dir";;
31212 *)
31213   case "$ac_dir" in
31214   .) ac_abs_builddir=`pwd`;;
31215   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31216   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31217   esac;;
31218 esac
31219 case $ac_abs_builddir in
31220 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31221 *)
31222   case ${ac_top_builddir}. in
31223   .) ac_abs_top_builddir=$ac_abs_builddir;;
31224   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31225   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31226   esac;;
31227 esac
31228 case $ac_abs_builddir in
31229 .) ac_abs_srcdir=$ac_srcdir;;
31230 *)
31231   case $ac_srcdir in
31232   .) ac_abs_srcdir=$ac_abs_builddir;;
31233   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31234   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31235   esac;;
31236 esac
31237 case $ac_abs_builddir in
31238 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31239 *)
31240   case $ac_top_srcdir in
31241   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31242   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31243   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31244   esac;;
31245 esac
31246
31247
31248   case $INSTALL in
31249   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31250   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31251   esac
31252
31253   if test x"$ac_file" != x-; then
31254     { echo "$as_me:$LINENO: creating $ac_file" >&5
31255 echo "$as_me: creating $ac_file" >&6;}
31256     rm -f "$ac_file"
31257   fi
31258   # Let's still pretend it is `configure' which instantiates (i.e., don't
31259   # use $as_me), people would be surprised to read:
31260   #    /* config.h.  Generated by config.status.  */
31261   if test x"$ac_file" = x-; then
31262     configure_input=
31263   else
31264     configure_input="$ac_file.  "
31265   fi
31266   configure_input=$configure_input"Generated from `echo $ac_file_in |
31267                                      sed 's,.*/,,'` by configure."
31268
31269   # First look for the input files in the build tree, otherwise in the
31270   # src tree.
31271   ac_file_inputs=`IFS=:
31272     for f in $ac_file_in; do
31273       case $f in
31274       -) echo $tmp/stdin ;;
31275       [\\/$]*)
31276          # Absolute (can't be DOS-style, as IFS=:)
31277          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31278 echo "$as_me: error: cannot find input file: $f" >&2;}
31279    { (exit 1); exit 1; }; }
31280          echo "$f";;
31281       *) # Relative
31282          if test -f "$f"; then
31283            # Build tree
31284            echo "$f"
31285          elif test -f "$srcdir/$f"; then
31286            # Source tree
31287            echo "$srcdir/$f"
31288          else
31289            # /dev/null tree
31290            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31291 echo "$as_me: error: cannot find input file: $f" >&2;}
31292    { (exit 1); exit 1; }; }
31293          fi;;
31294       esac
31295     done` || { (exit 1); exit 1; }
31296 _ACEOF
31297 cat >>$CONFIG_STATUS <<_ACEOF
31298   sed "$ac_vpsub
31299 $extrasub
31300 _ACEOF
31301 cat >>$CONFIG_STATUS <<\_ACEOF
31302 :t
31303 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31304 s,@configure_input@,$configure_input,;t t
31305 s,@srcdir@,$ac_srcdir,;t t
31306 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31307 s,@top_srcdir@,$ac_top_srcdir,;t t
31308 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31309 s,@builddir@,$ac_builddir,;t t
31310 s,@abs_builddir@,$ac_abs_builddir,;t t
31311 s,@top_builddir@,$ac_top_builddir,;t t
31312 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31313 s,@INSTALL@,$ac_INSTALL,;t t
31314 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31315   rm -f $tmp/stdin
31316   if test x"$ac_file" != x-; then
31317     mv $tmp/out $ac_file
31318   else
31319     cat $tmp/out
31320     rm -f $tmp/out
31321   fi
31322
31323 done
31324 _ACEOF
31325 cat >>$CONFIG_STATUS <<\_ACEOF
31326
31327 #
31328 # CONFIG_HEADER section.
31329 #
31330
31331 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31332 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31333 #
31334 # ac_d sets the value in "#define NAME VALUE" lines.
31335 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31336 ac_dB='[         ].*$,\1#\2'
31337 ac_dC=' '
31338 ac_dD=',;t'
31339 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31340 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31341 ac_uB='$,\1#\2define\3'
31342 ac_uC=' '
31343 ac_uD=',;t'
31344
31345 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31346   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31347   case $ac_file in
31348   - | *:- | *:-:* ) # input from stdin
31349         cat >$tmp/stdin
31350         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31351         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31352   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31353         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31354   * )   ac_file_in=$ac_file.in ;;
31355   esac
31356
31357   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31358 echo "$as_me: creating $ac_file" >&6;}
31359
31360   # First look for the input files in the build tree, otherwise in the
31361   # src tree.
31362   ac_file_inputs=`IFS=:
31363     for f in $ac_file_in; do
31364       case $f in
31365       -) echo $tmp/stdin ;;
31366       [\\/$]*)
31367          # Absolute (can't be DOS-style, as IFS=:)
31368          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31369 echo "$as_me: error: cannot find input file: $f" >&2;}
31370    { (exit 1); exit 1; }; }
31371          # Do quote $f, to prevent DOS paths from being IFS'd.
31372          echo "$f";;
31373       *) # Relative
31374          if test -f "$f"; then
31375            # Build tree
31376            echo "$f"
31377          elif test -f "$srcdir/$f"; then
31378            # Source tree
31379            echo "$srcdir/$f"
31380          else
31381            # /dev/null tree
31382            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31383 echo "$as_me: error: cannot find input file: $f" >&2;}
31384    { (exit 1); exit 1; }; }
31385          fi;;
31386       esac
31387     done` || { (exit 1); exit 1; }
31388   # Remove the trailing spaces.
31389   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31390
31391 _ACEOF
31392
31393 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31394 # `conftest.undefs', that substitutes the proper values into
31395 # config.h.in to produce config.h.  The first handles `#define'
31396 # templates, and the second `#undef' templates.
31397 # And first: Protect against being on the right side of a sed subst in
31398 # config.status.  Protect against being in an unquoted here document
31399 # in config.status.
31400 rm -f conftest.defines conftest.undefs
31401 # Using a here document instead of a string reduces the quoting nightmare.
31402 # Putting comments in sed scripts is not portable.
31403 #
31404 # `end' is used to avoid that the second main sed command (meant for
31405 # 0-ary CPP macros) applies to n-ary macro definitions.
31406 # See the Autoconf documentation for `clear'.
31407 cat >confdef2sed.sed <<\_ACEOF
31408 s/[\\&,]/\\&/g
31409 s,[\\$`],\\&,g
31410 t clear
31411 : clear
31412 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31413 t end
31414 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31415 : end
31416 _ACEOF
31417 # If some macros were called several times there might be several times
31418 # the same #defines, which is useless.  Nevertheless, we may not want to
31419 # sort them, since we want the *last* AC-DEFINE to be honored.
31420 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31421 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31422 rm -f confdef2sed.sed
31423
31424 # This sed command replaces #undef with comments.  This is necessary, for
31425 # example, in the case of _POSIX_SOURCE, which is predefined and required
31426 # on some systems where configure will not decide to define it.
31427 cat >>conftest.undefs <<\_ACEOF
31428 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31429 _ACEOF
31430
31431 # Break up conftest.defines because some shells have a limit on the size
31432 # of here documents, and old seds have small limits too (100 cmds).
31433 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31434 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31435 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31436 echo '  :' >>$CONFIG_STATUS
31437 rm -f conftest.tail
31438 while grep . conftest.defines >/dev/null
31439 do
31440   # Write a limited-size here document to $tmp/defines.sed.
31441   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31442   # Speed up: don't consider the non `#define' lines.
31443   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31444   # Work around the forget-to-reset-the-flag bug.
31445   echo 't clr' >>$CONFIG_STATUS
31446   echo ': clr' >>$CONFIG_STATUS
31447   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31448   echo 'CEOF
31449   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31450   rm -f $tmp/in
31451   mv $tmp/out $tmp/in
31452 ' >>$CONFIG_STATUS
31453   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31454   rm -f conftest.defines
31455   mv conftest.tail conftest.defines
31456 done
31457 rm -f conftest.defines
31458 echo '  fi # grep' >>$CONFIG_STATUS
31459 echo >>$CONFIG_STATUS
31460
31461 # Break up conftest.undefs because some shells have a limit on the size
31462 # of here documents, and old seds have small limits too (100 cmds).
31463 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31464 rm -f conftest.tail
31465 while grep . conftest.undefs >/dev/null
31466 do
31467   # Write a limited-size here document to $tmp/undefs.sed.
31468   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31469   # Speed up: don't consider the non `#undef'
31470   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31471   # Work around the forget-to-reset-the-flag bug.
31472   echo 't clr' >>$CONFIG_STATUS
31473   echo ': clr' >>$CONFIG_STATUS
31474   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31475   echo 'CEOF
31476   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31477   rm -f $tmp/in
31478   mv $tmp/out $tmp/in
31479 ' >>$CONFIG_STATUS
31480   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31481   rm -f conftest.undefs
31482   mv conftest.tail conftest.undefs
31483 done
31484 rm -f conftest.undefs
31485
31486 cat >>$CONFIG_STATUS <<\_ACEOF
31487   # Let's still pretend it is `configure' which instantiates (i.e., don't
31488   # use $as_me), people would be surprised to read:
31489   #    /* config.h.  Generated by config.status.  */
31490   if test x"$ac_file" = x-; then
31491     echo "/* Generated by configure.  */" >$tmp/config.h
31492   else
31493     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31494   fi
31495   cat $tmp/in >>$tmp/config.h
31496   rm -f $tmp/in
31497   if test x"$ac_file" != x-; then
31498     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31499       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31500 echo "$as_me: $ac_file is unchanged" >&6;}
31501     else
31502       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31503 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31504          X"$ac_file" : 'X\(//\)[^/]' \| \
31505          X"$ac_file" : 'X\(//\)$' \| \
31506          X"$ac_file" : 'X\(/\)' \| \
31507          .     : '\(.\)' 2>/dev/null ||
31508 echo X"$ac_file" |
31509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31510           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31511           /^X\(\/\/\)$/{ s//\1/; q; }
31512           /^X\(\/\).*/{ s//\1/; q; }
31513           s/.*/./; q'`
31514       { if $as_mkdir_p; then
31515     mkdir -p "$ac_dir"
31516   else
31517     as_dir="$ac_dir"
31518     as_dirs=
31519     while test ! -d "$as_dir"; do
31520       as_dirs="$as_dir $as_dirs"
31521       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31522 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31523          X"$as_dir" : 'X\(//\)[^/]' \| \
31524          X"$as_dir" : 'X\(//\)$' \| \
31525          X"$as_dir" : 'X\(/\)' \| \
31526          .     : '\(.\)' 2>/dev/null ||
31527 echo X"$as_dir" |
31528     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31529           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31530           /^X\(\/\/\)$/{ s//\1/; q; }
31531           /^X\(\/\).*/{ s//\1/; q; }
31532           s/.*/./; q'`
31533     done
31534     test ! -n "$as_dirs" || mkdir $as_dirs
31535   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31536 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31537    { (exit 1); exit 1; }; }; }
31538
31539       rm -f $ac_file
31540       mv $tmp/config.h $ac_file
31541     fi
31542   else
31543     cat $tmp/config.h
31544     rm -f $tmp/config.h
31545   fi
31546 done
31547 _ACEOF
31548 cat >>$CONFIG_STATUS <<\_ACEOF
31549
31550 #
31551 # CONFIG_COMMANDS section.
31552 #
31553 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31554   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31555   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31556   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31557 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31558          X"$ac_dest" : 'X\(//\)[^/]' \| \
31559          X"$ac_dest" : 'X\(//\)$' \| \
31560          X"$ac_dest" : 'X\(/\)' \| \
31561          .     : '\(.\)' 2>/dev/null ||
31562 echo X"$ac_dest" |
31563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31564           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31565           /^X\(\/\/\)$/{ s//\1/; q; }
31566           /^X\(\/\).*/{ s//\1/; q; }
31567           s/.*/./; q'`
31568   { if $as_mkdir_p; then
31569     mkdir -p "$ac_dir"
31570   else
31571     as_dir="$ac_dir"
31572     as_dirs=
31573     while test ! -d "$as_dir"; do
31574       as_dirs="$as_dir $as_dirs"
31575       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31577          X"$as_dir" : 'X\(//\)[^/]' \| \
31578          X"$as_dir" : 'X\(//\)$' \| \
31579          X"$as_dir" : 'X\(/\)' \| \
31580          .     : '\(.\)' 2>/dev/null ||
31581 echo X"$as_dir" |
31582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31583           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31584           /^X\(\/\/\)$/{ s//\1/; q; }
31585           /^X\(\/\).*/{ s//\1/; q; }
31586           s/.*/./; q'`
31587     done
31588     test ! -n "$as_dirs" || mkdir $as_dirs
31589   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31590 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31591    { (exit 1); exit 1; }; }; }
31592
31593   ac_builddir=.
31594
31595 if test "$ac_dir" != .; then
31596   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31597   # A "../" for each directory in $ac_dir_suffix.
31598   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31599 else
31600   ac_dir_suffix= ac_top_builddir=
31601 fi
31602
31603 case $srcdir in
31604   .)  # No --srcdir option.  We are building in place.
31605     ac_srcdir=.
31606     if test -z "$ac_top_builddir"; then
31607        ac_top_srcdir=.
31608     else
31609        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31610     fi ;;
31611   [\\/]* | ?:[\\/]* )  # Absolute path.
31612     ac_srcdir=$srcdir$ac_dir_suffix;
31613     ac_top_srcdir=$srcdir ;;
31614   *) # Relative path.
31615     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31616     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31617 esac
31618
31619 # Do not use `cd foo && pwd` to compute absolute paths, because
31620 # the directories may not exist.
31621 case `pwd` in
31622 .) ac_abs_builddir="$ac_dir";;
31623 *)
31624   case "$ac_dir" in
31625   .) ac_abs_builddir=`pwd`;;
31626   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31627   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31628   esac;;
31629 esac
31630 case $ac_abs_builddir in
31631 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31632 *)
31633   case ${ac_top_builddir}. in
31634   .) ac_abs_top_builddir=$ac_abs_builddir;;
31635   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31636   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31637   esac;;
31638 esac
31639 case $ac_abs_builddir in
31640 .) ac_abs_srcdir=$ac_srcdir;;
31641 *)
31642   case $ac_srcdir in
31643   .) ac_abs_srcdir=$ac_abs_builddir;;
31644   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31645   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31646   esac;;
31647 esac
31648 case $ac_abs_builddir in
31649 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31650 *)
31651   case $ac_top_srcdir in
31652   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31653   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31654   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31655   esac;;
31656 esac
31657
31658
31659   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31660 echo "$as_me: executing $ac_dest commands" >&6;}
31661   case $ac_dest in
31662     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
31663    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31664     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
31665    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
31666     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
31667    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
31668     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
31669    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
31670     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
31671    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
31672     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
31673    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31674     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
31675    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
31676     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
31677    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
31678     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
31679    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
31680     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
31681    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
31682   esac
31683 done
31684 _ACEOF
31685
31686 cat >>$CONFIG_STATUS <<\_ACEOF
31687
31688 { (exit 0); exit 0; }
31689 _ACEOF
31690 chmod +x $CONFIG_STATUS
31691 ac_clean_files=$ac_clean_files_save
31692
31693
31694 # configure is writing to config.log, and then calls config.status.
31695 # config.status does its own redirection, appending to config.log.
31696 # Unfortunately, on DOS this fails, as config.log is still kept open
31697 # by configure, so config.status won't be able to write to it; its
31698 # output is simply discarded.  So we exec the FD to /dev/null,
31699 # effectively closing config.log, so it can be properly (re)opened and
31700 # appended to by config.status.  When coming back to configure, we
31701 # need to make the FD available again.
31702 if test "$no_create" != yes; then
31703   ac_cs_success=:
31704   ac_config_status_args=
31705   test "$silent" = yes &&
31706     ac_config_status_args="$ac_config_status_args --quiet"
31707   exec 5>/dev/null
31708   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31709   exec 5>>config.log
31710   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31711   # would make configure fail if this is the last instruction.
31712   $ac_cs_success || { (exit 1); exit 1; }
31713 fi
31714
31715 #
31716 # CONFIG_SUBDIRS section.
31717 #
31718 if test "$no_recursion" != yes; then
31719
31720   # Remove --cache-file and --srcdir arguments so they do not pile up.
31721   ac_sub_configure_args=
31722   ac_prev=
31723   for ac_arg in $ac_configure_args; do
31724     if test -n "$ac_prev"; then
31725       ac_prev=
31726       continue
31727     fi
31728     case $ac_arg in
31729     -cache-file | --cache-file | --cache-fil | --cache-fi \
31730     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31731       ac_prev=cache_file ;;
31732     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31733     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31734     | --c=*)
31735       ;;
31736     --config-cache | -C)
31737       ;;
31738     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31739       ac_prev=srcdir ;;
31740     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31741       ;;
31742     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31743       ac_prev=prefix ;;
31744     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31745       ;;
31746     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31747     esac
31748   done
31749
31750   # Always prepend --prefix to ensure using the same prefix
31751   # in subdir configurations.
31752   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31753
31754   ac_popdir=`pwd`
31755   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31756
31757     # Do not complain, so a configure script can configure whichever
31758     # parts of a large source tree are present.
31759     test -d $srcdir/$ac_dir || continue
31760
31761     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31762 echo "$as_me: configuring in $ac_dir" >&6;}
31763     { if $as_mkdir_p; then
31764     mkdir -p "$ac_dir"
31765   else
31766     as_dir="$ac_dir"
31767     as_dirs=
31768     while test ! -d "$as_dir"; do
31769       as_dirs="$as_dir $as_dirs"
31770       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31772          X"$as_dir" : 'X\(//\)[^/]' \| \
31773          X"$as_dir" : 'X\(//\)$' \| \
31774          X"$as_dir" : 'X\(/\)' \| \
31775          .     : '\(.\)' 2>/dev/null ||
31776 echo X"$as_dir" |
31777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31778           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31779           /^X\(\/\/\)$/{ s//\1/; q; }
31780           /^X\(\/\).*/{ s//\1/; q; }
31781           s/.*/./; q'`
31782     done
31783     test ! -n "$as_dirs" || mkdir $as_dirs
31784   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31785 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31786    { (exit 1); exit 1; }; }; }
31787
31788     ac_builddir=.
31789
31790 if test "$ac_dir" != .; then
31791   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31792   # A "../" for each directory in $ac_dir_suffix.
31793   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31794 else
31795   ac_dir_suffix= ac_top_builddir=
31796 fi
31797
31798 case $srcdir in
31799   .)  # No --srcdir option.  We are building in place.
31800     ac_srcdir=.
31801     if test -z "$ac_top_builddir"; then
31802        ac_top_srcdir=.
31803     else
31804        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31805     fi ;;
31806   [\\/]* | ?:[\\/]* )  # Absolute path.
31807     ac_srcdir=$srcdir$ac_dir_suffix;
31808     ac_top_srcdir=$srcdir ;;
31809   *) # Relative path.
31810     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31811     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31812 esac
31813
31814 # Do not use `cd foo && pwd` to compute absolute paths, because
31815 # the directories may not exist.
31816 case `pwd` in
31817 .) ac_abs_builddir="$ac_dir";;
31818 *)
31819   case "$ac_dir" in
31820   .) ac_abs_builddir=`pwd`;;
31821   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31822   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31823   esac;;
31824 esac
31825 case $ac_abs_builddir in
31826 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31827 *)
31828   case ${ac_top_builddir}. in
31829   .) ac_abs_top_builddir=$ac_abs_builddir;;
31830   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31831   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31832   esac;;
31833 esac
31834 case $ac_abs_builddir in
31835 .) ac_abs_srcdir=$ac_srcdir;;
31836 *)
31837   case $ac_srcdir in
31838   .) ac_abs_srcdir=$ac_abs_builddir;;
31839   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31840   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31841   esac;;
31842 esac
31843 case $ac_abs_builddir in
31844 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31845 *)
31846   case $ac_top_srcdir in
31847   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31848   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31849   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31850   esac;;
31851 esac
31852
31853
31854     cd $ac_dir
31855
31856     # Check for guested configure; otherwise get Cygnus style configure.
31857     if test -f $ac_srcdir/configure.gnu; then
31858       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31859     elif test -f $ac_srcdir/configure; then
31860       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31861     elif test -f $ac_srcdir/configure.in; then
31862       ac_sub_configure=$ac_configure
31863     else
31864       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31865 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31866       ac_sub_configure=
31867     fi
31868
31869     # The recursion is here.
31870     if test -n "$ac_sub_configure"; then
31871       # Make the cache file name correct relative to the subdirectory.
31872       case $cache_file in
31873       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31874       *) # Relative path.
31875         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31876       esac
31877
31878       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31879 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31880       # The eval makes quoting arguments work.
31881       eval $ac_sub_configure $ac_sub_configure_args \
31882            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31883         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31884 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31885    { (exit 1); exit 1; }; }
31886     fi
31887
31888     cd $ac_popdir
31889   done
31890 fi
31891
31892
31893 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31894  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31895 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
31896  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31897 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31898  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31899 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31900  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31901 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31902  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31903 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
31904 fi